fd3d4a2165500f1d9bb142c20cbd6bf58fa89f2a
[gnulib.git] / ChangeLog
1 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
2
3         New module 'unigbrk/base'.
4         * modules/unigbrk/base: New file.
5         * lib/unigbrk.in.h: New file.
6
7         New module 'unigbrk/uc-gbrk-prop'.
8         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9         * modules/unigbrk/uc-gbrk-prop: New file.
10         * lib/unigbrk/gbrkprop.h: New file.
11         * lib/unigbrk/uc-gbrk-prop.c: New file.
12
13         New module 'unigbrk/uc-is-grapheme-break'.
14         * modules/unigbrk/uc-is-grapheme-break: New file.
15         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19         * tests/unigbrk/GraphemeBreakTest.txt: New file.
20
21         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22
23 2010-12-27  Bruno Haible  <bruno@clisp.org>
24
25         linkat test: Avoid failure on Solaris 11 2010-11.
26         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27
28 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
29
30         utimens: work around glibc rounding bug on more platforms
31         * lib/utimens.c (fdutimens): Work around rounding bug even if
32         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
33         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
34
35 2010-12-27  Bruno Haible  <bruno@clisp.org>
36
37         select tests: Improve comments.
38         * tests/test-select.c (do_select): Add comments.
39
40 2010-12-27  Bruno Haible  <bruno@clisp.org>
41
42         select tests: Safer way of handling timeout.
43         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
44         at every invocation.
45
46 2010-12-27  Bruno Haible  <bruno@clisp.org>
47
48         select tests: Use 'bool' where appropriate.
49         * tests/test-select.c (connect_to_socket): Change argument type to
50         'bool'.
51
52 2010-12-27  Bruno Haible  <bruno@clisp.org>
53
54         select tests: Use existing modules.
55         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
56         (configure.ac): Don't test for unistd.h.
57         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
58         declared in <unistd.h>.
59
60 2010-12-27  Bruno Haible  <bruno@clisp.org>
61
62         mbrtowc: Work around a Solaris 7 bug.
63         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
64         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
65         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
66         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
67         MBRTOWC_NULL_ARG1_BUG.
68         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
69         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
70         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
71         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
72
73 2010-12-27  Jim Meyering  <meyering@redhat.com>
74
75         read-file.c: tweak syntax
76         * lib/read-file.c (fread_file): Remove space after "*" in function
77         definitions.
78
79 2010-12-27  Bruno Haible  <bruno@clisp.org>
80
81         times test: Avoid gcc warnings on OSF/1.
82         * tests/test-times.c (main): Cast printf arguments from clock_t to
83         'long int'.
84
85 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
86
87         utimens: work around glibc rounding bug on older Linux kernels
88         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
89         on Linux with a glibc whose utimes might not work, then work
90         around a longstanding glibc bug involving rounding rather than
91         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
92         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
93
94 2010-12-26  Bruno Haible  <bruno@clisp.org>
95
96         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
97         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
98         _GL_CXXALIAS_SYS.
99         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
100
101 2010-12-26  Bruno Haible  <bruno@clisp.org>
102
103         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
104         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
105         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
106         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
107         looking for the declaration.
108         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
109         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
110         problem.
111         * doc/posix-functions/inet_pton.texi: Likewise.
112
113 2010-12-26  Bruno Haible  <bruno@clisp.org>
114
115         arpa_inet: Use the common idioms with C++ support.
116         * lib/arpa_inet.in.h: Include c++defs.h.
117         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
118         support.
119         * modules/arpa_inet (Depends-on): Add c++defs.
120         (Makefile.am): Substitute the contents of c++defs.h.
121         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
122         * modules/arpa_inet-c++-tests: New file.
123         * tests/test-arpa_inet-c++.cc: New file.
124
125 2010-12-25  Bruno Haible  <bruno@clisp.org>
126
127         Fix more C++ link errors on Solaris 8.
128         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
129         $(LIB_EACCESS).
130         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
131         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
132         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
133         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
134         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
135
136 2010-12-25  Bruno Haible  <bruno@clisp.org>
137
138         printf-posix: Fix link error when a non-GCC compiler is used.
139         * lib/stdio.in.h (printf): When not using GCC, override printf
140         correctly.
141         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
142
143 2010-12-25  Bruno Haible  <bruno@clisp.org>
144
145         strerror_r-posix: Update doc.
146         * doc/posix-functions/strerror_r.texi: Update doc about the return
147         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
148
149 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
150
151         utimens: simplify the logic of the previous change
152         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
153         This should not affect whether the test succeeds or fails.
154
155         utimens: configure better on hosts with NFS clock skew
156         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
157         uses the clock of the local host.  It might use the clock of the
158         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
159         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
160
161 2010-12-25  Bruno Haible  <bruno@clisp.org>
162
163         ptsname test: Avoid failure on Solaris.
164         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
165         open a pseudo-terminal; don't use BSD-style ptys.
166         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
167
168 2010-12-25  Bruno Haible  <bruno@clisp.org>
169
170         ptsname: Avoid ERANGE failure on some systems.
171         * lib/ptsname.c (buffer): Increase size.
172
173 2010-12-25  Bruno Haible  <bruno@clisp.org>
174
175         rename, renameat: Avoid test failures at NFS mounted locations.
176         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
177         so that subsequent mkdir calls succeed.
178
179 2010-12-25  Bruno Haible  <bruno@clisp.org>
180
181         iswblank: Fix C++ link error on Solaris 8.
182         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
183         _GL_FUNCDECL_SYS.
184
185 2010-12-25  Bruno Haible  <bruno@clisp.org>
186
187         unistd: Fix C++ link error on Solaris 8.
188         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
189
190 2010-12-25  Bruno Haible  <bruno@clisp.org>
191
192         readlink doc: Mention an old glibc bug.
193         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
194
195 2010-12-25  Bruno Haible  <bruno@clisp.org>
196
197         fcntl-h: Fix for use of C++ on glibc systems.
198         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
199         also on glibc systems in C++ mode.
200         Reported by Gary V. Vaughan <gary@gnu.org>.
201
202 2010-12-25  Bruno Haible  <bruno@clisp.org>
203
204         roundl-ieee: Make it work on OSF/1 5.1 with cc.
205         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
206
207 2010-12-25  Bruno Haible  <bruno@clisp.org>
208
209         truncl-ieee: Make it work on OSF/1 5.1 with cc.
210         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
211         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
212         test whether truncl works according to ISO C 99 with IEC 60559.
213         * m4/truncl-ieee.m4: New file.
214         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
215         m4/signbit.m4.
216         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
217
218 2010-12-25  Bruno Haible  <bruno@clisp.org>
219
220         ceill-ieee: Make it work on OSF/1 5.1 with cc.
221         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
222         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
223         test whether ceill works according to ISO C 99 with IEC 60559.
224         * m4/ceill-ieee.m4: New file.
225         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
226         m4/signbit.m4.
227         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
228
229 2010-12-25  Bruno Haible  <bruno@clisp.org>
230
231         Ensure all prerequisites of <wchar.h> are included.
232         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
233         before <wchar.h>.
234         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
235         gl_MBRLEN_NUL_RETVAL): Likewise.
236         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
237         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
238         AC_FUNC_MBRTOWC): Likewise.
239         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
240         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
241         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
242         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
243         Likewise.
244         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
245         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
246         (gl_WCHAR_H): Improve comments.
247         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
248
249 2010-12-25  Bruno Haible  <bruno@clisp.org>
250
251         strtok_r: Fix C syntax error in autoconf macro.
252         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
253         characters in test program.
254
255 2010-12-24  Bruno Haible  <bruno@clisp.org>
256
257         ceil, trunc, round: Fix gcc warnings.
258         * lib/ceil.c (MIN): Undefine before redefining.
259         * lib/trunc.c (MIN): Likewise.
260         * lib/round.c (MIN): Likewise.
261         Include <math.h> first.
262
263 2010-12-24  Bruno Haible  <bruno@clisp.org>
264
265         select tests: Avoid failures on OSF/1 5.1.
266         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
267         failure of closing the last socket; it may fail with ECONNRESET.
268
269 2010-12-24  Eric Blake  <eblake@redhat.com>
270
271         stdint: avoid HP-UX 10.20 preprocessor bug
272         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
273         than #if.
274         * tests/test-floor2.c (main): Likewise.
275         Reported by Peter O'Gorman.
276
277         pipe: make obsoletion transition easier
278         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
279         * modules/pipe (Files): Include revived file.
280         (Include): Drop reference, to mirror getdate's behavior.
281
282 2010-12-24  Bruno Haible  <bruno@clisp.org>
283
284         sys_socket: Hide mismatch of declarations on NonStop Kernel.
285         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
286         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
287         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
288
289 2010-12-24  Bruno Haible  <bruno@clisp.org>
290
291         gethostname: Ensure declaration on NonStop Kernel.
292         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
293         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
294
295 2010-12-24  Bruno Haible  <bruno@clisp.org>
296
297         sys_select: Ensure all necessary types on NonStop Kernel.
298         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
299         include <sys/time.h>.
300         * doc/posix-headers/sys_select.texi: Mention that it's missing on
301         NonStop Kernel.
302         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
303
304 2010-12-24  Bruno Haible  <bruno@clisp.org>
305
306         sys_select: Remove unneeded include.
307         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
308         have <sys/select.h>.
309
310 2010-12-24  Bruno Haible  <bruno@clisp.org>
311
312         gethostname: Provide a fallback for HOST_NAME_MAX.
313         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
314         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
315         instead.
316         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
317
318 2010-12-24  Bruno Haible  <bruno@clisp.org>
319
320         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
321         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
322         (SA_RESTART): Likewise.
323         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
324
325 2010-12-24  Bruno Haible  <bruno@clisp.org>
326
327         signal: Define NSIG.
328         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
329         * tests/test-signal.c (nsig): New variable.
330         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
331
332 2010-12-24  Bruno Haible  <bruno@clisp.org>
333
334         rename, renameat: Avoid test failures on OSF/1 5.1.
335         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
336         alternative error codes.
337         * tests/test-renameat.c (main): Likewise.
338
339 2010-12-24  Bruno Haible  <bruno@clisp.org>
340
341         *printf: Detect large precisions bug on Solaris 10/SPARC.
342         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
343         by Paul Eggert.
344         * tests/test-snprintf-posix.h (test_function): Add this test code here
345         too.
346         * tests/test-sprintf-posix.h (test_function): Likewise.
347         * tests/test-vasnprintf-posix.c (test_function): Likewise.
348         * tests/test-vasprintf-posix.c (test_function): Likewise.
349         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
350         around by gnulib.
351         * doc/posix-functions/printf.texi: Likewise.
352         * doc/posix-functions/snprintf.texi: Likewise.
353         * doc/posix-functions/sprintf.texi: Likewise.
354         * doc/posix-functions/vfprintf.texi: Likewise.
355         * doc/posix-functions/vprintf.texi: Likewise.
356         * doc/posix-functions/vsnprintf.texi: Likewise.
357         * doc/posix-functions/vsprintf.texi: Likewise.
358         * doc/posix-functions/dprintf.texi: Undo last commit.
359         * doc/posix-functions/vdprintf.texi: Likewise.
360
361 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
362
363         tests: port test-fdutimensat.c to Solaris 8
364         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
365         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
366         On Solaris 8, it fails with errno == ENOSYS, because there is no
367         futimens (so it can't use the fd), and there is no lutimens (so it
368         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
369
370         vsnprintf: make more consistent with snprintf; doc fixes
371
372         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
373         the byte count return problem was promoted from the snprintf-posix
374         to the snprintf module.
375         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
376         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
377         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
378         * tests/test-snprintf.c (main): Check the byte count returned.
379         * tests/test-vsnprintf.c (main): Likewise.
380
381 2010-12-23  Eric Blake  <eblake@redhat.com>
382
383         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
384         * modules/sigpipe (License): Relax license.
385
386 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
387
388         doc: document Solaris printf bug with large float precisions
389         * doc/posix-functions/dprintf.texi (dprintf):
390         * doc/posix-functions/fprintf.texi (fprintf):
391         * doc/posix-functions/printf.texi (printf):
392         * doc/posix-functions/snprintf.texi (snprintf):
393         * doc/posix-functions/sprintf.texi (sprintf):
394         * doc/posix-functions/vdprintf.texi (vdprintf):
395         * doc/posix-functions/vfprintf.texi (vfprintf):
396         * doc/posix-functions/vprintf.texi (vprintf):
397         * doc/posix-functions/vsnprintf.texi (vsnprintf):
398         * doc/posix-functions/vsprintf.texi (vsprintf):
399         Mention that these functions mishandle large floating point
400         precisions on Solaris 10.  The same bug is also present in Solaris
401         8, and I assume earlier.  This causes "cd gnulib-tests; make
402         check" to fail on Solaris 8 (and I assume, later) when building
403         the latest coreutils, in test-vasprintf-posix's call to
404         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
405         the wide flavors (e.g., wprintf) so this patch just updates the
406         documentation for the narrow ones.
407
408         test-posixtm.c: add two tests
409         * tests/test-posixtm.c: Add two tests, to highlight the
410         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
411         around this bug; this is merely to document it.
412
413 2010-12-22  Bruno Haible  <bruno@clisp.org>
414
415         getlogin_r: Work around portability problem on OSF/1.
416         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
417         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
418         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
419         test for a truncated result.
420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
421         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
422         * modules/getlogin_r (Depends-on): Add memchr.
423         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
424
425 2010-12-22  Bruno Haible  <bruno@clisp.org>
426
427         ptsname: Avoid test failure on OSF/1 5.1.
428         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
429         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
430         (same_slave): New function.
431         (main): Use it to compare ptsname's result with the expected file name.
432
433 2010-12-22  Bruno Haible  <bruno@clisp.org>
434
435         Port extended stdio modules to HP NonStop Kernel.
436         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
437         macros.
438         * lib/fbufmode.c: Update comments.
439         * lib/fflush.c: Likewise.
440         * lib/fpurge.c: Likewise.
441         * lib/freadable.c: Likewise.
442         * lib/freadahead.c: Likewise.
443         * lib/freading.c: Likewise.
444         * lib/freadptr.c: Likewise.
445         * lib/freadseek.c: Likewise.
446         * lib/fseeko.c: Likewise.
447         * lib/fseterr.c: Likewise.
448         * lib/fwritable.c: Likewise.
449         * lib/fwriting.c: Likewise.
450         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
451
452 2010-12-22  Bruno Haible  <bruno@clisp.org>
453
454         ttyname_r: Work around bug on OSF/1 5.1.
455         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
456         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
457         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
458         present.
459         * lib/ttyname_r.c (ttyname_r): Update comments.
460
461 2010-12-22  Bruno Haible  <bruno@clisp.org>
462
463         round: Implement result sign according to IEEE 754.
464         * lib/round.c (MIN, MINUS_ZERO): New macros.
465         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
466         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
467         * tests/test-round-ieee.c (main): Likewise.
468         * tests/test-roundl-ieee.c (main): Likewise.
469
470         trunc: Implement result sign according to IEEE 754.
471         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
472         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
473         * tests/test-trunc2.c: Include minus-zero.h.
474         (MINUS_ZERO): New macro.
475         (trunc_reference): Keep in sync with lib/trunc.c.
476         * tests/test-truncf2.c: Include minus-zero.h.
477         (MINUS_ZERO): New macro.
478         (truncf_reference): Keep in sync with lib/trunc.c.
479         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
480         * tests/test-trunc-ieee.c (main): Likewise.
481         * tests/test-truncl-ieee.c (main): Likewise.
482
483         ceil: Implement result sign according to IEEE 754.
484         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
485         (FUNC): Return -0.0 for -1 < x < 0.
486         * tests/test-ceil2.c: Include minus-zero.h.
487         (MINUS_ZERO): New macro.
488         (ceil_reference): Keep in sync with lib/ceil.c.
489         * tests/test-ceilf2.c: Include minus-zero.h.
490         (MINUS_ZERO): New macro.
491         (ceilf_reference): Keep in sync with lib/ceil.c.
492         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
493         * tests/test-ceil-ieee.c (main): Likewise.
494         * tests/test-ceill-ieee.c (main): Likewise.
495
496         floor: Implement result sign according to IEEE 754.
497         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
498         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
499         * tests/test-floorf2.c (floorf_reference): Likewise.
500         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
501         * tests/test-floor-ieee.c (main): Likewise.
502         * tests/test-floorl-ieee.c (main): Likewise.
503
504 2010-12-22  Bruno Haible  <bruno@clisp.org>
505
506         getaddrinfo: Update doc.
507         * doc/posix-functions/gai_strerror.texi: Return type is also different
508         on AIX and HP-UX.
509
510 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
511
512         getaddrinfo, inet_ntop: Update doc for Solaris.
513         * doc/posix-functions/gai_strerror.texi: Return type is also an
514         issue on Solaris 9 and earlier.
515         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
516         on Solaris 10 and earlier.
517
518 2010-12-21  Bruno Haible  <bruno@clisp.org>
519
520         New module 'roundl-ieee'.
521         * modules/roundl-ieee: New file.
522         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
523         test whether roundl works according to ISO C 99 with IEC 60559.
524         * m4/roundl-ieee.m4: New file.
525         * modules/roundl-ieee-tests: New file.
526         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
527         * tests/test-roundl.c (main): Remove signbit tests.
528         * modules/roundl-tests (Depends-on): Remove signbit.
529         * doc/posix-functions/roundl.texi: Mention the new module.
530
531 2010-12-21  Bruno Haible  <bruno@clisp.org>
532
533         New module 'truncl-ieee'.
534         * modules/truncl-ieee: New file.
535         * modules/truncl-ieee-tests: New file.
536         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
537         * tests/test-truncl.c (main): Remove signbit tests.
538         * modules/truncl-tests (Depends-on): Remove signbit.
539         * doc/posix-functions/truncl.texi: Mention the new module.
540
541 2010-12-21  Bruno Haible  <bruno@clisp.org>
542
543         New module 'ceill-ieee'.
544         * modules/ceill-ieee: New file.
545         * modules/ceill-ieee-tests: New file.
546         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
547         * tests/test-ceill.c (main): Remove signbit tests.
548         * modules/ceill-tests (Depends-on): Remove signbit.
549         * doc/posix-functions/ceill.texi: Mention the new module.
550
551 2010-12-21  Bruno Haible  <bruno@clisp.org>
552
553         New module 'floorl-ieee'.
554         * modules/floorl-ieee: New file.
555         * modules/floorl-ieee-tests: New file.
556         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
557         * tests/test-floorl.c (main): Remove signbit tests.
558         * modules/floorl-tests (Depends-on): Remove signbit.
559         * doc/posix-functions/floorl.texi: Mention the new module.
560
561 2010-12-21  Bruno Haible  <bruno@clisp.org>
562
563         New module 'round-ieee'.
564         * modules/round-ieee: New file.
565         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
566         whether round works according to ISO C 99 with IEC 60559.
567         * m4/round-ieee.m4: New file.
568         * modules/round-ieee-tests: New file.
569         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
570         * tests/test-round1.c (main): Remove signbit tests.
571         * modules/round-tests (Depends-on): Remove 'signbit'.
572         * doc/posix-functions/round.texi: Mention the new module.
573
574 2010-12-21  Bruno Haible  <bruno@clisp.org>
575
576         New module 'trunc-ieee'.
577         * modules/trunc-ieee: New file.
578         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
579         whether trunc works according to ISO C 99 with IEC 60559.
580         * m4/trunc-ieee.m4: New file.
581         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
583         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
584         * modules/trunc-ieee-tests: New file.
585         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
586         * tests/test-trunc1.c (main): Remove signbit tests.
587         * modules/trunc-tests (Depends-on): Remove 'signbit'.
588         * doc/posix-functions/trunc.texi: Mention the new module.
589
590 2010-12-21  Bruno Haible  <bruno@clisp.org>
591
592         New module 'ceil-ieee'.
593         * modules/ceil-ieee: New file.
594         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
595         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
596         ISO C 99 with IEC 60559.
597         * m4/ceil-ieee.m4: New file.
598         * modules/ceil (Files): Add lib/ceil.c.
599         (Depends-on): Add 'float'.
600         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
601         * lib/math.in.h (ceil): New declaration.
602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
603         REPLACE_CEIL.
604         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
605         * modules/ceil-ieee-tests: New file.
606         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
607         * tests/test-math-c++.cc: Check the signature of 'ceil'.
608         * doc/posix-functions/ceil.texi: Mention the new module.
609
610 2010-12-21  Bruno Haible  <bruno@clisp.org>
611
612         New module 'floor-ieee'.
613         * modules/floor-ieee: New file.
614         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
615         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
616         ISO C 99 with IEC 60559.
617         * m4/floor-ieee.m4: New file.
618         * modules/floor (Files): Add lib/floor.c.
619         (Depends-on): Add 'float'.
620         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
621         * lib/math.in.h (floor): New declaration.
622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
623         REPLACE_FLOOR.
624         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
625         * modules/floor-ieee-tests: New file.
626         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
627         * tests/test-math-c++.cc: Check the signature of 'floor'.
628         * doc/posix-functions/floor.texi: Mention the new module.
629
630 2010-12-21  Bruno Haible  <bruno@clisp.org>
631
632         New module 'roundf-ieee'.
633         * modules/roundf-ieee: New file.
634         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
635         test whether roundf works according to ISO C 99 with IEC 60559.
636         * m4/roundf-ieee.m4: New file.
637         * modules/roundf-ieee-tests: New file.
638         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
639         * tests/test-roundf1.c (main): Remove signbit tests.
640         * modules/roundf-tests (Depends-on): Remove 'signbit'.
641         * doc/posix-functions/roundf.texi: Mention the new module.
642
643 2010-12-21  Bruno Haible  <bruno@clisp.org>
644
645         New module 'truncf-ieee'.
646         * modules/truncf-ieee: New file.
647         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
648         test whether truncf works according to ISO C 99 with IEC 60559.
649         * m4/truncf-ieee.m4: New file.
650         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
652         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
653         * modules/truncf-ieee-tests: New file.
654         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
655         * tests/test-truncf1.c (main): Remove signbit tests.
656         * modules/truncf-tests (Depends-on): Remove 'signbit'.
657         * doc/posix-functions/truncf.texi: Mention the new module.
658
659 2010-12-21  Bruno Haible  <bruno@clisp.org>
660
661         New module 'ceilf-ieee'.
662         * modules/ceilf-ieee: New file.
663         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
664         test whether ceilf works according to ISO C 99 with IEC 60559.
665         * m4/ceilf-ieee.m4: New file.
666         * modules/ceilf-ieee-tests: New file.
667         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
668         * tests/test-ceilf1.c (main): Remove signbit tests.
669         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
670         * doc/posix-functions/ceilf.texi: Mention the new module.
671
672 2010-12-21  Bruno Haible  <bruno@clisp.org>
673
674         New module 'floorf-ieee'.
675         * modules/floorf-ieee: New file.
676         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
677         test whether floorf works according to ISO C 99 with IEC 60559.
678         * m4/floorf-ieee.m4: New file.
679         * modules/floorf-ieee-tests: New file.
680         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
681         * tests/test-floorf1.c (main): Remove signbit tests.
682         * modules/floorf-tests (Depends-on): Remove 'signbit'.
683         * doc/posix-functions/floorf.texi: Mention the new module.
684
685 2010-12-21  Bruno Haible  <bruno@clisp.org>
686
687         Support for minus zero in autoconf macros.
688         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
689         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
690         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
691         * tests/minus-zero.h: Update comments.
692
693 2010-12-21  Bruno Haible  <bruno@clisp.org>
694
695         Tests for module 'ceil'.
696         * modules/ceil-tests: New file.
697         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
698         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
699
700 2010-12-21  Bruno Haible  <bruno@clisp.org>
701
702         Tests for module 'floor'.
703         * modules/floor-tests: New file.
704         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
705         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
706
707 2010-12-21  Bruno Haible  <bruno@clisp.org>
708
709         math: Fix indentation.
710         * lib/math.in.h (floorf): Fix indentation.
711
712 2010-12-21  Bruno Haible  <bruno@clisp.org>
713
714         Fix cross-compilation guesses on Solaris.
715         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
716         not match "solaris2.10".
717         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
718         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
719         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
720
721 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
722
723         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
724         This fixes a problem observed with the latest coreutils snapshot
725         that caused a test to fail on Solaris 8.  src/csplit.c's call
726         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
727         earlier, instead of returning the number of bytes that would have
728         been generated; this causes csplit to incorrectly report memory
729         exhaustion.
730         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
731         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
732         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
733         comments to match.
734         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
735         Fix typo in matching older versions of Solaris: "solaris2.10"
736         is matched by the shell pattern "solaris2.[0-9]*".  This matters
737         only for guessing while cross-compiling.
738         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
739
740 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
741
742         ftoastr: fix comment again
743         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
744         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
745         Also, simplify example a bit by using flags = 0.
746
747 2010-12-20  Bruno Haible  <bruno@clisp.org>
748
749         round*, trunc*: Update documentation regarding glibc.
750         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
751         * doc/posix-functions/round.texi: Likewise.
752         * doc/posix-functions/roundl.texi: Likewise.
753         * doc/posix-functions/truncf.texi: Likewise.
754         * doc/posix-functions/trunc.texi: Likewise.
755         * doc/posix-functions/truncl.texi: Likewise.
756
757 2010-12-20  Bruno Haible  <bruno@clisp.org>
758
759         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
760         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
761         * doc/posix-functions/round.texi: Likewise.
762         * doc/posix-functions/roundl.texi: Likewise.
763
764 2010-12-20  Bruno Haible  <bruno@clisp.org>
765
766         ttyname_r: Add missing declaration on HP-UX 11.
767         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
768         HAVE_TTYNAME_R.
769         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
770         declared. Set HAVE_TTYNAME_R always.
771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
772         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
773         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
774         HAVE_TTYNAME_R.
775         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
776
777 2010-12-20  Bruno Haible  <bruno@clisp.org>
778
779         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
780         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
781         * doc/posix-functions/getlogin_r.texi: Likewise.
782         * tests/test-getlogin.c: Include <errno.h>.
783         (main): Avoid test failure on HP-UX 11.11.
784         * tests/test-getlogin_r.c (main): Likewise.
785
786 2010-12-20  Bruno Haible  <bruno@clisp.org>
787
788         getlogin_r: Add missing declaration on HP-UX 11.
789         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
790         declared also when it exists as a function.
791         * doc/posix-functions/getlogin_r.texi: Document this workaround.
792
793 2010-12-20  Bruno Haible  <bruno@clisp.org>
794
795         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
796         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
797         through wcrtomb.
798
799 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
800
801         ftoastr: fix comment
802         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
803         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
804
805 2010-12-19  Bruno Haible  <bruno@clisp.org>
806
807         isnan: Ensure it is a macro.
808         * lib/math.in.h (isnan): Define as a macro if not already a macro.
809         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
810         Solaris.
811
812 2010-12-19  Bruno Haible  <bruno@clisp.org>
813
814         ldexpl test: Fix link error on OSF/1 5.1.
815         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
816
817 2010-12-19  Bruno Haible  <bruno@clisp.org>
818
819         wctype: Make it work in C++ mode on OSF/1 5.1.
820         * lib/wctype.in.h (iswblank): Declare but not define here.
821         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
822         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
823         * modules/wctype (Files): Add lib/iswblank.c.
824
825 2010-12-19  Bruno Haible  <bruno@clisp.org>
826
827         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
828         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
829         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
830
831 2010-12-19  Bruno Haible  <bruno@clisp.org>
832
833         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
835         _POSIX_PII_SOCKET.
836         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
837         * doc/posix-functions/recvfrom.texi: Likewise.
838         * doc/posix-functions/send.texi: Likewise.
839         * doc/posix-functions/sendto.texi: Likewise.
840
841 2010-12-19  Bruno Haible  <bruno@clisp.org>
842
843         tcgetsid: Add missing declaration on OSF/1 5.1.
844         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
845         HAVE_TCGETSID.
846         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
847         Don't set HAVE_TCGETSID.
848         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
849         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
850         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
851         HAVE_TCGETSID.
852         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
853
854 2010-12-19  Bruno Haible  <bruno@clisp.org>
855
856         stdio: Fix problem with popen() declaration on OSF/1 5.1.
857         * lib/stdio.in.h: During the include_next statement, let recursive
858         includes of this file include only the system header file.
859
860 2010-12-19  Bruno Haible  <bruno@clisp.org>
861
862         iconv_open: Fix regression from 2010-12-04.
863         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
864         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
865
866 2010-12-19  Bruno Haible  <bruno@clisp.org>
867
868         stdbool test: Avoid a gcc warning.
869         * tests/test-stdbool.c (main): Fail if e1 is false.
870         Reported by Jim Meyering.
871
872 2010-12-19  Jim Meyering  <meyering@redhat.com>
873
874         setenv: restore to working order
875         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
876         mistakenly removed.
877         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
878         HAVE_SETENV.
879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
880         HAVE_SETENV.
881
882 2010-12-19  Bruno Haible  <bruno@clisp.org>
883
884         Document some different function declarations on OSF/1 5.1.
885         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
886         * doc/posix-functions/inet_ntop.texi: Likewise.
887         * doc/posix-functions/gethostname.texi: Likewise.
888         * lib/unistd.in.h (gethostname): Update comment.
889
890 2010-12-19  Bruno Haible  <bruno@clisp.org>
891
892         doc: Mention vasprintf-posix module.
893         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
894         the 'vasprintf-posix' module.
895         * doc/glibc-functions/vasprintf.texi: Likewise.
896
897 2010-12-19  Bruno Haible  <bruno@clisp.org>
898
899         unsetenv: Add missing declaration on OSF/1 5.1.
900         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
901         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
902         Don't set HAVE_UNSETENV. In the test program, set _BSD.
903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
904         not HAVE_UNSETENV.
905         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
906         HAVE_UNSETENV.
907         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
908
909 2010-12-19  Bruno Haible  <bruno@clisp.org>
910
911         setenv: Add missing declaration on OSF/1 5.1.
912         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
913         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
914         declared. Don't set HAVE_SETENV.
915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
916         not HAVE_SETENV.
917         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
918         HAVE_SETENV.
919         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
920
921 2010-12-19  Bruno Haible  <bruno@clisp.org>
922
923         nl_langinfo tests: Avoid gcc warning.
924         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
925
926 2010-12-19  Bruno Haible  <bruno@clisp.org>
927
928         mknod: Avoid error in C++ mode on OSF/1 with GCC.
929         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
930         _GL_CXXALIAS_SYS.
931
932 2010-12-19  Bruno Haible  <bruno@clisp.org>
933
934         stdbool: Relax test.
935         * tests/test-stdbool.c (e): Don't require that casts from a variable's
936         address to 'bool' work in static initializer, for compilers other than
937         GCC.
938
939 2010-12-19  Bruno Haible  <bruno@clisp.org>
940
941         ftello: Add missing declaration on OSF/1 5.1.
942         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
943         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
945         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
946         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
947
948 2010-12-19  Bruno Haible  <bruno@clisp.org>
949
950         fseeko: Add missing declaration on OSF/1 5.1.
951         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
952         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
954         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
955         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
956
957 2010-12-19  Bruno Haible  <bruno@clisp.org>
958
959         fchdir: Add missing declaration on OSF/1 5.1.
960         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
963         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
964         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
965
966 2010-12-19  Bruno Haible  <bruno@clisp.org>
967
968         relocatable-prog-wrapper: Separate from relocatable-prog.
969         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
970         uninstall-relocwrapper rule here.
971         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
972         Reported by Ian Beckwith <ianb@erislabs.net>.
973
974 2010-12-19  Bruno Haible  <bruno@clisp.org>
975
976         unistr/u8-mbsnlen: Add missing dependency.
977         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
978         Reported by Ian Beckwith <ianb@erislabs.net>.
979
980 2010-12-19  Bruno Haible  <bruno@clisp.org>
981
982         iconv: Make it possible again to use this module without 'iconv-h'.
983         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
984         if it is not defined.
985         Reported by Ian Beckwith <ianb@erislabs.net>.
986
987 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
988
989         acl: port to Solaris 8 when copying from tmpfs to ufs
990         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
991         error number.  Problem observed on Solaris 8 with latest
992         coreutils, with "mv A B", where A is on a tmpfs file system and B
993         is on a ufs file system.  This caused coreutils' mv/part-symlink
994         test to fail.
995
996         tests: set fail=0 at start
997         * tests/init.sh (setup_): Move fail=0 initialization here ...
998         (mktempd_): ... from here, so that tests can rely on fail being
999         set to 0 initially.  This fixes a problem in coreutils; see:
1000         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
1001
1002 2010-12-18  Bruno Haible  <bruno@clisp.org>
1003
1004         memmem-simple: Stylistic changes.
1005         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
1006         Fix preprocessor directive indentation.
1007
1008 2010-12-15  Pádraig Brady <P@draigBrady.com>
1009
1010         memmem, memmem-simple: reorganize and expand empty needle check
1011         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
1012         functional checks to memmem-simple so that one has a fully functional
1013         memmem by using just this module.
1014         Restrict the performance only check to the memmem module.
1015         Also expand the empty needle check to ensure the correct
1016         pointer is returned, not just a non NULL pointer.
1017         * doc/glibc-functions/memmem.texi: Rearrange the portability
1018         documentation to correlate with the rearranged checks.
1019         Clarify exactly how the memmem and memmem-simple modules
1020         relate to each other.
1021
1022 2010-12-15  Pádraig Brady <P@draigBrady.com>
1023             Bruno Haible  <bruno@clisp.org>
1024
1025         Improve cross-compilation guesses for uClibc.
1026         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
1027         that uClibc does not have the glibc bug.
1028         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
1029         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
1030
1031 2010-12-14  Eric Blake  <eblake@redhat.com>
1032
1033         configmake: provide fallbacks for oldest supported autotools
1034         * m4/configmake.m4: New file.
1035         * modules/configmake (Files): Ship it.
1036         (configure.ac): Use it to guarantee fallbacks.
1037
1038 2010-12-13  Pádraig Brady <P@draigBrady.com>
1039
1040         read-file: Improve handling of large files
1041         * lib/read-file.c (fread_file): Minimize realloc()s
1042         for regular files, and better manage sizes around SIZE_MAX.
1043
1044 2010-12-13  Eric Blake  <eblake@redhat.com>
1045
1046         cloexec, fcntl: relax license
1047         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
1048         consent from all contributors.
1049         * modules/fcntl (License): Likewise.
1050
1051 2010-12-10  Bruno Haible  <bruno@clisp.org>
1052
1053         Tests for module 'pipe-posix'.
1054         * modules/pipe-posix-tests: New file.
1055         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
1056
1057 2010-12-10  Bruno Haible  <bruno@clisp.org>
1058
1059         pipe-posix: Make it work in C++ mode.
1060         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
1061         (pipe): Use common idiom, not a macro definition.
1062         * lib/pipe.c: New file.
1063         * m4/pipe.m4: New file.
1064         * modules/pipe-posix (Description): Enhance.
1065         (Files): Add lib/pipe.c, m4/pipe.m4.
1066         (configure.ac): Invoke gl_FUNC_PIPE.
1067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
1068         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
1069         * tests/test-unistd-c++.cc: Check the signature of pipe.
1070
1071 2010-12-10  Bruno Haible  <bruno@clisp.org>
1072
1073         Rename module 'pipe' to 'spawn-pipe'.
1074         * modules/spawn-pipe: New file, renamed from modules/pipe.
1075         (Files, configure.ac, Makefile.am): Update.
1076         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
1077         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
1078         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
1079         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
1080         "spawn-pipe.h" instead of "pipe.h".
1081         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
1082         to gl_SPAWN_PIPE.
1083         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
1084         (Files, Makefile.am): Update.
1085         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
1086         Update.
1087         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
1088         Include "spawn-pipe.h" instead of "pipe.h".
1089         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
1090         * lib/javacomp.c: Likewise.
1091         * lib/javaversion.c: Likewise.
1092         * lib/pipe-filter-gi.c: Likewise.
1093         * lib/pipe-filter-ii.c: Likewise.
1094         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
1095         * modules/javacomp (Depends-on): Likewise.
1096         * modules/javaversion (Depends-on): Likewise.
1097         * modules/pipe-filter-gi (Depends-on): Likewise.
1098         * modules/pipe-filter-ii (Depends-on): Likewise.
1099         * MODULES.html.sh (Executing programs): Update.
1100         * NEWS: Mention the change.
1101
1102 2010-12-10  Eric Blake  <eblake@redhat.com>
1103
1104         pipe-posix: new module
1105         * modules/pipe-posix: New file.
1106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
1107         (gl_UNISTD_H): Check for declaration.
1108         * modules/unistd (Makefile.am): Substitute it.
1109         * lib/unistd.in.h (pipe): Provide it for mingw.
1110         * doc/posix-functions/pipe.texi (pipe): Update documentation.
1111         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
1112
1113 2010-12-07  Bruno Haible  <bruno@clisp.org>
1114
1115         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
1116         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
1117         u8_strcmp_gnu.
1118         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
1119
1120 2010-12-06  Bruno Haible  <bruno@clisp.org>
1121
1122         Update internal documentation.
1123         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
1124
1125 2010-12-04  Bruno Haible  <bruno@clisp.org>
1126
1127         Put more information about failed tests into the test return codes.
1128         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
1129         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
1130         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
1131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1132         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1133         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1134         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1135         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1136         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
1137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1138         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
1139         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1140         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1141         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1142         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
1143         returns a bit mask.
1144         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
1145         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
1146         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
1147         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
1148         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1149         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1150         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1152         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1153         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
1154         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1155         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1156         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1157         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1158         * m4/link.m4 (gl_FUNC_LINK): Likewise.
1159         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1160         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
1161         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
1162         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1163         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
1164         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1165         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
1166         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
1167         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1168         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1169         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1170         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
1171         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1172         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1173         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
1174         gl_PRINTF_PRECISION): Likewise.
1175         * m4/regex.m4 (gl_REGEX): Likewise.
1176         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1178         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
1179         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1180         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1182         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1183         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
1184         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1185         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1186         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1187         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1188         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1189         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1190         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1191         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1192         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1193         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1195         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
1196         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
1197         enumerated value.
1198         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
1199
1200 2010-12-04  Bruno Haible  <bruno@clisp.org>
1201
1202         Update for Solaris 11 2010-11.
1203         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
1204         Express, released in November 2010.
1205
1206 2010-12-04  Bruno Haible  <bruno@clisp.org>
1207
1208         nproc: Relax license.
1209         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
1210         and Paul Eggert.
1211         Requested by Ludovic Courtès <ludo@gnu.org>.
1212
1213 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1214
1215         utimecmp: fine-grained src to nearby coarse-grained dest
1216
1217         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
1218         and the source is on a file system with higher-resolution time
1219         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
1220         not work, and the time stamps are close together, the algorithm to
1221         determine the exact resolution from the read-back mtime was buggy:
1222         it had a "!=" where it should have had an "==".  This bug has been
1223         in the code ever since it was introduced to gnulib.
1224         Problem reported by Dan Jacobson in
1225         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
1226
1227 2010-11-30  Bruno Haible  <bruno@clisp.org>
1228
1229         strerror_r-posix: Fix autoconf test.
1230         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
1231
1232 2010-11-28  Bruno Haible  <bruno@clisp.org>
1233             Paul Eggert  <eggert@cs.ucla.edu>
1234
1235         Tests for module 'getdomainname'.
1236         * modules/getdomainname-tests: New file.
1237         * tests/test-getdomainname.c: New file, based on
1238         tests/test-gethostname.c.
1239
1240 2010-11-28  Bruno Haible  <bruno@clisp.org>
1241             Paul Eggert  <eggert@cs.ucla.edu>
1242
1243         getdomainname: Use the system function when possible.
1244         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
1245         (getdomainname): Replace if needed. Provide the declaration if it is
1246         missing. Don't use _GL_CXXALIAS_SYS_CAST.
1247         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
1248         (getdomainname): When the system has getdomainname, call the system
1249         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
1250         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1251         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
1252         found in libnsl. Look for the declaration also in <netdb.h>. Replace
1253         the function if its second argument is of type 'int' or if it is found
1254         in libnsl.
1255         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
1256         <sys/systeminfo.h> and sysinfo().
1257         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
1258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1259         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
1260         HAVE_GETDOMAINNAME.
1261         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
1262         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
1263         * doc/glibc-functions/getdomainname.texi: Document the problems with
1264         the getdomainname declaration.
1265
1266 2010-11-28  Bruno Haible  <bruno@clisp.org>
1267
1268         sys_socket: Ensure ss_family field on AIX.
1269         * lib/sys_socket.in.h (ss_family): New macro definition.
1270         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
1271         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
1272         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1273         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1274         * modules/sys_socket (Makefile.am): Substitute
1275         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1276         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
1277
1278 2010-11-27  Bruno Haible  <bruno@clisp.org>
1279
1280         readline: Improve configure output.
1281         * m4/readline.m4 (gl_FUNC_READLINE): Make the
1282         "checking for readline..." result understandable.
1283
1284 2010-11-27  Bruno Haible  <bruno@clisp.org>
1285
1286         *printf-posix: Detect a bug on Solaris 10/x86.
1287         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
1288         for floating-point output.
1289         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
1290         directive.
1291         * tests/test-snprintf-posix.h (test_function): Likewise.
1292         * tests/test-sprintf-posix.h (test_function): Likewise.
1293         * tests/test-vasprintf-posix.c (test_function): Likewise.
1294         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
1295         * doc/posix-functions/printf.texi: Likewise.
1296         * doc/posix-functions/snprintf.texi: Likewise.
1297         * doc/posix-functions/sprintf.texi: Likewise.
1298         * doc/posix-functions/vfprintf.texi: Likewise.
1299         * doc/posix-functions/vprintf.texi: Likewise.
1300         * doc/posix-functions/vsnprintf.texi: Likewise.
1301         * doc/posix-functions/vsprintf.texi: Likewise.
1302         * doc/glibc-functions/obstack_printf.texi: Likewise.
1303         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1304
1305 2010-11-27  Bruno Haible  <bruno@clisp.org>
1306
1307         Fix link error when module libunistring-optional is in use.
1308         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
1309         * modules/striconveha-tests (Makefile.am): Likewise.
1310
1311 2010-11-27  Bruno Haible  <bruno@clisp.org>
1312
1313         regex: Mention link dependencies.
1314         * modules/regex (Link): New section.
1315         * modules/rpmatch (Link): Likewise.
1316         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
1317
1318 2010-11-27  Bruno Haible  <bruno@clisp.org>
1319
1320         ftoastr: Fix compilation error on Solaris.
1321         * lib/ftoastr.c: Include <config.h>.
1322
1323 2010-11-27  Bruno Haible  <bruno@clisp.org>
1324
1325         getloadavg: Update documentation.
1326         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
1327
1328 2010-11-27  Bruno Haible  <bruno@clisp.org>
1329
1330         sys_socket: Fix test whether the functions are declared.
1331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
1332         not <sys/select.h>.
1333
1334 2010-11-27  Bruno Haible  <bruno@clisp.org>
1335
1336         getpass: Make sure to get system declaration on some platforms.
1337         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
1338         gl_USE_SYSTEM_EXTENSIONS.
1339         * modules/getpass (Depends-on): Add extensions.
1340
1341 2010-11-26  Bruno Haible  <bruno@clisp.org>
1342
1343         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
1344         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
1345         'iconv' module is present.
1346         (ICONV_CONST): New macro.
1347         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
1348         ICONV_CONST.
1349         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
1350         set ICONV_CONST.
1351         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
1352         here.
1353         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
1354         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
1355         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
1356         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
1357         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
1358         present.
1359
1360 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1361
1362         ftoastr: comment fix
1363         * lib/ftoastr.c: "little" -> "little or no" in comment
1364
1365 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1366
1367         stdint: port to GCC 4.3 + OSX + Octave
1368         On this platform, stdint.h is buggy and defines int64_t to long
1369         long int.  The replacement defined it to long int, causing
1370         problems with C++ style name mangling.  Instead, trust the system
1371         definition if INT64_MAX is defined, and likewise for the unsigned
1372         variant.   Problem reported by Jarno Rajahalme in
1373         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1374         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1375         and don't mess with int64_t and INT64_MAX in this case.
1376         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1377
1378 2010-11-24  Bruno Haible  <bruno@clisp.org>
1379
1380         doc: Corrections regarding MacOS X 10.4 and 10.5.
1381         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1382         MacOS X.
1383         Reported by Simon Josefsson.
1384
1385 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1386
1387         Uninstall ".bin" files installed by relocwrapper.
1388         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1389         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1390         unless it is already there.
1391
1392 2010-11-21  Bruno Haible  <bruno@clisp.org>
1393
1394         Update for NetBSD 5.0.
1395         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1396         NetBSD; the test fails on NetBSD 5.0.
1397         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1398         about NetBSD.
1399
1400 2010-11-21  Bruno Haible  <bruno@clisp.org>
1401
1402         Update for HP-UX 11.23 and HP-UX 11.31.
1403         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1404         HP-UX.
1405
1406 2010-11-21  Bruno Haible  <bruno@clisp.org>
1407
1408         Update for MacOS X 10.5.
1409         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1410         MacOS X; the test fails on MacOS X 10.5.8.
1411         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1412         about MacOS X.
1413
1414 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1415
1416         bootstrap: add bootstrap_sync option.
1417         See discussion at
1418         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1420         * build-aux/bootstrap: Accept --bootstrap-sync to update
1421         bootstrap if it is not identical to the local gnulib's
1422         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1423         enable this by default.  Accept --no-bootstrap-sync to disable
1424         it.
1425
1426 2010-11-20  Bruno Haible  <bruno@clisp.org>
1427
1428         Ensure that <features.h> is included before __GLIBC__ is tested.
1429         * lib/printf-parse.h: Include <features.h>.
1430         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1431         Reported by Mike Frysinger <vapier@gentoo.org>.
1432
1433         Ensure that <features.h> is included before __GLIBC__ is tested.
1434         * lib/wchar.in.h: Include <features.h>.
1435         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1436         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1437         Reported by Mike Frysinger <vapier@gentoo.org>.
1438
1439         Ensure that <features.h> is included before __GLIBC__ is tested.
1440         * lib/arpa_inet.in.h: Include <features.h>.
1441         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1442         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1443         Reported by Mike Frysinger <vapier@gentoo.org>.
1444
1445         Ensure that <features.h> is included before __GLIBC__ is tested.
1446         * build-aux/link-warning.h: Include <features.h>.
1447         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1448         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1449         Reported by Mike Frysinger <vapier@gentoo.org>.
1450
1451         Ensure that <features.h> is included before __GLIBC__ is tested.
1452         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1453         Reported by Mike Frysinger <vapier@gentoo.org>.
1454
1455 2010-11-20  Bruno Haible  <bruno@clisp.org>
1456
1457         memmem: Fix autoconf test.
1458         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1459
1460 2010-11-20  Bruno Haible  <bruno@clisp.org>
1461
1462         Port to uClibc.
1463         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1464         * lib/fcntl.in.h: Likewise.
1465         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1466         * lib/mbrtowc.c (mbrtowc): Likewise.
1467         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1468         * lib/strerror_r.c: Likewise.
1469         * lib/unistr/u8-strnlen.c: Likewise.
1470         * lib/vasnprintf.c (decimal_point_char): Likewise.
1471         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1472         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1473         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1474         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1475         * tests/test-sigaction.c (handler, main): Likewise.
1476         * lib/freading.h: Treat uClibc like a non-glibc platform.
1477         * lib/freading.c: Likewise.
1478         * lib/gettext.h: Likewise.
1479         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1480         Likewise.
1481         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1482         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1483         * lib/propername.c (proper_name_utf8): Likewise.
1484         * lib/spawn.in.h: Likewise.
1485         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1486         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1487         mem_cd_iconveh_internal): Likewise.
1488         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1489         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1490         strstr, strcasestr): Likewise.
1491         * lib/unicodeio.c (unicode_to_mb): Likewise.
1492         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1493         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1494         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1495         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1496         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1497         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1498         * lib/unistr/u8-stpncpy.c: Likewise.
1499         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1500         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1501         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1502         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1503         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1504         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1505         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1507         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1508         Likewise.
1509         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1510         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1511         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1512         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1514         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1515         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1516         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1517         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1518         * tests/test-striconveha.c (main): Likewise.
1519         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1520         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1521         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1522         * doc/posix-functions/getline.texi: Likewise.
1523         Reported by Mike Frysinger <vapier@gentoo.org>.
1524
1525 2010-11-20  Bruno Haible  <bruno@clisp.org>
1526
1527         nproc: Fix condition.
1528         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1529         HAVE_PTHREAD_AFFINITY_NP.
1530
1531 2010-11-20  Bruno Haible  <bruno@clisp.org>
1532
1533         Fix a comment.
1534         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1535
1536 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1537
1538         ftoastr: don't assume snprintf
1539         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1540         Implement a subset of snprintf here, by using sprintf safely.
1541         * modules/ftoastr (Depends-on): Remove snprintf.
1542
1543 2010-11-19  Jim Meyering  <meyering@redhat.com>
1544
1545         test-rename.h: fix compilation failure
1546         * tests/test-rename.h (test_rename): Add omitted "}".
1547
1548 2010-11-17  Jim Meyering  <meyering@redhat.com>
1549
1550         maint.mk: add a URL discussing the no-@acronym policy
1551         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1552
1553 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1554
1555         ftoastr: depend on snprintf, improve comments
1556         * lib/ftoastr.c: Also mention Loitsch's draft.
1557         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1558         needed in the current implementation, but it might simplify
1559         speeding up the code later.
1560         * modules/ftoastr: Depend on snprintf; this improves portability.
1561         Suggested by Bruno Haible in the same email.
1562
1563         ftoastr: port to hosts lacking strtof and strtold
1564         Problem reported by Bruno Haible in
1565         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1566         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1567         environment and strtold (and presumably strtof) are not available.
1568         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1569         (configure.ac): Require gl_C99_STRTOLD.
1570
1571 2010-11-18  Bruno Haible  <bruno@clisp.org>
1572
1573         c-strtold: Avoid link error on AIX 7.
1574         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1575         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1576         (gl_C_STRTOLD): Test whether strtold_l exists.
1577         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1578
1579 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1580
1581         intprops: new macro INT_BITS_STRLEN_BOUND
1582         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1583         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1584         not exposed.  Also, it uses a slightly tighter bound than before;
1585         though this makes no practical difference, we might as well be as
1586         tight as we easily can.
1587
1588         ftoastr: new module, for lossless conversion of floats to short strings
1589         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1590         * modules/ftoastr: New files.
1591
1592 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1593
1594         bootstrap: port to Solaris sed
1595         * build-aux/bootstrap (get_version): Port to Solaris sed.
1596         See Ralf Wildenhues's note in
1597         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1598
1599 2010-11-14  Jim Meyering  <meyering@redhat.com>
1600
1601         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1602         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1603         and move definition closer to sole use.
1604
1605 2010-11-13  Jim Meyering  <meyering@redhat.com>
1606
1607         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1608         Now we require at least autoconf-2.59, which means the work-around
1609         is no longer needed.
1610         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1611         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1612         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1613         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1614         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1615
1616 2010-11-13  Bruno Haible  <bruno@clisp.org>
1617
1618         rename, renameat: Avoid test failures at NFS mounted locations.
1619         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1620         functions.
1621         (test_rename): Use assert_nonexistent.
1622         * tests/test-rename.c: Include <dirent.h>.
1623         * tests/test-renameat.c: Likewise.
1624         Reported by Gary V. Vaughan <gary@gnu.org>.
1625
1626         rename, renameat: Document Linux bug with NFS
1627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1628         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1629         * doc/posix-functions/renameat.texi: Likewise.
1630         Suggested by Eric Blake.
1631
1632 2010-11-13  Bruno Haible  <bruno@clisp.org>
1633
1634         rename test: Add comments.
1635         * tests/test-rename.h (test_rename): Add structure and comments.
1636
1637 2010-11-13  Eric Blake  <eblake@redhat.com>
1638
1639         maintainer-makefile: cover a few more files
1640         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1641         scripts generated within C files, for libvirt.
1642
1643 2010-11-13  Bruno Haible  <bruno@clisp.org>
1644
1645         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1646         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
1647         character, return the number of bytes that belong together, not always
1648         1.
1649         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1650         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1651         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1652         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
1653         number of bytes of an invalid character.
1654         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
1655         (main): Invoke it.
1656         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
1657         results.
1658         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
1659         malformed byte sequences.
1660         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
1661         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
1662         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
1663         Reported by Ben Pfaff and Paolo Bonzini.
1664
1665 2010-11-13  Bruno Haible  <bruno@clisp.org>
1666
1667         openat: Work around glibc bug with fchownat() and empty file names.
1668         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
1669         (gl_FUNC_FCHOWNAT): Invoke it.
1670         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
1671         * doc/posix-functions/fchownat.texi: Document the glibc bug.
1672         Reported by Gary V. Vaughan <gary@gnu.org>.
1673
1674 2010-11-13  Bruno Haible  <bruno@clisp.org>
1675
1676         openat: Ensure autoconf macro ordering.
1677         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
1678         gl_USE_SYSTEM_EXTENSIONS.
1679         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
1680
1681 2010-11-13  Bruno Haible  <bruno@clisp.org>
1682
1683         Update comments.
1684         * lib/unistr/u8-check.c: Update file name in comments.
1685         * lib/unistr/u8-mblen.c: Likewise.
1686         * lib/unistr/u8-prev.c: Likewise.
1687         * lib/unistr/u8-strmblen.c: Likewise.
1688         * lib/unistr/u8-strmbtouc.c: Likewise.
1689
1690 2010-11-13  Jim Meyering  <meyering@redhat.com>
1691
1692         tests: avoid test failure on Solaris 10 due to lack of PATH export
1693         * tests/test-update-copyright.sh: Don't forget to export PATH.
1694
1695         init.sh: ensure that IFS is defined, just in case...
1696         * tests/init.sh (setup_): Ensure that IFS is defined,
1697         so that saving and restoring it works as expected.  This
1698         appears to be useful at least for an old version of dash
1699         from a long time ago (RH 6).  See here for details:
1700         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
1701
1702         maint.mk: tighten "test a == b" check
1703         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
1704         test to files that contain something like #!/bin/sh.
1705         Without this, coreutils would get two false positives in
1706         the comments of C source files.
1707
1708 2010-11-12  Eric Blake  <eblake@redhat.com>
1709
1710         bootstrap: fix typo in previous attempt
1711         * build-aux/bootstrap (buildreq): Correct the grouping.
1712         Reported by Paul Eggert.
1713
1714         maintainer-makefile: prohibit test x == x
1715         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
1716         Based on a report by Matthias Bolte.
1717
1718         bootstrap: allow FreeBSD gzip
1719         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
1720         which has no '.' and goes to stderr.
1721         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
1722         Reported by Matthias Bolte.
1723
1724         maintainer-makefile: check for i18n setup
1725         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
1726         will likely work.
1727
1728 2010-11-12  Bruno Haible  <bruno@clisp.org>
1729
1730         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
1731         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
1732         * lib/nanosleep.c (nanosleep): Likewise.
1733
1734 2010-11-11  Bruno Haible  <bruno@clisp.org>
1735
1736         fcntl-h: Fix for use of C++ on glibc systems.
1737         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1738         also on glibc systems in C++ mode.
1739         Reported by Gary V. Vaughan <gary@gnu.org>.
1740
1741 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1742
1743         mknod: avoid false failure with dash
1744         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
1745
1746 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1747
1748         unlink: Fix "is it should" typo in diagnostic.
1749         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
1750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
1751
1752 2010-11-11  Bruno Haible  <bruno@clisp.org>
1753
1754         Tests for module 'strerror_r-posix'.
1755         * modules/strerror_r-posix-tests: New file.
1756         * tests/test-strerror_r.c: New file.
1757         * tests/test-string-c++.cc: Check the signature of strerror_r.
1758
1759         New module 'strerror_r-posix'.
1760         * lib/string.in.h (strerror_r): New declaration.
1761         * lib/strerror_r.c: New file.
1762         * m4/strerror_r.m4: New file.
1763         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
1764         of strerror_r.
1765         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
1766         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1767         * modules/strerror_r-posix: New file.
1768         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
1769         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1770         * doc/posix-functions/strerror_r.texi: Mention the new module and the
1771         portability problems.
1772
1773 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
1774
1775         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
1776         line is also considered for output. Quoted function name in shell
1777         command, so temporary files for functions like MyClass::operator()
1778         are removed correctly without errors.
1779
1780 2010-11-09  Bruno Haible  <bruno@clisp.org>
1781
1782         * doc/posix-functions/strerror.texi: List more failing platforms.
1783
1784         * doc/posix-functions/strerror.texi: Add a comment.
1785
1786 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1787
1788         fdopendir: fix bug on MacOS X when low on file descriptors
1789
1790         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
1791         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
1792         All callers changed.
1793         (fdopendir): Invoke save_cwd at the top level, not after using
1794         multiple dup() calls to use up file descriptors.  Then retry
1795         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
1796         less than the maximum number of open file descriptors, because
1797         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
1798         on Mac OS X 10.6.4 for tar 1.24
1799         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
1800         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
1801         and for tar 1.25
1802         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
1803
1804 2010-11-07  Bruno Haible  <bruno@clisp.org>
1805
1806         vasnprintf: Support I flag on glibc systems.
1807         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
1808         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
1809         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
1810         snprintf function.
1811         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1812         glibc systems.
1813         * tests/test-vasnprintf-posix3.c: New file.
1814         * modules/vasnprintf-posix-tests (Files): Add it.
1815         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1816
1817 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1818
1819         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1820         * MODULES.html.sh: For compiler warnings, use name
1821         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1822
1823 2010-11-05  Eric Blake  <eblake@redhat.com>
1824
1825         ceil, floor: avoid spurious failure with icc
1826         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1827         [denormals-as-zero] when optimizing without -mieee-fp option.
1828         * tests/test-floorf2.c (floorf_reference): Likewise.
1829         * tests/test-ceilf1.c (dummy): New function.
1830         (main): Use it to outsmart icc's optimization.
1831         * tests/test-floorf1.c (dummy, main): Likewise.
1832
1833         tests: require working signbit
1834         * modules/ceilf-tests (Depends-on): Add signbit.
1835         * modules/ceill-tests (Depends-on): Likewise.
1836         * modules/floorf-tests (Depends-on): Likewise.
1837         * modules/floorl-tests (Depends-on): Likewise.
1838         * modules/round-tests (Depends-on): Likewise.
1839         * modules/roundf-tests (Depends-on): Likewise.
1840         * modules/roundl-tests (Depends-on): Likewise.
1841         * modules/trunc-tests (Depends-on): Likewise.
1842         * modules/truncf-tests (Depends-on): Likewise.
1843         * modules/truncl-tests (Depends-on): Likewise.
1844
1845         strtod: work around icc bug
1846         * lib/strtod.c (minus_zero): Define to working value.
1847         (strtod): Use it to avoid icc bug.
1848
1849         copysign: enhance tests
1850         * modules/copysign-tests (Files): Add minus-zero.h.
1851         * tests/test-copysign.c (main): Also test zeros.
1852
1853 2010-11-04  Eric Blake  <eblake@redhat.com>
1854
1855         ceil, floor, round, trunc: enhance tests of -0
1856         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1857         * tests/test-ceill.c (main): Likewise.
1858         * tests/test-floorf1.c (main): Likewise.
1859         * tests/test-floorl.c (main): Likewise.
1860         * tests/test-round1.c (main): Likewise.
1861         * tests/test-roundf1.c (main): Likewise.
1862         * tests/test-roundl.c (main): Likewise.
1863         * tests/test-trunc1.c (main): Likewise.
1864         * tests/test-truncf1.c (main): Likewise.
1865         * tests/test-truncl.c (main): Likewise.
1866
1867 2010-11-04  Eric Blake  <eblake@redhat.com>
1868
1869         frexp, tests: work around ICC bug with -zero
1870         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1871         works with more compilers.
1872         * tests/minus-zero.h: New file.
1873         * modules/ceilf-tests (Files): Include it.
1874         * modules/ceill-tests (Files): Likewise.
1875         * modules/floorf-tests (Files): Likewise.
1876         * modules/floorl-tests (Files): Likewise.
1877         * modules/frexp-nolibm-tests (Files): Likewise.
1878         * modules/frexp-tests (Files): Likewise.
1879         * modules/frexpl-nolibm-tests (Files): Likewise.
1880         * modules/frexpl-tests (Files): Likewise.
1881         * modules/isnan-tests (Files): Likewise.
1882         * modules/isnand-nolibm-tests (Files): Likewise.
1883         * modules/isnand-tests (Files): Likewise.
1884         * modules/isnanf-nolibm-tests (Files): Likewise.
1885         * modules/isnanf-tests (Files): Likewise.
1886         * modules/isnanl-nolibm-tests (Files): Likewise.
1887         * modules/isnanl-tests (Files): Likewise.
1888         * modules/round-tests (Files): Likewise.
1889         * modules/roundf-tests (Files): Likewise.
1890         * modules/roundl-tests (Files): Likewise.
1891         * modules/ldexpl-tests (Files): Likewise.
1892         * modules/signbit-tests (Files): Likewise.
1893         * modules/snprintf-posix-tests (Files): Likewise.
1894         * modules/sprintf-posix-tests (Files): Likewise.
1895         * modules/strtod-tests (Files): Likewise.
1896         * modules/trunc-tests (Files): Likewise.
1897         * modules/truncf-tests (Files): Likewise.
1898         * modules/truncl-tests (Files): Likewise.
1899         * modules/vsnprintf-posix-tests (Files): Likewise.
1900         * modules/vsprintf-posix-tests (Files): Likewise.
1901         * modules/vasnprintf-posix-tests (Files): Likewise.
1902         * modules/vasprintf-posix-tests (Files): Likewise.
1903         * tests/test-ceilf1.c (main): Use it.
1904         * tests/test-ceill.c (main): Likewise.
1905         * tests/test-floorf1.c (main): Likewise.
1906         * tests/test-floorl.c (main): Likewise.
1907         * tests/test-frexp.c (main): Likewise.
1908         * tests/test-frexpl.c (main): Likewise.
1909         * tests/test-isnan.c (main): Likewise.
1910         * tests/test-isnand.h (main): Likewise.
1911         * tests/test-isnanf.h (main): Likewise.
1912         * tests/test-isnanl.h (main): Likewise.
1913         * tests/test-ldexpl.c (main): Likewise.
1914         * tests/test-round.c (main): Likewise.
1915         * tests/test-roundf.c (main): Likewise.
1916         * tests/test-roundl.c (main): Likewise.
1917         * tests/test-signbit.c (test_signbitf, test_signbitd)
1918         (test_signbitl): Likewise.
1919         * tests/test-snprintf-posix.h (test_function): Likewise.
1920         * tests/test-sprintf-posix.h (test_function): Likewise.
1921         * tests/test-strtod.c (main): Likewise.
1922         * tests/test-trunc1.c (main): Likewise.
1923         * tests/test-truncf1.c (main): Likewise.
1924         * tests/test-truncl.c (main): Likewise.
1925
1926         isnanl: work around icc bug
1927         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1928
1929 2010-11-03  Eric Blake  <eblake@redhat.com>
1930
1931         tests: fix compiler warnings
1932         * tests/test-getopt.h (test_getopt): Fix condition.
1933         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1934         * tests/test-pipe2.c (main): Likewise.
1935         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1936
1937         utimens: fix broken m4 test
1938         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1939
1940 2010-10-28  Bruno Haible  <bruno@clisp.org>
1941
1942         posix_spawn*, getdtablesize: Relax license.
1943         * modules/posix_spawn (License): Change to LGPLv2+.
1944         * modules/posix_spawnp (License): Likewise.
1945         * modules/posix_spawn-internal (License): Likewise.
1946         * modules/posix_spawnattr_init (License): Likewise.
1947         * modules/posix_spawnattr_getflags (License): Likewise.
1948         * modules/posix_spawnattr_setflags (License): Likewise.
1949         * modules/posix_spawnattr_getpgroup (License): Likewise.
1950         * modules/posix_spawnattr_setpgroup (License): Likewise.
1951         * modules/posix_spawnattr_getschedparam (License): Likewise.
1952         * modules/posix_spawnattr_setschedparam (License): Likewise.
1953         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1954         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1955         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1956         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1957         * modules/posix_spawnattr_getsigmask (License): Likewise.
1958         * modules/posix_spawnattr_setsigmask (License): Likewise.
1959         * modules/posix_spawnattr_destroy (License): Likewise.
1960         * modules/posix_spawn_file_actions_init (License): Likewise.
1961         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1962         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1963         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1964         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1965         * modules/getdtablesize (License): Likewise.
1966         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1967
1968 2010-10-26  Bruno Haible  <bruno@clisp.org>
1969
1970         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1971         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1972         Cygwin and mingw.
1973         Suggested by Eric Blake.
1974
1975 2010-10-26  Bruno Haible  <bruno@clisp.org>
1976
1977         stdio: Work around compilation error due to renameat() on Solaris 10.
1978         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1979         * lib/renameat.c: Don't include <unistd.h> here.
1980         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1981         Reported by Paul Eggert and Eric Blake.
1982
1983 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1984
1985         renameat: port to Solaris 10, which declares renameat in unistd.h
1986
1987         * lib/renameat.c: Include unistd.h before stdio.h, because
1988         Solaris 10 declares renameat in unistd.h.  Problem encountered
1989         when building GNU tar 1.24 on Solaris 10.
1990
1991 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1992
1993         fdopendir: fix C89 compilation
1994         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1995         compilers.
1996
1997 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1998
1999         inttostr: simplify by removing unnecessary redundancy
2000         * lib/anytostr.c: Don't include verify.h.
2001         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
2002         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
2003         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
2004         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
2005         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
2006         Likewise.
2007         * modules/inttostr (Depends-on): Remove 'verify'.
2008
2009 2010-10-23  Bruno Haible  <bruno@clisp.org>
2010
2011         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
2012         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
2013         Reported by Eric Blake.
2014
2015 2010-10-23  Bruno Haible  <bruno@clisp.org>
2016
2017         Tests: Fix LOCALE_JA on MirBSD 10.
2018         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
2019         to an UTF-8 locale.
2020         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
2021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2022         Reported by Eric Blake.
2023
2024 2010-10-21  Bruno Haible  <bruno@clisp.org>
2025
2026         nl_langinfo test: Avoid test failure on NetBSD 5.
2027         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
2028         Reported by Eric Blake.
2029
2030 2010-10-21  Eric Blake  <eblake@redhat.com>
2031
2032         c-stack: work around libsigsegv 2.8 bug
2033         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
2034         overflow on at least PowerPC64.
2035
2036 2010-10-17  Bruno Haible  <bruno@clisp.org>
2037
2038         userspec: Drop redundant file.
2039         * modules/userspec (Files): Remove lib/inttostr.h.
2040
2041 2010-10-17  Bruno Haible  <bruno@clisp.org>
2042
2043         nl_langinfo tests: Silence some warnings.
2044         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
2045         Reported by Jim Meyering.
2046
2047 2010-10-17  Bruno Haible  <bruno@clisp.org>
2048
2049         Make use of GCC's attribute __alloc_size__.
2050         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
2051         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
2052         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
2053         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
2054         __alloc_size__.
2055         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2056         Suggested by Jim Meyering.
2057
2058 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
2059
2060         bootstrap: anchor .gitignore entries.
2061         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
2062         with...
2063         (insert_vc_ignore): ... this new function, which prepends `/' to
2064         all .gitignore entries before passing them to
2065         insert_sorted_if_absent.
2066
2067 2010-10-16  Bruno Haible  <bruno@clisp.org>
2068
2069         nextafter: Fix configure check.
2070         * modules/nextafter (configure.ac): Correct expected prototype.
2071
2072 2010-10-16  Bruno Haible  <bruno@clisp.org>
2073
2074         termios: Update documentation.
2075         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
2076
2077 2010-10-16  Bruno Haible  <bruno@clisp.org>
2078
2079         tests: Make them compile with TinyCC.
2080         * tests/test-strstr.c (main): Remove parentheses around array
2081         initializer.
2082
2083 2010-10-15  Eric Blake  <eblake@redhat.com>
2084
2085         ignore-value: make header idempotent
2086         * lib/ignore-value.h: Add double-inclusion guards.
2087         Reported by Stefan Berger.
2088
2089 2010-10-15  Jim Meyering  <meyering@redhat.com>
2090
2091         GNUmakefile: handle "stable" target, not "major"
2092         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
2093         lists in maint.mk and announce-gen.  Without this, "make stable"
2094         would fail to ensure that $(VERSION) is up to date.
2095
2096 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
2097
2098         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
2099         & co.
2100
2101 2010-10-14  Bruno Haible  <bruno@clisp.org>
2102
2103         vasnprintf: Don't set errno to 0.
2104         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
2105         block that sets it to 0.
2106         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2107
2108 2010-10-14  Bruno Haible  <bruno@clisp.org>
2109
2110         socketlib: Fix.
2111         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
2112         gl_PREREQ_SYS_H_WINSOCK2.
2113         Reported by Ian Beckwith <ianb@erislabs.net>.
2114
2115 2010-10-13  Jim Meyering  <meyering@redhat.com>
2116
2117         test-select-stdin.c: avoid warn_unused_result warnings
2118         * tests/test-select-stdin.c: Include "macros.h".
2119         ASSERT that read and fflush succeed.
2120
2121 2010-10-13  Jim Meyering  <meyering@redhat.com>
2122
2123         git-version-gen: do require git-VC'd files in cwd
2124         * build-aux/git-version-gen: Reject a git version string
2125         if there are no commits associated with the current directory.
2126         This avoids an unlikely false-positive (unrelated dir whose parent
2127         repository also contains a tag matching v*), as pointed out
2128         by Giuseppe Scrivano in
2129         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
2130
2131 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
2132
2133         argv-iter: omit nonconforming declaration
2134         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
2135         enum arg_iter_err declaration, which doesn't conform to C99.
2136         Solaris 10 cc warns about this.
2137
2138 2010-10-13  Eric Blake  <eblake@redhat.com>
2139
2140         termios: fix compilation on mingw
2141         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
2142         (gl_TERMIOS_H): Adjust it on mingw.
2143         * modules/termios (Makefile.am): Substitute new key.
2144         * lib/termios.in.h (includes): Make include_next conditional.
2145         * doc/posix-headers/termios.texi (termios.h): Update
2146         documentation.
2147         Reported by Daniel P. Berrange.
2148
2149 2010-10-13  Jim Meyering  <meyering@redhat.com>
2150
2151         git-version-gen: don't require that .git/ be in the current dir
2152         * build-aux/git-version-gen: Adjust this script so that it works
2153         when run from any working directory beneath the top-level .git/-
2154         containing directory.  Inspired by a patch from Giuseppe Scrivano,
2155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
2156
2157         test-select: avoid warn_unused_result warnings
2158         * tests/test-select.c: Include "macros.h".
2159         ASSERT that each call to read, write, and pipe succeeds.
2160         While not technically required, also check each "close".
2161         * modules/select-tests (Files): Add tests/macros.h.
2162
2163         test-symlinkat: remove declaration of unused local
2164         * tests/test-symlinkat.c (main): Remove unused local, "buf".
2165
2166         test-inttostr: avoid shadowing warnings
2167         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
2168         and use malloc rather than the stack for the same reason as
2169         mentioned in the comment justifying the other allocation.
2170
2171 2010-10-11  Bruno Haible  <bruno@clisp.org>
2172
2173         stdlib: Allow multiple gnulib generated replacements to coexist.
2174         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
2175         Reported by Sam Steingold <sds@gnu.org>.
2176
2177 2010-10-11  Jim Meyering  <meyering@redhat.com>
2178
2179         fix a documentation typo
2180         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
2181
2182 2010-10-11  Eric Blake  <eblake@redhat.com>
2183
2184         futimens: work around Solaris 11 bug
2185         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
2186         * tests/test-futimens.h (test_futimens): Enhance, rather than
2187         weaken test.
2188         * doc/posix-functions/futimens.texi (futimens): Document the bug.
2189
2190 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2191
2192         Indentation.
2193         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
2194         higher-level operators more to the left.
2195
2196 2010-10-11  Jim Meyering  <meyering@redhat.com>
2197
2198         test-futimens: avoid unwarranted test failure on Solaris 5.11
2199         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
2200         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
2201         because it tries to dereference the NULL name argument.
2202
2203 2010-10-11  Bruno Haible  <bruno@clisp.org>
2204
2205         Indentation.
2206         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
2207         indentation.
2208
2209 2010-10-11  Jim Meyering  <meyering@redhat.com>
2210
2211         spawn.in.h: make indentation consistent with parentheses
2212         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
2213         Make indentation consistent with parentheses.
2214
2215 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
2216
2217         Fix mismatched parens in previous commit
2218         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
2219         parens.
2220
2221 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2222
2223         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
2224
2225         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
2226         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
2227         * lib/malloca.c: Include "verify.h".
2228         (verify1): Remove, replacing with a verify call.
2229         * lib/relocwrapper.c (verify1): Likewise.
2230         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
2231         Likewise.
2232         * modules/malloca (Depends-on): Add 'verify'.
2233         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
2234         * modules/vasnprintf (Depends-on): Add 'verify'.
2235         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2236         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2237         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2238         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2239         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2240         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2241         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2242
2243         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
2244
2245         Formerly the style was sometimes 2*X - 1, because the C standard
2246         was wrongly thought to disallow ?: in integral constant expressions.
2247         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
2248         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
2249         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2250         * lib/stdint.in.h (_verify_intmax_size): Likewise.
2251         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
2252         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
2253         verify that time_t cannot be floating.
2254
2255 2010-10-08  Eric Blake  <eblake@redhat.com>
2256
2257         time: enforce recent POSIX ruling that time_t is integral
2258         * lib/time.in.h (__time_t_must_be_integral): Detect any
2259         problematic systems, allowing the rest of gnulib to assume POSIX.
2260
2261 2010-10-08  Jim Meyering  <meyering@redhat.com>
2262
2263         fdopendir: fix a bug on systems lacking openat and /proc support
2264         OpenBSD 4.7 is one such system.  The most noticeable effect was
2265         failure of any application making nontrivial use of fts: rm, du,
2266         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
2267           ./rm: traversal failed: `a': Bad file descriptor
2268         Debugging that, you see that even though FD 6 was closed just
2269         prior to the opendir call in fd_clone_opendir, its resulting
2270         dir->dd_fd was 8, rather than the expected value of 6:
2271
2272         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
2273         93                close (fd);
2274         (gdb) n
2275         94                dir = fd_clone_opendir (dupfd);
2276         (gdb) n
2277         95                saved_errno = errno;
2278         (gdb) p dir->dd_fd
2279         $11 = 8
2280
2281         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
2282         The problem is that on OpenBSD, fd_clone_opendir has to resort
2283         to using the old-style save/restore CWD mechanism, due to its
2284         lack of openat/proc support, and *that* would steal the FD (6)
2285         that opendir was supposed to use.
2286
2287         The fix is to squirrel away the desired FD so that save_cwd uses a
2288         different one, and then free the dest FD right before calling opendir.
2289         That guarantees opendir will use the required file descriptor.
2290
2291         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
2292
2293 2010-10-08  Bruno Haible  <bruno@clisp.org>
2294
2295         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
2296         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
2297
2298 2010-10-08  Bruno Haible  <bruno@clisp.org>
2299
2300         nanosleep: Make replacement POSIX compliant.
2301         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
2302         is out of range.
2303         Reported by Jim Meyering.
2304
2305 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2306
2307         bootstrap: add hook for altering gnulib.mk, for Bison
2308         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
2309         the Bison bootstrapping process can rewrite file names and variables
2310         in this file before later parts of 'bootstrap' use the file.
2311         Bison wants to include lib/gnulib.mk from the top-level makefile,
2312         so it needs the file names in this file to be relative to the top
2313         level, not relative to lib; plus it needs variable names to be
2314         rewritten.
2315         (slurp): Use the new function.
2316
2317         bootstrap: reformat for readability
2318         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
2319
2320 2010-10-08  Eric Blake  <eblake@redhat.com>
2321
2322         docs: update cygwin progress
2323         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
2324         1.7.7.
2325         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
2326         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
2327         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
2328         * doc/posix-functions/carg.texi (carg): Likewise.
2329         * doc/posix-functions/cargf.texi (cargf): Likewise.
2330         * doc/posix-functions/casin.texi (casin): Likewise.
2331         * doc/posix-functions/casinf.texi (casinf): Likewise.
2332         * doc/posix-functions/casinh.texi (casinh): Likewise.
2333         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
2334         * doc/posix-functions/catan.texi (catan): Likewise.
2335         * doc/posix-functions/catanf.texi (catanf): Likewise.
2336         * doc/posix-functions/catanh.texi (catanh): Likewise.
2337         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
2338         * doc/posix-functions/ccos.texi (ccos): Likewise.
2339         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
2340         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
2341         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
2342         * doc/posix-functions/cexp.texi (cexp): Likewise.
2343         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
2344         * doc/posix-functions/cimag.texi (cimag): Likewise.
2345         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
2346         * doc/posix-functions/clog.texi (clog): Likewise.
2347         * doc/posix-functions/clogf.texi (clogf): Likewise.
2348         * doc/posix-functions/conj.texi (conj): Likewise.
2349         * doc/posix-functions/conjf.texi (conjf): Likewise.
2350         * doc/posix-functions/cpow.texi (cpow): Likewise.
2351         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
2352         * doc/posix-functions/cproj.texi (cproj): Likewise.
2353         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
2354         * doc/posix-functions/creal.texi (creal): Likewise.
2355         * doc/posix-functions/crealf.texi (crealf): Likewise.
2356         * doc/posix-functions/csin.texi (csin): Likewise.
2357         * doc/posix-functions/csinf.texi (csinf): Likewise.
2358         * doc/posix-functions/csinh.texi (csinh): Likewise.
2359         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
2360         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
2361         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
2362         * doc/posix-functions/ctan.texi (ctan): Likewise.
2363         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
2364         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
2365         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
2366         * doc/posix-headers/complex.texi (complex.h): Likewise.
2367
2368 2010-10-07  Jim Meyering  <meyering@redhat.com>
2369
2370         parse-datetime: avoid compilation failure on OpenBSD 4.7
2371         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2372         This works around a compilation failure on OpenBSD 4.7:
2373         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2374
2375 2010-10-07  Eric Blake  <eblake@redhat.com>
2376
2377         docs: update cygwin progress
2378         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2379         1.7.6.
2380         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2381         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2382         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2383         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2384         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2385         Likewise.
2386         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2387         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2388         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2389         Likewise.
2390         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2391         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2392         Likewise.
2393         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2394         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2395         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2396         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2397         Likewise.
2398         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2399         Likewise.
2400         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2401
2402         docs: update parse-datetime history
2403         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2404         documentation of this function's history and alternatives.
2405
2406         cygwin: use more robust version check
2407         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2408         exclude an eventual cygwin 1.9.1.
2409         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2411         (gl_FUNC_STRCASESTR): Likewise.
2412         Reported by Bruno Haible.
2413
2414 2010-10-06  Bruno Haible  <bruno@clisp.org>
2415
2416         string, sys_select: Avoid #including large headers unless necessary.
2417         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2418         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2419         OSF/1, BeOS, Haiku.
2420         Reported by Jim Meyering.
2421
2422 2010-10-05  Eric Blake  <eblake@redhat.com>
2423
2424         memmem, strstr, strcasestr: fix bug with long periodic needle
2425         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2426         periodic needle having false positive.
2427         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2428         and cygwin 1.7.7.
2429         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2431         (gl_FUNC_STRCASESTR): Likewise.
2432         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2433         * tests/test-memmem.c (main): Expose the bug.
2434         * tests/test-strcasestr.c (main): Likewise.
2435         * tests/test-strstr.c (main): Likewise.
2436         * tests/test-c-strcasestr.c (main): Likewise.
2437         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2438         * doc/posix-functions/strstr.texi (strstr): Likewise.
2439         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2440         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2441
2442 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2443
2444         parse-datetime: do some more renaming
2445         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2446         parse_datetime, not get_date.  Mention the renaming.
2447         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2448         in comments.
2449         * m4/bison.m4: Likewise.
2450
2451 2010-10-05  Eric Blake  <eblake@redhat.com>
2452
2453         parse-datetime: better name than get_date
2454         * NEWS: Reword the deprecation notice.
2455         * modules/get_date: Rename to modules/parse-datetime.
2456         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2457         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2458         * lib/get_date.y: Rename to lib/parse-datetime.y.
2459         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2460         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2461         * doc/getdate.texi: Provide fallback wrapper.
2462         * lib/getdate.h: Move guts, and wrap...
2463         * lib/parse-datetime.h: ...new file.
2464         * lib/parse-datetime.y (get_date): Rename...
2465         (parse_datetime): ...to this.
2466         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2467         (gl_PARSE_DATETIME): ...to this.
2468         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2469         documentation.
2470         * modules/getdate (Files): Provide fallback docs and header.
2471         (Notice, Depends-on): Update references.
2472         * tests/test-parse-datetime.c: Likewise.
2473         * DEPENDENCIES: Likewise.
2474         * MODULES.html.sh (Date and time <time.h>): Likewise.
2475         * doc/parse-datetime.texi (Date input formats)
2476         (Authors of parse_datetime): Likewise.
2477         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2478         (Include): Likewise.
2479         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2480         * gnulib-tool: Likewise.
2481         * m4/bison.m4 (gl_BISON): Likewise.
2482         Suggested by Bruno Haible.
2483
2484 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2485
2486         more ports to Solaris tr, which needs [] around ranges
2487         * gnulib-tool: Solaris tr needs [] around ranges.
2488         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2489         * tests/test-pipe-filter-gi1.c (main): Likewise.
2490         * tests/test-pipe-filter-ii1.c (main): Likewise.
2491
2492 2010-10-05  Eric Blake  <eblake@redhat.com>
2493
2494         bootstrap: fix Solaris regression
2495         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2496         around ranges.
2497         Reported by Pádraig Brady.
2498
2499         bootstrap: work with pkg-config
2500         * build-aux/bootstrap (check_versions): Also transliterate - in
2501         prerequisite name.
2502         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2503         prerequisites that were already found, to avoid confusion.
2504         Reported by Justin Clift.
2505
2506         faccessat: remove unused wrappers
2507         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2508         presence of these wrappers dragged in -lgen on Solaris.
2509         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2510
2511 2010-10-05  Jim Meyering  <meyering@redhat.com>
2512
2513         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2514         * Makefile (sc_pragma_columns): New syntax-check rule.
2515
2516 2010-10-04  Bruno Haible  <bruno@clisp.org>
2517
2518         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2519         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2520         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2521         Reported by Bruce Korb and Eric Blake.
2522
2523 2010-10-04  Bruno Haible  <bruno@clisp.org>
2524
2525         threadlib: Make option --with-libpth-prefix work.
2526         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2527         use $LIBPTH, not just -lpth.
2528
2529 2010-10-04  Bruno Haible  <bruno@clisp.org>
2530
2531         Avoid line length limitation from HP NonStop system header files.
2532         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2533         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2534         * lib/ctype.in.h: Likewise.
2535         * lib/dirent.in.h: Likewise.
2536         * lib/errno.in.h: Likewise.
2537         * lib/fcntl.in.h: Likewise.
2538         * lib/float.in.h: Likewise.
2539         * lib/getopt.in.h: Likewise.
2540         * lib/iconv.in.h: Likewise.
2541         * lib/inttypes.in.h: Likewise.
2542         * lib/langinfo.in.h: Likewise.
2543         * lib/locale.in.h: Likewise.
2544         * lib/math.in.h: Likewise.
2545         * lib/netdb.in.h: Likewise.
2546         * lib/netinet_in.in.h: Likewise.
2547         * lib/poll.in.h: Likewise.
2548         * lib/pthread.in.h: Likewise.
2549         * lib/pty.in.h: Likewise.
2550         * lib/sched.in.h: Likewise.
2551         * lib/se-selinux.in.h: Likewise.
2552         * lib/search.in.h: Likewise.
2553         * lib/signal.in.h: Likewise.
2554         * lib/spawn.in.h: Likewise.
2555         * lib/stdarg.in.h: Likewise.
2556         * lib/stddef.in.h: Likewise.
2557         * lib/stdint.in.h: Likewise.
2558         * lib/stdio.in.h: Likewise.
2559         * lib/stdlib.in.h: Likewise.
2560         * lib/string.in.h: Likewise.
2561         * lib/strings.in.h: Likewise.
2562         * lib/sys_file.in.h: Likewise.
2563         * lib/sys_ioctl.in.h: Likewise.
2564         * lib/sys_select.in.h: Likewise.
2565         * lib/sys_socket.in.h: Likewise.
2566         * lib/sys_stat.in.h: Likewise.
2567         * lib/sys_time.in.h: Likewise.
2568         * lib/sys_times.in.h: Likewise.
2569         * lib/sys_utsname.in.h: Likewise.
2570         * lib/sys_wait.in.h: Likewise.
2571         * lib/sysexits.in.h: Likewise.
2572         * lib/termios.in.h: Likewise.
2573         * lib/time.in.h: Likewise.
2574         * lib/unistd.in.h: Likewise.
2575         * lib/wchar.in.h: Likewise.
2576         * lib/wctype.in.h: Likewise.
2577         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2578         * modules/ctype (Makefile.am): Likewise.
2579         * modules/dirent (Makefile.am): Likewise.
2580         * modules/errno (Makefile.am): Likewise.
2581         * modules/fcntl-h (Makefile.am): Likewise.
2582         * modules/float (Makefile.am): Likewise.
2583         * modules/getopt-posix (Makefile.am): Likewise.
2584         * modules/iconv-h (Makefile.am): Likewise.
2585         * modules/inttypes (Makefile.am): Likewise.
2586         * modules/langinfo (Makefile.am): Likewise.
2587         * modules/locale (Makefile.am): Likewise.
2588         * modules/math (Makefile.am): Likewise.
2589         * modules/netdb (Makefile.am): Likewise.
2590         * modules/netinet_in (Makefile.am): Likewise.
2591         * modules/poll-h (Makefile.am): Likewise.
2592         * modules/pthread (Makefile.am): Likewise.
2593         * modules/pty (Makefile.am): Likewise.
2594         * modules/sched (Makefile.am): Likewise.
2595         * modules/search (Makefile.am): Likewise.
2596         * modules/selinux-h (Makefile.am): Likewise.
2597         * modules/signal (Makefile.am): Likewise.
2598         * modules/spawn (Makefile.am): Likewise.
2599         * modules/stdarg (Makefile.am): Likewise.
2600         * modules/stddef (Makefile.am): Likewise.
2601         * modules/stdint (Makefile.am): Likewise.
2602         * modules/stdio (Makefile.am): Likewise.
2603         * modules/stdlib (Makefile.am): Likewise.
2604         * modules/string (Makefile.am): Likewise.
2605         * modules/strings (Makefile.am): Likewise.
2606         * modules/sys_file (Makefile.am): Likewise.
2607         * modules/sys_ioctl (Makefile.am): Likewise.
2608         * modules/sys_select (Makefile.am): Likewise.
2609         * modules/sys_socket (Makefile.am): Likewise.
2610         * modules/sys_stat (Makefile.am): Likewise.
2611         * modules/sys_time (Makefile.am): Likewise.
2612         * modules/sys_times (Makefile.am): Likewise.
2613         * modules/sys_utsname (Makefile.am): Likewise.
2614         * modules/sys_wait (Makefile.am): Likewise.
2615         * modules/sysexits (Makefile.am): Likewise.
2616         * modules/termios (Makefile.am): Likewise.
2617         * modules/time (Makefile.am): Likewise.
2618         * modules/unistd (Makefile.am): Likewise.
2619         * modules/wchar (Makefile.am): Likewise.
2620         * modules/wctype (Makefile.am): Likewise.
2621
2622 2010-10-04  Bruno Haible  <bruno@clisp.org>
2623
2624         read-file tests: Avoid a test failure on NonStop Kernel.
2625         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2626         a regular file.
2627         Reported by Joachim Schmitz <schmitz@hp.com>.
2628
2629 2010-10-03  Bruno Haible  <bruno@clisp.org>
2630
2631         gnulib-tool: Fixes for --create-testdir with --libtool.
2632         * gnulib-tool (func_get_automake_snippet): Don't augment
2633         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2634         an executable.
2635         (func_create_testdir): Handle module 'alloca' like func_import.
2636         Reported by Bruce Korb <bruce.korb@gmail.com>.
2637
2638 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2639
2640         Avoid some lines longer than 80 characters.
2641         * lib/stdint.in.h: Break long comment lines.
2642         * lib/math.in.h: Likewise.
2643         (_GL_NUM_UINT_WORDS): New macro, for readability.
2644         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2645         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2646         * lib/stdlib.in.h: Likewise.
2647         * lib/spawn.in.h: Likewise.
2648         * lib/sys_socket.in.h: Update an URL.
2649         * lib/sys_stat.in.h: Break long line.
2650
2651 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
2652
2653         Improve pmccabe2html.
2654         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
2655         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
2656         when the sources change. Remove the line in the HTML about "Used
2657         ranges" (which implied that there might be other unused ranges),
2658         rename "Resume" to "Summary" (easier to understand for more users).
2659         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
2660         styles, and some unnecessary blank lines.
2661
2662 2010-10-03  Bruno Haible  <bruno@clisp.org>
2663             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2664
2665         acl: Add support for ACLs on NonStop Kernel.
2666         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
2667         Check whether the function aclsort() exists.
2668         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
2669         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
2670         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2671         (acl_nontrivial [HAVE_ACLSORT]: New function.
2672         (file_has_acl): Implement for NonStop Kernel.
2673         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2674         (qset_acl): Implement for NonStop Kernel.
2675         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
2676         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2677         (main): Implement for NonStop Kernel.
2678         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
2679         Kernel. Handle this flavor.
2680         * tests/test-set-mode-acl.sh: Likewise.
2681         * tests/test-copy-acl.sh: Likewise.
2682         * tests/test-copy-file.sh: Likewise.
2683
2684 2010-10-03  Bruno Haible  <bruno@clisp.org>
2685
2686         Info about ACLs on NonStop Kernel.
2687         * doc/acl-resources.txt: Add info about NonStop Kernel.
2688         References by Joachim Schmitz <schmitz@hp.com>.
2689
2690 2010-10-02  Bruno Haible  <bruno@clisp.org>
2691
2692         Define missing EDQUOT on NonStop Kernel.
2693         * lib/errno.in.h (EDQUOT): Assign a value if missing.
2694         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
2695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
2696         missing.
2697         * doc/posix-headers/errno.texi: Mention the NSK bug.
2698         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
2699         Reported by Joachim Schmitz <schmitz@hp.com>.
2700
2701 2010-10-02  Bruno Haible  <bruno@clisp.org>
2702
2703         Update doc for POSIX:2008.
2704         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
2705         Update URL of POSIX specification.
2706
2707 2010-10-02  Bruno Haible  <bruno@clisp.org>
2708
2709         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
2710         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
2711         from gnulib, not from Automake.
2712
2713 2010-10-02  Bruno Haible  <bruno@clisp.org>
2714
2715         New module 'system-posix'.
2716         * modules/system-posix: New file.
2717         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
2718         module is present.
2719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2720         GNULIB_SYSTEM_POSIX.
2721         * modules/stdlib (Depends-on): Remove sys_wait.
2722         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
2723         * doc/posix-functions/system.texi: Mention the new module.
2724         * doc/posix-headers/stdlib.texi: Likewise.
2725         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
2726         define test_sys_wait_macros to a no-op.
2727         Reported by Sam Steingold <sds@gnu.org>.
2728
2729 2010-09-30  Bruno Haible  <bruno@clisp.org>
2730
2731         More renaming from 'getdate' to 'get_date'.
2732         * doc/get_date.texi: Renamed from doc/getdate.texi.
2733         * modules/get_date (Files): Update.
2734         * MODULES.html.sh (Date and time <time.h>): Update.
2735         * DEPENDENCIES: Update.
2736         * gnulib-tool: Update comment.
2737         * m4/bison.m4 (gl_BISON): Likewise.
2738         * m4/get_date.m4 (gl_GET_DATE): Likewise.
2739
2740 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
2741
2742         bootstrap: support ACLOCAL_FLAGS during aclocal
2743         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
2744         can add additional -I dir for third-party .m4 files.
2745
2746 2010-09-30  Eric Blake  <eblake@redhat.com>
2747
2748         bootstrap: use glibtoolize on MacOS
2749         * build-aux/bootstrap (check_versions): Convert libtool into
2750         libtoolize.
2751         (tool search): Move libtool check earlier, and look for
2752         glibtoolize for MacOS.
2753         (gnulib_tool_options): Auto-add --libtool when appropriate.
2754         Reported by Justin Clift.
2755
2756         poll: fix typo that broke test on MacOS
2757         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
2758         Reported by Justin Clift.
2759
2760         getdate: rename to get_date
2761         Note: getdate.h is not renamed, to minimize client impact.
2762         * modules/getdate: Mark obsolete.  Move old contents...
2763         * modules/get_date: ...to new module name.
2764         * modules/getdate-tests: Move...
2765         * modules/get_date-tests: ...here.
2766         * m4/getdate.m4: Move...
2767         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
2768         * lib/getdate.y: Move...
2769         * lib/get_date.y: ...here.
2770         * tests/test-getdate.c: Move...
2771         * tests/test-get_date.c: ...here.
2772         * doc/posix-functions/getdate.texi (getdate): Update name.
2773         * NEWS: Mention the change.
2774
2775 2010-09-29  Bruno Haible  <bruno@clisp.org>
2776
2777         Separate the module 'waitpid' from the module 'sys_wait'.
2778         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
2779         present.
2780         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
2781         gl_MODULE_INDICATOR_FOR_TESTS.
2782         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
2783         * modules/sys_wait (Depends-on): Remove waitpid.
2784         (Makefile.am): Substitute GNULIB_WAITPID.
2785         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
2786         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
2787         signature only if the 'waitpid' module is present.
2788         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
2789         * NEWS: Mention the change.
2790         * modules/grantpt (Depends-on): Add waitpid.
2791         * modules/wait-process (Depends-on): Likewise.
2792
2793 2010-09-29  Bruno Haible  <bruno@clisp.org>
2794
2795         More tests for module 'sys_wait'.
2796         * modules/sys_wait-c++-tests: New file.
2797         * tests/test-sys_wait-c++.cc: New file.
2798         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
2799         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2800
2801 2010-09-29  Bruno Haible  <bruno@clisp.org>
2802
2803         New module 'waitpid'.
2804         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
2805         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
2806         Don't include <process.h>.
2807         (waitpid): Declare only, using modern idiom.
2808         * m4/waitpid.m4: New file.
2809         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
2810         * modules/waitpid: New file.
2811         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2812         (Makefile.am): Update.
2813         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2814
2815 2010-09-28  Bruno Haible  <bruno@clisp.org>
2816
2817         poll: Assume ANSI C.
2818         * lib/poll.c (poll): Use an ANSI C declaration.
2819
2820 2010-09-28  Bruno Haible  <bruno@clisp.org>
2821
2822         poll-h: Create poll.h on all platforms.
2823         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2824         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2825         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2826         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2827         (gl_REPLACE_POLL_H): Don't set POLL_H.
2828         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2829         * modules/poll-h (Depends-on): Add include_next.
2830         (Makefile.am): Create poll.h unconditionally. Substitute also
2831         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2832
2833 2010-09-28  Bruno Haible  <bruno@clisp.org>
2834
2835         Tests for module 'poll-h'.
2836         * modules/poll-h-c++-tests: New file.
2837         * tests/test-poll-h-c++.cc: New file.
2838
2839         Tests for module 'poll-h'.
2840         * modules/poll-h-tests: New file.
2841         * tests/test-poll-h.c: New file.
2842
2843 2010-09-28  Bruno Haible  <bruno@clisp.org>
2844
2845         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2846         * modules/poll-h (Depends-on): Add 'extensions'.
2847
2848 2010-09-28  Bruno Haible  <bruno@clisp.org>
2849
2850         New module 'poll-h'.
2851         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2852         (poll): Use modern idiom.
2853         * modules/poll-h: New file.
2854         * modules/poll (Files): Remove lib/poll.in.h.
2855         (Depends-on): Add poll-h.
2856         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2857         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2858         * m4/poll_h.m4: New file.
2859         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2860         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2861         and invoke gl_REPLACE_POLL_H.
2862         * lib/poll.c: Use common idiom.
2863         * tests/test-poll.c: Likewise.
2864         * doc/posix-headers/poll.texi: Mention the poll-h module.
2865         Suggested by Eric Blake.
2866
2867 2010-09-26  Bruno Haible  <bruno@clisp.org>
2868
2869         sys_wait: Implement WSTOPSIG.
2870         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2871         Reported by Simon Josefsson.
2872
2873 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2874
2875         stdlib, sys_wait: Avoid compilation error on mingw.
2876         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2877
2878 2010-09-26  Bruno Haible  <bruno@clisp.org>
2879
2880         stdlib tests: Avoid code duplication.
2881         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2882         * modules/sys_wait-tests (Files): Likewise.
2883         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2884         * tests/test-stdlib.c: Include test-sys_wait.h.
2885         (main): Invoke test_sys_wait_macros.
2886         * tests/test-sys_wait.c: Include test-sys_wait.h.
2887         (main): Invoke test_sys_wait_macros.
2888
2889 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2890
2891         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2892         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2893         sure Windows sockets are working before calling getaddrinfo.
2894         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2895         * doc/gnulib.texi (Windows sockets): Fix typo.
2896
2897 2010-09-25  Bruno Haible  <bruno@clisp.org>
2898
2899         Tests for module 'regex-quote'.
2900         * modules/regex-quote-tests: New file.
2901         * tests/test-regex-quote.c: New file.
2902
2903         New module 'regex-quote'.
2904         * lib/regex-quote.h: New file.
2905         * lib/regex-quote.c: New file.
2906         * modules/regex-quote: New file.
2907         Suggested by Reuben Thomas <rrt@sc3d.org>.
2908
2909 2010-09-24  Bruno Haible  <bruno@clisp.org>
2910
2911         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2912         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2913
2914 2010-09-23  Bruno Haible  <bruno@clisp.org>
2915
2916         setenv: Relax license.
2917         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2918         Blake.
2919         Requested by Eric Blake.
2920
2921 2010-09-22  Bruno Haible  <bruno@clisp.org>
2922
2923         termios: Relax license.
2924         * modules/termios (License): Change to LGPLv2+.
2925         Requested by Eric Blake.
2926
2927 2010-09-22  Bruno Haible  <bruno@clisp.org>
2928
2929         threadlib: Allow the package to change the default to 'no'.
2930         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2931         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2932         Reported by Paul Eggert.
2933
2934 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2935             Bruno Haible  <bruno@clisp.org>
2936
2937         Fix endless loop in mbmemcasecoll.
2938         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2939         byte.
2940         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2941
2942 2010-09-22  Bruno Haible  <bruno@clisp.org>
2943
2944         Tests for module 'memcoll'.
2945         * modules/memcoll-tests: New file.
2946         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2947
2948         memcoll, xmemcoll: Clarify size vs. length.
2949         * modules/memcoll.c (memcoll0): Clarify specification.
2950         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2951         passed to collate_error.
2952
2953 2010-09-22  Bruno Haible  <bruno@clisp.org>
2954
2955         Tests for module 'memcasecmp'.
2956         * modules/memcasecmp-tests: New file.
2957         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2958
2959 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2960
2961         * lib/pthread.in.h: Add split double-inclusion guard, and include
2962         system <pthread.h> if there is one.  Use @@-style as in other
2963         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2964         pthread.h doesn't.
2965         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2966         (pthread_mutexattr_settype, pthread_mutex_trylock):
2967         New static inline functions, if there's no system <pthread.h>.
2968         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2969         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2970         Approximate with mutexes if the system lacks spinlocks, as in
2971         MacOS.
2972         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2973         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2974         @@-style.  Check for spinlocks separately.
2975         (gl_PTHREAD_DEFAULTS): New macro.
2976         * modules/pthread: Redo to use a more typical style for in.h files.
2977
2978 2010-09-21  Eric Blake  <eblake@redhat.com>
2979
2980         net_if: enhance tests
2981         * tests/test-net_if.c (main): Move signature checks earlier.
2982         Print failures to stderr.
2983         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2984         Document the bug that we do not yet fix.
2985
2986 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2987
2988         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2989         about gnulib, not GSS.
2990
2991 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2992
2993         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2994         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2995         for Emacs.
2996         * build-aux/pmccabe2html: Make Makefile.am example code more
2997         cut-and-paste friendly.
2998
2999 2010-09-21  Simon Josefsson  <simon@josefsson.org>
3000
3001         * tests/test-net_if.c: New file.
3002         * modules/net_if-tests: New file.
3003
3004 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3005
3006         pthread: add pthread_spin_destroy
3007         * lib/pthread.in.h (pthread_spin_destroy): New function.
3008
3009 2010-09-19  Bruno Haible  <bruno@clisp.org>
3010
3011         gnulib-tool: Fix --help output.
3012         * gnulib-tool (func_usage): Fix help message.
3013         Reported by Reuben Thomas <rrt@sc3d.org>.
3014
3015 2010-09-18  Jim Meyering  <meyering@redhat.com>
3016
3017         maint.mk: avoid unexpanded \n in two diagnostics
3018         * top/maint.mk (sc_prohibit_always_true_header_tests):
3019         Don't use a literal \n in a halt=... assignment.  It would not be
3020         expanded, and the two \n bytes would appear in the diagnostic output
3021         rather than the desired newline.  Use halt=$$(printf ... instead.
3022         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3023
3024 2010-09-18  Bruno Haible  <bruno@clisp.org>
3025
3026         netinet_in: Doc tweak.
3027         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
3028         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3029
3030 2010-09-18  Jim Meyering  <meyering@redhat.com>
3031
3032         init.sh: correct an outdated comment
3033         * tests/init.sh (create_exe_shims_):  s/function/alias/
3034
3035         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
3036         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
3037         a file named "*.exe" is removed between the glob expansion and the
3038         processing of that oddly named file.
3039
3040 2010-09-17  Eric Blake  <eblake@redhat.com>
3041
3042         mirbsd: add some more support
3043         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
3044         in BSD family.
3045         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
3046         devices as OpenBSD.
3047         * m4/host-os.m4 (mirbsd): Add MirBSD.
3048
3049         tests: fix unportable assumption on sys/wait.h
3050         * tests/test-sys_wait.c (main): Relax test.
3051         * tests/test-stdlib.c (main): Likewise.
3052
3053         init.sh: accomodate directory with no .exes
3054         * tests/init.sh: Accomodate directory containing only scripts.
3055
3056         tests: avoid compiler warning
3057         * tests/test-stdlib.c (main): Use the variable.
3058
3059         fdutimens, fdutimensat: update signature, again
3060         * lib/utimens.h (gl_futimens): Delete, and move signature...
3061         (fdutimens): ...here.
3062         (fdutimensat): Rearrange signature.
3063         (lutimensat): Rename variable for clarity.
3064         * lib/fdutimensat.c (fdutimensat): Update signature.
3065         * lib/utimens.c (fdutimens): Likewise.
3066         (gl_futimens): Delete.
3067         (utimens, lutimens): Update callers.
3068         * lib/futimens.c (futimens): Likewise.
3069         * tests/test-fdutimensat.c: Likewise.
3070         * tests/test-utimens.c: Likewise.
3071         * tests/test-futimens.h: Update comment.
3072         * NEWS: Mention this.
3073         Suggested by Paul Eggert.
3074
3075 2010-09-17  Bruno Haible  <bruno@clisp.org>
3076
3077         Take over the maintenance of some older macros from Autoconf.
3078         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
3079         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
3080         GNU Autoconf.
3081         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
3082         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
3083
3084 2010-09-17  Eric Blake  <eblake@redhat.com>
3085
3086         fdutimensat: drop atflag validation
3087         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
3088         with valid fd, to close a race scenario where futimens is
3089         unsupported and FILE was replaced by a symlink.
3090         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
3091         accordingly.
3092         Suggested by Paul Eggert.
3093
3094 2010-09-16  Bruno Haible  <bruno@clisp.org>
3095
3096         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
3097         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
3098
3099 2010-09-16  Bruno Haible  <bruno@clisp.org>
3100
3101         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
3102         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
3103         login_tty exists.
3104         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3105
3106 2010-09-16  Bruno Haible  <bruno@clisp.org>
3107
3108         login_tty: Make the replacement code work on BSD systems.
3109         * lib/login_tty.c: Include <sys/ioctl.h>.
3110         (login_tty): Use ioctl TIOCSCTTY when available.
3111         * modules/login_tty (Depends-on): Add sys_ioctl.
3112         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3113
3114 2010-09-16  Bruno Haible  <bruno@clisp.org>
3115
3116         login_tty: Stricter unit test.
3117         * modules/login_tty-tests (Depends-on): Add tcgetsid.
3118         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
3119         and tcgetsid() after login_tty.
3120         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3121
3122 2010-09-16  Bruno Haible  <bruno@clisp.org>
3123
3124         New module 'tcgetsid'.
3125         * lib/tcgetsid.c: New file.
3126         * m4/tcgetsid.m4: New file.
3127         * modules/tcgetsid: New file.
3128         * modules/termios (Depends-on): Add c++defs, warn-on-use.
3129         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
3130         GNULIB_TCGETSID, HAVE_TCGETSID.
3131         * lib/termios.in.h: Include <sys/types.h>.
3132         (tcgetsid): New declaration.
3133         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
3134         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
3135         * doc/posix-functions/tcgetsid.texi: Mention the new module.
3136         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
3137
3138 2010-09-16  Bruno Haible  <bruno@clisp.org>
3139
3140         Tests for module 'termios'.
3141         * modules/termios-c++-tests: New file.
3142         * modules/termios-tests: New file.
3143         * tests/test-termios-c++.cc: New file.
3144         * tests/test-termios.c: New file.
3145
3146         New module 'termios'.
3147         * modules/termios: New file.
3148         * lib/termios.in.h: New file.
3149         * m4/termios_h.m4: New file.
3150         * doc/posix-headers/termios.texi: Mention the new module.
3151
3152 2010-09-16  Eric Blake  <eblake@redhat.com>
3153
3154         fdutimensat: add an atflag parameter
3155         * lib/fdutimensat.c (fdutimensat): Add new parameter.
3156         * lib/utimens.h (fdutimensat): Update prototype.
3157         * tests/test-fdutimensat.c: Adjust test to match.
3158         * NEWS: Document the change.
3159         Suggested by Paul Eggert.
3160
3161 2010-09-16  Bruno Haible  <bruno@clisp.org>
3162
3163         Fix typos in comments.
3164         * lib/striconveh.h: Fix typo in comment.
3165         * lib/login_tty.c (login_tty): Likewise.
3166
3167 2010-09-15  Bruno Haible  <bruno@clisp.org>
3168
3169         stdlib: clarify MirBSD WEXITSTATUS bug
3170         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
3171         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3172
3173 2010-09-15  Eric Blake  <eblake@redhat.com>
3174
3175         stdlib: work around MirBSD WEXITSTATUS bug
3176         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
3177         * modules/stdlib (Depends-on): Add sys_wait.
3178         * tests/test-sys_wait.c (main): Enhance test.
3179         * tests/test-stdlib.c (main): Likewise.
3180         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
3181
3182         docs: mention MacOS issue with WEXITSTATUS(constant)
3183         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
3184         issue.
3185         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3186
3187         strnlen: add tests
3188         * modules/strnlen-tests: New file.
3189         * tests/test-strnlen.c: Likewise.
3190
3191 2010-09-14  Bruno Haible  <bruno@clisp.org>
3192
3193         unistr/base: Avoid link errors when module 'libunistring' is also used.
3194         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
3195         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
3196         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
3197         Declare also when HAVE_LIBUNISTRING is set.
3198         Reported by Pádraig Brady <P@draigbrady.com>.
3199
3200 2010-09-14  Eric Blake  <eblake@redhat.com>
3201
3202         test-rawmemchr: make more robust
3203         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
3204         (Depends-on, configure.ac): Add needed prerequisites to use it.
3205         * modules/memchr-tests (Files, Depends-on, configure.ac):
3206         Likewise, to avoid implicit reliance on memchr module prereqs.
3207         * tests/test-memchr.c (main): Ensure proper masking.
3208         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
3209         reads.
3210
3211         memchr: detect glibc Alpha bug
3212         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
3213         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
3214         Alpha.
3215         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
3216         * tests/test-memchr.c (main): Enhance test.
3217         Reported by Nelson H. F. Beebe.
3218
3219 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3220
3221         fts, getcwd, glob: audit for dirfd returning -1
3222         * lib/fts.c (opendir): Remove #define; no longer used.
3223         (opendirat): New arg PDIR_FD.  All callers changed.
3224         (fts_build, _opendir2): Use new opendirat to avoid the need for
3225         dirfd, or for checking whether dirfd returns a negative value.
3226         Don't use opendir; always use openat followed by fdopendir.
3227         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
3228         it.
3229         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
3230         returns -1 here.
3231         * modules/fts (Depends-on): Remove dirfd.
3232         * modules/getcwd (Depends-on): Likewise.
3233
3234 2010-09-13  Eric Blake  <eblake@redhat.com>
3235
3236         float: fix broken MirBSD header
3237         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
3238         * doc/posix-headers/float.texi (float.h): Document it.
3239
3240 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3241
3242         fts: use O_NOFOLLOW to avoid race condition when opening a directory
3243         * lib/fts.c (opendirat): New arg extra_flags.
3244         (__opendir2): Use it to avoid following symlinks when opening
3245         a directory, if symlinks are not supposed to be followed.  See
3246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
3247
3248         fdopendir: preserve argument fd before returning
3249         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
3250         (fdopendir_with_dup, fd_clone_opendir): New static functions.
3251         (fdopendir): Use them, arranging for FD to be open to the same
3252         directory that it was when it started.  (It might be temporarily
3253         closed while fdopendir is running, so this not thread- or
3254         signal-safe.)  Be careful to do the right thing even when file
3255         descriptors are scarce and dup fails with errno == EMFILE.  See
3256         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
3257
3258 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
3259
3260         regex: Pass the system regex if its only problem is 32-bit regoff_t.
3261         * NEWS: Document change.
3262         * m4/regex.m4: Disable test for regoff_t size.
3263
3264 2010-09-13  Jim Meyering  <meyering@redhat.com>
3265
3266         fts: don't operate on an invalid file descriptor after failed dup
3267         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
3268         negative file descriptor.
3269
3270 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         savedir: add streamsavedir, deprecate fdsavedir
3273         * NEWS: Mention deprecation of fdsavedir.
3274         * lib/savedir.c (streamsavedir): New extern function, whose name
3275         ends in "savedir" to be consistent with the others.  This differs
3276         from savedirstream in that it doesn't close its argument.  The
3277         next version of GNU tar will use this instead of fdsavedir, to
3278         avoid some race conditions and conserve file descriptors.
3279         (savedirstream): Reimplement as a wrapper around streamsavedir.
3280         (fdsavedir): Add a comment deprecating this function.  As far as
3281         I know, only GNU tar used it, and GNU tar doesn't need it any more.
3282         * lib/savedir.h (streamsavedir): New decl.
3283         (fdsavedir): Add a comment deprecating this.
3284
3285 2010-09-10  Bruno Haible  <bruno@clisp.org>
3286
3287         langinfo: Fix last commit.
3288         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
3289         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
3290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3291
3292 2010-09-10  Bruno Haible  <bruno@clisp.org>
3293
3294         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
3295         * lib/progreloc.c (O_EXEC): Define fallback.
3296
3297 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3298
3299         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
3300         * NEWS: Document recent changes to fcntl-h.
3301         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
3302         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
3303         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
3304         Similarly for O_SEARCH; this last was already true, but not documented.
3305         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
3306         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
3307         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
3308         Likewise.
3309         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
3310         is zero, not whether it is defined.
3311         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
3312         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
3313         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
3314
3315 2010-09-10  Bruno Haible  <bruno@clisp.org>
3316
3317         langinfo, nl_langinfo: Fix for IRIX 5.3.
3318         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
3319         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
3320         HAVE_LANGINFO_YESEXPR.
3321         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
3322         HAVE_LANGINFO_YESEXPR.
3323         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
3324         HAVE_LANGINFO_T_FMT_AMPM is 0.
3325         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
3326         HAVE_LANGINFO_YESEXPR is 0.
3327         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
3328         NOEXPR.
3329         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
3330         * doc/posix-functions/nl_langinfo.texi: Likewise.
3331         Reported by Eric Blake.
3332
3333 2010-09-10  Bruno Haible  <bruno@clisp.org>
3334
3335         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
3336         * doc/glibc-functions/login_tty.texi: Mention the include file problem
3337         on FreeBSD 8.0 and OpenBSD 4.6.
3338         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
3339         * m4/pty_h.m4 (gl_PTY_H): Likewise.
3340         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
3341         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
3342         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
3343         ac_includes_default.
3344         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3345
3346 2010-09-09  Eric Blake  <eblake@redhat.com>
3347
3348         strsignal: work around NetBSD bug
3349         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
3350         * lib/string.in.h (includes): Likewise.
3351         * doc/posix-functions/strsignal.texi (strsignal): Document the
3352         bug.
3353         Reported by Nelson H. F. Beebe.
3354
3355         gnulib-tool: work with NetBSD /bin/sh
3356         * gnulib-tool (func_cache_var, func_cache_lookup_module)
3357         (func_get_description, func_get_comment, func_get_status)
3358         (func_get_notice, func_get_applicability, func_get_filelist)
3359         (func_get_dependencies, func_get_autoconf_early_snippet)
3360         (func_get_autoconf_snippet, func_get_automake_snippet)
3361         (func_get_include_directive, func_get_link_directive)
3362         (func_get_license, func_get_maintainer, func_import): Avoid
3363         shell syntax errors from parsing syntax extensions.
3364
3365 2010-09-09  Bruno Haible  <bruno@clisp.org>
3366
3367         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3368         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3369         a reliable way to determine whether the 'alias' command works.
3370
3371 2010-09-08  Jim Meyering  <meyering@redhat.com>
3372
3373         init.sh: penalize a set-x-impaired shell; don't disqualify it
3374         * tests/init.sh: Too many shells corrupt application stderr when
3375         you set -x, so we can't afford to disqualify them, since at least
3376         on Irix-6.5, that would disqualify all bourne shells.
3377         Instead, use a two-pass approach.
3378         On the first pass, try to find a shell that meets the stricter
3379         condition that set -x does not corrupt stderr.
3380         If no shell meets the stricter condition, retest each candidate
3381         shell, but without that extra condition.  Finally, when
3382         VERBOSE=yes is requested and set -x might cause trouble, simply
3383         issue a warning and refrain from enabling debug output.
3384
3385 2010-09-08  Eric Blake  <eblake@redhat.com>
3386
3387         unsetenv: fix OpenBSD bug
3388         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3389         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3390         documentation.
3391         Reported by Jim Meyering.
3392
3393         strtod: work around IRIX 6.5 bug
3394         * lib/strtod.c (strtod): Reparse number on shorter string if
3395         exponent parse was invalid.
3396         * tests/test-strtod.c (main): Add check for "0x1p 2".
3397         Reported by Tom G. Christensen.
3398
3399         getopt: optimize previous patch
3400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3401         empty variable.  Speed up awk script.
3402         Reported by Paolo Bonzini.
3403
3404 2010-09-08  Jim Meyering  <meyering@redhat.com>
3405
3406         test.sh: disqualify shells for which set -x corrupts stderr
3407         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3408         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3409         appear in stderr output.  For example, this command:
3410             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3411         prints "P=1" on those two systems:
3412
3413 2010-09-08  Bruno Haible  <bruno@clisp.org>
3414
3415         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3416         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3417         commands, because some shells ignore redirections when there is an
3418         error in the command lookup.
3419         Reported by Eric Blake.
3420
3421 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3422
3423         * lib/regex.h: Fix a mention of `regex_compile' (should be
3424         `re_compile_pattern').
3425         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3426         (re_set_registers): Correct name of parameter in comment.
3427
3428         * doc/regex.texi: Add documentation for missing syntax flags.
3429         Remove commented-out documentation of defunct syntax option
3430         RE_NO_EMPTY_ALTS.
3431         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3432         Add documentation of re_set_registers.
3433         Document trick to re-use a pattern buffer by setting fastmap manually.
3434         Update documentation of struct re_pattern_buffer per public members.
3435         Uncomment documentation of equivalence class operators and
3436         collating symbol operators, since they are now implemented,
3437         Explain leftmost-longest matching in relation to alternatives.
3438         Tidy documentation of substring matching.
3439         Remove POSIX documentation, which is done better in
3440         glibc, and refer the reader there. Keep BSD API documentation, as
3441         that is not readily available elsewhere.
3442
3443 2010-09-07  Eric Blake  <eblake@redhat.com>
3444
3445         getopt: handle POSIXLY_CORRECT set but not exported
3446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3447         export state of POSIXLY_CORRECT, due to bash set -o posix.
3448         Reported by Dustin J. Mitchell.
3449
3450 2010-09-05  Bruno Haible  <bruno@clisp.org>
3451
3452         gnulib-tool: Highlight the changed options.
3453         * gnulib-tool (func_usage): Display the --import, --add-import,
3454         --remove-import explanations in bold font.
3455
3456 2010-09-06  Karl Berry  <karl@gnu.org>
3457
3458         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3459
3460 2010-09-05  Bruno Haible  <bruno@clisp.org>
3461
3462         uniwidth/width: Update comment.
3463         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3464         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3465
3466 2010-09-05  Bruno Haible  <bruno@clisp.org>
3467
3468         isinf, isnan: Relax license.
3469         * modules/isinf (License): Change from GPL to LGPL, with consent from
3470         Ben Pfaff.
3471         * modules/isnan (License): Likewise.
3472         Requested by Ludovic Courtès.
3473
3474 2010-09-04  Bruno Haible  <bruno@clisp.org>
3475
3476         gnulib-tool: Help migration from --import to --add-import or --update.
3477         * gnulib-tool: Emit a verbose error message when --import is used
3478         without any module name.
3479
3480 2010-09-04  Bruno Haible  <bruno@clisp.org>
3481
3482         Update doc about gnulib-tool.
3483         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3484         'gnulib-tool --update' in more detail.
3485         Reported by Eric Blake.
3486
3487 2010-09-04  Bruno Haible  <bruno@clisp.org>
3488
3489         gnulib-tool: Change --import. New options --add/remove-import.
3490         * gnulib-tool: New options --add-import, --remove-import.
3491         (func_usage): Document them.
3492         (have_associative): Define always.
3493         (func_import): In import mode, don't merge the specified settings with
3494         the cached settings. Implement remove-import mode.
3495         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3496         Explain when to use them versus --import.
3497         (Simple update): Use --add-import instead of --import.
3498         * NEWS: Mention the change.
3499
3500 2010-09-04  Bruno Haible  <bruno@clisp.org>
3501
3502         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3503         separate gnulib.mk.
3504
3505 2010-09-04  Bruno Haible  <bruno@clisp.org>
3506
3507         gnulib-tool: Don't talk about CVS any more.
3508         * gnulib-tool (func_usage, func_import): Write "version control"
3509         instead of CVS.
3510
3511 2010-09-04  Jim Meyering  <meyering@redhat.com>
3512
3513         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3514         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3515         false positives (whose names may be ill-chosen) when searching
3516         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3517         would cause a false-positive.
3518
3519         avoid coreutils "make distcheck" failure
3520         Coreutils tests with an absolute build directory name that contains
3521         a space.  Not quoting this directory name caused a failure.
3522         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3523         * tests/test-vc-list-files-cvs.sh: Likewise.
3524
3525 2010-09-04  Bruno Haible  <bruno@clisp.org>
3526
3527         gnulib-tool: Avoid error when run in a package without Makefile.am.
3528         * gnulib-tool: When collecting the m4dirs in a package that does not
3529         have a Makefile.am, eliminate those directories that contain no
3530         gnulib-cache.m4. Fix expression that counts these directories.
3531
3532 2010-09-04  Bruno Haible  <bruno@clisp.org>
3533
3534         update-copyright test: Improve output when perl is missing or too old.
3535         * tests/test-update-copyright.sh: Move test of Perl version down after
3536         the test whether Perl exists. Provide an explanation relating Perl's
3537         error message to Automake's SKIP: message.
3538
3539 2010-09-04  Bruno Haible  <bruno@clisp.org>
3540
3541         Don't augment PATH in TESTS_ENVIRONMENT.
3542         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3543         set abs_aux_dir instead of augmenting PATH.
3544         * modules/vc-list-files-tests (Makefile.am): Likewise.
3545         * tests/test-update-copyright.sh: Augment PATH here.
3546         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3547         path_prepend_.
3548         * tests/test-vc-list-files-git.sh: Likewise.
3549
3550 2010-09-04  Jim Meyering  <meyering@redhat.com>
3551
3552         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3553         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3554
3555 2010-09-04  Bruno Haible  <bruno@clisp.org>
3556
3557         strdup: Fix compilation error in C++ mode.
3558         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3559         the macro.
3560
3561 2010-09-04  Bruno Haible  <bruno@clisp.org>
3562
3563         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3564         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3565         macro into a function.
3566         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3567
3568 2010-09-04  Bruno Haible  <bruno@clisp.org>
3569
3570         Set PATH_SEPARATOR the same way autoconf does.
3571         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3572         the value of PATH_SEPARATOR the same way autoconf-generated configure
3573         scripts do.
3574         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3575         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3576
3577 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3578
3579         Set PATH_SEPARATOR the same way autoconf does.
3580         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3581         the same way autoconf-generated configure scripts do.
3582         * posix-modules: Likewise.
3583
3584 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3585
3586         hash: fix safe_hasher const typo
3587         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3588         const; otherwise, there is a type error later.
3589
3590 2010-09-02  Jim Meyering  <meyering@redhat.com>
3591
3592         test-update-copyright.sh: require perl 5.8.0
3593         * tests/test-update-copyright.sh: Require 5.8.0,
3594         which Tom G. Christensen has confirmed is adequate,
3595         while 5.6.1 is not.
3596
3597 2010-09-02  Eric Blake  <eblake@redhat.com>
3598
3599         tests: init.sh improvements for re-exec'ing with zsh
3600         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3601         -vx through shell re-exec.
3602         Reported by Tom G. Christensen.
3603
3604         wctype: fix typo in previous commit
3605         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3606         Reported by Ludovic Courtès.
3607
3608 2010-09-02  Jim Meyering  <meyering@redhat.com>
3609
3610         test-update-copyright.sh: skip test if Perl is too old
3611         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3612         Reported by Tom G. Christensen.
3613
3614 2010-09-02  Bruno Haible  <bruno@clisp.org>
3615
3616         wctype: Avoid compilation error on IRIX 6.5.30.
3617         * lib/wctype.in.h (iswblank): Declare with a replacement if
3618         REPLACE_ISWBLANK is set.
3619         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3620         declared. Set REPLACE_ISWBLANK.
3621         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3622         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3623         * doc/posix-headers/wctype.texi: Likewise.
3624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3625
3626 2010-09-01  Bruno Haible  <bruno@clisp.org>
3627
3628         New module 'socketlib'.
3629         * modules/socketlib: New file.
3630         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3631         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3632         * modules/sockets (Depends-on): Add socketlib.
3633         Suggested by Sam Steingold <sds@gnu.org>.
3634
3635 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3636
3637         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3638
3639         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3640         when one needs search access to a directory but not read access.
3641         On systems where it is available, it works in some cases where
3642         O_RDONLY does not, namely on directories that are searchable but
3643         not readable, and which need only to be searchable.  If O_SEARCH
3644         is not available, fall back to the traditional method of using
3645         O_RDONLY.
3646
3647         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
3648         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
3649         when opening a directory that needs only to be searchable.
3650         * lib/chdir-safer.c (chdir_no_follow): Likewise.
3651         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
3652         * lib/openat-proc.c (openat_proc_name): Likewise.
3653         * lib/openat.c (openat_needs_fchdir): Likewise.
3654         * lib/save-cwd.c (save_cwd): Likewise.
3655         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
3656
3657 2010-08-28  Bruno Haible  <bruno@clisp.org>
3658
3659         New module 'host-cpu-c-abi'.
3660         * modules/host-cpu-c-abi: New file.
3661         * m4/host-cpu-c-abi.m4: New file, based on part of
3662         clisp/src/m4/general.m4.
3663         Requested by Sam Steingold <sds@gnu.org>.
3664
3665 2010-08-31  Eric Blake  <eblake@redhat.com>
3666         and Jim Meyering  <meyering@redhat.com>
3667
3668         hash: factor, and guard against misbehaving hasher function
3669         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
3670         of table->hasher's return value.  Also protect against a hash value
3671         so large that adding it to table->bucket results in a NULL pointer.
3672         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
3673         Use it in place of open-coded check-and-abort.
3674
3675 2010-08-30  Bruno Haible  <bruno@clisp.org>
3676
3677         hash: silence spurious clang warning
3678         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
3679         Reported by Eric Blake.
3680
3681 2010-08-30  Eric Blake  <eblake@redhat.com>
3682
3683         strstr, memmem, strcasestr: avoid leaked shell message
3684         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
3685         FreeBSD.
3686         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3687         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3688
3689         tests: silence clang warning
3690         * tests/test-malloca.c (do_allocation): Avoid dead store.
3691
3692 2010-08-29  Bruno Haible  <bruno@clisp.org>
3693
3694         gettext: Fix recent mistake.
3695         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
3696
3697 2010-08-29  Bruno Haible  <bruno@clisp.org>
3698
3699         selinux-h: Offer a --without-selinux option.
3700         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
3701         --without-selinux was specified, skip all tests and define
3702         HAVE_SELINUX_SELINUX_H to 0.
3703         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
3704         set LIB_SELINUX to empty.
3705         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
3706         gl_LIBSELINUX. If --without-selinux was specified, replace
3707         selinux/context.h.
3708         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
3709
3710 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3711             Bruno Haible  <bruno@clisp.org>
3712
3713         Make the module 'realloc-gnu' work again on AIX and OSF/1.
3714         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
3715         of HAVE_REALLOC.
3716         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
3717         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
3718         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
3719         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3720
3721 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3722             Bruno Haible  <bruno@clisp.org>
3723
3724         Make the module 'calloc-gnu' work again on AIX and OSF/1.
3725         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
3726         HAVE_CALLOC.
3727         * lib/xmalloc.c: Update accordingly.
3728         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
3729         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
3730         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
3731
3732 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3733             Bruno Haible  <bruno@clisp.org>
3734
3735         Make the module 'malloc-gnu' work again on AIX and OSF/1.
3736         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
3737         HAVE_MALLOC.
3738         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
3739         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
3740         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3741
3742 2010-08-29  Bruno Haible  <bruno@clisp.org>
3743
3744         Update modules list.
3745         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3746         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
3747         (String handling <string.h>): Add astrxfrm.
3748         (File system functions): Add readlinkat.
3749
3750 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3751
3752         Tests for module 'realloc-gnu'.
3753         * modules/realloc-gnu-tests: New file.
3754         * tests/test-realloc-gnu.c: New file.
3755
3756         Tests for module 'calloc-gnu'.
3757         * modules/calloc-gnu-tests: New file.
3758         * tests/test-calloc-gnu.c: New file.
3759
3760         Tests for module 'malloc-gnu'.
3761         * modules/malloc-gnu-tests: New file.
3762         * tests/test-malloc-gnu.c: New file.
3763
3764 2010-08-28  Bruno Haible  <bruno@clisp.org>
3765
3766         Rename module 'realloc' -> 'realloc-gnu'.
3767         * modules/realloc-gnu: New file, copied from modules/realloc.
3768         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
3769         obsolete.
3770         * modules/mgetgroups (Depends-on): Update.
3771         * doc/posix-functions/realloc.texi: Update.
3772         * NEWS: Mention the change.
3773
3774         Rename module 'calloc' -> 'calloc-gnu'.
3775         * modules/calloc-gnu: New file, copied from modules/calloc.
3776         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
3777         obsolete.
3778         * doc/posix-functions/calloc.texi: Update.
3779         * NEWS: Mention the change.
3780
3781         Rename module 'malloc' -> 'malloc-gnu'.
3782         * modules/malloc-gnu: New file, copied from modules/malloc.
3783         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
3784         obsolete.
3785         * modules/argp (Depends-on): Update.
3786         * modules/regex (Depends-on): Update.
3787         * doc/posix-functions/malloc.texi: Update.
3788         * NEWS: Mention the change.
3789
3790 2010-08-28  Eric Blake  <eblake@redhat.com>
3791
3792         pread, pwrite: add missing dependency
3793         * modules/pread (Depends-on): Add extensions.
3794         * modules/pwrite (Depends-on): Likewise.
3795
3796 2010-08-28  Bruno Haible  <bruno@clisp.org>
3797
3798         unistr/u*-strchr: Fix tests dependencies.
3799         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
3800         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
3801         Reported by Ian Beckwith <ianb@erislabs.net>.
3802
3803 2010-08-28  Bruno Haible  <bruno@clisp.org>
3804
3805         read-file: Don't occupy too much unused memory.
3806         * lib/read-file.c (fread_file): Shrink the buffer at the end.
3807
3808 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
3809             Eric Blake  <eblake@redhat.com>
3810             Bruno Haible  <bruno@clisp.org>
3811
3812         read-file: Avoid memory reallocations with regular files.
3813         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3814         (fread_file): With regular files, use the remaining length as the
3815         initial buffer size.  Check against overflow.
3816         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3817         sys_stat.
3818
3819 2010-08-28  Bruno Haible  <bruno@clisp.org>
3820
3821         ftello: Relax license.
3822         * modules/ftello (License): Relax to LGPLv2+.
3823         Reported by Eric Blake.
3824
3825 2010-08-28  Bruno Haible  <bruno@clisp.org>
3826
3827         Avoid relocwrapper link errors due to gnulib replacement functions.
3828         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3829         function.
3830         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3831
3832 2010-08-28  Bruno Haible  <bruno@clisp.org>
3833
3834         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3835         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3836         defined.
3837         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3838         Suggested by Eric Blake.
3839
3840 2010-08-28  Bruno Haible  <bruno@clisp.org>
3841
3842         sys_socket, netdb: Ensure socklen_t gets defined.
3843         * modules/sys_socket (Depends-on): Add socklen.
3844         * modules/netdb (Depends-on): Likewise.
3845         * modules/getaddrinfo (Depends-on): Remove socklen.
3846         * modules/getsockopt (Depends-on): Likewise.
3847         * modules/setsockopt (Depends-on): Likewise.
3848         * tests/test-sys_socket.c: Check that socklen_t is defined.
3849         * tests/test-netdb.c: Likewise.
3850         * m4/socklen.m4: Update comments.
3851         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3852
3853 2010-08-27  Eric Blake  <eblake@redhat.com>
3854
3855         login_tty: add missing dependency
3856         * modules/login_tty (Depends-on): Add pty.
3857
3858 2010-08-26  Eric Blake  <eblake@redhat.com>
3859
3860         lib-symbol-versions: fix m4 quoting
3861         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3862         format for AC_LINK_IFELSE.
3863
3864         glob: fix compile test
3865         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3866
3867         btowc: fix missing file
3868         * modules/btowc (Files): Also ship locale-fr.m4.
3869
3870         lseek: fix link test
3871         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3872         AC_LINK_IFELSE.
3873
3874         include_next: silence autoconf 2.68 warning
3875         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3876         AC_COMPILE_IFELSE as special.
3877         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3878         autoconf < 2.68.
3879
3880         acl: fix compilation test
3881         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3882         AC_COMPILE_IFELSE.
3883
3884 2010-08-26  Bruno Haible  <bruno@clisp.org>
3885
3886         Modernize AC_TRY_RUN invocations.
3887         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3888         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3889         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3890         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3891         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3892         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3893         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3894         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3895         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3896         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3897         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3898         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3899         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3900         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3902         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3903         gl_MBRLEN_NUL_RETVAL): Likewise.
3904         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3905         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3906         Likewise.
3907         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3908         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3909         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3910         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3911         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3912         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3913         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3914         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3915         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3916         Likewise.
3917         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3918         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3919         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3920         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3921         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3922         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3923         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3924         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3925         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3927
3928 2010-08-26  Bruno Haible  <bruno@clisp.org>
3929
3930         Modernize AC_TRY_LINK invocations.
3931         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3932         AC_TRY_LINK.
3933         * m4/argp.m4 (gl_ARGP): Likewise.
3934         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3935         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3936         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3937         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3938         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3939         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3940         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3941         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3942         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3943         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3944         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3945         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3946         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3947         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3948         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3949         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3950         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3951         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3952         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3953         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3954         Likewise.
3955         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3956         Likewise.
3957         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3958         Likewise.
3959         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3960         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3961         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3962         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3963         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3964         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3965         * m4/servent.m4 (gl_SERVENT): Likewise.
3966         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3967         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3968         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3969         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3970         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3971         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3972         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3973         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3974         * modules/tsearch-tests (configure.ac): Likewise.
3975
3976 2010-08-26  Bruno Haible  <bruno@clisp.org>
3977
3978         Modernize AC_TRY_COMPILE invocations.
3979         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3980         AC_TRY_COMPILE.
3981         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3982         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3983         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3984         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3985         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3986         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3987         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3988         * m4/lock.m4 (gl_LOCK): Likewise.
3989         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3990         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3991         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3992         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3993         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3994         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3995         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3996         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3997         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3998         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3999         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
4000         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
4001         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
4002         extraneous semicolon.
4003
4004 2010-08-26  Jim Meyering  <meyering@redhat.com>
4005
4006         stat-time: relax license LGPL
4007         * modules/stat-time (License): Change from GPL to LGPL,
4008         with consent from all contributors, for use in libguile.
4009         Requested by Ludovic Courtès.
4010
4011 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
4012
4013         poll: return immediately on POLLHUP.
4014         * lib/poll.c (poll): Always set timeout before wait_timeout is
4015         computed.
4016
4017 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4018
4019         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
4020         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
4021         rmdir ("dir/.//"), unlinkat.
4022
4023 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4024
4025         stdbool: avoid spurious failure with modern xlc
4026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4027
4028 2010-08-24  Bruno Haible  <bruno@clisp.org>
4029
4030         getloadavg: simplify code
4031         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
4032         gl_have_func. Update comments.
4033
4034 2010-08-24  Eric Blake  <eblake@redhat.com>
4035
4036         getloadavg: don't define SVR4 on cygwin
4037         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
4038         only define SVR4 when -lkvm is required.
4039         Reported by Yaakov Selkowitz.
4040
4041 2010-08-24  Bruno Haible  <bruno@clisp.org>
4042
4043         priv-set: fix comment
4044         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
4045
4046 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4047
4048         priv-set: fix comments
4049         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
4050         to match code, as suggested by David Bartley in:
4051         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
4052
4053 2010-08-23  Eric Blake  <eblake@redhat.com>
4054
4055         stdbool: avoid rejecting clang
4056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4057         * tests/test-stdbool.c: Enable more tests if using the system
4058         <stdbool.h> instead of the gnulib replacement.
4059         (main): Move xlc bug test to a runtime test for all compilers.
4060         Reported by Anders Kaseorg.
4061
4062         argz: fix shell quoting issue
4063         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
4064         Reported by Charles Wilson.
4065
4066 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
4067             Erik Faye-Lund <kusmabite@gmail.com>
4068
4069         poll, select: handle ERROR_BROKEN_PIPE.
4070         * lib/poll.c (win32_compute_revents): Return POLLHUP when
4071         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4072         * lib/select.c (win32_compute_revents): Do not mark a pipe
4073         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4074
4075 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
4076
4077         fts: allow compilation with C++
4078         * lib/fts_.h: Specify extern "C" linkage with C++.
4079
4080 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4081
4082         Fix gnulib-tool sed script de-commentation for AIX sed.
4083         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
4084         sed.
4085
4086 2010-08-17  Eric Blake  <eblake@redhat.com>
4087
4088         test-stddef: test for (some) offsetof bugs
4089         * tests/test-stddef.c: Enhance test to ensure correct type of
4090         offsetof.
4091         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
4092         that we are not fixing at this time.
4093
4094 2010-08-15  Bruno Haible  <bruno@clisp.org>
4095
4096         stpncpy: Allow stpncpy to be defined as a macro.
4097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
4098         if it's already correctly declared.
4099         * lib/string.in.h (stpncpy): Undefine before redefining.
4100         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
4101
4102 2010-08-14  Bruno Haible  <bruno@clisp.org>
4103
4104         Rename module 'memxfrm' to 'amemxfrm'.
4105         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
4106         (amemxfrm): Renamed from memxfrm.
4107         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
4108         (amemxfrm): Renamed from memxfrm.
4109         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
4110         * NEWS: Mention the change.
4111         * MODULES.html.sh (String handling <string.h>): Update.
4112         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
4113         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
4114         * lib/unicase/u16-casexfrm.c: Likewise.
4115         * lib/unicase/u32-casexfrm.c: Likewise.
4116         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
4117         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
4118         * lib/uninorm/u16-normxfrm.c: Likewise.
4119         * lib/uninorm/u32-normxfrm.c: Likewise.
4120         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
4121         memxfrm.
4122         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
4123         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
4124         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
4125         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
4126         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
4127         Suggested by Paul Eggert.
4128
4129 2010-08-14  Bruno Haible  <bruno@clisp.org>
4130
4131         Tests for module 'astrxfrm'.
4132         * modules/astrxfrm-tests: New file.
4133         * tests/test-astrxfrm.c: New file.
4134
4135         New module 'astrxfrm'.
4136         * lib/astrxfrm.h: New file.
4137         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
4138         * modules/astrxfrm: New file.
4139
4140 2010-08-14  Reuben Thomas <rrt@sc3d.org>
4141
4142         regex: Tweak doc.
4143         * doc/regex.texi (Overview): Don't mention regex.c.
4144         (GNU Regular Expression Compiling): Likewise.
4145         (Match-end-of-line Operator): Mention 'not_eol'.
4146
4147 2010-08-14  Brian Gough  <bjg@gnu.org>
4148             Bruno Haible  <bruno@clisp.org>
4149
4150         git-merge-changelog: add doc relating to use with bzr and hg.
4151         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
4152
4153 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
4154
4155         pthread: fix pthread.h creation for srcdir != builddir
4156         * modules/pthread (Makefile.am): Fix the rule to work also in a
4157         non-srcdir build.
4158
4159 2010-08-13  Karl Berry  <karl@gnu.org>
4160
4161         * doc/regex.texi (Predefined Syntaxes): @smallexample.
4162         * doc/posix-*/*: force line break before @url of POSIX
4163         specifications.
4164         Suggested by Werner Lemberg.
4165
4166 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4167
4168         strtod: fix const diagnostic
4169         * lib/strtod.c (strtod): Don't assign const char * to char *,
4170         as this elicits a warning from GCC when warnings are enabled.
4171
4172 2010-08-10  Pádraig Brady <P@draigbrady.com>
4173         and Eric Blake  <eblake@redhat.com>
4174
4175         copy-acl: ignore ENOTSUP on HP-UX
4176         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
4177         so that it is available for HP-UX.
4178         * lib/copy-acl.c (qcopy_acl): Use it.
4179         Reported by Patrick M. Callahan.
4180
4181 2010-08-10  Eric Blake  <eblake@redhat.com>
4182
4183         open, chown: relax license
4184         * modules/open (License): Change to LGPLv2+, with consent by all
4185         authors, for use in augeas.
4186         * modules/chown (License): Likewise.
4187         * modules/lchown (Likewise): Likewise.
4188         Requested by Adam Stokes.
4189
4190 2010-08-09  Karl Berry  <karl@gnu.org>
4191
4192         * build-aux/ar-lib: new file, import from Automake.
4193         * config/srclist.txt: autocheck for updates.
4194
4195 2010-08-09  Eric Blake  <eblake@redhat.com>
4196
4197         readlinkat: adjust client modules
4198         * modules/areadlinkat (Depends-on): Use readlinkat, not
4199         symlinkat.
4200         * modules/areadlinkat-with-size (Depends-on): Likewise.
4201
4202         mknod: be more vocal about danger of running tests as root
4203         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
4204         root, since that is just asking for problems.
4205         Suggested by Bruno Haible, based on a report by Rainer Tammer.
4206
4207         readlinkat: split into its own module
4208         * modules/symlinkat: Split readlinkat...
4209         * modules/readlinkat: ...into separate module.
4210         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
4211         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
4212         * lib/symlinkat.c (readlinkat): Move...
4213         * lib/readlinkat.c: ...into new file.
4214         * modules/symlinkat-tests: Split readlinkat test...
4215         * modules/readlinkat-tests: ...into separate module.
4216         * tests/test-symlinkat.c: Split...
4217         * tests/test-readlinkat.c: ...into new file.
4218         * NEWS: Document the split.
4219         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4220         * lib/unistd.in.h (readlinkat): Likewise.
4221         Suggested by Bruno Haible.
4222
4223 2010-08-08  Bruno Haible  <bruno@clisp.org>
4224
4225         memxfrm: Speed up.
4226         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
4227         that usually only one call to strxfrm is necessary for each string
4228         part.
4229         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4230
4231 2010-08-07  Karl Berry  <karl@gnu.org>
4232
4233         * doc/posix-headers/limits.texi,
4234         * doc/posix-functions/malloc.texi,
4235         * doc/posix-functions/strsignal.texi: missing @item.
4236         * doc/ld-version-script.texi: spurious leading i.
4237         * doc/regex.texi (Interval Operators): no commas inside @var.
4238
4239 2010-08-01  Bruno Haible  <bruno@clisp.org>
4240
4241         Integrate the regex documentation.
4242         * doc/gnulib.texi: Define 'cn' index.
4243         (Regular expressions): New a chapter that includes regex.texi and
4244         regexprops-generic.texi.
4245         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
4246         syntax.
4247
4248         Whitespace cleanup.
4249         * doc/regex.texi: Remove trailing spaces.
4250
4251         Add regex documentation.
4252         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
4253         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
4254         Written by Kathy A. Hargreaves and Karl Berry.
4255
4256 2010-08-01  Bruno Haible  <bruno@clisp.org>
4257
4258         link: Update documentation.
4259         * doc/posix-functions/link.texi: Update regarding Solaris.
4260
4261 2010-07-31  Bruno Haible  <bruno@clisp.org>
4262
4263         Update modules list.
4264         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
4265         (String handling <string.h>): Add memcmp2, memxfrm.
4266         (Container data structures): Add xlist, xsublist, xoset.
4267         (Core language properties): Add alignof, unused-parameter.
4268         (Process control, Numeric conversion functions <stdlib.h>): Renamed
4269         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
4270         (Unibyte characters <ctype.h>): New section.
4271         (String handling <string.h>): New section.
4272         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
4273         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
4274         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
4275         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
4276         tan, tanh, tanl, y0, y1, yn.
4277         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
4278         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
4279         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
4280         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
4281         unlockpt, vdprintf, vdprintf-posix.
4282         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
4283         (File system functions): Add concat-filename, sys_file, sys_ioctl,
4284         xconcat-filename.
4285         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
4286         getdtablesize, pipe2, pipe2-safer.
4287         (Security): New section.
4288         (Networking functions): Add accept4.
4289         (Signal handling): Add sigpipe.
4290         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
4291         mbmemcasecoll.
4292         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
4293         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
4294         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
4295         pipe-filter-ii.
4296         (Misc): Add argp-version-etc, login_tty, parse-duration.
4297
4298 2010-07-31  Bruno Haible  <bruno@clisp.org>
4299
4300         Improve doc in MODULES.html.
4301         * modules/linkat (Description): Add the word "function".
4302         * modules/mkfifo (Description): Likewise.
4303         * modules/mknod (Description): Likewise.
4304         * modules/remove (Description): Likewise.
4305         * modules/renameat (Description): Likewise.
4306         * modules/stat (Description): Likewise.
4307         * modules/symlink (Description): Likewise.
4308         * modules/unlink (Description): Likewise.
4309
4310 2010-07-31  Bruno Haible  <bruno@clisp.org>
4311
4312         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
4313         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
4314         option --enable/disable-c++ instead of --enable/disable-cxx.
4315         * NEWS: Mention the change.
4316
4317 2010-07-31  Bruno Haible  <bruno@clisp.org>
4318
4319         readlink, areadlink: Relax test a bit.
4320         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
4321         alternative to ENOTDIR.
4322         * tests/test-areadlink.h (test_areadlink): Likewise.
4323         Reported by Rainer Tammer.
4324
4325 2010-07-31  Bruno Haible  <bruno@clisp.org>
4326
4327         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
4328         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
4329         character, perform the search using U_STRCHR.
4330         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
4331         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
4332         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
4333         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
4334         Suggested by Paolo Bonzini.
4335
4336 2010-07-31  Bruno Haible  <bruno@clisp.org>
4337
4338         unistr/u*-strstr: Fix dependencies.
4339         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
4340         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
4341         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
4342
4343 2010-07-31  Bruno Haible  <bruno@clisp.org>
4344
4345         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
4346         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
4347         the beginning of the loop.
4348         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
4349         cases in 'switch' statement.
4350
4351         unistr/u8-strchr: Fix several bugs.
4352         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
4353         the string. When not found, return NULL, not a pointer near the end.
4354
4355         More tests for unistr/u8-strchr.
4356         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
4357         that the function does not read past the first occurrence of the byte
4358         being searched.
4359         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
4360         * tests/unistr/test-u16-strchr.c (main): New function.
4361         * tests/unistr/test-u32-strchr.c (main): New function.
4362
4363 2010-07-31  Bruno Haible  <bruno@clisp.org>
4364
4365         posix-modules: Ignore backup files of documentation files.
4366         * posix-modules: grep only through files named *.texi.
4367
4368 2010-07-31  Bruno Haible  <bruno@clisp.org>
4369
4370         symlinkat: Fix documentation.
4371         * doc/posix-functions/readlinkat.texi: Fix module name.
4372
4373 2010-07-31  Bruno Haible  <bruno@clisp.org>
4374
4375         fchownat: Replace also when chown has the trailing slash bug.
4376         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4377         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4378         introduced on 2010-04-10.
4379         Reported by Rainer Tammer.
4380
4381 2010-07-31  Bruno Haible  <bruno@clisp.org>
4382
4383         linkat: Work around AIX 7.1 bug.
4384         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4385         whether linkat handles trailing slash correctly. If not, replace linkat
4386         and define LINKAT_TRAILING_SLASH_BUG.
4387         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4388         check whether (fd1,file1) points to a directory if file1 or file2 ends
4389         in a slash. Code taken from lib/link.c.
4390         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4391         Reported by Rainer Tammer.
4392
4393 2010-07-31  Bruno Haible  <bruno@clisp.org>
4394
4395         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4396         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4397         This disables an xlc optimization that was causing wrong test results.
4398         Reported by Rainer Tammer.
4399
4400 2010-07-31  Bruno Haible  <bruno@clisp.org>
4401
4402         iconv: Work around AIX 6.1..7.1 bug.
4403         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4404         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4405         cross-compiling, guess no on all versions of AIX.
4406         Reported by Rainer Tammer.
4407
4408 2010-07-31  Bruno Haible  <bruno@clisp.org>
4409
4410         readlink: Relax test a bit.
4411         * tests/test-readlink.h (test_readlink): Allow different errno value
4412         when readlink is called with a file name that ends in / and refers to
4413         a file.
4414         Suggested by Eric Blake.
4415         Reported by Rainer Tammer.
4416
4417 2010-07-31  Bruno Haible  <bruno@clisp.org>
4418
4419         copysign: Does not require -lm on glibc systems.
4420         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4421         gl_COMMON_DOUBLE_MATHFUNC.
4422         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4423
4424 2010-07-31  Bruno Haible  <bruno@clisp.org>
4425
4426         duplocale: Work around AIX 7.1 bug.
4427         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4428         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4429         * lib/duplocale.c (rpl_duplocale): Update comment.
4430         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4431         Reported by Rainer Tammer.
4432
4433 2010-07-30  Bruno Haible  <bruno@clisp.org>
4434
4435         dirfd: Avoid link error on AIX 7.1.
4436         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4437         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4438         exist, set REPLACE_DIRFD.
4439         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4440         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4441         * doc/posix-functions/dirfd.texi: Update.
4442         Reported by Rainer Tammer.
4443
4444 2010-07-30  Eric Blake  <eblake@redhat.com>
4445
4446         strtod: next round of AIX fixes
4447         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4448         exponent.
4449         * tests/test-strtod.c (main): Enhance tests.
4450         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4451         Reported by Rainer Tammer.
4452
4453         futimens: fix configure check
4454         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4455         Reported by Bruno Haible.
4456
4457 2010-07-30  Bruno Haible  <bruno@clisp.org>
4458
4459         getline: Update regarding AIX.
4460         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4461         Reported by Rainer Tammer.
4462
4463 2010-07-30  Bruno Haible  <bruno@clisp.org>
4464
4465         wcwidth: Drop replacement on AIX 7.
4466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4467         AIX 7.
4468         Reported by Rainer Tammer.
4469
4470 2010-07-30  Bruno Haible  <bruno@clisp.org>
4471
4472         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4473         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4474         a 'char *'.
4475         Reported by Rainer Tammer.
4476
4477 2010-07-30  Bruno Haible  <bruno@clisp.org>
4478
4479         unlink: Update regarding AIX.
4480         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4481         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4482         Reported by Rainer Tammer.
4483
4484 2010-07-30  Bruno Haible  <bruno@clisp.org>
4485
4486         symlink: Update regarding AIX.
4487         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4488         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4489         Reported by Rainer Tammer.
4490
4491 2010-07-30  Bruno Haible  <bruno@clisp.org>
4492
4493         strndup: Update regarding AIX.
4494         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4495         AIX 7.
4496         Reported by Rainer Tammer.
4497
4498 2010-07-30  Bruno Haible  <bruno@clisp.org>
4499
4500         stat: Update regarding AIX.
4501         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4502         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4503         Reported by Rainer Tammer.
4504
4505 2010-07-30  Bruno Haible  <bruno@clisp.org>
4506
4507         truncl: Fix autoconf test.
4508         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4509         whether truncl works.
4510         Reported by Rainer Tammer.
4511
4512 2010-07-30  Bruno Haible  <bruno@clisp.org>
4513
4514         round: Update regarding AIX.
4515         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4516         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4517         Reported by Rainer Tammer.
4518
4519 2010-07-30  Bruno Haible  <bruno@clisp.org>
4520
4521         rename: Update regarding AIX.
4522         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4523         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4524         Reported by Rainer Tammer.
4525
4526 2010-07-30  Bruno Haible  <bruno@clisp.org>
4527
4528         printf.m4: Update regarding AIX.
4529         * m4/printf.m4: Update comments regarding AIX.
4530         Reported by Rainer Tammer.
4531
4532 2010-07-30  Bruno Haible  <bruno@clisp.org>
4533
4534         iconv: Update regarding AIX.
4535         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4536         AIX 7.
4537         Reported by Rainer Tammer.
4538
4539 2010-07-30  Bruno Haible  <bruno@clisp.org>
4540
4541         getopt: Update regarding AIX.
4542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4543         no on AIX.
4544         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4545         Reported by Rainer Tammer.
4546
4547 2010-07-30  Bruno Haible  <bruno@clisp.org>
4548
4549         ldexpl; Update regarding AIX.
4550         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4551         on AIX 7.
4552         Reported by Rainer Tammer.
4553
4554 2010-07-30  Bruno Haible  <bruno@clisp.org>
4555
4556         frexpl: Update regarding AIX.
4557         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4558         on AIX 7.
4559         Reported by Rainer Tammer.
4560
4561 2010-07-30  Bruno Haible  <bruno@clisp.org>
4562
4563         open, fopen: Update regarding AIX.
4564         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4565         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4566         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4567         * doc/posix-functions/fopen.texi: Likewise.
4568         Reported by Rainer Tammer.
4569
4570 2010-07-30  Bruno Haible  <bruno@clisp.org>
4571
4572         chown: Update doc regarding AIX.
4573         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4574         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4575         Reported by Rainer Tammer.
4576
4577 2010-07-30  Eric Blake  <eblake@redhat.com>
4578
4579         strtod: fix bug in replacement function on AIX
4580         * lib/strtod.c (strtod): Special case broken "0x" parse in
4581         underlying strtod.
4582         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4583         * doc/posix-functions/strtod.texi (strtod): Likewise.
4584         Reported by Rainer Tammer.
4585
4586 2010-07-30  Bruno Haible  <bruno@clisp.org>
4587
4588         mbrlen: Fix cross-compilation guess for AIX.
4589         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4590         guess. Leftover from 2008-12-22.
4591
4592 2010-07-30  Bruno Haible  <bruno@clisp.org>
4593
4594         mbrtowc: Fix cross-compilation guess for AIX.
4595         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4596         guess. Leftover from 2008-12-21.
4597
4598 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4599
4600         init.sh: work around trap limitation of some shells
4601         * tests/init.sh (setup_): Move exit trap outside of shell function.
4602
4603 2010-07-29  Eric Blake  <eblake@redhat.com>
4604
4605         strtod: aid debugging
4606         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4607         understanding why strtod is rejected.
4608
4609 2010-07-28  Bruno Haible  <bruno@clisp.org>
4610
4611         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4612         * lib/unistr/u8-chr.c: Include <string.h>.
4613         * tests/unistr/test-u8-chr.c: Likewise.
4614         * tests/unistr/test-u16-chr.c: Likewise.
4615         * tests/unistr/test-u32-chr.c: Likewise.
4616         * tests/unistr/test-u8-strchr.c: Likewise.
4617         * tests/unistr/test-u16-strchr.c: Likewise.
4618         * tests/unistr/test-u32-strchr.c: Likewise.
4619         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4620         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4621         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4622         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4623
4624 2010-07-28  Bruno Haible  <bruno@clisp.org>
4625
4626         Use spaces for indentation, not tabs.
4627         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4628
4629 2010-07-27  Bruno Haible  <bruno@clisp.org>
4630
4631         mbspcasecmp: Fix function specification.
4632         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4633         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4634         Reported by Eric Blake <eblake@redhat.com>.
4635
4636 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4637
4638         timespec: use cast and not conditional, as truncation isn't possible
4639         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4640         instead of a conditional.  Comment about the situation in more detail.
4641         This undoes most of the 2009-10-29 patch.
4642
4643 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4644
4645         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4646         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
4647         * lib/unistr/u8-strchr.c: Likewise.
4648         * modules/unistr/u8-chr: Depend on memchr.
4649
4650         unistr/u*-strchr: add tests
4651         * modules/unistr/u8-strchr-tests: New file.
4652         * modules/unistr/u16-strchr-tests: New file.
4653         * modules/unistr/u32-strchr-tests: New file.
4654         * tests/unistr/test-strchr.h: New file.
4655         * tests/unistr/test-u8-strchr.c: New file.
4656         * tests/unistr/test-u16-strchr.c: New file.
4657         * tests/unistr/test-u32-strchr.c: New file.
4658
4659         unistr/u*-chr: test multibyte sequences more
4660         * tests/unistr/test-chr.h: Do complete testing of the characters in the
4661         test vector.
4662         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
4663         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
4664         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
4665
4666         unistr/u*-chr: test multibyte sequences
4667         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
4668
4669         unistr/u*-chr: prepare for multibyte tests
4670         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
4671         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
4672         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
4673         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
4674         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
4675         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
4676
4677 2010-07-18  Bruno Haible  <bruno@clisp.org>
4678
4679         unistr/u8-strchr: Optimize non-ASCII argument case.
4680         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
4681         because the first byte often matches anyway.
4682         Reported by Pádraig Brady <P@draigbrady.com>.
4683
4684 2010-07-15  Karl Berry  <karl@gnu.org>
4685
4686         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
4687
4688 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
4689
4690         getcwd: on Solaris, work better if ancestors are inaccessible
4691         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
4692         buffer and size, try again with a large buffer.  This works better
4693         on Solaris, since its getcwd succeeds even if the path to the root
4694         is inaccessible, and this is helpful in common cases such as .zfs
4695         hidden directories.  Problem reported by J Chapman Flack in
4696         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
4697         Use system getcwd if it's declared, not merely if it's partly
4698         working; use the partly-working test only to avoid needless effort
4699         if the system getcwd fails.
4700         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
4701         comment that was already obsolete and is now even more obsolete.
4702         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
4703         now might call strdup.
4704
4705 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
4706
4707         pthread: Add enough so that coreutils/src/sort.c compiles.
4708         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
4709         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
4710         gnulib. Include <sched.h> and <time.h>, as per POSIX.
4711         Include <sys/types.h>, in case it defines pthread_t.
4712         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
4713         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
4714         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
4715         (pthread_rwlockattr_t, pthread_spinlock_t):
4716         New typedefs, if HAVE_PTHREAD_T is not defined.
4717         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
4718         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
4719         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
4720         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
4721         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
4722         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
4723         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
4724         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
4725         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
4726         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
4727         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
4728         New macros.
4729         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
4730         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
4731         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
4732         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
4733         (pthread_spin_unlock): New dummy functions.
4734         (pthread_create): Return EAGAIN; don't set errno.
4735         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
4736         require AC_C_INLINE.
4737         * modules/pthread (Depends-on): Add sched, time.
4738         (pthread.h): Use AM_V_GEN.
4739
4740 2010-07-13  Bruno Haible  <bruno@clisp.org>
4741
4742         striconveh: Don't malloc memory if the result buffer is sufficient.
4743         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
4744         buffer if its size is sufficient.
4745         Reported by Ludovic Courtès <ludo@gnu.org>.
4746
4747 2010-07-13  Bruno Haible  <bruno@clisp.org>
4748
4749         strtod: Add safety check.
4750         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
4751
4752 2010-07-12  Bruno Haible  <bruno@clisp.org>
4753
4754         Unify tests that set gl_cv_func_ldexpl_no_libm.
4755         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
4756         gl_FUNC_LDEXPL.
4757         (gl_FUNC_LDEXPL): Invoke it.
4758         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4759
4760 2010-07-12  Bruno Haible  <bruno@clisp.org>
4761
4762         Unify tests that set gl_cv_func_ldexp_no_libm.
4763         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
4764         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
4765         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
4766         (configure.ac): Simply invoke gl_FUNC_LDEXP.
4767         * modules/strtod (Files): Add m4/ldexp.m4.
4768
4769 2010-07-12  Bruno Haible  <bruno@clisp.org>
4770
4771         Unify tests that set gl_cv_func_frexpl_no_libm.
4772         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
4773         gl_FUNC_FREXPL_NO_LIBM.
4774         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
4775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4776
4777 2010-07-12  Bruno Haible  <bruno@clisp.org>
4778
4779         Unify tests that set gl_cv_func_frexp_no_libm.
4780         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
4781         gl_FUNC_FREXP_NO_LIBM.
4782         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
4783         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4784
4785 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4786
4787         memcoll: clarify sizes versus lengths, document better, and tweak perf
4788         * lib/memcoll.c (strcoll_loop, memcoll0):
4789         Improve quality of descriptive comments.  Name variables
4790         consistently as to whether they are lengths (which do not include
4791         terminating null) versus sizes (which do).
4792         * lib/xmemcoll.c (xmemcoll0): Likewise.
4793         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
4794         returned when s1size == 0; this is easier to compile and saves
4795         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
4796
4797 2010-07-12  Bruno Haible  <bruno@clisp.org>
4798
4799         Tests for module '_Exit'.
4800         * modules/_Exit-tests: New file.
4801         * tests/test-_Exit.sh: New file.
4802         * tests/test-_Exit.c: New file.
4803
4804         New module '_Exit'.
4805         * lib/stdlib.in.h (__attribute__): New macro.
4806         (_Exit): New declaration.
4807         * lib/_Exit.c: New file.
4808         * m4/_Exit.m4: New file.
4809         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
4810         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4811         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4812         * modules/_Exit: New file.
4813         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4814         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4815
4816 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4817
4818         strtod: make it more-accurate typically, and don't require libm
4819         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4820         Include limits.h.  Don't include string.h.
4821         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4822         (locale_isspace): New function, so that no casts are needed to
4823         check whether *s is a space.
4824         (ldexp): Provide an unused dummy if not available.
4825         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4826         (strtod): Use them.  This implementation prefers to use the
4827         underlying strtod if available, falling back on our own code
4828         only to fix known bugs.  This is more likely to produce an
4829         accurate result.  Also, it avoids the use of libm functions.
4830         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4831         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4832         was absent, but it caused a test failure with coreutils.
4833         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4834         with libm.
4835         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4836         * modules/strtod-tests (Makefile.am): Likewise.
4837
4838 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4839             Bruno Haible  <bruno@clisp.org>
4840
4841         unistr/u8-strchr: Optimize ASCII argument case.
4842         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4843
4844 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4845
4846         (x)memcoll: minor tweaks
4847         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4848         is after the type that it qualifies.
4849         (memcoll0): Likewise.
4850         * lib/memcoll.h (memcoll0): Likewise.
4851         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4852         * lib/xmemcoll.h (xmemcoll0): Likewise.
4853         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4854         differs from memcoll in that the NUL byte is part of the argument.
4855         Omit the abort-checks, as performance is a real issue here.  Plus,
4856         the checks were wrong anyway (an off-by-one error).  Omit local
4857         variable 'diff', as it's a bit clearer that way.
4858         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4859         no longer needed.
4860
4861 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4862
4863         (x)memcoll: speedup when input is known to be NUL delimited
4864         * lib/memcoll.c: Include stdlib.
4865         (memcoll0) New function.
4866         (strcoll_loop) New function, refactored for use in both memcoll
4867         and memcoll0.
4868         * lib/memcoll.h: Add prototype for memcoll0.
4869         * lib/xmemcoll.c: (xmemcoll0) New function.
4870         (collate_error) New function, refactored for use in both xmemcoll
4871         and xmemcoll0.
4872         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4873         * m4/memcoll.m4: add inline invocation.
4874
4875 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4876
4877         * build-aux/bootstrap: Remove any local translations
4878         from the translation project synchronization directory,
4879         so that local only translations are not distributed.
4880
4881 2010-07-04  Bruno Haible  <bruno@clisp.org>
4882
4883         fsusage: Clarify which code applies to which platforms.
4884         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4885         platform.
4886         * lib/fsusage.c (get_fs_usage): Likewise.
4887
4888 2010-07-04  Bruno Haible  <bruno@clisp.org>
4889
4890         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4891         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4892         Reported by Martin Lambers <marlam@marlam.de>.
4893
4894 2010-07-04  Jim Meyering  <meyering@redhat.com>
4895
4896         hash: once again explicitly disallow insertion of NULL
4897         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4898         inserting a NULL pointer cannot work with these functions.
4899         Add a comment with details.
4900         This reverts part of the 2010-07-01 commit, 5bef1a35
4901         "hash: extend module to deal with non-pointer keys".
4902
4903 2010-07-01  Bruno Haible  <bruno@clisp.org>
4904
4905         stdbool: Update doc.
4906         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4907         Info from Christian Weisgerber <naddy@mips.inka.de>.
4908
4909 2010-07-01  Jim Meyering  <meyering@redhat.com>
4910
4911         hash: extend module to deal with non-pointer keys
4912         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4913         but that allows insertion of non-pointer entries.
4914         Do not disallow an ENTRY value of NULL.
4915         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4916         * lib/hash.h (hash_insert0): Declare.
4917
4918 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4919
4920         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4921         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4922         not present (i.e. with autoconf 2.59 and when using gettextize, not
4923         gnulib), require AC_GNU_SOURCE instead.
4924
4925 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4926
4927         idpriv-drop: Fix tests.
4928         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4929         not to the test-idpriv-droptemp program.
4930
4931 2010-06-29  Bruno Haible  <bruno@clisp.org>
4932
4933         string: Fix syntax error with g++ 2.96.
4934         * lib/string.in.h (__pure__): Remove definition.
4935         (_GL_ATTRIBUTE_PURE): New macro.
4936         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4937         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4938         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4939
4940 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4941
4942         unitypes: Fix bug introduced on 2010-05-18.
4943         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4944
4945 2010-06-22  Eric Blake  <eblake@redhat.com>
4946
4947         memmem: slight optimization
4948         * lib/str-two-way.h (critical_factorization): Update comments.
4949         Reduce work during factorization phase.
4950         Reported by Carlos Bueno <carlos@bueno.org>.
4951
4952 2010-06-21  Bruno Haible  <bruno@clisp.org>
4953
4954         Fix HAVE_CALLOC_POSIX misnomer.
4955         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4956         !HAVE_CALLOC_POSIX.
4957         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4958         HAVE_CALLOC_POSIX.
4959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4960         instead of HAVE_CALLOC_POSIX.
4961         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4962         HAVE_CALLOC_POSIX.
4963
4964         Use modern idiom for calloc() replacement.
4965         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4966         AC_FUNC_CALLOC.
4967         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4968         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4969         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4970         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4971         (gl_REPLACE_CALLOC): New macro.
4972
4973 2010-06-21  Bruno Haible  <bruno@clisp.org>
4974
4975         Fix HAVE_REALLOC_POSIX misnomer.
4976         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4977         !HAVE_REALLOC_POSIX.
4978         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4979         HAVE_REALLOC_POSIX.
4980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4981         instead of HAVE_REALLOC_POSIX.
4982         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4983         HAVE_REALLOC_POSIX.
4984
4985         Use modern idiom for realloc() replacement.
4986         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4987         AC_FUNC_REALLOC.
4988         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4989         Autoconf's AC_FUNC_REALLOC.
4990         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4991         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4992         (gl_REPLACE_REALLOC): New macro.
4993         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4994
4995 2010-06-21  Bruno Haible  <bruno@clisp.org>
4996
4997         Fix HAVE_MALLOC_POSIX misnomer.
4998         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4999         !HAVE_MALLOC_POSIX.
5000         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
5001         HAVE_MALLOC_POSIX.
5002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
5003         instead of HAVE_MALLOC_POSIX.
5004         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
5005         HAVE_MALLOC_POSIX.
5006
5007         Use modern idiom for malloc() replacement.
5008         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
5009         AC_FUNC_MALLOC.
5010         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
5011         Autoconf's AC_FUNC_MALLOC.
5012         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5013         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
5014         (gl_REPLACE_MALLOC): New macro.
5015         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5016
5017 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
5018
5019         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
5020         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
5021         This macro takes 3 arguments, not 4.
5022
5023 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
5024
5025         ipv6: fix detection under mingw
5026         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
5027         in6_addr.
5028
5029 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
5030
5031         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
5032         that strtod() works when cross-compiling to a glibc version known
5033         to work.
5034
5035 2010-06-15  Bruno Haible  <bruno@clisp.org>
5036
5037         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
5038
5039 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
5040
5041         select: Correct timeout.
5042         * lib/select.c (rpl_select): Compute wait_timeout correctly.
5043
5044 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5045
5046         git-version-gen: init shell var to avoid env var influence
5047         * build-aux/git-version-gen (v): Init shell var to empty.
5048
5049 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
5050
5051         priv-set: Don't assume that priv.h exists merely because getppriv does.
5052         See Jan Andersen's bug report about AIX 5L in
5053         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
5054         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
5055         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
5056         * lib/priv-set.h: Likewise.
5057         * tests/test-priv-set.c: Likewise.
5058
5059 2010-06-13  Bruno Haible  <bruno@clisp.org>
5060
5061         relocatable: Make it easier to test whether to install wrappers.
5062         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
5063         RELOCATABLE_VIA_WRAPPER.
5064
5065 2010-06-13  Bruno Haible  <bruno@clisp.org>
5066
5067         gnulib-tool: Display specified modules and dependencies differently.
5068         * gnulib-tool (func_show_module_list): New function.
5069         (func_import, func_create_testdir): Invoke it.
5070         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5071
5072 2010-06-13  Bruno Haible  <bruno@clisp.org>
5073
5074         gnulib-tool: Align code of func_import and func_create_testdir.
5075         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
5076         specified_modules.
5077
5078 2010-06-12  Jim Meyering  <meyering@redhat.com>
5079
5080         test-inttostr: avoid spurious failure on Solaris 9
5081         * tests/test-inttostr.c (main): Skip the test when snprintf fails
5082         to accept "%ju".  Reported by Bruno Haible.
5083
5084 2010-06-11  Jim Meyering  <meyering@redhat.com>
5085
5086         test-sys_socket: mark variables as used more readably
5087         * tests/test-sys_socket.c (main): Mark otherwise unused variables
5088         as "used" explicitly via (void) statement casts.  This is more
5089         readable than using them in an artificial return expression.
5090         Suggestion from Bruno Haible.
5091
5092 2010-06-11  Bruno Haible  <bruno@clisp.org>
5093
5094         Avoid some more warnings from "gcc -Wwrite-strings".
5095         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
5096         to 'const char *'.
5097         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
5098         * tests/test-c-strcasestr.c (main): Likewise.
5099         * tests/test-mbscasestr1.c (main): Likewise.
5100         * tests/test-mbscasestr2.c (main): Likewise.
5101         * tests/test-memmem.c (main): Likewise.
5102         * tests/test-strstr.c (main): Likewise.
5103         * tests/test-strcasestr.c (main): Likewise.
5104
5105 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5106
5107         init.sh: change framework_failure_ to fail with status 99, not 1
5108         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
5109         automake's parallel-tests rule that this is an unexpected failure,
5110         even if the test is listed in XFAIL_TESTS.
5111
5112 2010-06-11  Jim Meyering  <meyering@redhat.com>
5113
5114         test-inttostr: avoid warnings about 4-6KB literal strings
5115         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
5116         Include "macros.h", for its definition of ASSERT.
5117         (CK): s/assert/ASSERT/
5118         * modules/inttostr-tests (Files): Add macros.h.
5119
5120         init.sh: don't use $ME_ or skip_ before they are defined
5121         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
5122         their first uses.  Also hoist their companions: warn_, fail_,
5123         framework_failure_, $stderr_fileno.  Prompted by a patch from
5124         Stefano Lattarini.
5125
5126         test-sys_socket: avoid set-but-not-used warnings from gcc
5127         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
5128         avoid warning about set-but-not-used variables.
5129
5130         test-xvasprintf: avoid 'const' discard warnings
5131         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
5132         "const" when assigning from literal strings.
5133         (test_xasprintf): Add "void" in function argument list to placate
5134         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
5135
5136         tests: avoid compilation warnings in argmatch and exclude tests...
5137         in packages that define ARGMATCH_DIE_DECL, like coreutils.
5138         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
5139         Since it always exits, declare with the "noreturn" attribute.
5140         * tests/test-argmatch.c: Likewise.
5141
5142         tests: avoid 'const' discard warnings in mbsstr tests
5143         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
5144         * tests/test-mbsstr2.c (main): Likewise.
5145
5146         test-verify: avoid warning from gcc's -Wmissing-declarations
5147         * tests/test-verify.c (function): Declare to be static.
5148
5149         test-inttostr.c: include <string.h> for use of strcmp
5150         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
5151
5152         test-linkat: avoid failed assertion on "other" architectures
5153         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
5154         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
5155         sparc: https://bugs.launchpad.net/bugs/591968
5156
5157 2010-06-11  Jim Meyering  <meyering@redhat.com>
5158
5159         printf.m4: avoid autoconf's "Expanded Before Required" warning
5160         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
5161         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
5162         autoconf warning.
5163
5164 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
5165
5166         Replacement header templates are now named with ".in", not "_".
5167         * doc/gnulib-intro.texi: Correct.
5168
5169 2010-06-10  Jim Meyering  <meyering@redhat.com>
5170
5171         inttostr-tests: depend on snprintf, not snprintf-posix
5172         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
5173         snprintf-posix, to avoid this aclocal failure:
5174           missing file gnulib-tests/vasnprintf.c
5175           configure.ac:45: error: expected source file, required through \
5176           AC_LIBSOURCES, not found
5177
5178 2010-06-10  Jim Meyering  <meyering@redhat.com>
5179
5180         inttostr: add a new function, inttostr, and tests
5181         The namesake function was not available.  The existence of the
5182         template file, inttostr.c makes its addition nontrivial.
5183         * lib/anytostr.c: Rename from inttostr.c.
5184         (anytostr): Rename from inttostr.
5185         * lib/inttostr.c: New file.
5186         * modules/inttostr (Files): Add anytostr.c.
5187         (Makefile.am): Set lib_SOURCES instead of ...
5188         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
5189         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
5190         * lib/offtostr.c: Likewise.
5191         * lib/uinttostr.c: Likewise.
5192         * lib/umaxtostr.c: Likewise.
5193         * modules/inttostr-tests: New file.
5194         * tests/test-inttostr.c: New file.  Test these functions.
5195
5196 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
5197             Bruno Haible  <bruno@clisp.org>
5198
5199         Add "Extending Gnulib" chapter to manual.
5200         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
5201         chapter.
5202         (Extending Gnulib): New chapter.
5203         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
5204         chapter.
5205
5206 2010-06-09  Bruno Haible  <bruno@clisp.org>
5207
5208         Avoid relocwrapper link errors due to gnulib replacement functions.
5209         * lib/areadlink.c: Use the system's malloc, realloc functions.
5210         (areadlink): Set errno to ENOMEM explicitly.
5211         * modules/areadlink (Depends-on): Remove malloc-posix.
5212         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5213
5214 2010-06-09  Bruno Haible  <bruno@clisp.org>
5215
5216         Avoid relocwrapper link errors due to gnulib replacement functions.
5217         * lib/canonicalize-lgpl.c: Use the system's malloc function.
5218         * lib/malloca.c: Likewise.
5219         * lib/relocatable.c: Likewise.
5220         * lib/progreloc.c: Use the system's malloc, sprintf functions.
5221         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
5222         * lib/setenv.c: Use the system's malloc, realloc functions.
5223         * lib/strerror.c: Use the system's sprintf function.
5224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5225
5226 2010-06-04  Bruno Haible  <bruno@clisp.org>
5227
5228         Prefer documented low-level autoconf macro names.
5229         * m4/lib-link.m4: Use m4_translit instead of translit.
5230         * m4/environ.m4: Likewise.
5231         * m4/mathfunc.m4: Likewise.
5232         * m4/onceonly.m4: Likewise.
5233         * m4/stdint.m4: Likewise.
5234         Suggested by Eric Blake.
5235
5236 2010-06-04  Martin Lambers  <marlam@marlam.de>
5237             Bruno Haible  <bruno@clisp.org>
5238
5239         havelib: Allow library names with '+' characters.
5240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5241         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
5242
5243 2010-06-09  Bruno Haible  <bruno@clisp.org>
5244
5245         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
5246         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
5247         realloc failed.
5248
5249 2010-06-08  Peter Simons  <simons@cryp.to>
5250
5251         maint.mk: make the news-check rule more configurable
5252         * top/maint.mk (news-check-lines-spec) New variable.
5253         (news-check): Use "sed -n 1,10p" in place of "head".
5254
5255 2010-06-07  Jim Meyering  <meyering@redhat.com>
5256
5257         do-release-commit-and-tag: fix typo in --help
5258         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
5259
5260         regex: avoid new dead-code warning with gcc-4.6.0
5261         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
5262         if-block containing a while-loop.  It's been unused for at least
5263         5 years.
5264
5265 2010-06-05  Bruno Haible  <bruno@clisp.org>
5266
5267         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
5268         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
5269
5270 2010-06-04  Bruno Haible  <bruno@clisp.org>
5271
5272         Update to GNU gettext 0.18.1.
5273         * modules/gettext (configure.ac): Require gettext infrastructure from
5274         version 0.18.1.
5275
5276 2010-06-03  Bruno Haible  <bruno@clisp.org>
5277
5278         Don't use AC_LIBOBJ with file names in subdirectories.
5279         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
5280         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
5281         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
5282         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
5283         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
5284         gl_LIBUNISTRING_LIBSOURCE.
5285         (Makefile.am): Augment lib_SOURCES here, conditionally.
5286         * NEWS: Drop requirement for Automake option 'subdir-objects'.
5287
5288 2010-06-03  Bruno Haible  <bruno@clisp.org>
5289
5290         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
5291         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
5292         expansion does not end with a newline.
5293         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
5294         unnecessary newline.
5295
5296 2010-06-03  Bruno Haible  <bruno@clisp.org>
5297
5298         Reduce dependencies.
5299         * tests/test-quotearg.h: New file, extracted from
5300         tests/test-quotearg.c.
5301         * tests/test-quotearg-simple.c: New file, extracted from
5302         tests/test-quotearg.c.
5303         * tests/test-quotearg.c: Don't include <ctype.h>.
5304         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
5305         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
5306         use_quote_double_quotes, use_quotearg_colon): Moved to
5307         tests/test-quotearg.h.
5308         (results_g, flag_results, custom_quotes, custom_results): Moved
5309         to tests/test-quotearg-simple.c.
5310         (main): Moved the part that does not depend on gettext to
5311         tests/test-quotearg-simple.c. Return 77 if the test cannot be
5312         performed.
5313         * modules/quotearg-simple: New file.
5314         * modules/quotearg-simple-tests: New file.
5315         * modules/quotearg (Depends-on): Add quotearg-simple.
5316         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
5317         (Files): Add tests/test-quotearg.h.
5318         Reported by Paolo Bonzini.
5319
5320 2010-06-03  Bruno Haible  <bruno@clisp.org>
5321
5322         Reduce dependencies.
5323         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
5324
5325 2010-06-03  Bruno Haible  <bruno@clisp.org>
5326
5327         time: Undefine more broken macros.
5328         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
5329         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
5330         Reported by Eric Blake.
5331
5332 2010-06-03  Bruno Haible  <bruno@clisp.org>
5333
5334         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
5335         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
5336         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
5337         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
5338         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
5339         Reported by Ludovic Courtès <ludo@gnu.org>.
5340
5341 2010-06-02  Eric Blake  <eblake@redhat.com>
5342
5343         time: work with mingw + pthreads-win32 library
5344         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
5345         if timespec is defined only in pthread.h.
5346         * modules/time (Makefile.am): Substitute it.
5347         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
5348         <pthread.h>, when needed.
5349         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
5350         from the library.
5351
5352 2010-05-31  Bruno Haible  <bruno@clisp.org>
5353
5354         Avoid expanding two macros in the wrong order.
5355         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
5356         gl_LIBUNISTRING if it is defined.
5357         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
5358         autoconf >= 2.64.
5359         Reported by Ludovic Courtès <ludo@gnu.org>.
5360
5361 2010-05-27  Jim Meyering  <meyering@redhat.com>
5362
5363         maint.mk: also prohibit "#undef" of always-defined symbols
5364         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
5365         Allow more than one space before the symbol name.
5366         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5367         the regexp uses alternation.
5368
5369 2010-05-26  Eric Blake  <eblake@redhat.com>
5370
5371         maint.mk: avoid echo -e
5372         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5373         Convert all uses of echo -* to printf.
5374         Reported by Matthias Bolte.
5375
5376 2010-05-25  Bruno Haible  <bruno@clisp.org>
5377
5378         Update to GNU gettext 0.18, part 2.
5379         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5380         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5381
5382 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5383
5384         Add missing include in test-pwrite.c.
5385         * tests/test-pwrite.c: Include string.h, for strcmp.
5386
5387 2010-05-24  Bruno Haible  <bruno@clisp.org>
5388
5389         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5390
5391 2010-05-24  Bruno Haible  <bruno@clisp.org>
5392
5393         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5394         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5395         iconveh_error argument.
5396         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5397         U_STRCONV_TO_LOCALE.
5398         * lib/unistr/u16-strcoll.c: Likewise.
5399         * lib/unistr/u32-strcoll.c: Likewise.
5400         * modules/unistr/u8-strcoll (Depends-on): Add
5401         uniconv/u8-strconv-to-enc, localcharset. Remove
5402         uniconv/u8-strconv-to-locale.
5403         (configure.ac): Bump version number.
5404         * modules/unistr/u16-strcoll (Depends-on): Add
5405         uniconv/u16-strconv-to-enc, localcharset. Remove
5406         uniconv/u16-strconv-to-locale.
5407         (configure.ac): Bump version number.
5408         * modules/unistr/u32-strcoll (Depends-on): Add
5409         uniconv/u32-strconv-to-enc, localcharset. Remove
5410         uniconv/u32-strconv-to-locale.
5411         (configure.ac): Bump version number.
5412
5413 2010-05-24  Bruno Haible  <bruno@clisp.org>
5414
5415         Avoid a test failure on NetBSD 5.0.
5416         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5417         an iconv() bug.
5418
5419 2010-05-24  Bruno Haible  <bruno@clisp.org>
5420
5421         Adjust #include directive style.
5422         * modules/regex (Includes): Recommend to write <regex.h>.
5423
5424 2010-05-24  Bruno Haible  <bruno@clisp.org>
5425
5426         regex: Don't require alloca.
5427         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5428         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5429         only inside if (0).
5430
5431 2010-05-23  Jim Meyering  <meyering@redhat.com>
5432
5433         test-renameat.c: include <sys/stat.h>
5434         * tests/test-renameat.c: Include <sys/stat.h>; required for
5435         definition of S_IS* macros.
5436
5437 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5438
5439         Update maintainer documentation for 'relocatable-prog' module.
5440         * doc/relocatable-maint.texi: Update.
5441         Comments by Bruno Haible.
5442
5443 2010-05-23  Bruno Haible  <bruno@clisp.org>
5444
5445         git-merge-changelog: Enable --split-merged-entry by default.
5446         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5447         (usage): Don't mention this option any more.
5448         Reported by Ralf Wildenhues.
5449
5450 2010-05-23  Jim Meyering  <meyering@redhat.com>
5451
5452         test-pwrite: do not leave behind a test file named "out"
5453         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5454         The trivial-looking use of init.sh is really necessary.
5455         It ensures that the temporary file, "out", is created in
5456         a temporary directory, and removed upon termination.
5457         * tests/test-pwrite.sh: Re-add file.
5458         * modules/pwrite-tests: Reference it.
5459
5460 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5461
5462         Fix output redirection buglet in init.sh.
5463         * tests/init.sh: Fix redirection of stderr.
5464
5465 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5466
5467         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5468
5469 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5470
5471         * modules/valgrind-tests: New file.
5472         * m4/valgrind-tests.m4: New file.
5473         * doc/valgrind-tests.texi: New file.
5474         * doc/gnulib.texi (Running self-tests under valgrind): New
5475         section.
5476
5477 2010-05-19  Bruno Haible  <bruno@clisp.org>
5478
5479         Clean up dead code in recent commit.
5480         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5481         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5482         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5483         Suggested by Paolo Bonzini.
5484
5485 2010-05-19  Bruno Haible  <bruno@clisp.org>
5486
5487         Avoid valgrind error reports from libunistring.
5488         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5489         * modules/libunistring (Files): Add it.
5490         * modules/libunistring-optional (Files): Likewise.
5491
5492 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5493             Bruno Haible  <bruno@clisp.org>
5494
5495         New module 'libunistring-optional'.
5496         * modules/libunistring-optional: New file.
5497         * m4/libunistring-base.m4: New file.
5498         * m4/libunistring-optional.m4: New file.
5499         * lib/unicase.in.h: Renamed from lib/unicase.h.
5500         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5501         * lib/unictype.in.h: Renamed from lib/unictype.h.
5502         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5503         * lib/uniname.in.h: Renamed from lib/uniname.h.
5504         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5505         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5506         * lib/unistr.in.h: Renamed from lib/unistr.h.
5507         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5508         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5509         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5510         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5511         gl_LIBUNISTRING. If the library was found, determine the installed
5512         version and set LIBUNISTRING_VERSION.
5513         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5514         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5515         handle a configuration option --with-included-libunistring.
5516         * modules/libunistring (Files): Add m4/absolute-header.m4.
5517         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5518         Add m4/libunistring-base.m4.
5519         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5520         (Makefile.am): Build unicase.h from unicase.in.h.
5521         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5522         Add m4/libunistring-base.m4.
5523         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5524         (Makefile.am): Build uniconv.h from uniconv.in.h.
5525         * modules/unictype/base (Files): Use unictype.in.h instead of
5526         unictype.h. Add m4/libunistring-base.m4.
5527         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5528         (Makefile.am): Build unictype.h from unictype.in.h.
5529         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5530         Add m4/libunistring-base.m4.
5531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5532         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5533         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5534         Add m4/libunistring-base.m4.
5535         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5536         (Makefile.am): Build uniname.h from uniname.in.h.
5537         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5538         Add m4/libunistring-base.m4.
5539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5540         (Makefile.am): Build uninorm.h from uninorm.in.h.
5541         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5542         unistdio.h. Add m4/libunistring-base.m4.
5543         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5544         (Makefile.am): Build unistdio.h from unistdio.in.h.
5545         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5546         Add m4/libunistring-base.m4.
5547         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5548         (Makefile.am): Build unistr.h from unistr.in.h.
5549         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5550         Add m4/libunistring-base.m4.
5551         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5552         (Makefile.am): Build unitypes.h from unitypes.in.h.
5553         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5554         Add m4/libunistring-base.m4.
5555         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5556         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5557         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5558         uniwidth.h. Add m4/libunistring-base.m4.
5559         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5560         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5561         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5562         instead of augmenting lib_SOURCES.
5563         * modules/unicase/empty-suffix-context: Likewise.
5564         * modules/unicase/locale-language: Likewise.
5565         * modules/unicase/tolower: Likewise.
5566         * modules/unicase/totitle: Likewise.
5567         * modules/unicase/toupper: Likewise.
5568         * modules/unicase/u8-casecmp: Likewise.
5569         * modules/unicase/u8-casecoll: Likewise.
5570         * modules/unicase/u8-casefold: Likewise.
5571         * modules/unicase/u8-casexfrm: Likewise.
5572         * modules/unicase/u8-ct-casefold: Likewise.
5573         * modules/unicase/u8-ct-tolower: Likewise.
5574         * modules/unicase/u8-ct-totitle: Likewise.
5575         * modules/unicase/u8-ct-toupper: Likewise.
5576         * modules/unicase/u8-is-cased: Likewise.
5577         * modules/unicase/u8-is-casefolded: Likewise.
5578         * modules/unicase/u8-is-lowercase: Likewise.
5579         * modules/unicase/u8-is-titlecase: Likewise.
5580         * modules/unicase/u8-is-uppercase: Likewise.
5581         * modules/unicase/u8-prefix-context: Likewise.
5582         * modules/unicase/u8-suffix-context: Likewise.
5583         * modules/unicase/u8-tolower: Likewise.
5584         * modules/unicase/u8-totitle: Likewise.
5585         * modules/unicase/u8-toupper: Likewise.
5586         * modules/unicase/u16-casecmp: Likewise.
5587         * modules/unicase/u16-casecoll: Likewise.
5588         * modules/unicase/u16-casefold: Likewise.
5589         * modules/unicase/u16-casexfrm: Likewise.
5590         * modules/unicase/u16-ct-casefold: Likewise.
5591         * modules/unicase/u16-ct-tolower: Likewise.
5592         * modules/unicase/u16-ct-totitle: Likewise.
5593         * modules/unicase/u16-ct-toupper: Likewise.
5594         * modules/unicase/u16-is-cased: Likewise.
5595         * modules/unicase/u16-is-casefolded: Likewise.
5596         * modules/unicase/u16-is-lowercase: Likewise.
5597         * modules/unicase/u16-is-titlecase: Likewise.
5598         * modules/unicase/u16-is-uppercase: Likewise.
5599         * modules/unicase/u16-prefix-context: Likewise.
5600         * modules/unicase/u16-suffix-context: Likewise.
5601         * modules/unicase/u16-tolower: Likewise.
5602         * modules/unicase/u16-totitle: Likewise.
5603         * modules/unicase/u16-toupper: Likewise.
5604         * modules/unicase/u32-casecmp: Likewise.
5605         * modules/unicase/u32-casecoll: Likewise.
5606         * modules/unicase/u32-casefold: Likewise.
5607         * modules/unicase/u32-casexfrm: Likewise.
5608         * modules/unicase/u32-ct-casefold: Likewise.
5609         * modules/unicase/u32-ct-tolower: Likewise.
5610         * modules/unicase/u32-ct-totitle: Likewise.
5611         * modules/unicase/u32-ct-toupper: Likewise.
5612         * modules/unicase/u32-is-cased: Likewise.
5613         * modules/unicase/u32-is-casefolded: Likewise.
5614         * modules/unicase/u32-is-lowercase: Likewise.
5615         * modules/unicase/u32-is-titlecase: Likewise.
5616         * modules/unicase/u32-is-uppercase: Likewise.
5617         * modules/unicase/u32-prefix-context: Likewise.
5618         * modules/unicase/u32-suffix-context: Likewise.
5619         * modules/unicase/u32-tolower: Likewise.
5620         * modules/unicase/u32-totitle: Likewise.
5621         * modules/unicase/u32-toupper: Likewise.
5622         * modules/unicase/ulc-casecmp: Likewise.
5623         * modules/unicase/ulc-casecoll: Likewise.
5624         * modules/unicase/ulc-casexfrm: Likewise.
5625         * modules/uniconv/u8-conv-from-enc: Likewise.
5626         * modules/uniconv/u8-conv-to-enc: Likewise.
5627         * modules/uniconv/u8-strconv-from-enc: Likewise.
5628         * modules/uniconv/u8-strconv-from-locale: Likewise.
5629         * modules/uniconv/u8-strconv-to-enc: Likewise.
5630         * modules/uniconv/u8-strconv-to-locale: Likewise.
5631         * modules/uniconv/u16-conv-from-enc: Likewise.
5632         * modules/uniconv/u16-conv-to-enc: Likewise.
5633         * modules/uniconv/u16-strconv-from-enc: Likewise.
5634         * modules/uniconv/u16-strconv-from-locale: Likewise.
5635         * modules/uniconv/u16-strconv-to-enc: Likewise.
5636         * modules/uniconv/u16-strconv-to-locale: Likewise.
5637         * modules/uniconv/u32-conv-from-enc: Likewise.
5638         * modules/uniconv/u32-conv-to-enc: Likewise.
5639         * modules/uniconv/u32-strconv-from-enc: Likewise.
5640         * modules/uniconv/u32-strconv-from-locale: Likewise.
5641         * modules/uniconv/u32-strconv-to-enc: Likewise.
5642         * modules/uniconv/u32-strconv-to-locale: Likewise.
5643         * modules/unictype/bidicategory-byname: Likewise.
5644         * modules/unictype/bidicategory-name: Likewise.
5645         * modules/unictype/bidicategory-of: Likewise.
5646         * modules/unictype/bidicategory-test: Likewise.
5647         * modules/unictype/block-list: Likewise.
5648         * modules/unictype/block-test: Likewise.
5649         * modules/unictype/category-C: Likewise.
5650         * modules/unictype/category-Cc: Likewise.
5651         * modules/unictype/category-Cf: Likewise.
5652         * modules/unictype/category-Cn: Likewise.
5653         * modules/unictype/category-Co: Likewise.
5654         * modules/unictype/category-Cs: Likewise.
5655         * modules/unictype/category-L: Likewise.
5656         * modules/unictype/category-Ll: Likewise.
5657         * modules/unictype/category-Lm: Likewise.
5658         * modules/unictype/category-Lo: Likewise.
5659         * modules/unictype/category-Lt: Likewise.
5660         * modules/unictype/category-Lu: Likewise.
5661         * modules/unictype/category-M: Likewise.
5662         * modules/unictype/category-Mc: Likewise.
5663         * modules/unictype/category-Me: Likewise.
5664         * modules/unictype/category-Mn: Likewise.
5665         * modules/unictype/category-N: Likewise.
5666         * modules/unictype/category-Nd: Likewise.
5667         * modules/unictype/category-Nl: Likewise.
5668         * modules/unictype/category-No: Likewise.
5669         * modules/unictype/category-P: Likewise.
5670         * modules/unictype/category-Pc: Likewise.
5671         * modules/unictype/category-Pd: Likewise.
5672         * modules/unictype/category-Pe: Likewise.
5673         * modules/unictype/category-Pf: Likewise.
5674         * modules/unictype/category-Pi: Likewise.
5675         * modules/unictype/category-Po: Likewise.
5676         * modules/unictype/category-Ps: Likewise.
5677         * modules/unictype/category-S: Likewise.
5678         * modules/unictype/category-Sc: Likewise.
5679         * modules/unictype/category-Sk: Likewise.
5680         * modules/unictype/category-Sm: Likewise.
5681         * modules/unictype/category-So: Likewise.
5682         * modules/unictype/category-Z: Likewise.
5683         * modules/unictype/category-Zl: Likewise.
5684         * modules/unictype/category-Zp: Likewise.
5685         * modules/unictype/category-Zs: Likewise.
5686         * modules/unictype/category-and: Likewise.
5687         * modules/unictype/category-and-not: Likewise.
5688         * modules/unictype/category-byname: Likewise.
5689         * modules/unictype/category-name: Likewise.
5690         * modules/unictype/category-none: Likewise.
5691         * modules/unictype/category-of: Likewise.
5692         * modules/unictype/category-or: Likewise.
5693         * modules/unictype/category-test: Likewise.
5694         * modules/unictype/combining-class: Likewise.
5695         * modules/unictype/ctype-alnum: Likewise.
5696         * modules/unictype/ctype-alpha: Likewise.
5697         * modules/unictype/ctype-blank: Likewise.
5698         * modules/unictype/ctype-cntrl: Likewise.
5699         * modules/unictype/ctype-digit: Likewise.
5700         * modules/unictype/ctype-graph: Likewise.
5701         * modules/unictype/ctype-lower: Likewise.
5702         * modules/unictype/ctype-print: Likewise.
5703         * modules/unictype/ctype-punct: Likewise.
5704         * modules/unictype/ctype-space: Likewise.
5705         * modules/unictype/ctype-upper: Likewise.
5706         * modules/unictype/ctype-xdigit: Likewise.
5707         * modules/unictype/decimal-digit: Likewise.
5708         * modules/unictype/digit: Likewise.
5709         * modules/unictype/mirror: Likewise.
5710         * modules/unictype/numeric: Likewise.
5711         * modules/unictype/property-alphabetic: Likewise.
5712         * modules/unictype/property-ascii-hex-digit: Likewise.
5713         * modules/unictype/property-bidi-arabic-digit: Likewise.
5714         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
5715         * modules/unictype/property-bidi-block-separator: Likewise.
5716         * modules/unictype/property-bidi-boundary-neutral: Likewise.
5717         * modules/unictype/property-bidi-common-separator: Likewise.
5718         * modules/unictype/property-bidi-control: Likewise.
5719         * modules/unictype/property-bidi-embedding-or-override: Likewise.
5720         * modules/unictype/property-bidi-eur-num-separator: Likewise.
5721         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
5722         * modules/unictype/property-bidi-european-digit: Likewise.
5723         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
5724         * modules/unictype/property-bidi-left-to-right: Likewise.
5725         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
5726         * modules/unictype/property-bidi-other-neutral: Likewise.
5727         * modules/unictype/property-bidi-pdf: Likewise.
5728         * modules/unictype/property-bidi-segment-separator: Likewise.
5729         * modules/unictype/property-bidi-whitespace: Likewise.
5730         * modules/unictype/property-byname: Likewise.
5731         * modules/unictype/property-combining: Likewise.
5732         * modules/unictype/property-composite: Likewise.
5733         * modules/unictype/property-currency-symbol: Likewise.
5734         * modules/unictype/property-dash: Likewise.
5735         * modules/unictype/property-decimal-digit: Likewise.
5736         * modules/unictype/property-default-ignorable-code-point: Likewise.
5737         * modules/unictype/property-deprecated: Likewise.
5738         * modules/unictype/property-diacritic: Likewise.
5739         * modules/unictype/property-extender: Likewise.
5740         * modules/unictype/property-format-control: Likewise.
5741         * modules/unictype/property-grapheme-base: Likewise.
5742         * modules/unictype/property-grapheme-extend: Likewise.
5743         * modules/unictype/property-grapheme-link: Likewise.
5744         * modules/unictype/property-hex-digit: Likewise.
5745         * modules/unictype/property-hyphen: Likewise.
5746         * modules/unictype/property-id-continue: Likewise.
5747         * modules/unictype/property-id-start: Likewise.
5748         * modules/unictype/property-ideographic: Likewise.
5749         * modules/unictype/property-ids-binary-operator: Likewise.
5750         * modules/unictype/property-ids-trinary-operator: Likewise.
5751         * modules/unictype/property-ignorable-control: Likewise.
5752         * modules/unictype/property-iso-control: Likewise.
5753         * modules/unictype/property-join-control: Likewise.
5754         * modules/unictype/property-left-of-pair: Likewise.
5755         * modules/unictype/property-line-separator: Likewise.
5756         * modules/unictype/property-logical-order-exception: Likewise.
5757         * modules/unictype/property-lowercase: Likewise.
5758         * modules/unictype/property-math: Likewise.
5759         * modules/unictype/property-non-break: Likewise.
5760         * modules/unictype/property-not-a-character: Likewise.
5761         * modules/unictype/property-numeric: Likewise.
5762         * modules/unictype/property-other-alphabetic: Likewise.
5763         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
5764         * modules/unictype/property-other-grapheme-extend: Likewise.
5765         * modules/unictype/property-other-id-continue: Likewise.
5766         * modules/unictype/property-other-id-start: Likewise.
5767         * modules/unictype/property-other-lowercase: Likewise.
5768         * modules/unictype/property-other-math: Likewise.
5769         * modules/unictype/property-other-uppercase: Likewise.
5770         * modules/unictype/property-paired-punctuation: Likewise.
5771         * modules/unictype/property-paragraph-separator: Likewise.
5772         * modules/unictype/property-pattern-syntax: Likewise.
5773         * modules/unictype/property-pattern-white-space: Likewise.
5774         * modules/unictype/property-private-use: Likewise.
5775         * modules/unictype/property-punctuation: Likewise.
5776         * modules/unictype/property-quotation-mark: Likewise.
5777         * modules/unictype/property-radical: Likewise.
5778         * modules/unictype/property-sentence-terminal: Likewise.
5779         * modules/unictype/property-soft-dotted: Likewise.
5780         * modules/unictype/property-space: Likewise.
5781         * modules/unictype/property-terminal-punctuation: Likewise.
5782         * modules/unictype/property-test: Likewise.
5783         * modules/unictype/property-titlecase: Likewise.
5784         * modules/unictype/property-unassigned-code-value: Likewise.
5785         * modules/unictype/property-unified-ideograph: Likewise.
5786         * modules/unictype/property-uppercase: Likewise.
5787         * modules/unictype/property-variation-selector: Likewise.
5788         * modules/unictype/property-white-space: Likewise.
5789         * modules/unictype/property-xid-continue: Likewise.
5790         * modules/unictype/property-xid-start: Likewise.
5791         * modules/unictype/property-zero-width: Likewise.
5792         * modules/unictype/scripts: Likewise.
5793         * modules/unictype/syntax-c-ident: Likewise.
5794         * modules/unictype/syntax-c-whitespace: Likewise.
5795         * modules/unictype/syntax-java-ident: Likewise.
5796         * modules/unictype/syntax-java-whitespace: Likewise.
5797         * modules/unilbrk/u8-possible-linebreaks: Likewise.
5798         * modules/unilbrk/u8-width-linebreaks: Likewise.
5799         * modules/unilbrk/u16-possible-linebreaks: Likewise.
5800         * modules/unilbrk/u16-width-linebreaks: Likewise.
5801         * modules/unilbrk/u32-possible-linebreaks: Likewise.
5802         * modules/unilbrk/u32-width-linebreaks: Likewise.
5803         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
5804         * modules/unilbrk/ulc-width-linebreaks: Likewise.
5805         * modules/uniname/uniname: Likewise.
5806         * modules/uninorm/canonical-decomposition: Likewise.
5807         * modules/uninorm/composition: Likewise.
5808         * modules/uninorm/decomposing-form: Likewise.
5809         * modules/uninorm/decomposition: Likewise.
5810         * modules/uninorm/filter: Likewise.
5811         * modules/uninorm/nfc: Likewise.
5812         * modules/uninorm/nfd: Likewise.
5813         * modules/uninorm/nfkc: Likewise.
5814         * modules/uninorm/nfkd: Likewise.
5815         * modules/uninorm/u8-normalize: Likewise.
5816         * modules/uninorm/u8-normcmp: Likewise.
5817         * modules/uninorm/u8-normcoll: Likewise.
5818         * modules/uninorm/u8-normxfrm: Likewise.
5819         * modules/uninorm/u16-normalize: Likewise.
5820         * modules/uninorm/u16-normcmp: Likewise.
5821         * modules/uninorm/u16-normcoll: Likewise.
5822         * modules/uninorm/u16-normxfrm: Likewise.
5823         * modules/uninorm/u32-normalize: Likewise.
5824         * modules/uninorm/u32-normcmp: Likewise.
5825         * modules/uninorm/u32-normcoll: Likewise.
5826         * modules/uninorm/u32-normxfrm: Likewise.
5827         * modules/unistdio/u8-asnprintf: Likewise.
5828         * modules/unistdio/u8-asprintf: Likewise.
5829         * modules/unistdio/u8-snprintf: Likewise.
5830         * modules/unistdio/u8-sprintf: Likewise.
5831         * modules/unistdio/u8-u8-asnprintf: Likewise.
5832         * modules/unistdio/u8-u8-asprintf: Likewise.
5833         * modules/unistdio/u8-u8-snprintf: Likewise.
5834         * modules/unistdio/u8-u8-sprintf: Likewise.
5835         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5836         * modules/unistdio/u8-u8-vasprintf: Likewise.
5837         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5838         * modules/unistdio/u8-u8-vsprintf: Likewise.
5839         * modules/unistdio/u8-vasnprintf: Likewise.
5840         * modules/unistdio/u8-vasprintf: Likewise.
5841         * modules/unistdio/u8-vsnprintf: Likewise.
5842         * modules/unistdio/u8-vsprintf: Likewise.
5843         * modules/unistdio/u16-asnprintf: Likewise.
5844         * modules/unistdio/u16-asprintf: Likewise.
5845         * modules/unistdio/u16-snprintf: Likewise.
5846         * modules/unistdio/u16-sprintf: Likewise.
5847         * modules/unistdio/u16-u16-asnprintf: Likewise.
5848         * modules/unistdio/u16-u16-asprintf: Likewise.
5849         * modules/unistdio/u16-u16-snprintf: Likewise.
5850         * modules/unistdio/u16-u16-sprintf: Likewise.
5851         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5852         * modules/unistdio/u16-u16-vasprintf: Likewise.
5853         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5854         * modules/unistdio/u16-u16-vsprintf: Likewise.
5855         * modules/unistdio/u16-vasnprintf: Likewise.
5856         * modules/unistdio/u16-vasprintf: Likewise.
5857         * modules/unistdio/u16-vsnprintf: Likewise.
5858         * modules/unistdio/u16-vsprintf: Likewise.
5859         * modules/unistdio/u32-asnprintf: Likewise.
5860         * modules/unistdio/u32-asprintf: Likewise.
5861         * modules/unistdio/u32-snprintf: Likewise.
5862         * modules/unistdio/u32-sprintf: Likewise.
5863         * modules/unistdio/u32-u32-asnprintf: Likewise.
5864         * modules/unistdio/u32-u32-asprintf: Likewise.
5865         * modules/unistdio/u32-u32-snprintf: Likewise.
5866         * modules/unistdio/u32-u32-sprintf: Likewise.
5867         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5868         * modules/unistdio/u32-u32-vasprintf: Likewise.
5869         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5870         * modules/unistdio/u32-u32-vsprintf: Likewise.
5871         * modules/unistdio/u32-vasnprintf: Likewise.
5872         * modules/unistdio/u32-vasprintf: Likewise.
5873         * modules/unistdio/u32-vsnprintf: Likewise.
5874         * modules/unistdio/u32-vsprintf: Likewise.
5875         * modules/unistdio/ulc-asnprintf: Likewise.
5876         * modules/unistdio/ulc-asprintf: Likewise.
5877         * modules/unistdio/ulc-fprintf: Likewise.
5878         * modules/unistdio/ulc-snprintf: Likewise.
5879         * modules/unistdio/ulc-sprintf: Likewise.
5880         * modules/unistdio/ulc-vasnprintf: Likewise.
5881         * modules/unistdio/ulc-vasprintf: Likewise.
5882         * modules/unistdio/ulc-vfprintf: Likewise.
5883         * modules/unistdio/ulc-vsnprintf: Likewise.
5884         * modules/unistdio/ulc-vsprintf: Likewise.
5885         * modules/unistr/u8-check: Likewise.
5886         * modules/unistr/u8-chr: Likewise.
5887         * modules/unistr/u8-cmp: Likewise.
5888         * modules/unistr/u8-cmp2: Likewise.
5889         * modules/unistr/u8-cpy: Likewise.
5890         * modules/unistr/u8-cpy-alloc: Likewise.
5891         * modules/unistr/u8-endswith: Likewise.
5892         * modules/unistr/u8-mblen: Likewise.
5893         * modules/unistr/u8-mbsnlen: Likewise.
5894         * modules/unistr/u8-mbtouc: Likewise.
5895         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5896         * modules/unistr/u8-mbtoucr: Likewise.
5897         * modules/unistr/u8-move: Likewise.
5898         * modules/unistr/u8-next: Likewise.
5899         * modules/unistr/u8-prev: Likewise.
5900         * modules/unistr/u8-set: Likewise.
5901         * modules/unistr/u8-startswith: Likewise.
5902         * modules/unistr/u8-stpcpy: Likewise.
5903         * modules/unistr/u8-stpncpy: Likewise.
5904         * modules/unistr/u8-strcat: Likewise.
5905         * modules/unistr/u8-strchr: Likewise.
5906         * modules/unistr/u8-strcmp: Likewise.
5907         * modules/unistr/u8-strcoll: Likewise.
5908         * modules/unistr/u8-strcpy: Likewise.
5909         * modules/unistr/u8-strcspn: Likewise.
5910         * modules/unistr/u8-strdup: Likewise.
5911         * modules/unistr/u8-strlen: Likewise.
5912         * modules/unistr/u8-strmblen: Likewise.
5913         * modules/unistr/u8-strmbtouc: Likewise.
5914         * modules/unistr/u8-strncat: Likewise.
5915         * modules/unistr/u8-strncmp: Likewise.
5916         * modules/unistr/u8-strncpy: Likewise.
5917         * modules/unistr/u8-strnlen: Likewise.
5918         * modules/unistr/u8-strpbrk: Likewise.
5919         * modules/unistr/u8-strrchr: Likewise.
5920         * modules/unistr/u8-strspn: Likewise.
5921         * modules/unistr/u8-strstr: Likewise.
5922         * modules/unistr/u8-strtok: Likewise.
5923         * modules/unistr/u8-to-u16: Likewise.
5924         * modules/unistr/u8-to-u32: Likewise.
5925         * modules/unistr/u8-uctomb: Likewise.
5926         * modules/unistr/u16-check: Likewise.
5927         * modules/unistr/u16-chr: Likewise.
5928         * modules/unistr/u16-cmp: Likewise.
5929         * modules/unistr/u16-cmp2: Likewise.
5930         * modules/unistr/u16-cpy: Likewise.
5931         * modules/unistr/u16-cpy-alloc: Likewise.
5932         * modules/unistr/u16-endswith: Likewise.
5933         * modules/unistr/u16-mblen: Likewise.
5934         * modules/unistr/u16-mbsnlen: Likewise.
5935         * modules/unistr/u16-mbtouc: Likewise.
5936         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5937         * modules/unistr/u16-mbtoucr: Likewise.
5938         * modules/unistr/u16-move: Likewise.
5939         * modules/unistr/u16-next: Likewise.
5940         * modules/unistr/u16-prev: Likewise.
5941         * modules/unistr/u16-set: Likewise.
5942         * modules/unistr/u16-startswith: Likewise.
5943         * modules/unistr/u16-stpcpy: Likewise.
5944         * modules/unistr/u16-stpncpy: Likewise.
5945         * modules/unistr/u16-strcat: Likewise.
5946         * modules/unistr/u16-strchr: Likewise.
5947         * modules/unistr/u16-strcmp: Likewise.
5948         * modules/unistr/u16-strcoll: Likewise.
5949         * modules/unistr/u16-strcpy: Likewise.
5950         * modules/unistr/u16-strcspn: Likewise.
5951         * modules/unistr/u16-strdup: Likewise.
5952         * modules/unistr/u16-strlen: Likewise.
5953         * modules/unistr/u16-strmblen: Likewise.
5954         * modules/unistr/u16-strmbtouc: Likewise.
5955         * modules/unistr/u16-strncat: Likewise.
5956         * modules/unistr/u16-strncmp: Likewise.
5957         * modules/unistr/u16-strncpy: Likewise.
5958         * modules/unistr/u16-strnlen: Likewise.
5959         * modules/unistr/u16-strpbrk: Likewise.
5960         * modules/unistr/u16-strrchr: Likewise.
5961         * modules/unistr/u16-strspn: Likewise.
5962         * modules/unistr/u16-strstr: Likewise.
5963         * modules/unistr/u16-strtok: Likewise.
5964         * modules/unistr/u16-to-u32: Likewise.
5965         * modules/unistr/u16-to-u8: Likewise.
5966         * modules/unistr/u16-uctomb: Likewise.
5967         * modules/unistr/u32-check: Likewise.
5968         * modules/unistr/u32-chr: Likewise.
5969         * modules/unistr/u32-cmp: Likewise.
5970         * modules/unistr/u32-cmp2: Likewise.
5971         * modules/unistr/u32-cpy: Likewise.
5972         * modules/unistr/u32-cpy-alloc: Likewise.
5973         * modules/unistr/u32-endswith: Likewise.
5974         * modules/unistr/u32-mblen: Likewise.
5975         * modules/unistr/u32-mbsnlen: Likewise.
5976         * modules/unistr/u32-mbtouc: Likewise.
5977         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5978         * modules/unistr/u32-mbtoucr: Likewise.
5979         * modules/unistr/u32-move: Likewise.
5980         * modules/unistr/u32-next: Likewise.
5981         * modules/unistr/u32-prev: Likewise.
5982         * modules/unistr/u32-set: Likewise.
5983         * modules/unistr/u32-startswith: Likewise.
5984         * modules/unistr/u32-stpcpy: Likewise.
5985         * modules/unistr/u32-stpncpy: Likewise.
5986         * modules/unistr/u32-strcat: Likewise.
5987         * modules/unistr/u32-strchr: Likewise.
5988         * modules/unistr/u32-strcmp: Likewise.
5989         * modules/unistr/u32-strcoll: Likewise.
5990         * modules/unistr/u32-strcpy: Likewise.
5991         * modules/unistr/u32-strcspn: Likewise.
5992         * modules/unistr/u32-strdup: Likewise.
5993         * modules/unistr/u32-strlen: Likewise.
5994         * modules/unistr/u32-strmblen: Likewise.
5995         * modules/unistr/u32-strmbtouc: Likewise.
5996         * modules/unistr/u32-strncat: Likewise.
5997         * modules/unistr/u32-strncmp: Likewise.
5998         * modules/unistr/u32-strncpy: Likewise.
5999         * modules/unistr/u32-strnlen: Likewise.
6000         * modules/unistr/u32-strpbrk: Likewise.
6001         * modules/unistr/u32-strrchr: Likewise.
6002         * modules/unistr/u32-strspn: Likewise.
6003         * modules/unistr/u32-strstr: Likewise.
6004         * modules/unistr/u32-strtok: Likewise.
6005         * modules/unistr/u32-to-u16: Likewise.
6006         * modules/unistr/u32-to-u8: Likewise.
6007         * modules/unistr/u32-uctomb: Likewise.
6008         * modules/uniwbrk/u8-wordbreaks: Likewise.
6009         * modules/uniwbrk/u16-wordbreaks: Likewise.
6010         * modules/uniwbrk/u32-wordbreaks: Likewise.
6011         * modules/uniwbrk/ulc-wordbreaks: Likewise.
6012         * modules/uniwbrk/wordbreak-property: Likewise.
6013         * modules/uniwidth/u8-strwidth: Likewise.
6014         * modules/uniwidth/u8-width: Likewise.
6015         * modules/uniwidth/u16-strwidth: Likewise.
6016         * modules/uniwidth/u16-width: Likewise.
6017         * modules/uniwidth/u32-strwidth: Likewise.
6018         * modules/uniwidth/u32-width: Likewise.
6019         * modules/uniwidth/width: Likewise.
6020         * modules/unicase/cased-tests (Makefile.am): Link all test programs
6021         with $(LIBUNISTRING).
6022         * modules/unicase/ignorable-tests: Likewise.
6023         * modules/unicase/locale-language-tests: Likewise.
6024         * modules/unicase/tolower-tests: Likewise.
6025         * modules/unicase/totitle-tests: Likewise.
6026         * modules/unicase/toupper-tests: Likewise.
6027         * modules/unicase/u8-casecmp-tests: Likewise.
6028         * modules/unicase/u8-casecoll-tests: Likewise.
6029         * modules/unicase/u8-casefold-tests: Likewise.
6030         * modules/unicase/u8-is-cased-tests: Likewise.
6031         * modules/unicase/u8-is-casefolded-tests: Likewise.
6032         * modules/unicase/u8-is-lowercase-tests: Likewise.
6033         * modules/unicase/u8-is-titlecase-tests: Likewise.
6034         * modules/unicase/u8-is-uppercase-tests: Likewise.
6035         * modules/unicase/u8-tolower-tests: Likewise.
6036         * modules/unicase/u8-totitle-tests: Likewise.
6037         * modules/unicase/u8-toupper-tests: Likewise.
6038         * modules/unicase/u16-casecmp-tests: Likewise.
6039         * modules/unicase/u16-casecoll-tests: Likewise.
6040         * modules/unicase/u16-casefold-tests: Likewise.
6041         * modules/unicase/u16-is-cased-tests: Likewise.
6042         * modules/unicase/u16-is-casefolded-tests: Likewise.
6043         * modules/unicase/u16-is-lowercase-tests: Likewise.
6044         * modules/unicase/u16-is-titlecase-tests: Likewise.
6045         * modules/unicase/u16-is-uppercase-tests: Likewise.
6046         * modules/unicase/u16-tolower-tests: Likewise.
6047         * modules/unicase/u16-totitle-tests: Likewise.
6048         * modules/unicase/u16-toupper-tests: Likewise.
6049         * modules/unicase/u32-casecmp-tests: Likewise.
6050         * modules/unicase/u32-casecoll-tests: Likewise.
6051         * modules/unicase/u32-casefold-tests: Likewise.
6052         * modules/unicase/u32-is-cased-tests: Likewise.
6053         * modules/unicase/u32-is-casefolded-tests: Likewise.
6054         * modules/unicase/u32-is-lowercase-tests: Likewise.
6055         * modules/unicase/u32-is-titlecase-tests: Likewise.
6056         * modules/unicase/u32-is-uppercase-tests: Likewise.
6057         * modules/unicase/u32-tolower-tests: Likewise.
6058         * modules/unicase/u32-totitle-tests: Likewise.
6059         * modules/unicase/u32-toupper-tests: Likewise.
6060         * modules/unicase/ulc-casecmp-tests: Likewise.
6061         * modules/unicase/ulc-casecoll-tests: Likewise.
6062         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
6063         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
6064         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
6065         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
6066         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
6067         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
6068         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
6069         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
6070         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
6071         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
6072         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
6073         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
6074         * modules/unictype/bidicategory-byname-tests: Likewise.
6075         * modules/unictype/bidicategory-name-tests: Likewise.
6076         * modules/unictype/bidicategory-of-tests: Likewise.
6077         * modules/unictype/bidicategory-test-tests: Likewise.
6078         * modules/unictype/block-list-tests: Likewise.
6079         * modules/unictype/block-of-tests: Likewise.
6080         * modules/unictype/block-test-tests: Likewise.
6081         * modules/unictype/category-C-tests: Likewise.
6082         * modules/unictype/category-Cc-tests: Likewise.
6083         * modules/unictype/category-Cf-tests: Likewise.
6084         * modules/unictype/category-Cn-tests: Likewise.
6085         * modules/unictype/category-Co-tests: Likewise.
6086         * modules/unictype/category-Cs-tests: Likewise.
6087         * modules/unictype/category-L-tests: Likewise.
6088         * modules/unictype/category-Ll-tests: Likewise.
6089         * modules/unictype/category-Lm-tests: Likewise.
6090         * modules/unictype/category-Lo-tests: Likewise.
6091         * modules/unictype/category-Lt-tests: Likewise.
6092         * modules/unictype/category-Lu-tests: Likewise.
6093         * modules/unictype/category-M-tests: Likewise.
6094         * modules/unictype/category-Mc-tests: Likewise.
6095         * modules/unictype/category-Me-tests: Likewise.
6096         * modules/unictype/category-Mn-tests: Likewise.
6097         * modules/unictype/category-N-tests: Likewise.
6098         * modules/unictype/category-Nd-tests: Likewise.
6099         * modules/unictype/category-Nl-tests: Likewise.
6100         * modules/unictype/category-No-tests: Likewise.
6101         * modules/unictype/category-P-tests: Likewise.
6102         * modules/unictype/category-Pc-tests: Likewise.
6103         * modules/unictype/category-Pd-tests: Likewise.
6104         * modules/unictype/category-Pe-tests: Likewise.
6105         * modules/unictype/category-Pf-tests: Likewise.
6106         * modules/unictype/category-Pi-tests: Likewise.
6107         * modules/unictype/category-Po-tests: Likewise.
6108         * modules/unictype/category-Ps-tests: Likewise.
6109         * modules/unictype/category-S-tests: Likewise.
6110         * modules/unictype/category-Sc-tests: Likewise.
6111         * modules/unictype/category-Sk-tests: Likewise.
6112         * modules/unictype/category-Sm-tests: Likewise.
6113         * modules/unictype/category-So-tests: Likewise.
6114         * modules/unictype/category-Z-tests: Likewise.
6115         * modules/unictype/category-Zl-tests: Likewise.
6116         * modules/unictype/category-Zp-tests: Likewise.
6117         * modules/unictype/category-Zs-tests: Likewise.
6118         * modules/unictype/category-and-not-tests: Likewise.
6119         * modules/unictype/category-and-tests: Likewise.
6120         * modules/unictype/category-byname-tests: Likewise.
6121         * modules/unictype/category-name-tests: Likewise.
6122         * modules/unictype/category-none-tests: Likewise.
6123         * modules/unictype/category-of-tests: Likewise.
6124         * modules/unictype/category-or-tests: Likewise.
6125         * modules/unictype/category-test-withtable-tests: Likewise.
6126         * modules/unictype/combining-class-tests: Likewise.
6127         * modules/unictype/ctype-alnum-tests: Likewise.
6128         * modules/unictype/ctype-alpha-tests: Likewise.
6129         * modules/unictype/ctype-blank-tests: Likewise.
6130         * modules/unictype/ctype-cntrl-tests: Likewise.
6131         * modules/unictype/ctype-digit-tests: Likewise.
6132         * modules/unictype/ctype-graph-tests: Likewise.
6133         * modules/unictype/ctype-lower-tests: Likewise.
6134         * modules/unictype/ctype-print-tests: Likewise.
6135         * modules/unictype/ctype-punct-tests: Likewise.
6136         * modules/unictype/ctype-space-tests: Likewise.
6137         * modules/unictype/ctype-upper-tests: Likewise.
6138         * modules/unictype/ctype-xdigit-tests: Likewise.
6139         * modules/unictype/decimal-digit-tests: Likewise.
6140         * modules/unictype/digit-tests: Likewise.
6141         * modules/unictype/mirror-tests: Likewise.
6142         * modules/unictype/numeric-tests: Likewise.
6143         * modules/unictype/property-alphabetic-tests: Likewise.
6144         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
6145         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
6146         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
6147         * modules/unictype/property-bidi-block-separator-tests: Likewise.
6148         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
6149         * modules/unictype/property-bidi-common-separator-tests: Likewise.
6150         * modules/unictype/property-bidi-control-tests: Likewise.
6151         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
6152         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
6153         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
6154         * modules/unictype/property-bidi-european-digit-tests: Likewise.
6155         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
6156         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
6157         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
6158         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
6159         * modules/unictype/property-bidi-pdf-tests: Likewise.
6160         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
6161         * modules/unictype/property-bidi-whitespace-tests: Likewise.
6162         * modules/unictype/property-byname-tests: Likewise.
6163         * modules/unictype/property-combining-tests: Likewise.
6164         * modules/unictype/property-composite-tests: Likewise.
6165         * modules/unictype/property-currency-symbol-tests: Likewise.
6166         * modules/unictype/property-dash-tests: Likewise.
6167         * modules/unictype/property-decimal-digit-tests: Likewise.
6168         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
6169         * modules/unictype/property-deprecated-tests: Likewise.
6170         * modules/unictype/property-diacritic-tests: Likewise.
6171         * modules/unictype/property-extender-tests: Likewise.
6172         * modules/unictype/property-format-control-tests: Likewise.
6173         * modules/unictype/property-grapheme-base-tests: Likewise.
6174         * modules/unictype/property-grapheme-extend-tests: Likewise.
6175         * modules/unictype/property-grapheme-link-tests: Likewise.
6176         * modules/unictype/property-hex-digit-tests: Likewise.
6177         * modules/unictype/property-hyphen-tests: Likewise.
6178         * modules/unictype/property-id-continue-tests: Likewise.
6179         * modules/unictype/property-id-start-tests: Likewise.
6180         * modules/unictype/property-ideographic-tests: Likewise.
6181         * modules/unictype/property-ids-binary-operator-tests: Likewise.
6182         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
6183         * modules/unictype/property-ignorable-control-tests: Likewise.
6184         * modules/unictype/property-iso-control-tests: Likewise.
6185         * modules/unictype/property-join-control-tests: Likewise.
6186         * modules/unictype/property-left-of-pair-tests: Likewise.
6187         * modules/unictype/property-line-separator-tests: Likewise.
6188         * modules/unictype/property-logical-order-exception-tests: Likewise.
6189         * modules/unictype/property-lowercase-tests: Likewise.
6190         * modules/unictype/property-math-tests: Likewise.
6191         * modules/unictype/property-non-break-tests: Likewise.
6192         * modules/unictype/property-not-a-character-tests: Likewise.
6193         * modules/unictype/property-numeric-tests: Likewise.
6194         * modules/unictype/property-other-alphabetic-tests: Likewise.
6195         * modules/unictype/property-other-default-ignorable-code-point-tests:
6196         Likewise.
6197         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
6198         * modules/unictype/property-other-id-continue-tests: Likewise.
6199         * modules/unictype/property-other-id-start-tests: Likewise.
6200         * modules/unictype/property-other-lowercase-tests: Likewise.
6201         * modules/unictype/property-other-math-tests: Likewise.
6202         * modules/unictype/property-other-uppercase-tests: Likewise.
6203         * modules/unictype/property-paired-punctuation-tests: Likewise.
6204         * modules/unictype/property-paragraph-separator-tests: Likewise.
6205         * modules/unictype/property-pattern-syntax-tests: Likewise.
6206         * modules/unictype/property-pattern-white-space-tests: Likewise.
6207         * modules/unictype/property-private-use-tests: Likewise.
6208         * modules/unictype/property-punctuation-tests: Likewise.
6209         * modules/unictype/property-quotation-mark-tests: Likewise.
6210         * modules/unictype/property-radical-tests: Likewise.
6211         * modules/unictype/property-sentence-terminal-tests: Likewise.
6212         * modules/unictype/property-soft-dotted-tests: Likewise.
6213         * modules/unictype/property-space-tests: Likewise.
6214         * modules/unictype/property-terminal-punctuation-tests: Likewise.
6215         * modules/unictype/property-test-tests: Likewise.
6216         * modules/unictype/property-titlecase-tests: Likewise.
6217         * modules/unictype/property-unassigned-code-value-tests: Likewise.
6218         * modules/unictype/property-unified-ideograph-tests: Likewise.
6219         * modules/unictype/property-uppercase-tests: Likewise.
6220         * modules/unictype/property-variation-selector-tests: Likewise.
6221         * modules/unictype/property-white-space-tests: Likewise.
6222         * modules/unictype/property-xid-continue-tests: Likewise.
6223         * modules/unictype/property-xid-start-tests: Likewise.
6224         * modules/unictype/property-zero-width-tests: Likewise.
6225         * modules/unictype/scripts-tests: Likewise.
6226         * modules/unictype/syntax-c-ident-tests: Likewise.
6227         * modules/unictype/syntax-c-whitespace-tests: Likewise.
6228         * modules/unictype/syntax-java-ident-tests: Likewise.
6229         * modules/unictype/syntax-java-whitespace-tests: Likewise.
6230         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
6231         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
6232         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
6233         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
6234         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
6235         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
6236         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
6237         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
6238         * modules/uniname/uniname-tests: Likewise.
6239         * modules/uninorm/canonical-decomposition-tests: Likewise.
6240         * modules/uninorm/compat-decomposition-tests: Likewise.
6241         * modules/uninorm/composition-tests: Likewise.
6242         * modules/uninorm/decomposing-form-tests: Likewise.
6243         * modules/uninorm/decomposition-tests: Likewise.
6244         * modules/uninorm/filter-tests: Likewise.
6245         * modules/uninorm/nfc-tests: Likewise.
6246         * modules/uninorm/nfd-tests: Likewise.
6247         * modules/uninorm/nfkc-tests: Likewise.
6248         * modules/uninorm/nfkd-tests: Likewise.
6249         * modules/uninorm/u8-normcmp-tests: Likewise.
6250         * modules/uninorm/u8-normcoll-tests: Likewise.
6251         * modules/uninorm/u16-normcmp-tests: Likewise.
6252         * modules/uninorm/u16-normcoll-tests: Likewise.
6253         * modules/uninorm/u32-normcmp-tests: Likewise.
6254         * modules/uninorm/u32-normcoll-tests: Likewise.
6255         * modules/unistdio/u8-asnprintf-tests: Likewise.
6256         * modules/unistdio/u8-vasnprintf-tests: Likewise.
6257         * modules/unistdio/u8-vasprintf-tests: Likewise.
6258         * modules/unistdio/u8-vsnprintf-tests: Likewise.
6259         * modules/unistdio/u8-vsprintf-tests: Likewise.
6260         * modules/unistdio/u16-asnprintf-tests: Likewise.
6261         * modules/unistdio/u16-vasnprintf-tests: Likewise.
6262         * modules/unistdio/u16-vasprintf-tests: Likewise.
6263         * modules/unistdio/u16-vsnprintf-tests: Likewise.
6264         * modules/unistdio/u16-vsprintf-tests: Likewise.
6265         * modules/unistdio/u32-asnprintf-tests: Likewise.
6266         * modules/unistdio/u32-vasnprintf-tests: Likewise.
6267         * modules/unistdio/u32-vasprintf-tests: Likewise.
6268         * modules/unistdio/u32-vsnprintf-tests: Likewise.
6269         * modules/unistdio/u32-vsprintf-tests: Likewise.
6270         * modules/unistdio/ulc-asnprintf-tests: Likewise.
6271         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
6272         * modules/unistdio/ulc-vasprintf-tests: Likewise.
6273         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
6274         * modules/unistdio/ulc-vsprintf-tests: Likewise.
6275         * modules/unistr/u8-check-tests: Likewise.
6276         * modules/unistr/u8-chr-tests: Likewise.
6277         * modules/unistr/u8-cmp-tests: Likewise.
6278         * modules/unistr/u8-cmp2-tests: Likewise.
6279         * modules/unistr/u8-cpy-alloc-tests: Likewise.
6280         * modules/unistr/u8-cpy-tests: Likewise.
6281         * modules/unistr/u8-mblen-tests: Likewise.
6282         * modules/unistr/u8-mbsnlen-tests: Likewise.
6283         * modules/unistr/u8-mbtouc-tests: Likewise.
6284         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
6285         * modules/unistr/u8-mbtoucr-tests: Likewise.
6286         * modules/unistr/u8-move-tests: Likewise.
6287         * modules/unistr/u8-next-tests: Likewise.
6288         * modules/unistr/u8-prev-tests: Likewise.
6289         * modules/unistr/u8-set-tests: Likewise.
6290         * modules/unistr/u8-stpcpy-tests: Likewise.
6291         * modules/unistr/u8-stpncpy-tests: Likewise.
6292         * modules/unistr/u8-strcat-tests: Likewise.
6293         * modules/unistr/u8-strcmp-tests: Likewise.
6294         * modules/unistr/u8-strcoll-tests: Likewise.
6295         * modules/unistr/u8-strcpy-tests: Likewise.
6296         * modules/unistr/u8-strdup-tests: Likewise.
6297         * modules/unistr/u8-strlen-tests: Likewise.
6298         * modules/unistr/u8-strmblen-tests: Likewise.
6299         * modules/unistr/u8-strmbtouc-tests: Likewise.
6300         * modules/unistr/u8-strncat-tests: Likewise.
6301         * modules/unistr/u8-strncmp-tests: Likewise.
6302         * modules/unistr/u8-strncpy-tests: Likewise.
6303         * modules/unistr/u8-strnlen-tests: Likewise.
6304         * modules/unistr/u8-to-u16-tests: Likewise.
6305         * modules/unistr/u8-to-u32-tests: Likewise.
6306         * modules/unistr/u8-uctomb-tests: Likewise.
6307         * modules/unistr/u16-check-tests: Likewise.
6308         * modules/unistr/u16-chr-tests: Likewise.
6309         * modules/unistr/u16-cmp-tests: Likewise.
6310         * modules/unistr/u16-cmp2-tests: Likewise.
6311         * modules/unistr/u16-cpy-alloc-tests: Likewise.
6312         * modules/unistr/u16-cpy-tests: Likewise.
6313         * modules/unistr/u16-mblen-tests: Likewise.
6314         * modules/unistr/u16-mbsnlen-tests: Likewise.
6315         * modules/unistr/u16-mbtouc-tests: Likewise.
6316         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
6317         * modules/unistr/u16-mbtoucr-tests: Likewise.
6318         * modules/unistr/u16-move-tests: Likewise.
6319         * modules/unistr/u16-next-tests: Likewise.
6320         * modules/unistr/u16-prev-tests: Likewise.
6321         * modules/unistr/u16-set-tests: Likewise.
6322         * modules/unistr/u16-stpcpy-tests: Likewise.
6323         * modules/unistr/u16-stpncpy-tests: Likewise.
6324         * modules/unistr/u16-strcat-tests: Likewise.
6325         * modules/unistr/u16-strcmp-tests: Likewise.
6326         * modules/unistr/u16-strcoll-tests: Likewise.
6327         * modules/unistr/u16-strcpy-tests: Likewise.
6328         * modules/unistr/u16-strdup-tests: Likewise.
6329         * modules/unistr/u16-strlen-tests: Likewise.
6330         * modules/unistr/u16-strmblen-tests: Likewise.
6331         * modules/unistr/u16-strmbtouc-tests: Likewise.
6332         * modules/unistr/u16-strncat-tests: Likewise.
6333         * modules/unistr/u16-strncmp-tests: Likewise.
6334         * modules/unistr/u16-strncpy-tests: Likewise.
6335         * modules/unistr/u16-strnlen-tests: Likewise.
6336         * modules/unistr/u16-to-u32-tests: Likewise.
6337         * modules/unistr/u16-to-u8-tests: Likewise.
6338         * modules/unistr/u16-uctomb-tests: Likewise.
6339         * modules/unistr/u32-check-tests: Likewise.
6340         * modules/unistr/u32-chr-tests: Likewise.
6341         * modules/unistr/u32-cmp-tests: Likewise.
6342         * modules/unistr/u32-cmp2-tests: Likewise.
6343         * modules/unistr/u32-cpy-alloc-tests: Likewise.
6344         * modules/unistr/u32-cpy-tests: Likewise.
6345         * modules/unistr/u32-mblen-tests: Likewise.
6346         * modules/unistr/u32-mbsnlen-tests: Likewise.
6347         * modules/unistr/u32-mbtouc-tests: Likewise.
6348         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
6349         * modules/unistr/u32-mbtoucr-tests: Likewise.
6350         * modules/unistr/u32-move-tests: Likewise.
6351         * modules/unistr/u32-next-tests: Likewise.
6352         * modules/unistr/u32-prev-tests: Likewise.
6353         * modules/unistr/u32-set-tests: Likewise.
6354         * modules/unistr/u32-stpcpy-tests: Likewise.
6355         * modules/unistr/u32-stpncpy-tests: Likewise.
6356         * modules/unistr/u32-strcat-tests: Likewise.
6357         * modules/unistr/u32-strcmp-tests: Likewise.
6358         * modules/unistr/u32-strcoll-tests: Likewise.
6359         * modules/unistr/u32-strcpy-tests: Likewise.
6360         * modules/unistr/u32-strdup-tests: Likewise.
6361         * modules/unistr/u32-strlen-tests: Likewise.
6362         * modules/unistr/u32-strmblen-tests: Likewise.
6363         * modules/unistr/u32-strmbtouc-tests: Likewise.
6364         * modules/unistr/u32-strncat-tests: Likewise.
6365         * modules/unistr/u32-strncmp-tests: Likewise.
6366         * modules/unistr/u32-strncpy-tests: Likewise.
6367         * modules/unistr/u32-strnlen-tests: Likewise.
6368         * modules/unistr/u32-to-u16-tests: Likewise.
6369         * modules/unistr/u32-to-u8-tests: Likewise.
6370         * modules/unistr/u32-uctomb-tests: Likewise.
6371         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6372         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6373         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6374         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6375         * modules/uniwidth/u8-strwidth-tests: Likewise.
6376         * modules/uniwidth/u8-width-tests: Likewise.
6377         * modules/uniwidth/u16-strwidth-tests: Likewise.
6378         * modules/uniwidth/u16-width-tests: Likewise.
6379         * modules/uniwidth/u32-strwidth-tests: Likewise.
6380         * modules/uniwidth/u32-width-tests: Likewise.
6381         * modules/uniwidth/width-tests: Likewise.
6382
6383 2010-05-18  Richard Jones  <rjones@redhat.com>
6384
6385         doc: users.txt: list hivex
6386         * users.txt: Add hivex.
6387
6388 2010-05-18  Richard Jones  <rjones@redhat.com>
6389
6390         doc: users.txt: list febootstrap
6391         * users.txt: Add febootstrap.
6392
6393 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6394
6395         bootstrap: fix an error when gnulib is not used as a git submodule
6396         * build-aux/bootstrap (gnulib_path): If its length is zero then
6397         assign "gnulib" to it.
6398         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6399
6400 2010-05-16  Bruno Haible  <bruno@clisp.org>
6401
6402         Avoid autoconf warnings about AM_ICONV.
6403         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6404         2.64.
6405
6406 2010-05-16  Bruno Haible  <bruno@clisp.org>
6407
6408         absolute-header: Make the macro usable in more situations.
6409         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6410         from gl_ABSOLUTE_HEADER.
6411         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6412
6413 2010-05-16  James Youngman  <jay@gnu.org>
6414
6415         doc: update users.txt
6416         * users.txt: Add CSSC.
6417
6418 2010-05-16  Jim Meyering  <meyering@redhat.com>
6419
6420         init.sh: fix an error in the previous change; add more comments
6421         * tests/init.sh: Compare exit code in loop against 9, not 2.
6422         Patch by Bruno Haible.
6423         Make the two tests more similar by adding an empty "then" clause.
6424         Add comments.
6425
6426         init.sh: avoid unnecessary shell re-exec
6427         * tests/init.sh: Improve the re-exec-required check to first test the
6428         current shell.  If it passes the test, do not search for a shell that
6429         does pass, and do not re-exec.  This test is particularly contorted to
6430         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6431         of $(...) evokes a syntax error and causes immediate shell exit with
6432         status 2.  Bruno Haible reported that the re-exec made it impossible
6433         to single-step through any init.sh-using script.
6434
6435 2010-05-16  Bruno Haible  <bruno@clisp.org>
6436
6437         Fix collision between gnulib's and libintl's printf replacements.
6438         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6439         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6440         (printf): When using GNU C, map the __printf__ function to rpl_printf
6441         via __asm__. When not using GNU C, define rpl_printf instead of
6442         __printf__.
6443         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6444         commit.
6445         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6446         commit.
6447         * m4/asm-underscore.m4: New file.
6448         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6449         * modules/stdio (Files): Add m4/asm-underscore.m4.
6450         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6451         Reported by Ben Pfaff.
6452
6453 2010-05-16  Bruno Haible  <bruno@clisp.org>
6454
6455         verify: Avoid skipping the test on openSUSE 11.0.
6456         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6457
6458 2010-05-13  Bruno Haible  <bruno@clisp.org>
6459
6460         Avoid useless warnings from G++.
6461         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6462         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6463         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6464
6465 2010-05-11  Jim Meyering  <meyering@redhat.com>
6466
6467         maint.mk: tweak preceding change
6468         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6469         regexps tighter by anchoring at EOL, and make the new group "shy"
6470         for slightly decreased overhead.
6471
6472 2010-05-11  Eric Blake  <eblake@redhat.com>
6473
6474         maint.mk: gnulib doesn't guarantee NSIG
6475         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6476
6477 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6478
6479         test-pwrite.c: Remove unused variable declaration.
6480         * tests/test-pwrite.c (main): Remove read_buf declaration.
6481
6482         Remove useless test-pwrite.sh file.
6483         * tests/test-pwrite.sh: Delete file.
6484         * modules/pwrite-tests: Remove references.
6485         Reported by Bruno Haible.
6486
6487 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6488
6489         init.sh: fix a typo
6490         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6491
6492 2010-05-10  Jim Meyering  <meyering@redhat.com>
6493
6494         maint.mk: avoid using a temporary file in the always-defined-macros check
6495         * top/maint.mk (.re-defmac): Remove rule.
6496         (gl_trap_): Remove definition.
6497         (sc_prohibit_always-defined_macros): Rewrite not to create and
6498         depend on a temporary file.  Instead, depend on GNU grep's ability
6499         to read a list of regular expressions from stdin when given "-f -".
6500
6501 2010-05-09  Bruno Haible  <bruno@clisp.org>
6502
6503         Update to GNU gettext 0.18, part 1.
6504         * m4/gettext.m4: Update to GNU gettext 0.18.
6505         * m4/intl.m4: Likewise.
6506         * m4/po.m4: Likewise.
6507         * modules/gettext (Files): Add m4/fcntl-o.m4.
6508         (configure.ac): Require gettext infrastructure from version 0.18.
6509
6510 2010-05-09  Jim Meyering  <meyering@redhat.com>
6511
6512         init.sh: enable MALLOC_PERTURB_
6513         * tests/init.sh: Enable glibc's malloc-perturbing option.
6514
6515         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6516         With my recent change in init.sh from the two-line form:
6517             -#   : ${srcdir=.}
6518             -#   . "$srcdir/init.sh"; path_prepend_ .
6519             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6520         I noticed that using the one-line form would cause this test
6521         to fail with a false-positive, or to stop working altogether,
6522         depending on whether help-version changed or all the tests did.
6523         * top/maint.mk (_hv_regex): Remove this definition.
6524         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6525         (_hv_regex_strong): Use a stronger regex to check for conformance.
6526         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6527         Give a separate diagnostic for lack of conforming use.
6528
6529         maint.mk: prohibit definition of symbols defined by gnulib
6530         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6531         definition of symbols defined by gnulib.
6532
6533 2010-05-09  Bruno Haible  <bruno@clisp.org>
6534
6535         acl: Avoid test failure on Cygwin-hosted mingw.
6536         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6537
6538 2010-05-09  Bruno Haible  <bruno@clisp.org>
6539
6540         error: Use system's fcntl function.
6541         * lib/error.c (fcntl): Undefine.
6542
6543 2010-05-09  Jim Meyering  <meyering@redhat.com>
6544
6545         verify: adjust formatting to be more consistent
6546         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6547         argument-list '('s, and after one comma.
6548
6549 2010-05-09  Bruno Haible  <bruno@clisp.org>
6550
6551         error: More reliable output on mingw.
6552         * lib/error.c: Include <windows.h>.
6553         (is_open): New function.
6554         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6555         defined.
6556
6557 2010-05-09  Bruno Haible  <bruno@clisp.org>
6558
6559         vasnprintf: Fix syntax errors in libintl build on mingw.
6560         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6561         pad_ourselves and prec_ourselves after use.
6562
6563 2010-05-08  Bruno Haible  <bruno@clisp.org>
6564
6565         * lib/config.charset: Update comments for Cygwin 1.7.
6566         * lib/localcharset.c: Likewise.
6567
6568 2010-05-07  Jim Meyering  <meyering@redhat.com>
6569
6570         init.sh: improve comments
6571         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6572         . "${srcdir=.}/init.sh"; path_prepend_ .
6573         Add a note about path_prepend_ and the alternative of using
6574         TESTS_ENVIRONMENT.
6575
6576 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6577
6578         exclude: Unescape hashed patterns in wildcard mode.
6579         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6580         to the hash list.
6581         * tests/test-exclude8.sh: New test case.
6582         * modules/exclude-tests: Add new test.
6583
6584 2010-05-05  Eric Blake  <eblake@redhat.com>
6585
6586         verify: automate tests
6587         * modules/verify-tests: New module.
6588         * tests/test-verify.sh: New file.
6589         * tests/test-verify.c: Guard each negative test with a unique id.
6590         Also avoid warning about unused left hand of comma expressions.
6591
6592 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6593
6594         Further improvements to verify.h, suggested by Eric Blake.
6595         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6596         the GL_* versions, to avoid collision with OpenGL.
6597         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6598         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6599         than testing merely whether it's defined.
6600
6601         Modify verify.h to pacify gcc -Wredundant_decls.
6602         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6603         These use the prefix "GL_" since they're likely to be useful elsewhere.
6604         We may need to break them out into a different .h file.
6605         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6606         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6607         of verify_function__.
6608
6609 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6610
6611         Tests for module pwrite.
6612         * modules/pwrite-tests: New file.
6613         * tests/test-pwrite.sh: New file.
6614         * tests/test-pwrite.c: New file.
6615
6616         New module pwrite.
6617         * lib/unistd.in.h (pwrite): New declaration.
6618         * lib/pwrite.c: New file, from glibc with modifications.
6619         * m4/pwrite.m4: New file.
6620         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6621         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6622         REPLACE_PWRITE.
6623         * modules/pwrite: New file.
6624         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6625         REPLACE_PWRITE.
6626         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6627         * doc/posix-functions/pwrite.texi: Mention the new module.
6628
6629 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6630
6631         pread: Update documentation.
6632         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6633
6634 2010-05-04  Eric Blake  <eblake@redhat.com>
6635
6636         docs: update cygwin progress
6637         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6638         this bug.
6639         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6640         Added in cygwin 1.7.2.
6641         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6642         Likewise.
6643         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6644         Likewise.
6645         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6646         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6647         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6648         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
6649         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
6650         Mention nproc module.
6651         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
6652         bug in cygwin 1.7.5 addition.
6653         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
6654         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
6655         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
6656         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
6657         1.7.5.
6658         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
6659         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
6660         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
6661         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
6662         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
6663         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
6664         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
6665         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
6666         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
6667         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
6668         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
6669         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
6670         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
6671         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
6672         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
6673         Likewise.
6674         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
6675         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
6676         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
6677         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
6678         Likewise.
6679         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
6680         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
6681         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
6682         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
6683         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
6684         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
6685         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
6686         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
6687         Likewise.
6688         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
6689         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
6690         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
6691         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
6692         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
6693         Likewise.
6694         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
6695         Likewise.
6696         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
6697         Likewise.
6698         * doc/glibc-functions/xdrrec_endofrecord.texi
6699         (xdrrec_endofrecord): Likewise.
6700         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
6701         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
6702         Likewise.
6703         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
6704         Likewise.
6705
6706 2010-05-04  Jim Meyering  <meyering@redhat.com>
6707
6708         gendocs.sh: make its "-s FILE" option more useful
6709         * build-aux/gendocs.sh: When honoring the -s FILE option, update
6710         $PACKAGE to reflect the probably-different basename of "FILE".
6711
6712 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6713
6714         bootstrap: don't ignore download_po_files failure
6715         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
6716         failure.
6717
6718 2010-05-03  Jim Meyering  <meyering@redhat.com>
6719
6720         maint.mk: allow to pass options to gendocs.sh
6721         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
6722         (gendocs_options_): New overridable variable.
6723
6724         gnu-web-doc-update: don't ignore configure or build failure
6725         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
6726
6727         announce-gen: backslash-escape '@'s in --help output
6728         * build-aux/announce-gen: Fix syntax errors.
6729
6730         maint.mk, announce-gen: allow project-specific announcement mail headers
6731         * top/maint.mk (translation_project_): Define default.
6732         (announcement_Cc_, announcement_mail_headers_): Likewise.
6733         (announcement): Invoke announce-gen with new --mail-headers option.
6734         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
6735
6736         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
6737         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
6738         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
6739         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
6740         line in the "err2" output file when running "make check" in verbose
6741         mode (i.e., with set -x enabled).
6742
6743 2010-05-03  Bruno Haible  <bruno@clisp.org>
6744
6745         wctob: Fix for weird platforms.
6746         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
6747         argument value.
6748
6749 2010-05-03  Jim Meyering  <meyering@redhat.com>
6750
6751         maint.mk: prohibit unwarranted use of <strings.h>
6752         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
6753         strings.h in a file that does not also use strcasecmp, strncasecmp,
6754         ffs or ffsll.
6755
6756         maint.mk: remove obsolete comments
6757         * top/maint.mk: Remove stale, commented-out rules.
6758
6759 2010-05-02  Bruno Haible  <bruno@clisp.org>
6760
6761         wcwidth: Declare also when it's aliased.
6762         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
6763         macro.
6764
6765 2010-05-02  Bruno Haible  <bruno@clisp.org>
6766
6767         Fix regression from 2010-04-25.
6768         * gnulib-tool (func_modules_transitive_closure): Check the status of
6769         all modules, not only of the tests that are of the form foo-tests where
6770         foo is a module.
6771
6772 2010-05-02  Bruno Haible  <bruno@clisp.org>
6773
6774         wctob: Work around nasty Cygwin 1.7.2 bug.
6775         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
6776         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
6777
6778 2010-05-01  Bruno Haible  <bruno@clisp.org>
6779
6780         fpurge: Sharper test.
6781         * tests/test-fpurge.c (main): Add one more ftell check.
6782         * modules/fpurge-tests (Depends-on): Add ftell.
6783         Suggested by Eric Blake.
6784
6785 2010-05-01  Bruno Haible  <bruno@clisp.org>
6786
6787         ftello: Another test.
6788         * tests/test-ftello3.c: New file.
6789         * modules/ftello-tests (Files): Add it.
6790         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6791         MOSTLYCLEANFILES.
6792
6793         ftell: Another test.
6794         * tests/test-ftell3.c: New file.
6795         * modules/ftell-tests (Files): Add it.
6796         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6797         MOSTLYCLEANFILES.
6798
6799 2010-05-01  Bruno Haible  <bruno@clisp.org>
6800
6801         ftell, ftello: Work around Solaris bug.
6802         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
6803         * lib/ftello.c: Include stdio-impl.h.
6804         (ftello): On Solaris, when _IOWRT is set, compute the result without
6805         looking at _IOREAD.
6806         * modules/ftello (Files): Add lib/stdio-impl.h.
6807         * doc/posix-functions/ftell.texi: Mention Solaris bug.
6808         * doc/posix-functions/ftello.texi: Likewise.
6809         Reported by Eric Blake.
6810
6811 2010-05-01  Bruno Haible  <bruno@clisp.org>
6812
6813         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6814         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6815         the _IOWRT flag is also set.
6816
6817 2010-05-01  Bruno Haible  <bruno@clisp.org>
6818
6819         Fix doc about a HP-UX stdio bug.
6820         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6821         * doc/posix-functions/ftello.texi: Likewise.
6822
6823 2010-05-01  Bruno Haible  <bruno@clisp.org>
6824
6825         lseek test: Fix failure on Solaris.
6826         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6827         output.
6828
6829 2010-04-30  Jim Meyering  <meyering@redhat.com>
6830
6831         bootstrap: don't ignore failure to generate po*/Makevars
6832         * build-aux/bootstrap (with_gettext): Don't ignore failure
6833         to create po/Makevars or runtime-po/Makevars.
6834
6835 2010-04-29  Eric Blake  <eblake@redhat.com>
6836
6837         headers: relax license to LGPLv2+
6838         * modules/fcntl-h (License): Relax license.
6839         * modules/getopt-posix (License): Likewise.
6840         * modules/locale (License): Likewise.
6841         * modules/math (License): Likewise.
6842         * modules/pty (License): Likewise.
6843         * modules/sched (License): Likewise.
6844         * modules/search (License): Likewise.
6845         * modules/spawn (License): Likewise.
6846         * modules/stdarg (License): Likewise.
6847         * modules/sysexits (License): Likewise.
6848
6849 2010-04-29  Jim Meyering  <meyering@redhat.com>
6850
6851         inttypes: relax license to LGPLv2+
6852         * modules/inttypes (License): Relax license.
6853
6854 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6855
6856         * top/maint.mk (indent): Run twice to produce idempotent results.
6857
6858 2010-04-28  Bruno Haible  <bruno@clisp.org>
6859
6860         getdate: Generate getdate.c in the source directory.
6861         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6862         MOSTLYCLEANFILES.
6863         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6864
6865 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6866
6867         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6868         is not declared as a const *; avoid warnings in that case.
6869
6870 2010-04-28  Eric Blake  <eblake@redhat.com>
6871
6872         canonicalize-lgpl: avoid compiler warning
6873         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6874         declaration' / 'extraneous semicolon' warning with some compilers.
6875         Reported by Andreas Gruenbacher.
6876
6877 2010-04-28  Jim Meyering  <meyering@redhat.com>
6878
6879         init.sh: ensure a more reliable exit status when exiting via trap
6880         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6881         Inspired by patches from Dmitry V. Levin.
6882         Also trap on signal 3 (SIGQUIT).
6883
6884 2010-04-27  Bruno Haible  <bruno@clisp.org>
6885
6886         Update doc about utimes().
6887         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6888         'utimens' module.
6889         Reported by Andreas Gruenbacher <agruen@suse.de>.
6890
6891 2010-04-27  Eric Blake  <eblake@redhat.com>
6892
6893         full-read, full-write: relax license
6894         * modules/full-read (License): Drop to LGPLv2+.
6895         * modules/full-write (License): Likewise.
6896         * modules/safe-read (License): Likewise.
6897         * modules/safe-write (License): Likewise.
6898
6899         pthread: mention library for linking
6900         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6901
6902 2010-04-27  Jim Meyering  <meyering@redhat.com>
6903
6904         maint.mk: fix a bug introduced in last change
6905         * top/maint.mk (gl_assured_headers_): Now that all names are on
6906         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6907         is not anchored to end of word, it should be adequate.
6908
6909         maint.mk: avoid side-effect in latest syntax-check
6910         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6911         to run commands via $(shell...), and hence to incur cost only when
6912         the new rule is actually run.
6913
6914         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6915         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6916         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6917         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6918         (gl_assured_headers_, az_, AZ_): Define.
6919         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6920
6921 2010-04-26  Jim Meyering  <jim@meyering.net>
6922             Bruno Haible  <bruno@clisp.org>
6923
6924         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6925         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6926         Prompted by an exchange with Gilles Espinasse.
6927
6928 2010-04-26  Jim Meyering  <meyering@redhat.com>
6929
6930         git-version-gen: aesthetic tweak
6931         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6932         so that the command remains on a single line.
6933
6934 2010-04-26  Eric Blake  <eblake@redhat.com>
6935
6936         git-version-gen: allow use on EBCDIC hosts
6937         * build-aux/git-version-gen (dirty): Use literal rather than tying
6938         ourselves to ascii.
6939         Reported by Steve Goetze.
6940
6941 2010-04-25  Bruno Haible  <bruno@clisp.org>
6942
6943         netdb: Add support for GNULIB_POSIXCHECK.
6944         * lib/netdb.in.h: Include warn-on-use.h.
6945         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6946         functions are used when GNULIB_POSIXCHECK is defined and the
6947         getaddrinfo module is not in use.
6948         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6949         freeaddrinfo, gai_strerror, getnameinfo are declared.
6950         * modules/netdb (Depends-on): Add warn-on-use.
6951         (Makefile.am): Include warn-on-use.h in netdb.h.
6952
6953 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6954
6955         build: avoid "make check" failure without .git/ directory
6956         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6957         there is no .git/ directory.
6958
6959 2010-04-25  Bruno Haible  <bruno@clisp.org>
6960
6961         ptsname: Fix misuse of ttyname_r.
6962         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6963         of errno.
6964
6965 2010-04-25  Bruno Haible  <bruno@clisp.org>
6966
6967         ttyname_r: Make it work on Solaris 10.
6968         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6969         if the system function has the POSIX declaration. Test whether the
6970         function fails if the buffer is less than 128 bytes large.
6971         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6972         system's ttyname_r function. Provide a reasonably large buffer.
6973         * modules/ttyname_r (Depends-on): Add extensions.
6974         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6975
6976 2010-04-25  Bruno Haible  <bruno@clisp.org>
6977
6978         Use the 'extensions' module for some more functions on Solaris.
6979         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6980         module.
6981         * doc/posix-functions/ctime_r.texi: Likewise.
6982         * doc/posix-functions/getgrgid_r.texi: Likewise.
6983         * doc/posix-functions/getgrnam_r.texi: Likewise.
6984         * doc/posix-functions/getpwnam_r.texi: Likewise.
6985         * doc/posix-functions/getpwuid_r.texi: Likewise.
6986         * doc/posix-functions/readdir_r.texi: Likewise.
6987         * doc/posix-functions/sigwait.texi: Likewise.
6988         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6989         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6990
6991 2010-04-25  Bruno Haible  <bruno@clisp.org>
6992
6993         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6994         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6995         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6996         * lib/ttyname_r.c: Include <limits.h>.
6997         (ttyname_r): Define using the system's ttyname_r function, if it exists
6998         and not on Solaris.
6999         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
7000         set.
7001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
7002         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
7003         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
7004         Reported by Simon Josefsson.
7005
7006 2010-04-25  Bruno Haible  <bruno@clisp.org>
7007
7008         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
7009         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
7010         * doc/posix-functions/ctime_r.texi: Likewise.
7011         * doc/posix-functions/getgrgid_r.texi: Likewise.
7012         * doc/posix-functions/getgrnam_r.texi: Likewise.
7013         * doc/posix-functions/getlogin_r.texi: Likewise.
7014         * doc/posix-functions/getpwnam_r.texi: Likewise.
7015         * doc/posix-functions/getpwuid_r.texi: Likewise.
7016         * doc/posix-functions/readdir_r.texi: Likewise.
7017         * doc/posix-functions/sigwait.texi: Likewise.
7018         * doc/posix-functions/ttyname_r.texi: Likewise.
7019         Reported by Simon Josefsson.
7020
7021 2010-04-25  Bruno Haible  <bruno@clisp.org>
7022
7023         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
7024         * gnulib-tool (func_usage): Document that --with-*-tests options apply
7025         also to --create-testdir.
7026         (func_acceptable): Don't consider the status of *-tests modules here.
7027         (func_modules_transitive_closure): Consider it here, before including a
7028         test module.
7029         (func_import, func_create_testdir): Set inc_all_direct_tests,
7030         inc_all_indirect_tests.
7031         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
7032         --create-testdir and --create-megatestdir.
7033
7034 2010-04-25  Bruno Haible  <bruno@clisp.org>
7035
7036         gnulib-tool: Add --without-*-tests options.
7037         * gnulib-tool (func_usage): Document the --without-*-tests options.
7038         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
7039         excl_unportable_tests): New variables.
7040         Fail if they are specified with --import or --update.
7041         (func_acceptable): Respect the excl_*_tests variables.
7042         (func_import): Set the excl_*_tests variables to empty.
7043
7044 2010-04-25  Simon Josefsson  <simon@josefsson.org>
7045             Bruno Haible  <bruno@clisp.org>
7046
7047         Work around a MacOS X 10.4 bug with openpty.
7048         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
7049         * tests/test-openpty.c (main): Close the master side explicitly.
7050
7051 2010-04-25  Bruno Haible  <bruno@clisp.org>
7052
7053         strnlen: Fix a C++ test error on MacOS X and Solaris.
7054         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
7055         the function is not declared.
7056         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
7057         Simon Josefsson.
7058
7059 2010-04-24  Bruno Haible  <bruno@clisp.org>
7060
7061         Avoid a gcc warning.
7062         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
7063         of correct type for %08lx directive.
7064         Reported by Eric Blake.
7065
7066 2010-04-24  Bruno Haible  <bruno@clisp.org>
7067
7068         vasnprintf: Correct errno value in case of out-of-memory.
7069         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
7070         or sprintf. Use the errno value from SNPRINTF or sprintf.
7071         Reported by Ian Beckwith <ianb@erislabs.net>.
7072
7073 2010-04-24  Bruno Haible  <bruno@clisp.org>
7074
7075         ansi-c++-opt: Find correct compiler when cross-compiling.
7076         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
7077         AC_CHECK_PROGS.
7078         Reported by Simon Josefsson.
7079
7080 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
7081
7082         vc-list-files: Add support for subversion
7083         * build-aux/vc-list-files: Use "svn list" to generate the list of
7084         files controlled by subversion.
7085
7086 2010-04-23  Jim Meyering  <meyering@redhat.com>
7087
7088         vc-list-files tests: convert to use init.sh
7089         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
7090         path_prepend_.
7091         Use Exit, not exit.
7092         Use skip_ rather than open coding it.
7093         Remove trap set-up and compare definitions.
7094         * tests/test-vc-list-files-git.sh: Likewise.
7095         * modules/vc-list-files-tests (Files): Add tests/init.sh.
7096
7097 2010-04-22  Simon Josefsson  <simon@josefsson.org>
7098
7099         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
7100         backup files.
7101
7102 2010-04-21  Simon Josefsson  <simon@josefsson.org>
7103
7104         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
7105
7106 2010-04-20  Eric Blake  <eblake@redhat.com>
7107
7108         tests: be robust to ignored SIGPIPE
7109         * tests/test-select-in.sh: Consume all output.
7110         * tests/test-lseek.sh: Check correct exit status, while avoiding
7111         EPIPE.
7112
7113 2010-04-20  Simon Josefsson  <simon@josefsson.org>
7114             Bruno Haible  <bruno@clisp.org>
7115
7116         visibility: Don't use -fvisibility if it leads to a warning.
7117         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
7118         yes, don't pretend that visibility works if it leads to a warning.
7119         Reported by Mike Gran <spk121@yahoo.com>.
7120
7121 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
7122
7123         * build-aux/bootstrap: Use "git -h" for testing for supported options
7124         instead of "git --help".  The short-form option only shows a summary,
7125         and doesn't layout the full man page.  Grep for the full option name
7126         in the summary, too.
7127
7128 2010-04-19  Bruno Haible  <bruno@clisp.org>
7129
7130         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
7131         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
7132         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
7133         mention of RELOCATABLE_STRIP.
7134         Reported by Sylvain Beucler <beuc@beuc.net>.
7135
7136 2010-04-19  Bruno Haible  <bruno@clisp.org>
7137
7138         * lib/diffseq.h: Fix typo in comment.
7139         Reported by Eric Blake.
7140
7141 2010-04-19  Bruno Haible  <bruno@clisp.org>
7142
7143         ioctl: Move autoconf macro to a .m4 file.
7144         * m4/ioctl.m4: New file, extracted from modules/ioctl.
7145         * modules/ioctl (Files): Add it.
7146         (configure.ac): Simply invoke gl_FUNC_IOCTL.
7147         Reported by Ian Beckwith <ianb@erislabs.net>.
7148
7149 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
7150             Bruno Haible  <bruno@clisp.org>
7151
7152         diffseq: Accommodate use-case with abstract arrays.
7153         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
7154         is not defined.
7155         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
7156         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
7157
7158 2010-04-18  Bruno Haible  <bruno@clisp.org>
7159
7160         * doc/posix-headers/stdbool.texi: More precise wording.
7161
7162 2010-04-17  Jim Meyering  <meyering@redhat.com>
7163
7164         maint.mk: use gnu-style indentation in an embedded perl script
7165         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
7166         Rename variable: s/two/last_two_bytes/
7167
7168 2010-04-16  Eric Blake  <eblake@redhat.com>
7169
7170         test-stdbool: skip test that fails with Solaris CC
7171         * tests/test-stdbool.c (f): Skip test that causes compilation
7172         error under buggy C++ compiler.
7173         * lib/stdbool.in.h: Document the limitation.
7174         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
7175
7176         setenv: allow compilation with C++
7177         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
7178         register keyword.
7179
7180         stdint: allow test to pass with C++
7181         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
7182
7183         getopt: allow compilation with C++
7184         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
7185         struct.
7186         * lib/getopt.c (_getopt_internal_r): Use correct type.
7187         Reported by Dagobert Michelson, via Joel E. Denny.
7188
7189 2010-04-16  Bruno Haible  <bruno@clisp.org>
7190
7191         Override netdb.h always.
7192         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
7193         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
7194         Reported by Ludovic Courtès <ludo@gnu.org>.
7195
7196 2010-04-15  Bruno Haible  <bruno@clisp.org>
7197
7198         openpty: Fix mistake from 2010-03-21.
7199         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
7200         Reported by Simon Josefsson.
7201
7202 2010-04-15  Eric Blake  <eblake@redhat.com>
7203
7204         test-forkpty: fix expected signature
7205         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
7206         Reported by Simon Josefsson.
7207
7208 2010-04-15  Jim Meyering  <meyering@redhat.com>
7209
7210         maint.mk: texinfo_suffix_re_: correct the default regexp
7211         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
7212
7213         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
7214         make it configurable via texinfo_suffix_re_.
7215
7216 2010-04-14  Eric Blake  <eblake@redhat.com>
7217
7218         strtok_r: relax license to LGPLv2+
7219         * modules/strtok_r (License): Relax license.
7220         Reported by Matthias Bolte.
7221
7222 2010-04-14  Simon Josefsson  <simon@josefsson.org>
7223
7224         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
7225         version 1.4.4 by default instead of requiring the libgcrypt
7226         version used during build.  This makes it possible to use the
7227         application with older but still binary compatible libgcrypt
7228         versions.
7229
7230 2010-04-13  Eric Blake  <eblake@redhat.com>
7231
7232         getopt-gnu: match recent glibc fixes and posix ruling
7233         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
7234         '+' handling, when requesting extensions.
7235         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
7236         'W;' handling.
7237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
7238         * doc/posix-functions/getopt.texi (getopt): Document this.
7239         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7240         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7241         Likewise.
7242
7243         getopt: merge bug fixes from glibc
7244         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
7245         diagnostics.  Honor '+:' correctly.  Reject ';'.
7246
7247         getopt-posix: detect MacOS bug
7248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
7249         optind when missing a required argument.
7250         * doc/posix-functions/getopt.texi (getopt): Document the bug.
7251         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7252         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7253         Likewise.
7254
7255         getopt-posix: avoid spurious failure on Solaris
7256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
7257         an indicator that setting optind=1 is sufficient for reset.
7258
7259         getopt-posix: avoid spurious failure on FreeBSD
7260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
7261         in POSIX mode, since the m4 test uses it.
7262
7263         gnulib-tool: silence warning on BSD sh
7264         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
7265
7266 2010-04-13  Jim Meyering  <meyering@redhat.com>
7267
7268         doc: users.txt: GNU patch now uses gnulib
7269         * users.txt: Add patch.
7270
7271 2010-04-12  Jim Meyering  <meyering@redhat.com>
7272
7273         maint.mk: generate more concise timing data for syntax-check rules
7274         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
7275         " done" from each line that reports a syntax-check test duration.
7276
7277 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
7278
7279         git-version-gen: use "git update-index..." rather than "git status"
7280         * build-aux/git-version-gen: Use git update-index --refresh, not
7281         "git status".  With some versions of git, "git status" would fail
7282         to update the index and result in an unwarranted "-dirty" suffix.
7283
7284 2010-04-11  Jim Meyering  <meyering@redhat.com>
7285
7286         openat: correct formatting (no semantic change)
7287         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
7288         Suggested by Bruno Haible.
7289
7290 2010-04-11  Bruno Haible  <bruno@clisp.org>
7291
7292         Stricter declaration checking in testdirs.
7293         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7294         If for_tests is true, augment AM_CPPFLAGS to define
7295         GNULIB_STRICT_CHECKING.
7296         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
7297         GNULIB_STRICT_CHECKING is defined, verify that the function is
7298         declared.
7299
7300 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
7301             Bruno Haible  <bruno@clisp.org>
7302
7303         libunistring: Improve configure output.
7304         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
7305         Don't say "consider installing GNU libunistring" when checking again
7306         with libiconv.
7307
7308 2010-04-11  Bruno Haible  <bruno@clisp.org>
7309
7310         libunistring: Correct value of $LTLIBUNISTRING.
7311         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
7312         correct the value of $LTLIBUNISTRING.
7313
7314 2010-04-11  Bruno Haible  <bruno@clisp.org>
7315
7316         havelib: Add static libraries to LIBS in the right order.
7317         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
7318         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
7319
7320 2010-04-11  Bruno Haible  <bruno@clisp.org>
7321
7322         libunistring: Detect libunistring also when it depends on libiconv.
7323         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
7324         the second AC_LIB_HAVE_LINKFLAGS invocation.
7325
7326 2010-04-11  James Youngman  <jay@gnu.org>
7327
7328         close-stream: declare local scalars to be "const"
7329         * lib/close-stream.c (close_stream): Make boolean variables const
7330         to document the fact that we set but do not change them.
7331
7332 2010-04-11  Bruno Haible  <bruno@clisp.org>
7333
7334         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
7335
7336 2010-04-11  Jim Meyering  <meyering@redhat.com>
7337
7338         maint.mk: don't include dist-check.mk
7339         * top/maint.mk: Remove bogus include directive.
7340
7341         maint.mk: improve empty-line-at-EOF check
7342         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
7343         solution, rather than tail+Perl-based one.  The latter would read
7344         a few kilobytes from the end of each file, and did not handle empty
7345         files properly.
7346
7347         maint.mk: print the elapsed time for each syntax-check rule
7348         * top/maint.mk (sc_m_rules_): Save start time in a file.
7349         (sc_z_rules_): New rules: remove temp file and print elapsed time.
7350         (local-check): Interpose the .z rules
7351
7352 2010-04-11  Jim Meyering  <meyering@redhat.com>
7353
7354         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
7355         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
7356         empty file with one that ends in an empty line.
7357
7358 2010-04-10  Bruno Haible  <bruno@clisp.org>
7359
7360         mkdir: Make it work on mingw64.
7361         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
7362         * lib/mkdir.c: Update comment.
7363         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
7364
7365 2010-04-10  Bruno Haible  <bruno@clisp.org>
7366
7367         Don't override improved macro from newer autoconf.
7368         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7369         autoconf >= 2.62.
7370         Reported by Joel E. Denny <jdenny@clemson.edu>.
7371
7372 2010-04-10  Jim Meyering  <meyering@redhat.com>
7373
7374         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7375         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7376
7377         maint.mk: correct a diagnostic
7378         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7379         in diagnostic; now use $prohibit.
7380
7381 2010-04-10  Bruno Haible  <address@hidden>
7382
7383         fchownat: Fix a C++ test error on Solaris 8.
7384         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7385         the function does not exist.
7386
7387 2010-04-10  Bruno Haible  <bruno@clisp.org>
7388
7389         vasnprintf: Add more tests.
7390         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7391         (test_function): Test converting an invalid wide string.
7392
7393         vasnprintf: Correct handling of unconvertible wide string arguments.
7394         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7395         VASNPRINTF.
7396         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7397         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7398         smaller than the expected maximum need for the directive. Set errno to
7399         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7400         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7402         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7403         * modules/vasnprintf (Files): Add m4/printf.m4.
7404         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7405
7406 2010-04-10  Bruno Haible  <bruno@clisp.org>
7407
7408         vasnprintf: Fix crash in %ls directive.
7409         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7410         string is passed as argument to %ls, with no precision and no width.
7411         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7412
7413 2010-04-10  Bruno Haible  <bruno@clisp.org>
7414
7415         vasnprintf: Fix multiple test failures on mingw.
7416         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7417         _snprintf, or snwprintf, not _snwprintf.
7418
7419 2010-04-10  Bruno Haible  <bruno@clisp.org>
7420
7421         write: Fix a C++ test error on mingw.
7422         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7423
7424 2010-04-10  Bruno Haible  <bruno@clisp.org>
7425
7426         vasnprintf test: Reduce code duplication.
7427         * tests/test-vasnprintf.c (test_function): New function, extracted from
7428         test_vasnprintf.
7429         (test_vasnprintf, test_asnprintf): Invoke it.
7430
7431 2010-04-10  Bruno Haible  <bruno@clisp.org>
7432
7433         strnlen: Fix warning in C++ mode on MacOS X.
7434         * lib/string.in.h (strnlen): Use the modern idiom.
7435         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7436         defining strnlen as a macro already in <config.h>.
7437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7438         REPLACE_STRNLEN.
7439         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7440         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7441
7442 2010-04-08  James Youngman  <jay@gnu.org>
7443
7444         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7445         the example.
7446
7447 2010-04-09  Jim Meyering  <meyering@redhat.com>
7448
7449         maint.mk: print better diagnostic when there is no $(_hv_file)
7450         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7451         announce that when $(_hv_file) (aka help-version) does not exist.
7452
7453         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7454         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7455         not try to interpret its random input bytes.  Jarno Rajahalme reported
7456         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7457         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7458         (mktempd_): Likewise, just in case.
7459
7460         ftruncate: add two years to projected module removal date: 2012
7461         * m4/ftruncate.m4: Adjust comments.
7462
7463         ftruncate: mark module as obsolete; even MinGW provides it, now
7464         * modules/ftruncate (Status): Obsolete.
7465         (Notice): Say that.
7466         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7467         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7468
7469 2010-04-08  Bruno Haible  <bruno@clisp.org>
7470
7471         Fix side effects from tests-related modules.
7472         * modules/dprintf-posix (Comment): New section.
7473         * modules/fprintf-posix (Comment): Likewise.
7474         * modules/obstack-printf-posix (Comment): Likewise.
7475         * modules/printf-posix (Comment): Likewise.
7476         * modules/snprintf-posix (Comment): Likewise.
7477         * modules/sprintf-posix (Comment): Likewise.
7478         * modules/vasnprintf-posix (Comment): Likewise.
7479         * modules/vasprintf-posix (Comment): Likewise.
7480         * modules/vdprintf-posix (Comment): Likewise.
7481         * modules/vfprintf-posix (Comment): Likewise.
7482         * modules/vprintf-posix (Comment): Likewise.
7483         * modules/vsnprintf-posix (Comment): Likewise.
7484         * modules/vsprintf-posix (Comment): Likewise.
7485         * modules/xprintf-posix (Comment): Likewise.
7486         * modules/xvasprintf-posix (Comment): Likewise.
7487         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7488         * modules/floorf-tests (Depends-on): Likewise.
7489         * modules/round-tests (Depends-on): Likewise.
7490         * modules/roundf-tests (Depends-on): Likewise.
7491         * modules/trunc-tests (Depends-on): Likewise.
7492         * modules/truncf-tests (Depends-on): Likewise.
7493         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7494         'fprintf-posix' module is not present.
7495         * tests/test-floorf2.c (check): Likewise.
7496         * tests/test-trunc2.c (check): Likewise.
7497         * tests/test-truncf2.c (check): Likewise.
7498         * tests/test-round2.c (equal): Likewise.
7499         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7500
7501 2010-04-07  Karl Berry  <karl@gnu.org>
7502
7503         * config/srclist.txt,
7504         * config/srclistvars.sh,
7505         * config/srclist-update: doc fixes.
7506
7507 2010-04-07  Jim Meyering  <meyering@redhat.com>
7508
7509         maint.mk: add a PATH crosschecking syntax-check rule
7510         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7511         Useful if you use a test like the one in help-version (coreutils,
7512         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7513         printed by prog --version.
7514
7515 2010-04-06  Bruno Haible  <bruno@clisp.org>
7516
7517         Fix link error on mingw.
7518         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7519         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7520
7521 2010-04-06  Bruno Haible  <bruno@clisp.org>
7522
7523         Assume rmdir exists.
7524         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7525
7526 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7527
7528         doc: update users.txt
7529         * users.txt: Add gcal.
7530
7531 2010-04-06  Jim Meyering  <meyering@redhat.com>
7532
7533         init.sh: simply unset TMPDIR rather than risking env -i
7534         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7535         although it probably works fine on all Unix-based systems, some
7536         systems (Cygwin?) cannot tolerate a totally cleared environment.
7537         Suggestion from Eric Blake.
7538
7539 2010-04-06  Jim Meyering  <meyering@redhat.com>
7540
7541         init.sh: portability fix: use env's POSIX-specified -i option not -u
7542         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7543         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7544
7545 2010-04-05  Bruno Haible  <bruno@clisp.org>
7546
7547         btowc: Work around Cygwin 1.7.2 bug.
7548         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7549         does not map NUL to 0.
7550         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7551
7552 2010-04-05  Bruno Haible  <bruno@clisp.org>
7553
7554         Make the multithread modules work on Cygwin 1.7.2.
7555         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7556         imported symbols can be declared weak, so that it returns "no" on
7557         Cygwin 1.7.2.
7558
7559 2010-04-05  Bruno Haible  <bruno@clisp.org>
7560
7561         Use the module 'strncat'.
7562         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7563
7564         Tests for module 'strncat'.
7565         * modules/strncat-tests: New file.
7566         * tests/test-strncat.c: New file.
7567
7568         New module 'strncat'.
7569         * lib/string.in.h (strncat): New declaration.
7570         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7571         * m4/strncat.m4: New file, based on m4/memchr.m4.
7572         * modules/strncat: New file.
7573         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7574         is declared.
7575         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7576         REPLACE_STRNCAT.
7577         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7578         REPLACE_STRNCAT.
7579         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7580         module.
7581         * tests/test-string-c++.cc: Check signature of strncat.
7582
7583 2010-04-05  Jim Meyering  <meyering@redhat.com>
7584
7585         xstrtoumax-tests: convert to use init.sh
7586         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7587         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7588         Use Exit, not exit.
7589         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7590
7591         xstrtoimax-tests: convert to use init.sh
7592         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7593         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7594         Use Exit, not exit.
7595         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7596
7597 2010-04-05  Bruno Haible  <bruno@clisp.org>
7598
7599         sys_socket: Avoid #define replacements in C++ mode.
7600         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7601         warning to the function if possible, rather than #defining the symbol
7602         to a dysfunctional alias.
7603
7604 2010-04-05  Bruno Haible  <bruno@clisp.org>
7605
7606         fseeko: Fix C++ test error on mingw.
7607         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7608         gl_FUNC_FSEEKO.
7609         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7610         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7611         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7612         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7613
7614 2010-04-05  Bruno Haible  <bruno@clisp.org>
7615
7616         duplocale: Improve test output.
7617         * tests/test-duplocale.c (main): Print reason for skipped test.
7618
7619 2010-04-05  Bruno Haible  <bruno@clisp.org>
7620
7621         Assume rmdir exists.
7622         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7623         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7624
7625 2010-04-05  Bruno Haible  <bruno@clisp.org>
7626
7627         Fix link error on Solaris 8 with cc.
7628         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7629
7630 2010-04-05  Bruno Haible  <bruno@clisp.org>
7631
7632         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7633         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7634
7635 2010-04-05  Bruno Haible  <bruno@clisp.org>
7636
7637         vasprintf: Update documentation.
7638         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7639
7640 2010-04-05  Bruno Haible  <bruno@clisp.org>
7641
7642         ptsname: Improve test.
7643         * tests/test-ptsname.c (main): Also try the various master names of BSD
7644         systems.
7645
7646 2010-04-05  Bruno Haible  <bruno@clisp.org>
7647
7648         memchr: Avoid a possible C++ test error.
7649         * lib/string.in.h (memchr): Provide declaration if function is missing.
7650         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
7651         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
7652         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
7653         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
7654
7655 2010-04-05  Bruno Haible  <bruno@clisp.org>
7656
7657         strtok_r: Improve idiom.
7658         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
7659         AC_LIBOBJ is used.
7660
7661 2010-04-05  Bruno Haible  <bruno@clisp.org>
7662
7663         strdup: Improve idiom.
7664         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
7665         AC_LIBOBJ is used.
7666         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7667         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
7668         when AC_LIBOBJ is used.
7669
7670 2010-04-05  Bruno Haible  <bruno@clisp.org>
7671
7672         mbsinit, mbrtowc, wcrtomb: Improve idioms.
7673         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
7674         don't set REPLACE_MBSINIT to 1.
7675         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
7676         don't set REPLACE_MBRTOWC to 1.
7677         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
7678         exist, don't set REPLACE_MBSRTOWCS to 1.
7679         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
7680         exist, don't set REPLACE_MBSNRTOWCS to 1.
7681         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
7682         don't set REPLACE_WCRTOMB to 1.
7683         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
7684         exist, don't set REPLACE_WCSRTOMBS to 1.
7685         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
7686         exist, don't set REPLACE_WCSNRTOMBS to 1.
7687
7688 2010-04-05  Bruno Haible  <bruno@clisp.org>
7689
7690         ldexpl: Improve idiom.
7691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
7692         make sure to set HAVE_DECL_LDEXPL to 0.
7693
7694 2010-04-05  Jim Meyering  <meyering@redhat.com>
7695
7696         xstrtol-tests: convert to use init.sh
7697         * modules/xstrtol-tests (Files): Add tests/init.sh.
7698         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7699         Use Exit, not exit.
7700         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7701
7702         atexit-tests: convert to use init.sh
7703         * modules/atexit-tests (Files): Add tests/init.sh.
7704         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7705         Use Exit, not exit.
7706         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7707
7708         init.sh: fix typo
7709         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
7710
7711         init.sh: make it easier for a test script to write to the tty, ...
7712         when using automake's parallel-tests mode.
7713         * tests/init.sh (stderr_fileno_): Define overridable variable.
7714         (warn_): New function, to use it.
7715         (fail_, skip_, framework_failure_): Use warn_.
7716
7717 2010-04-04  Bruno Haible  <bruno@clisp.org>
7718
7719         btowc: Avoid warning.
7720         * lib/btowc.c: Include <stdlib.h>.
7721         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
7722
7723 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7724             Bruno Haible  <bruno@clisp.org>
7725
7726         wchar: Port to NetBSD 1.5.
7727         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
7728         * lib/wctype.in.h (WEOF): Likewise.
7729
7730 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7731             Bruno Haible  <bruno@clisp.org>
7732
7733         Port extended stdio to NetBSD 1.5.
7734         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
7735         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
7736         older.
7737
7738 2010-04-04  Bruno Haible  <bruno@clisp.org>
7739
7740         string: Remove unused substitution.
7741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7742         HAVE_DECL_STRERROR.
7743         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
7744
7745 2010-04-04  Bruno Haible  <bruno@clisp.org>
7746
7747         strtod: Avoid a possible C++ test error.
7748         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
7749         set REPLACE_STRTOD.
7750
7751 2010-04-04  Bruno Haible  <bruno@clisp.org>
7752
7753         strerror: Update documentation.
7754         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
7755
7756 2010-04-04  Bruno Haible  <bruno@clisp.org>
7757
7758         stdio: Fix some C++ test errors on Solaris 8 with GCC.
7759         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
7760         _GL_CXXALIAS_SYS_CAST.
7761
7762 2010-04-04  Bruno Haible  <bruno@clisp.org>
7763
7764         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7765         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
7766         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
7767         REPLACE_FREXPL to 1.
7768         * doc/posix-functions/frexpl.texi: Update documentation.
7769
7770 2010-04-04  Bruno Haible  <bruno@clisp.org>
7771
7772         math: Fix some C++ test errors on Solaris 8 and Cygwin.
7773         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
7774
7775 2010-04-04  Bruno Haible  <bruno@clisp.org>
7776
7777         Implement nanosleep for native Windows.
7778         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
7779
7780 2010-04-04  Bruno Haible  <bruno@clisp.org>
7781
7782         math: Fix some C++ test errors on Solaris 8.
7783         * lib/math.in.h (truncf, trunc): Use simpler idiom.
7784
7785 2010-04-04  Bruno Haible  <bruno@clisp.org>
7786
7787         math: Fix some C++ test errors on Cygwin.
7788         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
7789         truncl): Provide declaration if the system does not have it.
7790         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
7791         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
7792         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
7793         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
7794         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
7795         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
7796         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
7797         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
7798         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
7799         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
7800         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
7801         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
7802         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
7803         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
7804         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
7805         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
7806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
7807         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7808         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7809         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
7810         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7811         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7812
7813 2010-04-04  Bruno Haible  <bruno@clisp.org>
7814
7815         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7816         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7817         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7818         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7819         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7820         * m4/isinf.m4 (gl_ISINF): Likewise.
7821         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7822
7823 2010-04-04  Bruno Haible  <bruno@clisp.org>
7824
7825         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7826         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7827
7828 2010-04-04  Bruno Haible  <bruno@clisp.org>
7829
7830         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7831         * modules/tmpfile (configure.ac): Update.
7832
7833         tmpfile: Fix C++ test error on mingw.
7834         * lib/stdio.in.h (tmpfile): New declaration.
7835         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7836         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7837         * modules/tmpfile (Depends-on): Add stdio.
7838         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7839         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7840         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7841         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7842         REPLACE_TMPFILE.
7843         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7844
7845 2010-04-04  Bruno Haible  <bruno@clisp.org>
7846
7847         ioctl: Fix C++ test error on mingw.
7848         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7849         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7850         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7851
7852 2010-04-03  Bruno Haible  <bruno@clisp.org>
7853
7854         wcwidth: Fix C++ test error on mingw.
7855         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7857         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7858
7859 2010-04-03  Bruno Haible  <bruno@clisp.org>
7860
7861         nanosleep: Fix C++ test error on mingw.
7862         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7863         * lib/time.in.h (nanosleep): Use modern idiom.
7864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7865         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7866         REPLACE_NANOSLEEP to 1.
7867         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7868         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7869
7870 2010-04-03  Bruno Haible  <bruno@clisp.org>
7871
7872         strptime: Fix C++ test error on mingw.
7873         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7874         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7875         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7876         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7878         not REPLACE_STRPTIME.
7879         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7880         REPLACE_STRPTIME.
7881
7882 2010-04-03  Bruno Haible  <bruno@clisp.org>
7883
7884         timegm: Fix C++ test error on mingw.
7885         * lib/time.in.h (timegm): Use modern idiom.
7886         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7887         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7888         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7889         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7890
7891 2010-04-03  Bruno Haible  <bruno@clisp.org>
7892
7893         timegm: Assume declaration if function exists.
7894         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7895         if it exists. Don't clobber ac_cv_func_timegm.
7896
7897 2010-04-03  Bruno Haible  <bruno@clisp.org>
7898
7899         time_r: Fix C++ test error on mingw.
7900         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7901         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7902         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7903         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7904         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7905
7906 2010-04-03  Bruno Haible  <bruno@clisp.org>
7907
7908         time_r: Minor updates.
7909         * modules/time_r (Description): Mention the provided functions.
7910         * lib/time_r.c: Don't include <string.h>.
7911         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7912         * doc/posix-functions/localtime_r.texi: Likewise.
7913
7914 2010-04-03  Bruno Haible  <bruno@clisp.org>
7915
7916         time: Fix regression introduced on 2010-03-08.
7917         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7918         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7919
7920 2010-04-03  Jim Meyering  <meyering@redhat.com>
7921
7922         maint.mk: don't silently disable project-specific syntax-check rules
7923         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7924         that they need to convert their project-specific syntax-check rules
7925         to use the new _sc_search_regexp.
7926
7927 2010-04-03  Bruno Haible  <bruno@clisp.org>
7928
7929         fchdir: Fix regression introduced on 2010-03-08.
7930         * lib/unistd.in.h (fchdir): Fix declaration.
7931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7933         REPLACE_FCHDIR.
7934         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7935         REPLACE_FCHDIR.
7936
7937 2010-04-03  Bruno Haible  <bruno@clisp.org>
7938
7939         getpagesize: Fix C++ test error on mingw.
7940         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7941         system does not declare the function.
7942         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7943         declared.
7944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7945         HAVE_DECL_GETPAGESIZE.
7946         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7947
7948 2010-04-03  Bruno Haible  <bruno@clisp.org>
7949
7950         stdio: Make C++ tests work on mingw.
7951         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7952         does not declare the function.
7953
7954 2010-04-03  Bruno Haible  <bruno@clisp.org>
7955
7956         ftello: Fix C++ test error on mingw.
7957         * lib/stdio.in.h (ftello): Use modern idiom.
7958         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7959         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7960         is missing and that it needs to be replaced.
7961         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7963         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7964
7965 2010-04-03  Bruno Haible  <bruno@clisp.org>
7966
7967         fseeko: Fix C++ test error on mingw.
7968         * lib/stdio.in.h (fseeko): Use modern idiom.
7969         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7971         is missing and that it needs to be replaced.
7972         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7974         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7975
7976 2010-04-03  Bruno Haible  <bruno@clisp.org>
7977
7978         mkstemp: Fix C++ test error on mingw.
7979         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7980         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7981         function is missing and that it needs to be replaced.
7982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7983         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7984
7985 2010-04-03  Bruno Haible  <bruno@clisp.org>
7986
7987         stpncpy: Fix C++ test error on mingw.
7988         * lib/string.in.h (stpncpy): Use modern idiom.
7989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7990         function is missing and that it needs to be replaced.
7991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7992         REPLACE_STPNCPY.
7993         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7994
7995 2010-04-03  Bruno Haible  <bruno@clisp.org>
7996
7997         sys_stat: Fix C++ test error on mingw.
7998         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7999         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
8000
8001 2010-04-03  Bruno Haible  <bruno@clisp.org>
8002
8003         pty: Update doc.
8004         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
8005
8006 2010-04-03  Bruno Haible  <bruno@clisp.org>
8007
8008         unistd: Fix C++ test error on mingw.
8009         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
8010
8011 2010-04-03  Bruno Haible  <bruno@clisp.org>
8012
8013         Update doc regarding mingw.
8014         * doc/glibc-functions/openpty.texi: Update regarding mingw.
8015         * doc/glibc-functions/login_tty.texi: Likewise.
8016         * doc/glibc-functions/forkpty.texi: Likewise.
8017
8018 2010-04-03  Bruno Haible  <bruno@clisp.org>
8019
8020         stdlib: Avoid compilation failure of c-strtold on mingw.
8021         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
8022
8023 2010-04-03  Bruno Haible  <bruno@clisp.org>
8024
8025         locale: Make C++ tests work on Cygwin and mingw.
8026         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
8027         cannot provide the function.
8028         Reported by Simon Josefsson.
8029
8030 2010-04-03  Bruno Haible  <bruno@clisp.org>
8031
8032         localename: Port to MacOS X 10.6.
8033         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
8034         memory layout of the locales in MacOS X 10.6 as well.
8035         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
8036
8037 2010-04-02  Bruno Haible  <bruno@clisp.org>
8038
8039         gnulib-tool: Ensure that long-running tests are executed last.
8040         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
8041         running tests after the one for the other tests.
8042
8043 2010-04-02  Bruno Haible  <bruno@clisp.org>
8044
8045         gnulib-tool: Ensure the tests in the main directory are executed first.
8046         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
8047         start with the current directory.
8048
8049 2010-04-02  Bruno Haible  <bruno@clisp.org>
8050
8051         Tests for module 'havelib', moved here from GNU gettext.
8052         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
8053         modifications.
8054         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
8055         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
8056         with modifications.
8057         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
8058         modifications.
8059         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
8060         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
8061         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
8062         with modifications.
8063         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
8064         with modifications.
8065         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
8066         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
8067         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
8068         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
8069         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
8070         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
8071         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
8072         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
8073         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
8074         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
8075         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
8076         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
8077         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
8078         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
8079         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
8080         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
8081         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
8082         with modifications.
8083         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
8084         with modifications.
8085         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
8086         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
8087         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
8088         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
8089         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
8090         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
8091         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
8092         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
8093         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
8094         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
8095         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
8096         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
8097         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
8098         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
8099         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
8100         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
8101         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
8102         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
8103         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
8104         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
8105         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
8106         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
8107         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
8108         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
8109         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
8110         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
8111         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
8112         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
8113         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
8114         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
8115         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
8116         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
8117         * tests/havelib/rpathx/rpathx.c: New file, from
8118         gettext/autoconf-lib-link.
8119         * tests/havelib/rpathx/Makefile.am: New file, from
8120         gettext/autoconf-lib-link.
8121         * tests/havelib/rpathx/configure.ac: New file, from
8122         gettext/autoconf-lib-link with modifications.
8123         * tests/havelib/rpathy/rpathy.c: New file, from
8124         gettext/autoconf-lib-link.
8125         * tests/havelib/rpathy/Makefile.am: New file, from
8126         gettext/autoconf-lib-link.
8127         * tests/havelib/rpathy/configure.ac: New file, from
8128         gettext/autoconf-lib-link with modifications.
8129         * tests/havelib/rpathz/rpathz.c: New file, from
8130         gettext/autoconf-lib-link.
8131         * tests/havelib/rpathz/Makefile.am: New file, from
8132         gettext/autoconf-lib-link.
8133         * tests/havelib/rpathz/configure.ac: New file, from
8134         gettext/autoconf-lib-link with modifications.
8135         * tests/havelib/rpathlx/usex.c: New file, from
8136         gettext/autoconf-lib-link.
8137         * tests/havelib/rpathlx/Makefile.am: New file, from
8138         gettext/autoconf-lib-link.
8139         * tests/havelib/rpathlx/configure.ac: New file, from
8140         gettext/autoconf-lib-link with modifications.
8141         * tests/havelib/rpathly/usey.c: New file, from
8142         gettext/autoconf-lib-link.
8143         * tests/havelib/rpathly/Makefile.am: New file, from
8144         gettext/autoconf-lib-link.
8145         * tests/havelib/rpathly/configure.ac: New file, from
8146         gettext/autoconf-lib-link with modifications.
8147         * tests/havelib/rpathlz/usez.c: New file, from
8148         gettext/autoconf-lib-link.
8149         * tests/havelib/rpathlz/Makefile.am: New file, from
8150         gettext/autoconf-lib-link.
8151         * tests/havelib/rpathlz/configure.ac: New file, from
8152         gettext/autoconf-lib-link with modifications.
8153         * tests/havelib/rpathlyx/usey.c: New file, from
8154         gettext/autoconf-lib-link.
8155         * tests/havelib/rpathlyx/Makefile.am: New file, from
8156         gettext/autoconf-lib-link.
8157         * tests/havelib/rpathlyx/configure.ac: New file, from
8158         gettext/autoconf-lib-link with modifications.
8159         * tests/havelib/rpathlzyx/usez.c: New file, from
8160         gettext/autoconf-lib-link.
8161         * tests/havelib/rpathlzyx/Makefile.am: New file, from
8162         gettext/autoconf-lib-link.
8163         * tests/havelib/rpathlzyx/configure.ac: New file, from
8164         gettext/autoconf-lib-link with modifications.
8165         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
8166         with modifications.
8167
8168 2010-04-02  Bruno Haible  <bruno@clisp.org>
8169
8170         gnulib-tool: Create distributed built sources also for the tests.
8171         * gnulib-tool (func_create_testdir): Also generate distributed built
8172         sources in the tests directory.
8173
8174 2010-04-02  Bruno Haible  <bruno@clisp.org>
8175
8176         gnulib-tool: Obey user's environment variables.
8177         * gnulib-tool (func_create_testdir): When creating built sources,
8178         respect the environment variables for autoconf, automake, etc. given by
8179         the user.
8180
8181 2010-04-02  Bruno Haible  <bruno@clisp.org>
8182
8183         gnulib-tool: Provide the value of --m4-base to modules.
8184         * gnulib-tool (func_import, func_create_testdir): Emit a definition
8185         of gl_m4_base.
8186
8187 2010-04-02  Eric Blake  <eblake@redhat.com>
8188
8189         maint.mk: fix some fallout
8190         * NEWS: Document the incompatible change, and its effect on cfg.mk.
8191         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
8192
8193 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8194
8195         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
8196         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
8197         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
8198         (sc_cast_of_x_alloc_return_value): Likewise.
8199         (sc_cast_of_alloca_return_value): Likewise.
8200         (sc_space_tab): Likewise.
8201         (sc_prohibit_atoi_atof): Likewise.
8202         (sc_prohibit_magic_number_exit): Likewise.
8203         (sc_error_exit_success): Likewise.
8204         (sc_file_system): Likewise.
8205         (sc_prohibit_have_config_h): Likewise.
8206         (sc_require_config_h): Likewise.
8207         (sc_prohibit_HAVE_MBRTOWC): Likewise.
8208         (sc_obsolete_symbols): Likewise.
8209         (sc_changelog): Likewise.
8210         (sc_program_name): Likewise.
8211         (sc_the_the): Likewise.
8212         (sc_trailing_blank): Likewise.
8213         (sc_two_space_separator_in_usage): Likewise.
8214         (sc_useless_cpp_parens): Likewise.
8215         (sc_GPL_version): Likewise.
8216         (sc_GFDL_version): Likewise.
8217         (sc_texinfo_acronym): Likewise.
8218         (sc_prohibit_cvs_keyword): Likewise.
8219         (sc_prohibit_stat_st_blocks): Likewise.
8220         (sc_prohibit_S_IS_definition): Likewise.
8221         (sc_redundant_const): Likewise.
8222         (sc_makefile_TAB_only_indentation): Likewise.
8223         (sc_m4_quote_check): Likewise.
8224         (sc_makefile_path_separator_check): Likewise.
8225         (sc_copyright_check): Likewise.
8226         (sc_Wundef_boolean): Likewise.
8227         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8228
8229         maint.mk: match 0 or more whitespace-before-function-call '('
8230         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
8231         that have zero or two-and-more spaces between the function name
8232         and the open parenthesis.
8233         (sc_error_message_warn_fatal): Likewise.
8234         (sc_error_message_uppercase): Likewise.
8235         (sc_error_message_period): Likewise.
8236
8237 2010-03-31  Eric Blake  <eblake@redhat.com>
8238
8239         maint.mk: check for [ as well as test
8240         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
8241         Based on a libvirt report by Matthias Bolte.
8242
8243         gnumakefile: don't squelch _version output
8244         * top/GNUmakefile (_version): Create one-shot dependency rather
8245         than using $(shell) when version must be regenerated.
8246         (_autoreconf): Run verbosely, by default.
8247
8248         sys_time: avoid compiler warnings
8249         * lib/sys_time.in.h (includes): Ensure gcc pragma is
8250         unconditional, fixing regression from 2010-03-29.
8251         Reported by Simon Josefsson.
8252
8253 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8254
8255         maint.mk: s/_header_without_use/_sc_header_without_use/
8256         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
8257         (sc_prohibit_assert_without_use): Use the new name.
8258         (sc_prohibit_close_stream_without_use): Likewise.
8259         (sc_prohibit_getopt_without_use): Likewise.
8260         (sc_prohibit_quotearg_without_use): Likewise.
8261         (sc_prohibit_quote_without_use): Likewise.
8262         (sc_prohibit_long_options_without_use): Likewise.
8263         (sc_prohibit_inttostr_without_use): Likewise.
8264         (sc_prohibit_ignore_value_without_use): Likewise.
8265         (sc_prohibit_error_without_use): Likewise.
8266         (sc_prohibit_xalloc_without_use): Likewise.
8267         (sc_prohibit_hash_without_use): Likewise.
8268         (sc_prohibit_hash_pjw_without_use): Likewise.
8269         (sc_prohibit_safe_read_without_use): Likewise.
8270         (sc_prohibit_argmatch_without_use): Likewise.
8271         (sc_prohibit_canonicalize_without_use): Likewise.
8272         (sc_prohibit_root_dev_ino_without_use): Likewise.
8273         (sc_prohibit_openat_without_use): Likewise.
8274         (sc_prohibit_c_ctype_without_use): Likewise.
8275         (sc_prohibit_signal_without_use): Likewise.
8276         (sc_prohibit_intprops_without_use): Likewise.
8277
8278 2010-03-30  Eric Blake  <eblake@redhat.com>
8279
8280         maint: improve module indicators
8281         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
8282         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
8283         columns, and avoid extra macro expansion.
8284
8285         fdopendir: work around FreeBSD bug
8286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8287         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
8288         * modules/dirent (Makefile.am): Substitute it.
8289         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
8290         declaration.
8291         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
8292         fix.
8293         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8294
8295 2010-03-29  Bruno Haible  <bruno@clisp.org>
8296
8297         Emit #pragma system_header after the inclusion guard, not before.
8298         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
8299         guard that spans the entire file, not before. This enables an
8300         optimization in GCC's preprocessor.
8301         * lib/ctype.in.h: Likewise.
8302         * lib/dirent.in.h: Likewise.
8303         * lib/errno.in.h: Likewise.
8304         * lib/float.in.h: Likewise.
8305         * lib/getopt.in.h: Likewise.
8306         * lib/iconv.in.h: Likewise.
8307         * lib/langinfo.in.h: Likewise.
8308         * lib/locale.in.h: Likewise.
8309         * lib/math.in.h: Likewise.
8310         * lib/netdb.in.h: Likewise.
8311         * lib/netinet_in.in.h: Likewise.
8312         * lib/pty.in.h: Likewise.
8313         * lib/sched.in.h: Likewise.
8314         * lib/se-selinux.in.h: Likewise.
8315         * lib/search.in.h: Likewise.
8316         * lib/spawn.in.h: Likewise.
8317         * lib/stdarg.in.h: Likewise.
8318         * lib/stdint.in.h: Likewise.
8319         * lib/string.in.h: Likewise.
8320         * lib/strings.in.h: Likewise.
8321         * lib/sys_file.in.h: Likewise.
8322         * lib/sys_ioctl.in.h: Likewise.
8323         * lib/sys_time.in.h: Likewise.
8324         * lib/sys_times.in.h: Likewise.
8325         * lib/sys_utsname.in.h: Likewise.
8326         * lib/sys_wait.in.h: Likewise.
8327         * lib/sysexits.in.h: Likewise.
8328         * lib/wctype.in.h: Likewise.
8329
8330 2010-03-28  James Youngman  <jay@gnu.org>
8331
8332         save-cwd: don't leak a file descriptor when the caller execs.
8333         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
8334         saved file descriptor.
8335         * modules/save-cwd (Depends-on): Depend on cloexec.
8336
8337 2010-03-29  Bruno Haible  <bruno@clisp.org>
8338
8339         Remove vestiges of fts-lgpl module.
8340         * lib/fts_.h: Assume GNULIB_FTS is 1.
8341         * lib/fts.c: Likewise.
8342         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8343
8344 2010-03-28  Bruno Haible  <bruno@clisp.org>
8345
8346         Fix definition of tests witness macro.
8347         * gnulib-tool (func_import): Fix definition of witness macro.
8348
8349 2010-03-28  Bruno Haible  <bruno@clisp.org>
8350
8351         Fix ioctl's protoype on glibc systems.
8352         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
8353         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
8354         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
8355         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8356         signature. If not, arrange to replace the ioctl function.
8357         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8358         REPLACE_IOCTL.
8359         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
8360         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
8361         Reported by Ludovic Courtès <ludo@gnu.org>.
8362
8363 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
8364
8365         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
8366         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8367         made it so grep -r --include=GLOB* ... did not work.
8368
8369 2010-03-26  Jim Meyering  <meyering@redhat.com>
8370             Eric Blake  <eblake@redhat.com>
8371
8372         maint.mk: prohibit use of test's -o and -a operators
8373         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8374
8375 2010-03-28  Bruno Haible  <bruno@clisp.org>
8376
8377         Remove unused GNULIB_XYZ macro definitions.
8378         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8379         invocation.
8380
8381 2010-03-28  Bruno Haible  <bruno@clisp.org>
8382
8383         Mark privileged tests modules.
8384         * modules/idpriv-drop-tests (Status): New section.
8385         * modules/idpriv-droptemp-tests (Status): New section.
8386
8387 2010-03-28  Bruno Haible  <bruno@clisp.org>
8388
8389         Split C++ tests into separate tests modules.
8390         * modules/dirent-c++-tests: New file, extracted from
8391         modules/dirent-tests.
8392         * modules/dirent-tests: Depend on it.
8393         * modules/fcntl-h-c++-tests: New file, extracted from
8394         modules/fcntl-h-tests.
8395         * modules/fcntl-h-tests: Depend on it.
8396         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8397         * modules/glob-tests: Depend on it.
8398         * modules/iconv-h-c++-tests: New file, extracted from
8399         modules/iconv-h-tests.
8400         * modules/iconv-h-tests: Depend on it.
8401         * modules/langinfo-c++-tests: New file, extracted from
8402         modules/langinfo-tests.
8403         * modules/langinfo-tests: Depend on it.
8404         * modules/locale-c++-tests: New file, extracted from
8405         modules/locale-tests.
8406         * modules/locale-tests: Depend on it.
8407         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8408         * modules/math-tests: Depend on it.
8409         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8410         * modules/pty-tests: Depend on it.
8411         * modules/search-c++-tests: New file, extracted from
8412         modules/search-tests.
8413         * modules/search-tests: Depend on it.
8414         * modules/signal-c++-tests: New file, extracted from
8415         modules/signal-tests.
8416         * modules/signal-tests: Depend on it.
8417         * modules/spawn-c++-tests: New file, extracted from
8418         modules/spawn-tests.
8419         * modules/spawn-tests: Depend on it.
8420         * modules/stdio-c++-tests: New file, extracted from
8421         modules/stdio-tests.
8422         * modules/stdio-tests: Depend on it.
8423         * modules/stdlib-c++-tests: New file, extracted from
8424         modules/stdlib-tests.
8425         * modules/stdlib-tests: Depend on it.
8426         * modules/string-c++-tests: New file, extracted from
8427         modules/string-tests.
8428         * modules/string-tests: Depend on it.
8429         * modules/sys_ioctl-c++-tests: New file, extracted from
8430         modules/sys_ioctl-tests.
8431         * modules/sys_ioctl-tests: Depend on it.
8432         * modules/sys_select-c++-tests: New file, extracted from
8433         modules/sys_select-tests.
8434         * modules/sys_select-tests: Depend on it.
8435         * modules/sys_socket-c++-tests: New file, extracted from
8436         modules/sys_socket-tests.
8437         * modules/sys_socket-tests: Depend on it.
8438         * modules/sys_stat-c++-tests: New file, extracted from
8439         modules/sys_stat-tests.
8440         * modules/sys_stat-tests: Depend on it.
8441         * modules/sys_time-c++-tests: New file, extracted from
8442         modules/sys_time-tests.
8443         * modules/sys_time-tests: Depend on it.
8444         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8445         * modules/time-tests: Depend on it.
8446         * modules/unistd-c++-tests: New file, extracted from
8447         modules/unistd-tests.
8448         * modules/unistd-tests: Depend on it.
8449         * modules/wchar-c++-tests: New file, extracted from
8450         modules/wchar-tests.
8451         * modules/wchar-tests: Depend on it.
8452         * modules/wctype-c++-tests: New file, extracted from
8453         modules/wctype-tests.
8454         * modules/wctype-tests: Depend on it.
8455         Reported by Simon Josefsson.
8456
8457 2010-03-28  Bruno Haible  <bruno@clisp.org>
8458
8459         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8460         * gnulib-tool (func_exists_module): New function, extracted from
8461         func_verify_module.
8462         (func_verify_module): Use it.
8463         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8464         'foo' only if 'foo' exists.
8465         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8466         module.
8467
8468 2010-03-28  Bruno Haible  <bruno@clisp.org>
8469
8470         gnulib-tool: Add support for special categories of tests.
8471         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8472         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8473         (func_usage): Document them.
8474         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8475         inc_unportable_tests, inc_all_tests): New variables.
8476         (func_acceptable): Consider these variables.
8477         (func_modules_transitive_closure): Make it work when the 'Status' field
8478         consists of multiple words.
8479         (func_import): Store and restore the values of inc_cxx_tests,
8480         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8481         inc_all_tests in gnulib-comp.m4.
8482         (func_create_testdir): Set inc_all_tests to true.
8483         * doc/gnulib.texi (Extra tests modules): New section.
8484         Suggested by Jim Meyering.
8485
8486 2010-03-28  Bruno Haible  <bruno@clisp.org>
8487
8488         ansi-c++-opt: Allow turning off the C++ build by default.
8489         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8490         gl_CXX_CHOICE_DEFAULT_NO is defined.
8491         Requested by Eric Blake.
8492
8493 2010-03-28  Bruno Haible  <bruno@clisp.org>
8494
8495         unistd: Avoid #define replacements in C++ mode.
8496         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8497         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8498         setsockopt, shutdown, select): In C++, attach a warning to the function
8499         if possible, rather than #defining the symbol to a dysfunctional alias.
8500         Reported by John W. Eaton <jwe@gnu.org>.
8501
8502 2010-03-28  Bruno Haible  <bruno@clisp.org>
8503
8504         Fix link errors on mingw.
8505         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8506         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8507         $(LIBSOCKET).
8508         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8509         $(LIBSOCKET).
8510
8511 2010-03-28  Bruno Haible  <bruno@clisp.org>
8512             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8513
8514         lib-ignore: Determine different options for different compilers.
8515         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8516         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8517         Add comments.
8518         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8519         * NEWS: Mention the change.
8520
8521 2010-03-27  Bruno Haible  <bruno@clisp.org>
8522
8523         Remove unused GNULIB_XYZ macro definitions.
8524         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8525         * modules/fseek (configure.ac): Likewise.
8526         * modules/ioctl (configure.ac): Likewise.
8527         * modules/open (configure.ac): Likewise.
8528         * modules/stdlib-safer (configure.ac): Likewise.
8529
8530 2010-03-27  Bruno Haible  <bruno@clisp.org>
8531
8532         Add a remark about certain modules.
8533         * modules/malloc (Comment): New section.
8534         * modules/realloc (Comment): Likewise.
8535         * modules/sigpipe (Comment): Likewise.
8536
8537 2010-03-27  Bruno Haible  <bruno@clisp.org>
8538
8539         Resolve conflict between the two kinds of module indicators.
8540         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8541         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8542         * modules/canonicalize (configure.ac): Invoke
8543         gl_MODULE_INDICATOR_FOR_TESTS.
8544         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8545         GNULIB_XYZ.
8546         * tests/test-dirent-c++.cc: Likewise.
8547         * tests/test-dirent-safer.c: Likewise.
8548         * tests/test-dup2.c: Likewise.
8549         * tests/test-fchdir.c: Likewise.
8550         * tests/test-fcntl-h-c++.cc: Likewise.
8551         * tests/test-getopt.c: Likewise.
8552         * tests/test-getopt.h: Likewise.
8553         * tests/test-langinfo-c++.cc: Likewise.
8554         * tests/test-locale-c++.cc: Likewise.
8555         * tests/test-math-c++.cc: Likewise.
8556         * tests/test-pty-c++.cc: Likewise.
8557         * tests/test-search-c++.cc: Likewise.
8558         * tests/test-signal-c++.cc: Likewise.
8559         * tests/test-spawn-c++.cc: Likewise.
8560         * tests/test-stdio-c++.cc: Likewise.
8561         * tests/test-stdlib-c++.cc: Likewise.
8562         * tests/test-string-c++.cc: Likewise.
8563         * tests/test-sys_ioctl-c++.cc: Likewise.
8564         * tests/test-sys_select-c++.cc: Likewise.
8565         * tests/test-sys_socket-c++.cc: Likewise.
8566         * tests/test-sys_stat-c++.cc: Likewise.
8567         * tests/test-sys_time-c++.cc: Likewise.
8568         * tests/test-time-c++.cc: Likewise.
8569         * tests/test-unistd-c++.cc: Likewise.
8570         * tests/test-wchar-c++.cc: Likewise.
8571         * tests/uninorm/test-u8-nfc.c: Likewise.
8572         * tests/uninorm/test-u8-nfd.c: Likewise.
8573         * tests/uninorm/test-u8-nfkc.c: Likewise.
8574         * tests/uninorm/test-u8-nfkd.c: Likewise.
8575         * tests/uninorm/test-u16-nfc.c: Likewise.
8576         * tests/uninorm/test-u16-nfd.c: Likewise.
8577         * tests/uninorm/test-u16-nfkc.c: Likewise.
8578         * tests/uninorm/test-u16-nfkd.c: Likewise.
8579         * tests/uninorm/test-u32-nfc.c: Likewise.
8580         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8581         * tests/uninorm/test-u32-nfd.c: Likewise.
8582         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8583         * tests/uninorm/test-u32-nfkc.c: Likewise.
8584         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8585         * tests/uninorm/test-u32-nfkd.c: Likewise.
8586         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8587         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8588
8589 2010-03-27  Bruno Haible  <bruno@clisp.org>
8590
8591         Distinguish two kinds of module indicators.
8592         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8593         gl_MODULE_INDICATOR.
8594         (gl_MODULE_INDICATOR): New macro.
8595         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8596         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8597         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8598         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8599         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8600         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8601         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8602         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8603         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8604         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8605         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8606         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8608         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8609         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8610         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8611         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8612         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8613         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8614         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8615         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8616         * modules/cloexec (configure.ac): Likewise.
8617         * modules/getopt-gnu (configure.ac): Likewise.
8618         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8619         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8620         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8621         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8622
8623 2010-03-27  Bruno Haible  <bruno@clisp.org>
8624
8625         New module description field 'Comment'.
8626         * gnulib-tool: New option --extract-comment.
8627         (func_usage): Document it.
8628         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8629         (func_get_comment): New function.
8630         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8631
8632 2010-03-27  Bruno Haible  <bruno@clisp.org>
8633
8634         Addendum to 2010-02-07 commit.
8635         * gnulib-tool (func_usage): Document --extract-applicability option.
8636
8637 2010-03-27  Bruno Haible  <bruno@clisp.org>
8638
8639         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8640         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8641         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8642         rather than link errors.
8643
8644 2010-03-27  Bruno Haible  <bruno@clisp.org>
8645
8646         Avoid side effects from tests-related modules on the compilation of lib.
8647         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
8648         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
8649         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
8650         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8651         macro.
8652         (func_import): Define a witness macro. Assign it a value that depends
8653         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
8654         tests-related modules.
8655         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
8656         Reported by Jim Meyering.
8657
8658 2010-03-27  Bruno Haible  <bruno@clisp.org>
8659
8660         Factorize common .m4 code.
8661         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
8662         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
8663         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
8664         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
8665         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8666         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
8667         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
8668         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8669         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8670         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8671         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
8672         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8673         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8674         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8675         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8676         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
8677         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8678         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8680         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
8681         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
8682         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8683         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8684         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8685         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8686         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8687         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
8688         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
8689         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
8690         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8691         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8692         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8693
8694 2010-03-27  Bruno Haible  <bruno@clisp.org>
8695
8696         Fix a compilation error on Cygwin with g++ >= 4.3.
8697         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
8698         if it is undefined or if we alias it to chmod.
8699         (lstat): Don't warn about the use of this function if it is undefined
8700         or if we alias it to stat.
8701         Reported by Simon Josefsson.
8702
8703 2010-03-27  Bruno Haible  <bruno@clisp.org>
8704
8705         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
8706         * modules/getlogin (configure.ac): Update.
8707
8708         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
8709         * modules/getlogin_r (configure.ac): Update.
8710
8711         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
8712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
8713         * modules/inet_ntop (configure.ac): Update.
8714
8715         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
8716         * modules/inet_pton (configure.ac): Update.
8717
8718         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
8719         * modules/mbslen (configure.ac): Update.
8720
8721         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
8722         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
8723         * modules/forkpty (configure.ac): Update.
8724         * modules/openpty (configure.ac): Update.
8725
8726 2010-03-26  Simon Josefsson  <simon@josefsson.org>
8727
8728         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
8729         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
8730
8731 2010-03-25  Eric Blake  <eblake@redhat.com>
8732
8733         maint: use pragma consistently across replacement headers
8734         * lib/ctype.in.h (system_header): Hoist for consistent placement.
8735         * lib/dirent.in.h (system_header): Likewise.
8736         * lib/errno.in.h (system_header): Likewise.
8737         * lib/float.in.h (system_header): Likewise.
8738         * lib/getopt.in.h (system_header): Likewise.
8739         * lib/iconv.in.h (system_header): Likewise.
8740         * lib/inttypes.in.h (system_header): Likewise.
8741         * lib/langinfo.in.h (system_header): Likewise.
8742         * lib/locale.in.h (system_header): Likewise.
8743         * lib/math.in.h (system_header): Likewise.
8744         * lib/netdb.in.h (system_header): Likewise.
8745         * lib/netinet_in.in.h (system_header): Likewise.
8746         * lib/pty.in.h (system_header): Likewise.
8747         * lib/sched.in.h (system_header): Likewise.
8748         * lib/se-selinux.in.h (system_header): Likewise.
8749         * lib/search.in.h (system_header): Likewise.
8750         * lib/spawn.in.h (system_header): Likewise.
8751         * lib/stdarg.in.h (system_header): Likewise.
8752         * lib/stdint.in.h (system_header): Likewise.
8753         * lib/string.in.h (system_header): Likewise.
8754         * lib/strings.in.h (system_header): Likewise.
8755         * lib/sys_file.in.h (system_header): Likewise.
8756         * lib/sys_ioctl.in.h (system_header): Likewise.
8757         * lib/sys_socket.in.h (system_header): Likewise.
8758         * lib/sys_times.in.h (system_header): Likewise.
8759         * lib/sys_utsname.in.h (system_header): Likewise.
8760         * lib/sys_wait.in.h (system_header): Likewise.
8761         * lib/sysexits.in.h (system_header): Likewise.
8762         * lib/unistd.in.h (system_header): Likewise.
8763         * lib/wctype.in.h (system_header): Likewise.
8764
8765         arpa/inet: fix mingw compilation warning
8766         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
8767         Reported by Matthew Bolte.
8768
8769 2010-03-25  Bruno Haible  <bruno@clisp.org>
8770
8771         Avoid collision between gnulib wrapper and libintl wrapper.
8772         * lib/printf.c (printf): Don't define if a printf wrapper is already
8773         defined in intl/printf.c.
8774         Reported by Michel Boaventura <michel@michelboaventura.com>.
8775
8776 2010-03-25  Bruno Haible  <bruno@clisp.org>
8777
8778         Use ANSI C.
8779         * lib/readutmp.h (getutent): Provide ANSI C prototype.
8780
8781 2010-03-25  Bruno Haible  <bruno@clisp.org>
8782
8783         Minor formatting changes.
8784         * lib/acosl.c: Insert space before function argument list.
8785         * lib/argz.c: Likewise.
8786         * lib/asinl.c: Likewise.
8787         * lib/expl.c: Likewise.
8788         * lib/gen-uni-tables.c: Likewise.
8789         * lib/gettext.h: Likewise.
8790         * lib/glthread/lock.h: Likewise.
8791         * lib/tanl.c: Likewise.
8792         * lib/uniname/uniname.c: Likewise.
8793         * tests/test-idpriv-drop.c: Likewise.
8794         * tests/test-idpriv-droptemp.c: Likewise.
8795         * tests/test-lock.c: Likewise.
8796         * tests/test-tls.c: Likewise.
8797         * lib/argp-help.c: Insert space before function-like macro argument
8798         list.
8799         * lib/memcmp.c: Likewise.
8800         * tests/test-base64.c: Likewise.
8801         * lib/localename.c: Insert space before sizeof's argument list.
8802         * lib/safe-alloc.h: Likewise.
8803         * lib/file-set.h: Insert space before macro argument list.
8804         * tests/test-argp.c: Likewise.
8805         * lib/argp-namefrob.h: Insert space before function parameter list.
8806         * lib/getaddrinfo.c: Likewise.
8807         * lib/netdb.in.h: Likewise.
8808         * lib/parse-duration.h: Likewise.
8809         * lib/parse-duration.c: Likewise.
8810         * lib/poll.c: Likewise.
8811         * lib/select.c: Likewise.
8812         * lib/trim.h: Likewise.
8813         * tests/test-usleep.c: Likewise.
8814         * lib/ldexpl.c: Insert space before function parameter list and before
8815         function argument list.
8816         * lib/logl.c: Likewise.
8817         * lib/sqrtl.c: Likewise.
8818         * lib/trim.c: Likewise.
8819         * lib/cosl.c: Use GNU style indentation. Insert space before function
8820         argument list.
8821         * lib/sinl.c: Likewise.
8822         * lib/tsearch.c: Insert space after 'for'.
8823         Reported by Jim Meyering.
8824
8825 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8826
8827         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8828         config header before grepping, as it's not present before
8829         autoreconf/configure are run.  Reported by Simon Josefsson.
8830
8831 2010-03-23  Bruno Haible  <bruno@clisp.org>
8832
8833         pt_chown: Make it work with automake < 1.11.
8834         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8835         Reported by Simon Josefsson.
8836
8837 2010-03-23  Bruno Haible  <bruno@clisp.org>
8838
8839         pt_chown: Don't depend on GPLed modules.
8840         * lib/pt_chown.c: Don't include idpriv.h.
8841         (main): Don't drop privileges.
8842         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8843         Reported by Simon Josefsson.
8844
8845 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8846
8847         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8848         suggestions from karl@freefriends.org (Karl Berry).
8849
8850 2010-03-22  Eric Blake  <eblake@redhat.com>
8851
8852         gethostname: further tweaks
8853         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8854         are overriding gethostname.
8855         Suggested by Bruno Haible.
8856
8857 2010-03-21  Bruno Haible  <bruno@clisp.org>
8858
8859         Fix comments.
8860         * lib/forkpty.c (rpl_forkpty): Fix comment.
8861         * lib/openpty.c (rpl_openpty): Likewise.
8862         Reported by Eric Blake.
8863
8864 2010-03-22  Eric Blake  <eblake@redhat.com>
8865
8866         gethostname: fix build on mingw
8867         * lib/unistd.in.h (includes): Work around fact that mingw
8868         <winsock2.h> re-includes <unistd.h>, by avoiding any
8869         redeclarations if we are being included by <winsock2.h>.
8870         Reported by Matthias Bolte.
8871
8872 2010-03-21  Bruno Haible  <bruno@clisp.org>
8873
8874         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8875         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8876         modifications.
8877         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8878         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8879         provide the replacement.
8880         * modules/forkpty (Depends-on): Add openpty, login_tty.
8881         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8882         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8883         * doc/glibc-functions/forkpty.texi: More supported platforms.
8884         * config/srclist.txt: Add forkpty.c (commented).
8885
8886 2010-03-21  Bruno Haible  <bruno@clisp.org>
8887
8888         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8889         (Makefile.am): Verify that PTY_LIB is defined.
8890
8891         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8892
8893 2010-03-21  Bruno Haible  <bruno@clisp.org>
8894
8895         Tests for module 'login_tty'.
8896         * modules/login_tty-tests: New file.
8897         * tests/test-login_tty.c: New file.
8898
8899         New module 'login_tty'.
8900         * lib/login_tty.c: New file.
8901         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8902         * modules/login_tty: New file.
8903         * doc/glibc-functions/login_tty.texi: Mention the new module.
8904
8905 2010-03-21  Bruno Haible  <bruno@clisp.org>
8906
8907         login_tty: Documentation.
8908         * doc/glibc-functions/login_tty.texi: New file.
8909         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8910
8911 2010-03-21  Bruno Haible  <bruno@clisp.org>
8912
8913         pty: Consistent macro naming.
8914         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8915         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8916         * modules/pty (configure.ac): Update.
8917
8918 2010-03-21  Bruno Haible  <bruno@clisp.org>
8919
8920         Tests for openpty: Make stricter.
8921         * tests/test-openpty.c (main): Add test of canonical processing and
8922         erase.
8923         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8924
8925         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8926         * lib/openpty.c (openpty): New replacement function.
8927         * lib/pty.in.h: Include <termios.h>.
8928         (openpty): Update declaration. Add comments.
8929         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8930         is not declared, arrange to provide the replacement. Check for _getpty
8931         and posix_openpt.
8932         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8933         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8934         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8935         * modules/pty-tests (test_pty_c___LDADD): New variable.
8936         * doc/glibc-functions/openpty.texi: More supported platforms.
8937
8938 2010-03-21  Bruno Haible  <bruno@clisp.org>
8939
8940         setenv: Tweaks.
8941         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8942         the test program.
8943         * doc/posix-functions/setenv.texi: Update platforms list.
8944
8945 2010-03-21  Bruno Haible  <bruno@clisp.org>
8946
8947         New module 'unlockpt'.
8948         * lib/unlockpt.c: New file, from glibc with modifications.
8949         * m4/unlockpt.m4: New file.
8950         * modules/unlockpt: New file.
8951         * lib/stdlib.in.h (unlockpt): New declaration.
8952         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8953         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8954         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8955         HAVE_UNLOCKPT.
8956         * doc/posix-functions/unlockpt.texi: Mention the new module.
8957         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8958         * config/srclist.txt: Add unlockpt.c (commented).
8959
8960 2010-03-21  Jim Meyering  <meyering@redhat.com>
8961
8962         maint.mk: prohibit inclusion of "intprops.h" without use
8963         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8964
8965 2010-03-21  Bruno Haible  <bruno@clisp.org>
8966
8967         New module 'grantpt'.
8968         * lib/grantpt.c: New file, from glibc with modifications.
8969         * m4/grantpt.m4: New file.
8970         * modules/grantpt: New file.
8971         * lib/stdlib.in.h (grantpt): New declaration.
8972         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8973         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8974         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8975         HAVE_GRANTPT.
8976         * doc/posix-functions/grantpt.texi: Mention the new module.
8977         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8978         * config/srclist.txt: Add grantpt.c (commented).
8979
8980 2010-03-21  Bruno Haible  <bruno@clisp.org>
8981
8982         New module 'pt_chown'.
8983         * lib/pt_chown.c: New file, from glibc with modifications.
8984         * lib/pty-private.h: New file, from glibc with modifications.
8985         * modules/pt_chown: New file.
8986         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8987
8988 2010-03-21  Bruno Haible  <bruno@clisp.org>
8989
8990         Tests for module 'ptsname'.
8991         * modules/ptsname-tests: New file.
8992         * tests/test-ptsname.c: New file.
8993
8994         New module 'ptsname'.
8995         * lib/ptsname.c: New file, from glibc with modifications.
8996         * m4/ptsname.m4: New file.
8997         * modules/ptsname: New file.
8998         * lib/stdlib.in.h (ptsname): New declaration.
8999         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
9000         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
9001         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
9002         HAVE_PTSNAME.
9003         * doc/posix-functions/ptsname.texi: Mention the new module.
9004         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
9005         * config/srclist.txt: Add ptsname.c (commented).
9006
9007 2010-03-21  Bruno Haible  <bruno@clisp.org>
9008
9009         Tests for module 'ttyname_r'.
9010         * modules/ttyname_r-tests: New file.
9011         * tests/test-ttyname_r.c: New file.
9012
9013         New module 'ttyname_r'.
9014         * lib/ttyname_r.c: New file.
9015         * m4/ttyname_r.m4: New file.
9016         * modules/ttyname_r: New file.
9017         * lib/unistd.in.h (ttyname_r): New declaration.
9018         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
9019         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
9020         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
9021         HAVE_TTYNAME_R.
9022         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
9023         * doc/posix-functions/ttyname_r.texi: Mention the new module.
9024
9025 2010-03-20  Bruno Haible  <bruno@clisp.org>
9026
9027         signal: Undefine macro definitions in C++ mode.
9028         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
9029         sigfillset): Undefine macro definitions from the system header in C++
9030         mode.
9031         Reported by John W. Eaton <jwe@gnu.org>.
9032
9033 2010-03-20  Bruno Haible  <bruno@clisp.org>
9034
9035         Ensure no #include statements inside extern "C" { ... }.
9036         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
9037         contain #include statements.
9038         * lib/time.in.h: Likewise.
9039
9040 2010-03-20  Bruno Haible  <bruno@clisp.org>
9041
9042         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
9043         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
9044         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
9045         Reported by John W. Eaton <jwe@gnu.org>.
9046
9047 2010-03-20  Bruno Haible  <bruno@clisp.org>
9048
9049         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
9050         Reported by Jim Meyering.
9051
9052 2010-03-20  Bruno Haible  <bruno@clisp.org>
9053
9054         pipe: Set errno upon failure.
9055         * lib/pipe.h: Specify that when -1 is returned, errno is set.
9056         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
9057         errno value in error message.
9058
9059 2010-03-20  Bruno Haible  <bruno@clisp.org>
9060             Jim Meyering  <meyering@redhat.com>
9061
9062         lchown: Avoid "unused variable" warning.
9063         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
9064
9065 2010-03-20  Bruno Haible  <bruno@clisp.org>
9066
9067         Work around unlink() bug on MacOS X 10.5.6.
9068         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
9069         attempting to unlink a parent directory.
9070         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
9071         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
9072         activate for the replacement function.
9073         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
9074
9075 2010-03-20  Bruno Haible  <bruno@clisp.org>
9076
9077         Fix link errors on Solaris 8.
9078         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
9079         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
9080
9081 2010-03-19  Jim Meyering  <meyering@redhat.com>
9082
9083         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
9084         The _LIBC implementation of build_range_exp correctly honors the
9085         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
9086         However, the non-_LIBC implementation would ignore that syntax-bit
9087         flag and return REG_ERANGE unconditionally.
9088         This change makes it honor that flag.
9089         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
9090         Make two pointer parameters "const".
9091         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
9092         (parse_bracket_exp): Update caller.
9093
9094         regex.m4: correct the reversed range endpoint ([b-a]) test
9095         * m4/regex.m4: When requiring that [b-a] evoke failure,
9096         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
9097         test pass once again for x86-based systems.
9098
9099 2010-03-19  Bruno Haible  <bruno@clisp.org>
9100
9101         scandir: Fix link error on Solaris 8.
9102         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
9103         macros.
9104
9105 2010-03-19  Bruno Haible  <bruno@clisp.org>
9106
9107         getusershell: Fix documentation.
9108         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
9109         module.
9110         * doc/glibc-functions/setusershell.texi: Likewise.
9111
9112         getusershell: Provide declaration, missing on Solaris 9.
9113         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
9114         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
9115         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
9116         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
9117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9118         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
9119         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
9120         HAVE_GETUSERSHELL.
9121         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
9122
9123 2010-03-19  Bruno Haible  <bruno@clisp.org>
9124
9125         wctype: Provide iswblank function.
9126         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
9127         exists and is fine.
9128         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
9129         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
9130         * tests/test-wctype.c (main): Re-enable the iswblank tests.
9131         * doc/posix-functions/iswblank.texi: Update.
9132
9133 2010-03-19  Bruno Haible  <bruno@clisp.org>
9134
9135         Tests of module 'pty' in C++ mode.
9136         * modules/pty-tests: New file.
9137         * tests/test-pty-c++.cc: New file.
9138         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9139
9140 2010-03-19  Eric Blake  <eblake@redhat.com>
9141
9142         logb: fix documentation
9143         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
9144         1.5 declaration bug.
9145
9146         forkpty, openpty: prefer glibc's const-safe prototype
9147         * lib/forkpty.c (rpl_forkpty): New file.
9148         * lib/openpty.c (rpl_openpty): Likewise.
9149         * modules/forkpty (Files): Distribute it.
9150         * modules/openpty (Files): Likewise.
9151         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
9152         check...
9153         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
9154         replacement for for non-const BSD signature.
9155         * modules/pty (Makefile.am): Substitute witnesses.
9156         * lib/pty.in.h (forkpty, openpty): Declare replacements.
9157         * tests/test-forkpty.c: Update signature check.
9158         * tests/test-openpty.c: Likewise.
9159         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
9160         * doc/glibc-functions/openpty.texi (openpty): Likewise.
9161
9162         forkpty, openpty: split functions into new modules
9163         * modules/pty (Makefile.am): Substitute new witnesses.
9164         (Libraries): Move library detection...
9165         * modules/forkpty: ...into new module.
9166         * modules/openpty: Another new module.
9167         * modules/pty-tests: Rename and split...
9168         * modules/forkpty-tests: ...to this...
9169         * modules/openpty-tests: ...and this.
9170         * tests/test-pty.c: Rename and split...
9171         * tests/test-forkpty.c: ...to this...
9172         * tests/test-openpty.c: ...and this.
9173         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
9174         (gl_PTY): Split library searching...
9175         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
9176         (gl_FORKPTY, gl_OPENPTY): New macros.
9177         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
9178         * NEWS: Mention the split.
9179         * MODULES.html.sh (Misc): Document the modules.
9180         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
9181         * doc/glibc-functions/openpty.texi (openpty): Likewise.
9182
9183         pty: improve replacement header
9184         * lib/pty.in.h: New file.
9185         * modules/pty (Files): Ship it.
9186         (Makefile.am): Always build replacement.
9187         * m4/pty.m4: Rename...
9188         * m4/pty_h.m4: ...to this.
9189         (gl_PTY): Modernize setting of witness macros; update check of
9190         forkpty to take proper advantage of cache.
9191         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
9192
9193         getopt: avoid compiler warning
9194         * lib/getopt.c (attribute_hidden): Remove unused macro.
9195
9196 2010-03-18  Bruno Haible  <bruno@clisp.org>
9197
9198         Fix link errors on Solaris 8.
9199         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
9200         * modules/search-tests (test_search_c___LDADD): Likewise.
9201         * modules/signal-tests (test_signal_c___LDADD): Likewise.
9202         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
9203         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
9204         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
9205         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
9206         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
9207         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
9208
9209 2010-03-18  Bruno Haible  <bruno@clisp.org>
9210
9211         Fix bug introduced on 2010-03-14.
9212         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
9213         (gl_SPAWN_H): Require it.
9214         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
9215         Reported by Simon Josefsson.
9216
9217 2010-03-18  Bruno Haible  <bruno@clisp.org>
9218
9219         Fix typo introduced on 2009-12-31.
9220         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
9221         posix_spawn_file_actions_adddup2.
9222
9223 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
9224         and Eric Blake  <eblake@redhat.com>
9225
9226         test-vc-list-files-git: make more robust
9227         * tests/test-vc-list-files-git.sh: Unset problematic environment
9228         variables.  Chain commands together.
9229
9230 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
9231
9232         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
9233         `AC_CHECK_DECL' invocation.
9234
9235 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
9236
9237         * lib/inttostr.c (inttostr): Make sure the invocation of verify
9238         appears before executable statements. Suggested by Petr Sumbera
9239         <Petr.Sumbera@Sun.COM>.
9240
9241 2010-03-14  Bruno Haible  <bruno@clisp.org>
9242
9243         * tests/test-flock.c (test_exclusive): Comment out a test that causes
9244         portability problems. Instead use a simpler test.
9245         (main): Check that invalid arguments are rejected only on Linux.
9246
9247 2010-03-14  Bruno Haible  <bruno@clisp.org>
9248
9249         Fix bug introduced on 2009-12-31.
9250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9251         gl_PREREQ_SYS_H_WINSOCK2 always.
9252         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
9253         SYS_SOCKET_H variable.
9254         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
9255         Update comments.
9256         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
9257         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9258         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9259         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9260         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9261
9262 2010-03-14  Bruno Haible  <bruno@clisp.org>
9263
9264         Fix values returned by sinl, cosl.
9265         * lib/trigl.h: Add specification comments.
9266         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
9267         that combines the values from the precomputed table with the values of
9268         the Chebyshev polynomials.
9269
9270 2010-03-14  Bruno Haible  <bruno@clisp.org>
9271
9272         Fix compilation error when modules 'posix_spawn[p]' are not used.
9273         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
9274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
9275
9276 2010-03-14  Bruno Haible  <bruno@clisp.org>
9277
9278         Fix compilation error on mingw when module 'time_r' is not used.
9279         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
9280         is 1.
9281         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
9282         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9283         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
9284         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
9285
9286 2010-03-14  Bruno Haible  <bruno@clisp.org>
9287
9288         Fix compilation error with Sun C.
9289         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
9290         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
9291         instead of GCC specific ULONG_LONG_MAX.
9292         * lib/xstrtoll.c: Likewise.
9293         * lib/xstrtoull.c: Likewise.
9294
9295 2010-03-13  Bruno Haible  <bruno@clisp.org>
9296
9297         Allow the user to disable C++ code and tests.
9298         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
9299         (gl_PROG_ANSI_CXX): Require it.
9300
9301 2010-03-13  Bruno Haible  <bruno@clisp.org>
9302
9303         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
9304         cases.
9305
9306 2010-03-13  Bruno Haible  <bruno@clisp.org>
9307
9308         Test that gnulib does not break the standard C++ headers.
9309         * tests/test-locale-c++2.cc: New file.
9310         * modules/locale-tests (Files): Add it.
9311         (Makefile.am): Compile it for test-locale-c++.
9312         * tests/test-math-c++2.cc: New file.
9313         * modules/math-tests (Files): Add it.
9314         (Makefile.am): Compile it for test-math-c++.
9315         * tests/test-signal-c++2.cc: New file.
9316         * modules/signal-tests (Files): Add it.
9317         (Makefile.am): Compile it for test-signal-c++.
9318         * tests/test-stdio-c++2.cc: New file.
9319         * modules/stdio-tests (Files): Add it.
9320         (Makefile.am): Compile it for test-stdio-c++.
9321         * tests/test-stdlib-c++2.cc: New file.
9322         * modules/stdlib-tests (Files): Add it.
9323         (Makefile.am): Compile it for test-stdlib-c++.
9324         * tests/test-string-c++2.cc: New file.
9325         * modules/string-tests (Files): Add it.
9326         (Makefile.am): Compile it for test-string-c++.
9327         * tests/test-time-c++2.cc: New file.
9328         * modules/time-tests (Files): Add it.
9329         (Makefile.am): Compile it for test-time-c++.
9330         Reported by John W. Eaton <jwe@gnu.org>.
9331
9332 2010-03-13  Bruno Haible  <bruno@clisp.org>
9333
9334         * gnulib-tool (func_usage): Clarify which options are available for
9335         --create-testdir and --create-megatestdir.
9336
9337 2010-03-13  Bruno Haible  <bruno@clisp.org>
9338
9339         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
9340         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
9341         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
9342         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9343         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
9344         when appropriate.
9345         Reported by Jim Meyering.
9346
9347 2010-03-12  Simon Josefsson  <simon@josefsson.org>
9348
9349         * gnulib-tool (func_import): Explain origin of code.
9350
9351 2010-03-12  Bruno Haible  <bruno@clisp.org>
9352
9353         Fix problem with automake's definition of CXXLINK.
9354         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
9355         Reported by Simon Josefsson and Ludovic Courtès.
9356
9357 2010-03-12  Bruno Haible  <bruno@clisp.org>
9358
9359         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
9360         stable releases.
9361
9362 2010-03-11  Bruno Haible  <bruno@clisp.org>
9363
9364         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
9365         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
9366         whether the system provides one variant or multiple variants of the
9367         function.
9368         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9369         C++ compilers.
9370         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9371         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9372         Reported by Jim Meyering.
9373
9374 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9375
9376         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9377
9378 2010-03-08  Bruno Haible  <bruno@clisp.org>
9379
9380         gnulib-tool: Add support for --libtool in --create-testdir.
9381         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9382         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9383
9384 2010-03-08  Eric Blake  <eblake@redhat.com>
9385
9386         gnulib-tool.texi: mention possibility of git submodule
9387         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9388         submodules.
9389         * doc/.gitignore: Ignore another generated file.
9390
9391 2010-03-08  Karl Berry  <karl@gnu.org>
9392
9393         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9394         of committing gnulib files while skipping others.
9395
9396 2010-03-07  Bruno Haible  <bruno@clisp.org>
9397
9398         Tests of module 'wctype' in C++ mode.
9399         * tests/test-wctype-c++.cc: New file.
9400         * modules/wctype-tests (Files): Add it and tests/signature.h.
9401         (Depends-on): Add ansi-c++-opt.
9402         (Makefile.am): Arrange to compile and run test-wctype-c++.
9403
9404         Tests of module 'wchar' in C++ mode.
9405         * tests/test-wchar-c++.cc: New file.
9406         * modules/wchar-tests (Files): Add it and tests/signature.h.
9407         (Depends-on): Add ansi-c++-opt.
9408         (Makefile.am): Arrange to compile and run test-wchar-c++.
9409         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9410         gl_MODULE_INDICATOR.
9411
9412         Tests of module 'unistd' in C++ mode.
9413         * tests/test-unistd-c++.cc: New file.
9414         * modules/unistd-tests (Files): Add it and tests/signature.h.
9415         (Depends-on): Add ansi-c++-opt.
9416         (Makefile.am): Arrange to compile and run test-unistd-c++.
9417         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9418         gl_MODULE_INDICATOR.
9419
9420         Tests of module 'time' in C++ mode.
9421         * tests/test-time-c++.cc: New file.
9422         * modules/time-tests (Files): Add it and tests/signature.h.
9423         (Depends-on): Add ansi-c++-opt.
9424         (Makefile.am): Arrange to compile and run test-time-c++.
9425         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9426
9427         Tests of module 'sys_time' in C++ mode.
9428         * tests/test-sys_time-c++.cc: New file.
9429         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9430         (Depends-on): Add ansi-c++-opt.
9431         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9432         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9433         gl_MODULE_INDICATOR.
9434
9435         Tests of module 'sys_stat' in C++ mode.
9436         * tests/test-sys_stat-c++.cc: New file.
9437         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9438         (Depends-on): Add ansi-c++-opt.
9439         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9440         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9441         gl_MODULE_INDICATOR.
9442
9443         Tests of module 'sys_socket' in C++ mode.
9444         * tests/test-sys_socket-c++.cc: New file.
9445         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9446         (Depends-on): Add ansi-c++-opt.
9447         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9448         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9449         gl_MODULE_INDICATOR.
9450
9451         Tests of module 'sys_select' in C++ mode.
9452         * tests/test-sys_select-c++.cc: New file.
9453         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9454         (Depends-on): Add ansi-c++-opt.
9455         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9456         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9457         gl_MODULE_INDICATOR.
9458
9459         Tests of module 'sys_ioctl' in C++ mode.
9460         * tests/test-sys_ioctl-c++.cc: New file.
9461         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9462         (Depends-on): Add ansi-c++-opt.
9463         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9464         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9465         gl_MODULE_INDICATOR.
9466
9467         Tests of module 'string' in C++ mode.
9468         * tests/test-string-c++.cc: New file.
9469         * modules/string-tests (Files): Add it and tests/signature.h.
9470         (Depends-on): Add ansi-c++-opt.
9471         (Makefile.am): Arrange to compile and run test-string-c++.
9472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9473         gl_MODULE_INDICATOR.
9474
9475         Tests of module 'stdlib' in C++ mode.
9476         * tests/test-stdlib-c++.cc: New file.
9477         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9478         (Depends-on): Add ansi-c++-opt.
9479         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9480         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9481         gl_MODULE_INDICATOR.
9482
9483         Tests of module 'stdio' in C++ mode.
9484         * tests/test-stdio-c++.cc: New file.
9485         * modules/stdio-tests (Files): Add it and tests/signature.h.
9486         (Depends-on): Add ansi-c++-opt.
9487         (Makefile.am): Arrange to compile and run test-stdio-c++.
9488         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9489         gl_MODULE_INDICATOR.
9490
9491         Tests of module 'spawn' in C++ mode.
9492         * tests/test-spawn-c++.cc: New file.
9493         * modules/spawn-tests (Files): Add it and tests/signature.h.
9494         (Depends-on): Add ansi-c++-opt.
9495         (Makefile.am): Arrange to compile and run test-spawn-c++.
9496         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9497         gl_MODULE_INDICATOR.
9498
9499         Tests of module 'signal' in C++ mode.
9500         * tests/test-signal-c++.cc: New file.
9501         * modules/signal-tests (Files): Add it and tests/signature.h.
9502         (Depends-on): Add ansi-c++-opt.
9503         (Makefile.am): Arrange to compile and run test-signal-c++.
9504         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9505         gl_MODULE_INDICATOR.
9506
9507         Tests of module 'search' in C++ mode.
9508         * tests/test-search-c++.cc: New file.
9509         * modules/search-tests (Files): Add it and tests/signature.h.
9510         (Depends-on): Add ansi-c++-opt.
9511         (Makefile.am): Arrange to compile and run test-search-c++.
9512         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9513         gl_MODULE_INDICATOR.
9514
9515         Tests of module 'math' in C++ mode.
9516         * tests/test-math-c++.cc: New file.
9517         * modules/math-tests (Files): Add it and tests/signature.h.
9518         (Depends-on): Add ansi-c++-opt.
9519         (Makefile.am): Arrange to compile and run test-math-c++.
9520         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9521
9522         Tests of module 'locale' in C++ mode.
9523         * tests/test-locale-c++.cc: New file.
9524         * modules/locale-tests (Files): Add it and tests/signature.h.
9525         (Depends-on): Add ansi-c++-opt.
9526         (Makefile.am): Arrange to compile and run test-locale-c++.
9527         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9528         gl_MODULE_INDICATOR.
9529
9530         Tests of module 'langinfo' in C++ mode.
9531         * tests/test-langinfo-c++.cc: New file.
9532         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9533         (Depends-on): Add ansi-c++-opt.
9534         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9535         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9536         gl_MODULE_INDICATOR.
9537
9538         Tests of module 'iconv-h' in C++ mode.
9539         * tests/test-iconv-h-c++.cc: New file.
9540         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9541         (Depends-on): Add ansi-c++-opt.
9542         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9543
9544         Tests of module 'glob' in C++ mode.
9545         * tests/test-glob-c++.cc: New file.
9546         * modules/glob-tests (Files): Add it.
9547         (Depends-on): Add ansi-c++-opt.
9548         (Makefile.am): Arrange to compile and run test-glob-c++.
9549
9550         Tests of module 'fcntl-h' in C++ mode.
9551         * tests/test-fcntl-h-c++.cc: New file.
9552         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9553         (Depends-on): Add ansi-c++-opt.
9554         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9555         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9556         gl_MODULE_INDICATOR.
9557
9558         Tests of module 'dirent' in C++ mode.
9559         * tests/test-dirent-c++.cc: New file.
9560         * modules/dirent-tests (Files): Add it and tests/signature.h.
9561         (Depends-on): Add ansi-c++-opt.
9562         (Makefile.am): Arrange to compile and run test-dirent-c++.
9563         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9564         gl_MODULE_INDICATOR.
9565
9566         New module 'ansi-c++-opt'.
9567         * modules/ansi-c++-opt: New file.
9568         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9569
9570         Document C++ namespace mode.
9571         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9572
9573         wctype: Avoid #define replacements in C++ mode.
9574         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9575         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9576         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9577         In C++, define a namespaced alias symbol.
9578         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9579         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9580         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9581         rule.
9582
9583         wchar: Avoid #define replacements in C++ mode.
9584         * lib/wchar.in.h: Include c++defs.h.
9585         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9586         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9587         symbol.
9588         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9589         * modules/wchar (Depends-on): Add c++defs.
9590         (Makefile.am): Update wchar.h rule.
9591
9592         unistd: Avoid #define replacements in C++ mode.
9593         * lib/unistd.in.h: Include c++defs.h.
9594         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9595         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9596         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9597         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9598         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9599         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9600         symbol.
9601         (environ): Update.
9602         * modules/unistd (Depends-on): Add c++defs.
9603         (Makefile.am): Update unistd.h rule.
9604
9605         time: Avoid #define replacements in C++ mode.
9606         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9607         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9608         define a namespaced alias symbol.
9609         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9610         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9611         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9612         * modules/time (Depends-on): Add c++defs, warn-on-use.
9613         (Makefile.am): Update time.h rule.
9614         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9615         * modules/nanosleep (configure.ac): Likewise.
9616         * modules/strptime (configure.ac): Likewise.
9617         * modules/timegm (configure.ac): Likewise.
9618
9619         sys_time: Avoid #define replacements in C++ mode.
9620         * lib/sys_time.in.h: Include c++defs.h.
9621         (gettimeofday): In C++, define a namespaced alias symbol.
9622         * modules/sys_time (Depends-on): Add c++defs.
9623         (Makefile.am): Update sys/time.h rule.
9624
9625         sys_stat: Avoid #define replacements in C++ mode.
9626         * lib/sys_stat.in.h: Include c++defs.h.
9627         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9628         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9629         namespaced alias symbol.
9630         In C++, define a namespaced alias symbol.
9631         * modules/sys_stat (Depends-on): Add c++defs.
9632         (Makefile.am): Update sys/stat.h rule.
9633
9634         sys_socket: Avoid #define replacements in C++ mode.
9635         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9636         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9637         definitions also when the system has a <sys/socket.h>.
9638         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9639         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9640         In C++, define a namespaced alias symbol.
9641         * modules/sys_socket (Depends-on): Add c++defs.
9642         (Makefile.am): Update sys/socket.h rule.
9643
9644         sys_select: Avoid #define replacements in C++ mode.
9645         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9646         definitions also when the system has a <sys/select.h>.
9647         (select): In C++, define a namespaced alias symbol.
9648         * modules/sys_select (Depends-on): Add c++defs.
9649         (Makefile.am): Update sys/select.h rule.
9650
9651         sys_ioctl: Avoid #define replacements in C++ mode.
9652         * lib/sys_ioctl.in.h: Include c++defs.h.
9653         (ioctl): In C++, define a namespaced alias symbol.
9654         * modules/sys_ioctl (Depends-on): Add c++defs.
9655         (Makefile.am): Update sys/ioctl.h rule.
9656
9657         string: Avoid #define replacements in C++ mode.
9658         * lib/string.in.h: Include c++defs.h.
9659         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
9660         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9661         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9662         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
9663         strsignal, strverscmp): In C++, define a namespaced alias symbol.
9664         * modules/string (Depends-on): Add c++defs.
9665         (Makefile.am): Update string.h rule.
9666
9667         stdlib: Avoid #define replacements in C++ mode.
9668         * lib/stdlib.in.h: Include c++defs.h.
9669         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
9670         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
9671         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
9672         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
9673         symbol.
9674         * modules/stdlib (Depends-on): Add c++defs.
9675         (Makefile.am): Update stdlib.h rule.
9676
9677         stdio: Avoid #define replacements in C++ mode.
9678         * lib/stdio.in.h: Include c++defs.h.
9679         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
9680         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
9681         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
9682         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
9683         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
9684         namespaced alias symbol.
9685         * modules/stdio (Depends-on): Add c++defs.
9686         (Makefile.am): Update stdio.h rule.
9687
9688         spawn: Avoid #define replacements in C++ mode.
9689         * lib/spawn.in.h: Include c++defs.h.
9690         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9691         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9692         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9693         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9694         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9695         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9696         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9697         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9698         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9699         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9700         In C++, define a namespaced alias symbol.
9701         * modules/spawn (Depends-on): Add c++defs.
9702         (Makefile.am): Update spawn.h rule.
9703
9704         signal: Avoid #define replacements in C++ mode.
9705         * lib/signal.in.h: Include c++defs.h.
9706         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9707         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
9708         namespaced alias symbol.
9709         * modules/signal (Depends-on): Add c++defs.
9710         (Makefile.am): Update signal.h rule.
9711
9712         search: Avoid #define replacements in C++ mode.
9713         * lib/search.in.h: Include c++defs.h.
9714         (_gl_search_compar_fn, _gl_search_action_fn): New types.
9715         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
9716         symbol.
9717         * modules/search (Depends-on): Add c++defs.
9718         (Makefile.am): Update search.h rule.
9719
9720         math: Avoid #define replacements in C++ mode.
9721         * lib/math.in.h: Include c++defs.h.
9722         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
9723         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
9724         trunc, truncl): In C++, define a namespaced alias symbol.
9725         * modules/math (Depends-on): Add c++defs.
9726         (Makefile.am): Update math.h rule.
9727
9728         locale: Avoid #define replacements in C++ mode.
9729         * lib/locale.in.h: Include c++defs.h.
9730         (duplocale): In C++, define a namespaced alias symbol.
9731         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
9732         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
9733         * modules/locale (Depends-on): Add c++defs.
9734         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
9735
9736         langinfo: Avoid #define replacements in C++ mode.
9737         * lib/langinfo.in.h: Include c++defs.h.
9738         (nl_langinfo): In C++, define a namespaced alias symbol.
9739         * modules/langinfo (Depends-on): Add c++defs.
9740         (Makefile.am): Update langinfo.h rule.
9741
9742         iconv-h: Avoid #define replacements in C++ mode.
9743         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
9744         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
9745         symbol.
9746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9747         whenever iconv is present.
9748         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
9749         (Makefile.am): Update iconv.h rule.
9750
9751         glob: Avoid #define replacements in C++ mode.
9752         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
9753         (_gl_glob_errfunc_fn): New type.
9754         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
9755         symbol.
9756         * modules/glob (Depends-on): Add c++defs, warn-on-use.
9757         (Makefile.am): Update glob.h rule.
9758
9759         fcntl-h: Avoid #define replacements in C++ mode.
9760         * lib/fcntl.in.h: Include c++defs.h.
9761         (fcntl, open, openat): In C++, define a namespaced alias symbol.
9762         * modules/fcntl-h (Depends-on): Add c++defs.
9763         (Makefile.am): Update fcntl.h rule.
9764
9765         dirent: Avoid #define replacements in C++ mode.
9766         * lib/dirent.in.h: Include c++defs.h.
9767         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
9768         namespaced alias symbol.
9769         (dirfd): Update declaration.
9770         * modules/dirent (Depends-on): Add c++defs.
9771         (Makefile.am): Update dirent.h rule.
9772
9773         ctype: Make it usable in C++ code.
9774         * lib/ctype.in.h: Include c++defs.h.
9775         (isblank): Declare as extern "C".
9776         * modules/ctype (Depends-on): Add c++defs.
9777         (Makefile.am): Update ctype.h rule.
9778
9779         New module 'c++defs'.
9780         * modules/c++defs: New file.
9781         * build-aux/c++defs.h: New file.
9782         Reported by John W. Eaton <jwe@gnu.org>.
9783
9784 2010-03-07  Bruno Haible  <bruno@clisp.org>
9785
9786         logb: Provide missing declaration for Cygwin.
9787         * lib/math.in.h (logb): New declaration.
9788         * m4/logb.m4: New file.
9789         * modules/logb (Files): Add m4/logb.m4.
9790         (Depends-on): Add math.
9791         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
9792         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
9793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
9794         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
9795         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
9796
9797 2010-03-07  Bruno Haible  <bruno@clisp.org>
9798
9799         Fix test-cond link error.
9800         * tests/test-cond.c: Include <stdio.h>.
9801
9802 2010-03-07  Bruno Haible  <bruno@clisp.org>
9803
9804         Fix test-dirent-safer link error.
9805         * modules/dirent-safer-tests (Makefile.am): Define
9806         test_dirent_safer_LDADD.
9807
9808 2010-03-07  Bruno Haible  <bruno@clisp.org>
9809
9810         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9811         among default module list.
9812
9813 2010-03-07  Bruno Haible  <bruno@clisp.org>
9814
9815         Fix link error on platforms with GNU libiconv.
9816         * modules/unistr/u8-strcoll-tests (Makefile): Define
9817         test_u8_strcoll_LDADD.
9818         * modules/unistr/u16-strcoll-tests (Makefile): Define
9819         test_u16_strcoll_LDADD.
9820         * modules/unistr/u32-strcoll-tests (Makefile): Define
9821         test_u32_strcoll_LDADD.
9822
9823 2010-03-07  Bruno Haible  <bruno@clisp.org>
9824
9825         Use POSIX declarations for socket functions.
9826         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9827         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9828         rpl_sendto): Change declaration to match POSIX.
9829         * lib/connect.c (rpl_connect): Likewise.
9830         * lib/accept.c (rpl_accept): Likewise.
9831         * lib/bind.c (rpl_bind): Likewise.
9832         * lib/getpeername.c (rpl_getpeername): Likewise.
9833         * lib/getsockname.c (rpl_getsockname): Likewise.
9834         * lib/recv.c (rpl_recv): Likewise.
9835         * lib/send.c (rpl_send): Likewise.
9836         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9837         * lib/sendto.c (rpl_sendto): Likewise.
9838
9839 2010-03-06  Bruno Haible  <bruno@clisp.org>
9840
9841         Clarify access, euidaccess, faccessat.
9842         * doc/posix-functions/faccessat.texi: Mention security problem under
9843         "Other problems", not "Portability problems".
9844         * doc/posix-functions/access.texi: Likewise. Mention a related security
9845         problem.
9846         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9847         * lib/euidaccess.c: Add comments about platforms.
9848         * lib/unistd.in.h (access, euidaccess): Add warnings.
9849
9850 2010-03-07  Bruno Haible  <bruno@clisp.org>
9851
9852         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9853         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9854         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9855         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9856         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9857         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9858         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9859         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9860         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9861         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9862         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9863         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9864         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9865         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9866         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9867         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9868         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9869         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9870         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9871         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9872         Likewise.
9873         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9874         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9875         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9876         Likewise.
9877         * tests/test-spawn.c (main): Make it work when
9878         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9879
9880 2010-03-07  Bruno Haible  <bruno@clisp.org>
9881
9882         Fix incorrect Makefile.am generation in German locale.
9883         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9884         Execute sed command with character range in C locale.
9885
9886 2010-03-06  Bruno Haible  <bruno@clisp.org>
9887
9888         Tests for module 'iconv-h'.
9889         * modules/iconv-h-tests: New file.
9890         * tests/test-iconv-h.c: New file.
9891
9892         New module 'iconv-h'.
9893         * modules/iconv-h: New file.
9894         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9895         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9896         (configure.ac): Remove gl_ICONV_H.
9897         (Makefile.am): Remove rule for iconv.h.
9898
9899 2010-03-06  Bruno Haible  <bruno@clisp.org>
9900
9901         More consistent naming of *.m4 files.
9902         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9903         * modules/wctype (Files): Update.
9904
9905         More consistent naming of *.m4 files.
9906         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9907         * modules/wchar (Files): Update.
9908
9909 2010-03-06  Jim Meyering  <meyering@redhat.com>
9910
9911         euidaccess: relax license to LGPLv2+
9912         * modules/euidaccess (License): Relax to LGPLv2+.
9913
9914 2010-03-06  Bruno Haible  <bruno@clisp.org>
9915
9916         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9917         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9918         (Makefile.am): Augment lib_SOURCES instead.
9919
9920 2010-03-04  Jim Meyering  <meyering@redhat.com>
9921
9922         utime: remove obsolete module
9923         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9924         unnecessary for years, and has been marked as obsolete for 10 months.
9925         * modules/utime: Remove file.
9926         * lib/utime.c: Remove file.
9927         * m4/utime.m4: Remove file.
9928         * m4/utimes-null.m4: Remove file.
9929         * doc/posix-functions/utime.texi (utime): Remove reference to
9930         the module.  Move the sole "fixed by gnulib" item into the
9931         "problems not fixed by Gnulib" list.
9932         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9933
9934 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9935
9936         * modules/exit (License): Relax license to LGPLv2+.
9937         (Status): Mark as obsolete.
9938         * NEWS: Mention deprecated 'exit' module.
9939         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9940         of now obsolete 'exit'.
9941
9942 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9943
9944         fts-lgpl: remove unused module
9945         * modules/fts-lgpl: Remove.
9946         * MODULES.html.sh (func_all_modules): Adjust.
9947         * check-module (find_included_lib_files): Adjust.
9948         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9949
9950 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9951
9952         copy-acl: enhance Solaris ACL error handling
9953         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9954         * lib/set-mode-acl.c (qset_acl): Likewise.
9955
9956 2010-03-02  Bruno Haible  <bruno@clisp.org>
9957
9958         spawn: Don't override the system defined values on FreeBSD 8.
9959         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9960         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9961         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9962         if HAVE_POSIX_SPAWN is 1.
9963         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9964
9965 2010-03-01  Bruno Haible  <bruno@clisp.org>
9966
9967         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9968         regarding Automake.
9969
9970 2010-02-25  Bruno Haible  <bruno@clisp.org>
9971
9972         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9973         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9974         setting, not afterwards.
9975         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9976
9977 2010-02-24  Eric Blake  <eblake@redhat.com>
9978
9979         bootstrap, git-version-gen: use timestamp
9980         * build-aux/git-version-gen (scriptversion): Force UTC.
9981         * build-aux/bootstrap (scriptversion): New variable.
9982
9983         bootstrap: allow older git
9984         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9985         older than 1.6.4.  Requested by the libvirt project.
9986
9987 2010-02-23  Eric Blake  <eblake@redhat.com>
9988
9989         warn-on-use: work with old autoconf
9990         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9991         AS_VAR semantics of autoconf 2.60.
9992         Reported by Bruno Haible.
9993
9994         bootstrap: improve some comments
9995         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9996         clarification comments.
9997
9998         gettimeofday: provide correct function
9999         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
10000         when replacement is declared, otherwise provide gettimeofday.
10001         Reported by Michael Goffioul.
10002
10003 2010-02-23  Jim Meyering  <meyering@redhat.com>
10004
10005         lib-ignore: relax license to "unlimited", not LGPLv2+
10006         * modules/lib-ignore (License): Relax to "unlimited".
10007
10008 2010-02-23  Jim Meyering  <meyering@redhat.com>
10009
10010         lib-ignore: relax license to LGPLv2+
10011         * modules/lib-ignore (License): Relax to LGPLv2+.
10012
10013 2010-02-22  Eric Blake  <eblake@redhat.com>
10014
10015         lseek: avoid bash 3.2 broken pipe bug
10016         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
10017         warning from bash 3.2.
10018         Reported by Ben Pfaff, with analysis from Bruno Haible.
10019
10020         bootstrap: support non-FSF copyright holder
10021         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
10022         bootstrap.conf override of COPYRIGHT_HOLDER.
10023         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
10024
10025         bootstrap: interoperate with gettext 0.14.1
10026         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
10027
10028         bootstrap: allow for alternate submodule location
10029         * build-aux/bootstrap (gnulib_path): New variable; use instead of
10030         hardcoding submodule location.
10031         (gnulib_mk): Allow direct use of Makefile.am.
10032
10033         bootstrap: use GNULIB_SRCDIR to reduce disk usage
10034         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
10035         rather than reconfiguring where the submodule points.
10036
10037         gettimeofday: restore support for platforms that lack function
10038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
10039         replacement if function is missing.
10040         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
10041         * modules/sys_time (Makefile.am): Substitute it.
10042         * lib/sys_time.in.h (gettimeofday): Check it.
10043         Reported by Michael Goffioul.
10044
10045 2010-02-21  Bruno Haible  <bruno@clisp.org>
10046
10047         * lib/stdio.in.h (obstack_printf): Fix typo.
10048
10049 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
10050
10051         vc-list-files: use bzr ls's -R option
10052         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
10053         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
10054
10055 2010-02-21  Jim Meyering  <meyering@redhat.com>
10056
10057         init.sh: fix EXEEXT shims to work also for names like test-prog
10058         * tests/init.sh: Re-exec a better shell, when needed.
10059         If the current shell lacks support for posix $(...), an init.sh-using
10060         test will now try to find a shell that supports that.  If EXEEXT is
10061         nonempty, we also require support for hyphen-in-alias-name and shell
10062         substitutions like ${var#glob}.  Failure to find such a shell results
10063         in a skipped test.
10064
10065 2010-02-21  Bruno Haible  <bruno@clisp.org>
10066
10067         Really work around around "broken pipe" error message from bash 3.2.
10068         * gnulib-tool (func_reset_sigpipe): Remove function.
10069         (echo): In bash 3.2, define to a function that uses printf.
10070         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
10071
10072 2010-02-20  Bruno Haible  <bruno@clisp.org>
10073
10074         Restore support for automake 1.9.6 with autoconf 2.61.
10075         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
10076         Reported by James Youngman <jay@gnu.org>.
10077
10078 2010-02-20  Bruno Haible  <bruno@clisp.org>
10079
10080         Improve *printf warning condition.
10081         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
10082         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
10083         and the function is overridden due to SIGPIPE emulation.
10084
10085 2010-02-20  Bruno Haible  <bruno@clisp.org>
10086
10087         * lib/stdio.in.h: Tweak comments.
10088
10089 2010-02-19  Bruno Haible  <bruno@clisp.org>
10090
10091         Make it easier to find modules. New gnulib-tool option '--find'.
10092         * gnulib-tool: New option --find.
10093         (func_usage): Document it.
10094         (func_sanitize_modulelist): New function, extracted from
10095         func_all_modules.
10096         (func_all_modules): Invoke it.
10097         * doc/gnulib-tool.texi (Which modules?): New node.
10098
10099 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
10100
10101         * lib/sys_select.in.h: Provide select replacement even if
10102         sys/select.h exists on a system, for Interix.
10103
10104 2010-02-18  Jim Meyering  <meyering@redhat.com>
10105
10106         init.sh: don't use $(...) just yet
10107         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
10108         to accommodate e.g., Solaris' /bin/sh.
10109
10110 2010-02-17  Bruno Haible  <bruno@clisp.org>
10111
10112         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
10113         Reported by Ludovic Courtès <ludo@gnu.org>.
10114
10115 2010-02-16  Simon Josefsson  <simon@josefsson.org>
10116
10117         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
10118         linking with -lintl.
10119
10120 2010-02-17  Simon Josefsson  <simon@josefsson.org>
10121
10122         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
10123         if not provided by the system's netdb.h.  Reported by
10124         ludo@gnu.org (Ludovic Courtès).
10125
10126 2010-02-15  Jim Meyering  <meyering@redhat.com>
10127
10128         init.sh: improve portability and efficiency
10129         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
10130         "dummy" in a for loop.
10131         Use '!', not '^' to select the complement of a character set used
10132         in a "case" statement.
10133         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
10134         Suggestions from Eric Blake.
10135
10136         init.sh: automatically accommodate programs with the .exe suffix
10137         Automatically arrange for an invocation of "prog" to execute the
10138         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
10139         may use the simpler "prog", yet still work when built on a system
10140         that requires specifying the added suffix.
10141         Do this by constructing a function named "prog" that invokes
10142         "prog.exe" for each .exe file in selected directories.
10143         * tests/init.sh (find_exe_basenames_): New function.
10144         (create_exe_shim_functions_): New function.
10145         (path_prepend_): Use it.
10146
10147         maint.mk: mark syntax-check sc_*.m rules as .PHONY
10148         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
10149         "make -t syntax-check" doesn't create a ton of sc_*.m files.
10150
10151 2010-02-14  Jim Meyering  <meyering@redhat.com>
10152
10153         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
10154         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
10155         (sc_prohibit_hash_pjw_without_use): New rule.
10156
10157         maint.mk: allow the default upload destination dir to be overridden
10158         * top/maint.mk (upload_dest_dir_): Define with a default that
10159         preserves the status quo.
10160         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
10161         Reported by Peter Simons.
10162
10163         maint.mk: prohibit inclusion of "hash.h" without_use
10164         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
10165
10166 2010-02-10  Jim Meyering  <meyering@redhat.com>
10167
10168         maint.mk: prohibit inclusion of "ignore-value.h" without_use
10169         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
10170
10171 2010-02-09  Eric Blake  <ebb9@byu.net>
10172         and Bruno Haible  <bruno@clisp.org>
10173
10174         obstack-printf-posix: ensure declaration
10175         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
10176         extracted from gl_FUNC_OBSTACK_PRINTF.
10177         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
10178         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
10179         Likewise.
10180         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
10181         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
10182         0.
10183
10184 2010-02-08  Bruno Haible  <bruno@clisp.org>
10185
10186         gnulib-tool: Fix typo in 2010-02-07 commit.
10187         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
10188         Reported by Eric Blake.
10189
10190 2010-02-07  Bruno Haible  <bruno@clisp.org>
10191
10192         gnulib-tool: Fix up caching patches.
10193         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
10194         option --no-cache. Use associative arrays when supported by the shell.
10195         (sed_comments): New variable.
10196         (modcache): Renamed from do_cache.
10197         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
10198         abbreviate unnecessarily.
10199         (have_associative): New variable.
10200         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
10201         way also for ksh and zsh.
10202         (func_init_sed_convert_to_cache_statements): New function, extracted
10203         from func_cache_lookup_module. Add support for associative arrays.
10204         Don't set the c_MODULE_cached variable here. Ignore all lines before
10205         the first field header. Remove only the final newline, not all trailing
10206         newlines. Support empty fields correctly. Limit the use of 'eval' to
10207         assignments.
10208         (func_get_description, func_get_status, func_get_notice,
10209         func_get_applicability, func_get_filelist, func_get_dependencies,
10210         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
10211         func_get_automake_snippet, func_get_include_directive,
10212         func_get_link_directive, func_get_license, func_get_maintainer):
10213         Update documentation. List the unoptimized code first. Add support for
10214         associative arrays. Limit the use of 'eval' to assignments.
10215         (func_get_applicability): Undo stylistic pessimisations.
10216         (func_get_automake_snippet, func_get_include_directive): Reduce code
10217         duplication.
10218         (func_modules_transitive_closure, func_modules_add_dummy,
10219         func_modules_notice, func_modules_to_filelist, func_add_file,
10220         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
10221         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
10222         func_create_testdir, func_create_megatestdir): Update documentation.
10223
10224 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10225
10226         * gnulib-tool (func_cache_lookup_module): Store the module name
10227         belonging to the cache variable; error out if two different
10228         module names map to the same cache variable name.
10229
10230 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10231
10232         gnulib-tool: Make caching optional.
10233         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
10234         Update matching short versions of --no-changelog.
10235         (func_usage): Update.
10236         (sed_extract_cache_prog): Renamed from ...
10237         (sed_extract_prog): ... this; revert to old extraction script.
10238         (func_get_description, func_get_status)
10239         (func_get_notice, func_get_applicability, func_get_filelist)
10240         (func_get_dependencies, func_get_autoconf_early_snippet)
10241         (func_get_autoconf_snippet, func_get_automake_snippet)
10242         (func_get_include_directive, func_get_link_directive)
10243         (func_get_license, func_get_maintainer): If $do_cache is false,
10244         use old, non-caching extraction scripts.
10245         Suggestion by Bruno Haible.
10246
10247 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10248
10249         gnulib-tool: cache module metainformation.
10250         * gnulib-tool (sed_extract_prog): Match newline before each
10251         header, and rewrite header to a shell variable suffix.
10252         (func_cache_var, func_cache_lookup_module): New functions,
10253         to turn a module name into a cache variable prefix, and to
10254         look up and cache module metainformation.
10255         (func_get_description, func_get_status)
10256         (func_get_notice, func_get_applicability, func_get_filelist)
10257         (func_get_dependencies, func_get_autoconf_early_snippet)
10258         (func_get_autoconf_snippet, func_get_automake_snippet)
10259         (func_get_include_directive, func_get_link_directive)
10260         (func_get_license, func_get_maintainer): Use
10261         func_cache_lookup_module.
10262
10263 2010-02-07  Bruno Haible  <bruno@clisp.org>
10264
10265         fnctl: Fix missing dependency.
10266         * modules/fcntl (Depends-on): Add getdtablesize.
10267         Reported by John W. Eaton <jwe@gnu.org>.
10268
10269 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10270
10271         Argp: fix recognition of short alias options.
10272
10273         * lib/argp-parse.c (convert_options): Fix improper use of
10274         `|' between character values.
10275         * tests/test-argp.c (group1_option): New alias option
10276         --read (-r).
10277         (group1_parser): Special handling for 'r'.
10278         (test15): New test case.
10279         (test_fun): Add test15.
10280         * tests/test-argp-2.sh: Update expected --help and --usage
10281         outputs.
10282
10283 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10284
10285         * tests/test-argp.c: Fix indentation.
10286
10287 2010-02-04  Eric Blake  <ebb9@byu.net>
10288
10289         gettimeofday: expose type of second argument
10290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
10291         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
10292         * tests/test-gettimeofday.c: Use it to silence warning.
10293         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
10294         the issue.
10295
10296 2010-02-03  Jim Meyering  <meyering@redhat.com>
10297
10298         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
10299         * lib/regcomp.c (TYPE_SIGNED): Define.
10300         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
10301
10302         regcomp.c: avoid a new -Wshadow warning
10303         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
10304
10305 2010-02-01  Jim Meyering  <meyering@redhat.com>
10306
10307         removing useless parentheses in cpp #define directives
10308         For motivation, see commit c0221df4, "define STREQ(a,b)
10309         consistently, removing useless parentheses"
10310         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
10311         * lib/mountlist.c (MNT_IGNORE): Likewise.
10312         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
10313
10314 2010-02-01  Eric Blake  <ebb9@byu.net>
10315
10316         sys_time: use link-warning
10317         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
10318         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
10319         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
10320         * modules/sys_time (Depends-on): Add warn-on-use.
10321         (Makefile.am): Always build replacement.
10322         (configure.ac): Update substitutions.
10323         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
10324         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
10325         bother with SYS_TIME_H.
10326         * modules/gettimeofday (configure.ac): Declare indicator.
10327         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
10328         in use.
10329
10330         closein-tests: silence compiler warning
10331         * tests/test-closein.c (main): Ignore fread result.
10332         * modules/closein-tests (Depends-on): Add ignore-value.
10333
10334         tests: silence warning about system return
10335         * tests/test-areadlink-with-size.c (main): Ignore system result.
10336         * tests/test-areadlink.c (main): Likewise.
10337         * tests/test-areadlinkat-with-size.c (main): Likewise.
10338         * tests/test-areadlinkat.c (main): Likewise.
10339         * tests/test-canonicalize-lgpl.c (main): Likewise.
10340         * tests/test-canonicalize.c (main): Likewise.
10341         * tests/test-chown.c (main): Likewise.
10342         * tests/test-fchownat.c (main): Likewise.
10343         * tests/test-fdutimensat.c (main): Likewise.
10344         * tests/test-fstatat.c (main): Likewise.
10345         * tests/test-futimens.c (main): Likewise.
10346         * tests/test-lchown.c (main): Likewise.
10347         * tests/test-link.c (main): Likewise.
10348         * tests/test-linkat.c (main): Likewise.
10349         * tests/test-lstat.c (main): Likewise.
10350         * tests/test-mkdir.c (main): Likewise.
10351         * tests/test-mkdirat.c (main): Likewise.
10352         * tests/test-mkfifo.c (main): Likewise.
10353         * tests/test-mkfifoat.c (main): Likewise.
10354         * tests/test-mknod.c (main): Likewise.
10355         * tests/test-readlink.c (main): Likewise.
10356         * tests/test-remove.c (main): Likewise.
10357         * tests/test-rename.c (main): Likewise.
10358         * tests/test-renameat.c (main): Likewise.
10359         * tests/test-rmdir.c (main): Likewise.
10360         * tests/test-symlink.c (main): Likewise.
10361         * tests/test-symlinkat.c (main): Likewise.
10362         * tests/test-unlink.c (main): Likewise.
10363         * tests/test-unlinkat.c (main): Likewise.
10364         * tests/test-utimens.c (main): Likewise.
10365         * tests/test-utimensat.c (main): Likewise.
10366         * modules/areadlink-tests (Depends-on): Add ignore-value.
10367         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10368         * modules/areadlinkat-tests (Depends-on): Likewise.
10369         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10370         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10371         * modules/canonicalize-tests (Depends-on): Likewise.
10372         * modules/chown-tests (Depends-on): Likewise.
10373         * modules/fdutimensat-tests (Depends-on): Likewise.
10374         * modules/futimens-tests (Depends-on): Likewise.
10375         * modules/lchown-tests (Depends-on): Likewise.
10376         * modules/link-tests (Depends-on): Likewise.
10377         * modules/linkat-tests (Depends-on): Likewise.
10378         * modules/lstat-tests (Depends-on): Likewise.
10379         * modules/mkdir-tests (Depends-on): Likewise.
10380         * modules/mkfifo-tests (Depends-on): Likewise.
10381         * modules/mkfifoat-tests (Depends-on): Likewise.
10382         * modules/mknod-tests (Depends-on): Likewise.
10383         * modules/openat-tests (Depends-on): Likewise.
10384         * modules/readlink-tests (Depends-on): Likewise.
10385         * modules/remove-tests (Depends-on): Likewise.
10386         * modules/rename-tests (Depends-on): Likewise.
10387         * modules/renameat-tests (Depends-on): Likewise.
10388         * modules/rmdir-tests (Depends-on): Likewise.
10389         * modules/symlink-tests (Depends-on): Likewise.
10390         * modules/symlinkat-tests (Depends-on): Likewise.
10391         * modules/unlink-tests (Depends-on): Likewise.
10392         * modules/utimens-tests (Depends-on): Likewise.
10393         * modules/utimensat-tests (Depends-on): Likewise.
10394
10395 2010-01-31  Bruno Haible  <bruno@clisp.org>
10396
10397         Perform the same test for many <math.h> functions.
10398         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10399         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10400         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10401         of gl_MATHFUNC.
10402         * modules/acos (configure.ac): Likewise.
10403         * modules/asin (configure.ac): Likewise.
10404         * modules/atan (configure.ac): Likewise.
10405         * modules/atan2 (configure.ac): Likewise.
10406         * modules/cbrt (configure.ac): Likewise.
10407         * modules/copysign (configure.ac): Likewise.
10408         * modules/cos (configure.ac): Likewise.
10409         * modules/cosh (configure.ac): Likewise.
10410         * modules/erf (configure.ac): Likewise.
10411         * modules/erfc (configure.ac): Likewise.
10412         * modules/exp (configure.ac): Likewise.
10413         * modules/fmod (configure.ac): Likewise.
10414         * modules/hypot (configure.ac): Likewise.
10415         * modules/j0 (configure.ac): Likewise.
10416         * modules/j1 (configure.ac): Likewise.
10417         * modules/jn (configure.ac): Likewise.
10418         * modules/lgamma (configure.ac): Likewise.
10419         * modules/log (configure.ac): Likewise.
10420         * modules/log10 (configure.ac): Likewise.
10421         * modules/log1p (configure.ac): Likewise.
10422         * modules/pow (configure.ac): Likewise.
10423         * modules/remainder (configure.ac): Likewise.
10424         * modules/sin (configure.ac): Likewise.
10425         * modules/sinh (configure.ac): Likewise.
10426         * modules/tan (configure.ac): Likewise.
10427         * modules/tanh (configure.ac): Likewise.
10428         * modules/y0 (configure.ac): Likewise.
10429         * modules/y1 (configure.ac): Likewise.
10430         * modules/yn (configure.ac): Likewise.
10431         Suggested by Paolo Bonzini.
10432
10433 2010-01-31  Bruno Haible  <bruno@clisp.org>
10434
10435         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10436
10437 2010-01-31  Bruno Haible  <bruno@clisp.org>
10438
10439         Work around getdelim() bug on FreeBSD 8.0.
10440         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10441         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10442         not work.
10443         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10444         is 1.
10445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10446         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10447         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10448         a non-zero size.
10449         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10450
10451 2010-01-31  Bruno Haible  <bruno@clisp.org>
10452
10453         Work around getline() bug on FreeBSD 8.0.
10454         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10455         and a non-zero size.
10456         * tests/test-getline.c (main): Likewise.
10457         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10458         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10459
10460 2010-01-28  Eric Blake  <ebb9@byu.net>
10461
10462         regex: fix build failure
10463         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10464         platforms.
10465
10466 2010-01-28  Jim Meyering  <meyering@redhat.com>
10467
10468         regex: do not ignore memory allocation failure
10469         * lib/regex_internal.c (create_cd_newstate): Detect
10470         re_node_set_init_copy failure.   Extracted from glibc commit
10471         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10472
10473         regex: sync more white-space changes from libc
10474         * lib/regex_internal.c: White-space only changes.
10475         * lib/regexec.c: Likewise.
10476
10477         regex: add many uses of __attribute_warn_unused_result__
10478         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10479         * lib/regexec.c: Likewise.
10480         Extracted from a messy glibc commit.
10481
10482         regcomp.c: spelling and merge-artifact from glibc
10483         * lib/regcomp.c: Merge remainder of glibc's
10484         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10485
10486         regcomp.c: sync white-space changes from glibc
10487         * lib/regcomp.c: Merge to accommodate white space
10488         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10489
10490         regcomp.c: do not ignore internal return values
10491         * lib/regcomp.c: Do not ignore internal return values.
10492         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10493         but without its white-space changes and spelling fixes.
10494
10495         regex_internal.h: define __attribute_warn_unused_result__
10496         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10497
10498         maint: add a syntax-check rule to check for vulnerable Makefile.in
10499         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10500
10501 2010-01-27  Jim Meyering  <meyering@redhat.com>
10502
10503         ncftpput-ftp: clean up spaces
10504         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10505         Remove trailing blanks.
10506
10507 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10508
10509         * build-aux/git-version-gen: Fix copyright statement.
10510         * build-aux/gnupload: Likewise.
10511         * tests/test-arcfour.c: Likewise.
10512         * tests/test-arctwo.c: Likewise.
10513         * tests/test-count-one-bits.c: Likewise.
10514         * tests/test-crc.c: Likewise.
10515         * tests/test-des.c: Likewise.
10516         * tests/test-gc-arcfour.c: Likewise.
10517         * tests/test-gc-arctwo.c: Likewise.
10518         * tests/test-gc-des.c: Likewise.
10519         * tests/test-gc-hmac-md5.c: Likewise.
10520         * tests/test-gc-hmac-sha1.c: Likewise.
10521         * tests/test-gc-md2.c: Likewise.
10522         * tests/test-gc-md4.c: Likewise.
10523         * tests/test-gc-md5.c: Likewise.
10524         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10525         * tests/test-gc-rijndael.c: Likewise.
10526         * tests/test-gc-sha1.c: Likewise.
10527         * tests/test-gc.c: Likewise.
10528         * tests/test-gethostname.c: Likewise.
10529         * tests/test-gettimeofday.c: Likewise.
10530         * tests/test-hash.c: Likewise.
10531         * tests/test-hmac-md5.c: Likewise.
10532         * tests/test-hmac-sha1.c: Likewise.
10533         * tests/test-md2.c: Likewise.
10534         * tests/test-md4.c: Likewise.
10535         * tests/test-md5.c: Likewise.
10536         * tests/test-memchr.c: Likewise.
10537         * tests/test-memchr2.c: Likewise.
10538         * tests/test-memcmp.c: Likewise.
10539         * tests/test-memmem.c: Likewise.
10540         * tests/test-memrchr.c: Likewise.
10541         * tests/test-rawmemchr.c: Likewise.
10542         * tests/test-read-file.c: Likewise.
10543         * tests/test-rijndael.c: Likewise.
10544         * tests/test-sockets.c: Likewise.
10545         * tests/test-strchrnul.c: Likewise.
10546         * tests/test-strstr.c: Likewise.
10547         * tests/test-strtod.c: Likewise.
10548         * build-aux/ncftpput-ftp: Likewise.
10549
10550 2010-01-26  Eric Blake  <ebb9@byu.net>
10551
10552         ignore-value: update recommended header name
10553         * modules/ignore-value (Include): Only use <> for headers that
10554         exist in glibc.
10555
10556 2010-01-26  Jim Meyering  <meyering@redhat.com>
10557
10558         test-userspec.c: avoid compiler warnings
10559         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10560         and "initialization discards qualifiers..." warnings.
10561         Put the first "uid" in its own scope, and make char* members "const".
10562
10563 2010-01-25  Bruno Haible  <bruno@clisp.org>
10564
10565         gnulib-tool: Make warning diagnostics consistent.
10566         * gnulib-tool (func_warning): New function.
10567         Use it everywhere where gnulib-tool produces output to stderr and it is
10568         not a fatal error.
10569
10570 2010-01-25  Bruno Haible  <bruno@clisp.org>
10571
10572         Fix test dependencies.
10573         * modules/xstrtol-tests (Depends-on): Add inttypes.
10574         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10575
10576 2010-01-25 Pádraig Brady <P@draigBrady.com>
10577
10578         syntax-check: detect incorrect boolean macro values in config.h
10579         * modules/maintainer-makefile (configure.ac): Parameterize the location
10580         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10581         The logic is from Eric Blake and the location indicated by Jim Meyering.
10582         Note the more natural CONFIG_HEADER name is prohibited by automake
10583         for backwards compatibility reasons.
10584         * top/maint.mk (sc_Wundef_boolean): New rule.
10585
10586 2010-01-25  Jim Meyering  <meyering@redhat.com>
10587
10588         bootstrap: detect MacOS 10.6's shasum, too
10589         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10590         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10591
10592 2010-01-23  Jim Meyering  <meyering@redhat.com>
10593
10594         xstrtoll: new module
10595         * modules/xstrtoll: New file.
10596         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10597         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10598         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10599         ./configure fails if you use this module and lack "long long".
10600         * modules/xstrtoll-tests: New module.
10601         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10602         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10603         new init.sh-based test framework.
10604
10605 2010-01-24  Bruno Haible  <bruno@clisp.org>
10606
10607         Tests for module 'yn'.
10608         * modules/yn-tests: New file.
10609         * tests/test-yn.c: New file.
10610
10611         Tests for module 'y1'.
10612         * modules/y1-tests: New file.
10613         * tests/test-y1.c: New file.
10614
10615         Tests for module 'y0'.
10616         * modules/y0-tests: New file.
10617         * tests/test-y0.c: New file.
10618
10619         Tests for module 'tanh'.
10620         * modules/tanh-tests: New file.
10621         * tests/test-tanh.c: New file.
10622
10623         Tests for module 'tan'.
10624         * modules/tan-tests: New file.
10625         * tests/test-tan.c: New file.
10626
10627         Tests for module 'sqrt'.
10628         * modules/sqrt-tests: New file.
10629         * tests/test-sqrt.c: New file.
10630
10631         Tests for module 'sinh'.
10632         * modules/sinh-tests: New file.
10633         * tests/test-sinh.c: New file.
10634
10635         Tests for module 'sin'.
10636         * modules/sin-tests: New file.
10637         * tests/test-sin.c: New file.
10638
10639         Tests for module 'rint'.
10640         * modules/rint-tests: New file.
10641         * tests/test-rint.c: New file.
10642
10643         Tests for module 'remainder'.
10644         * modules/remainder-tests: New file.
10645         * tests/test-remainder.c: New file.
10646
10647         Tests for module 'pow'.
10648         * modules/pow-tests: New file.
10649         * tests/test-pow.c: New file.
10650
10651         Tests for module 'nextafter'.
10652         * modules/nextafter-tests: New file.
10653         * tests/test-nextafter.c: New file.
10654
10655         Tests for module 'modf'.
10656         * modules/modf-tests: New file.
10657         * tests/test-modf.c: New file.
10658
10659         Tests for module 'logb'.
10660         * modules/logb-tests: New file.
10661         * tests/test-logb.c: New file.
10662
10663         Tests for module 'log1p'.
10664         * modules/log1p-tests: New file.
10665         * tests/test-log1p.c: New file.
10666
10667         Tests for module 'log10'.
10668         * modules/log10-tests: New file.
10669         * tests/test-log10.c: New file.
10670
10671         Tests for module 'log'.
10672         * modules/log-tests: New file.
10673         * tests/test-log.c: New file.
10674
10675         Tests for module 'lgamma'.
10676         * modules/lgamma-tests: New file.
10677         * tests/test-lgamma.c: New file.
10678
10679         Tests for module 'ldexp'.
10680         * modules/ldexp-tests: New file.
10681         * tests/test-ldexp.c: New file.
10682
10683         Tests for module 'jn'.
10684         * modules/jn-tests: New file.
10685         * tests/test-jn.c: New file.
10686
10687         Tests for module 'j1'.
10688         * modules/j1-tests: New file.
10689         * tests/test-j1.c: New file.
10690
10691         Tests for module 'j0'.
10692         * modules/j0-tests: New file.
10693         * tests/test-j0.c: New file.
10694
10695         Tests for module 'hypot'.
10696         * modules/hypot-tests: New file.
10697         * tests/test-hypot.c: New file.
10698
10699         Tests for module 'fmod'.
10700         * modules/fmod-tests: New file.
10701         * tests/test-fmod.c: New file.
10702
10703         Tests for module 'fabs'.
10704         * modules/fabs-tests: New file.
10705         * tests/test-fabs.c: New file.
10706
10707         Tests for module 'exp'.
10708         * modules/exp-tests: New file.
10709         * tests/test-exp.c: New file.
10710
10711         Tests for module 'erfc'.
10712         * modules/erfc-tests: New file.
10713         * tests/test-erfc.c: New file.
10714
10715         Tests for module 'erf'.
10716         * modules/erf-tests: New file.
10717         * tests/test-erf.c: New file.
10718
10719         Tests for module 'cosh'.
10720         * modules/cosh-tests: New file.
10721         * tests/test-cosh.c: New file.
10722
10723         Tests for module 'cos'.
10724         * modules/cos-tests: New file.
10725         * tests/test-cos.c: New file.
10726
10727         Tests for module 'copysign'.
10728         * modules/copysign-tests: New file.
10729         * tests/test-copysign.c: New file.
10730
10731         Tests for module 'cbrt'.
10732         * modules/cbrt-tests: New file.
10733         * tests/test-cbrt.c: New file.
10734
10735         Tests for module 'atan2'.
10736         * modules/atan2-tests: New file.
10737         * tests/test-atan2.c: New file.
10738
10739         Tests for module 'atan'.
10740         * modules/atan-tests: New file.
10741         * tests/test-atan.c: New file.
10742
10743         Tests for module 'asin'.
10744         * modules/asin-tests: New file.
10745         * tests/test-asin.c: New file.
10746
10747         Tests for module 'acos'.
10748         * modules/acos-tests: New file.
10749         * tests/test-acos.c: New file.
10750
10751 2010-01-24  Bruno Haible  <bruno@clisp.org>
10752
10753         Fix tests for common <math.h> functions.
10754         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
10755         code snippet that references the function pointer, rather than merely
10756         calling the function. Substitute the FUNC_LIBM variable.
10757         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
10758         * modules/acos (configure.ac): Likewise.
10759         * modules/asin (configure.ac): Likewise.
10760         * modules/atan (configure.ac): Likewise.
10761         * modules/atan2 (configure.ac): Likewise.
10762         * modules/cbrt (configure.ac): Likewise.
10763         * modules/copysign (configure.ac): Likewise.
10764         * modules/cos (configure.ac): Likewise.
10765         * modules/cosh (configure.ac): Likewise.
10766         * modules/erf (configure.ac): Likewise.
10767         * modules/erfc (configure.ac): Likewise.
10768         * modules/exp (configure.ac): Likewise.
10769         * modules/fabs (configure.ac): Likewise.
10770         * modules/fmod (configure.ac): Likewise.
10771         * modules/hypot (configure.ac): Likewise.
10772         * modules/j0 (configure.ac): Likewise.
10773         * modules/j1 (configure.ac): Likewise.
10774         * modules/jn (configure.ac): Likewise.
10775         * modules/ldexp (configure.ac): Likewise.
10776         * modules/lgamma (configure.ac): Likewise.
10777         * modules/log (configure.ac): Likewise.
10778         * modules/log10 (configure.ac): Likewise.
10779         * modules/log1p (configure.ac): Likewise.
10780         * modules/logb (configure.ac): Likewise.
10781         * modules/modf (configure.ac): Likewise.
10782         * modules/nextafter (configure.ac): Likewise.
10783         * modules/pow (configure.ac): Likewise.
10784         * modules/remainder (configure.ac): Likewise.
10785         * modules/rint (configure.ac): Likewise.
10786         * modules/sin (configure.ac): Likewise.
10787         * modules/sinh (configure.ac): Likewise.
10788         * modules/tan (configure.ac): Likewise.
10789         * modules/tanh (configure.ac): Likewise.
10790         * modules/y0 (configure.ac): Likewise.
10791         * modules/y1 (configure.ac): Likewise.
10792         * modules/yn (configure.ac): Likewise.
10793
10794 2010-01-24  Bruno Haible  <bruno@clisp.org>
10795
10796         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
10797         * tests/test-acosl.c (x): New variable.
10798         (main): Store argument in x and fetch it from x.
10799         * tests/test-asinl.c (x): New variable.
10800         (main): Store argument in x and fetch it from x.
10801         * tests/test-atanl.c (x): New variable.
10802         (main): Store argument in x and fetch it from x.
10803         * tests/test-cosl.c (x): New variable.
10804         (main): Store argument in x and fetch it from x.
10805         * tests/test-expl.c (x): New variable.
10806         (main): Store argument in x and fetch it from x.
10807         * tests/test-logl.c (x): New variable.
10808         (main): Store argument in x and fetch it from x.
10809         * tests/test-sinl.c (x): New variable.
10810         (main): Store argument in x and fetch it from x.
10811         * tests/test-sqrtl.c (x): New variable.
10812         (main): Store argument in x and fetch it from x.
10813         * tests/test-tanl.c (x): New variable.
10814         (main): Store argument in x and fetch it from x.
10815
10816 2010-01-24  Bruno Haible  <bruno@clisp.org>
10817
10818         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10819         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10820         assignments to the initial TESTS_ENVIRONMENT.
10821         * doc/gnulib.texi (Unit test modules): Document it.
10822         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10823         TESTS_ENVIRONMENT.
10824         * modules/btowc-tests (Makefile.am): Likewise.
10825         * modules/c-stack-tests (Makefile.am): Likewise.
10826         * modules/c-strcase-tests (Makefile.am): Likewise.
10827         * modules/copy-file-tests (Makefile.am): Likewise.
10828         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10829         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10830         * modules/mbrtowc-tests (Makefile.am): Likewise.
10831         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10832         * modules/mbscasestr-tests (Makefile.am): Likewise.
10833         * modules/mbschr-tests (Makefile.am): Likewise.
10834         * modules/mbscspn-tests (Makefile.am): Likewise.
10835         * modules/mbsinit-tests (Makefile.am): Likewise.
10836         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10837         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10838         * modules/mbspbrk-tests (Makefile.am): Likewise.
10839         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10840         * modules/mbsrchr-tests (Makefile.am): Likewise.
10841         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10842         * modules/mbsspn-tests (Makefile.am): Likewise.
10843         * modules/mbsstr-tests (Makefile.am): Likewise.
10844         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10845         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10846         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10847         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10848         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10849         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10850         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10851         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10852         * modules/wcrtomb-tests (Makefile.am): Likewise.
10853         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10854         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10855         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10856         assignments from TESTS_ENVIRONMENT.
10857         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10858         augmentation.
10859         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10860         * modules/atexit-tests (Makefile.am): Likewise.
10861         * modules/binary-io-tests (Makefile.am): Likewise.
10862         * modules/closein-tests (Makefile.am): Likewise.
10863         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10864         * modules/exclude-tests (Makefile.am): Likewise.
10865         * modules/fflush-tests (Makefile.am): Likewise.
10866         * modules/fpending-tests (Makefile.am): Likewise.
10867         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10868         * modules/freadahead-tests (Makefile.am): Likewise.
10869         * modules/freadptr-tests (Makefile.am): Likewise.
10870         * modules/freadseek-tests (Makefile.am): Likewise.
10871         * modules/fseek-tests (Makefile.am): Likewise.
10872         * modules/fseeko-tests (Makefile.am): Likewise.
10873         * modules/ftell-tests (Makefile.am): Likewise.
10874         * modules/ftello-tests (Makefile.am): Likewise.
10875         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10876         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10877         * modules/lseek-tests (Makefile.am): Likewise.
10878         * modules/parse-duration-tests (Makefile.am): Likewise.
10879         * modules/perror-tests (Makefile.am): Likewise.
10880         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10881         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10882         * modules/pipe-tests (Makefile.am): Likewise.
10883         * modules/pread-tests (Makefile.am): Likewise.
10884         * modules/printf-posix-tests (Makefile.am): Likewise.
10885         * modules/select-tests (Makefile.am): Likewise.
10886         * modules/sigpipe-tests (Makefile.am): Likewise.
10887         * modules/tsearch-tests (Makefile.am): Likewise.
10888         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10889         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10890         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10891         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10892         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10893         * modules/version-etc-tests (Makefile.am): Likewise.
10894         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10895         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10896         * modules/xalloc-die-tests (Makefile.am): Likewise.
10897         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10898         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10899         * modules/xstrtol-tests (Makefile.am): Likewise.
10900         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10901         * modules/yesno-tests (Makefile.am): Likewise.
10902         Suggested by Jim Meyering.
10903
10904 2010-01-24  Bruno Haible  <bruno@clisp.org>
10905
10906         More documentation.
10907         * doc/gnulib.texi (Writing modules): New chapter.
10908         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10909         the new chapter.
10910
10911 2010-01-24  Jim Meyering  <meyering@redhat.com>
10912
10913         maint.mk: do not prepend "./" after filtering
10914         * top/maint.mk (_prepend_srcdir_prefix): New variable
10915         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10916         "./" when $(srcdir) is ".".
10917
10918         define STREQ(a,b) consistently, removing useless parentheses
10919         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10920         since the only risk is that "a" or "b" contains an unparenthesized
10921         comma, but if either did that, STREQ would have 3 or more arguments.
10922         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10923         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10924         * lib/hash-triple.c (STREQ): Likewise.
10925         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10926         * lib/getugroups.c (STREQ): Likewise.
10927
10928 2010-01-23  Jim Meyering  <meyering@redhat.com>
10929
10930         maint.mk: fix syntax-check in a non-srcdir build directory
10931         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10932         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10933
10934 2010-01-22  Jim Meyering  <meyering@redhat.com>
10935
10936         userspec: add unit tests
10937         * tests/test-userspec.c: New file.
10938         * modules/userspec-tests: Likewise.
10939
10940 2010-01-21  Jim Meyering  <meyering@redhat.com>
10941
10942         maint.mk: handle source file names containing "." robustly
10943         * top/maint.mk (_dot_escaped_srcdir): Define.
10944         (VC_LIST): Use it in LHS of sed substitution.
10945
10946 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10947
10948         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10949         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10950         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10951         from a non-srcdir build.
10952
10953 2010-01-20  Eric Blake  <ebb9@byu.net>
10954
10955         warn-on-use: use instead of link-warning
10956         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10957         * modules/unistd (Depends-on, Makefile.am): Likewise.
10958         * modules/arpa_inet (Depends-on): Replace link-warning with
10959         warn-on-use.
10960         (Makefile.am): Update rules accordingly.
10961         * modules/ctype (Depends-on, Makefile.am): Likewise.
10962         * modules/dirent (Depends-on, Makefile.am): Likewise.
10963         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10964         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10965         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10966         * modules/locale (Depends-on, Makefile.am): Likewise.
10967         * modules/math (Depends-on, Makefile.am): Likewise.
10968         * modules/search (Depends-on, Makefile.am): Likewise.
10969         * modules/signal (Depends-on, Makefile.am): Likewise.
10970         * modules/spawn (Depends-on, Makefile.am): Likewise.
10971         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10972         * modules/string (Depends-on, Makefile.am): Likewise.
10973         * modules/strings (Depends-on, Makefile.am): Likewise.
10974         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10975         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10976         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10977         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10978         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10979         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10980         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10981         * modules/wchar (Depends-on, Makefile.am): Likewise.
10982         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10983         should be poisoned.
10984         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10985         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10986         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10987         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10988         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10989         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10990         * m4/math_h.m4 (gl_MATH_H): Likewise.
10991         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10992         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10993         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10994         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10995         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10996         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10997         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10998         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10999         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11000         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11001         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11002         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11003         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11004         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11005         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11006         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11007         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
11008         GL_LINK_WARNING.
11009         * lib/ctype.in.h: Likewise.
11010         * lib/dirent.in.h: Likewise.
11011         * lib/fcntl.in.h: Likewise.
11012         * lib/inttypes.in.h: Likewise.
11013         * lib/langinfo.in.h: Likewise.
11014         * lib/locale.in.h: Likewise.
11015         * lib/math.in.h: Likewise.
11016         * lib/search.in.h: Likewise.
11017         * lib/signal.in.h: Likewise.
11018         * lib/spawn.in.h: Likewise.
11019         * lib/stdio.in.h: Likewise.
11020         * lib/stdlib.in.h: Likewise.
11021         * lib/string.in.h: Likewise.
11022         * lib/strings.in.h: Likewise.
11023         * lib/sys_file.in.h: Likewise.
11024         * lib/sys_ioctl.in.h: Likewise.
11025         * lib/sys_select.in.h: Likewise.
11026         * lib/sys_socket.in.h: Likewise.
11027         * lib/sys_stat.in.h: Likewise.
11028         * lib/sys_times.in.h: Likewise.
11029         * lib/sys_utsname.in.h: Likewise.
11030         * lib/unistd.in.h: Likewise.
11031         * lib/wchar.in.h: Likewise.
11032
11033 2010-01-20  Bruno Haible  <bruno@clisp.org>
11034
11035         Avoid duplicate -lm.
11036         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
11037         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
11038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
11039         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
11040         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
11041         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
11042         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
11043         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
11044         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
11045         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
11046         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
11047         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11048         Reported by Paolo Bonzini.
11049
11050 2010-01-19  Bruno Haible  <bruno@clisp.org>
11051
11052         langinfo, nl_langinfo: Relicense under LGPLv2+.
11053         * modules/langinfo (License): Change to LGPLv2+.
11054         * modules/nl_langinfo (License): Likewise.
11055         Patch by David Lutterkort <lutter@redhat.com>.
11056
11057 2010-01-19  Bruno Haible  <bruno@clisp.org>
11058
11059         Avoid compilation error with cc on OSF/1 5.1.
11060         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
11061         statement, not before.
11062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11063
11064 2010-01-18  Bruno Haible  <bruno@clisp.org>
11065
11066         Avoid a link error due to the __printf__ symbol.
11067         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
11068         and 2.6.x.
11069         (__format__, __printf__): Remove definitions.
11070         * lib/argp-fmtstream.h: Likewise.
11071         * lib/argp.h: Likewise.
11072         * lib/error.h: Likewise.
11073         * lib/vasnprintf.h: Likewise.
11074         * lib/xprintf.h: Likewise.
11075         * lib/xvasprintf.h: Likewise.
11076         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11077
11078 2010-01-18  Bruno Haible  <bruno@clisp.org>
11079
11080         Tests for module 'tanl'.
11081         * modules/tanl-tests: New file.
11082         * tests/test-tanl.c: New file.
11083
11084         Tests for module 'sqrtl'.
11085         * modules/sqrtl-tests: New file.
11086         * tests/test-sqrtl.c: New file.
11087
11088         Tests for module 'sinl'.
11089         * modules/sinl-tests: New file.
11090         * tests/test-sinl.c: New file.
11091
11092         Tests for module 'logl'.
11093         * modules/logl-tests: New file.
11094         * tests/test-logl.c: New file.
11095
11096         Tests for module 'expl'.
11097         * modules/expl-tests: New file.
11098         * tests/test-expl.c: New file.
11099
11100         Tests for module 'cosl'.
11101         * modules/cosl-tests: New file.
11102         * tests/test-cosl.c: New file.
11103
11104         Tests for module 'atanl'.
11105         * modules/atanl-tests: New file.
11106         * tests/test-atanl.c: New file.
11107
11108         Tests for module 'asinl'.
11109         * modules/asinl-tests: New file.
11110         * tests/test-asinl.c: New file.
11111
11112         Tests for module 'acosl'.
11113         * modules/acosl-tests: New file.
11114         * tests/test-acosl.c: New file.
11115
11116         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
11117         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
11118         tanl): Use the standard gnulib idiom.
11119         * lib/cosl.c: Don't include trigl.c and sincosl.c.
11120         * lib/sinl.c: Likewise.
11121         * lib/tanl.c: Don't include trigl.c.
11122         (kernel_tanl): Make static.
11123         * lib/sincosl.c: Include trigl.h first.
11124         * lib/trigl.c: Likewise.
11125         * m4/acosl.m4: New file.
11126         * m4/asinl.m4: New file.
11127         * m4/atanl.m4: New file.
11128         * m4/cosl.m4: New file.
11129         * m4/expl.m4: New file.
11130         * m4/logl.m4: New file.
11131         * m4/sinl.m4: New file.
11132         * m4/sqrtl.m4: New file.
11133         * m4/tanl.m4: New file.
11134         * m4/mathl.m4: Remove file.
11135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
11136         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
11137         Don't initialize GNULIB_MATHL.
11138         * modules/acosl: New file.
11139         * modules/asinl: New file.
11140         * modules/atanl: New file.
11141         * modules/cosl: New file.
11142         * modules/expl: New file.
11143         * modules/logl: New file.
11144         * modules/sinl: New file.
11145         * modules/sqrtl: New file.
11146         * modules/tanl: New file.
11147         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
11148         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
11149         substitute GNULIB_MATHL.
11150         * modules/mathl: Rewritten.
11151         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
11152         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
11153         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
11154         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
11155         * doc/posix-functions/expl.texi: Mention the 'expl' module.
11156         * doc/posix-functions/logl.texi: Mention the 'logl' module.
11157         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
11158         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
11159         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
11160
11161 2010-01-18  Bruno Haible  <bruno@clisp.org>
11162
11163         sqrt: Make gl_FUNC_SQRT requirable.
11164         * m4/sqrt.m4: New file.
11165         * modules/sqrt (Files): Add it.
11166         (configure.ac): Invoke gl_FUNC_SQRT.
11167
11168 2010-01-18  Bruno Haible  <bruno@clisp.org>
11169
11170         New modules for common <math.h> functions.
11171         * m4/mathfunc.m4: New file.
11172         * modules/acos: New file.
11173         * modules/asin: New file.
11174         * modules/atan: New file.
11175         * modules/atan2: New file.
11176         * modules/cbrt: New file.
11177         * modules/copysign: New file.
11178         * modules/cos: New file.
11179         * modules/cosh: New file.
11180         * modules/erf: New file.
11181         * modules/erfc: New file.
11182         * modules/exp: New file.
11183         * modules/fabs: New file.
11184         * modules/fmod: New file.
11185         * modules/hypot: New file.
11186         * modules/j0: New file.
11187         * modules/j1: New file.
11188         * modules/jn: New file.
11189         * modules/ldexp: New file.
11190         * modules/lgamma: New file.
11191         * modules/log: New file.
11192         * modules/log10: New file.
11193         * modules/log1p: New file.
11194         * modules/logb: New file.
11195         * modules/modf: New file.
11196         * modules/nextafter: New file.
11197         * modules/pow: New file.
11198         * modules/remainder: New file.
11199         * modules/rint: New file.
11200         * modules/sin: New file.
11201         * modules/sinh: New file.
11202         * modules/sqrt: New file.
11203         * modules/tan: New file.
11204         * modules/tanh: New file.
11205         * modules/y0: New file.
11206         * modules/y1: New file.
11207         * modules/yn: New file.
11208         * doc/posix-functions/acos.texi: Mention the 'acos' module.
11209         * doc/posix-functions/asin.texi: Mention the 'asin' module.
11210         * doc/posix-functions/atan.texi: Mention the 'atan' module.
11211         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
11212         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
11213         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
11214         * doc/posix-functions/cos.texi: Mention the 'cos' module.
11215         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
11216         * doc/posix-functions/erf.texi: Mention the 'erf' module.
11217         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
11218         * doc/posix-functions/exp.texi: Mention the 'exp' module.
11219         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
11220         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
11221         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
11222         * doc/posix-functions/j0.texi: Mention the 'j0' module.
11223         * doc/posix-functions/j1.texi: Mention the 'j1' module.
11224         * doc/posix-functions/jn.texi: Mention the 'jn' module.
11225         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
11226         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
11227         * doc/posix-functions/log.texi: Mention the 'log' module.
11228         * doc/posix-functions/log10.texi: Mention the 'log10' module.
11229         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
11230         * doc/posix-functions/logb.texi: Mention the 'logb' module.
11231         * doc/posix-functions/modf.texi: Mention the 'modf' module.
11232         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
11233         * doc/posix-functions/pow.texi: Mention the 'pow' module.
11234         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
11235         * doc/posix-functions/rint.texi: Mention the 'rint' module.
11236         * doc/posix-functions/sin.texi: Mention the 'sin' module.
11237         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
11238         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
11239         * doc/posix-functions/tan.texi: Mention the 'tan' module.
11240         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
11241         * doc/posix-functions/y0.texi: Mention the 'y0' module.
11242         * doc/posix-functions/y1.texi: Mention the 'y1' module.
11243         * doc/posix-functions/yn.texi: Mention the 'yn' module.
11244
11245 2010-01-18  Jim Meyering  <meyering@redhat.com>
11246
11247         ignore-value: relax license to LGPLv2+
11248         * modules/ignore-value (License): Relax to LGPLv2+.
11249
11250         getdate: don't leak when TZ contains two or more '"'s
11251         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
11252         double quote in TZ after the first one.
11253
11254         readtokens: do not leak internal token_lengths buffer
11255         * lib/readtokens.c (readtokens): Free the local, lengths,
11256         when the supplied "token_lengths" parameter is NULL.
11257
11258 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11259
11260         Fix a couple of missing LIBTHREAD link failures on AIX.
11261         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
11262         $(LIBTHREAD).
11263         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
11264
11265         Link test-poll against INET_PTON_LIB.
11266         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
11267         for inet_pton on Solaris 10.
11268
11269 2010-01-17  Bruno Haible  <bruno@clisp.org>
11270
11271         unistdio/*-sprintf: Fix typo in module description.
11272         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
11273         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
11274         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
11275         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
11276         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
11277         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
11278         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
11279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11280
11281 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11282
11283         gnulib-tool: fix filelist for AIX, HP-UX ksh.
11284         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
11285         variables in shell case patterns, for AIX and HP-UX ksh.
11286
11287         Split large sed scripts, for HP-UX sed.
11288         * modules/stdio: Split sed scripts around 50 sed commands,
11289         to avoid HP-UX limit of 99 commands, in the near future.
11290         * modules/string: Likewise.
11291         * modules/unistd: Likewise.
11292
11293         gnulib-tool: avoid writing in the current directory.
11294         * gnulib-tool (func_emit_lib_Makefile_am)
11295         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
11296         not in the current directory, so concurrent gnulib-tool
11297         instances do not interfere.
11298
11299 2010-01-16  Jim Meyering  <meyering@redhat.com>
11300
11301         doc: update users.txt
11302         * users.txt: Add grep.
11303         (diffutils, gzip): Update URLs.
11304
11305 2010-01-12  Bruno Haible  <bruno@clisp.org>
11306
11307         posix_spawn: Avoid test failure on Cygwin.
11308         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
11309         characters.
11310         Reported by Simon Josefsson.
11311
11312 2010-01-12  Bruno Haible  <bruno@clisp.org>
11313
11314         * tests/test-cond.c (main): When skipping the test, show the reason.
11315
11316 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11317
11318         * lib/striconv.c (str_cd_iconv): Avoid if before free.
11319
11320 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11321
11322         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
11323         VC_LIST_ALWAYS_EXCLUDE_REGEX.
11324
11325 2010-01-12  Eric Blake  <ebb9@byu.net>
11326
11327         build: guarantee AS_VAR_IF
11328         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
11329         (gl_AS_VAR_IF): Move...
11330         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
11331         Reported by Simon Josefsson.
11332
11333 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11334
11335         * lib/stdio.in.h: Fix typo.
11336
11337 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11338
11339         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
11340         libgpg-error.
11341
11342 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11343
11344         * tests/test-xalloc-die.sh: Use $EXEEXT.
11345
11346 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11347             Bruno Haible  <bruno@clisp.org>
11348
11349         getlogin, getlogin_r: Avoid test failure.
11350         * tests/test-getlogin.c: Include <stdio.h>.
11351         (main): Skip the test when the function fails because stdin is not a
11352         tty.
11353         * tests/test-getlogin_r.c: Include <stdio.h>.
11354         (main): Skip the test when the function fails because stdin is not a
11355         tty.
11356
11357 2010-01-11  Eric Blake  <ebb9@byu.net>
11358
11359         tests: avoid more large file warnings
11360         * tests/test-fflush.c: Avoid warning about ftell use.
11361         * tests/test-fseek.c: Avoid warning about fseek use.
11362
11363 2010-01-10  Bruno Haible  <bruno@clisp.org>
11364
11365         nproc: Work better on Linux when /proc and /sys are not mounted.
11366         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11367         as lower bound when, on glibc/Linux systems,
11368         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11369         Suggested by Pádraig Brady <P@draigbrady.com>.
11370         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11371
11372         nproc: Refactor.
11373         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11374         extracted from num_processors.
11375         (num_processors): Call it.
11376
11377 2010-01-11  Jim Meyering  <meyering@redhat.com>
11378
11379         utimecmp: avoid new warning from upcoming gcc-4.5.0
11380         * lib/utimecmp.c (BILLION): Define using #define rather than an
11381         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11382
11383 2010-01-11  Eric Blake  <ebb9@byu.net>
11384
11385         math: add portability warnings for classification macros
11386         * modules/math (Depends-on): Add warn-on-use.
11387         (Makefile.am): Provide new substitutions.
11388         * m4/math_h.m4 (gl_MATH_H): Require inline.
11389         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11390         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11391         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11392         implement warnings.
11393
11394         unistd: warn on use of environ without module
11395         * modules/unistd (Depends-on): Add warn-on-use.
11396         (Makefile.am): Provide new substitutions.
11397         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11398         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11399
11400         stdio: warn on suspicious uses
11401         * modules/stdio (Depends-on): Add warn-on-use.
11402         (Makefile.am): Provide new substitutions.
11403         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11404         fseeko.
11405         * lib/stdio.in.h (gets): Always warn on use.
11406         (fseek, ftell): Adjust when warnings are issued, and honor
11407         _GL_NO_LARGE_FILES as a way to silence the warning.
11408         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11409         any warning about large file offsets.
11410         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11411         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11412         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11413         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11414         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11415         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11416         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11417         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11418
11419         warn-on-use: new module
11420         * modules/warn-on-use: New file.
11421         * build-aux/warn-on-use.h: Likewise.
11422         * m4/warn-on-use.m4: Likewise.
11423         * MODULES.html.sh (Support for building): Mention it.
11424
11425 2010-01-10  Bruno Haible  <bruno@clisp.org>
11426
11427         Tests for module 'unistr/u32-strdup'.
11428         * modules/unistr/u32-strdup-tests: New file.
11429         * tests/unistr/test-u32-strdup.c: New file.
11430
11431         Tests for module 'unistr/u16-strdup'.
11432         * modules/unistr/u16-strdup-tests: New file.
11433         * tests/unistr/test-u16-strdup.c: New file.
11434
11435         Tests for module 'unistr/u8-strdup'.
11436         * modules/unistr/u8-strdup-tests: New file.
11437         * tests/unistr/test-u8-strdup.c: New file.
11438         * tests/unistr/test-strdup.h: New file.
11439
11440         Tests for module 'unistr/u32-strncmp'.
11441         * modules/unistr/u32-strncmp-tests: New file.
11442         * tests/unistr/test-u32-strncmp.c: New file.
11443
11444         Tests for module 'unistr/u16-strncmp'.
11445         * modules/unistr/u16-strncmp-tests: New file.
11446         * tests/unistr/test-u16-strncmp.c: New file.
11447
11448         Tests for module 'unistr/u8-strncmp'.
11449         * modules/unistr/u8-strncmp-tests: New file.
11450         * tests/unistr/test-u8-strncmp.c: New file.
11451         * tests/unistr/test-strncmp.h: New file.
11452
11453         Tests for module 'unistr/u32-strcoll'.
11454         * modules/unistr/u32-strcoll-tests: New file.
11455         * tests/unistr/test-u32-strcoll.c: New file.
11456
11457         Tests for module 'unistr/u16-strcoll'.
11458         * modules/unistr/u16-strcoll-tests: New file.
11459         * tests/unistr/test-u16-strcoll.c: New file.
11460
11461         Tests for module 'unistr/u8-strcoll'.
11462         * modules/unistr/u8-strcoll-tests: New file.
11463         * tests/unistr/test-u8-strcoll.c: New file.
11464
11465         Tests for module 'unistr/u32-strcmp'.
11466         * modules/unistr/u32-strcmp-tests: New file.
11467         * tests/unistr/test-u32-strcmp.c: New file.
11468         * tests/unistr/test-u32-strcmp.h: New file.
11469
11470         Tests for module 'unistr/u16-strcmp'.
11471         * modules/unistr/u16-strcmp-tests: New file.
11472         * tests/unistr/test-u16-strcmp.c: New file.
11473         * tests/unistr/test-u16-strcmp.h: New file.
11474
11475         Tests for module 'unistr/u8-strcmp'.
11476         * modules/unistr/u8-strcmp-tests: New file.
11477         * tests/unistr/test-u8-strcmp.c: New file.
11478         * tests/unistr/test-u8-strcmp.h: New file.
11479         * tests/unistr/test-strcmp.h: New file.
11480
11481         Tests for module 'unistr/u32-strncat'.
11482         * modules/unistr/u32-strncat-tests: New file.
11483         * tests/unistr/test-u32-strncat.c: New file.
11484
11485         Tests for module 'unistr/u16-strncat'.
11486         * modules/unistr/u16-strncat-tests: New file.
11487         * tests/unistr/test-u16-strncat.c: New file.
11488
11489         Tests for module 'unistr/u8-strncat'.
11490         * modules/unistr/u8-strncat-tests: New file.
11491         * tests/unistr/test-u8-strncat.c: New file.
11492         * tests/unistr/test-strncat.h: New file.
11493
11494         Tests for module 'unistr/u32-strcat'.
11495         * modules/unistr/u32-strcat-tests: New file.
11496         * tests/unistr/test-u32-strcat.c: New file.
11497
11498         Tests for module 'unistr/u16-strcat'.
11499         * modules/unistr/u16-strcat-tests: New file.
11500         * tests/unistr/test-u16-strcat.c: New file.
11501
11502         Tests for module 'unistr/u8-strcat'.
11503         * modules/unistr/u8-strcat-tests: New file.
11504         * tests/unistr/test-u8-strcat.c: New file.
11505         * tests/unistr/test-strcat.h: New file.
11506
11507         Tests for module 'unistr/u32-stpncpy'.
11508         * modules/unistr/u32-stpncpy-tests: New file.
11509         * tests/unistr/test-u32-stpncpy.c: New file.
11510
11511         Tests for module 'unistr/u16-stpncpy'.
11512         * modules/unistr/u16-stpncpy-tests: New file.
11513         * tests/unistr/test-u16-stpncpy.c: New file.
11514
11515         Tests for module 'unistr/u8-stpncpy'.
11516         * modules/unistr/u8-stpncpy-tests: New file.
11517         * tests/unistr/test-u8-stpncpy.c: New file.
11518         * tests/unistr/test-stpncpy.h: New file.
11519
11520         Tests for module 'unistr/u32-strncpy'.
11521         * modules/unistr/u32-strncpy-tests: New file.
11522         * tests/unistr/test-u32-strncpy.c: New file.
11523
11524         Tests for module 'unistr/u16-strncpy'.
11525         * modules/unistr/u16-strncpy-tests: New file.
11526         * tests/unistr/test-u16-strncpy.c: New file.
11527
11528         Tests for module 'unistr/u8-strncpy'.
11529         * modules/unistr/u8-strncpy-tests: New file.
11530         * tests/unistr/test-u8-strncpy.c: New file.
11531         * tests/unistr/test-strncpy.h: New file.
11532
11533         Tests for module 'unistr/u32-stpcpy'.
11534         * modules/unistr/u32-stpcpy-tests: New file.
11535         * tests/unistr/test-u32-stpcpy.c: New file.
11536
11537         Tests for module 'unistr/u16-stpcpy'.
11538         * modules/unistr/u16-stpcpy-tests: New file.
11539         * tests/unistr/test-u16-stpcpy.c: New file.
11540
11541         Tests for module 'unistr/u8-stpcpy'.
11542         * modules/unistr/u8-stpcpy-tests: New file.
11543         * tests/unistr/test-u8-stpcpy.c: New file.
11544         * tests/unistr/test-stpcpy.h: New file.
11545
11546         Tests for module 'unistr/u32-strcpy'.
11547         * modules/unistr/u32-strcpy-tests: New file.
11548         * tests/unistr/test-u32-strcpy.c: New file.
11549
11550         Tests for module 'unistr/u16-strcpy'.
11551         * modules/unistr/u16-strcpy-tests: New file.
11552         * tests/unistr/test-u16-strcpy.c: New file.
11553
11554         Tests for module 'unistr/u8-strcpy'.
11555         * modules/unistr/u8-strcpy-tests: New file.
11556         * tests/unistr/test-u8-strcpy.c: New file.
11557         * tests/unistr/test-strcpy.h: New file.
11558
11559         Tests for module 'unistr/u32-strnlen'.
11560         * modules/unistr/u32-strnlen-tests: New file.
11561         * tests/unistr/test-u32-strnlen.c: New file.
11562
11563         Tests for module 'unistr/u16-strnlen'.
11564         * modules/unistr/u16-strnlen-tests: New file.
11565         * tests/unistr/test-u16-strnlen.c: New file.
11566
11567         Tests for module 'unistr/u8-strnlen'.
11568         * modules/unistr/u8-strnlen-tests: New file.
11569         * tests/unistr/test-u8-strnlen.c: New file.
11570         * tests/unistr/test-strnlen.h: New file.
11571
11572         Tests for module 'unistr/u32-strlen'.
11573         * modules/unistr/u32-strlen-tests: New file.
11574         * tests/unistr/test-u32-strlen.c: New file.
11575
11576         Tests for module 'unistr/u16-strlen'.
11577         * modules/unistr/u16-strlen-tests: New file.
11578         * tests/unistr/test-u16-strlen.c: New file.
11579
11580         Tests for module 'unistr/u8-strlen'.
11581         * modules/unistr/u8-strlen-tests: New file.
11582         * tests/unistr/test-u8-strlen.c: New file.
11583
11584         Tests for module 'unistr/u32-prev'.
11585         * modules/unistr/u32-prev-tests: New file.
11586         * tests/unistr/test-u32-prev.c: New file.
11587
11588         Tests for module 'unistr/u16-prev'.
11589         * modules/unistr/u16-prev-tests: New file.
11590         * tests/unistr/test-u16-prev.c: New file.
11591
11592         Tests for module 'unistr/u8-prev'.
11593         * modules/unistr/u8-prev-tests: New file.
11594         * tests/unistr/test-u8-prev.c: New file.
11595
11596         Tests for module 'unistr/u32-next'.
11597         * modules/unistr/u32-next-tests: New file.
11598         * tests/unistr/test-u32-next.c: New file.
11599
11600         Tests for module 'unistr/u16-next'.
11601         * modules/unistr/u16-next-tests: New file.
11602         * tests/unistr/test-u16-next.c: New file.
11603
11604         Tests for module 'unistr/u8-next'.
11605         * modules/unistr/u8-next-tests: New file.
11606         * tests/unistr/test-u8-next.c: New file.
11607
11608         Tests for module 'unistr/u32-strmbtouc'.
11609         * modules/unistr/u32-strmbtouc-tests: New file.
11610         * tests/unistr/test-u32-strmbtouc.c: New file.
11611
11612         Tests for module 'unistr/u16-strmbtouc'.
11613         * modules/unistr/u16-strmbtouc-tests: New file.
11614         * tests/unistr/test-u16-strmbtouc.c: New file.
11615
11616         Tests for module 'unistr/u8-strmbtouc'.
11617         * modules/unistr/u8-strmbtouc-tests: New file.
11618         * tests/unistr/test-u8-strmbtouc.c: New file.
11619
11620         Tests for module 'unistr/u32-strmblen'.
11621         * modules/unistr/u32-strmblen-tests: New file.
11622         * tests/unistr/test-u32-strmblen.c: New file.
11623
11624         Tests for module 'unistr/u16-strmblen'.
11625         * modules/unistr/u16-strmblen-tests: New file.
11626         * tests/unistr/test-u16-strmblen.c: New file.
11627
11628         Tests for module 'unistr/u8-strmblen'.
11629         * modules/unistr/u8-strmblen-tests: New file.
11630         * tests/unistr/test-u8-strmblen.c: New file.
11631
11632         Tests for module 'unistr/u32-cpy-alloc'.
11633         * modules/unistr/u32-cpy-alloc-tests: New file.
11634         * tests/unistr/test-u32-cpy-alloc.c: New file.
11635
11636         Tests for module 'unistr/u16-cpy-alloc'.
11637         * modules/unistr/u16-cpy-alloc-tests: New file.
11638         * tests/unistr/test-u16-cpy-alloc.c: New file.
11639
11640         Tests for module 'unistr/u8-cpy-alloc'.
11641         * modules/unistr/u8-cpy-alloc-tests: New file.
11642         * tests/unistr/test-u8-cpy-alloc.c: New file.
11643         * tests/unistr/test-cpy-alloc.h: New file.
11644
11645         Tests for module 'unistr/u32-mbsnlen'.
11646         * modules/unistr/u32-mbsnlen-tests: New file.
11647         * tests/unistr/test-u32-mbsnlen.c: New file.
11648
11649         Tests for module 'unistr/u16-mbsnlen'.
11650         * modules/unistr/u16-mbsnlen-tests: New file.
11651         * tests/unistr/test-u16-mbsnlen.c: New file.
11652
11653         Tests for module 'unistr/u8-mbsnlen'.
11654         * modules/unistr/u8-mbsnlen-tests: New file.
11655         * tests/unistr/test-u8-mbsnlen.c: New file.
11656
11657         Tests for module 'unistr/u32-chr'.
11658         * modules/unistr/u32-chr-tests: New file.
11659         * tests/unistr/test-u32-chr.c: New file.
11660
11661         Tests for module 'unistr/u16-chr'.
11662         * modules/unistr/u16-chr-tests: New file.
11663         * tests/unistr/test-u16-chr.c: New file.
11664
11665         Tests for module 'unistr/u8-chr'.
11666         * modules/unistr/u8-chr-tests: New file.
11667         * tests/unistr/test-u8-chr.c: New file.
11668         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11669
11670         Tests for module 'unistr/u32-cmp2'.
11671         * modules/unistr/u32-cmp2-tests: New file.
11672         * tests/unistr/test-u32-cmp2.c: New file.
11673
11674         Tests for module 'unistr/u16-cmp2'.
11675         * modules/unistr/u16-cmp2-tests: New file.
11676         * tests/unistr/test-u16-cmp2.c: New file.
11677
11678         Tests for module 'unistr/u8-cmp2'.
11679         * modules/unistr/u8-cmp2-tests: New file.
11680         * tests/unistr/test-u8-cmp2.c: New file.
11681         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
11682
11683         Tests for module 'unistr/u32-cmp'.
11684         * modules/unistr/u32-cmp-tests: New file.
11685         * tests/unistr/test-u32-cmp.c: New file.
11686
11687         Tests for module 'unistr/u16-cmp'.
11688         * modules/unistr/u16-cmp-tests: New file.
11689         * tests/unistr/test-u16-cmp.c: New file.
11690
11691         Tests for module 'unistr/u8-cmp'.
11692         * modules/unistr/u8-cmp-tests: New file.
11693         * tests/unistr/test-u8-cmp.c: New file.
11694         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
11695
11696         Tests for module 'unistr/u32-set'.
11697         * modules/unistr/u32-set-tests: New file.
11698         * tests/unistr/test-u32-set.c: New file.
11699
11700         Tests for module 'unistr/u16-set'.
11701         * modules/unistr/u16-set-tests: New file.
11702         * tests/unistr/test-u16-set.c: New file.
11703
11704         Tests for module 'unistr/u8-set'.
11705         * modules/unistr/u8-set-tests: New file.
11706         * tests/unistr/test-u8-set.c: New file.
11707         * tests/unistr/test-set.h: New file.
11708
11709         Tests for module 'unistr/u32-move'.
11710         * modules/unistr/u32-move-tests: New file.
11711         * tests/unistr/test-u32-move.c: New file.
11712
11713         Tests for module 'unistr/u16-move'.
11714         * modules/unistr/u16-move-tests: New file.
11715         * tests/unistr/test-u16-move.c: New file.
11716
11717         Tests for module 'unistr/u8-move'.
11718         * modules/unistr/u8-move-tests: New file.
11719         * tests/unistr/test-u8-move.c: New file.
11720         * tests/unistr/test-move.h: New file.
11721
11722         Tests for module 'unistr/u32-cpy'.
11723         * modules/unistr/u32-cpy-tests: New file.
11724         * tests/unistr/test-u32-cpy.c: New file.
11725
11726         Tests for module 'unistr/u16-cpy'.
11727         * modules/unistr/u16-cpy-tests: New file.
11728         * tests/unistr/test-u16-cpy.c: New file.
11729
11730         Tests for module 'unistr/u8-cpy'.
11731         * modules/unistr/u8-cpy-tests: New file.
11732         * tests/unistr/test-u8-cpy.c: New file.
11733         * tests/unistr/test-cpy.h: New file.
11734
11735 2010-01-09  Bruno Haible  <bruno@clisp.org>
11736
11737         Tests for module 'unistr/u32-uctomb'.
11738         * modules/unistr/u32-uctomb-tests: New file.
11739         * tests/unistr/test-u32-uctomb.c: New file.
11740
11741         Tests for module 'unistr/u16-uctomb'.
11742         * modules/unistr/u16-uctomb-tests: New file.
11743         * tests/unistr/test-u16-uctomb.c: New file.
11744
11745         Tests for module 'unistr/u8-uctomb'.
11746         * modules/unistr/u8-uctomb-tests: New file.
11747         * tests/unistr/test-u8-uctomb.c: New file.
11748
11749         Tests for module 'unistr/u32-mbtoucr'.
11750         * modules/unistr/u32-mbtoucr-tests: New file.
11751         * tests/unistr/test-u32-mbtoucr.c: New file.
11752
11753         Tests for module 'unistr/u16-mbtoucr'.
11754         * modules/unistr/u16-mbtoucr-tests: New file.
11755         * tests/unistr/test-u16-mbtoucr.c: New file.
11756
11757         Tests for module 'unistr/u8-mbtoucr'.
11758         * modules/unistr/u8-mbtoucr-tests: New file.
11759         * tests/unistr/test-u8-mbtoucr.c: New file.
11760
11761         Tests for module 'unistr/u32-mbtouc'.
11762         * modules/unistr/u32-mbtouc-tests: New file.
11763         * tests/unistr/test-u32-mbtouc.c: New file.
11764
11765         Tests for module 'unistr/u16-mbtouc'.
11766         * modules/unistr/u16-mbtouc-tests: New file.
11767         * tests/unistr/test-u16-mbtouc.c: New file.
11768
11769         Tests for module 'unistr/u8-mbtouc'.
11770         * modules/unistr/u8-mbtouc-tests: New file.
11771         * tests/unistr/test-u8-mbtouc.c: New file.
11772
11773         Tests for module 'unistr/u32-mbtouc-unsafe'.
11774         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
11775         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
11776         * tests/unistr/test-u32-mbtouc.h: New file.
11777
11778         Tests for module 'unistr/u16-mbtouc-unsafe'.
11779         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
11780         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
11781         * tests/unistr/test-u16-mbtouc.h: New file.
11782
11783         Tests for module 'unistr/u8-mbtouc-unsafe'.
11784         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
11785         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
11786         * tests/unistr/test-u8-mbtouc.h: New file.
11787
11788         Tests for module 'unistr/u32-mblen'.
11789         * modules/unistr/u32-mblen-tests: New file.
11790         * tests/unistr/test-u32-mblen.c: New file.
11791
11792         Tests for module 'unistr/u16-mblen'.
11793         * modules/unistr/u16-mblen-tests: New file.
11794         * tests/unistr/test-u16-mblen.c: New file.
11795
11796         Tests for module 'unistr/u8-mblen'.
11797         * modules/unistr/u8-mblen-tests: New file.
11798         * tests/unistr/test-u8-mblen.c: New file.
11799
11800         Tests for module 'unistr/u32-to-u16'.
11801         * modules/unistr/u32-to-u16-tests: New file.
11802         * tests/unistr/test-u32-to-u16.c: New file.
11803
11804         Tests for module 'unistr/u32-to-u8'.
11805         * modules/unistr/u32-to-u8-tests: New file.
11806         * tests/unistr/test-u32-to-u8.c: New file.
11807
11808         Tests for module 'unistr/u16-to-u32'.
11809         * modules/unistr/u16-to-u32-tests: New file.
11810         * tests/unistr/test-u16-to-u32.c: New file.
11811
11812         Tests for module 'unistr/u16-to-u8'.
11813         * modules/unistr/u16-to-u8-tests: New file.
11814         * tests/unistr/test-u16-to-u8.c: New file.
11815
11816         Tests for module 'unistr/u8-to-u32'.
11817         * modules/unistr/u8-to-u32-tests: New file.
11818         * tests/unistr/test-u8-to-u32.c: New file.
11819
11820         Tests for module 'unistr/u8-to-u16'.
11821         * modules/unistr/u8-to-u16-tests: New file.
11822         * tests/unistr/test-u8-to-u16.c: New file.
11823
11824         Tests for module 'unistr/u32-check'.
11825         * modules/unistr/u32-check-tests: New file.
11826         * tests/unistr/test-u32-check.c: New file.
11827
11828         Tests for module 'unistr/u16-check'.
11829         * modules/unistr/u16-check-tests: New file.
11830         * tests/unistr/test-u16-check.c: New file.
11831
11832         Tests for module 'unistr/u8-check'.
11833         * modules/unistr/u8-check-tests: New file.
11834         * tests/unistr/test-u8-check.c: New file.
11835
11836         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11837         (category_equals): New function.
11838         (main): Add more tests.
11839         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11840
11841         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11842
11843 2010-01-10  Bruno Haible  <bruno@clisp.org>
11844
11845         unistr/u*-strcoll: Try harder to distinguish different strings.
11846         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11847         compare s1 and s2 to see if they are different.
11848
11849 2010-01-10  Bruno Haible  <bruno@clisp.org>
11850
11851         unistr/u*-stpncpy: Fix the return value.
11852         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11853         description of the return value consistent with stpncpy in glibc.
11854         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11855         written non-NUL unit.
11856
11857 2010-01-10  Bruno Haible  <bruno@clisp.org>
11858
11859         unistr/u*-next: Add missing dependencies.
11860         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11861         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11862         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11863
11864 2010-01-10  Bruno Haible  <bruno@clisp.org>
11865
11866         unistr/u8-mbsnlen: Fix return value for incomplete character.
11867         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11868         u8_mblen.
11869         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11870         Remove unistr/u8-mblen.
11871         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11872         u16_mblen.
11873         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11874         Remove unistr/u16-mblen.
11875
11876 2010-01-10  Bruno Haible  <bruno@clisp.org>
11877
11878         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11879         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11880         Reported by Brian Gough <bjg@gnu.org> and
11881         Chris Clayton <chris2553@googlemail.com> via
11882         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11883
11884 2010-01-09  Bruno Haible  <bruno@clisp.org>
11885
11886         unistr/u16-to-u32: Reject invalid input.
11887         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11888         u16_mbtouc.
11889         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11890         Remove unistr/u16-mbtouc.
11891
11892         unistr/u16-to-u8: Reject invalid input.
11893         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11894         u16_mbtouc.
11895         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11896         Remove unistr/u16-mbtouc.
11897
11898         unistr/u8-to-u32: Reject invalid input.
11899         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11900         u8_mbtouc.
11901         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11902         Remove unistr/u8-mbtouc.
11903
11904         unistr/u8-to-u16: Reject invalid input.
11905         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11906         u8_mbtouc.
11907         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11908         Remove unistr/u8-mbtouc.
11909
11910 2010-01-09  Bruno Haible  <bruno@clisp.org>
11911
11912         Tests for module 'getlogin'.
11913         * modules/getlogin-tests: New file.
11914         * tests/test-getlogin.c: New file.
11915
11916         New module 'getlogin'.
11917         * lib/unistd.in.h (getlogin): New declaration.
11918         * lib/getlogin.c: New file.
11919         * m4/getlogin.m4: New file.
11920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11921         HAVE_GETLOGIN.
11922         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11923         HAVE_GETLOGIN.
11924         * modules/getlogin: New file.
11925         * doc/posix-functions/getlogin.texi: Mention the new module.
11926         Reported by John W. Eaton <jwe@gnu.org>.
11927
11928 2010-01-09  Bruno Haible  <bruno@clisp.org>
11929
11930         getlogin_r: Support for native Windows.
11931         * lib/getlogin_r.c: Include <windows.h>
11932         (getlogin_r): Implement for native Windows.
11933         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11934         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11935         via John W. Eaton <jwe@gnu.org>.
11936
11937 2010-01-09  Bruno Haible  <bruno@clisp.org>
11938
11939         getlogin_r: Small fixes.
11940         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11941         succeeds.
11942         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11943         before testing whether getlogin_r is declared. No need to set
11944         HAVE_DECL_GETLOGIN_R to 1.
11945         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11946
11947 2010-01-09  Bruno Haible  <bruno@clisp.org>
11948
11949         * lib/unistd.in.h (getlogin_r): Add comment.
11950
11951 2010-01-09  Bruno Haible  <bruno@clisp.org>
11952
11953         Tests for module 'getlogin_r'.
11954         * modules/getlogin_r-tests: New file.
11955         * tests/test-getlogin_r.c: New file.
11956
11957 2010-01-09  Jim Meyering  <meyering@redhat.com>
11958
11959         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11960         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11961         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11962
11963 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11964
11965         * lib/dup2.c (rpl_dup2): Improve comment.
11966
11967 2010-01-08  Eric Blake  <ebb9@byu.net>
11968
11969         maint.mk: allow packages to add makefile @@ exceptions
11970         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11971         (sc_makefile_check): Rename...
11972         (sc_makefile_at_at_check): ...to this, and use hook.
11973
11974         dup2: work around mingw bug
11975         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11976         Reported by Simon Josefsson.
11977
11978 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11979
11980         glob: Fix C++ compilation.
11981         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11982         C++.
11983
11984 2010-01-07  Bruno Haible  <bruno@clisp.org>
11985
11986         Fix indentation of wctype.in.h, broken since 2007-01-06.
11987         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11988
11989 2010-01-07  Bruno Haible  <bruno@clisp.org>
11990
11991         mbslen: Avoid collision with system function.
11992         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11993         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11994         * m4/mbslen.m4: New file.
11995         * modules/mbslen (Files): Add it.
11996         (configure.ac): Invoke gl_MBSLEN.
11997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11998         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11999         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
12000         via Ian Beckwith <ianb@erislabs.net>.
12001
12002 2010-01-07  Bruno Haible  <bruno@clisp.org>
12003
12004         dirent: Document the last fix.
12005         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
12006
12007 2010-01-07  Bruno Haible  <bruno@clisp.org>
12008
12009         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
12010         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
12011         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
12012         va_list are defined.
12013         * doc/posix-headers/stdio.texi: Document the bug of missing types.
12014         Reported by Eric Blake.
12015
12016 2010-01-07  Bruno Haible  <bruno@clisp.org>
12017
12018         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
12019         * modules/xlist (Depends-on): Add 'list',
12020         * modules/xoset (Depends-on): Add 'oset'.
12021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12022
12023 2010-01-07  Bruno Haible  <bruno@clisp.org>
12024
12025         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
12026         * doc/posix-functions/strncasecmp.texi: Likewise.
12027
12028 2010-01-07  Bruno Haible  <bruno@clisp.org>
12029
12030         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
12031
12032 2010-01-07  John W. Eaton  <jwe@octave.org>
12033
12034         wctype: allow C++ use
12035         * lib/wctype.in.h: Add extern "C" block for C++.
12036
12037 2010-01-06  Eric Blake  <ebb9@byu.net>
12038
12039         maint.mk: detect incorrect GFDL usage
12040         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
12041
12042 2010-01-06  Jim Meyering  <meyering@redhat.com>
12043         and Eric Blake  <ebb9@byu.net>
12044
12045         maint.mk: ignore multi-line copyright in NEWS
12046         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
12047
12048 2010-01-06  Eric Blake  <ebb9@byu.net>
12049
12050         select: add missing dependency
12051         * modules/select-tests (Depends-on): Move sockets dependency...
12052         * modules/select (Depends-on): ...here.
12053         Reported by Ian Beckwith.
12054
12055         doc: regenerate INSTALL
12056         * doc/INSTALL: Reflect recent autoconf update.
12057         * doc/INSTALL.ISO: Likewise.
12058         * doc/INSTALL.UTF-8: Likewise.
12059
12060         pread: fix compilation on glibc
12061         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
12062         Reported by Ralf Wildenhues.
12063
12064         dirent: fix test failure
12065         * lib/dirent.in.h (includes): Guarantee ino_t.
12066         Reported by Ralf Wildenhues.
12067
12068 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
12069
12070         linkat, renameat: avoid bad free
12071         * lib/at-func2.c (at_func2): Fix typo.
12072         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
12073
12074 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12075
12076         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
12077         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
12078         to avoid failure of symlink test later.
12079
12080 2010-01-06  Eric Blake  <ebb9@byu.net>
12081
12082         stdio, unistd: guarantee ssize_t
12083         * lib/unistd.in.h (includes): Ensure that types required by POSIX
12084         2008 are exposed when needed.
12085         * lib/stdio.in.h (includes): Likewise.
12086         Reported by Ralf Wildenhues.
12087
12088 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
12089
12090         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
12091         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
12092         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
12093
12094 2010-01-06  Jim Meyering  <meyering@redhat.com>
12095
12096         readtokens: this module *does* require xalloc.h
12097         It uses only functions that were omitted by the old syntax-check rule.
12098         * lib/readtokens.c: Include "xalloc.h" once again.
12099         * modules/readtokens (Depends-on): Add xalloc.
12100         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
12101
12102 2010-01-05  Eric Blake  <ebb9@byu.net>
12103
12104         maint: support 'make announcement' from a VPATH build
12105         * top/maint.mk (announcement): Look for correct NEWS file.
12106
12107 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
12108
12109         utimens (fdutimens): ignore a negative FD, per contract
12110         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
12111         when we have a valid file descriptor.  Otherwise, using a brand
12112         new glibc (with just-patched futimens that now fails with EBADF)
12113         would cause this function to fail with ENOSYS.
12114         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
12115         See also http://bugzilla.redhat.com/552320.
12116
12117 2010-01-05  Eric Blake  <ebb9@byu.net>
12118
12119         strcase: document what it provides
12120         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
12121         gnulib module.
12122         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
12123         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
12124
12125 2010-01-05  Jim Meyering  <meyering@redhat.com>
12126
12127         maint: remove useless inclusions of "xalloc.h"
12128         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
12129         * lib/readtokens.c: Likewise.
12130         * lib/same.c: Likewise.
12131         * modules/getloadavg (Depends-on): Remove xalloc.
12132         * modules/readtokens: Likewise.
12133         * modules/same: Likewise.
12134
12135         maint.mk: include 4 more function names in alloca.h-checking regexp
12136         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
12137         regexp.  Before, we would give a false-positive (saying alloca.h
12138         is included unnecessarily) when the only uses involved omitted symbols.
12139
12140         xalloc.h: use consistent formatting
12141         * lib/xalloc.h: Move declarations to start in the first column.
12142
12143 2010-01-05  Eric Blake  <ebb9@byu.net>
12144
12145         mkdir: avoid xalloc
12146         * lib/mkdir.c (includes): Drop unused header.
12147         Reported by John W. Eaton.
12148
12149 2010-01-04  Jim Meyering  <meyering@redhat.com>
12150
12151         nl_langinfo: avoid configure-time syntax error
12152         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
12153         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
12154         the empty string.  Don't let that provoke a shell syntax error.
12155
12156         regcomp, regexec, fnmatch: avoid array bounds read error
12157         * lib/regcomp.c (build_equiv_class): From glibc:
12158         Use only the low 24 bits of a findidx return value as an index
12159         into the weights array.  Patch by Ulrich Drepper:
12160         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
12161         * lib/regexec.c (check_node_accept_bytes): Likewise.
12162         * lib/fnmatch_loop.c (FCT): Likewise.
12163
12164         regcomp: skip collseq lookup when there are no rules
12165         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
12166         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
12167
12168         regcomp: recognize ill-formed { } expressions
12169         * lib/regcomp.c (parse_dup_op): From glibc:
12170         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
12171
12172         regcomp: fix typo in comment
12173         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
12174         s/satisfy/satisfies/.
12175
12176         regcomp: sync from glibc: remove dead store
12177         * lib/regcomp.c (duplicate_node_closure): Remove useless
12178         search_duplicated_node call and dead store.
12179
12180         regcomp: sync from glibc; always use nl_langinfo
12181         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
12182         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
12183         * modules/regex (Depends-on): Add nl_langinfo.
12184
12185 2010-01-04  Eric Blake  <ebb9@byu.net>
12186
12187         fdopendir: fix configure test
12188         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
12189
12190 2010-01-01  Bruno Haible  <bruno@clisp.org>
12191
12192         wchar: Remove unused configure check.
12193         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
12194
12195 2010-01-01  Eric Blake  <ebb9@byu.net>
12196
12197         headers: make check of system header explicit
12198         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
12199         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
12200         ourselves.
12201         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12203         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12204         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
12205         internals.
12206         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
12207         missing.
12208         Suggested by Bruno Haible.
12209
12210 2010-01-01  Jim Meyering  <meyering@redhat.com>
12211
12212         ChangeLog: tweak to eliminate unnecessary copyright line
12213         * ChangeLog: Remove a copyright line that was mistakenly updated
12214         by today's update-copyright run.  Reported by Eric Blake.
12215
12216         test-update-copyright: don't let envvar setting cause test failure
12217         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12218
12219 2010-01-01  Bruno Haible  <bruno@clisp.org>
12220
12221         localename: Avoid gcc warning.
12222         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
12223         function if it is not used.
12224
12225 2010-01-01  Jim Meyering  <meyering@redhat.com>
12226
12227         update nearly all FSF copyright year lists to include 2010
12228         Use the same procedure as for 2009, outlined in
12229         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
12230
12231         version-etc: set COPYRIGHT_YEAR to 2010
12232         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
12233
12234 2009-12-31  Eric Blake  <ebb9@byu.net>
12235
12236         doc: correct availability of cygwin 1.5.x getopt
12237         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
12238         variables.
12239         * doc/posix-functions/opterr.texi (opterr): Likewise.
12240         * doc/posix-functions/optind.texi (optind): Likewise.
12241         * doc/posix-functions/optopt.texi (optopt): Likewise.
12242         * doc/posix-functions/tzname.texi (tzname): Likewise.
12243
12244         openat: update maintainer
12245         * modules/openat (Maintainer): Add myself.
12246
12247         utimens: avoid shadowing warning
12248         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
12249         buffers into one, to avoid shadowing, as well as avoiding a
12250         redundant stat.
12251         Reported by Jim Meyering.
12252
12253         test-dup2: avoid compiler warning
12254         * tests/test-dup2.c (is_inheritable): Only define if used.
12255
12256 2010-01-01  Bruno Haible  <bruno@clisp.org>
12257
12258         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
12259         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
12260         defined, use wctomb instead of wcrtomb.
12261
12262 2010-01-01  Bruno Haible  <bruno@clisp.org>
12263
12264         iconv: Reject native Solaris iconv.
12265         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
12266         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
12267
12268 2009-12-31  Bruno Haible  <bruno@clisp.org>
12269
12270         * tests/test-signal.c (main): Remove test of 'SIG'.
12271
12272 2009-12-31  Bruno Haible  <bruno@clisp.org>
12273
12274         spawn: Fix incomplete fix.
12275         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12276         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12277         warnings for GNULIB_POSIXCHECK again.
12278         Reported by Eric Blake.
12279
12280 2009-12-31  Bruno Haible  <bruno@clisp.org>
12281
12282         Avoid namespace pollution on glibc systems.
12283         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
12284         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
12285         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
12286         glibc systems.
12287
12288 2009-12-31  Bruno Haible  <bruno@clisp.org>
12289
12290         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
12291         (gl_REPLACE_WCHAR_H): Turn into a no-op.
12292         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
12293         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12294         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12295         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12296         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12297
12298 2009-12-31  Bruno Haible  <bruno@clisp.org>
12299
12300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12301         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
12302         afterwards.
12303
12304 2009-12-31  Bruno Haible  <bruno@clisp.org>
12305
12306         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
12307         SYS_UTSNAME_H.
12308
12309 2009-12-31  Bruno Haible  <bruno@clisp.org>
12310
12311         spawn: Fix misapplied patch.
12312         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12313         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12314         warnings for GNULIB_POSIXCHECK.
12315
12316 2009-12-31  Bruno Haible  <bruno@clisp.org>
12317
12318         times: Update after sys_times changed.
12319         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
12320         * modules/times (Files): Add it.
12321         (configure.ac): Invoke gl_FUNC_TIMES.
12322
12323 2009-12-31  Bruno Haible  <bruno@clisp.org>
12324
12325         Use AC_C_INLINE where necessary.
12326         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
12327         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12328         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12329         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12330         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12331         * m4/mbiter.m4 (gl_MBITER): Likewise.
12332         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12333         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12334         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
12335         * modules/u64 (configure.ac): Likewise.
12336
12337 2009-12-31  Bruno Haible  <bruno@clisp.org>
12338
12339         Use AC_C_INLINE instead of module 'inline' where possible.
12340         * modules/inline (Description): Clarify purpose.
12341         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
12342         * modules/count-one-bits (Depends-on): Remove inline.
12343         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
12344         * modules/openat (Depends-on): Remove inline.
12345         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
12346         instead of depending on module 'inline'.
12347         * modules/filevercmp (Depends-on, configure.ac): Likewise.
12348         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
12349         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
12350         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
12351         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
12352         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
12353         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
12354         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
12355         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
12356         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
12357         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
12358         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
12359         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
12360         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
12361         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
12362         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
12363         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
12364         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
12365         Likewise.
12366         * modules/unictype/property-ascii-hex-digit (Depends-on,
12367         configure.ac): Likewise.
12368         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12369         configure.ac): Likewise.
12370         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12371         configure.ac): Likewise.
12372         * modules/unictype/property-bidi-block-separator (Depends-on,
12373         configure.ac): Likewise.
12374         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12375         configure.ac): Likewise.
12376         * modules/unictype/property-bidi-common-separator (Depends-on,
12377         configure.ac): Likewise.
12378         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12379         Likewise.
12380         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12381         configure.ac): Likewise.
12382         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12383         configure.ac): Likewise.
12384         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12385         configure.ac): Likewise.
12386         * modules/unictype/property-bidi-european-digit (Depends-on,
12387         configure.ac): Likewise.
12388         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12389         configure.ac): Likewise.
12390         * modules/unictype/property-bidi-left-to-right (Depends-on,
12391         configure.ac): Likewise.
12392         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12393         configure.ac): Likewise.
12394         * modules/unictype/property-bidi-other-neutral (Depends-on,
12395         configure.ac): Likewise.
12396         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12397         Likewise.
12398         * modules/unictype/property-bidi-segment-separator (Depends-on,
12399         configure.ac): Likewise.
12400         * modules/unictype/property-bidi-whitespace (Depends-on,
12401         configure.ac): Likewise.
12402         * modules/unictype/property-combining (Depends-on, configure.ac):
12403         Likewise.
12404         * modules/unictype/property-composite (Depends-on, configure.ac):
12405         Likewise.
12406         * modules/unictype/property-currency-symbol (Depends-on,
12407         configure.ac): Likewise.
12408         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12409         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12410         Likewise.
12411         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12412         configure.ac): Likewise.
12413         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12414         Likewise.
12415         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12416         Likewise.
12417         * modules/unictype/property-extender (Depends-on, configure.ac):
12418         Likewise.
12419         * modules/unictype/property-format-control (Depends-on, configure.ac):
12420         Likewise.
12421         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12422         Likewise.
12423         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12424         Likewise.
12425         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12426         Likewise.
12427         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12428         Likewise.
12429         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12430         Likewise.
12431         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12432         Likewise.
12433         * modules/unictype/property-id-start (Depends-on, configure.ac):
12434         Likewise.
12435         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12436         Likewise.
12437         * modules/unictype/property-ids-binary-operator (Depends-on,
12438         configure.ac): Likewise.
12439         * modules/unictype/property-ids-trinary-operator (Depends-on,
12440         configure.ac): Likewise.
12441         * modules/unictype/property-ignorable-control (Depends-on,
12442         configure.ac): Likewise.
12443         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12444         Likewise.
12445         * modules/unictype/property-join-control (Depends-on, configure.ac):
12446         Likewise.
12447         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12448         Likewise.
12449         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12450         Likewise.
12451         * modules/unictype/property-logical-order-exception (Depends-on,
12452         configure.ac): Likewise.
12453         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12454         Likewise.
12455         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12456         * modules/unictype/property-non-break (Depends-on, configure.ac):
12457         Likewise.
12458         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12459         Likewise.
12460         * modules/unictype/property-numeric (Depends-on, configure.ac):
12461         Likewise.
12462         * modules/unictype/property-other-alphabetic (Depends-on,
12463         configure.ac): Likewise.
12464         * modules/unictype/property-other-default-ignorable-code-point
12465         (Depends-on, configure.ac): Likewise.
12466         * modules/unictype/property-other-grapheme-extend (Depends-on,
12467         configure.ac): Likewise.
12468         * modules/unictype/property-other-id-continue (Depends-on,
12469         configure.ac): Likewise.
12470         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12471         Likewise.
12472         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12473         Likewise.
12474         * modules/unictype/property-other-math (Depends-on, configure.ac):
12475         Likewise.
12476         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12477         Likewise.
12478         * modules/unictype/property-paired-punctuation (Depends-on,
12479         configure.ac): Likewise.
12480         * modules/unictype/property-paragraph-separator (Depends-on,
12481         configure.ac): Likewise.
12482         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12483         Likewise.
12484         * modules/unictype/property-pattern-white-space (Depends-on,
12485         configure.ac): Likewise.
12486         * modules/unictype/property-private-use (Depends-on, configure.ac):
12487         Likewise.
12488         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12489         Likewise.
12490         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12491         Likewise.
12492         * modules/unictype/property-radical (Depends-on, configure.ac):
12493         Likewise.
12494         * modules/unictype/property-sentence-terminal (Depends-on,
12495         configure.ac): Likewise.
12496         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12497         Likewise.
12498         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12499         * modules/unictype/property-terminal-punctuation (Depends-on,
12500         configure.ac): Likewise.
12501         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12502         Likewise.
12503         * modules/unictype/property-unassigned-code-value (Depends-on,
12504         configure.ac): Likewise.
12505         * modules/unictype/property-unified-ideograph (Depends-on,
12506         configure.ac): Likewise.
12507         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12508         Likewise.
12509         * modules/unictype/property-variation-selector (Depends-on,
12510         configure.ac): Likewise.
12511         * modules/unictype/property-white-space (Depends-on, configure.ac):
12512         Likewise.
12513         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12514         Likewise.
12515         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12516         Likewise.
12517         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12518         Likewise.
12519         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12520         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12521         Likewise.
12522
12523 2009-12-31  Bruno Haible  <bruno@clisp.org>
12524
12525         Remove unnecessary AC_C_INLINE invocation.
12526         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12527         since 2009-08-21.
12528
12529 2009-12-31  Jim Meyering  <meyering@redhat.com>
12530
12531         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12532         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12533         With this change, we can all remove the gpg_key_ID = ... definition
12534         from our respective cfg.mk files.
12535
12536         maint.mk: create announcement template in ~/, not in /tmp
12537         * top/maint.mk (emit_upload_commands): Adjust.
12538         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12539         Remove temporary file, .ci-msg.
12540
12541 2009-12-31  Eric Blake  <ebb9@byu.net>
12542
12543         link-warning: always build headers with link warnings
12544         * modules/arpa_inet (Makefile.am): Always build replacement
12545         header.
12546         * modules/ctype (Makefile.am): Likewise.
12547         * modules/dirent (Makefile.am): Likewise.
12548         * modules/inttypes (Makefile.am): Likewise.
12549         * modules/langinfo (Makefile.am): Likewise.
12550         * modules/locale (Makefile.am): Likewise.
12551         * modules/spawn (Makefile.am): Likewise.
12552         * modules/sys_file (Makefile.am): Likewise.
12553         * modules/sys_ioctl (Makefile.am): Likewise.
12554         * modules/sys_select (Makefile.am): Likewise.
12555         * modules/sys_socket (Makefile.am): Likewise.
12556         * modules/sys_times (Makefile.am): Likewise.
12557         * modules/sys_utsname (Makefile.am): Likewise.
12558         * modules/sys_wait (Makefile.am): Likewise.
12559         * modules/wchar (Makefile.am): Likewise.
12560         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12561         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12562         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12563         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12564         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12565         Likewise.
12566         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12567         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12568         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12569         Likewise.
12570         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12571         Likewise.
12572         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12573         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12574         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12576         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12577         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12578         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12579         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12580         (gl_WCHAR_H_DEFAULTS): Likewise.
12581
12582 2009-12-31  Eric Blake  <ebb9@byu.net>
12583
12584         signal, spawn: use link warnings
12585         * lib/signal.in.h (sigset_t): Make unconditional.
12586         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12587         (sigpending, sigprocmask, sigaction): Add link warnings.
12588         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12589         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12590         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12591         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12592         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12593         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12594         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12595         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12596         (posix_spawn_file_actions_destroy)
12597         (posix_spawn_file_actions_addopen)
12598         (posix_spawn_file_actions_addclose)
12599         (posix_spawn_file_actions_adddup2): Likewise.
12600         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12601         * tests/test-signal.c (main): Enhance test.
12602
12603         spawn: improve wrapper support
12604         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12605         (gl_SPAWN_H_DEFAULTS): New defaults.
12606         * modules/spawn (Makefile.am): Substitute them.
12607         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12608         Only declare if missing or broken.
12609
12610         sys_times, sys_utsname: use include_next
12611         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12612         header.
12613         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12614         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12615         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12616         * modules/sys_times (Depends-on): Add include_next.
12617         (Makefile.am): Substitute additional values.
12618         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12619         * lib/sys_times.in.h (includes): Include native header, if
12620         available.
12621         * lib/sys_utsname.in.h (includes): Likewise.
12622         * tests/test-sys_times.c (main): Enhance test.
12623
12624         fdutimensat: revert prior patch
12625         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12626         utimens.h.
12627         Reported by Bruno Haible.
12628
12629 2009-12-30  Eric Blake  <ebb9@byu.net>
12630
12631         sys_wait: drop link-warning dependency
12632         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12633         link-warning efforts.
12634         * lib/sys_wait.in.h: Likewise.
12635
12636         fdutimensat: remove bogus dependency
12637         * modules/fdutimensat (Depends-on): Drop inline.
12638
12639         unistd: fix typo
12640         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12641
12642 2009-12-30  Bruno Haible  <bruno@clisp.org>
12643
12644         Fix compilation error with Solaris cc.
12645         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12646         * lib/unicase/u16-is-invariant.c: Likewise.
12647         * lib/unicase/u32-is-invariant.c: Likewise.
12648         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12649
12650 2009-12-30  Bruno Haible  <bruno@clisp.org>
12651
12652         Fix test crash.
12653         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
12654         locales.
12655         Reported by Simon Josefsson <simon@josefsson.org>.
12656
12657 2009-12-30  Bruno Haible  <bruno@clisp.org>
12658
12659         Fix compilation error on most platforms.
12660         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
12661         Reported by Simon Josefsson <simon@josefsson.org>
12662         and Nelson H. F. Beebe <beebe@math.utah.edu>.
12663
12664 2009-12-30  Eric Blake  <ebb9@byu.net>
12665
12666         futimens, utimensat: work around ntfs-3g bug
12667         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
12668         a ctime bug is present, and expand workaround to cover ntfs-3g.
12669         * lib/utimens.c (fdutimens, lutimens): Likewise.
12670         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
12671         (validate_timespec): Adjust return value.
12672         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
12673         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12674         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
12675
12676 2009-12-29  Eric Blake  <ebb9@byu.net>
12677
12678         link-warning: make usage consistent
12679         * modules/ctype (Depends-on): Add link-warning.
12680         (Makefile.am): Update rules accordingly.
12681         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12682         * modules/locale (Depends-on, Makefile.am): Likewise.
12683         * modules/sys_file (Makefile.am): Likewise.
12684         * modules/getopt-posix (Makefile.am): Delete unused link warning
12685         efforts.
12686         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
12687         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
12688         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
12689         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
12690
12691         stdio: remove unused variables
12692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
12693         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
12694         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12695
12696         tests: test more substitute headers
12697         * modules/ctype-tests: New file.
12698         * modules/dirent-tests: Likewise.
12699         * modules/spawn-tests: Likewise.
12700         * modules/sys_file-tests: Likewise.
12701         * modules/sys_ioctl-tests: Likewise.
12702         * modules/sys_wait-tests: Likewise.
12703         * tests/test-ctype.c: Likewise.
12704         * tests/test-dirent.c: Likewise.
12705         * tests/test-spawn.c: Likewise.
12706         * tests/test-sys_file.c: Likewise.
12707         * tests/test-sys_ioctl.c: Likewise.
12708         * tests/test-sys_wait.c: Likewise.
12709         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
12710         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
12711         whether or not flock is in use.
12712
12713         tests: remove License section from module
12714         * modules/arpa_inet-tests: Remove unneeded section.
12715         * modules/byteswap-tests: Likewise.
12716         * modules/ceilf-tests: Likewise.
12717         * modules/ceill-tests: Likewise.
12718         * modules/crypto/des-tests: Likewise.
12719         * modules/crypto/gc-arcfour-tests: Likewise.
12720         * modules/crypto/gc-arctwo-tests: Likewise.
12721         * modules/crypto/gc-des-tests: Likewise.
12722         * modules/crypto/gc-hmac-md5-tests: Likewise.
12723         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12724         * modules/crypto/gc-md2-tests: Likewise.
12725         * modules/crypto/gc-md4-tests: Likewise.
12726         * modules/crypto/gc-md5-tests: Likewise.
12727         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12728         * modules/crypto/gc-rijndael-tests: Likewise.
12729         * modules/crypto/gc-sha1-tests: Likewise.
12730         * modules/crypto/gc-tests: Likewise.
12731         * modules/crypto/md2-tests: Likewise.
12732         * modules/crypto/md4-tests: Likewise.
12733         * modules/fcntl-h-tests: Likewise.
12734         * modules/floorf-tests: Likewise.
12735         * modules/floorl-tests: Likewise.
12736         * modules/frexp-nolibm-tests: Likewise.
12737         * modules/frexp-tests: Likewise.
12738         * modules/frexpl-nolibm-tests: Likewise.
12739         * modules/frexpl-tests: Likewise.
12740         * modules/getaddrinfo-tests: Likewise.
12741         * modules/inttypes-tests: Likewise.
12742         * modules/isfinite-tests: Likewise.
12743         * modules/isinf-tests: Likewise.
12744         * modules/ldexpl-tests: Likewise.
12745         * modules/locale-tests: Likewise.
12746         * modules/math-tests: Likewise.
12747         * modules/netdb-tests: Likewise.
12748         * modules/netinet_in-tests: Likewise.
12749         * modules/printf-frexp-tests: Likewise.
12750         * modules/printf-frexpl-tests: Likewise.
12751         * modules/priv-set-tests: Likewise.
12752         * modules/random_r-tests: Likewise.
12753         * modules/round-tests: Likewise.
12754         * modules/roundf-tests: Likewise.
12755         * modules/roundl-tests: Likewise.
12756         * modules/search-tests: Likewise.
12757         * modules/select-tests: Likewise.
12758         * modules/signal-tests: Likewise.
12759         * modules/stdbool-tests: Likewise.
12760         * modules/stddef-tests: Likewise.
12761         * modules/stdint-tests: Likewise.
12762         * modules/stdio-tests: Likewise.
12763         * modules/stdlib-tests: Likewise.
12764         * modules/string-tests: Likewise.
12765         * modules/strings-tests: Likewise.
12766         * modules/sys_select-tests: Likewise.
12767         * modules/sys_socket-tests: Likewise.
12768         * modules/sys_stat-tests: Likewise.
12769         * modules/sys_time-tests: Likewise.
12770         * modules/sys_utsname-tests: Likewise.
12771         * modules/sysexits-tests: Likewise.
12772         * modules/time-tests: Likewise.
12773         * modules/trunc-tests: Likewise.
12774         * modules/truncf-tests: Likewise.
12775         * modules/truncl-tests: Likewise.
12776         * modules/tsearch-tests: Likewise.
12777         * modules/unistd-tests: Likewise.
12778         * modules/wchar-tests: Likewise.
12779         * modules/wctype-tests: Likewise.
12780
12781         tests: fix license on several tests
12782         * tests/test-des.c: Update to GPLv3+.
12783         * tests/test-flock.c: Likewise.
12784         * tests/test-fsync.c: Likewise.
12785         * tests/test-futimens.h: Likewise.
12786         * tests/test-gc-arcfour.c: Likewise.
12787         * tests/test-gc-arctwo.c: Likewise.
12788         * tests/test-gc-des.c: Likewise.
12789         * tests/test-gc-hmac-md5.c: Likewise.
12790         * tests/test-gc-hmac-sha1.c: Likewise.
12791         * tests/test-gc-md2.c: Likewise.
12792         * tests/test-gc-md4.c: Likewise.
12793         * tests/test-gc-md5.c: Likewise.
12794         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12795         * tests/test-gc-rijndael.c: Likewise.
12796         * tests/test-gc-sha1.c: Likewise.
12797         * tests/test-gc.c: Likewise.
12798         * tests/test-getcwd.c: Likewise.
12799         * tests/test-link.c: Likewise.
12800         * tests/test-link.h: Likewise.
12801         * tests/test-lutimens.h: Likewise.
12802         * tests/test-md2.c: Likewise.
12803         * tests/test-md4.c: Likewise.
12804         * tests/test-mkdir.h: Likewise.
12805         * tests/test-rename.c: Likewise.
12806         * tests/test-rename.h: Likewise.
12807         * tests/test-safe-alloc.c: Likewise.
12808         * tests/test-utimens-common.h: Likewise.
12809         * tests/test-utimens.h: Likewise.
12810
12811         maint: sync license texts
12812         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12813         * doc/gpl-3.0.texi: Revert copyright year update.
12814         * doc/lgpl-3.0.texi: Likewise.
12815
12816 2009-12-29  Jim Meyering  <meyering@redhat.com>
12817
12818         update nearly all FSF copyright year lists to include 2009
12819         The files named by the following are exempted:
12820             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12821               test -f "$dst" && { echo "$dst"; continue; }
12822               test -d "$dst" || continue
12823               echo "$dst"/$(basename "$src")
12824             done > exempt
12825             git ls-files tests/unictype >> exempt
12826         In the remaining files, convert to all-interval notation if
12827         - there is already at least one year interval like 2000-2003
12828         - the file is maintained by me
12829         - the file is in lib/uni*/, where that style already prevails
12830         Otherwise, use update-copyright's default.
12831
12832 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12833         and Eric Blake  <ebb9@byu.net>
12834
12835         tests: don't require debug system() to pass
12836         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12837         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12838         * tests/test-unlink.h (test_unlink_func): Likewise.
12839         * tests/test-fstatat.c (main): ...into callers.
12840         * tests/test-lstat.c (main): Likewise.
12841         * tests/test-rmdir.c (main): Likewise.
12842         * tests/test-unlink.c (main): Likewise.
12843         * tests/test-unlinkat.c (main): Likewise.
12844         * tests/test-areadlink-with-size.c (main): Don't require a
12845         debug-only system call to pass, aiding cross-testing to mingw.
12846         * tests/test-areadlink.c (main): Likewise.
12847         * tests/test-areadlinkat-with-size.c (main): Likewise.
12848         * tests/test-areadlinkat.c (main): Likewise.
12849         * tests/test-canonicalize-lgpl.c (main): Likewise.
12850         * tests/test-canonicalize.c (main): Likewise.
12851         * tests/test-chown.c (main): Likewise.
12852         * tests/test-fchownat.c (main): Likewise.
12853         * tests/test-lchown.c (main): Likewise.
12854         * tests/test-fdutimensat.c (main): Likewise.
12855         * tests/test-futimens.c (main): Likewise.
12856         * tests/test-link.c (main): Likewise.
12857         * tests/test-linkat.c (main): Likewise.
12858         * tests/test-mkdir.c (main): Likewise.
12859         * tests/test-mkdirat.c (main): Likewise.
12860         * tests/test-mkfifo.c (main): Likewise.
12861         * tests/test-mkfifoat.c (main): Likewise.
12862         * tests/test-mknod.c (main): Likewise.
12863         * tests/test-readlink.c (main): Likewise.
12864         * tests/test-remove.c (main): Likewise.
12865         * tests/test-rename.c (main): Likewise.
12866         * tests/test-renameat.c (main): Likewise.
12867         * tests/test-symlink.c (main): Likewise.
12868         * tests/test-symlinkat.c (main): Likewise.
12869         * tests/test-utimens.c (main): Likewise.
12870         * tests/test-utimensat.c (main): Likewise.
12871
12872 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12873
12874         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12875         on $(UNUSED_PARAMETER_H) to avoid build failure.
12876
12877 2009-12-28  Jim Meyering  <meyering@redhat.com>
12878
12879         update-copyright: you may specify a max. line length other than 72
12880         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12881
12882         maint: use consistent FSF copyright line syntax
12883         * lib/posixtm.c: Add missing comma in FSF copyright line.
12884         * lib/posixtm.h: Likewise.
12885         * lib/getugroups.c: Add missing ", Inc.".
12886
12887         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12888         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12889         FSF copyright line.  Remove trailing blanks.
12890
12891 2009-12-28  Eric Blake  <ebb9@byu.net>
12892
12893         test-dup2: reduce dependencies
12894         * modules/cloexec (Configure.ac): Set witness.
12895         * modules/dup2-tests (Depends-on): Drop cloexec.
12896         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12897         not present.
12898         Suggested by Bruno Haible.
12899
12900 2009-12-26  Bruno Haible  <bruno@clisp.org>
12901
12902         Remove an unneeded dependency.
12903         * modules/fseterr (Depends-on): Remove dup2.
12904
12905 2009-12-26  Eric Blake  <ebb9@byu.net>
12906
12907         tests: use macros.h in more places
12908         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12909         (ASSERT_STREAM): Provide default of stderr.
12910         * tests/test-dirent-safer.c: Include macros.h, using alternate
12911         stream for assertions.
12912         * tests/test-dup-safer.c: Likewise.
12913         * tests/test-freopen-safer.c: Likewise.
12914         * tests/test-getopt.c: Likewise.
12915         * tests/test-openat-safer.c: Likewise.
12916         * tests/test-pipe.c: Likewise.
12917         * tests/test-popen-safer.c: Likewise.
12918         * modules/dirent-safer-tests (Files): Include macros.h.
12919         * modules/unistd-safer-tests (Files): Likewise.
12920         * modules/freopen-safer-tests (Files): Likewise.
12921         * modules/getopt-posix-tests (Files): Likewise.
12922         * modules/openat-safer-tests (Files): Likewise.
12923         * modules/pipe-tests (Files): Likewise.
12924
12925 2009-12-26  Bruno Haible  <bruno@clisp.org>
12926
12927         javacomp: Portability fix.
12928         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12929         that it also works on Solaris.
12930
12931 2009-12-26  Bruno Haible  <bruno@clisp.org>
12932
12933         localename: Fix storage allocation of gl_locale_name_thread's result.
12934         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12935         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12936         all platforms that have 'uselocale'.
12937         (gl_locale_name_thread_unsafe): New function, extracted from
12938         gl_locale_name_thread.
12939         (gl_locale_name_thread): Call struniq on all platforms that have
12940         'uselocale'.
12941         * tests/test-localename.c (test_locale_name_thread): Check that the
12942         resulting strings are permanently allocated.
12943         * modules/localename-tests (Depends-on): Add strdup.
12944
12945 2009-12-26  Bruno Haible  <bruno@clisp.org>
12946
12947         * tests/test-localename.c (categories): Fill in the strings.
12948
12949 2009-12-26  Jim Meyering  <meyering@redhat.com>
12950
12951         isdir: complete the removal of m4/isdir.m4
12952         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12953
12954         isdir: clean up, since at least grep still uses it
12955         * lib/isdir.c: Include "isdir.h".
12956         (S_ISDIR): Remove now-unneeded definition.
12957         * modules/isdir (Files): Add lib/isdir.h.
12958         * lib/isdir.h: New file, with declaration.
12959         * m4/isdir.m4: Remove file -- unneeded.
12960
12961 2009-12-25  Bruno Haible  <bruno@clisp.org>
12962
12963         selinux-h: Make generated .h files standalone.
12964         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12965         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12966         * lib/se-selinux.in.h: Likewise.
12967         * modules/selinux-h (Depends-on): Add unused-parameter.
12968         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12969         selinux/selinux.h and selinux/context.h.
12970         Suggested by Eric Blake.
12971
12972 2009-12-25  Bruno Haible  <bruno@clisp.org>
12973
12974         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12975         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12976         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12977         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12978         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12979
12980 2009-12-24  Bruno Haible  <bruno@clisp.org>
12981
12982         openat: Fix warning.
12983         * lib/openat-proc.c: Include <unistd.h>.
12984
12985 2009-12-24  Bruno Haible  <bruno@clisp.org>
12986
12987         New module 'unused-parameter'.
12988         * build-aux/unused-parameter.h: New file, extracted from earlier
12989         gnulib-common.m4.
12990         * modules/unused-parameter: New file.
12991         * lib/unistr.h: Include unused-parameter.h.
12992         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12993         _GL_UNUSED.
12994         * modules/unistr/base (Depends-on): Add unused-parameter.
12995
12996 2009-12-24  Bruno Haible  <bruno@clisp.org>
12997
12998         Add missing dependencies to 'extensions' module.
12999         * m4/extensions.m4: Add comment.
13000         * modules/accept4 (Depends-on): Add extensions.
13001         * modules/dup3 (Depends-on): Likewise.
13002         * modules/fcntl (Depends-on): Likewise.
13003         * modules/futimens (Depends-on): Likewise.
13004         * modules/mknod (Depends-on): Likewise.
13005         * modules/pipe2 (Depends-on): Likewise.
13006         * modules/stat-time (Depends-on): Likewise.
13007         * modules/strcasestr-simple (Depends-on): Likewise.
13008         * modules/strsignal (Depends-on): Likewise.
13009         * modules/utimensat (Depends-on): Likewise.
13010         * modules/localcharset (Depends-on): Likewise. Needed because of
13011         gl_FCNTL_O_FLAGS.
13012         * modules/wcrtomb (Depends-on): Likewise. Needed because of
13013         AC_TYPE_MBSTATE_T.
13014         * modules/wcsnrtombs (Depends-on): Likewise.
13015         * modules/wcsrtombs (Depends-on): Likewise.
13016
13017 2009-12-24  Bruno Haible  <bruno@clisp.org>
13018
13019         binary-io: Avoid gcc warning due to SET_BINARY.
13020         * lib/binary-io.h (SET_BINARY): Cast the result to void.
13021         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
13022
13023 2009-12-24  Bruno Haible  <bruno@clisp.org>
13024
13025         Avoid future namespace pollution on glibc systems.
13026         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
13027         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
13028         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
13029         glibc systems.
13030
13031 2009-12-24  Bruno Haible  <bruno@clisp.org>
13032
13033         Refactor common macros used in tests.
13034         * tests/macros.h: New file.
13035         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
13036         and/or <stdlib.h>, if appropriate.
13037         (ASSERT, SIZEOF): Remove macros.
13038         * tests/test-areadlink-with-size.c: Likewise.
13039         * tests/test-areadlinkat.c: Likewise.
13040         * tests/test-areadlinkat-with-size.c: Likewise.
13041         * tests/test-argmatch.c: Likewise.
13042         * tests/test-argv-iter.c: Likewise.
13043         * tests/test-array-mergesort.c: Likewise.
13044         * tests/test-array_list.c: Likewise.
13045         * tests/test-array_oset.c: Likewise.
13046         * tests/test-avltree_list.c: Likewise.
13047         * tests/test-avltree_oset.c: Likewise.
13048         * tests/test-avltreehash_list.c: Likewise.
13049         * tests/test-base64.c: Likewise.
13050         * tests/test-binary-io.c: Likewise.
13051         * tests/test-bitrotate.c: Likewise.
13052         * tests/test-btowc.c: Likewise.
13053         * tests/test-byteswap.c: Likewise.
13054         * tests/test-c-ctype.c: Likewise.
13055         * tests/test-c-stack.c: Likewise.
13056         * tests/test-c-strcasecmp.c: Likewise.
13057         * tests/test-c-strcasestr.c: Likewise.
13058         * tests/test-c-strncasecmp.c: Likewise.
13059         * tests/test-c-strstr.c: Likewise.
13060         * tests/test-canonicalize-lgpl.c: Likewise.
13061         * tests/test-canonicalize.c: Likewise.
13062         * tests/test-carray_list.c: Likewise.
13063         * tests/test-ceilf1.c: Likewise.
13064         * tests/test-ceilf2.c: Likewise.
13065         * tests/test-ceill.c: Likewise.
13066         * tests/test-chown.c: Likewise.
13067         * tests/test-cloexec.c: Likewise.
13068         * tests/test-copy-acl.c: Likewise.
13069         * tests/test-copy-file.c: Likewise.
13070         * tests/test-count-one-bits.c: Likewise.
13071         * tests/test-dprintf-posix.c: Likewise.
13072         * tests/test-dup2.c: Likewise.
13073         * tests/test-dup3.c: Likewise.
13074         * tests/test-duplocale.c: Likewise.
13075         * tests/test-fbufmode.c: Likewise.
13076         * tests/test-fchdir.c: Likewise.
13077         * tests/test-fchownat.c: Likewise.
13078         * tests/test-fcntl-safer.c: Likewise.
13079         * tests/test-fcntl.c: Likewise.
13080         * tests/test-fdopendir.c: Likewise.
13081         * tests/test-fdutimensat.c: Likewise.
13082         * tests/test-fflush2.c: Likewise.
13083         * tests/test-file-has-acl.c: Likewise.
13084         * tests/test-filevercmp.c: Likewise.
13085         * tests/test-flock.c: Likewise.
13086         * tests/test-floorf1.c: Likewise.
13087         * tests/test-floorf2.c: Likewise.
13088         * tests/test-floorl.c: Likewise.
13089         * tests/test-fnmatch.c: Likewise.
13090         * tests/test-fopen.h: Likewise.
13091         * tests/test-fpending.c: Likewise.
13092         * tests/test-fprintf-posix.c: Likewise.
13093         * tests/test-fpurge.c: Likewise.
13094         * tests/test-freadable.c: Likewise.
13095         * tests/test-freadahead.c: Likewise.
13096         * tests/test-freading.c: Likewise.
13097         * tests/test-freadptr.c: Likewise.
13098         * tests/test-freadptr2.c: Likewise.
13099         * tests/test-freadseek.c: Likewise.
13100         * tests/test-freopen.c: Likewise.
13101         * tests/test-frexp.c: Likewise.
13102         * tests/test-frexpl.c: Likewise.
13103         * tests/test-fseek.c: Likewise.
13104         * tests/test-fseeko.c: Likewise.
13105         * tests/test-fstatat.c: Likewise.
13106         * tests/test-fstrcmp.c: Likewise.
13107         * tests/test-fsync.c: Likewise.
13108         * tests/test-ftell.c: Likewise.
13109         * tests/test-ftello.c: Likewise.
13110         * tests/test-func.c: Likewise.
13111         * tests/test-futimens.c: Likewise.
13112         * tests/test-fwritable.c: Likewise.
13113         * tests/test-fwriting.c: Likewise.
13114         * tests/test-getcwd.c: Likewise.
13115         * tests/test-getdate.c: Likewise.
13116         * tests/test-getdelim.c: Likewise.
13117         * tests/test-getdtablesize.c: Likewise.
13118         * tests/test-getgroups.c: Likewise.
13119         * tests/test-getline.c: Likewise.
13120         * tests/test-getndelim2.c: Likewise.
13121         * tests/test-glob.c: Likewise.
13122         * tests/test-hash.c: Likewise.
13123         * tests/test-i-ring.c: Likewise.
13124         * tests/test-iconv-utf.c: Likewise.
13125         * tests/test-iconv.c: Likewise.
13126         * tests/test-idpriv-drop.c: Likewise.
13127         * tests/test-idpriv-droptemp.c: Likewise.
13128         * tests/test-inet_ntop.c: Likewise.
13129         * tests/test-inet_pton.c: Likewise.
13130         * tests/test-isblank.c: Likewise.
13131         * tests/test-isfinite.c: Likewise.
13132         * tests/test-isinf.c: Likewise.
13133         * tests/test-isnan.c: Likewise.
13134         * tests/test-isnand.h: Likewise.
13135         * tests/test-isnanf.h: Likewise.
13136         * tests/test-isnanl.h: Likewise.
13137         * tests/test-lchown.c: Likewise.
13138         * tests/test-ldexpl.c: Likewise.
13139         * tests/test-link.c: Likewise.
13140         * tests/test-linkat.c: Likewise.
13141         * tests/test-linked_list.c: Likewise.
13142         * tests/test-linkedhash_list.c: Likewise.
13143         * tests/test-localename.c: Likewise.
13144         * tests/test-lseek.c: Likewise.
13145         * tests/test-lstat.c: Likewise.
13146         * tests/test-mbmemcasecmp.c: Likewise.
13147         * tests/test-mbmemcasecoll.c: Likewise.
13148         * tests/test-mbrtowc.c: Likewise.
13149         * tests/test-mbscasecmp.c: Likewise.
13150         * tests/test-mbscasestr1.c: Likewise.
13151         * tests/test-mbscasestr2.c: Likewise.
13152         * tests/test-mbscasestr3.c: Likewise.
13153         * tests/test-mbscasestr4.c: Likewise.
13154         * tests/test-mbschr.c: Likewise.
13155         * tests/test-mbscspn.c: Likewise.
13156         * tests/test-mbsinit.c: Likewise.
13157         * tests/test-mbsncasecmp.c: Likewise.
13158         * tests/test-mbsnrtowcs.c: Likewise.
13159         * tests/test-mbspbrk.c: Likewise.
13160         * tests/test-mbspcasecmp.c: Likewise.
13161         * tests/test-mbsrchr.c: Likewise.
13162         * tests/test-mbsrtowcs.c: Likewise.
13163         * tests/test-mbsspn.c: Likewise.
13164         * tests/test-mbsstr1.c: Likewise.
13165         * tests/test-mbsstr2.c: Likewise.
13166         * tests/test-mbsstr3.c: Likewise.
13167         * tests/test-memchr.c: Likewise.
13168         * tests/test-memchr2.c: Likewise.
13169         * tests/test-memcmp.c: Likewise.
13170         * tests/test-memmem.c: Likewise.
13171         * tests/test-memrchr.c: Likewise.
13172         * tests/test-mkdir.c: Likewise.
13173         * tests/test-mkdirat.c: Likewise.
13174         * tests/test-mkfifo.c: Likewise.
13175         * tests/test-mkfifoat.c: Likewise.
13176         * tests/test-mknod.c: Likewise.
13177         * tests/test-nanosleep.c: Likewise.
13178         * tests/test-nl_langinfo.c: Likewise.
13179         * tests/test-obstack-printf.c: Likewise.
13180         * tests/test-open.c: Likewise.
13181         * tests/test-openat.c: Likewise.
13182         * tests/test-pipe-filter-gi1.c: Likewise.
13183         * tests/test-pipe-filter-gi2-main.c: Likewise.
13184         * tests/test-pipe-filter-ii1.c: Likewise.
13185         * tests/test-pipe-filter-ii2-main.c: Likewise.
13186         * tests/test-pipe2.c: Likewise.
13187         * tests/test-popen.h: Likewise.
13188         * tests/test-posixtm.c: Likewise.
13189         * tests/test-pread.c: Likewise.
13190         * tests/test-printf-frexp.c: Likewise.
13191         * tests/test-printf-frexpl.c: Likewise.
13192         * tests/test-printf-posix.c: Likewise.
13193         * tests/test-priv-set.c: Likewise.
13194         * tests/test-quotearg.c: Likewise.
13195         * tests/test-random_r.c: Likewise.
13196         * tests/test-rawmemchr.c: Likewise.
13197         * tests/test-rbtree_list.c: Likewise.
13198         * tests/test-rbtree_oset.c: Likewise.
13199         * tests/test-rbtreehash_list.c: Likewise.
13200         * tests/test-readlink.c: Likewise.
13201         * tests/test-remove.c: Likewise.
13202         * tests/test-rename.c: Likewise.
13203         * tests/test-renameat.c: Likewise.
13204         * tests/test-rmdir.c: Likewise.
13205         * tests/test-round1.c: Likewise.
13206         * tests/test-roundf1.c: Likewise.
13207         * tests/test-roundl.c: Likewise.
13208         * tests/test-safe-alloc.c: Likewise.
13209         * tests/test-sameacls.c: Likewise.
13210         * tests/test-set-mode-acl.c: Likewise.
13211         * tests/test-setenv.c: Likewise.
13212         * tests/test-sigaction.c: Likewise.
13213         * tests/test-signbit.c: Likewise.
13214         * tests/test-sleep.c: Likewise.
13215         * tests/test-snprintf-posix.c: Likewise.
13216         * tests/test-snprintf.c: Likewise.
13217         * tests/test-sprintf-posix.c: Likewise.
13218         * tests/test-stat-time.c: Likewise.
13219         * tests/test-stat.c: Likewise.
13220         * tests/test-strcasestr.c: Likewise.
13221         * tests/test-strchrnul.c: Likewise.
13222         * tests/test-strerror.c: Likewise.
13223         * tests/test-striconv.c: Likewise.
13224         * tests/test-striconveh.c: Likewise.
13225         * tests/test-striconveha.c: Likewise.
13226         * tests/test-strsignal.c: Likewise.
13227         * tests/test-strstr.c: Likewise.
13228         * tests/test-strtod.c: Likewise.
13229         * tests/test-strverscmp.c: Likewise.
13230         * tests/test-symlink.c: Likewise.
13231         * tests/test-symlinkat.c: Likewise.
13232         * tests/test-trunc1.c: Likewise.
13233         * tests/test-trunc2.c: Likewise.
13234         * tests/test-truncf1.c: Likewise.
13235         * tests/test-truncf2.c: Likewise.
13236         * tests/test-truncl.c: Likewise.
13237         * tests/test-uname.c: Likewise.
13238         * tests/test-unlink.c: Likewise.
13239         * tests/test-unlinkat.c: Likewise.
13240         * tests/test-unsetenv.c: Likewise.
13241         * tests/test-usleep.c: Likewise.
13242         * tests/test-utimens.c: Likewise.
13243         * tests/test-utimensat.c: Likewise.
13244         * tests/test-vasnprintf-posix.c: Likewise.
13245         * tests/test-vasnprintf-posix2.c: Likewise.
13246         * tests/test-vasnprintf.c: Likewise.
13247         * tests/test-vasprintf-posix.c: Likewise.
13248         * tests/test-vasprintf.c: Likewise.
13249         * tests/test-vdprintf-posix.c: Likewise.
13250         * tests/test-vfprintf-posix.c: Likewise.
13251         * tests/test-vprintf-posix.c: Likewise.
13252         * tests/test-vsnprintf-posix.c: Likewise.
13253         * tests/test-vsnprintf.c: Likewise.
13254         * tests/test-vsprintf-posix.c: Likewise.
13255         * tests/test-wcrtomb.c: Likewise.
13256         * tests/test-wcsnrtombs.c: Likewise.
13257         * tests/test-wcsrtombs.c: Likewise.
13258         * tests/test-wctype.c: Likewise.
13259         * tests/test-wcwidth.c: Likewise.
13260         * tests/test-xfprintf-posix.c: Likewise.
13261         * tests/test-xmemdup0.c: Likewise.
13262         * tests/test-xprintf-posix.c: Likewise.
13263         * tests/test-xvasprintf.c: Likewise.
13264         * tests/unicase/test-locale-language.c: Likewise.
13265         * tests/unicase/test-mapping-part1.h: Likewise.
13266         * tests/unicase/test-predicate-part1.h: Likewise.
13267         * tests/unicase/test-u8-casecmp.c: Likewise.
13268         * tests/unicase/test-u8-casecoll.c: Likewise.
13269         * tests/unicase/test-u8-casefold.c: Likewise.
13270         * tests/unicase/test-u8-is-cased.c: Likewise.
13271         * tests/unicase/test-u8-is-casefolded.c: Likewise.
13272         * tests/unicase/test-u8-is-lowercase.c: Likewise.
13273         * tests/unicase/test-u8-is-titlecase.c: Likewise.
13274         * tests/unicase/test-u8-is-uppercase.c: Likewise.
13275         * tests/unicase/test-u8-tolower.c: Likewise.
13276         * tests/unicase/test-u8-totitle.c: Likewise.
13277         * tests/unicase/test-u8-toupper.c: Likewise.
13278         * tests/unicase/test-u16-casecmp.c: Likewise.
13279         * tests/unicase/test-u16-casecoll.c: Likewise.
13280         * tests/unicase/test-u16-casefold.c: Likewise.
13281         * tests/unicase/test-u16-is-cased.c: Likewise.
13282         * tests/unicase/test-u16-is-casefolded.c: Likewise.
13283         * tests/unicase/test-u16-is-lowercase.c: Likewise.
13284         * tests/unicase/test-u16-is-titlecase.c: Likewise.
13285         * tests/unicase/test-u16-is-uppercase.c: Likewise.
13286         * tests/unicase/test-u16-tolower.c: Likewise.
13287         * tests/unicase/test-u16-totitle.c: Likewise.
13288         * tests/unicase/test-u16-toupper.c: Likewise.
13289         * tests/unicase/test-u32-casecmp.c: Likewise.
13290         * tests/unicase/test-u32-casecoll.c: Likewise.
13291         * tests/unicase/test-u32-casefold.c: Likewise.
13292         * tests/unicase/test-u32-is-cased.c: Likewise.
13293         * tests/unicase/test-u32-is-casefolded.c: Likewise.
13294         * tests/unicase/test-u32-is-lowercase.c: Likewise.
13295         * tests/unicase/test-u32-is-titlecase.c: Likewise.
13296         * tests/unicase/test-u32-is-uppercase.c: Likewise.
13297         * tests/unicase/test-u32-tolower.c: Likewise.
13298         * tests/unicase/test-u32-totitle.c: Likewise.
13299         * tests/unicase/test-u32-toupper.c: Likewise.
13300         * tests/unicase/test-ulc-casecmp.c: Likewise.
13301         * tests/unicase/test-ulc-casecoll.c: Likewise.
13302         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13303         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13304         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13305         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13306         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13307         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13308         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13309         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13310         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13311         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13312         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13313         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13314         * tests/unictype/test-bidi_byname.c: Likewise.
13315         * tests/unictype/test-bidi_name.c: Likewise.
13316         * tests/unictype/test-bidi_of.c: Likewise.
13317         * tests/unictype/test-bidi_test.c: Likewise.
13318         * tests/unictype/test-block_list.c: Likewise.
13319         * tests/unictype/test-block_of.c: Likewise.
13320         * tests/unictype/test-block_test.c: Likewise.
13321         * tests/unictype/test-categ_and.c: Likewise.
13322         * tests/unictype/test-categ_and_not.c: Likewise.
13323         * tests/unictype/test-categ_byname.c: Likewise.
13324         * tests/unictype/test-categ_name.c: Likewise.
13325         * tests/unictype/test-categ_none.c: Likewise.
13326         * tests/unictype/test-categ_of.c: Likewise.
13327         * tests/unictype/test-categ_or.c: Likewise.
13328         * tests/unictype/test-categ_test_withtable.c: Likewise.
13329         * tests/unictype/test-combining.c: Likewise.
13330         * tests/unictype/test-decdigit.c: Likewise.
13331         * tests/unictype/test-digit.c: Likewise.
13332         * tests/unictype/test-mirror.c: Likewise.
13333         * tests/unictype/test-numeric.c: Likewise.
13334         * tests/unictype/test-pr_byname.c: Likewise.
13335         * tests/unictype/test-pr_test.c: Likewise.
13336         * tests/unictype/test-predicate-part1.h: Likewise.
13337         * tests/unictype/test-scripts.c: Likewise.
13338         * tests/unictype/test-sy_c_ident.c: Likewise.
13339         * tests/unictype/test-sy_java_ident.c: Likewise.
13340         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
13341         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
13342         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
13343         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
13344         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
13345         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
13346         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
13347         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
13348         * tests/uninorm/test-canonical-decomposition.c: Likewise.
13349         * tests/uninorm/test-compat-decomposition.c: Likewise.
13350         * tests/uninorm/test-composition.c: Likewise.
13351         * tests/uninorm/test-decomposing-form.c: Likewise.
13352         * tests/uninorm/test-decomposition.c: Likewise.
13353         * tests/uninorm/test-u8-nfc.c: Likewise.
13354         * tests/uninorm/test-u8-nfd.c: Likewise.
13355         * tests/uninorm/test-u8-nfkc.c: Likewise.
13356         * tests/uninorm/test-u8-nfkd.c: Likewise.
13357         * tests/uninorm/test-u8-normcmp.c: Likewise.
13358         * tests/uninorm/test-u8-normcoll.c: Likewise.
13359         * tests/uninorm/test-u16-nfc.c: Likewise.
13360         * tests/uninorm/test-u16-nfd.c: Likewise.
13361         * tests/uninorm/test-u16-nfkc.c: Likewise.
13362         * tests/uninorm/test-u16-nfkd.c: Likewise.
13363         * tests/uninorm/test-u16-normcmp.c: Likewise.
13364         * tests/uninorm/test-u16-normcoll.c: Likewise.
13365         * tests/uninorm/test-u32-nfc.c: Likewise.
13366         * tests/uninorm/test-u32-nfd.c: Likewise.
13367         * tests/uninorm/test-u32-nfkc.c: Likewise.
13368         * tests/uninorm/test-u32-nfkd.c: Likewise.
13369         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13370         * tests/uninorm/test-u32-normcmp.c: Likewise.
13371         * tests/uninorm/test-u32-normcoll.c: Likewise.
13372         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13373         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13374         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13375         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13376         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13377         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13378         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13379         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13380         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13381         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13382         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13383         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13384         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13385         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13386         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13387         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13388         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13389         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13390         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13391         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13392         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13393         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13394         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13395         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13396         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13397         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13398         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13399         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13400         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13401         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13402         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13403         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13404         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13405         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13406         * tests/uniwidth/test-u8-width.c: Likewise.
13407         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13408         * tests/uniwidth/test-u16-width.c: Likewise.
13409         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13410         * tests/uniwidth/test-u32-width.c: Likewise.
13411         * tests/uniwidth/test-uc_width.c: Likewise.
13412         * tests/uniwidth/test-uc_width2.c: Likewise.
13413         * modules/acl-tests (Files): Add tests/macros.h.
13414         * modules/areadlink-tests (Files): Likewise.
13415         * modules/areadlink-with-size-tests (Files): Likewise.
13416         * modules/areadlinkat-tests (Files): Likewise.
13417         * modules/areadlinkat-with-size-tests (Files): Likewise.
13418         * modules/argmatch-tests (Files): Likewise.
13419         * modules/argv-iter-tests (Files): Likewise.
13420         * modules/array-list-tests (Files): Likewise.
13421         * modules/array-mergesort-tests (Files): Likewise.
13422         * modules/array-oset-tests (Files): Likewise.
13423         * modules/avltree-list-tests (Files): Likewise.
13424         * modules/avltree-oset-tests (Files): Likewise.
13425         * modules/avltreehash-list-tests (Files): Likewise.
13426         * modules/base64-tests (Files): Likewise.
13427         * modules/binary-io-tests (Files): Likewise.
13428         * modules/bitrotate-tests (Files): Likewise.
13429         * modules/btowc-tests (Files): Likewise.
13430         * modules/byteswap-tests (Files): Likewise.
13431         * modules/c-ctype-tests (Files): Likewise.
13432         * modules/c-stack-tests (Files): Likewise.
13433         * modules/c-strcase-tests (Files): Likewise.
13434         * modules/c-strcasestr-tests (Files): Likewise.
13435         * modules/c-strstr-tests (Files): Likewise.
13436         * modules/canonicalize-lgpl-tests (Files): Likewise.
13437         * modules/canonicalize-tests (Files): Likewise.
13438         * modules/carray-list-tests (Files): Likewise.
13439         * modules/ceilf-tests (Files): Likewise.
13440         * modules/ceill-tests (Files): Likewise.
13441         * modules/chown-tests (Files): Likewise.
13442         * modules/cloexec-tests (Files): Likewise.
13443         * modules/copy-file-tests (Files): Likewise.
13444         * modules/count-one-bits-tests (Files): Likewise.
13445         * modules/dprintf-posix-tests (Files): Likewise.
13446         * modules/dup2-tests (Files): Likewise.
13447         * modules/dup3-tests (Files): Likewise.
13448         * modules/duplocale-tests (Files): Likewise.
13449         * modules/fbufmode-tests (Files): Likewise.
13450         * modules/fchdir-tests (Files): Likewise.
13451         * modules/fcntl-safer-tests (Files): Likewise.
13452         * modules/fcntl-tests (Files): Likewise.
13453         * modules/fdopendir-tests (Files): Likewise.
13454         * modules/fdutimensat-tests (Files): Likewise.
13455         * modules/fflush-tests (Files): Likewise.
13456         * modules/filevercmp-tests (Files): Likewise.
13457         * modules/flock-tests (Files): Likewise.
13458         * modules/floorf-tests (Files): Likewise.
13459         * modules/floorl-tests (Files): Likewise.
13460         * modules/fnmatch-tests (Files): Likewise.
13461         * modules/fopen-safer-tests (Files): Likewise.
13462         * modules/fopen-tests (Files): Likewise.
13463         * modules/fpending-tests (Files): Likewise.
13464         * modules/fprintf-posix-tests (Files): Likewise.
13465         * modules/fpurge-tests (Files): Likewise.
13466         * modules/freadable-tests (Files): Likewise.
13467         * modules/freadahead-tests (Files): Likewise.
13468         * modules/freading-tests (Files): Likewise.
13469         * modules/freadptr-tests (Files): Likewise.
13470         * modules/freadseek-tests (Files): Likewise.
13471         * modules/freopen-tests (Files): Likewise.
13472         * modules/frexp-nolibm-tests (Files): Likewise.
13473         * modules/frexp-tests (Files): Likewise.
13474         * modules/frexpl-nolibm-tests (Files): Likewise.
13475         * modules/frexpl-tests (Files): Likewise.
13476         * modules/fseek-tests (Files): Likewise.
13477         * modules/fseeko-tests (Files): Likewise.
13478         * modules/fstrcmp-tests (Files): Likewise.
13479         * modules/fsync-tests (Files): Likewise.
13480         * modules/ftell-tests (Files): Likewise.
13481         * modules/ftello-tests (Files): Likewise.
13482         * modules/func-tests (Files): Likewise.
13483         * modules/futimens-tests (Files): Likewise.
13484         * modules/fwritable-tests (Files): Likewise.
13485         * modules/fwriting-tests (Files): Likewise.
13486         * modules/getcwd-tests (Files): Likewise.
13487         * modules/getdate-tests (Files): Likewise.
13488         * modules/getdelim-tests (Files): Likewise.
13489         * modules/getdtablesize-tests (Files): Likewise.
13490         * modules/getgroups-tests (Files): Likewise.
13491         * modules/getline-tests (Files): Likewise.
13492         * modules/getndelim2-tests (Files): Likewise.
13493         * modules/glob-tests (Files): Likewise.
13494         * modules/hash-tests (Files): Likewise.
13495         * modules/i-ring-tests (Files): Likewise.
13496         * modules/iconv-tests (Files): Likewise.
13497         * modules/iconv_open-utf-tests (Files): Likewise.
13498         * modules/idpriv-drop-tests (Files): Likewise.
13499         * modules/idpriv-droptemp-tests (Files): Likewise.
13500         * modules/inet_ntop-tests (Files): Likewise.
13501         * modules/inet_pton-tests (Files): Likewise.
13502         * modules/isblank-tests (Files): Likewise.
13503         * modules/isfinite-tests (Files): Likewise.
13504         * modules/isinf-tests (Files): Likewise.
13505         * modules/isnan-tests (Files): Likewise.
13506         * modules/isnand-nolibm-tests (Files): Likewise.
13507         * modules/isnand-tests (Files): Likewise.
13508         * modules/isnanf-nolibm-tests (Files): Likewise.
13509         * modules/isnanf-tests (Files): Likewise.
13510         * modules/isnanl-nolibm-tests (Files): Likewise.
13511         * modules/isnanl-tests (Files): Likewise.
13512         * modules/lchown-tests (Files): Likewise.
13513         * modules/ldexpl-tests (Files): Likewise.
13514         * modules/link-tests (Files): Likewise.
13515         * modules/linkat-tests (Files): Likewise.
13516         * modules/linked-list-tests (Files): Likewise.
13517         * modules/linkedhash-list-tests (Files): Likewise.
13518         * modules/localename-tests (Files): Likewise.
13519         * modules/lseek-tests (Files): Likewise.
13520         * modules/lstat-tests (Files): Likewise.
13521         * modules/mbmemcasecmp-tests (Files): Likewise.
13522         * modules/mbmemcasecoll-tests (Files): Likewise.
13523         * modules/mbrtowc-tests (Files): Likewise.
13524         * modules/mbscasecmp-tests (Files): Likewise.
13525         * modules/mbscasestr-tests (Files): Likewise.
13526         * modules/mbschr-tests (Files): Likewise.
13527         * modules/mbscspn-tests (Files): Likewise.
13528         * modules/mbsinit-tests (Files): Likewise.
13529         * modules/mbsncasecmp-tests (Files): Likewise.
13530         * modules/mbsnrtowcs-tests (Files): Likewise.
13531         * modules/mbspbrk-tests (Files): Likewise.
13532         * modules/mbspcasecmp-tests (Files): Likewise.
13533         * modules/mbsrchr-tests (Files): Likewise.
13534         * modules/mbsrtowcs-tests (Files): Likewise.
13535         * modules/mbsspn-tests (Files): Likewise.
13536         * modules/mbsstr-tests (Files): Likewise.
13537         * modules/memchr-tests (Files): Likewise.
13538         * modules/memchr2-tests (Files): Likewise.
13539         * modules/memcmp-tests (Files): Likewise.
13540         * modules/memmem-tests (Files): Likewise.
13541         * modules/memrchr-tests (Files): Likewise.
13542         * modules/mkdir-tests (Files): Likewise.
13543         * modules/mkfifo-tests (Files): Likewise.
13544         * modules/mkfifoat-tests (Files): Likewise.
13545         * modules/mknod-tests (Files): Likewise.
13546         * modules/nanosleep-tests (Files): Likewise.
13547         * modules/nl_langinfo-tests (Files): Likewise.
13548         * modules/obstack-printf-tests (Files): Likewise.
13549         * modules/open-tests (Files): Likewise.
13550         * modules/openat-tests (Files): Likewise.
13551         * modules/pipe-filter-gi-tests (Files): Likewise.
13552         * modules/pipe-filter-ii-tests (Files): Likewise.
13553         * modules/pipe2-tests (Files): Likewise.
13554         * modules/popen-safer-tests (Files): Likewise.
13555         * modules/popen-tests (Files): Likewise.
13556         * modules/posixtm-tests (Files): Likewise.
13557         * modules/pread-tests (Files): Likewise.
13558         * modules/printf-frexp-tests (Files): Likewise.
13559         * modules/printf-frexpl-tests (Files): Likewise.
13560         * modules/printf-posix-tests (Files): Likewise.
13561         * modules/priv-set-tests (Files): Likewise.
13562         * modules/quotearg-tests (Files): Likewise.
13563         * modules/random_r-tests (Files): Likewise.
13564         * modules/rawmemchr-tests (Files): Likewise.
13565         * modules/rbtree-list-tests (Files): Likewise.
13566         * modules/rbtree-oset-tests (Files): Likewise.
13567         * modules/rbtreehash-list-tests (Files): Likewise.
13568         * modules/readlink-tests (Files): Likewise.
13569         * modules/remove-tests (Files): Likewise.
13570         * modules/rename-tests (Files): Likewise.
13571         * modules/renameat-tests (Files): Likewise.
13572         * modules/rmdir-tests (Files): Likewise.
13573         * modules/round-tests (Files): Likewise.
13574         * modules/roundf-tests (Files): Likewise.
13575         * modules/roundl-tests (Files): Likewise.
13576         * modules/safe-alloc-tests (Files): Likewise.
13577         * modules/setenv-tests (Files): Likewise.
13578         * modules/sigaction-tests (Files): Likewise.
13579         * modules/signbit-tests (Files): Likewise.
13580         * modules/sleep-tests (Files): Likewise.
13581         * modules/snprintf-posix-tests (Files): Likewise.
13582         * modules/snprintf-tests (Files): Likewise.
13583         * modules/sprintf-posix-tests (Files): Likewise.
13584         * modules/stat-tests (Files): Likewise.
13585         * modules/stat-time-tests (Files): Likewise.
13586         * modules/strcasestr-tests (Files): Likewise.
13587         * modules/strchrnul-tests (Files): Likewise.
13588         * modules/strerror-tests (Files): Likewise.
13589         * modules/striconv-tests (Files): Likewise.
13590         * modules/striconveh-tests (Files): Likewise.
13591         * modules/striconveha-tests (Files): Likewise.
13592         * modules/strsignal-tests (Files): Likewise.
13593         * modules/strstr-tests (Files): Likewise.
13594         * modules/strtod-tests (Files): Likewise.
13595         * modules/strverscmp-tests (Files): Likewise.
13596         * modules/symlink-tests (Files): Likewise.
13597         * modules/symlinkat-tests (Files): Likewise.
13598         * modules/trunc-tests (Files): Likewise.
13599         * modules/truncf-tests (Files): Likewise.
13600         * modules/truncl-tests (Files): Likewise.
13601         * modules/uname-tests (Files): Likewise.
13602         * modules/unicase/cased-tests (Files): Likewise.
13603         * modules/unicase/ignorable-tests (Files): Likewise.
13604         * modules/unicase/locale-language-tests (Files): Likewise.
13605         * modules/unicase/tolower-tests (Files): Likewise.
13606         * modules/unicase/totitle-tests (Files): Likewise.
13607         * modules/unicase/toupper-tests (Files): Likewise.
13608         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13609         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13610         * modules/unicase/u8-casefold-tests (Files): Likewise.
13611         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13612         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13613         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13614         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13615         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13616         * modules/unicase/u8-tolower-tests (Files): Likewise.
13617         * modules/unicase/u8-totitle-tests (Files): Likewise.
13618         * modules/unicase/u8-toupper-tests (Files): Likewise.
13619         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13620         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13621         * modules/unicase/u16-casefold-tests (Files): Likewise.
13622         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13623         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13624         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13625         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13626         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13627         * modules/unicase/u16-tolower-tests (Files): Likewise.
13628         * modules/unicase/u16-totitle-tests (Files): Likewise.
13629         * modules/unicase/u16-toupper-tests (Files): Likewise.
13630         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13631         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13632         * modules/unicase/u32-casefold-tests (Files): Likewise.
13633         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13634         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13635         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13636         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13637         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13638         * modules/unicase/u32-tolower-tests (Files): Likewise.
13639         * modules/unicase/u32-totitle-tests (Files): Likewise.
13640         * modules/unicase/u32-toupper-tests (Files): Likewise.
13641         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13642         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13643         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13644         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13645         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13646         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
13647         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
13648         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
13649         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
13650         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
13651         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
13652         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
13653         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
13654         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
13655         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
13656         * modules/unictype/bidicategory-name-tests (Files): Likewise.
13657         * modules/unictype/bidicategory-of-tests (Files): Likewise.
13658         * modules/unictype/bidicategory-test-tests (Files): Likewise.
13659         * modules/unictype/block-list-tests (Files): Likewise.
13660         * modules/unictype/block-of-tests (Files): Likewise.
13661         * modules/unictype/block-test-tests (Files): Likewise.
13662         * modules/unictype/category-C-tests (Files): Likewise.
13663         * modules/unictype/category-Cc-tests (Files): Likewise.
13664         * modules/unictype/category-Cf-tests (Files): Likewise.
13665         * modules/unictype/category-Cn-tests (Files): Likewise.
13666         * modules/unictype/category-Co-tests (Files): Likewise.
13667         * modules/unictype/category-Cs-tests (Files): Likewise.
13668         * modules/unictype/category-L-tests (Files): Likewise.
13669         * modules/unictype/category-Ll-tests (Files): Likewise.
13670         * modules/unictype/category-Lm-tests (Files): Likewise.
13671         * modules/unictype/category-Lo-tests (Files): Likewise.
13672         * modules/unictype/category-Lt-tests (Files): Likewise.
13673         * modules/unictype/category-Lu-tests (Files): Likewise.
13674         * modules/unictype/category-M-tests (Files): Likewise.
13675         * modules/unictype/category-Mc-tests (Files): Likewise.
13676         * modules/unictype/category-Me-tests (Files): Likewise.
13677         * modules/unictype/category-Mn-tests (Files): Likewise.
13678         * modules/unictype/category-N-tests (Files): Likewise.
13679         * modules/unictype/category-Nd-tests (Files): Likewise.
13680         * modules/unictype/category-Nl-tests (Files): Likewise.
13681         * modules/unictype/category-No-tests (Files): Likewise.
13682         * modules/unictype/category-P-tests (Files): Likewise.
13683         * modules/unictype/category-Pc-tests (Files): Likewise.
13684         * modules/unictype/category-Pd-tests (Files): Likewise.
13685         * modules/unictype/category-Pe-tests (Files): Likewise.
13686         * modules/unictype/category-Pf-tests (Files): Likewise.
13687         * modules/unictype/category-Pi-tests (Files): Likewise.
13688         * modules/unictype/category-Po-tests (Files): Likewise.
13689         * modules/unictype/category-Ps-tests (Files): Likewise.
13690         * modules/unictype/category-S-tests (Files): Likewise.
13691         * modules/unictype/category-Sc-tests (Files): Likewise.
13692         * modules/unictype/category-Sk-tests (Files): Likewise.
13693         * modules/unictype/category-Sm-tests (Files): Likewise.
13694         * modules/unictype/category-So-tests (Files): Likewise.
13695         * modules/unictype/category-Z-tests (Files): Likewise.
13696         * modules/unictype/category-Zl-tests (Files): Likewise.
13697         * modules/unictype/category-Zp-tests (Files): Likewise.
13698         * modules/unictype/category-Zs-tests (Files): Likewise.
13699         * modules/unictype/category-and-not-tests (Files): Likewise.
13700         * modules/unictype/category-and-tests (Files): Likewise.
13701         * modules/unictype/category-byname-tests (Files): Likewise.
13702         * modules/unictype/category-name-tests (Files): Likewise.
13703         * modules/unictype/category-none-tests (Files): Likewise.
13704         * modules/unictype/category-of-tests (Files): Likewise.
13705         * modules/unictype/category-or-tests (Files): Likewise.
13706         * modules/unictype/category-test-withtable-tests (Files): Likewise.
13707         * modules/unictype/combining-class-tests (Files): Likewise.
13708         * modules/unictype/ctype-alnum-tests (Files): Likewise.
13709         * modules/unictype/ctype-alpha-tests (Files): Likewise.
13710         * modules/unictype/ctype-blank-tests (Files): Likewise.
13711         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
13712         * modules/unictype/ctype-digit-tests (Files): Likewise.
13713         * modules/unictype/ctype-graph-tests (Files): Likewise.
13714         * modules/unictype/ctype-lower-tests (Files): Likewise.
13715         * modules/unictype/ctype-print-tests (Files): Likewise.
13716         * modules/unictype/ctype-punct-tests (Files): Likewise.
13717         * modules/unictype/ctype-space-tests (Files): Likewise.
13718         * modules/unictype/ctype-upper-tests (Files): Likewise.
13719         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
13720         * modules/unictype/decimal-digit-tests (Files): Likewise.
13721         * modules/unictype/digit-tests (Files): Likewise.
13722         * modules/unictype/mirror-tests (Files): Likewise.
13723         * modules/unictype/numeric-tests (Files): Likewise.
13724         * modules/unictype/property-alphabetic-tests (Files): Likewise.
13725         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
13726         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
13727         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
13728         Likewise.
13729         * modules/unictype/property-bidi-block-separator-tests (Files):
13730         Likewise.
13731         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
13732         Likewise.
13733         * modules/unictype/property-bidi-common-separator-tests (Files):
13734         Likewise.
13735         * modules/unictype/property-bidi-control-tests (Files): Likewise.
13736         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
13737         Likewise.
13738         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
13739         Likewise.
13740         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
13741         Likewise.
13742         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
13743         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
13744         Likewise.
13745         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
13746         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
13747         Likewise.
13748         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
13749         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
13750         * modules/unictype/property-bidi-segment-separator-tests (Files):
13751         Likewise.
13752         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
13753         * modules/unictype/property-byname-tests (Files): Likewise.
13754         * modules/unictype/property-combining-tests (Files): Likewise.
13755         * modules/unictype/property-composite-tests (Files): Likewise.
13756         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
13757         * modules/unictype/property-dash-tests (Files): Likewise.
13758         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
13759         * modules/unictype/property-default-ignorable-code-point-tests (Files):
13760         Likewise.
13761         * modules/unictype/property-deprecated-tests (Files): Likewise.
13762         * modules/unictype/property-diacritic-tests (Files): Likewise.
13763         * modules/unictype/property-extender-tests (Files): Likewise.
13764         * modules/unictype/property-format-control-tests (Files): Likewise.
13765         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
13766         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
13767         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
13768         * modules/unictype/property-hex-digit-tests (Files): Likewise.
13769         * modules/unictype/property-hyphen-tests (Files): Likewise.
13770         * modules/unictype/property-id-continue-tests (Files): Likewise.
13771         * modules/unictype/property-id-start-tests (Files): Likewise.
13772         * modules/unictype/property-ideographic-tests (Files): Likewise.
13773         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
13774         * modules/unictype/property-ids-trinary-operator-tests (Files):
13775         Likewise.
13776         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
13777         * modules/unictype/property-iso-control-tests (Files): Likewise.
13778         * modules/unictype/property-join-control-tests (Files): Likewise.
13779         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
13780         * modules/unictype/property-line-separator-tests (Files): Likewise.
13781         * modules/unictype/property-logical-order-exception-tests (Files):
13782         Likewise.
13783         * modules/unictype/property-lowercase-tests (Files): Likewise.
13784         * modules/unictype/property-math-tests (Files): Likewise.
13785         * modules/unictype/property-non-break-tests (Files): Likewise.
13786         * modules/unictype/property-not-a-character-tests (Files): Likewise.
13787         * modules/unictype/property-numeric-tests (Files): Likewise.
13788         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
13789         * modules/unictype/property-other-default-ignorable-code-point-tests
13790         (Files): Likewise.
13791         * modules/unictype/property-other-grapheme-extend-tests (Files):
13792         Likewise.
13793         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
13794         * modules/unictype/property-other-id-start-tests (Files): Likewise.
13795         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
13796         * modules/unictype/property-other-math-tests (Files): Likewise.
13797         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
13798         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
13799         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
13800         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
13801         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
13802         * modules/unictype/property-private-use-tests (Files): Likewise.
13803         * modules/unictype/property-punctuation-tests (Files): Likewise.
13804         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
13805         * modules/unictype/property-radical-tests (Files): Likewise.
13806         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
13807         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
13808         * modules/unictype/property-space-tests (Files): Likewise.
13809         * modules/unictype/property-terminal-punctuation-tests (Files):
13810         Likewise.
13811         * modules/unictype/property-test-tests (Files): Likewise.
13812         * modules/unictype/property-titlecase-tests (Files): Likewise.
13813         * modules/unictype/property-unassigned-code-value-tests (Files):
13814         Likewise.
13815         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13816         * modules/unictype/property-uppercase-tests (Files): Likewise.
13817         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13818         * modules/unictype/property-white-space-tests (Files): Likewise.
13819         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13820         * modules/unictype/property-xid-start-tests (Files): Likewise.
13821         * modules/unictype/property-zero-width-tests (Files): Likewise.
13822         * modules/unictype/scripts-tests (Files): Likewise.
13823         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13824         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13825         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13826         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13827         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13828         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13829         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13830         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13831         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13832         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13833         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13834         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13835         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13836         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13837         * modules/uninorm/composition-tests (Files): Likewise.
13838         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13839         * modules/uninorm/decomposition-tests (Files): Likewise.
13840         * modules/uninorm/filter-tests (Files): Likewise.
13841         * modules/uninorm/nfc-tests (Files): Likewise.
13842         * modules/uninorm/nfd-tests (Files): Likewise.
13843         * modules/uninorm/nfkc-tests (Files): Likewise.
13844         * modules/uninorm/nfkd-tests (Files): Likewise.
13845         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13846         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13847         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13848         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13849         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13850         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13851         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13852         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13853         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13854         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13855         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13856         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13857         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13858         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13859         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13860         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13861         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13862         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13863         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13864         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13865         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13866         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13867         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13868         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13869         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13870         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13871         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13872         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13873         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13874         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13875         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13876         * modules/uniwidth/u8-width-tests (Files): Likewise.
13877         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13878         * modules/uniwidth/u16-width-tests (Files): Likewise.
13879         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13880         * modules/uniwidth/u32-width-tests (Files): Likewise.
13881         * modules/uniwidth/width-tests (Files): Likewise.
13882         * modules/unlink-tests (Files): Likewise.
13883         * modules/unsetenv-tests (Files): Likewise.
13884         * modules/usleep-tests (Files): Likewise.
13885         * modules/utimens-tests (Files): Likewise.
13886         * modules/utimensat-tests (Files): Likewise.
13887         * modules/vasnprintf-posix-tests (Files): Likewise.
13888         * modules/vasnprintf-tests (Files): Likewise.
13889         * modules/vasprintf-posix-tests (Files): Likewise.
13890         * modules/vasprintf-tests (Files): Likewise.
13891         * modules/vdprintf-posix-tests (Files): Likewise.
13892         * modules/vfprintf-posix-tests (Files): Likewise.
13893         * modules/vprintf-posix-tests (Files): Likewise.
13894         * modules/vsnprintf-posix-tests (Files): Likewise.
13895         * modules/vsnprintf-tests (Files): Likewise.
13896         * modules/vsprintf-posix-tests (Files): Likewise.
13897         * modules/wcrtomb-tests (Files): Likewise.
13898         * modules/wcsnrtombs-tests (Files): Likewise.
13899         * modules/wcsrtombs-tests (Files): Likewise.
13900         * modules/wctype-tests (Files): Likewise.
13901         * modules/wcwidth-tests (Files): Likewise.
13902         * modules/xmemdup0-tests (Files): Likewise.
13903         * modules/xprintf-posix-tests (Files): Likewise.
13904         * modules/xvasprintf-tests (Files): Likewise.
13905
13906 2009-12-24  Eric Blake  <ebb9@byu.net>
13907
13908         test-nanosleep: fix typo
13909         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13910         patch.
13911         Reported by Bruno Haible.
13912
13913 2009-12-24  Bruno Haible  <bruno@clisp.org>
13914
13915         Reduce namespace pollution on glibc systems.
13916         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13917         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13918         systems.
13919         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13920         <getopt.h> on glibc systems.
13921         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13922         systems.
13923         * lib/fcntl.c: Include <unistd.h> here instead.
13924
13925 2009-12-24  Bruno Haible  <bruno@clisp.org>
13926
13927         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13928
13929 2009-12-24  Eric Blake  <ebb9@byu.net>
13930
13931         tests: add signature checks
13932         * tests/signature.h (SIGNATURE_CHECK): New file.
13933         * modules/atexit-tests (Files): Use it.
13934         * modules/btowc-tests (Files): Likewise.
13935         * modules/canonicalize-lgpl-tests (Files): Likewise.
13936         * modules/ceilf-tests (Files): Likewise.
13937         * modules/ceill-tests (Files): Likewise.
13938         * modules/chown-tests (Files): Likewise.
13939         * modules/dprintf-posix-tests (Files): Likewise.
13940         * modules/dup2-tests (Files): Likewise.
13941         * modules/dup3-tests (Files): Likewise.
13942         * modules/duplocale-tests (Files): Likewise.
13943         * modules/fchdir-tests (Files): Likewise.
13944         * modules/fcntl-tests (Files): Likewise.
13945         * modules/fdopendir-tests (Files): Likewise.
13946         * modules/fflush-tests (Files): Likewise.
13947         * modules/flock-tests (Files): Likewise.
13948         * modules/floorf-tests (Files): Likewise.
13949         * modules/floorl-tests (Files): Likewise.
13950         * modules/fnmatch-tests (Files): Likewise.
13951         * modules/fopen-tests (Files): Likewise.
13952         * modules/fprintf-posix-tests (Files): Likewise.
13953         * modules/freopen-tests (Files): Likewise.
13954         * modules/frexp-nolibm-tests (Files): Likewise.
13955         * modules/frexp-tests (Files): Likewise.
13956         * modules/frexpl-nolibm-tests (Files): Likewise.
13957         * modules/frexpl-tests (Files): Likewise.
13958         * modules/fseek-tests (Files): Likewise.
13959         * modules/fseeko-tests (Files): Likewise.
13960         * modules/fsync-tests (Files): Likewise.
13961         * modules/ftell-tests (Files): Likewise.
13962         * modules/ftello-tests (Files): Likewise.
13963         * modules/futimens-tests (Files): Likewise.
13964         * modules/getaddrinfo-tests (Files): Likewise.
13965         * modules/getcwd-tests (Files): Likewise.
13966         * modules/getdelim-tests (Files): Likewise.
13967         * modules/getdtablesize-tests (Files): Likewise.
13968         * modules/getgroups-tests (Files): Likewise.
13969         * modules/gethostname-tests (Files): Likewise.
13970         * modules/getline-tests (Files): Likewise.
13971         * modules/getopt-posix-tests (Files): Likewise.
13972         * modules/gettimeofday-tests (Files): Likewise.
13973         * modules/glob-tests (Files): Likewise.
13974         * modules/iconv-tests (Files): Likewise.
13975         * modules/inet_ntop-tests (Files): Likewise.
13976         * modules/inet_pton-tests (Files): Likewise.
13977         * modules/isblank-tests (Files): Likewise.
13978         * modules/lchown-tests (Files): Likewise.
13979         * modules/ldexpl-tests (Files): Likewise.
13980         * modules/link-tests (Files): Likewise.
13981         * modules/linkat-tests (Files): Likewise.
13982         * modules/lseek-tests (Files): Likewise.
13983         * modules/lstat-tests (Files): Likewise.
13984         * modules/mbrtowc-tests (Files): Likewise.
13985         * modules/mbsinit-tests (Files): Likewise.
13986         * modules/mbsnrtowcs-tests (Files): Likewise.
13987         * modules/mbsrtowcs-tests (Files): Likewise.
13988         * modules/memchr-tests (Files): Likewise.
13989         * modules/memcmp-tests (Files): Likewise.
13990         * modules/memmem-tests (Files): Likewise.
13991         * modules/memrchr-tests (Files): Likewise.
13992         * modules/mkdir-tests (Files): Likewise.
13993         * modules/mkfifo-tests (Files): Likewise.
13994         * modules/mkfifoat-tests (Files): Likewise.
13995         * modules/mknod-tests (Files): Likewise.
13996         * modules/nanosleep-tests (Files): Likewise.
13997         * modules/nl_langinfo-tests (Files): Likewise.
13998         * modules/obstack-printf-tests (Files): Likewise.
13999         * modules/open-tests (Files): Likewise.
14000         * modules/openat-tests (Files): Likewise.
14001         * modules/perror-tests (Files): Likewise.
14002         * modules/pipe2-tests (Files): Likewise.
14003         * modules/poll-tests (Files): Likewise.
14004         * modules/popen-tests (Files): Likewise.
14005         * modules/posix_spawn-tests (Files): Likewise.
14006         * modules/posix_spawnp-tests (Files): Likewise.
14007         * modules/pread-tests (Files): Likewise.
14008         * modules/printf-posix-tests (Files): Likewise.
14009         * modules/pty-tests (Files): Likewise.
14010         * modules/random_r-tests (Files): Likewise.
14011         * modules/rawmemchr-tests (Files): Likewise.
14012         * modules/readlink-tests (Files): Likewise.
14013         * modules/remove-tests (Files): Likewise.
14014         * modules/rename-tests (Files): Likewise.
14015         * modules/renameat-tests (Files): Likewise.
14016         * modules/rmdir-tests (Files): Likewise.
14017         * modules/round-tests (Files): Likewise.
14018         * modules/roundf-tests (Files): Likewise.
14019         * modules/roundl-tests (Files): Likewise.
14020         * modules/select-tests (Files): Likewise.
14021         * modules/setenv-tests (Files): Likewise.
14022         * modules/sigaction-tests (Files): Likewise.
14023         * modules/sleep-tests (Files): Likewise.
14024         * modules/snprintf-posix-tests (Files): Likewise.
14025         * modules/snprintf-tests (Files): Likewise.
14026         * modules/sprintf-posix-tests (Files): Likewise.
14027         * modules/stat-tests (Files): Likewise.
14028         * modules/strcasestr-tests (Files): Likewise.
14029         * modules/strchrnul-tests (Files): Likewise.
14030         * modules/strerror-tests (Files): Likewise.
14031         * modules/strsignal-tests (Files): Likewise.
14032         * modules/strstr-tests (Files): Likewise.
14033         * modules/strtod-tests (Files): Likewise.
14034         * modules/strverscmp-tests (Files): Likewise.
14035         * modules/symlink-tests (Files): Likewise.
14036         * modules/symlinkat-tests (Files): Likewise.
14037         * modules/times-tests (Files): Likewise.
14038         * modules/trunc-tests (Files): Likewise.
14039         * modules/truncf-tests (Files): Likewise.
14040         * modules/truncl-tests (Files): Likewise.
14041         * modules/tsearch-tests (Files): Likewise.
14042         * modules/uname-tests (Files): Likewise.
14043         * modules/unlink-tests (Files): Likewise.
14044         * modules/unsetenv-tests (Files): Likewise.
14045         * modules/usleep-tests (Files): Likewise.
14046         * modules/utimensat-tests (Files): Likewise.
14047         * modules/vasprintf-tests (Files): Likewise.
14048         * modules/vdprintf-posix-tests (Files): Likewise.
14049         * modules/vfprintf-posix-tests (Files): Likewise.
14050         * modules/vprintf-posix-tests (Files): Likewise.
14051         * modules/vsnprintf-posix-tests (Files): Likewise.
14052         * modules/vsnprintf-tests (Files): Likewise.
14053         * modules/vsprintf-posix-tests (Files): Likewise.
14054         * modules/wcrtomb-tests (Files): Likewise.
14055         * modules/wcsnrtombs-tests (Files): Likewise.
14056         * modules/wcsrtombs-tests (Files): Likewise.
14057         * modules/wcwidth-tests (Files): Likewise.
14058         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
14059         * tests/test-isinf.c (isinf): Likewise.
14060         * tests/test-isnan.c (isnan): Likewise.
14061         * tests/test-signbit.c (signbit): Likewise.
14062         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
14063         declaration, either as macro or with correct signature.
14064         (select): Ensure function under test is declared with correct
14065         signature in correct header.
14066         * tests/test-atexit.c (atexit): Likewise.
14067         * tests/test-btowc.c (btowc): Likewise.
14068         * tests/test-canonicalize-lgpl.c (realpath)
14069         (canonicalize_file_name): Likewise.
14070         * tests/test-ceilf1.c (ceilf): Likewise.
14071         * tests/test-ceill.c (ceill): Likewise.
14072         * tests/test-chown.c (chown): Likewise.
14073         * tests/test-dprintf-posix.c (dprintf): Likewise.
14074         * tests/test-dup2.c (dup2): Likewise.
14075         * tests/test-dup3.c (dup3): Likewise.
14076         * tests/test-duplocale.c (duplocale): Likewise.
14077         * tests/test-fchdir.c (fchdir): Likewise.
14078         * tests/test-fchownat.c (fchownat): Likewise.
14079         * tests/test-fcntl.c (fcntl): Likewise.
14080         * tests/test-fdopendir.c (fdopendir): Likewise.
14081         * tests/test-fflush.c (fflush): Likewise.
14082         * tests/test-flock.c (flock): Likewise.
14083         * tests/test-floorf1.c (floorf): Likewise.
14084         * tests/test-floorl.c (floorl): Likewise.
14085         * tests/test-fnmatch.c (fnmatch): Likewise.
14086         * tests/test-fopen.c (fopen): Likewise.
14087         * tests/test-fprintf-posix.c (fprintf): Likewise.
14088         * tests/test-freopen.c (freopen): Likewise.
14089         * tests/test-frexp.c (frexp): Likewise.
14090         * tests/test-frexpl.c (frexpl): Likewise.
14091         * tests/test-fseek.c (fseek): Likewise.
14092         * tests/test-fseeko.c (fseeko): Likewise.
14093         * tests/test-fstatat.c (fstatat): Likewise.
14094         * tests/test-fsync.c (fsync): Likewise.
14095         * tests/test-ftell.c (ftell): Likewise.
14096         * tests/test-ftello.c (ftello): Likewise.
14097         * tests/test-futimens.c (futimens): Likewise.
14098         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
14099         (gai_strerror): Likewise.
14100         * tests/test-getcwd.c (getcwd): Likewise.
14101         * tests/test-getdelim.c (getdelim): Likewise.
14102         * tests/test-getdtablesize.c (getdtablesize): Likewise.
14103         * tests/test-getgroups.c (getgroups): Likewise.
14104         * tests/test-gethostname.c (gethostname): Likewise.
14105         * tests/test-getline.c (getline): Likewise.
14106         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
14107         Likewise.
14108         * tests/test-gettimeofday.c (gettimeofday): Likewise.
14109         * tests/test-glob.c (glob, globfree): Likewise.
14110         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
14111         * tests/test-inet_ntop.c (inet_ntop): Likewise.
14112         * tests/test-inet_pton.c (inet_pton): Likewise.
14113         * tests/test-isblank.c (isblank): Likewise.
14114         * tests/test-lchown.c (lchown): Likewise.
14115         * tests/test-ldexpl.c (ldexpl): Likewise.
14116         * tests/test-link.c (link): Likewise.
14117         * tests/test-linkat.c (linkat): Likewise.
14118         * tests/test-lseek.c (lseek): Likewise.
14119         * tests/test-lstat.c (lstat): Likewise.
14120         * tests/test-mbrtowc.c (mbrtowc): Likewise.
14121         * tests/test-mbsinit.c (mbsinit): Likewise.
14122         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
14123         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
14124         * tests/test-memchr.c (memchr): Likewise.
14125         * tests/test-memcmp.c (memcmp): Likewise.
14126         * tests/test-memmem.c (memmem): Likewise.
14127         * tests/test-memrchr.c (memrchr): Likewise.
14128         * tests/test-mkdir.c (mkdir): Likewise.
14129         * tests/test-mkdirat.c (mkdirat): Likewise.
14130         * tests/test-mkfifo.c (mkfifo): Likewise.
14131         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
14132         * tests/test-mknod.c (mknod): Likewise.
14133         * tests/test-nanosleep.c (nanosleep): Likewise.
14134         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
14135         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
14136         Likewise.
14137         * tests/test-open.c (open): Likewise.
14138         * tests/test-openat.c (openat): Likewise.
14139         * tests/test-perror.c (perror): Likewise.
14140         * tests/test-pipe2.c (pipe2): Likewise.
14141         * tests/test-poll.c (poll): Likewise.
14142         * tests/test-popen.c (popen, pclose): Likewise.
14143         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
14144         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
14145         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
14146         (posix_spawn_file_actions_destroy)
14147         (posix_spawn_file_actions_addclose)
14148         (posix_spawn_file_actions_addopen)
14149         (posix_spawn_file_actions_adddup2): Likewise.
14150         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
14151         * tests/test-pread.c (pread): Likewise.
14152         * tests/test-printf-posix.c (printf): Likewise.
14153         * tests/test-pty.c (openpty, forkpty): Likewise.
14154         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
14155         (random_r): Likewise.
14156         * tests/test-rawmemchr.c (rawmemchr): Likewise.
14157         * tests/test-readlink.c (readlink): Likewise.
14158         * tests/test-remove.c (remove): Likewise.
14159         * tests/test-rename.c (rename): Likewise.
14160         * tests/test-renameat.c (renameat): Likewise.
14161         * tests/test-rmdir.c (rmdir): Likewise.
14162         * tests/test-round1.c (round): Likewise.
14163         * tests/test-roundf1.c (roundf): Likewise.
14164         * tests/test-roundl.c (roundl): Likewise.
14165         * tests/test-setenv.c (setenv): Likewise.
14166         * tests/test-sigaction.c (sigaction): Likewise.
14167         * tests/test-sleep.c (sleep): Likewise.
14168         * tests/test-snprintf.c (snprintf): Likewise.
14169         * tests/test-sprintf-posix.c (sprintf): Likewise.
14170         * tests/test-stat.c (stat): Likewise.
14171         * tests/test-stpncpy.c (stpncpy): Likewise.
14172         * tests/test-strcasestr.c (strcasestr): Likewise.
14173         * tests/test-strchrnul.c (strchrnul): Likewise.
14174         * tests/test-strerror.c (strerror): Likewise.
14175         * tests/test-strsignal.c (strsignal): Likewise.
14176         * tests/test-strstr.c (strstr): Likewise.
14177         * tests/test-strtod.c (strtod): Likewise.
14178         * tests/test-strverscmp.c (strverscmp): Likewise.
14179         * tests/test-symlink.c (symlink): Likewise.
14180         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
14181         * tests/test-times.c (times): Likewise.
14182         * tests/test-trunc1.c (trunc): Likewise.
14183         * tests/test-truncf1.c (truncf): Likewise.
14184         * tests/test-truncl.c (truncl): Likewise.
14185         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
14186         Likewise.
14187         * tests/test-uname.c (uname): Likewise.
14188         * tests/test-unlink.c (unlink): Likewise.
14189         * tests/test-unlinkat.c (unlinkat): Likewise.
14190         * tests/test-unsetenv.c (unsetenv): Likewise.
14191         * tests/test-usleep.c (usleep): Likewise.
14192         * tests/test-utimensat.c (utimensat): Likewise.
14193         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
14194         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
14195         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
14196         * tests/test-vprintf-posix.c (vprintf): Likewise.
14197         * tests/test-vsnprintf.c (vsnprintf): Likewise.
14198         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
14199         * tests/test-wcrtomb.c (wcrtomb): Likewise.
14200         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
14201         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
14202         * tests/test-wcwidth.c (wcwidth): Likewise.
14203
14204         build: pull in conditional headers during GNULIB_POSIXCHECK
14205         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
14206         definitions from any conditionally-included headers.
14207         * lib/stdlib.in.h (includes): Likewise.
14208         * lib/unistd.in.h (includes): Likewise.
14209
14210 2009-12-24  Bruno Haible  <bruno@clisp.org>
14211
14212         * tests/test-argv-iter.c: Include header file being tested immediately
14213         after config.h.
14214         * tests/test-base64.c: Likewise.
14215         * tests/test-flock.c: Likewise.
14216         * tests/test-fsync.c: Likewise.
14217         * tests/test-getdate.c: Likewise.
14218         * tests/test-getndelim2.c: Likewise.
14219         * tests/test-isfinite.c: Likewise.
14220         * tests/test-isinf.c: Likewise.
14221         * tests/test-strerror.c: Likewise.
14222         * tests/test-strsignal.c: Likewise.
14223
14224 2009-12-23  Eric Blake  <ebb9@byu.net>
14225
14226         unistd: work around cygwin bug
14227         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
14228         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
14229         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14230
14231 2009-12-23  Bruno Haible  <bruno@clisp.org>
14232
14233         localename: More tests.
14234         * tests/test-localename.c (SIZEOF): New macro.
14235         (categories): New variable.
14236         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
14237         test_locale_name_default): Add test w.r.t. thread locale.
14238         (test_locale_name_thread): New function.
14239         (main): Invoke it.
14240
14241         localename: Make aware of thread locale.
14242         * lib/localename.h (gl_locale_name_thread): New declaration.
14243         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
14244         behaviour with respect to thread locale.
14245         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
14246         <langinfo.h>, glthread/lock.h.
14247         (SIZE_BITS): New macro.
14248         (string_hash): New function.
14249         (struct hash_node): New type.
14250         (HASH_TABLE_SIZE): New macro.
14251         (struniq_hash_table, struniq_lock): New variables.
14252         (struniq): New function.
14253         (gl_locale_name_thread): New function.
14254         (gl_locale_name): Invoke it.
14255         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
14256         * modules/localename (Depends-on): Add lock.
14257         Reported by Mike Gran <spk121@yahoo.com>.
14258
14259 2009-12-23  Eric Blake  <ebb9@byu.net>
14260
14261         va-args: new module
14262         * modules/va-args: New file.
14263         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
14264         * MODULES.html.sh (Core language properties): Mention it.
14265
14266         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
14267         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
14268         named alias for __attribute__((__unused__)).
14269         * lib/chown.c: Update client.
14270         * lib/fchmodat.c: Likewise.
14271         * lib/fts.c: Likewise.
14272         * lib/getdate.y: Likewise.
14273         * lib/getgroups.c: Likewise.
14274         * lib/getopt.c: Likewise.
14275         * lib/getugroups.c: Likewise.
14276         * lib/mkdir.c: Likewise.
14277         * lib/mkfifo.c: Likewise.
14278         * lib/mkfifoat.c: Likewise.
14279         * lib/mknod.c: Likewise.
14280         * lib/mknodat.c: Likewise.
14281         * lib/readlink.c: Likewise.
14282         * lib/se-context.in.h: Likewise.
14283         * lib/se-selinux.in.h: Likewise.
14284         * lib/sockets.c: Likewise.
14285         * lib/symlink.c: Likewise.
14286         * lib/symlinkat.c: Likewise.
14287         * lib/unicodeio.c: Likewise.
14288         * lib/unistr.h: Likewise.
14289         * tests/test-areadlink.c: Likewise.
14290         * tests/test-areadlinkat.c: Likewise.
14291         * tests/test-filenamecat.c: Likewise.
14292         * tests/test-fseeko.c: Likewise.
14293         * tests/test-ftello.c: Likewise.
14294         * tests/test-getdate.c: Likewise.
14295         * tests/test-getgroups.c: Likewise.
14296         * tests/test-gethostname.c: Likewise.
14297         * tests/test-quotearg.c: Likewise.
14298         * tests/test-version-etc.c: Likewise.
14299         * tests/test-xalloc-die.c: Likewise.
14300         * tests/test-xfprintf-posix.c: Likewise.
14301         * tests/test-xprintf-posix.c: Likewise.
14302         * tests/test-xvasprintf.c: Likewise.
14303
14304         tests: avoid compiler warnings
14305         * tests/test-fcntl.c (main): Delete unused parameters.
14306         * tests/test-freopen-safer.c (main): Likewise.
14307         * tests/test-xalloc-die.c (main): Mark unused parameters.
14308         * tests/test-fseeko.c (main): Likewise.
14309         * tests/test-ftello.c (main): Likewise.
14310         * tests/test-nanosleep.c (main): Avoid declaration warning.
14311         * tests/test-sleep.c (main): Likewise.
14312         * tests/test-unsetenv.c (main): Silence warning about string
14313         literal.
14314         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14315
14316 2009-12-23  Bruno Haible  <bruno@clisp.org>
14317
14318         * tests/test-localename.c (test_locale_name): New function, extracted
14319         from main. Also test mixed situations.
14320         (test_locale_name_posix, test_locale_name_environ,
14321         test_locale_name_default): New functions.
14322         (main): Invoke them all.
14323         * modules/localename-tests (configure.ac): Test for newlocale.
14324
14325 2009-12-23  Bruno Haible  <bruno@clisp.org>
14326
14327         unistd: Ensure getcwd gets declared before being overridden.
14328         * lib/unistd.in.h: Conditionally include <io.h>.
14329
14330 2009-12-22  Bruno Haible  <bruno@clisp.org>
14331
14332         wchar: Diagnose broken combination of glibc and gcc versions and flags.
14333         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
14334         (gl_WCHAR_H): Invoke it.
14335         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
14336         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
14337         Reported by Karl Berry <karl@freefriends.org>.
14338
14339 2009-12-22  Eric Blake  <ebb9@byu.net>
14340
14341         math, unistd: avoid redundant includes
14342         * lib/math.in.h (isnan): No need to re-include <math.h>.
14343         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
14344
14345         getsubopt: work around cygwin bug
14346         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
14347         avoid conflicting with system getsubopt.
14348         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
14349         bug.
14350
14351         getopt: synchronize from glibc
14352         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
14353         parameter order.  Adjust all callers.
14354         (_getopt_internal_r, main): Adjust quoting in error messages.
14355         Drop considerations for outdated POSIX 1003.2 error message.
14356         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
14357         callers.
14358         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
14359
14360         test-getopt: test stderr behavior
14361         * modules/getopt-posix-tests (Depends-on): Add dup2.
14362         * tests/test-getopt.c (ASSERT): Avoid stderr.
14363         (main): Move stderr to a temporary file.
14364         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
14365         Instead, add parameter to inform caller if output occurred.
14366         (test_getopt): Adjust all existing tests to expect silence, and
14367         add new tests of leading ":".
14368         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14369         glibc shortcomings with leading "-:" or "+:" in optstring.
14370         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14371         Likewise.
14372         * doc/posix-functions/getopt.texi (getopt): Likewise.
14373
14374         test-getopt: enhance test
14375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14376         supports optind=0.
14377         * tests/test-getopt.c (OPTIND_MIN): Move...
14378         * tests/test-getopt.h (OPTIND_MIN): ...here.
14379         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14380         Require that optind=0 works, since modern BSD supports it in
14381         addition to optreset, and since coreutils expects it.
14382         (test_getopt_long_only): New test.
14383         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14384         glibc shortcomings with 'W;', and enforcement of optind=0.
14385         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14386         Likewise.
14387
14388 2009-12-21  Bruno Haible  <bruno@clisp.org>
14389
14390         localename: Improvements for MacOS X and Cygwin.
14391         * lib/localename.h (gl_locale_name_environ): New declaration.
14392         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14393         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14394         (gl_locale_name_posix): Invoke it.
14395         (gl_locale_name_default): Add comments. Use Windows native API also on
14396         Cygwin.
14397
14398 2009-12-21  Bruno Haible  <bruno@clisp.org>
14399
14400         Update list of Win32 locale ids.
14401         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14402         (LANG_SAMI): Renamed from LANG_SAAMI.
14403         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14404         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14405         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14406         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14407         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14408         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14409         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14410         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14411         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14412         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14413         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14414         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14415         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14416         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14417         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14418         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14419         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14420         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14421         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14422         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14423         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14424         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14425         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14426         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14427         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14428         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14429         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14430         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14431         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14432         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14433         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14434         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14435         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14436         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14437         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14438         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14439         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14440         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14441         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14442         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14443         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14444         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14445         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14446         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14447         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14448         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14449         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14450         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14451         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14452         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14453         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14454         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14455         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14456         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14457         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14458         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14459         Add more languages and countries for Sami, Sorbian. Add more countries
14460         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14461         for Pashto. Change country for Syriac, Tswana.
14462
14463 2009-12-21  Eric Blake  <ebb9@byu.net>
14464
14465         test-utimens: avoid spurious failure
14466         * tests/test-chown.h (nap): Factor...
14467         * tests/nap.h: ...into new file.
14468         * tests/test-lchown.h (nap): Avoid duplication.
14469         * tests/test-utimens-common.h (nap): Use shared implementation,
14470         necessary on file systems with 1-second resolution.
14471         * modules/chown-tests (Files): Include new file.
14472         * modules/fdutimensat-tests (Files): Likewise.
14473         * modules/futimens-tests (Files): Likewise.
14474         * modules/lchown-tests (Files): Likewise.
14475         * modules/openat-tests (Files): Likewise.
14476         * modules/utimens-tests (Files): Likewise.
14477         * modules/utimensat-tests (Files): Likewise.
14478
14479 2009-12-19  Eric Blake  <ebb9@byu.net>
14480
14481         futimens, utimensat: work around Linux bug
14482         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14483         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14484         * lib/utimensat.c (rpl_utimensat): Work around it.
14485         * lib/futimens.c (rpl_futimens): Adjust comment.
14486
14487         utimens: work around Linux ctime bug
14488         * lib/utimens.c (detect_ctime_bug): New helper function.
14489         (update_timespec): Differentiate between workaround needed for
14490         this bug vs. what is needed for systems that lack utimensat.
14491         (fdutimens, lutimens): Work around bug.
14492
14493         utimens: check for ctime update
14494         * tests/test-utimens-common.h (check_ctime): Define.
14495         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14496         * tests/test-futimens.h (test_futimens): Likewise.
14497         * tests/test-lutimens.h (test_lutimens): Likewise.
14498         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14499         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14500
14501 2009-12-19  Bruno Haible  <bruno@clisp.org>
14502
14503         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14504         * tests/test-dprintf-posix2.sh: New file.
14505         * tests/test-dprintf-posix2.c: New file.
14506         * modules/dprintf-posix-tests (Files): Add them.
14507         (configure.ac): Check for getrlimit and setrlimit.
14508         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14509
14510 2009-12-19  Bruno Haible  <bruno@clisp.org>
14511
14512         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14513         * tests/test-fprintf-posix3.sh: New file.
14514         * tests/test-fprintf-posix3.c: New file.
14515         * modules/fprintf-posix-tests (Files): Add them.
14516         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14517
14518 2009-12-19  Eric Blake  <ebb9@byu.net>
14519
14520         dirfd: fix prototype
14521         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14522         * lib/dirfd.c (dirfd): Likewise.
14523
14524         canonicalize: reduce memory usage
14525         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14526         allocation to size.
14527         Reported by Solar Designer <solar@openwall.com>.
14528
14529 2009-12-19  Bruno Haible  <bruno@clisp.org>
14530
14531         New module attribute 'Applicability'.
14532         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14533         * gnulib-tool: New option --extract-applicability.
14534         (func_usage): Document it.
14535         (sed_extract_prog): Recognize it.
14536         (func_get_applicability): New function.
14537         (func_import): Generalize handling of 'link-warning' module.
14538         * modules/link-warning (Applicability): New section.
14539         * modules/arg-nonnull (Applicability): New section.
14540         Repoted by Simon Josefsson <simon@josefsson.org>.
14541
14542 2009-12-19  Bruno Haible  <bruno@clisp.org>
14543
14544         fflush: tweak
14545         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14546         * lib/fseeko.c (rpl_fseeko): Likewise.
14547
14548 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14549
14550         * lib/gl_list.h: Fix typo in comment.
14551
14552 2009-12-16  Eric Blake  <ebb9@byu.net>
14553
14554         fcntl: use to simplify other modules
14555         * modules/cloexec (Depends-on): Add fcntl.
14556         * modules/fchdir (Depends-on): Likewise.
14557         * modules/fd-safer-flag (Depends-on): Likewise.
14558         * modules/unistd-safer (Depends-on): Likewise.
14559         * modules/dup3 (configure.ac): Set module indicator.
14560         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14561         missing.
14562         * lib/fchdir.c (_gl_register_dup): Fix comment.
14563         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14564         * lib/dup-safer.c (dup_safer): Likewise.
14565         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14566         * lib/dup3.c (dup3): Likewise.
14567         * tests/test-fchdir.c (main): Enhance test.
14568         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14569
14570         fcntl: port portions of fcntl to mingw
14571         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14572         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14573         replacement for mingw.
14574         * modules/fcntl (Description): Update.
14575         (Depends-on): Add dup2.
14576         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14577         * modules/fcntl-h (Makefile.am): Substitute it.
14578         * lib/fcntl.in.h (fcntl): Update declaration.
14579         (F_DUPFD, F_GETFD): New macros, when needed.
14580         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14581         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14582         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14583         we now guarantee.
14584
14585         fcntl: work around cygwin bug in F_DUPFD
14586         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14587         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14588         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14589         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14590         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14591
14592         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14593         * modules/fcntl (Files): List new files.
14594         (configure.ac): Run a test.
14595         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14596         * lib/fcntl.c (rpl_fcntl): Likewise.
14597         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14598         (gl_FCNTL_H): Always replace fcntl.h.
14599         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14600         * lib/fcntl.in.h (fcntl): Declare replacement.
14601         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14602         needed, plus a witness.
14603         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14604         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14605         * tests/test-fcntl.c: New file.
14606         * modules/fcntl-tests: Likewise.
14607
14608         binary-io: avoid potential compilation warning
14609         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14610         directives.
14611
14612         fflush: avoid compilation error on NetBSD
14613         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14614         between off_t and fpos_t, since the latter is sometimes a struct.
14615         * lib/fseeko.c (rpl_fseeko): Likewise.
14616         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14617
14618 2009-12-15  Eric Blake  <ebb9@byu.net>
14619
14620         fcntl-h, stdio, sys_ioctl: fix declarations
14621         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14622         function must not take arguments.
14623         * lib/sys_ioctl.in.h (ioctl): Likewise.
14624         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14625         (open): Add a link warning.
14626
14627 2009-12-15  Jim Meyering  <meyering@redhat.com>
14628
14629         areadlink, areadlink-with-size: relax license to LGPLv2+
14630         * modules/areadlink (License): Relax to LGPLv2+.
14631         * modules/areadlink-with-size (License): Likewise.
14632
14633 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14634             Bruno Haible  <bruno@clisp.org>
14635
14636         *printf: Fix memory leak.
14637         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14638         * lib/vfprintf.c (vfprintf): Likewise.
14639         * lib/dprintf.c (dprintf): Likewise.
14640         * lib/vdprintf.c (vdprintf): Likewise.
14641
14642 2009-12-14  Eric Blake  <ebb9@byu.net>
14643
14644         accept4: adjust module dependencies
14645         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14646
14647         utimens: one more try at avoiding compiler warning
14648         * lib/utimens.c (lutimens): Lower scope of result.
14649
14650 2009-12-13  Bruno Haible  <bruno@clisp.org>
14651
14652         Move the malloc checking from module 'list' to new module 'xlist'.
14653         * modules/xlist: New file.
14654         * lib/gl_xlist.h: New file.
14655         * lib/gl_xlist.c: New file.
14656         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
14657         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
14658         gl_list_add_last, gl_list_add_before, gl_list_add_after,
14659         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
14660         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
14661         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
14662         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
14663         gl_sortedlist_nx_add): New declarations.
14664         (struct gl_list_implementation): Rename and change methods accordingly.
14665         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
14666         (gl_list_nx_create): Renamed from gl_list_create.
14667         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14668         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14669         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14670         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14671         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14672         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14673         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14674         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14675         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
14676         gl_list_create_empty.
14677         (gl_list_nx_create): Renamed from gl_list_create.
14678         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14679         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14680         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14681         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14682         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14683         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14684         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14685         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14686         * lib/gl_array_list.c: Don't include xalloc.h.
14687         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
14688         NULL upon out-of-memory.
14689         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
14690         out-of-memory.
14691         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
14692         Change return type to 'int'.
14693         (gl_array_nx_set_at): Renamed from gl_array_set_at.
14694         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14695         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
14696         upon out-of-memory.
14697         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
14698         upon out-of-memory.
14699         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
14700         upon out-of-memory.
14701         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
14702         upon out-of-memory.
14703         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
14704         out-of-memory.
14705         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
14706         Update.
14707         (gl_array_list_implementation): Update.
14708         * lib/gl_carray_list.c: Don't include xalloc.h.
14709         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
14710         Return NULL upon out-of-memory.
14711         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
14712         out-of-memory.
14713         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
14714         Change return type to 'int'.
14715         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
14716         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14717         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
14718         upon out-of-memory.
14719         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
14720         upon out-of-memory.
14721         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
14722         out-of-memory.
14723         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
14724         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
14725         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
14726         Update.
14727         (gl_carray_list_implementation): Update.
14728         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
14729         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
14730         gl_linked_create_empty. Return NULL upon out-of-memory.
14731         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
14732         out-of-memory.
14733         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
14734         Change return type to 'int'. Return -1 upon out-of-memory.
14735         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
14736         out-of-memory.
14737         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
14738         upon out-of-memory.
14739         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
14740         upon out-of-memory.
14741         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
14742         NULL upon out-of-memory.
14743         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
14744         upon out-of-memory.
14745         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
14746         out-of-memory.
14747         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
14748         Update.
14749         * lib/gl_linked_list.c: Don't include xalloc.h.
14750         (gl_linked_list_implementation): Update.
14751         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
14752         (add_to_bucket): Change return type to 'int'.
14753         (gl_linkedhash_list_implementation): Update.
14754         * lib/gl_anytree_list1.h (free_subtree): New function.
14755         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
14756         gl_tree_create_empty. Return NULL upon out-of-memory.
14757         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
14758         Change return type to 'int'. Return -1 upon out-of-memory.
14759         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
14760         out-of-memory.
14761         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
14762         (gl_tree_remove_node): New function, moved here from
14763         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
14764         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
14765         Update.
14766         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
14767         malloc, not xmalloc. Return NULL upon out-of-memory.
14768         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14769         out-of-memory.
14770         (gl_tree_remove_node_from_tree): New function, extracted from
14771         gl_tree_remove_node.
14772         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14773         upon out-of-memory.
14774         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14775         out-of-memory.
14776         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14777         upon out-of-memory.
14778         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14779         upon out-of-memory.
14780         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14781         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
14782         not xmalloc. Return NULL upon out-of-memory.
14783         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14784         out-of-memory.
14785         (gl_tree_remove_node_from_tree): New function, extracted from
14786         gl_tree_remove_node.
14787         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14788         upon out-of-memory.
14789         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14790         out-of-memory.
14791         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14792         upon out-of-memory.
14793         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14794         upon out-of-memory.
14795         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14796         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
14797         gl_anytree_list1.h before gl_anyavltree_list2.h.
14798         (gl_avltree_list_implementation): Update.
14799         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
14800         gl_anytree_list1.h before gl_anyavltree_list2.h.
14801         (gl_rbtree_list_implementation): Update.
14802         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
14803         Change return type to 'int'. Return -1 upon out-of-memory. Use
14804         __builtin_expect.
14805         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
14806         (gl_avltreehash_list_implementation): Update.
14807         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
14808         (gl_rbtreehash_list_implementation): Update.
14809         * modules/array-list (Depends-on): Remove xalloc.
14810         * modules/carray-list (Depends-on): Likewise.
14811         * modules/linked-list (Depends-on): Likewise.
14812         * modules/linkedhash-list (Depends-on): Likewise.
14813         * modules/avltree-list (Depends-on): Likewise.
14814         * modules/rbtree-list (Depends-on): Likewise.
14815         * modules/avltreehash-list (Depends-on): Likewise.
14816         * modules/rbtreehash-list (Depends-on): Likewise.
14817
14818         * modules/xsublist: New file.
14819         * lib/gl_xsublist.h: New file.
14820         * lib/gl_xsublist.c: New file.
14821         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14822         (gl_sublist_nx_create): New declaration.
14823         * lib/gl_sublist.c: Don't include xalloc.h.
14824         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14825         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14826         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14827         Change return type to 'int'. Return -1 upon out-of-memory.
14828         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14829         upon out-of-memory.
14830         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14831         NULL upon out-of-memory.
14832         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14833         upon out-of-memory.
14834         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14835         NULL upon out-of-memory.
14836         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14837         NULL upon out-of-memory.
14838         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14839         upon out-of-memory.
14840         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14841         (gl_sublist_list_implementation): Update.
14842         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14843         upon out-of-memory.
14844         * modules/sublist (Depends-on): Remove xalloc.
14845
14846         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14847         * tests/test-carray_list.c: Likewise.
14848         * tests/test-linked_list.c: Likewise.
14849         * tests/test-linkedhash_list.c: Likewise.
14850         * tests/test-avltree_list.c: Likewise.
14851         * tests/test-rbtree_list.c: Likewise.
14852         * tests/test-avltreehash_list.c: Likewise.
14853         * tests/test-rbtreehash_list.c: Likewise.
14854         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14855         * modules/carray-list-tests (Makefile.am): Likewise.
14856         * modules/linked-list-tests (Makefile.am): Likewise.
14857         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14858         * modules/avltree-list-tests (Makefile.am): Likewise.
14859         * modules/rbtree-list-tests (Makefile.am): Likewise.
14860         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14861         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14862
14863         * NEWS: Mention the changes.
14864
14865         * lib/clean-temp.c: Include gl_xlist.h.
14866         * modules/clean-temp (Depends-on): Add xlist.
14867
14868         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14869         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14870
14871         * tests/test-array_oset.c: Include gl_xlist.h.
14872         * modules/array-oset-tests (Depends-on): Add xlist.
14873
14874         Reported by José E. Marchesi <jemarch@gnu.org>.
14875
14876 2009-12-13  Bruno Haible  <bruno@clisp.org>
14877
14878         Move the malloc checking from module 'oset' to new module 'xoset'.
14879         * modules/xoset: New file.
14880         * lib/gl_xoset.h: New file.
14881         * lib/gl_xoset.c: New file.
14882         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14883         declarations.
14884         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14885         (struct gl_oset_implementation): Rename and change methods accordingly.
14886         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14887         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14888         'int'. Mark as __warn_unused_result__.
14889         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14890         gl_oset_create_empty.
14891         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14892         'int'.
14893         * lib/gl_array_oset.c: Don't include xalloc.h.
14894         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14895         malloc, not xmalloc.
14896         (grow): Change return type to 'int'. Don't call xalloc_die.
14897         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14898         to 'int'.
14899         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14900         'int'.
14901         (gl_array_oset_implementation): Update.
14902         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14903         gl_tree_create_empty.
14904         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14905         'int'.
14906         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14907         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14908         xmalloc.
14909         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14910         not xmalloc.
14911         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14912         xmalloc.
14913         (gl_avltree_oset_implementation): Update.
14914         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14915         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14916         xmalloc.
14917         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14918         not xmalloc.
14919         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14920         xmalloc.
14921         (gl_rbtree_oset_implementation): Update.
14922         * modules/array-oset (Depends-on): Remove xalloc.
14923         * modules/avltree-oset (Depends-on): Likewise.
14924         * modules/rbtree-oset (Depends-on): Likewise.
14925         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14926         * tests/test-avltree_oset.c: Likewise.
14927         * tests/test-rbtree_oset.c: Likewise.
14928         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14929         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14930         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14931         * NEWS: Mention the change.
14932
14933 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14934
14935         maint.mk: allow a project to override release-prep commands
14936         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14937         commands into a new rule.
14938         (release-prep): New rule.
14939         (release-prep-hook): New overridable variable.
14940
14941 2009-12-13  Bruno Haible  <bruno@clisp.org>
14942
14943         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14944
14945 2009-12-13  Jim Meyering  <meyering@redhat.com>
14946
14947         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14948         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14949
14950 2009-12-12  Bruno Haible  <bruno@clisp.org>
14951
14952         duplocale: Tweak.
14953         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14954
14955 2009-12-12  Karl Berry  <karl@gnu.org>
14956
14957         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14958
14959 2009-12-12  Bruno Haible  <bruno@clisp.org>
14960
14961         * m4/po.m4: Undo incorrect untabification.
14962
14963 2009-12-12  Bruno Haible  <bruno@clisp.org>
14964
14965         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14966         * modules/c-strtod (Depends-on): Add locale.
14967         * modules/c-strtold (Depends-on): Likewise.
14968
14969 2009-12-12  Bruno Haible  <bruno@clisp.org>
14970
14971         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14972
14973 2009-12-11  Eric Blake  <ebb9@byu.net>
14974
14975         setenv: relax requirement in light of POSIX ruling
14976         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14977         not NULL.
14978         * tests/test-setenv.c (main): Relax test.
14979         * tests/test-unsetenv.c (main): Likewise.
14980         * doc/posix-functions/setenv.texi (setenv): Document this.
14981         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14982
14983 2009-12-11  Bruno Haible  <bruno@clisp.org>
14984
14985         New module 'fd-safer-flag'.
14986         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14987         * lib/dup-safer.c (dup_safer_flag): Remove function.
14988         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14989         * lib/fd-safer.c (fd_safer_flag): Remove function.
14990         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14991         * modules/cloexec (configure.ac): Drop indicator macro.
14992         * modules/fd-safer-flag: New file.
14993         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14994         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14995         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14996
14997 2009-12-11  Bruno Haible  <bruno@clisp.org>
14998
14999         Tests for module 'nl_langinfo'.
15000         * modules/nl_langinfo-tests: New file.
15001         * tests/test-nl_langinfo.sh: New file.
15002         * tests/test-nl_langinfo.c: New file.
15003
15004         New module 'nl_langinfo'.
15005         * lib/nl_langinfo.c: New file.
15006         * m4/nl_langinfo.m4: New file.
15007         * modules/nl_langinfo: New file.
15008         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
15009
15010 2009-12-11  Bruno Haible  <bruno@clisp.org>
15011
15012         Tests for module 'langinfo'.
15013         * modules/langinfo-tests: New file.
15014         * tests/test-langinfo.c: New file.
15015
15016         New module 'langinfo'.
15017         * lib/langinfo.in.h: New file.
15018         * m4/langinfo_h.m4: New file.
15019         * modules/langinfo: New file.
15020         * doc/posix-headers/langinfo.texi: Mention the new module.
15021
15022 2009-12-11  Bruno Haible  <bruno@clisp.org>
15023
15024         * lib/config.charset: Untabify.
15025
15026 2009-12-11  Bruno Haible  <bruno@clisp.org>
15027
15028         * modules/unistd-safer (configure.ac): Drop indicator macro.
15029
15030 2009-12-11  Bruno Haible  <bruno@clisp.org>
15031
15032         Move pipe2-safer code to its own file.
15033         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
15034         * lib/pipe-safer.c (pipe2_safer): Remove function.
15035         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
15036         (Makefile.am): Add it to lib_SOURCES.
15037
15038 2009-12-10  Bruno Haible  <bruno@clisp.org>
15039
15040         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
15041
15042 2009-12-10  Bruno Haible  <bruno@clisp.org>
15043
15044         Declare which arguments expect non-NULL values, for GCC and clang.
15045         * build-aux/arg-nonnull.h: New file.
15046         * modules/arg-nonnull: New file.
15047         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
15048         (inet_ntop, inet_pton): Use it.
15049         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
15050         (closedir, dirfd, opendir, scandir, alphasort): Use it.
15051         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
15052         (open, openat): Use it.
15053         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
15054         (fnmatch): Use it.
15055         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
15056         (getopt, getopt_long, getopt_long_only): Use it.
15057         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
15058         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
15059         Use it.
15060         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
15061         (iconv_open): Use it.
15062         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
15063         (strtoimax, strtoumax): Use it.
15064         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
15065         (duplocale): Use it.
15066         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
15067         (frexp, frexpl): Use it.
15068         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
15069         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
15070         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
15071         (tsearch, tfind, tdelete, twalk): Use it.
15072         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
15073         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15074         sigpending): Use it.
15075         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
15076         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15077         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15078         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15079         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15080         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15081         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15082         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15083         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15084         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15085         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15086         Use it.
15087         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
15088         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
15089         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
15090         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
15091         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
15092         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
15093         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
15094         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
15095         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
15096         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
15097         strtoull, unsetenv): Use it.
15098         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
15099         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15100         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15101         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
15102         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
15103         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
15104         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
15105         (strcasecmp, strncasecmp): Use it.
15106         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
15107         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
15108         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
15109         rpl_setsockopt): Use it.
15110         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
15111         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
15112         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
15113         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
15114         (gettimeofday): Use it.
15115         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
15116         (times): Use it.
15117         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
15118         (uname): Use it.
15119         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
15120         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
15121         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
15122         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
15123         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
15124         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
15125         unlinkat, write): Use it.
15126         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
15127         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
15128         * lib/argv-iter.h: Include arg-nonnull.h.
15129         (_ATTRIBUTE_NONNULL_): Remove macro.
15130         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
15131         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
15132         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
15133         optimization.
15134         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
15135         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
15136         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
15137         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
15138         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
15139         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
15140         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
15141         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
15142         * modules/arpa_inet (Depends-on): Add arg-nonnull.
15143         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
15144         * modules/dirent (Depends-on): Add arg-nonnull.
15145         (Makefile.am): Insert arg-nonnull.h into dirent.h.
15146         * modules/fcntl-h (Depends-on): Add arg-nonnull.
15147         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
15148         * modules/fnmatch (Depends-on): Add arg-nonnull.
15149         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
15150         * modules/getopt-posix (Depends-on): Add arg-nonnull.
15151         (Makefile.am): Insert arg-nonnull.h into getopt.h.
15152         * modules/glob (Depends-on): Add arg-nonnull.
15153         (Makefile.am): Insert arg-nonnull.h into glob.h.
15154         * modules/iconv_open (Depends-on): Add arg-nonnull.
15155         (Makefile.am): Insert arg-nonnull.h into iconv.h.
15156         * modules/inttypes (Depends-on): Add arg-nonnull.
15157         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
15158         * modules/locale (Depends-on): Add arg-nonnull.
15159         (Makefile.am): Insert arg-nonnull.h into locale.h.
15160         * modules/math (Depends-on): Add arg-nonnull.
15161         (Makefile.am): Insert arg-nonnull.h into math.h.
15162         * modules/netdb (Depends-on): Add arg-nonnull.
15163         (Makefile.am): Insert arg-nonnull.h into netdb.h.
15164         * modules/search (Depends-on): Add arg-nonnull.
15165         (Makefile.am): Insert arg-nonnull.h into search.h.
15166         * modules/signal (Depends-on): Add arg-nonnull.
15167         (Makefile.am): Insert arg-nonnull.h into signal.h.
15168         * modules/spawn (Depends-on): Add arg-nonnull.
15169         (Makefile.am): Insert arg-nonnull.h into spawn.h.
15170         * modules/stdio (Depends-on): Add arg-nonnull.
15171         (Makefile.am): Insert arg-nonnull.h into stdio.h.
15172         * modules/stdlib (Depends-on): Add arg-nonnull.
15173         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
15174         * modules/string (Depends-on): Add arg-nonnull.
15175         (Makefile.am): Insert arg-nonnull.h into string.h.
15176         * modules/strings (Depends-on): Add arg-nonnull.
15177         (Makefile.am): Insert arg-nonnull.h into strings.h.
15178         * modules/sys_socket (Depends-on): Add arg-nonnull.
15179         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
15180         * modules/sys_stat (Depends-on): Add arg-nonnull.
15181         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
15182         * modules/sys_time (Depends-on): Add arg-nonnull.
15183         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
15184         * modules/sys_times (Depends-on): Add arg-nonnull.
15185         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
15186         * modules/sys_utsname (Depends-on): Add arg-nonnull.
15187         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
15188         * modules/time (Depends-on): Add arg-nonnull.
15189         (Makefile.am): Insert arg-nonnull.h into time.h.
15190         * modules/unistd (Depends-on): Add arg-nonnull.
15191         (Makefile.am): Insert arg-nonnull.h into unistd.h.
15192         * modules/wchar (Depends-on): Add arg-nonnull.
15193         (Makefile.am): Insert arg-nonnull.h into wchar.h.
15194         * modules/argv-iter (Depends-on): Add arg-nonnull.
15195         * tests/test-canonicalize.c (null_ptr): New function.
15196         (main): Use it.
15197         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
15198         (main): Use it.
15199         * tests/test-memmem.c (null_ptr): New function.
15200         (main): Use it.
15201         Reported by Jim Meyering.
15202
15203 2009-12-10  Bruno Haible  <bruno@clisp.org>
15204
15205         Use spaces for indentation, not tabs.
15206         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15207         * m4/*.m4: Untabify.
15208         * build-aux/*.h: Untabify.
15209         * tests/**/*.[hc]: Untabify.
15210         * README: New section "Indent with spaces, not TABs", based on
15211         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
15212         * NEWS: Mention the change.
15213
15214 2009-12-10  Bruno Haible  <bruno@clisp.org>
15215
15216         pty test: Fix link error.
15217         * modules/pty-tests (Makefile.am): Add the default LDADD value to
15218         test_pty_LDADD.
15219
15220 2009-12-07  Simon Josefsson  <simon@josefsson.org>
15221
15222         * modules/pty: New file.
15223         * modules/pty-tests: New file.
15224         * m4/pty.m4: New file.
15225         * tests/test-pty.c: New file.
15226         * doc/glibc-headers/pty.texi: Modified.
15227         * doc/glibc-functions/forkpty.texi: Modified.
15228         * doc/glibc-functions/openpty.texi: Modified.
15229
15230 2009-12-10  Bruno Haible  <bruno@clisp.org>
15231
15232         Avoid syntax error in C++ mode.
15233         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
15234
15235 2009-12-10  Bruno Haible  <bruno@clisp.org>
15236
15237         Use sed with option -e.
15238         * gnulib-tool (func_version, func_emit_copyright_notice,
15239         func_emit_initmacro_end, func_import, func_create_testdir): Pass
15240         option -e to sed.
15241         * modules/link-warning (Makefile.am): Likewise.
15242
15243 2009-12-10  Jim Meyering  <meyering@redhat.com>
15244
15245         mgetgroups: do not write bytes beyond end of malloc'd buffer
15246         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
15247         username, we call getgroups with a one-element-shorter buffer,
15248         but still told it the length was original, max_n_groups.
15249
15250 2009-12-09  Eric Blake  <ebb9@byu.net>
15251
15252         cloexec: relax license
15253         * modules/cloexec (Maintainer): Add myself.
15254         (License): Use LGPL, not GPL.
15255
15256         link-warning: optimize generation
15257         * modules/link-warning (Makefile.am): Reduce process usage.
15258
15259 2009-12-09  Bruno Haible  <bruno@clisp.org>
15260
15261         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
15262         workaround was added on 2009-11-17.
15263
15264 2009-12-09  Jim Meyering  <meyering@redhat.com>
15265             Bruno Haible  <bruno@clisp.org>
15266
15267         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
15268         * modules/link-warning (Makefile.am): Make the comment-removing sed
15269         command more robust in the face of bootstrap-prepended comment lines.
15270
15271 2009-12-09  Bruno Haible  <bruno@clisp.org>
15272
15273         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
15274         most one group.
15275
15276 2009-12-09  Simon Josefsson <simon@josefsson.org>
15277             Bruno Haible  <bruno@clisp.org>
15278
15279         * build-aux/link-warning.h: Add copyright notice.
15280         * modules/link-warning (Makefile.am): Generate link-warning.h from
15281         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
15282         * NEWS: Mention change in link-warning module.
15283         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
15284         * modules/dirent (Makefile.am): Add dependency to dirent.h.
15285         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
15286         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
15287         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
15288         * modules/math (Makefile.am): Add dependency to math.h.
15289         * modules/search (Makefile.am): Add dependency to search.h.
15290         * modules/signal (Makefile.am): Add dependency to signal.h.
15291         * modules/spawn (Makefile.am): Add dependency to spawn.h.
15292         * modules/stdio (Makefile.am): Add dependency to stdio.h.
15293         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
15294         * modules/string (Makefile.am): Add dependency to string.h.
15295         * modules/strings (Makefile.am): Add dependency to strings.h.
15296         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
15297         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
15298         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
15299         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
15300         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
15301         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
15302         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
15303         * modules/unistd (Makefile.am): Add dependency to unistd.h.
15304         * modules/wchar (Makefile.am): Add dependency to wchar.h.
15305
15306 2009-12-09  Bruno Haible  <bruno@clisp.org>
15307
15308         fchdir: Optimize away rpl_fstat when possible.
15309         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
15310         REPLACE_OPEN_DIRECTORY.
15311         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
15312
15313 2009-12-09  Bruno Haible  <bruno@clisp.org>
15314
15315         * lib/fchdir.c: Update comment.
15316
15317 2009-12-09  Bruno Haible  <bruno@clisp.org>
15318
15319         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
15320
15321 2009-12-08  Eric Blake  <ebb9@byu.net>
15322
15323         fchdir: avoid memory leak on re-registration.
15324         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
15325
15326 2009-12-08  Jim Meyering  <meyering@redhat.com>
15327
15328         init.sh: avoid Solaris 10 /bin/sh portability problem
15329         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
15330         sourced script:
15331           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
15332           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
15333           bar
15334         tests/init.sh relied on that, accepting a --set-path=DIR argument,
15335         and two tests used that idiom.
15336         * tests/init.sh: Update suggested usage comments.
15337         (path_prepend_): New function, to be used in place
15338         of the --src-path=DIR option.
15339         (setup_): Move PATH-prepending code into path_prepend_.
15340         * tests/test-pread.sh: Adapt to new usage.
15341         * tests/test-xalloc-die.sh: Likewise.
15342
15343 2009-12-08  Simon Josefsson  <simon@josefsson.org>
15344
15345         * doc/gnulib.texi (Glibc pty.h): Add.
15346         * doc/glibc-functions/forkpty.texi: Add.
15347         * doc/glibc-functions/openpty.texi: Add.
15348         Suggested by Bruno Haible.
15349
15350 2009-12-08  Eric Blake  <ebb9@byu.net>
15351
15352         fchdir: fix logic bugs
15353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
15354         * tests/test-fchdir.c (main): Enhance test.
15355         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
15356         is in use.
15357
15358         dup2: fix logic bugs
15359         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
15360         REPLACE_DUP2 to decide when rpl_dup2 is needed.
15361         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
15362         exists.
15363         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
15364
15365 2009-12-07  Eric Blake  <ebb9@byu.net>
15366
15367         unlink: fix m4 detection
15368         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15369
15370         unistd-safer: add unit test
15371         * modules/unistd-safer-tests: New file.
15372         * tests/test-dup-safer.c: Likewise.
15373         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15374         * tests/test-dup2.c (setmode): Likewise.
15375         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15376
15377         cloexec: preserve text vs. binary across dup_cloexec
15378         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15379         mode.
15380         * modules/dup2-tests (Depends-on): Add binary-io.
15381         * modules/cloexec-tests (Depends-on): Likewise.
15382         * tests/test-dup2.c (setmode, is_mode): New helpers.
15383         (main): Add tests that translation mode is preserved.
15384         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15385         Reported by Bruno Haible.
15386
15387         mgetgroups: reduce duplicate listings
15388         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15389         resulting array.
15390         * tests/test-chown.h (test_chown): Simplify client.
15391         * tests/test-lchown.h (test_lchown): Likewise.
15392
15393 2009-12-06  Bruno Haible  <bruno@clisp.org>
15394
15395         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15396         value.
15397
15398 2009-12-06  Bruno Haible  <bruno@clisp.org>
15399
15400         * lib/progname.c: Include stdio.h, stdlib.h.
15401         (set_program_name): Reject a NULL argument.
15402
15403 2009-12-05  Eric Blake  <ebb9@byu.net>
15404
15405         pipe2-safer: new module
15406         * modules/pipe2-safer: New file.
15407         * lib/unistd-safer.h (pipe2_safer): New prototype.
15408         * lib/unistd--.h (pipe2): New wrapper.
15409         * lib/pipe-safer.c (pipe2_safer): New function.
15410         * modules/pipe (Depends-on): Add pipe2-safer.
15411         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15412
15413         stdlib-safer: preserve cloexec flag for mkostemp[s]
15414         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15415         fd_safer_flag.
15416
15417         unistd-safer: allow preservation of cloexec status via flag
15418         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15419         prototypes.
15420         * lib/dup-safer.c (dup_safer_flag): New function.
15421         * lib/fd-safer.c (fd_safer_flag): Likewise.
15422         * modules/cloexec (configure.ac): Set witness.
15423
15424         test-dup2: enhance test
15425         * modules/dup2-tests (Depends-on): Add cloexec.
15426         * tests/test-dup2.c (main): Enhance test.
15427
15428         cloexec: add dup_cloexec
15429         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15430         header and comments.
15431         * lib/cloexec.c (set_cloexec_flag): Add comments.
15432         (dup_cloexec): New function, with mingw implementation borrowed
15433         from...
15434         * lib/w32spawn.h (dup_noinherit): ...here.
15435         * modules/execute (Depends-on): Add cloexec.
15436         * modules/pipe (Depends-on): Likewise.
15437         * modules/cloexec (Depends-on): Add dup2.
15438         * modules/cloexec-tests (Files): New file.
15439         * tests/test-cloexec.c: Likewise.
15440
15441         test-xalloc-die: fix test for mingw
15442         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15443         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15444         directory and .exe suffix off argv[0] output.
15445
15446         test-fseeko: fix test for mingw
15447         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15448         than undefining fseek, so test will pass on mingw.
15449
15450 2009-12-05  Bruno Haible  <bruno@clisp.org>
15451
15452         * lib/progname.h (set_program_name): Clarify specification.
15453         * lib/progname.c (set_program_name): Likewise.
15454         Reported by Jim Meyering.
15455
15456 2009-12-05  Jim Meyering  <meyering@redhat.com>
15457
15458         maint.mk: backslash-escape parens in default regexp
15459         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15460         backslash-escape the literal parentheses.
15461
15462         maint.mk: news-date-check: use grep -E
15463         * top/maint.mk (today): Define a Make variable, not a...
15464         (news-date-check): ...shell variable.
15465         (news-date-regexp): Use the Make variable.
15466         Use grep's -E option.  Change the failing diagnostic to mention
15467         the variable, $(news-date-regexp).
15468
15469 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15470
15471         maintainer-makefile: allow customization of NEWS entry format
15472         * top/maint.mk (news-date-regexp): New overridable variable.
15473         (news-date-check): Use it.
15474
15475 2009-12-04  Eric Blake  <ebb9@byu.net>
15476
15477         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15478         * lib/mgetgroups.h (xgetgroups): New prototype.
15479         * lib/mgetgroups.c (xgetgroups): New wrapper.
15480         (mgetgroups): Handle ENOSYS.
15481         * modules/mgetgroups (Depends-on): Add realloc.
15482         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15483
15484         mgetgroups: avoid argument promotion issues with -1
15485         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15486         for invalid gid_t.
15487         * tests/test-chown.h (getegid, test_chown): Likewise.
15488         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15489
15490 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15491
15492         exclude: Fix header file problems.
15493         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15494
15495 2009-12-01  Jim Meyering  <meyering@redhat.com>
15496
15497         fts: fts_open: do not let an empty string cause immediate failure
15498         This is required in support of GNU rm, for which the command
15499         "rm A '' B" must process and remove both A and B, in spite of
15500         the empty string argument.
15501         * lib/fts.c (fts_open): Do not let the presence of an empty string
15502         cause fts_open to fail immediately.  Most fts-using tools must be
15503         able to process all arguments, in order, and can be expected to
15504         diagnose such arguments themselves.
15505
15506 2009-11-30  Eric Blake  <ebb9@byu.net>
15507
15508         utimens: fix compilation error
15509         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15510         Declare variable at right scope.
15511
15512 2009-11-29  Jim Meyering  <meyering@redhat.com>
15513
15514         bootstrap: handle perl-5.11's changed --version output
15515         * build-aux/bootstrap (get_version): Handle perl separately,
15516         since perl-5.11's --version output is different.
15517
15518 2009-11-28  Jim Meyering  <meyering@redhat.com>
15519
15520         userspec: depend on the inttostr module, too
15521         * modules/userspec (Depends-on): Add inttostr.
15522
15523         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15524         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15525         number of MAXUID when it evaluates to (uid_t) -1.
15526         Likewise for group ID.  Reported by Matt McCutchen in
15527         <http://savannah.gnu.org/bugs/?28113>
15528
15529         userspec: reformat to use spaces, not TABs
15530         * lib/userspec.c: Expand TABs to spaces.
15531         Add Emacs' "indent-tabs-mode: nil" hint.
15532
15533 2009-11-27  Eric Blake  <ebb9@byu.net>
15534
15535         getopt-gnu: flush out another BSD bug
15536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15537         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15538         flush out BSD bug.
15539         * tests/test-getopt.h (test_getopt): End lists with NULL.
15540         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15541         (test_getopt_long_posix): Enhance test.
15542         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15543         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15544         getopt-gnu.
15545         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15546         Likewise.
15547
15548 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15549
15550         * modules/idpriv-droptemp-tests (Notice): Fix text.
15551
15552 2009-11-27  Jim Meyering  <meyering@redhat.com>
15553
15554         test-xalloc-die: avoid spurious failure due to libtool argv difference
15555         In a libtool-enabled project, this test would fail due to a difference
15556         in the emitted program name, e.g.,
15557         -test-xalloc-die: memory exhausted
15558         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15559         Use program to avoid that.
15560         * modules/xalloc-die-tests (Depends-on): Add progname.
15561         * tests/test-xalloc-die.c: Include progname.h".
15562         (program_name): Remove decl.
15563         (main): Call set_program_name.
15564         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15565
15566 2009-11-26  Richard Jones  <rjones@redhat.com>
15567
15568         w32sock: leave win32 error in place.
15569         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15570
15571 2009-11-26  Eric Blake  <ebb9@byu.net>
15572
15573         init.sh: suggest to use skip_ and fail_ functions in comments
15574         * tests/init.sh: Add a sentence.
15575
15576 2009-11-25  Bruno Haible  <bruno@clisp.org>
15577
15578         init.sh: add documentation in comments
15579         * tests/init.sh: Add some developer and user documentation.
15580
15581 2009-11-26  Jim Meyering  <meyering@redhat.com>
15582
15583         init.sh: accommodate even those who specify bogus srcdir manually
15584         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15585         configure-time tests to be sanitized, so that there is no need to
15586         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15587         (with no double quotes) suffices.  However, since tests may be
15588         invoked manually, and since you may explicitly set srcdir to the
15589         name of a directory containing spaces, do quote its uses here.
15590         * tests/test-pread.sh: Likewise.
15591         Suggested by Bruno Haible.
15592
15593         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15594         * tests/test-pread.sh: Write no data into the pipe, because
15595         test-pread actually reads none.  This avoids a diagnostic,
15596         "bash: echo: write error: Broken pipe", that arises in the unusual
15597         event something is ignoring SIGPIPE, and might be interpreted
15598         as some sort of failure.  Reported by Bruno Haible.
15599
15600 2009-11-25  Jim Meyering  <meyering@redhat.com>
15601
15602         test-pread: cover failure with ESPIPE and EINVAL
15603         * tests/test-pread.c (main): Test for failure, too.
15604         * tests/test-pread.sh: Invoke with stdin on a pipe.
15605         Suggested by Eric Blake.
15606
15607         pread: improvement and fix
15608         * modules/pread (Depends-on): Depend on lseek, for portability to
15609         e.g., mingw.  Suggested by Eric Blake.
15610         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15611
15612         unistd.in.h: correct declaration of pread
15613         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15614         Reported by Richard W.M. Jones.
15615
15616         test-pread.sh: distribute the test script
15617         * modules/pread-tests (Files): Include test-pread.sh.
15618
15619         test-pread.sh: clean up
15620         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15621         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15622         That is unnecessary, since it's always ".".
15623         Suggestion from Eric Blake.
15624
15625         test-pread.sh: make executable
15626         * tests/test-pread.sh: Set executable bit.
15627         Reported by Eric Blake.
15628
15629         correct typo in test-pread.sh
15630         * tests/test-pread.sh: Add #! line.
15631
15632         test pread
15633         * tests/test-pread.c: New file.
15634         * tests/test-pread.sh: Likewise.
15635         * modules/pread-tests: Likewise.
15636
15637         pread: new module
15638         * modules/pread: New file.
15639         * lib/unistd.in.h (pread): Define/declare.
15640         * lib/pread.c (pread): New file.
15641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15642         * modules/unistd (Makefile.am): Substitute witnesses.
15643         * doc/posix-functions/pread.texi (pread): Update.
15644         * MODULES.html.sh: Add pread.
15645
15646 2009-11-25  Jim Meyering  <meyering@redhat.com>
15647
15648         tests/init.sh: new file to be used via most *.sh tests
15649         * tests/init.sh: New file.
15650
15651 2009-11-25  Eric Blake  <ebb9@byu.net>
15652
15653         utimens: work around older Linux failure with symlinks
15654         * lib/utimens.c (lutimensat_works_really): New variable.
15655         (fdutimens, lutimens): Use it to manage kernels that support
15656         nanosecond times on files, but not on symlinks.
15657         Reported by OndÅ™ej Vašík.
15658
15659         utimes: fix configure grammar
15660         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
15661
15662 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
15663
15664         regex: Fix fastmap for multibyte character ranges.
15665         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
15666         characters when a multibyte character range is included.
15667
15668 2009-11-22  Andy Wingo  <wingo@pobox.com>
15669
15670         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
15671         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
15672
15673 2009-11-24  Bruno Haible  <bruno@clisp.org>
15674
15675         doc: Most *_l functions exist in MacOS X 10.5.
15676         * doc/posix-functions/duplocale.texi: Update platforms list.
15677         * doc/posix-functions/freelocale.texi: Likewise.
15678         * doc/posix-functions/newlocale.texi: Likewise.
15679         * doc/posix-functions/uselocale.texi: Likewise.
15680         * doc/posix-functions/isalnum_l.texi: Likewise.
15681         * doc/posix-functions/isalpha_l.texi: Likewise.
15682         * doc/posix-functions/isblank_l.texi: Likewise.
15683         * doc/posix-functions/iscntrl_l.texi: Likewise.
15684         * doc/posix-functions/isdigit_l.texi: Likewise.
15685         * doc/posix-functions/isgraph_l.texi: Likewise.
15686         * doc/posix-functions/islower_l.texi: Likewise.
15687         * doc/posix-functions/isprint_l.texi: Likewise.
15688         * doc/posix-functions/ispunct_l.texi: Likewise.
15689         * doc/posix-functions/isspace_l.texi: Likewise.
15690         * doc/posix-functions/isupper_l.texi: Likewise.
15691         * doc/posix-functions/iswalnum_l.texi: Likewise.
15692         * doc/posix-functions/iswalpha_l.texi: Likewise.
15693         * doc/posix-functions/iswblank_l.texi: Likewise.
15694         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15695         * doc/posix-functions/iswctype_l.texi: Likewise.
15696         * doc/posix-functions/iswdigit_l.texi: Likewise.
15697         * doc/posix-functions/iswgraph_l.texi: Likewise.
15698         * doc/posix-functions/iswlower_l.texi: Likewise.
15699         * doc/posix-functions/iswprint_l.texi: Likewise.
15700         * doc/posix-functions/iswpunct_l.texi: Likewise.
15701         * doc/posix-functions/iswspace_l.texi: Likewise.
15702         * doc/posix-functions/iswupper_l.texi: Likewise.
15703         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15704         * doc/posix-functions/isxdigit_l.texi: Likewise.
15705         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
15706         * doc/posix-functions/strcasecmp_l.texi: Likewise.
15707         * doc/posix-functions/strcoll_l.texi: Likewise.
15708         * doc/posix-functions/strfmon_l.texi: Likewise.
15709         * doc/posix-functions/strftime_l.texi: Likewise.
15710         * doc/posix-functions/strncasecmp_l.texi: Likewise.
15711         * doc/posix-functions/strxfrm_l.texi: Likewise.
15712         * doc/posix-functions/tolower_l.texi: Likewise.
15713         * doc/posix-functions/toupper_l.texi: Likewise.
15714         * doc/posix-functions/towctrans_l.texi: Likewise.
15715         * doc/posix-functions/towlower_l.texi: Likewise.
15716         * doc/posix-functions/towupper_l.texi: Likewise.
15717         * doc/posix-functions/wcscoll_l.texi: Likewise.
15718         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15719         * doc/posix-functions/wctrans_l.texi: Likewise.
15720         * doc/posix-functions/wctype_l.texi: Likewise.
15721         * doc/glibc-functions/strptime_l.texi: Likewise.
15722         * doc/glibc-functions/strtod_l.texi: Likewise.
15723         * doc/glibc-functions/strtof_l.texi: Likewise.
15724         * doc/glibc-functions/strtol_l.texi: Likewise.
15725         * doc/glibc-functions/strtold_l.texi: Likewise.
15726         * doc/glibc-functions/strtoll_l.texi: Likewise.
15727         * doc/glibc-functions/strtoul_l.texi: Likewise.
15728         * doc/glibc-functions/strtoull_l.texi: Likewise.
15729         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15730         * doc/glibc-functions/wcstod_l.texi: Likewise.
15731         * doc/glibc-functions/wcstof_l.texi: Likewise.
15732         * doc/glibc-functions/wcstol_l.texi: Likewise.
15733         * doc/glibc-functions/wcstold_l.texi: Likewise.
15734         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15735         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15736         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15737
15738 2009-11-24  Bruno Haible  <bruno@clisp.org>
15739
15740         duplocale: Fix logic bug.
15741         * lib/duplocale.c: Don't include <langinfo.h>.
15742         (_NL_LOCALE_NAME): Remove macro.
15743         (rpl_duplocale): Use setlocale instead of nl_langinfo.
15744         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
15745
15746 2009-11-23  Jim Meyering  <meyering@redhat.com>
15747
15748         test-update-copyright: don't hard-code /usr/bin/perl
15749         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
15750         perl to print the current year.  Gilles Espinasse reported that
15751         the replaced use of perl was hard-coded as /usr/bin/perl.
15752
15753 2009-11-23  Bruno Haible  <bruno@clisp.org>
15754
15755         duplocale: Add support for glibc 2.3.x.
15756         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
15757
15758 2009-11-22  Bruno Haible  <bruno@clisp.org>
15759
15760         vasnprintf: Tiny optimization.
15761         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
15762         MacOS X.
15763
15764 2009-11-22  Bruno Haible  <bruno@clisp.org>
15765
15766         Tests for module 'duplocale'.
15767         * modules/duplocale-tests: New file.
15768         * tests/test-duplocale.c: New file.
15769
15770         New module 'duplocale'.
15771         * m4/duplocale.m4: New file.
15772         * lib/locale.in.h (duplocale): New declaration.
15773         * lib/duplocale.c: New file.
15774         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
15775         gl_LOCALE_H_DEFAULTS): New macros.
15776         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
15777         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
15778         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
15779         REPLACE_DUPLOCALE.
15780         * modules/duplocale: New file.
15781         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
15782
15783 2009-11-22  Bruno Haible  <bruno@clisp.org>
15784
15785         * modules/locale-tests (configure.ac): Test for newlocale function.
15786         * tests/test-locale.c: When the system has extended locale functions,
15787         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
15788
15789         locale: Make locale_t available when possible.
15790         * lib/locale.in.h: Include <xlocale.h> when it exists.
15791         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
15792         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
15793         * modules/locale (Depends-on): Add extensions.
15794         (Makefile.am): Also substitute HAVE_XLOCALE_H.
15795         * doc/posix-headers/locale.texi: Document the problem with locale_t.
15796
15797 2009-11-22  Bruno Haible  <bruno@clisp.org>
15798
15799         Add comments.
15800         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
15801         invocation.
15802         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
15803         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15804         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15805
15806 2009-11-22  Bruno Haible  <bruno@clisp.org>
15807
15808         error: account for the possibility of freopen (stdout).
15809         * lib/error.c: Include <unistd.h>.
15810         (flush_stdout): New function, extracted from error and error_at_line.
15811         Determine stdout's fd dynamically.
15812         (error, error_at_line): Invoke flush_stdout.
15813         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15814         * modules/error (Depends-on): Add unistd.
15815
15816 2009-11-22  Bruno Haible  <bruno@clisp.org>
15817
15818         diffseq: Add comment.
15819         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15820
15821 2009-11-22  Jim Meyering  <meyering@redhat.com>
15822
15823         c-stack: avoid defining an unused static function
15824         * lib/c-stack.c (find_stack_direction): Do not define this function
15825         when it will not be used.
15826
15827         diffseq: avoid spurious gcc warnings
15828         * lib/diffseq.h (IF_LINT2): Define.
15829         (compareseq): Use it to initialize two members of "part".
15830         This avoids two used-uninitialized warnings.
15831
15832 2009-11-21  Jim Meyering  <meyering@redhat.com>
15833
15834         c-stack: avoid "ignoring return value of `write'" warning
15835         * lib/c-stack.c: Include "ignore-value.h".
15836         (die): Explicitly ignore each write return value.
15837         * modules/c-stack (Depends-on): Add ignore-value.
15838
15839 2009-11-21  Bruno Haible  <bruno@clisp.org>
15840
15841         diffseq: reduce scope of variable 'best'.
15842         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15843         variable, earlier used for two different purposes.
15844
15845 2009-11-21  Jim Meyering  <meyering@redhat.com>
15846
15847         diffseq: remove useless assignment to "best"
15848         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15849         assignment.  At that point "best" is already guaranteed to be zero.
15850
15851 2009-11-20  Eric Blake  <ebb9@byu.net>
15852
15853         build: mention ftp redirector in release announcements
15854         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15855         values that used to come from cfg.mk; mention FTP redirect URL.
15856         * build-aux/announce-gen: Mention the mirror list.
15857         Suggested by Karl Berry.
15858
15859         nanosleep: improve port to mingw
15860         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15862         LIB_NANOSLEEP, but only when needed.
15863         * modules/select (Link): Document LIBSOCKET.
15864         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15865         enough.
15866
15867         nanosleep: work around cygwin bug
15868         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15869         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15870         bug.
15871         (getnow): Delete, not needed.
15872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15873         LIB_CLOCK_GETTIME.
15874         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15875         clock-time, gettime.
15876         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15877         bug.
15878         * modules/nanosleep-tests: New test.
15879         * tests/test-nanosleep.c: New file.
15880
15881         sleep: work around cygwin bug
15882         * lib/sleep.c (rpl_sleep): Work around the bug.
15883         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15884         (gl_PREREQ_SLEEP): Delete unused macro.
15885         * modules/sleep (Depends-on): Add verify.
15886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15887         * modules/unistd (Makefile.am): Substitute witness.
15888         * lib/unistd.in.h (sleep): Update prototype.
15889         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15890         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15891         * modules/sleep-tests (Depends-on): Check for alarm.
15892
15893 2009-11-20  Jim Meyering  <meyering@redhat.com>
15894
15895         maint.mk: improve sc_prohibit_magic_number_exit
15896         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15897         so it does not match uses like System.exit(1).
15898         Add comments showing how to correct all offenders.
15899
15900 2009-11-19  Eric Blake  <ebb9@byu.net>
15901
15902         xalloc-die-tests: add missing library
15903         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15904
15905         test-xvasprintf: silence compiler warnings
15906         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15907         empty string from gcc.
15908
15909 2009-11-19  Jim Meyering  <meyering@redhat.com>
15910
15911         xfreopen: new module, from coreutils
15912         * modules/xfreopen: New module.
15913         * lib/xfreopen.c: New file.
15914         * lib/xfreopen.h: New file.
15915         * MODULES.html.sh (File stream based Input/Output"): Add it.
15916
15917 2009-11-19  Eric Blake  <ebb9@byu.net>
15918
15919         manywarnings: depend on warnings
15920         * modules/manywarnings (Depends-on): Add warnings.
15921
15922         build: avoid compiler warnings
15923         * lib/select.c (rpl_select): Delete unused variable.
15924         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15925
15926 2009-11-18  Eric Blake  <ebb9@byu.net>
15927
15928         tests: avoid false negative with --with-packager
15929         * tests/test-version-etc.sh: Discard packager information.
15930         * tests/test-argp-version-etc-1.sh: Likewise.
15931         Reported by Mike Frysinger.
15932
15933         utimens: fix regression on Solaris
15934         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15935         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15936         can only change fd timestamps via futimesat.  Instead, use an
15937         additional witness macro to avoid BSD bug.
15938         Reported by Jim Meyering.
15939
15940 2009-11-17  Eric Blake  <ebb9@byu.net>
15941
15942         usleep: use it to simplify tests
15943         * modules/stat-time-tests (Depends-on): Add usleep.
15944         (configure.ac): Drop usleep check.
15945         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15946         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15947         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15948         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15949         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15950         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15951         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15952         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15953         Likewise.
15954         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15955         * tests/test-lchown.h (nap): Likewise.
15956         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15957         * tests/test-stat-time.c (nap): Likewise.
15958         * tests/test-utimens-common.h (nap): Update comments.
15959
15960         usleep: new module
15961         * modules/usleep: New file.
15962         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15963         * lib/usleep.c (usleep): Likewise.
15964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15965         * modules/unistd (Makefile.am): Substitute witnesses.
15966         * lib/unistd.in.h (usleep): Add declaration.
15967         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15968         * MODULES.html.sh (Date and time): Likewise.
15969         * modules/usleep-tests (Depends-on): New test.
15970         * tests/test-usleep.c: New file.
15971
15972         chown: work around OpenBSD bug
15973         * lib/chown.c (rpl_chown): Work around the bug.
15974         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15975         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15976         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15977         * modules/chown (Depends-on): Add stdbool.
15978         * modules/lchown (Depends-on): Likewise.
15979         * doc/posix-functions/chown.texi (chown): Document the bug.
15980         * doc/posix-functions/lchown.texi (lchown): Likewise.
15981         * tests/test-lchown.h (test_chown): Relax test.
15982
15983         mkstemp: avoid conflict with C++ keyword template
15984         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15985         * lib/mkostemp.c (mkostemp): Likewise.
15986         * lib/mkostemps.c (mkostemps): Likewise.
15987         * lib/mkstemp.c (mkstemp): Likewise.
15988         * lib/mkstemps.c (mkstemps): Likewise.
15989
15990         xalloc-die-tests: optimize
15991         * tests/test-xalloc-die.sh: Reduce number of processes.
15992
15993 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15994
15995         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15996         patch from ludo@gnu.org (Ludovic Courtès).
15997
15998 2009-11-17  Jim Meyering  <meyering@redhat.com>
15999
16000         version-etc: use proper license string
16001         * modules/version-etc (License): Use LGPL, not LGPLv3+.
16002         * modules/version-etc-fsf: Likewise.
16003
16004 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16005
16006         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
16007         printed to stdout.  Deal with EOL differences.
16008
16009 2009-11-17  Eric Blake  <ebb9@byu.net>
16010
16011         unsetenv: work around Solaris bug
16012         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
16013         * lib/unsetenv.c (rpl_unsetenv): Work around it.
16014         Reported by Jim Meyering.
16015
16016         vasnprintf: avoid compiler warnings
16017         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
16018         variables.
16019         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
16020
16021 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16022
16023         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
16024         settings since xalloc-die is no longer the self test,
16025         xalloc-die.sh is.
16026
16027 2009-11-17  Jim Meyering  <meyering@redhat.com>
16028
16029         test-xalloc-die.sh: make the code agree with the commit log
16030         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
16031         at the end, just in case you happen to have a test-xalloc-die
16032         program in some other PATH directory.
16033
16034         test-xalloc-die.sh: fix a portability bug
16035         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
16036         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
16037         Otherwise, argv[0] (as often seen in diagnostics) would be too
16038         system-dependent, sometimes with, and sometimes without the leading "./".
16039
16040         version-etc-fsf: relax license to LGPLv3+
16041         * modules/version-etc-fsf (License): Relax license.
16042
16043 2009-11-16  Eric Blake  <ebb9@byu.net>
16044
16045         xalloc-die-tests: avoid printing null pointer
16046         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
16047         shell script.
16048         * tests/test-xalloc-die.c (program_name): Declare.
16049         * tests/test-xalloc-die.sh (tmpfiles): New file.
16050
16051         setenv, unsetenv: work around various bugs
16052         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
16053         (setenv) [HAVE_SETENV]: Work around bugs.
16054         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
16055         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
16056         for bugs.
16057         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
16058         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
16059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
16060         * modules/stdlib (Makefile.am): Update substitutions.
16061         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
16062         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
16063         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16064         * modules/setenv-tests: New test.
16065         * modules/unsetenv-tests: Likewise.
16066         * tests/test-setenv.c: New file.
16067         * tests/test-unsetenv.c: Likewise.
16068
16069 2009-11-16  Jim Meyering  <meyering@redhat.com>
16070
16071         version-etc: relax license to LGPLv3+
16072         * modules/version-etc (License): Relax license.
16073
16074         better AC_REQUIRE expanded-before-required-warning avoidance
16075         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
16076         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
16077         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
16078         which is no longer needed.
16079
16080 2009-11-16  Eric Blake  <ebb9@byu.net>
16081
16082         test-freading: clean up temporary file
16083         * tests/test-freading.c (main): Remove file on success, and use
16084         ASSERT more liberally.
16085         Reported by Jim Meyering.
16086
16087 2009-11-16  Jim Meyering  <meyering@redhat.com>
16088
16089         avoid new AC_REQUIRE expanded-before-required warnings
16090         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
16091         merely using it.
16092         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
16093         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
16094
16095 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16096
16097         * tests/test-xalloc-die.c: New file.
16098         * modules/xalloc-die-tests: New file.
16099         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
16100         XFAIL_TESTS so it can be appended by modules.
16101
16102 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16103
16104         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
16105         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
16106
16107 2009-11-14  Eric Blake  <ebb9@byu.net>
16108
16109         fnmatch: avoid compiler warning
16110         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
16111         to silence compiler warning about mismatch signedness in ?:.
16112         Reported by Robert Millan.
16113
16114         intprops: add double-inclusion guard
16115         * lib/intprops.h: Allow idempotent includes.
16116         Suggested by Bruce Korb.
16117
16118         openat: detect Solaris fchownat bug
16119         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
16120         penalizing glibc chownat when only lchownat is broken.
16121         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
16122         trailing slash bugs.
16123         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
16124         * modules/openat-tests (Files): Include more files.
16125         (Depends-on): Add mgetgroups, sleep, stat-time.
16126         (configure.ac): Add additional checks.
16127         (Makefile.am): Build new test.
16128         * tests/test-fchownat.c: New file.
16129
16130         lchown: detect Solaris and FreeBSD bug
16131         * lib/lchown.c (rpl_lchown): Work around bug.
16132         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
16133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16134         * modules/unistd (Makefile.am): Populate it.
16135         * lib/unistd.in.h (lchown): Update declaration.
16136         * doc/posix-functions/lchown.texi (lchown): Document the bug.
16137         * modules/lchown-tests: New file.
16138         * tests/test-lchown.h (test_lchown): Likewise.
16139         * tests/test-lchown.c (main): Likewise.
16140
16141         chown: detect Solaris and FreeBSD bug
16142         * lib/chown.c (rpl_chown): Work around bug.
16143         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
16144         (gl_PREREQ_CHOWN): Delete.
16145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16146         * modules/unistd (Makefile.am): Populate it.
16147         * lib/unistd.in.h (chown): Update declaration.
16148         * lib/lchown.c (chown): Update client.
16149         * modules/lchown (Depends-on): Add lstat.
16150         * doc/posix-functions/chown.texi (chown): Document the bug.
16151         * doc/posix-functions/getgroups.texi (getgroups): Document
16152         getgroups pitfall.
16153         * modules/chown-tests: New file.
16154         * tests/test-chown.h (test_chown): Likewise.
16155         * tests/test-chown.c (main): Likewise.
16156
16157 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
16158
16159         gnulib-tool: correctly detect absence of m4 directories
16160         * gnulib-tool: Avoid extra newline on data passed to wc -l.
16161
16162 2009-11-14  Jim Meyering  <meyering@redhat.com>
16163
16164         maint.mk: Prohibit inclusion of "xalloc.h" without use.
16165         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16166
16167 2009-11-14  John W. Eaton  <jwe@gnu.org>
16168
16169         strftime.h: wrap funtion declaration in extern "C" block
16170         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
16171
16172 2009-11-13  Eric Blake  <ebb9@byu.net>
16173
16174         getgroups: avoid compiler warning
16175         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
16176
16177         getgroups: work around FreeBSD bug
16178         * lib/getgroups.c (rpl_getgroups): Work around the bug.
16179         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
16180         * doc/posix-functions/getgroups.texi (getgroups): Document it.
16181         * tests/test-getgroups.c (main): Fix buffer overrun.
16182
16183         getgroups: avoid compilation failure
16184         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
16185         * modules/getgroups (Depends-on): Add stdint.
16186
16187 2009-11-13  Jim Meyering  <meyering@redhat.com>
16188
16189         test-getgroups: avoid compilation failure
16190         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
16191
16192 2009-11-13  Eric Blake  <ebb9@byu.net>
16193
16194         mgetgroups: new module, taken from coreutils
16195         * modules/mgetgroups: New file.
16196         * lib/mgetgroups.h: Likewise.
16197         * lib/mgetgroups.c (mgetgroups): Likewise.
16198         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
16199         * MODULES.html.sh (Users and groups): Mention it.
16200
16201         getgroups: don't expose GETGROUPS_T to user
16202         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
16203         an element at a time if GETGROUPS_T is wrong size.
16204         * lib/getugroups.h (getugroups): Change signature.
16205         * lib/unistd.in.h (getgroups): Likewise.
16206         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
16207         signature needs fixing.
16208         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
16209         AC_TYPE_GETGROUPS.
16210         * modules/group-member (Depends-on): Add getgroups.
16211         * lib/group-member.c (group_info, get_group_info): Use gid_t.
16212         (group_member): Rely on getgroups replacement.
16213         * lib/getugroups.c (getugroups): Use gid_t.
16214         * tests/test-getgroups.c (main): Likewise.
16215         * NEWS: Mention the signature change.
16216         * doc/posix-functions/getgroups.texi (getgroups): Mention the
16217         problem with signature.
16218         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
16219         GETGROUPS_T is still useful for setgroups.
16220
16221         getgroups, getugroups: provide stubs for mingw
16222         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
16223         * lib/getugroups.c (getugroups): Likewise.
16224         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
16225         function.  Modernize replacement scheme.
16226         (gl_PREREQ_GETGROUPS): Delete.
16227         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
16228         * modules/getgroups (configure.ac): Declare witness.
16229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16230         * modules/unistd (Depends-on): Substitute witness.
16231         * lib/unistd.in.h (getgroups): Declare replacement.
16232
16233         getgroups: avoid calling exit
16234         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
16235         drop xalloc.
16236         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
16237         dependencies.
16238         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
16239         exiting, in the rare case of malloc failure.
16240
16241         getgroups: fix logic error
16242         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
16243         has more than 20 groups.
16244         * modules/getgroups-tests: New test.
16245         * tests/test-getgroups.c: New file.
16246
16247 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16248
16249         * tests/test-base64.c: Improve.
16250
16251 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16252
16253         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
16254         Blake <ebb9@byu.net>.
16255
16256 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16257
16258         * tests/test-xvasprintf.c: Add %s%s related checks.
16259
16260 2009-11-12  Eric Blake  <ebb9@byu.net>
16261
16262         version-etc: match standards.texi style
16263         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
16264         and use <> only for URLs.
16265
16266 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
16267
16268         fts: do not fail on a submount during traversal
16269         * lib/fts.c (fts_build): Read the stat info again after opening
16270         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
16271         Original report at http://bugzilla.redhat.com/501848.
16272
16273 2009-11-12  Jim Meyering  <meyering@redhat.com>
16274
16275         bootstrap: sync from coreutils
16276         * build-aux/bootstrap (bootstrap_epilogue): New function.
16277         Use git_modules_config in one more place.  This make bootstrap's
16278         --gnulib-srcdir option more useful for testing.
16279
16280         bootstrap: generalize autoheader check
16281         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
16282         AC_CONFIG_HEADERS.
16283
16284 2009-11-11  Eric Blake  <ebb9@byu.net>
16285
16286         mkfifoat: use new modules for Solaris and BSD bugs
16287         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
16288         * lib/mkfifoat.c (mknodat): Split...
16289         * lib/mknodat.c (mknodat): ...into new file.
16290         * modules/mkfifoat (Files): Ship new file.
16291         (Depends-on): Add mkfifo, mknod.
16292         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
16293         (Depends-on): Add symlink.
16294         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
16295         redundant with test_mkfifo.h.
16296         (do_mkfifoat, do_mknodat): New helpers.
16297
16298         mknod: new module
16299         * modules/mknod: New file.
16300         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16301         * lib/mknod.c (mknod): Likewise.
16302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16303         defaults.
16304         * modules/sys_stat (Makefile.am): Substitute them.
16305         * lib/sys_stat.in.h (mknod): Declare replacement.
16306         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16307         Document it.
16308         * doc/posix-functions/mknod.texi (mknod): Likewise.
16309         * modules/mknod-tests: New test.
16310         * tests/test-mknod.c: Likewise.
16311
16312         mkfifo: new module
16313         * modules/mkfifo: New file.
16314         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16315         * lib/mkfifo.c (mkfifo): Likewise.
16316         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16317         defaults.
16318         * modules/sys_stat (Makefile.am): Substitute them.
16319         * lib/sys_stat.in.h (mkfifo): Declare replacement.
16320         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16321         Document it.
16322         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
16323         * modules/mkfifo-tests: New test.
16324         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
16325         from test-mkfifoat.c.
16326         * tests/test-mkfifo.c: New file.
16327
16328         readlink: detect FreeBSD bug
16329         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
16330         slash on symlink.
16331         * doc/posix-functions/readlink.texi (readlink): Document the bug.
16332         * tests/test-readlink.h (test_readlink): Enhance test.
16333
16334         symlink: detect FreeBSD bug
16335         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
16336         slash on symlink.
16337         * doc/posix-functions/symlink.texi (symlink): Document the bug.
16338         * tests/test-symlink.h (test_symlink): Enhance test.
16339
16340 2009-11-10  Eric Blake  <ebb9@byu.net>
16341
16342         link: detect FreeBSD bug
16343         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
16344         symlink.
16345         * doc/posix-functions/link.texi (link): Document the bug.
16346         * tests/test-link.h (test_link): Enhance test.
16347         * tests/test-linkat.c (main): Update caller.
16348
16349         unlink, remove: detect FreeBSD bug
16350         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
16351         slash on symlink.
16352         * doc/posix-functions/unlink.texi (unlink): Document the bug.
16353         * doc/posix-functions/remove.texi (remove): Likewise.
16354         * tests/test-unlink.h (test_unlink): Enhance test.
16355         * tests/test-remove.c (main): Likewise.
16356
16357 2009-11-09  Eric Blake  <ebb9@byu.net>
16358
16359         rename: detect FreeBSD bug
16360         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
16361         slash on symlink.
16362         * modules/renameat-tests (Depends-on): Add filenamecat.
16363         * tests/test-rename.h (test_rename): Allow one more errno.
16364         * tests/test-renameat.c (main): Likewise.
16365         * doc/posix-functions/rename.texi (rename): Document the bug.
16366
16367         open: detect FreeBSD bug
16368         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16369         symlink.
16370         * doc/posix-functions/open.texi (open): Document the bug.
16371         * doc/posix-functions/utimes.texi (utimes): Likewise.
16372         * tests/test-open.h (test_open): Add parameters, and test symlink
16373         handling.
16374         * tests/test-open.c (main): Adjust caller.
16375         * tests/test-fcntl-safer.c (main): Likewise.
16376         * modules/open-tests (Depends-on): Add stdbool, symlink.
16377         * modules/fcntl-safer-tests (Depends-on): Likewise.
16378         * tests/test-openat.c (main): Add test-open tests.
16379
16380         stat: detect FreeBSD bug
16381         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16382         symlink.
16383         * doc/posix-functions/stat.texi (stat): Document the bug.
16384         * tests/test-stat.h (test_stat_func): Add argument.
16385         * tests/test-stat.c (main): Adjust caller.
16386         * tests/test-fstatat.c (main): Likewise.
16387         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16388         Reported by Jim Meyering.
16389
16390 2009-11-09  James Youngman  <jay@gnu.org>
16391
16392         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16393         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16394
16395 2009-11-08  Jim Meyering  <meyering@redhat.com>
16396
16397         utimens: remove invalid futimesat call
16398         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16399         It used the file descriptor of the target file as the DIR_FD
16400         parameter and NULL as the file name.  That caused failure with
16401         errno == EFAULT on FreeBSD-8.0-rc2
16402
16403 2009-11-07  Eric Blake  <ebb9@byu.net>
16404
16405         fflush, freadseek: use fseeko, not fseek
16406         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16407         (clear_ungetc_buffer): Avoid potential problems on large files.
16408         * lib/freadseek.c (freadseek): Likewise.
16409         * modules/freadseek (Depends-on): Add fseeko.
16410         * modules/fseek (configure.ac): Set a witness.
16411         * tests/test-fflush.c (main): Use fseeko.
16412         * tests/test-fpurge.c (fseek): Disable link warning.
16413         * tests/test-freadable.c (fseek): Likewise.
16414         * tests/test-freading.c (fseek): Likewise.
16415         * tests/test-fseeko.c (fseek): Likewise.
16416         * tests/test-ftell.c (fseek): Likewise.
16417         * tests/test-ftello.c (fseek): Likewise.
16418         * tests/test-fwritable.c (fseek): Likewise.
16419         * tests/test-fwriting.c (fseek): Likewise.
16420
16421 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16422
16423         * modules/memchr (Depends-on): Drop getpagesize dependency.
16424
16425 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16426
16427         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16428         Reported by Ludovic Courtès.
16429         * build-aux/pmccabe2html: Improve example usage.
16430         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16431
16432 2009-11-06  Jim Meyering  <meyering@redhat.com>
16433
16434         do-release-commit-and-tag: New module.
16435         Automate the release-commit and tag process.
16436         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16437         * modules/do-release-commit-and-tag: New file.
16438         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16439
16440 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16441
16442         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16443         because test-select.c uses inet_pton.
16444
16445 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16446
16447         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16448         GETADDRINFO_LIB.  Bump serial number.
16449         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16450         Suggested by Eric Blake <ebb9@byu.net>.
16451
16452 2009-11-05  Eric Blake  <ebb9@byu.net>
16453
16454         strtod: detect darwin bug
16455         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16456         Reported by Leo Davis.
16457
16458         freopen-safer: new module
16459         * modules/freopen-safer: New module.
16460         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16461         * lib/freopen-safer.c (freopen_safer): New file.
16462         * lib/stdio-safer.h (freopen_safer): New declaration.
16463         * lib/stdio--.h (freopen): New override.
16464         * MODULES.html.sh (File stream based Input/Output): Mention it.
16465         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16466         freopen-safer module.
16467         * doc/posix-functions/stderr.texi (stderr): Likewise.
16468         * doc/posix-functions/stdin.texi (stdin): Likewise.
16469         * doc/posix-functions/stdout.texi (stdout): Likewise.
16470         * modules/freopen-safer-tests: New test.
16471         * tests/test-reopen-safer.c: New file.
16472
16473 2009-11-05  Jim Meyering  <meyering@redhat.com>
16474
16475         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16476         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16477
16478 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16479
16480         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16481
16482 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16483
16484         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16485
16486 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16487
16488         Fix link error.
16489         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16490         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16491
16492 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16493
16494         * tests/test-func.c: Also test value of __func__.
16495
16496 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16497
16498         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16499         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16500
16501 2009-11-05  Bruno Haible  <bruno@clisp.org>
16502
16503         Fix link error.
16504         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16505         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16506         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16507
16508 2009-11-05  Bruno Haible  <bruno@clisp.org>
16509
16510         Tests for module 'inet_pton'.
16511         * modules/inet_pton-tests: New file.
16512         * tests/test-inet_pton.c: New file.
16513
16514 2009-11-05  Bruno Haible  <bruno@clisp.org>
16515
16516         Tests for module 'inet_ntop'.
16517         * modules/inet_ntop-tests: New file.
16518         * tests/test-inet_ntop.c: New file.
16519
16520 2009-11-04  Eric Blake  <ebb9@byu.net>
16521
16522         stdlib-safer: wrap all mkstemp variants
16523         * modules/mkostemp (configure.ac): Set witness.
16524         * modules/mkostemps (configure.ac): Likewise.
16525         * modules/mkstemps (configure.ac): Likewise.
16526         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16527         (mkstemps_safer): Wrap more functions.
16528         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16529         wrapping.
16530         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16531         (mkstemps_safer): Implement the wrappers.
16532
16533         mkstemps, mkostemps: new modules
16534         * modules/mkostemps: New module.
16535         * modules/mkstemps: Likewise.
16536         * lib/mkostemps.c (mkostemps): New file.
16537         * lib/mkstemps.c (mkstemps): Likewise.
16538         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16539         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16541         * modules/stdlib (Makefile.am): Substitute them.
16542         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16543         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16544         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16545         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16546         * MODULES.html.sh (File system functions): Mention them.
16547
16548         tempname: resync from glibc
16549         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16550         same values for __GT_FILE as glibc.  Abort even when assertions
16551         are disabled.
16552         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16553         match its value otherwise.  Allow idempotent inclusion.
16554         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16555         * lib/mkostemp.c (mkostemp): Likewise.
16556         * lib/mkstemp.c (mkstemp): Likewise.
16557         * lib/tmpfile.c (tmpfile): Likewise.
16558         * NEWS: Document this.
16559
16560         utimens: fix use of futimens on older Linux
16561         * lib/utimens.c (fdutimens): Use updated, rather than original,
16562         timespec to avoid bug in older Linux kernel.
16563         Reported by Simon Josefsson.
16564
16565 2009-11-04  Bruno Haible  <bruno@clisp.org>
16566
16567         Make num_processors more flexible and consistent.
16568         * lib/nproc.h (enum nproc_query): New type.
16569         (num_processors): Add a 'query' argument.
16570         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16571         (num_processors): Add a 'query' argument. Test the value of the
16572         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16573         mingw, count the number of CPUs available for the current process.
16574         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16575         Check for sched_getaffinity and sched_getaffinity_np.
16576         * modules/nproc (Depends-on): Add c-ctype, extensions.
16577         * NEWS: Mention the change.
16578
16579 2009-11-03  Bruno Haible  <bruno@clisp.org>
16580
16581         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16582
16583 2009-11-03  Jim Meyering  <meyering@redhat.com>
16584
16585         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16586         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16587         if it is defined.
16588
16589 2009-11-02  Eric Blake  <ebb9@byu.net>
16590
16591         mktime, timegm: share common declaration
16592         * lib/mktime-internal.h: New file.
16593         * lib/mktime.c: Use it rather than open-coding a declaration.
16594         * lib/timegm.c: Likewise.
16595         * modules/mktime (Files): Ship it.
16596         * modules/timegm (Files): Likewise.
16597         Suggested by Bruno Haible.
16598
16599         test-update-copyright: update test to match script changes
16600         * tests/test-update-copyright.sh: Avoid hard-coding perl
16601         location.  Don't update *.bak created by earlier runs.
16602
16603 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16604             Simon Josefsson  <simon@josefsson.org>
16605             Bruno Haible  <bruno@clisp.org>
16606
16607         Fix link error on Solaris 8.
16608         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16609         also in libnsl. Define also INET_PTON_LIB.
16610         * modules/inet_pton (Link): New section.
16611
16612 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16613             Bruno Haible  <bruno@clisp.org>
16614
16615         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16616         * modules/inet_ntop (Link): New section.
16617         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16618
16619 2009-11-02  Eric Blake  <ebb9@byu.net>
16620
16621         maint: avoid compiler warnings in m4 macros
16622         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16623         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16624
16625 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16626
16627         * m4/pmccabe2html.m4: Remove file.
16628         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16629         function.  Change maintainer.
16630         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16631         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16632         Courtès).
16633
16634 2009-10-31  Eric Blake  <ebb9@byu.net>
16635
16636         fseeko: fix m4 regression
16637         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16638         regression from 2009-10-27.
16639         Reported by Ralf Wildenhues.
16640
16641 2009-10-31  Jim Meyering  <meyering@redhat.com>
16642
16643         inttostr: aesthetics and improved (compile-time) safety
16644         Define inttype_is_signed rather than inttype_is_unsigned,
16645         since the sole use is via "#if inttype_is_signed".
16646         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
16647         inttype_is_unsigned.
16648         * lib/offtostr.c (inttype_is_signed): Likewise.
16649         * lib/uinttostr.c (inttype_is_signed): Likewise.
16650         * lib/umaxtostr.c (inttype_is_signed): Likewise.
16651         * lib/inttostr.c (inttostr): Use verify to cross-check the
16652         inttype_is_signed value and the signedness of the actual type.
16653         * modules/inttostr (Depends-on): Add verify.
16654
16655 2009-10-30  Eric Blake  <ebb9@byu.net>
16656
16657         build: avoid compiler warnings
16658         * lib/fchmodat.c (lchmod): Mark unused variables.
16659         * lib/getopt.c (_getopt_initialize): Likewise.
16660         * lib/mktime.c (__mktime_internal): Provide prototype.
16661         * lib/inttostr.c (inttostr): Avoid compiler warning even with
16662         older gcc that do not understand #pragma GCC diagnostic.
16663         * lib/uinttostr.c (inttype_is_unsigned): Define.
16664         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
16665
16666 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16667
16668         stat: fix compilation on AIX
16669         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
16670         only see struct stat64.
16671
16672 2009-10-30  Eric Blake  <ebb9@byu.net>
16673
16674         exclude: make more robust
16675         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
16676         rather than masking a coding bug.
16677         Suggested by Bruno Haible.
16678
16679 2009-10-30  Jim Meyering  <meyering@redhat.com>
16680
16681         perl scripts: remove #!/usr/bin/perl in favor of more portable...
16682         Rather than putting #!/usr/bin/perl on the first line,
16683         start with a variant of what's recommended by "man perlrun" that
16684         invokes the first "perl" program from your shell's search path.
16685         * build-aux/gitlog-to-changelog: Replace #!... as above.
16686         Add a "Local Variables" perl mode setting.
16687         Prompted by a patch from Ludovic Courtès.
16688         Improved by Eric Blake.
16689         * build-aux/useless-if-before-free: Likewise.
16690         * build-aux/announce-gen: Likewise.
16691         * build-aux/update-copyright: Likewise.
16692
16693 2009-10-29  Eric Blake  <ebb9@byu.net>
16694
16695         filenamecat-lgpl: adjust clients
16696         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
16697         filenamecat.
16698         * modules/renameat (Depends-on): Likewise.
16699
16700         filenamecat: split into filenamecat-lgpl
16701         * modules/filenamecat-lgpl: New module.
16702         * modules/filenamecat (Files): Move library-safe files into
16703         filenamecat-lgpl.
16704         (Depends-on): Add filenamecat-lgpl.
16705         (configure.ac): Declare witness.
16706         * lib/filenamecat.h (file_name_concat): Only declare when using
16707         GPL module.
16708         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
16709         Move...
16710         * lib/filenamecat-lgpl.c: ...into new file.
16711         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
16712         (gl_FILE_NAME_CONCAT): Use it.
16713         * MODULES.html.sh (File system functions): Mention new module.
16714
16715         argp: avoid memory leak
16716         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
16717         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
16718         base_name, since the latter malloc()s and can call exit().
16719         Leak introduced 2006-07-03.
16720
16721         dirname-lgpl: adjust clients that don't need full dirname
16722         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
16723         * modules/filenamecat (Depends-on): Likewise.
16724         * modules/linkat (Depends-on): Likewise.
16725         * modules/mkancesdirs (Depends-on): Likewise.
16726         * modules/mkdir (Depends-on): Likewise.
16727         * modules/openat (Depends-on): Likewise.
16728         * modules/savewd (Depends-on): Likewise.
16729         * modules/rename (Depends-on): Likewise.
16730         (License): Relax license.
16731         * modules/mkdir-tests (Depends-on): Drop progname.
16732         (Makefile.am): Delete unneeded LDADD.
16733         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
16734
16735         dirname: split into dirname-lgpl
16736         * modules/dirname-lgpl: New module.
16737         * modules/dirname (Files): Move library-safe files into
16738         dirname-lgpl.
16739         (Depends-on): Add dirname-lgpl.
16740         (configure.ac): Declare witness.
16741         * modules/double-slash-root (License): Relax license.
16742         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
16743         module.
16744         * lib/dirname.c (dir_len, mdir_name): Move...
16745         * lib/dirname-lgpl.c: ...into new file.
16746         * lib/basename.c (last_component, base_len): Move...
16747         * lib/basename-lgpl.c: ...into new file.
16748         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
16749         (gl_DIRNAME): Use it.
16750         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
16751         Mention new module.
16752         * modules/dirname-tests (Depends-on): Add progname.
16753         * tests/test-dirname.c (program_name): Delete.
16754
16755         mkdir: make safe for libraries
16756         * modules/mkdir (Depends-on): Drop xalloc.
16757         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
16758         exit.
16759
16760         tests: avoid some compiler warnings
16761         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
16762         literals.
16763         * tests/test-memchr.c (main): Avoid type mismatch.
16764         * tests/test-arpa_inet.c (main): Avoid unused parameters.
16765         * tests/test-base64.c (main): Likewise.
16766         * tests/test-getdelim.c (main): Likewise.
16767         * tests/test-gethostname.c (main): Likewise.
16768         * tests/test-getline.c (main): Likewise.
16769         * tests/test-netinet_in.c (main): Likewise.
16770         * tests/test-select.c (open_server_socket, main): Likewise.
16771         * tests/test-select-stdin.c (main): Likewise.
16772         * tests/test-sockets.c (main): Likewise.
16773         * tests/test-strsignal.c (main): Likewise.
16774         * tests/test-sys_select.c (main): Likewise.
16775         * tests/test-sys_socket.c (main): Likewise.
16776         * tests/test-u64.c (main): Likewise.
16777         * tests/test-xfprintf-posix.c (main): Likewise.
16778         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
16779
16780         sockets: avoid compiler warning
16781         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
16782
16783         maint: detect usage(1) and other suspicious exits
16784         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
16785
16786 2009-10-29  Jim Meyering  <meyering@redhat.com>
16787
16788         timespec: long-to-int truncation could make timespec_cmp malfunction
16789         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
16790         a multiple of 2^32 nanoseconds as no difference.
16791
16792 2009-10-28  Jim Meyering  <meyering@redhat.com>
16793
16794         fprintftime: wrap macro code argument in "do {...} while(0)"
16795         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
16796         cpy macro must be a statement that can be followed by a semicolon.
16797         Now that the else clause contains a comment and is hence longer
16798         than one line, I require curly braces.  That in turn requires
16799         that we wrap this code block in the standard do...while(0).
16800
16801         fprintftime: remove stray semicolon from previous change
16802         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
16803
16804         fprintftime: avoid a warning about ignored fwrite return value
16805         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
16806         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
16807         that is unsafe.
16808         * modules/fprintftime (Depends-on): Add ignore-value.
16809
16810         exclude: avoid an unwarranted warning
16811         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16812
16813 2009-10-27  Eric Blake  <ebb9@byu.net>
16814
16815         fseek: avoid compilation failure when fflush is replaced
16816         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16817         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16818         module is in use.
16819         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16820         module is not in use; since REPLACE_FSEEK worked otherwise.
16821         (GNULIB_FTELLO): Likewise for ftell.
16822         Reported by Ian Beckwith and others.
16823
16824 2009-10-27  Bruno Haible  <bruno@clisp.org>
16825
16826         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16827         Reported by Jim Meyering.
16828
16829 2009-10-27  Jim Meyering  <jim@meyering.net>
16830             Bruno Haible  <bruno@clisp.org>
16831
16832         Avoid warning despite dropping the return value of fwrite.
16833         * lib/unicodeio.c: Include ignore-value.h.
16834         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16835         * modules/unicodeio (Depends-on): Add ignore-value.
16836
16837 2009-10-26  Eric Blake  <ebb9@byu.net>
16838
16839         areadlinkat: fix fallback path
16840         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16841         pointer and zero.
16842
16843 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16844
16845         Use a better IO block size for modern systems
16846         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16847         * lib/md2.c: Likewise.
16848         * lib/md4.c: Likewise.
16849         * lib/md5.c: Likewise.
16850         * lib/sha1.c: Likewise.
16851         * lib/sha256.c: Likewise.
16852         * lib/sha512.c: Likewise.
16853
16854 2009-10-22  Eric Blake  <ebb9@byu.net>
16855
16856         tests: avoid several compiler warnings
16857         * tests/test-getcwd.c (main): Avoid buffer underflow.
16858         * tests/test-getdate.c (main): String literals are not safe with
16859         putenv, so use setenv.  Declare unused argument.
16860         * modules/getdate-tests (Depends-on): Add setenv.
16861         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16862         problems with string literals in char *.
16863         * tests/test-hash.c (main): Avoid shadowing declaration.
16864         (insert_new): Treat string literals as char const *.
16865         * tests/test-getopt.h (test_getopt): Likewise.
16866         (getopt_loop): Alter types to minimize casting elsewhere.
16867         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16868         (test_getopt_long_posix): Likewise.
16869         (do_getopt_long): Add wrapper to minimize casting.
16870         * tests/test-atexit.c (clear_temp_file): Use void.
16871         * tests/test-areadlink-with-size.c (main): Declare unused
16872         arguments.
16873         * tests/test-areadlink.c (main): Likewise.
16874         * tests/test-areadlinkat-with-size.c (main): Likewise.
16875         * tests/test-areadlinkat.c (main): Likewise.
16876         * tests/test-canonicalize-lgpl.c (main): Likewise.
16877         * tests/test-canonicalize.c (main): Likewise.
16878         * tests/test-dirent-safer.c (main): Likewise.
16879         * tests/test-dirname.c (main): Likewise.
16880         * tests/test-dup2.c (main): Likewise.
16881         * tests/test-fchdir.c (main): Likewise.
16882         * tests/test-fcntl-h.c (main): Likewise.
16883         * tests/test-fcntl-safer.c (main): Likewise.
16884         * tests/test-fdopendir.c (main): Likewise.
16885         * tests/test-fdutimensat.c (main): Likewise.
16886         * tests/test-fflush.c (main): Likewise.
16887         * tests/test-filenamecat.c (main): Likewise.
16888         * tests/test-filevercmp.c (main): Likewise.
16889         * tests/test-fopen-safer.c (main): Likewise.
16890         * tests/test-fopen.c (main): Likewise.
16891         * tests/test-fpending.c (main): Likewise.
16892         * tests/test-fpurge.c (main): Likewise.
16893         * tests/test-freading.c (main): Likewise.
16894         * tests/test-fstatat.c (main): Likewise.
16895         * tests/test-fsync.c (main): Likewise.
16896         * tests/test-futimens.c (main): Likewise.
16897         * tests/test-getndelim2.c (main): Likewise.
16898         * tests/test-gettimeofday.c (main): Likewise.
16899         * tests/test-getopt.c (main): Likewise.
16900         * tests/test-i-ring.c (main): Likewise.
16901         * tests/test-inttypes.c (main): Likewise.
16902         * tests/test-link.c (main): Likewise.
16903         * tests/test-lstat.c (main): Likewise.
16904         * tests/test-math.c (main): Likewise.
16905         * tests/test-md5.c (main): Likewise.
16906         * tests/test-memchr2.c (main): Likewise.
16907         * tests/test-memrchr.c (main): Likewise.
16908         * tests/test-mkdir.c (main): Likewise.
16909         * tests/test-mkdirat.c (main): Likewise.
16910         * tests/test-mkfifoat.c (main): Likewise.
16911         * tests/test-open.c (main): Likewise.
16912         * tests/test-openat-safer.c (main): Likewise.
16913         * tests/test-openat.c (main): Likewise.
16914         * tests/test-quotearg.c (main): Likewise.
16915         * tests/test-rawmemchr.c (main): Likewise.
16916         * tests/test-readlink.c (main): Likewise.
16917         * tests/test-remove.c (main): Likewise.
16918         * tests/test-rename.c (main): Likewise.
16919         * tests/test-renameat.c (main): Likewise.
16920         * tests/test-rmdir.c (main): Likewise.
16921         * tests/test-sha1.c (main): Likewise.
16922         * tests/test-signal.c (main): Likewise.
16923         * tests/test-sigaction.c (main): Likewise.
16924         * tests/test-stat.c (main): Likewise.
16925         * tests/test-stat-time.c (main): Likewise.
16926         * tests/test-stddef.c (main): Likewise.
16927         * tests/test-stdint.c (main): Likewise.
16928         * tests/test-stdio.c (main): Likewise.
16929         * tests/test-stdlib.c (main): Likewise.
16930         * tests/test-strchrnul.c (main): Likewise.
16931         * tests/test-strerror.c (main): Likewise.
16932         * tests/test-string.c (main): Likewise.
16933         * tests/test-strtod.c (main): Likewise.
16934         * tests/test-strverscmp.c (main): Likewise.
16935         * tests/test-symlink.c (main): Likewise.
16936         * tests/test-symlinkat.c (main): Likewise.
16937         * tests/test-sys_stat.c (main): Likewise.
16938         * tests/test-sys_time.c (main): Likewise.
16939         * tests/test-time.c (main): Likewise.
16940         * tests/test-unistd.c (main): Likewise.
16941         * tests/test-unlink.c (main): Likewise.
16942         * tests/test-unlinkat.c (main): Likewise.
16943         * tests/test-utimens.c (main): Likewise.
16944         * tests/test-utimensat.c (main): Likewise.
16945         * tests/test-version-etc.c (main): Likewise.
16946         * tests/test-wchar.c (main): Likewise.
16947         * tests/test-wctype.c (main): Likewise.
16948         * tests/test-xprintf-posix.c (main): Likewise.
16949         * tests/test-posixtm.c (main): Likewise.
16950         (STREQ): Delete unused macro.
16951         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16952         shadowed variables.
16953         * tests/test-memchr.c (main): Likewise.
16954
16955 2009-10-21  Eric Blake  <ebb9@byu.net>
16956
16957         areadlinkat: avoid failure on older glibc
16958         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16959         rather than mis-comparing 0 against FUNC_RESULT of char*.
16960
16961 2009-10-21  Bruno Haible  <bruno@clisp.org>
16962
16963         * modules/stpncpy (License): Relicense under LGPLv2+.
16964         Reported by David Lutterkort <lutter@redhat.com>.
16965
16966 2009-10-20  Eric Blake  <ebb9@byu.net>
16967
16968         utimensat: work around Solaris 9 bug
16969         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16970         has trailing slash bugs.
16971         * tests/test-lutimens.h (test_lutimens): Enhance test.
16972         * tests/test-utimens.h (test_utimens): Likewise.
16973         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16974         * doc/posix-functions/utimes.texi (utimes): Likewise.
16975         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16976         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16977         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16978         * doc/posix-functions/futimens.texi (futimens): Likewise.
16979
16980         fdutimensat: new module
16981         * modules/fdutimensat: New file.
16982         * lib/fdutimensat.c (fdutimensat): Likewise.
16983         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16984         * MODULES.html.sh (File system functions): Mention module.
16985         * modules/fdutimensat-tests: New test.
16986         * tests/test-fdutimensat.c: Likewise.
16987
16988         doc: regenerate INSTALL
16989         * doc/INSTALL: Reflect recent autoconf update.
16990         * doc/INSTALL.ISO: Likewise.
16991         * doc/INSTALL.UTF-8: Likewise.
16992
16993 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16994
16995         acl: warn if ACL support is not detected
16996         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16997
16998 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16999
17000         * lib/nproc.h: Add extern "C" block for C++.
17001
17002 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
17003             Bruno Haible  <bruno@clisp.org>
17004
17005         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
17006         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
17007         * doc/posix-functions/isalpha.texi: Likewise.
17008         * doc/posix-functions/isblank.texi: Likewise.
17009         * doc/posix-functions/iscntrl.texi: Likewise.
17010         * doc/posix-functions/isdigit.texi: Likewise.
17011         * doc/posix-functions/isgraph.texi: Likewise.
17012         * doc/posix-functions/islower.texi: Likewise.
17013         * doc/posix-functions/isprint.texi: Likewise.
17014         * doc/posix-functions/ispunct.texi: Likewise.
17015         * doc/posix-functions/isspace.texi: Likewise.
17016         * doc/posix-functions/isupper.texi: Likewise.
17017         * doc/posix-functions/isxdigit.texi: Likewise.
17018
17019 2009-10-18  Bruno Haible  <bruno@clisp.org>
17020
17021         Tests for module 'isblank'.
17022         * modules/isblank-tests: New file.
17023         * tests/test-isblank.c: New file.
17024
17025         New module 'isblank'.
17026         * lib/isblank.c: New file.
17027         * m4/isblank.m4: New file.
17028         * modules/isblank: New file.
17029         * doc/posix-functions/isblank.texi: Mention the new module.
17030
17031 2009-10-18  Bruno Haible  <bruno@clisp.org>
17032
17033         New module 'ctype'.
17034         * lib/ctype.in.h: New file.
17035         * m4/ctype.m4: New file.
17036         * modules/ctype: New file.
17037         * doc/posix-headers/ctype.texi: Mention the new module.
17038
17039 2009-10-18  Jim Meyering  <meyering@redhat.com>
17040
17041         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
17042         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
17043         right after its initialization, rather than farther down.
17044         Keeping these in close proximity makes it easier to ensure
17045         that each such variable is initialized.  E.g.,
17046
17047             LIB_CLOCK_GETTIME=
17048             AC_SUBST([LIB_CLOCK_GETTIME])
17049
17050         This change also increments these serial numbers.
17051         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
17052         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17053         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17054
17055 2009-10-18  Bruno Haible  <bruno@clisp.org>
17056
17057         Don't let environment variables perturb build.
17058         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
17059         (gl_PREREQ_GETHRXTIME): ... not here.
17060
17061 2009-10-18  Bruno Haible  <bruno@clisp.org>
17062
17063         Avoid symlink attack in localcharset module.
17064         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
17065         (O_NOFOLLOW): Define fallback.
17066         (get_charset_aliases): Don't open the file if it is a symbolic link.
17067         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
17068         gl_FCNTL_H.
17069         (gl_FCNTL_H): Require it.
17070         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
17071         * modules/localcharset (Files): Add m4/fcntl_h.m4.
17072         Reported by Fergal Glynn <fglynn@veracode.com>.
17073
17074 2009-10-18  Bruno Haible  <bruno@clisp.org>
17075
17076         Implement nproc for mingw.
17077         * lib/nproc.c: Include <windows.h>
17078         (num_processors): On native Windows platforms, try GetSystemInfo.
17079
17080 2009-10-18  Bruno Haible  <bruno@clisp.org>
17081
17082         Implement nproc for IRIX.
17083         * lib/nproc.c: Include <sys/sysmp.h>.
17084         (num_processors): On IRIX systems, try sysmp.
17085         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
17086
17087 2009-10-18  Bruno Haible  <bruno@clisp.org>
17088
17089         Implement nproc for HP-UX.
17090         * lib/nproc.c: Include <sys/pstat.h>
17091         (num_processors): On HP-UX systems, try pstat_getdynamic.
17092         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
17093         pstat_getdynamic.
17094
17095 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
17096             Bruno Haible  <bruno@clisp.org>
17097
17098         Implement nproc for NetBSD, OpenBSD.
17099         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
17100         (ARRAY_SIZE): New macro.
17101         (num_processors): On BSD systems, try sysctl of HW_NCPU.
17102         * m4/nproc.m4: New file.
17103         * modules/nproc (Files): Add m4/nproc.m4.
17104         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
17105         (Makefile.am): Instead, augment lib_SOURCES.
17106
17107 2009-10-18  Bruno Haible  <bruno@clisp.org>
17108
17109         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
17110         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
17111         sys/param.h.
17112
17113 2009-10-16  Eric Blake  <ebb9@byu.net>
17114
17115         utimensat: new module
17116         * modules/utimensat: New file.
17117         * lib/utimensat.c (utimensat): Likewise.
17118         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17119         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
17120         so we can work around Linux bugs.
17121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17122         * modules/sys_stat (Makefile.am): Substitute them.
17123         * lib/sys_stat.in.h (utimensat): Declare it.
17124         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17125         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17126         * modules/utimensat-tests: New test.
17127         * tests/test-utimensat.c: Likewise.
17128
17129         utimens: let lutimens work on non-symlinks
17130         * lib/utimens.c (lutimens): Fall back to utimens rather than
17131         failing with ENOSYS, when file is not a symlink.
17132         (utimens): Reduce redirection.
17133         * tests/test-lutimens.h (test_lutimens): Update test to cover
17134         non-symlinks.
17135         * tests/test-utimens.h (test_utimens): Update test to cover
17136         symlinks.
17137         * tests/test-utimens.c (main): Update caller.
17138
17139         utimens: cache whether utimensat syscall works
17140         * lib/utimens.c (utimensat_works_really): New cache variable.
17141         (fdutimens, lutimens): Use it to avoid failing syscall.
17142
17143         test-stat-time, test-utimens: improve portability
17144         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
17145         ext4 on alpha, and for cygwin.
17146         * tests/test-utimens-common.h: New file.
17147         (nap): Factor delays into single function.
17148         * tests/test-lutimens.h (test_lutimens): Use new header.
17149         * tests/test-futimens.h (test_futimens): Likewise.
17150         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
17151         timestamps to occur from same machine, as was done previously for
17152         test_utimens.
17153         * modules/utimens-tests (Files): Ship new file.
17154         * modules/futimens-tests (Files): Likewise.
17155         Reported in part by Jim Meyering.
17156
17157         sys_stat: sort replacement declarations
17158         * lib/sys_stat.in.h: Sort declarations.
17159         * lib/futimens.c (futimens): Fix typo.
17160
17161 2009-10-15  Jim Meyering  <meyering@redhat.com>
17162
17163         don't let environment settings perturb build
17164         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
17165         could cause a configure-time and/or build-time malfunction.
17166         Typically, a configure-time function-in-library test is performed
17167         via code like this:
17168
17169           LIB_VAR=
17170           AC_SUBST([LIB_VAR])
17171           prefix_saved_LIBS=$LIBS
17172             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
17173                        [test "$ac_cv_search_FUNC" = "none required" ||
17174                         LIB_VAR=$ac_cv_search_FUNC])
17175           LIBS=$prefix_saved_LIBS
17176
17177         However, in each of the files affected by this change, the LIB_VAR=
17178         initialization was omitted.  Thus, when set in the environment, its
17179         value would propagate into generated Makefiles when FUNC is not found
17180         in LIB_NAME.
17181         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
17182         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17184
17185 2009-10-14  Eric Blake  <ebb9@byu.net>
17186
17187         fchdir: avoid infinite recursion in mingw
17188         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
17189         recursing.
17190
17191         test-stat-time: port to mingw
17192         * tests/test-stat-time.c (force_unlink): Return a value.
17193         (test_ctime) [W32]: Fix compilation error.
17194         (nap): Don't call usleep with too large an argument.  Use
17195         force_unlink.
17196         * doc/pastposix-functions/usleep.texi (usleep): Document the
17197         portability issue.
17198
17199 2009-10-13  Jim Meyering  <meyering@redhat.com>
17200
17201         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
17202         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
17203         * modules/pipe-filter-ii: Likewise.
17204         * modules/sys_socket-tests: Likewise.
17205         * modules/tsearch-tests: Likewise.
17206         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
17207         (check): Depend on it.
17208
17209 2009-10-12  Eric Blake  <ebb9@byu.net>
17210
17211         utimens-tests: port to NFS file systems
17212         * tests/test-utimens.h (test_utimens): Refactor utimecmp
17213         comparisons to avoid spurious failures from timestamp drift
17214         between NFS machines.
17215
17216 2009-10-12  Eric Blake  <ebb9@byu.net>
17217
17218         stat-time-tests: minor cleanups
17219         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
17220         * tests/test-stat-time.c (nap): Separate assignment from call.
17221         Suggested by Paolo Bonzini and Bruno Haible.
17222
17223         sys_stat: guarantee struct timespec
17224         * lib/sys_stat.in.h (includes): Always include <time.h>
17225         * modules/sys_stat (Depends-on): Add time.
17226         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
17227         mode_t permission values.
17228         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
17229         get at subsecond timestamps.
17230
17231 2009-10-10  Eric Blake  <ebb9@byu.net>
17232
17233         futimens: new module
17234         * modules/futimens: New file.
17235         * lib/futimens.c (futimens): Likewise.
17236         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
17237         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
17238         we can work around Linux bugs.
17239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17240         * modules/sys_stat (Makefile.am): Substitute them.
17241         * lib/sys_stat.in.h (futimens): Declare it.
17242         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17243         * doc/posix-functions/futimens.texi (futimens): Likewise.
17244         * modules/futimens-tests: New test.
17245         * tests/test-futimens.c: Likewise.
17246
17247         utimens: introduce fdutimens
17248         * lib/utimens.h (fdutimens): New prototype.
17249         * lib/utimens.c (gl_futimens): Move guts...
17250         (fdutimens): ...to new interface.
17251         * tests/test-utimens.c (do_fdutimens): Use it.
17252
17253         utimens: add UTIME_NOW and UTIME_OMIT support
17254         * lib/utimens.c (validate_timespec, update_timespec): New helper
17255         functions.
17256         (gl_futimens, lutimens): Use them.
17257         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
17258         stdbool, sys_stat.
17259         (Link): Mention resulting library dependency.
17260         * modules/utimecmp (Link): Likewise.
17261         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
17262         (Makefile.am): Pick up library dependency.
17263         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
17264         definition.
17265         * tests/test-sys_stat.c: Test the definitions.
17266         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
17267         * NEWS: Document library dependency.
17268
17269         utimecmp: support symlink timestamps
17270         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
17271         hashing when possible.  Use pathconf when available.
17272         (SYSCALL_RESOLUTION): Recognize tighter resolution.
17273         * modules/utimecmp (Depends-on): Add lstat.
17274
17275         utimens: add lutimens interface
17276         * lib/utimens.c (lutimens): New function.
17277         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
17278         * lib/utimens.h (lutimens): Declare new interface.
17279         * tests/test-utimens.c (main): Enhance test.
17280         * tests/test-lutimens.h (test_lutimens): New file.
17281         * modules/utimens-tests (Files): Distribute it.
17282         (Depends-on): Add symlink.
17283         (configure.ac): Check for usleep.
17284
17285         utimens: validate futimens usage
17286         * lib/utimens.c (gl_futimens): Require valid fd up front, using
17287         fewer syscalls on failure later on.  Avoid compiler warning on
17288         mingw.
17289         * modules/utimens (Depends-on): Add dup2.
17290
17291         utimens: add test
17292         * modules/utimens-tests: New test.
17293         * tests/test-utimens.h: New file.
17294         * tests/test-futimens.h: Likewise.
17295         * tests/test-utimens.c: Likewise.
17296
17297         doc: mention timestamp portability issues
17298         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
17299         instead.
17300         * doc/posix-functions/utime.texi (utime): Likewise.
17301         * doc/posix-functions/utimes.texi (utimes): Likewise.
17302         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
17303         instead.
17304         * doc/posix-functions/futimens.texi (futimens): Mention utimens
17305         module.
17306         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17307         Mention weakness with symlink timestamps.
17308         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
17309         to utimensat/futimens instead.
17310         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
17311
17312         test-dup2: enhance test
17313         * tests/test-dup2.c (main): Also check AT_FDCWD.
17314
17315         test-stat-time: avoid more spurious failures
17316         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
17317         xfs; and avoid race if the two timestamps cross quantization edge.
17318
17319         relocatable: prefer 'file system' over 'filesystem'
17320         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
17321         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
17322         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
17323         * doc/relocatable.texi (Enabling Relocatability): Likewise.
17324         * lib/relocatable.c (compute_curr_prefix): Likewise.
17325
17326 2009-10-10  Jim Meyering  <meyering@redhat.com>
17327
17328         stat-time-tests: check for the usleep function
17329         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
17330
17331 2009-10-10  Bruno Haible  <bruno@clisp.org>
17332
17333         * modules/xnanosleep: Put the Link section after the Include section.
17334
17335 2009-10-09  Eric Blake  <ebb9@byu.net>
17336
17337         dup2: work around FreeBSD 6.1 bug
17338         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
17339         * doc/posix-functions/dup2.texi (dup2): Document it.
17340         Reported by Nelson H. F. Beebe and Jim Meyering.
17341
17342         test-stat-time: port to buggy NFS clients
17343         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
17344         (test_ctime): Also skip test if mtime and ctime are skewed.
17345
17346         maint: prefer 'file system' over 'filesystem'
17347         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17348         * doc/posix-functions/lstat.texi (lstat): Likewise.
17349         * lib/file-has-acl.c (file_has_acl): Likewise.
17350         * lib/fwriteerror.c [TEST]: Likewise.
17351         * tests/test-areadlink.h (test_areadlink): Likewise.
17352         * tests/test-areadlinkat-with-size.c (main): Likewise.
17353         * tests/test-areadlinkat.c (main): Likewise.
17354         * tests/test-canonicalize-lgpl.c (main): Likewise.
17355         * tests/test-canonicalize.c (main): Likewise.
17356         * tests/test-fstatat.c (main): Likewise.
17357         * tests/test-linkat.c (main): Likewise.
17358         * tests/test-lstat.h (test_lstat_func): Likewise.
17359         * tests/test-mkdir.h (test_mkdir): Likewise.
17360         * tests/test-readlink.h (test_readlink): Likewise.
17361         * tests/test-remove.c (main): Likewise.
17362         * tests/test-rename.h (test_rename): Likewise.
17363         * tests/test-renameat.c (main): Likewise.
17364         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17365         * tests/test-symlink.h (test_symlink): Likewise.
17366         * tests/test-symlinkat.c (main): Likewise.
17367         * tests/test-unlink.h (test_unlink_func): Likewise.
17368         * tests/test-unlinkat.c (main): Likewise.
17369
17370         maint: make realtime library usage explicit
17371         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17372         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17373         * modules/settime (Link): Likewise.
17374         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17375
17376         test-stat-time: speed up execution
17377         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17378         warning on mingw.
17379         (nap): New helper function.
17380         (prepare_test): Use it to reduce sleep time.
17381         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17382         execution.
17383         * modules/stat-time-tests (configure.ac): Check for usleep.
17384
17385 2009-10-09  Jim Meyering  <meyering@redhat.com>
17386
17387         selinux-h: always use getfilecon wrappers
17388         * lib/getfilecon.c: New file.
17389         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17390         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17391         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17392         (fgetfilecon): Provide a stub.
17393         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17394         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17395         file unconditionally.
17396         When <selinux/selinux.h> is found, arrange to use wrappers.
17397         * modules/selinux-h (Files): Add getfilecon.c.
17398         (Makefile.am): Substitute include-next-related bits
17399         into the now-always-generated selinux/selinux.h file.
17400         * doc/glibc-functions/lgetfilecon.texi: New file.
17401         * doc/glibc-functions/fgetfilecon.texi: New file.
17402         * doc/glibc-functions/getfilecon.texi: New file.
17403         * doc/glibc-functions/getfilecon-desc.texi: New file.
17404         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17405         which to pull in the new files.
17406         * MODULES.html.sh (Misc): Add selinux-h.
17407
17408 2009-10-08  Jim Meyering  <meyering@redhat.com>
17409
17410         unistd: fix comment typo
17411         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17412
17413 2009-10-08  Eric Blake  <ebb9@byu.net>
17414
17415         areadlink: use SIZE_MAX consistently
17416         * modules/areadlink (Depends-on): Add stdint.
17417         * modules/areadlink-with-size (Depends-on): Likewise.
17418         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17419         gives NULL; drop sys/types, since unistd gives size_t; and add
17420         stdint for SIZE_MAX.
17421         (SIZE_MAX): Rely on headers.
17422         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17423         and add stdint.
17424         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17425         (SIZE_MAX): Likewise.
17426         (INITIAL_BUF_SIZE): Turn into enum.
17427         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17428
17429 2009-10-08  Jim Meyering  <meyering@redhat.com>
17430
17431         areadlinkat: avoid compilation failure
17432         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17433         Fix typo in comment.
17434
17435 2009-10-07  Eric Blake  <ebb9@byu.net>
17436
17437         areadlinkat-with-size: new module
17438         * modules/areadlinkat-with-size: New module.
17439         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17440         * lib/areadlink.h (areadlinkat): Declare it.
17441         * MODULES.html.sh (File system functions): Mention it.
17442         * modules/areadlinkat-with-size-tests: New test.
17443         * tests/test-areadlinkat-with-size.c: New file.
17444
17445         xreadlinkat: new module
17446         * modules/xreadlinkat: New module.
17447         * lib/xreadlinkat.c (xreadlinkat): New file.
17448         * lib/xreadlink.h (xreadlinkat): Declare it.
17449         * MODULES.html.sh (File system functions): Mention it.
17450
17451         areadlinkat: new module
17452         * lib/at-func.c (FUNC_FAIL): New define.
17453         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17454         * modules/areadlinkat: New module.
17455         * lib/linkat.c (areadlinkat): Move...
17456         * lib/areadlinkat.c (areadlinkat): ...to new file.
17457         * lib/areadlink.h (areadlinkat): Declare it.
17458         * modules/linkat (Depends-on): Add areadlinkat.
17459         * MODULES.html.sh (File system functions): Mention it.
17460         * modules/areadlinkat-tests: New test.
17461         * tests/test-areadlinkat.c: New file.
17462
17463         areadlink, areadlink-with-size: add tests
17464         * modules/areadlink-tests: New test.
17465         * modules/areadlink-with-size-tests: Likewise.
17466         * tests/test-areadlink.h: New file.
17467         * tests/test-areadlink.c: Likewise.
17468         * tests/test-areadlink-with-size.c: Likewise.
17469
17470         maint: minor cleanups
17471         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17472         _UNUSED_PARAMETER_ instead.
17473         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17474         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17475         * modules/linkat-tests (Files): Distribute test-link.h.
17476
17477         openat, utimens: whitespace cleanup
17478         * lib/openat.c: Prefer space throughout, rather than mix of 8
17479         spaces vs. tabs.
17480         * lib/at-func.c: Likewise.
17481         * lib/utimens.c: Likewise.
17482
17483         openat: avoid using wrong fd
17484         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17485         working directory chooses same fd.
17486         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17487
17488         mkdir, mkdirat: fix cygwin 1.5.x bug
17489         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17490         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17491         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17492         bug.
17493         (gl_PREREQ_MKDIR): Delete unused macro.
17494         * modules/mkdir (Files): Track file rename.
17495         (configure.ac): Update macro name.
17496         * modules/openat (Depends-on): Add mkdir.
17497         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17498
17499         mkdir, mkdirat: add tests
17500         * modules/mkdir-tests: New test.
17501         * tests/test-mkdir.h: New file.
17502         * tests/test-mkdir.c: Likewise.
17503         * tests/test-mkdirat.c: Likewise.
17504         * modules/openat-tests (Files): Add new files.
17505         (Makefile.am): Run new test.
17506
17507 2009-10-06  Eric Blake  <ebb9@byu.net>
17508
17509         doc: tweak *at function documentation
17510         * doc/posix-functions/faccessat.texi (faccessat): Mention
17511         known issue with replacement.
17512         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17513         * doc/posix-functions/linkat.texi (linkat): Likewise.
17514         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17515         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17516         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17517         * doc/posix-functions/renameat.texi (renameat): Likewise.
17518         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17519
17520         openat: fix GNU/Hurd bug in unlinkat
17521         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17522         broken.
17523         * doc/posix-functions/unlink.texi (unlink): Document this.
17524         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17525
17526         fdopendir: fix GNU/Hurd bug
17527         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17528         allowing non-directory fds.
17529         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17531         * modules/dirent (Makefile.am): Substitute it.
17532         * lib/dirent.in.h (fdopendir): Declare replacement.
17533         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17534         * tests/test-fdopendir.c (main): Test something other than
17535         /dev/null, since on Hurd that behaves like a directory.
17536
17537         test-symlink: port to GNU/Hurd
17538         * tests/test-symlink.h (test_symlink): Relax expected errno.
17539
17540         doc: tweak more cygwin information
17541         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17542         now compatible with glibc.
17543         * doc/posix-functions/getopt.texi (getopt): Likewise.
17544
17545         getopt-gnu: add another test
17546         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17547         guarantee behavior relied on by m4.
17548         * tests/test-getopt.c (main): Use it.
17549         * modules/getopt-posix-tests (Depends-on): Add setenv.
17550         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17551
17552         getopt: fix compilation on darwin
17553         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17554         include.
17555         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17556         Reported by Ludovic Courtès.
17557
17558 2009-10-06  Bruno Haible  <bruno@clisp.org>
17559
17560         * modules/size_max (Description): Discourage its use.
17561         Reported by Simon Josefsson.
17562
17563 2009-10-06  Jim Meyering  <meyering@redhat.com>
17564
17565         linkat: avoid compilation failure
17566         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17567
17568 2009-10-05  Eric Blake  <ebb9@byu.net>
17569
17570         linkat: support Linux 2.6.17
17571         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17572         linkat on Linux, but allow cache variable override.
17573         * lib/linkat.c (rpl_linkat): Define override.
17574         * modules/linkat (Depends-on): Add symlinkat.
17575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17576         * modules/unistd (Makefile.am): Substitute it.
17577         * lib/unistd.in.h (linkat): Declare replacement.
17578         Reported by Pádraig Brady.
17579
17580         quotearg: port test to systems with C.UTF-8 locale
17581         * tests/test-quotearg.c (struct result_strings): Add another
17582         member, differentiating between C.ASCII and C.UTF-8 handling.
17583         (compare_strings): Add parameter.
17584         (main): Adjust all callers.
17585
17586         getopt: avoid clash with FreeBSD _getopt_internal
17587         * lib/getopt.in.h (_getopt_internal): Override the name.
17588         * lib/getopt_int.h (includes): Pick up any overrides.
17589         Reported by Reuben Thomas.
17590
17591         hash: allow C89 compilation
17592         * lib/hash.c (check_tuning): Move declaration before statement.
17593         Reported by Reuben Thomas.
17594
17595 2009-10-05  Karl Berry  <karl@gnu.org>
17596
17597         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17598
17599 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17600             Bruno Haible  <bruno@clisp.org>
17601
17602         * lib/uname.c (uname): Use a table-driven algorithm to compute
17603         Windows NT versions.
17604
17605 2009-10-04  Bruno Haible  <bruno@clisp.org>
17606
17607         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17608         program_invocation_short_name.
17609         * modules/progname (configure.ac): Test for presence of
17610         program_invocation_short_name.
17611         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17612
17613 2009-10-04  Bruno Haible  <bruno@clisp.org>
17614
17615         * lib/progname.c (set_program_name): Fix comment.
17616         Reported by Jim Meyering.
17617
17618 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17619             Bruno Haible  <bruno@clisp.org>
17620
17621         * lib/uname.c: Include <string.h>.
17622         (uname): Do only one call to GetVersionEx in the common case.
17623
17624 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17625             Bruno Haible  <bruno@clisp.org>
17626
17627         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17628         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17629         (uname): Add support for Windows CE and various non-x86 CPU types.
17630
17631 2009-10-03  Bruno Haible  <bruno@clisp.org>
17632
17633         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17634         invocation to tests/configure.ac.
17635         Reported by Ian Beckwith <ianb@erislabs.net>.
17636
17637 2009-10-02  Eric Blake  <ebb9@byu.net>
17638
17639         fchdir: avoid compiler warning
17640         * lib/fchdir.c (canonicalize_file_name)
17641         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17642
17643         test-open: support mingw errno values
17644         * tests/test-open.h (test_open): Relax test.
17645         * tests/test-fopen.h (test_fopen): Likewise.
17646         * tests/test-openat-safer.c (main): Likewise.
17647
17648         open: fix opening directory on mingw
17649         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
17650
17651         test-open: on GNU/Hurd, /dev/null is a directory
17652         * tests/test-fopen.h (main): Rename...
17653         (test_fopen): ...to this.  Use a guaranteed non-directory when
17654         confirming open behavior on trailing slash.
17655         * tests/test-openat-safer.c (main): Likewise.
17656         * tests/test-open.h (main): Likewise....
17657         (test_open): ...to this.
17658         * tests/test-fopen.c (main): Adjust caller.
17659         * tests/test-fopen-safer.c (main): Likewise.
17660         * tests/test-open.c (main): Likewise.
17661         * tests/test-fcntl-safer.c (main): Likewise.
17662         Reported by Samuel Thibault.
17663
17664         rename, fchdir: don't ignore chdir failure
17665         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
17666         * lib/rename.c (rpl_rename) [W32]: Likewise.
17667         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
17668         an empty destination directory if source cannot be renamed,
17669         although there is still possibility for failure.
17670         * doc/posix-functions/rename.texi (rename): Document the race.
17671         Reported by Jim Meyering.
17672
17673         maint: cleanup whitespace in recent commits
17674         * lib/rename.c (rpl_rename): Remove tabs.
17675         * tests/test-link.h (test_link): Likewise.
17676         * lib/fchdir.c (get_name): Likewise.
17677         Reported by Jim Meyering.
17678
17679 2009-10-02  Ben Pfaff  <blp@gnu.org>
17680
17681         relocatable-prog-wrapper: Add missing dependency on
17682         double-slash-root.
17683         * modules/relocatable-prog-wrapper: Add dependency.
17684         Reported by Ian Beckwith <ianb@erislabs.net>.
17685
17686 2009-10-02  Eric Blake  <ebb9@byu.net>
17687
17688         renameat: fix Solaris bugs
17689         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
17690         needed fixing.
17691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
17692         * modules/stdio (Makefile.am): Substitute it.
17693         * lib/stdio.in.h (renameat): Declare replacement.
17694         * lib/renameat.c (rpl_renameat): Implement fix.
17695
17696         renameat: new module
17697         * modules/renameat: New file.
17698         * lib/renameat.c (renameat): Likewise.
17699         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
17700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17701         * modules/stdio (Makefile.am): Substitute them.
17702         * lib/stdio.in.h (renameat): Declare it.
17703         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17704         * doc/posix-functions/renameat.texi (renameat): Likewise.
17705         * modules/renameat-tests: New test.
17706         * tests/test-renameat.c: Likewise.
17707
17708         rename: fix mingw bugs
17709         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
17710         directory overwrite bugs.
17711
17712         rename: fix another cygwin 1.5 bug
17713         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
17714         checks.
17715         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
17716         unnecessary cygwin workarounds.  Also work around bug with moving
17717         full directory onto an empty one.
17718         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
17719
17720         rename-dest-slash: merge into rename module
17721         * modules/rename-dest-slash (Status): Mark obsolete.
17722         (Depends-on): Add rename.
17723         (Files): Let rename do it all.
17724         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
17725         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
17726         * m4/rename-dest-slash.m4: ...so this file can be deleted.
17727         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
17728         * lib/rename.c (rpl_rename): Update comments.
17729
17730         rename: fix cygwin 1.5.x bugs
17731         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
17732         * lib/rename.c (rpl_rename): Work around them.
17733         * modules/rename (Depends-on): Add same-inode.
17734
17735         rename: fix Solaris 10 bug
17736         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17737         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
17738         was the only bug.
17739
17740         rename: fix Solaris 9 bug
17741         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
17742         on non-directory.  Avoid calling exit.
17743         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
17744         strdup.
17745         * modules/rename-tests (Depends-on): Drop lstat.
17746         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17747         (gl_PREREQ_RENAME): Delete unused macro.
17748
17749         rename-dest-slash: fix NetBSD bug
17750         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
17751         links.
17752         * modules/rename-dest-slash (Depends-on): Add same-inode.
17753
17754         rename-tests: new test, exposes several platform bugs
17755         * modules/rename-tests: New file.
17756         * tests/test-rename.h: Likewise.
17757         * tests/test-rename.c: Likewise.
17758         * doc/posix-functions/rename.texi (rename): Improve documentation,
17759         including bugs that will eventually be fixed in gnulib.
17760
17761 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
17762
17763         * lib/uname.c: Include <stdlib.h>
17764         (uname): Assume version info is available.
17765
17766 2009-10-02  Jim Meyering  <meyering@redhat.com>
17767
17768         gnu-web-doc-update: correct --help output
17769         * build-aux/gnu-web-doc-update: Make --help output relevant.
17770
17771         gnu-web-doc-update: add standard options
17772         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
17773
17774         gnu-web-doc-update: New module.
17775         Use this script to automatically update the on-line web documentation
17776         for your GNU project at http://www.gnu.org/software/$pkg/manual/
17777         * modules/gnu-web-doc-update: New file, from coreutils.
17778         * build-aux/gnu-web-doc-update: New script.
17779
17780 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
17781
17782         link: LoadLibrary is not needed.
17783         * lib/link.c: Use GetModuleHandle.
17784
17785 2009-10-01  Eric Blake  <ebb9@byu.net>
17786
17787         getopt: bump serial number
17788         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
17789         change.
17790
17791         tests: tighten link, rmdir, and remove tests
17792         * tests/test-link.h (includes): No need to use <config.h> here.
17793         Clean up if directory hard link was created, otherwise test for
17794         trailing '.'.
17795         * tests/test-linkat.c (main): Simplify.
17796         * tests/test-remove.c (main): Enhance test for trailing '.'.
17797         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17798
17799 2009-10-01  Jim Meyering  <meyering@redhat.com>
17800
17801         maint.mk: requiring "make major" was annoying, for a "minor" release.
17802         What is intended is "stable", to contrast with alpha and beta,
17803         so require "make stable", not "make major".
17804         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
17805         (get_tool_versions): Likewise.
17806         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
17807
17808 2009-09-30  Ben Pfaff  <blp@gnu.org>
17809
17810         Fix broken build of replacement for Windows tmpfile().
17811         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17812         flags argument added along with the 'mkostemp' module.
17813
17814 2009-09-28  Bruno Haible  <bruno@clisp.org>
17815
17816         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17817         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17818         to 'remove_elt'.
17819         (gl_list_remove): Update.
17820         * lib/gl_list.c (gl_list_remove): Update.
17821         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17822         to 'remove_elt'.
17823         (gl_oset_remove): Update.
17824         * lib/gl_list.c (gl_oset_remove): Update.
17825         Reported by Eric Blake.
17826
17827 2009-09-28  Eric Blake  <ebb9@byu.net>
17828
17829         doc: mention yet more cygwin 1.7 status
17830         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17831         cygwin.
17832         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17833         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17834
17835         argp: fix test failure
17836         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17837         that are not upper-case.  Pass correct range to tolower.
17838
17839 2009-09-27  Jim Meyering  <meyering@redhat.com>
17840
17841         test-yesno: work around sparc-dash here-document infelicity
17842         Without this change, the literal \177 byte in a here document
17843         would make dash 0.5.5.1-3 access uninitialized memory.
17844         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17845         Instead, use a marker, "@", and filter through tr to create the desired
17846         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17847
17848 2009-09-27  Bruno Haible  <bruno@clisp.org>
17849
17850         Disable untested support for new flavours of ACLs on AIX.
17851         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17852         progress.
17853         * lib/set-mode-acl.c (qset_acl): Likewise.
17854
17855 2008-12-07  Bruno Haible  <bruno@clisp.org>
17856
17857         Add support for new flavours of ACLs on AIX. (Untested.)
17858         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17859         (file_has_acl): Add support for newer AIX.
17860         * lib/set-mode-acl.c (qset_acl): Likewise.
17861         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17862         Rainer Tammer <tammer@tammer.net>.
17863
17864 2009-09-26  Eric Blake  <ebb9@byu.net>
17865
17866         argp: fix compilation of getopt
17867         * lib/getopt.in.h (includes): Use different guard than glibc.
17868         Reported by Sergey Poznyakoff.
17869
17870         doc: mention more cygwin 1.7 status
17871         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17872         bug.
17873         * doc/posix-functions/execl.texi (execl): Likewise.
17874         * doc/posix-functions/execle.texi (execle): Likewise.
17875         * doc/posix-functions/execlp.texi (execlp): Likewise.
17876         * doc/posix-functions/execv.texi (execv): Likewise.
17877         * doc/posix-functions/execve.texi (execve): Likewise.
17878         * doc/posix-functions/execvp.texi (execvp): Likewise.
17879         * doc/glibc-functions/canonicalize_file_name.texi
17880         (canonicalize_file_name): Cygwin 1.7 now provides this.
17881         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17882         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17883         on AT_SYMLINK_NOFOLLOW.
17884
17885 2009-09-24  Eric Blake  <ebb9@byu.net>
17886
17887         test-linkat: make test more robust
17888         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17889
17890         getopt: fix inclusion guards for cygwin
17891         * modules/getopt-posix (Depends-on): Add include-next.
17892         (Makefile.am): Substitute more items in replacement header.
17893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17894         <getopt.h>.
17895         * lib/getopt.in.h (includes): Use split inclusion guard, and
17896         prefer <getopt.h> over include <unistd.h> when one is present.
17897         (option): Also override name of 'struct option'.
17898
17899         same-inode: revert prior change; it is not yet ready
17900         * NEWS: Undo mention of this change.
17901         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17902         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17903         * lib/cycle-check.c (cycle_check): Likewise.
17904         * lib/same.c (same_name): Likewise.
17905         * lib/at-func2.c (at_func2): Likewise.
17906
17907 2009-09-23  Eric Blake  <ebb9@byu.net>
17908
17909         linkat: new module
17910         * modules/linkat: New file.
17911         * lib/at-func2.c (at_func2): Likewise.
17912         * lib/linkat.c (linkat): Likewise.
17913         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17914         * lib/openat-priv.h (at_func2): Add declaration.
17915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17916         * modules/unistd (Makefile.am): Substitute them.
17917         * lib/unistd.in.h (linkat): Declare it.
17918         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17919         * doc/posix-functions/linkat.texi (linkat): Likewise.
17920         * doc/posix-functions/link.texi (link): Tweak wording.
17921         * tests/test-link.c (main): Move guts...
17922         * tests/test-link.h (test_link): ...into new file.
17923         * modules/linkat-tests: New test.
17924         * tests/test-linkat.c: Likewise.
17925         * modules/link-tests (Files): Ship new file.
17926         (Depends-on): Add stdbool.
17927
17928         dirname: add library-safe mdir_name
17929         * lib/dirname.h (mdir_name): New prototype.
17930         * lib/dirname.c (dir_name): Move guts...
17931         (mdir_name): ...to new function that avoids xalloc_die.
17932
17933         fchdir: another mingw fix
17934         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17935         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17936         on mingw (where it has not yet been ported), and make it optional
17937         elsewhere.
17938         (_gl_register_fd): Use it.
17939
17940         same-inode: make SAME_INODE tri-state, to port to mingw
17941         * NEWS: Mention this change.
17942         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17943         st_ino always being 0.
17944         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17945         * lib/cycle-check.c (cycle_check): Likewise.
17946         * lib/same.c (same_name): Likewise.
17947
17948         lstat: avoid mingw compilation error
17949         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17950         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17951         lstat ourselves.
17952         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17953         was adequate.
17954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17955         the checks for lstat.
17956         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17957
17958         link: fix test failure on Solaris 9
17959         * lib/link.c (rpl_link): Don't assume link will catch bogus
17960         trailing slash on source.
17961
17962         test-symlinkat: enhance test
17963         * tests/test-readlink.c (main): Move guts...
17964         * tests/test-readlink.h (test_readlink): ...into new file.
17965         * tests/test-symlink.c (main): Move guts...
17966         * tests/test-symlink.h (test_symlink): ...into new file.
17967         * tests/test-symlinkat.c (main): Use new files for further
17968         coverage.
17969         (do_symlink, do_readlink): New helper functions.
17970         * modules/symlink-tests (Files): Ship new file.
17971         (Depends-on): Add stdbool.
17972         * modules/readlink-tests (Files): Ship new file.
17973         (Depends-on): Add stdbool.
17974         * modules/symlinkat-tests (Files): Use new files.
17975
17976 2009-09-23  Eric Blake  <ebb9@byu.net>
17977
17978         readlink: document portability issue with symlink length
17979         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17980         systems have bogus st_size on symlinks, and mention the
17981         areadlink-with-size module.
17982         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17983         * doc/posix-functions/readlink.texi (readlink): Mention the
17984         areadlink module, and ERANGE failure.
17985         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17986         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17987
17988         readlink: fix Solaris 9 bug with trailing slash
17989         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17990         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17991         * doc/posix-functions/readlink.texi (readlink): Document this.
17992         * modules/readlink-tests: New test.
17993         * tests/test-readlink.c: Likewise.
17994
17995         readlink: fix cygwin 1.5.x bug with return type
17996         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17997         * lib/unistd.in.h (readlink): Use ssize_t.
17998         * lib/readlink.c (readlink): Likewise.
17999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18000         * modules/unistd (Makefile.am): Substitute it.
18001         * lib/unistd.in.h (readlink): Declare replacement.
18002         * doc/posix-functions/readlink.texi (readlink): Document this.
18003
18004         symlink: use throughout gnulib
18005         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
18006         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
18007         symlink is not used.
18008         * modules/symlinkat (Depends-on): Add symlink.
18009         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18010         * modules/canonicalize-tests (Depends-on): Likewise.
18011         * modules/lstat-tests (Depends-on): Likewise.
18012         * modules/openat-tests (Depends-on): Likewise.
18013         * modules/remove-tests (Depends-on): Likewise.
18014         * modules/rmdir-tests (Depends-on): Likewise.
18015         * modules/unlink-tests (Depends-on): Likewise.
18016         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
18017         * tests/test-canonicalize.c (symlink): Likewise.
18018         * tests/test-fstatat.c (symlink): Likewise.
18019         * tests/test-lstat.c (symlink): Likewise.
18020         * tests/test-remove.c (symlink): Likewise.
18021         * tests/test-rmdir.c (symlink): Likewise.
18022         * tests/test-unlink.c (symlink): Likewise.
18023         * tests/test-unlinkat.c (symlink): Likewise.
18024
18025         symlink: new module, for Solaris 9 bug
18026         * modules/symlink: New file.
18027         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18028         * lib/symlink.c: Likewise.
18029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18030         * modules/unistd (Makefile.am): Substitute them.
18031         * lib/unistd.in.h (symlink): Declare replacement.
18032         * MODULES.html.sh (File system functions): Mention it.
18033         * doc/posix-functions/symlink.texi (symlink): Likewise.
18034         * modules/symlink-tests: New test.
18035         * tests/test-symlink.c: Likewise.
18036
18037 2009-09-23  Bruno Haible  <bruno@clisp.org>
18038
18039         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
18040         when needed.
18041         Test case: gnulib-tool --import --with-tests atexit inttypes.
18042         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
18043
18044 2009-09-23  Bruno Haible  <bruno@clisp.org>
18045
18046         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
18047         subcommand, not in a subshell.
18048
18049 2009-09-22  Eric Blake  <ebb9@byu.net>
18050
18051         unistd: sort replacement declarations
18052         * lib/unistd.in.h: Sort declarations.
18053
18054         open, openat: minor optimization
18055         * lib/open.c (open): If open succeeded, len is non-zero.
18056         * lib/openat.c (rpl_openat): Likewise.
18057
18058         link-follow: ensure correct result
18059         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
18060         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
18061         distinguish between possible failures.
18062
18063 2009-09-21  Eric Blake  <ebb9@byu.net>
18064
18065         fts: avoid compiler warning
18066         * lib/fts.c (dirent_inode_sort_may_be_useful)
18067         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
18068
18069 2009-09-19  Bruno Haible  <bruno@clisp.org>
18070
18071         * lib/progreloc.c (canonicalize_file_name): New declaration.
18072
18073 2009-09-19  Eric Blake  <ebb9@byu.net>
18074
18075         link: fix quoting
18076         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
18077
18078         openat: fix openat bugs on Solaris 9
18079         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
18080         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
18081         * modules/openat (Depends-on): Add open.
18082         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
18083         * modules/fcntl-h (Makefile.am): Substitute it.
18084         * lib/fcntl.in.h (openat): Declare replacement.
18085         * doc/posix-functions/openat.texi (openat): Document this.
18086
18087         openat: move fstatat and unlinkat into correct files
18088         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
18089         compiled.
18090         * lib/openat.c (fstatat, unlinkat): Move...
18091         * lib/fstatat.c (fstatat): ...into correct files.
18092         * lib/unlinkat.c (unlinkat): Likewise.
18093
18094         openat: fix unlinkat bugs on Solaris 9
18095         * lib/unlinkat.c (unlinkat): New file.
18096         * modules/openat (Depends-on): Add unlink.
18097         (Files): Distribute it.
18098         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
18099         trailing slash behavior is broken.
18100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18101         * modules/unistd (Makefile.am): Substitute it.
18102         * lib/unistd.in.h (unlinkat): Declare replacement.
18103         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
18104
18105         openat: fix fstatat bugs on Solaris 9
18106         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
18107         stat.
18108         * doc/posix-functions/fstatat.texi (fstatat): Document this.
18109
18110         test-unlinkat: enhance test, to expose Solaris 9 bug
18111         * tests/test-unlink.c (main): Factor guts...
18112         * tests/test-unlink.h (test_rmdir_func): ...into new file.
18113         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
18114         * tests/test-rmdir.c (main): Adjust caller.
18115         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
18116         (unlinker): New helper function.
18117         (rmdirat): Enhance check.
18118         * modules/rmdir-tests (Depends-on): Add stdbool.
18119         * modules/unlink-tests (Depends-on): Likewise.
18120         (Files): Add test-unlink.h.
18121         * modules/openat-tests (Files): Likewise.
18122         (Depends-on): Add unlinkdir.
18123
18124         test-fstatat: new test, to expose Solaris 9 bugs
18125         * tests/test-stat.c (main): Factor guts...
18126         * tests/test-stat.h (test_stat_func): ...into new file.
18127         * tests/test-lstat.c (main): Factor guts...
18128         * tests/test-lstat.h (test_lstat_func): ...into new file.
18129         * tests/test-fstatat.c: New file.
18130         * modules/stat-tests (Files): Add test-stat.h.
18131         * modules/lstat-tests (Files): Add test-lstat.h.
18132         (Depends-on): Add stdbool.
18133         * modules/openat-tests (Depends-on): Add pathmax.
18134         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
18135         (Makefile.am): Run new test.
18136
18137         remove: new module, for mingw and Solaris 9 bugs
18138         * modules/remove: New file.
18139         * lib/remove.c: Likewise.
18140         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
18141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
18142         * modules/stdio (Makefile.am): Use them.
18143         * lib/stdio.in.h (remove): Declare replacement.
18144         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18145         * doc/posix-functions/remove.texi (remove): Likewise.
18146         * modules/remove-tests: New test.
18147         * tests/test-remove.c: Likewise.
18148
18149         unlink: new module, for Solaris 9 bug
18150         * modules/unlink: New file.
18151         * lib/unlink.c: Likewise.
18152         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18154         * modules/unistd (Makefile.am): Use them.
18155         * lib/unistd.in.h (stat): Declare replacement.
18156         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18157         * doc/posix-functions/unlink.texi (unlink): Likewise.
18158         * modules/unlink-tests: New test.
18159         * tests/test-unlink.c: Likewise.
18160
18161         lstat: fix Solaris 9 bug
18162         * lib/lstat.c (lstat): Also check for trailing slash on
18163         non-symlink, non-directories.  Use stat module to simplify logic.
18164         * doc/posix-functions/lstat.texi (lstat): Document it.
18165         * modules/lstat-tests (Depends-on): Add errno, same-inode.
18166         (configure.ac): Check for symlink.
18167         * tests/test-lstat.c (main): Add more tests.
18168
18169         stat: add as dependency to other modules
18170         * modules/chown (Depends-on): Add stat.
18171         * modules/euidaccess (Depends-on): Likewise.
18172         * modules/fchdir (Depends-on): Likewise.
18173         * modules/isdir (Depends-on): Likewise.
18174         * modules/link (Depends-on): Likewise.
18175         * modules/lstat (Depends-on): Likewise.
18176         * modules/mkdir-p (Depends-on): Likewise.
18177         * modules/modechange (Depends-on): Likewise.
18178         * modules/open (Depends-on): Likewise.
18179         * modules/readlink (Depends-on): Likewise.
18180         * modules/same (Depends-on): Likewise.
18181
18182         stat: fix Solaris 9 bug
18183         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
18184         slash.
18185         * lib/stat.c (rpl_stat): Work around it.
18186         * doc/posix-functions/stat.texi (stat): Update documentation.
18187
18188         stat: new module, for mingw bug
18189         * modules/stat: New file.
18190         * lib/stat.c: Likewise.
18191         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18192         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18193         * modules/sys_stat (Makefile.am): Use them.
18194         * lib/sys_stat.in.h (stat): Declare replacement.
18195         * lib/openat.c (fstatat): Deal with lstat and stat being function
18196         macros.
18197         * modules/openat (Depends-on): Add inline.
18198         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18199         * doc/posix-functions/stat.texi (stat): Likewise.
18200         * modules/stat-tests: New test.
18201         * tests/test-stat.c: Likewise.
18202
18203 2009-09-19  Jim Meyering  <meyering@redhat.com>
18204
18205         syntax-check: detect unnecessary inclusion of canonicalize.h
18206         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
18207
18208 2009-09-19  Eric Blake  <ebb9@byu.net>
18209
18210         canonicalize-lgpl: adjust clients to use correct header
18211         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18212         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
18213         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
18214         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
18215         * lib/progreloc.c (includes): Likewise.
18216
18217 2009-09-19  Jim Meyering  <meyering@redhat.com>
18218
18219         test-posixtm.c: correct a comment
18220         * tests/test-posixtm.c: Correct first-line comment.
18221         Spotted by Eric Blake.
18222
18223 2009-09-16  Jim Meyering  <meyering@redhat.com>
18224
18225         posixtm-tests: make T const-correct; add a test case
18226         * tests/test-posixtm.c (T): Declare const.
18227         Add a test for -(2^31+1).
18228         Remove useless can-succeed-only-in-2002 test.
18229
18230         posixtm-tests: adjust the sole failing test
18231         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
18232         expected output matches what mktime now produces.  Cross-checked via
18233         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
18234
18235         posixtm: move #ifdef'd tests into a new module
18236         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
18237         * tests/test-posixtm.c: ... this new file.
18238         * modules/posixtm-tests: New module.
18239
18240 2009-09-19  Eric Blake  <ebb9@byu.net>
18241
18242         openat: simplify use of at-func.c
18243         * lib/at-func.c (includes): Include prerequisites here, to
18244         simplify requirements on client files.
18245         * lib/openat-priv.h: Add double-inclusion guard.
18246         * lib/faccessat.c (includes): Simplify.
18247         * lib/fchmodat.c (includes): Likewise.
18248         * lib/fchownat.c (includes): Likewise.
18249         * lib/mkdirat.c (includes): Likewise.
18250         * lib/mkfifoat.c (includes): Likewise.
18251         * lib/symlinkat.c (includes): Likewise.
18252
18253         openat: allow return of fd 0
18254         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
18255         * modules/save-cwd (Depends-on): Replace fcntl-safer with
18256         unistd-safer.
18257         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
18258         <fcntl.h>; this module does not leak fds.
18259         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
18260         must be allowed to return 0, leaving openat_safer to add the
18261         safety.
18262         (openat_permissive): Avoid writing to just-opened fd 2 if
18263         restoring the current directory fails.
18264         * lib/openat-die.c (openat_restore_fail): Add comment.
18265         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
18266         (save_cwd): Guarantee safe fd, but without use of open_safer.
18267         * tests/test-openat.c: New test.
18268         * modules/openat-tests (Files, Makefile.am): Distribute and build
18269         new file.
18270
18271         relocatable-prog-wrapper: fix build
18272         * modules/relocatable-prog-wrapper (Files): Update name of
18273         canonicalize m4 file, broken on 2009-09-17.
18274         Reported by emad hajjar <aleppos@hotmail.com>.
18275
18276 2009-09-19  Bruno Haible  <bruno@clisp.org>
18277
18278         * lib/safe-alloc.h: Use the standard header with GPL copyright.
18279         * lib/safe-alloc.c: Likewise.
18280         Reported by Ian Beckwith <ianb@erislabs.net>.
18281
18282 2009-09-18  Bruno Haible  <bruno@clisp.org>
18283
18284         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
18285         Reported by <erobles@sensacd.com.mx>.
18286
18287 2009-09-17  Eric Blake  <ebb9@byu.net>
18288
18289         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
18290         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
18291         slashes when checking if last component is missing.
18292         * tests/test-canonicalize.c (main): Test this.
18293
18294         canonicalize, canonicalize-lgpl: honor // if distinct from /
18295         * modules/canonicalize (Files): Add double-slash-root.m4.
18296         * modules/canonicalize-lgpl (Files): Likewise.
18297         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18298         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
18299         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
18300         fallback definition.
18301         (canonicalize_filename_mode): Use it to protect //.
18302         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
18303         (__realpath): Likewise.
18304         * tests/test-canonicalize.c (main): Test this.
18305         * tests/test-canonicalize-lgpl.c (main): Likewise.
18306         * modules/canonicalize-tests (Depends-on): Add same-inode.
18307         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18308
18309         canonicalize-lgpl: fix glibc bug with trailing slash
18310         * m4/canonicalize-lgpl.m4: Move contents...
18311         * m4/canonicalize.m4: ...here.
18312         (gl_CANONICALIZE_LGPL): Factor realpath check...
18313         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
18314         glibc 2.3.5 bug, fixed 2005-04-27.
18315         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
18316         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
18317         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
18318         * modules/canonicalize-lgpl (Files): Manage file rename.
18319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18320         * modules/stdlib (Makefile.am): Substitute witness.
18321         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
18322         is needed.
18323         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
18324         replacement is required.
18325         * lib/canonicalize.c (canonicalize_file_name): Likewise.
18326         * doc/glibc-functions/canonicalize_file_name.texi
18327         (canonicalize_file_name): Document this.
18328         * doc/posix-functions/realpath.texi (realpath): Likewise.
18329
18330         canonicalize-lgpl: reject non-directory with trailing slash
18331         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
18332         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
18333         catches failures in glibc 2.3.5.
18334         * tests/test-canonicalize.c (main): Likewise.
18335
18336         canonicalize-lgpl: use native realpath if it works
18337         * lib/canonicalize-lgpl.c (realpath): Guard with
18338         FUNC_REALPATH_WORKS.
18339         * lib/stdlib.in.h (realpath): Make declaration optional based on
18340         HAVE_REALPATH.
18341         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
18342         native realpath works.
18343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18344         * modules/stdlib (Makefile.am): Substitute witness.
18345
18346         canonicalize, canonicalize-lgpl: use <stdlib.h>
18347         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
18348         (Include): Mention <stdlib.h>.
18349         (configure.ac): Mention functions we provide.
18350         * modules/canonicalize (configure.ac): Likewise.
18351         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
18352         realpath if canonicalize_file_name is missing.
18353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
18354         * modules/stdlib (Makefile.am): Substitute witnesses.
18355         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
18356         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
18357         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
18358         * NEWS: Document this.
18359         * doc/glibc-functions/canonicalize_file_name.texi
18360         (canonicalize_file_name): Likewise.
18361         * doc/posix-functions/realpath.texi (realpath): Likewise.
18362         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
18363
18364         test-canonicalize: consolidate into single C program
18365         * tests/test-canonicalize.sh: Delete; move setup into...
18366         * tests/test-canonicalize.c (main): ...the program, making it
18367         easier to run in debugger.  Add some tests.
18368         * modules/canonicalize-tests (Files): Remove unused file.
18369         (Depends-on): Add progname.
18370         (configure.ac, Makefile.am): Simplify.
18371
18372         test-canonicalize-lgpl: consolidate into single C program
18373         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18374         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18375         easier to run in debugger.  Add some tests.
18376         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18377         (configure.ac, Makefile.am): Simplify.
18378
18379         canonicalize: avoid resolvepath
18380         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18381         unnecessary checks.
18382         * lib/canonicalize.c (includes): Simplify.
18383         (canonicalize_file_name): Drop resolvepath implementation.
18384         * modules/canonicalize (Depends-on): Drop filenamecat.
18385
18386         canonicalize: don't lose errno
18387         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18388         over calls to free.
18389
18390         canonicalize: simplify errno handling
18391         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18392         assignment.
18393
18394         canonicalize, canonicalize-lgpl: update module dependencies
18395         * modules/canonicalize (Depends-on): Add extensions, lstat,
18396         pathmax, stdlib.
18397         (Files): Drop pathmax.h.
18398         (configure.ac): Adjust macro name.
18399         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18400         lstat, stdlib, sys_stat.
18401         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18402         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18403         extensions.
18404         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18405         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18406         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18407         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18408         declaration, if available.
18409         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18410         we can rely on the readlink module.
18411         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18412         (includes): Use <unistd.h> unconditionally.
18413
18414 2009-09-17  Eric Blake  <ebb9@byu.net>
18415
18416         maint: make Include sections of modules consistent
18417         * modules/alloca: Use only header name; no need to list #include.
18418         * modules/alloca-opt: Likewise.
18419         * modules/arpa_inet: Likewise.
18420         * modules/canon-host: Likewise.
18421         * modules/configmake: Likewise.
18422         * modules/dirent: Likewise.
18423         * modules/eealloc: Likewise.
18424         * modules/environ: Likewise.
18425         * modules/fchdir: Likewise.
18426         * modules/fcntl: Likewise.
18427         * modules/fcntl-h: Likewise.
18428         * modules/gethrxtime: Likewise.
18429         * modules/gettime: Likewise.
18430         * modules/ignore-value: Likewise.
18431         * modules/inet_ntop: Likewise.
18432         * modules/inet_pton: Likewise.
18433         * modules/inttypes: Likewise.
18434         * modules/isnand-nolibm: Likewise.
18435         * modules/isnanf-nolibm: Likewise.
18436         * modules/mbchar: Likewise.
18437         * modules/mbfile: Likewise.
18438         * modules/mbiter: Likewise.
18439         * modules/mbuiter: Likewise.
18440         * modules/netdb: Likewise.
18441         * modules/netinet_in: Likewise.
18442         * modules/nproc: Likewise.
18443         * modules/pagealign_alloc: Likewise.
18444         * modules/poll: Likewise.
18445         * modules/printf-frexp: Likewise.
18446         * modules/pthread: Likewise.
18447         * modules/putenv: Likewise.
18448         * modules/random_r: Likewise.
18449         * modules/relocatable-prog: Likewise.
18450         * modules/search: Likewise.
18451         * modules/select: Likewise.
18452         * modules/selinux-h: Likewise.
18453         * modules/settime: Likewise.
18454         * modules/signal: Likewise.
18455         * modules/size_max: Likewise.
18456         * modules/socklen: Likewise.
18457         * modules/ssize_t: Likewise.
18458         * modules/stdarg: Likewise.
18459         * modules/stdbool: Likewise.
18460         * modules/stddef: Likewise.
18461         * modules/stdint: Likewise.
18462         * modules/stdio: Likewise.
18463         * modules/stdlib: Likewise.
18464         * modules/string: Likewise.
18465         * modules/strings: Likewise.
18466         * modules/sys_file: Likewise.
18467         * modules/sys_ioctl: Likewise.
18468         * modules/sys_select: Likewise.
18469         * modules/sys_socket: Likewise.
18470         * modules/sys_stat: Likewise.
18471         * modules/sys_time: Likewise.
18472         * modules/sys_times: Likewise.
18473         * modules/sys_utsname: Likewise.
18474         * modules/sys_wait: Likewise.
18475         * modules/sysexits: Likewise.
18476         * modules/time: Likewise.
18477         * modules/times: Likewise.
18478         * modules/tmpfile: Likewise.
18479         * modules/trim: Likewise.
18480         * modules/unistd: Likewise.
18481         * modules/wchar: Likewise.
18482         * modules/wctype: Likewise.
18483
18484 2009-09-17  Bruno Haible  <bruno@clisp.org>
18485
18486         Make getdate.y compile on QNX and NetBSD 5 / i386.
18487         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18488         TIME_T_FITS_IN_LONG_INT.
18489         * lib/getdate.y (long_time_t): New type.
18490         (relative_time): Change type of 'seconds' field to long_time_t.
18491         (get_date): Update types of local variables. Check against overflow
18492         during conversion from long_time_t to time_t.
18493         Reported by Matt Kraai <kraai@ftbfs.org>
18494         and Hasso Tepper <hasso@netbsd.org>.
18495
18496 2009-09-17  Bruno Haible  <bruno@clisp.org>
18497
18498         * modules/COPYING: Update copyright years.
18499         * modules/README: Likeiwse.
18500         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18501         Reported by Ian Beckwith <ianb@erislabs.net>.
18502
18503 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18504
18505         * users.txt: Update references for gnuit package.
18506
18507 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18508
18509         * m4/getdelim.m4: Fix typo in copyright line.
18510
18511 2009-09-17  Bruno Haible  <bruno@clisp.org>
18512
18513         * lib/atoll.c: Use the standard header with GPL copyright.
18514         * lib/argz.in.h: Likewise.
18515         * lib/glob.c: Likewise.
18516         * lib/glob-libc.h: Likewise.
18517         * lib/random_r.c: Likewise.
18518         * lib/siglist.h: Likewise.
18519         * lib/strsignal.c: Likewise.
18520         Reported by Ian Beckwith <ianb@erislabs.net>.
18521
18522 2009-09-17  Eric Blake  <ebb9@byu.net>
18523
18524         rmdir: ensure correct dependency order
18525         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18526
18527 2009-09-17  Bruno Haible  <bruno@clisp.org>
18528
18529         Disable assertion that fails on NetBSD 5 / i386.
18530         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18531         Reported by Sam Steingold <sds@gnu.org>
18532         and Hasso Tepper <hasso@netbsd.org>.
18533
18534 2009-09-16  Eric Blake  <ebb9@byu.net>
18535
18536         unlinkdir: port to mingw
18537         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18538         on which no one can unlink a directory.
18539
18540         stdlib: sort witness names
18541         * modules/stdlib (Makefile.am): Sort replacements.
18542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18543         * lib/stdlib.in.h: Likewise.
18544
18545         parse-duration-tests: avoid link failure
18546         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18547         LIBINTL.
18548         Reported by Tom G. Christensen.
18549
18550         openat-tests: ensure unlinkat behaves like rmdir
18551         * tests/test-rmdir.c (main): Factor guts...
18552         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18553         * modules/rmdir-tests (Files): Ship new file.
18554         * modules/openat-tests: New test.
18555         * tests/test-unlinkat.c: Likewise.
18556
18557         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18558         * modules/rmdir-errno (Status, Notice): Now obsolete.
18559
18560         rmdir: work around cygwin 1.5.x and mingw bugs
18561         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18562         * lib/rmdir.c (rmdir): Work around it.
18563         * modules/rmdir (Status, Notice): No longer obsolete.
18564         (Files): Add dos.m4.
18565         (Depends-on): Add unistd.
18566         (configure.ac): Set witnesses.
18567         (License): Relax to LGPLv2+.
18568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18569         * modules/unistd (Makefile.am): Substitute witnesses.
18570         * lib/unistd.in.h (rmdir): Declare replacement.
18571         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18572         * modules/rmdir-tests: New tests.
18573         * tests/test-rmdir.c: Likewise.
18574
18575 2009-09-15  Eric Blake  <ebb9@byu.net>
18576
18577         fchdir: improve use of replacement functions
18578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18579         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18581         REPLACE_CLOSEDIR.
18582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18583         * modules/sys_stat (Makefile.am): Substitute correct witness.
18584         * modules/dirent (Makefile.am): Likewise.
18585         * modules/unistd (Makefile.am): Likewise.
18586         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18587         * lib/unistd.in.h (dup): Likewise.
18588         * lib/sys_stat.in.h (fstat): Likewise.
18589
18590         maint: ignore gnulib-tool temp files
18591         * .gitignore: Ignore files created during gnulib-tool --test.
18592
18593 2009-09-13  Jim Meyering  <meyering@redhat.com>
18594
18595         posixtm: don't reject a time that specify "60" as the number of seconds
18596         * lib/posixtm.c (posixtime): The code to reject invalid dates
18597         would also reject a time specified with the .60 suffix.
18598         But POSIX allows that, in order to accommodate leap seconds.
18599         So don't reject it.
18600         (main): Adjust tests accordingly.
18601         * modules/posixtm (Depends-on): Add stpcpy.
18602
18603 2009-09-11  Jim Meyering  <meyering@redhat.com>
18604
18605         announce-gen: include [$release_type] in emitted Subject:
18606         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18607         e.g., [stable] in the emitted Subject: line.
18608
18609 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18610
18611         Remove obsolete macros from several modules.
18612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18613         obsolete Autoconf macros with their modern counterparts.
18614         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18615         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18617         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18618         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18619         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18621         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18622         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18623         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18624         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18626         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18627         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18628         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18629         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18630         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18631         * m4/time_r.m4 (gl_TIME_R): Likewise.
18632         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18633         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18634         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18635
18636         Fix copyright header in build-aux scripts.
18637         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18638         recommendation.
18639         * build-aux/ncftpput-ftp: Likewise.
18640         * build-aux/update-copyright: Likewise.
18641
18642 2009-09-09  Eric Blake  <ebb9@byu.net>
18643
18644         test-link: allow Linux choice of errno
18645         * tests/test-link.c (main): Relax test for alternate error.
18646
18647         strndup: fix improper m4 caching
18648         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
18649         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
18650         (gl_PREREQ_STRNDUP): Delete.
18651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
18652         * modules/string (Makefile.am): Substitute it.
18653         * lib/string.in.h (strndup): Modernize prototype.
18654
18655         getcwd: port to mingw
18656         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
18657         different from the POSIX assumptions made throughout the getcwd
18658         module; fortunately, the mingw getcwd does not need replacement.
18659         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
18660         * modules/getcwd-tests: New test.
18661         * tests/test-getcwd.c: Likewise.
18662
18663         link: fix platform bugs
18664         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
18665         * lib/link.c (link): Work around them.  Fix related mingw bug.
18666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
18667         * modules/unistd (Makefile.am): Substitute it.
18668         * lib/unistd.in.h (link): Declare replacement.
18669         * doc/posix-functions/link.texi (link): Document this.
18670         * modules/link (Depends-on): Add strdup-posix, sys_stat.
18671
18672         test-link: consolidate into single C program, test more cases
18673         * tests/test-link.sh: Delete.
18674         * tests/test-link.c: Test more error conditions.  Exposes bugs on
18675         at least Cygwin and Solaris.
18676         * modules/link-tests (Files): Remove unused file.
18677         (Depends-on): Add errno, sys_stat.
18678         (Makefile.am): Simplify.
18679
18680 2009-09-08  Bruno Haible  <bruno@clisp.org>
18681
18682         Work around towlower, towupper bug on mingw.
18683         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
18684         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
18685         * doc/posix-functions/towlower.texi: Mention the mingw bug.
18686         * doc/posix-functions/towupper.texi: Likewise.
18687         Reported by Eric Blake.
18688
18689 2009-09-08  Jim Meyering  <meyering@redhat.com>
18690
18691         build: don't try to run autoheader if we don't use it
18692         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
18693         is not used in configure.ac.
18694
18695 2009-09-08  Eric Blake  <ebb9@byu.net>
18696
18697         euidaccess: fix compilation error
18698         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
18699
18700         rawmemchr: relax license
18701         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
18702         okay.
18703         Reported by Jim Meyering.
18704
18705         mkfifoat: new module
18706         * modules/mkfifoat: New file.
18707         * lib/mkfifoat.c: Likewise.
18708         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
18709         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18710         * modules/sys_stat (Makefile.am): Use them.
18711         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
18712         * MODULES.html.sh (File system functions): Mention module.
18713         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18714         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18715         * modules/mkfifoat-tests: New test.
18716         * tests/test-mkfifoat.c: Likewise.
18717
18718         strchrnul: relax license
18719         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
18720         okay.
18721         Reported by Jim Meyering.
18722
18723 2009-09-08  Eric Blake  <ebb9@byu.net>
18724
18725         fstatat: fix compilation on Solaris
18726         * lib/fstatat.c (includes): Add fcntl.h.
18727         Reported by Pádraig Brady.
18728
18729 2009-09-07  Eric Blake  <ebb9@byu.net>
18730
18731         rename: modernize replacement
18732         * modules/rename (Depends-on): Add stdio.
18733         (configure.ac): Declare witness.
18734         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
18735         stdio take care of replacement.
18736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18737         * modules/stdio (Makefile.am): Substitute them.
18738         * lib/stdio.in.h (rename): Declare replacement.
18739         * lib/rename.c (includes): Allow cross-compilation to non-windows
18740         machines.
18741         * doc/posix-functions/rename.texi (rename): Improve
18742         documentation.
18743
18744         stdio: sort witness names
18745         * modules/stdio (Makefile.am): Sort replacements.
18746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18747         * lib/stdio.in.h: Likewise.
18748
18749         getcwd: minor cleanups
18750         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
18751         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
18752
18753         openat: provide more convenience names
18754         * modules/faccessat (configure.ac): Add C witness.
18755         * lib/unistd.in.h (readlinkat): Fix typo.
18756         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
18757         convenience wrappers.
18758         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
18759         wrappers in syntax checks.
18760
18761 2009-09-06  Eric Blake  <ebb9@byu.net>
18762
18763         doc: fix comments in recent patches
18764         * lib/faccessat.c: Mention correct function.
18765         * lib/fchmodat.c: Likewise.
18766         * lib/fchownat.c: Likewise.
18767         * lib/symlinkat.c: Likewise.
18768         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
18769         constants.
18770
18771         faccessat, symlinkat: continue cleanup of previous patch
18772         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
18773         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18774         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
18775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
18776         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
18777         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
18778         set.
18779
18780 2009-09-06  Bruno Haible  <bruno@clisp.org>
18781
18782         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
18783         (fstatat): Declare if GNULIB_FSTATAT is set.
18784         (mkdirat): Declare if GNULIB_MKDIRAT is set.
18785         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
18786         (unlinkat): Declare if GNULIB_UNLINKAT is set.
18787         * modules/fcntl-h (Files): Remove m4/openat.m4.
18788         * modules/sys_stat (Files): Remove m4/openat.m4.
18789         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
18790         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
18791         * modules/unistd (Files): Remove m4/openat.m4.
18792         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
18793         GNULIB_OPENAT.
18794         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
18795         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
18796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18797         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
18798         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
18799         gl_OPENAT_DEFAULTS.
18800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
18801         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
18802         Don't require gl_OPENAT_DEFAULTS.
18803         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
18804         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
18805         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
18806         (gl_OPENAT_DEFAULTS): Remove macro.
18807
18808 2009-09-06  Bruno Haible  <bruno@clisp.org>
18809
18810         * modules/openat (configure.ac): Remove unneeded witness.
18811
18812 2009-09-06  Bruno Haible  <bruno@clisp.org>
18813
18814         Set errno to ENOSYS when a function is entirely unsupported.
18815         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18816         EOPNOTSUPP.
18817         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18818         * modules/chown (Depends-on): Remove errno.
18819
18820 2009-09-06  Bruno Haible  <bruno@clisp.org>
18821
18822         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18823
18824 2009-09-06  Bruno Haible  <bruno@clisp.org>
18825
18826         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18827
18828 2009-09-06  Ben Pfaff  <blp@gnu.org>
18829             Bruno Haible  <bruno@clisp.org>
18830
18831         Work around a glibc bug in strtok_r.
18832         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18833         Undefine if UNDEFINE_STRTOK_R is set.
18834         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18836         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18837         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18838         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18839         UNDEFINE_STRTOK_R.
18840         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18841
18842 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18843
18844         exclude: minor fix
18845         * lib/exclude.c: Include wctype.h
18846
18847 2009-09-06  Akim Demaille  <demaille@gostai.com>
18848
18849         bootstrap: improve error message
18850         * build-aux/bootstrap (find_tool): Upon failure, report the list
18851         of candidates.
18852         Honor the initial value of the envvar.
18853
18854 2009-09-05  Eric Blake  <ebb9@byu.net>
18855
18856         symlinkat: new module
18857         * modules/symlinkat: New file.
18858         * lib/symlinkat.c: Likewise.
18859         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18861         * modules/unistd (Makefile.am): Use them.
18862         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18863         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18864         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18865         * MODULES.html.sh (File system functions): Mention module.
18866         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18867         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18868         * modules/symlinkat-tests: New test.
18869         * tests/test-symlinkat.c: Likewise.
18870
18871         test-openat-safer: add more checks
18872         * tests/test-openat-safer.c (main): Check more code paths.
18873
18874 2009-09-05  Jim Meyering  <meyering@redhat.com>
18875
18876         syntax-check: detect unnecessary inclusion of openat.h
18877         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18878
18879 2009-09-05  Bruno Haible  <bruno@clisp.org>
18880
18881         Support towlower, towupper.
18882         * doc/posix-functions/towlower.texi: Mention module wctype.
18883         * doc/posix-functions/towupper.texi: Likewise.
18884         * lib/wctype.in.h (towlower, towupper): New functions.
18885         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18886         (ASSERT): New macro.
18887         (e): New variable.
18888         (main): Test also towlower, towupper. Test WEOF argument.
18889         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18890
18891 2009-09-05  Bruno Haible  <bruno@clisp.org>
18892
18893         Fix conversion behaviour when the input is invalid.
18894         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18895         mark occurring in first pass of indirect conversion.
18896         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18897         input.
18898         Found by clang's static analyzer.
18899
18900 2009-09-05  Bruno Haible  <bruno@clisp.org>
18901
18902         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18903         where direct conversion is possible.
18904
18905 2009-09-04  Eric Blake  <ebb9@byu.net>
18906
18907         openat: fail with ENOENT on empty name
18908         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18909         buffer.
18910
18911         link-follow: fix logic bug in prior patch
18912         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18913         reversed sense of yes and no in prior patch.  Avoid confusing
18914         compilation failure with desired semantics.
18915
18916         link-follow: accomodate mingw and cross-compilation
18917         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18918         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18919         cross-compilation results to -1, to make linkat easier to
18920         implement when cross-compiling.  Trivially support mingw.
18921         * modules/link-follow (configure.ac): Call new name.
18922         * NEWS: Mention this.
18923
18924 2009-09-03  Eric Blake  <ebb9@byu.net>
18925
18926         faccessat: compile replacement
18927         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18928         needed.
18929
18930         fts: fix compilation error
18931         * lib/fts.c (includes): Re-add "openat.h", for
18932         openat_needs_fchdir.
18933
18934         faccessat: new module
18935         * modules/faccessat: New file.
18936         * lib/faccessat.c: Likewise.
18937         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18939         * modules/unistd (Makefile.am): Use it.
18940         * lib/unistd.in.h (faccessat): Declare it.
18941         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18942         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18943         * MODULES.html.sh (File system functions): Mention it.
18944         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18945         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18946
18947         euidaccess: prefer POSIX over non-standard implementation
18948         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18949         * lib/euidaccess.c (euidaccess): Use it if available.
18950
18951         openat: make template easier to use
18952         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18953         AT_FUNC_F2 to be undefined.
18954         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18955         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18956         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18957         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18958         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18959         Likewise.
18960         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18961         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18962         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18963         Likewise.
18964
18965         openat: declare in POSIX headers
18966         * NEWS: Mention this.
18967         * modules/openat (configure.ac): Declare witnesses.
18968         (Depends-on): Add fcntl-h, sys_stat, unistd.
18969         (Include): Mention correct headers.
18970         * modules/fcntl-h (Depends-on): Add link-warning.
18971         (Files): Add openat.m4.
18972         (Makefile.am): Substitute witnesses.
18973         * modules/sys_stat (Files, Makefile.am): Likewise.
18974         * modules/unistd (Files, Makefile.am): Likewise.
18975         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18976         (gl_OPENAT_DEFAULTS): New macro.
18977         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18979         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18980         (SYS_STAT_H): Remove unused variable.
18981         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18982         * lib/fcntl--.h (includes): Remove unneeded header.
18983         * lib/openat-safer.c (includes): Likewise.
18984         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18985         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18986         appropriate headers.
18987         (__OPENAT_PREFIX): Delete.
18988         * lib/fcntl.in.h (openat): Provide declaration.
18989         (AT_FDCWD): Fix Solaris bug.
18990         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18991         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18992         * lib/fchmodat.c (includes):  Adjust to find declaration.
18993         * lib/fchownat.c (includes): Likewise.
18994         * lib/mkdirat.c (includes): Likewise.
18995         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18996         still visible.
18997
18998 2009-09-02  Eric Blake  <ebb9@byu.net>
18999
19000         errno: use consistently
19001         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
19002         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
19003         * lib/canonicalize.c (ELOOP): Likewise.
19004         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
19005         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
19006         * lib/lchown.c (EOPNOTSUPP): Likewise.
19007         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
19008         * lib/savewd.c (ESTALE): Likewise.
19009         * lib/settime.c (ENOSYS): Likewise.
19010         * lib/utimens.c (ENOSYS): Likewise.
19011         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
19012         * lib/chdir-safer.c (ELOOP): Likewise.
19013         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
19014         * modules/c-stack (Depends-on): Add errno.
19015         * modules/canonicalize (Depends-on): Likewise.
19016         * modules/chdir-safer (Depends-on): Likewise.
19017         * modules/fdopendir (Depends-on): Likewise.
19018         * modules/inet_ntop (Depends-on): Likewise.
19019         * modules/inet_pton (Depends-on): Likewise.
19020         * modules/lchown (Depends-on): Likewise.
19021         * modules/openat (Depends-on): Likewise.
19022         * modules/savewd (Depends-on): Likewise.
19023         * modules/settime (Depends-on): Likewise.
19024         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
19025
19026         fts: avoid leaking fds
19027         * modules/fts (Depends-on): Add cloexec.
19028         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
19029         flag.
19030
19031         fts: make directory fds more robust
19032         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
19033         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
19034
19035         backupfile, chdir-long, fts, savedir: make safer
19036         * lib/backupfile.c (includes): Use "dirent--.h", since
19037         numbered_backup can write to stderr during readdir.
19038         * lib/savedir.c (includes): Likewise.
19039         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
19040         emulation can write to stderr on failure.
19041         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
19042         * lib/getcwd.c: Document why opendir_safer is unused.
19043         * lib/glob.c: Likewise.
19044         * lib/scandir.c: Likewise.
19045         * lib/openat-proc.c: Likewise, for open_safer.
19046         * modules/backupfile (Depends-on): Add dirent-safer.
19047         * modules/savedir (Depends-on): Likewise.
19048         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
19049         * modules/chdir-long (Depends-on): Add openat-safer.
19050
19051         openat-safer: new module
19052         * modules/openat-safer: New file.
19053         * lib/openat-safer.c: Likewise.
19054         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
19055         * lib/fcntl-safer.h (openat_safer): Declare.
19056         * lib/fcntl--.h (openat): Override.
19057         * MODULES.html.sh (File descriptor based I/O): Mention it.
19058         * lib/openat.h: Add double-inclusion guards.
19059         * lib/openat.c (includes): Only include "fcntl-safer.h", not
19060         "fcntl--.h", so we can implement openat.
19061         * modules/openat-safer-tests: New test.
19062         * tests/test-openat-safer.c: New file.
19063
19064         dirent-safer: new module
19065         * modules/dirent-safer: New file.
19066         * lib/dirent--.h: Likewise.
19067         * lib/dirent-safer.h: Likewise.
19068         * lib/opendir-safer.c: Likewise.
19069         * m4/dirent-safer.m4: Likewise.
19070         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
19071         * modules/dirent-safer-tests: New test.
19072         * tests/test-dirent-safer.c: New file.
19073         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
19074
19075         fdopendir: optimize on mingw
19076         * lib/unistd.in.h (_gl_directory_name): New prototype.
19077         * lib/fchdir.c (_gl_directory_name): Implement it.
19078         (fchdir): Use it to simplify implementation.
19079         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
19080         fchdir, when available, to avoid calling [f]chdir().
19081
19082         fdopendir: split into its own module
19083         * lib/openat.c (fdopendir): Move...
19084         * lib/fdopendir.c: ...into new file.
19085         * modules/fdopendir: New module.
19086         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
19087         * modules/openat (Depends-on): Add fdopendir.
19088         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
19089         fdopendir here.
19090         * modules/savedir (Depends-on): Only need fdopendir, not full
19091         openat.
19092         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
19093         * lib/openat.h (fdopendir): Drop prototype.
19094         * lib/dirent.in.h (fdopendir): Provide prototype.
19095         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
19096         * modules/dirent (Makefile.am): Substitute them.
19097         * MODULES.html.sh (File system functions): Mention it.
19098         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
19099         * modules/fdopendir-tests: New file.
19100         * tests/test-fdopendir.c: Likewise.
19101
19102         fchdir: use more consistent macro convention
19103         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
19104         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
19105         REPLACE_FCHDIR, rather than relying on config.h macros.
19106         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
19107         inside a single make-time REPLACE_FCHDIR block, rather than using
19108         the config.h FCHDIR_REPLACEMENT.
19109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
19110         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
19111         Manage fstat replacement.
19112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
19113         REPLACE_FCHDIR.
19114         * modules/sys_stat (Files): Add m4/unistd_h.m4.
19115         (Makefile.am): Substitute REPLACE_FCHDIR.
19116         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
19117         FCHDIR_REPLACEMENT.
19118         * lib/dup-safer.c (dup_safer): Likewise.
19119         * lib/dup2.c (rpl_dup2): Likewise.
19120         * lib/dup3.c (rpl_dup3): Likewise.
19121         * lib/open.c (rpl_open): Likewise.
19122
19123         fchdir: simplify error handling, and support dup3
19124         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
19125         stdbool, malloc-posix, realloc-posix.
19126         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
19127         (ensure_dirs_slot): Return false on allocation failure.
19128         (rpl_dup2): Delete.
19129         (_gl_register_dup): New function.
19130         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
19131         (_gl_register_fd): Close fd on allocation failure.
19132         * lib/fcntl.in.h (_gl_register_fd): Update signature.
19133         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
19134         prototype.
19135         (rpl_dup2_fchdir): Delete prototype.
19136         * lib/open.c (open): Update caller.
19137         * lib/dup2.c (dup2): Track fchdir metadata.
19138         * lib/dup3.c (dup3): Likewise.
19139         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
19140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
19141
19142 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19143
19144         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
19145         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
19146         don't pass arguments to AC_OUTPUT.
19147
19148 2009-09-02  Bruno Haible  <bruno@clisp.org>
19149
19150         * modules/mkdtemp (License): Relicense under LGPLv2+.
19151         Reported by Paolo Bonzini.
19152
19153 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19154
19155         Replace uses of obsolete autoconf macros in Jim's modules.
19156         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
19157         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
19158         can evoke a warning from autoconf when run with -Wobsolete
19159         enabled.  They were declared obsolete for good reasons (see
19160         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
19161         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
19162         should not continue using the deprecated macros.
19163         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
19164         obsolete Autoconf macros with modern counterparts.
19165         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19166         * m4/dos.m4 (gl_AC_DOS): Likewise.
19167         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
19168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19169         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
19170         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
19171         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
19172         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19173         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
19174         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
19175         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
19176         Likewise.
19177         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19178         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19179         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
19180         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
19181         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19182         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
19183
19184 2009-09-01  Eric Blake  <ebb9@byu.net>
19185
19186         fchdir: fix off-by-one bug in previous patch
19187         * lib/fchdir.c (rpl_fstat): Use correct bounds.
19188         (_gl_unregister_fd): Delete useless if.
19189
19190 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
19191
19192         maint.mk: sort the list of syntax-check rules
19193         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
19194         easier to get a sense of progress when the rules are run sequentially
19195         and take a long time.
19196
19197 2009-09-01  Simon Josefsson  <simon@josefsson.org>
19198
19199         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
19200         * modules/netinet_in: Likewise.
19201         * modules/sys_file: Likewise.
19202         * modules/sys_ioctl: Likewise.
19203         * modules/sys_select: Likewise.
19204         * modules/sys_socket: Likewise.
19205         * modules/sys_stat: Likewise.
19206         * modules/sys_time: Likewise.
19207         * modules/sys_times: Likewise.
19208         * modules/sys_utsname: Likewise.
19209         * modules/sys_wait: Likewise.
19210
19211 2009-09-01  Jim Meyering  <meyering@redhat.com>
19212
19213         fts: help ensure that return values are not ignored
19214         * lib/fts_.h (__GNUC_PREREQ): Define.
19215         (__attribute_warn_unused_result__): Define.
19216         (fts_children, fts_close, fts_open, fts_read): Declare with
19217         __attribute_warn_unused_result__.
19218
19219         fts: fts_close now fails also when closing a dir file descriptor fails
19220         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
19221         and propagate to caller, along with errno.
19222
19223         announce-gen: correct formatting in --help output
19224         * build-aux/announce-gen (usage): Move the one-line description in
19225         --help output "up", to where it belongs, just after Usage:.
19226
19227 2009-08-31  Eric Blake  <ebb9@byu.net>
19228
19229         fchdir: port to mingw
19230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
19231         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
19232         opened, then use a substitute.
19233         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
19234         replacement.
19235         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
19236         (_gl_register_fd): No need to check stat if open already filters
19237         all directories.
19238         (fchdir): Fix error condition to match POSIX.
19239         * modules/fchdir (Depends-on): Add sys_stat.
19240         * doc/posix-functions/open.texi (open): Document the limitation.
19241         * modules/fchdir-tests: New file.
19242         * tests/test-fchdir.c: Likewise.
19243
19244         canonicalize: allow cross-testing from cygwin to mingw
19245         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
19246         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
19247         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
19248         Likewise.
19249         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
19250         target does not support symlinks.
19251         * tests/test-canonicalize-lgpl.sh: Likewise.
19252
19253         chown: avoid compilation warning on mingw
19254         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
19255         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
19256         mingw.
19257         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19258         * modules/chown (Depends-on): Add errno.
19259
19260 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19261
19262         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
19263         command.
19264
19265 2009-08-31  Jim Meyering  <meyering@redhat.com>
19266
19267         canonicalize: remove useless initialization
19268         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
19269         initialization of local, "end".
19270
19271 2009-08-30  Bruno Haible  <bruno@clisp.org>
19272
19273         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
19274         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
19275         ENOSYS.
19276
19277 2009-08-30  Bruno Haible  <bruno@clisp.org>
19278
19279         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
19280         /usr/xpg4/bin/tr when it exists.
19281         * tests/test-pipe-filter-gi1.sh: Likewise.
19282
19283 2009-08-30  Bruno Haible  <bruno@clisp.org>
19284
19285         Work around deficient /usr/bin/id program on Solaris.
19286         * tests/test-file-has-acl.sh (ID): New variable.
19287         * tests/test-set-mode-acl.sh (ID): Likewise.
19288         * tests/test-copy-acl.sh (ID): Likewise.
19289         * tests/test-copy-file.sh (ID): Likewise.
19290
19291 2009-08-30  Bruno Haible  <bruno@clisp.org>
19292
19293         New module 'xstriconveh'.
19294         * lib/xstriconveh.h: New file.
19295         * lib/xstriconveh.c: New file.
19296         * modules/xstriconveh: New file.
19297
19298 2009-08-30  Bruno Haible  <bruno@clisp.org>
19299
19300         Make it easier to use mem_cd_iconveh.
19301         * lib/striconveh.h (iconveh_t): New type.
19302         (iconveh_open, iconveh_close): New declarations.
19303         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19304         with a single 'const iconveh_t *' argument.
19305         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
19306         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19307         with a single 'const iconveh_t *' argument.
19308         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
19309         * tests/test-striconveh.c (main): Update.
19310         * NEWS: Mention the change.
19311
19312 2009-08-30  Bruno Haible  <bruno@clisp.org>
19313
19314         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
19315         problem.
19316
19317 2009-08-30  Bruno Haible  <bruno@clisp.org>
19318
19319         Work around iconv_open problem on Solaris.
19320         * lib/iconv_open-solaris.gperf: New file.
19321         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
19322         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
19323         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
19324         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
19325         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
19326         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
19327
19328 2009-08-29  Jim Meyering  <meyering@redhat.com>
19329
19330         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
19331         * top/maint.mk (cvs-check): Remove target; it was just an alias
19332         to the better-named vc-diff-check.
19333         (maintainer-distcheck): Remove rule.  It was used only from
19334         the (alpha/beta/major) target, and all of its commands but one
19335         were coreutils-specific.
19336         (vc-dist): Remove rule.
19337         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
19338         Run vc-diff-check, not vc-dist.
19339         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
19340
19341 2009-08-27  Bruno Haible  <bruno@clisp.org>
19342
19343         * tests/test-bitrotate.c (main): Remove test that uses a shift count
19344         of 0.
19345
19346 2009-08-27  Bruno Haible  <bruno@clisp.org>
19347
19348         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
19349         compilers.
19350         * doc/func.texi: Document the SunPRO C bug.
19351
19352 2009-08-27  Bruno Haible  <bruno@clisp.org>
19353
19354         Fix link error on Solaris.
19355         * tests/test-parse-duration.c (xstrdup): Remove function.
19356
19357 2009-08-26  Pádraig Brady  <P@draigbrady.com>
19358
19359         ignore-value: handle pointer types, too
19360         * lib/ignore-value.h (__attribute__): Remove definition.
19361         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
19362         of a more concise and more-often effective "(void) i" statement.
19363         (ignore_ptr): New function to suppress warnings from functions that
19364         return pointers, and to make it explicit that one function doesn't
19365         handle all cases.
19366
19367 2009-08-25  Bruno Haible  <bruno@clisp.org>
19368
19369         dup2: work around a Linux bug.
19370         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19371         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19372         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19373         Reported by Simon Josefsson.
19374
19375 2009-08-25  Jim Meyering  <meyering@redhat.com>
19376
19377         libguestfs uses gnulib
19378         * users.txt: Add libguestfs.
19379
19380 2009-08-24  Eric Blake  <ebb9@byu.net>
19381
19382         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19383         * lib/pipe2.c (includes): Add binary-io.h.
19384         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19385
19386 2009-08-24  Bruno Haible  <bruno@clisp.org>
19387
19388         Tolerate declared but missing accept4 syscall.
19389         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19390         available.
19391         * lib/sys_socket.in.h (accept4): If the function is already present,
19392         override it.
19393         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19394         * modules/accept4 (Makefile.am): Compile accept4.c always.
19395         Reported by Paolo Bonzini and Eric Blake.
19396
19397 2009-08-23  Bruno Haible  <bruno@clisp.org>
19398
19399         New module 'accept4'.
19400         * lib/sys_socket.in.h (accept4): New declaration.
19401         * lib/accept4.c: New file.
19402         * m4/accept4.m4: New file.
19403         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19404         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19405         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19406         HAVE_ACCEPT4.
19407         * modules/accept4: New file.
19408         * doc/glibc-functions/accept4.texi: Mention the new module.
19409
19410 2009-08-24  Jim Meyering  <meyering@redhat.com>
19411
19412         progname: also set global program_invocation_name, when possible
19413         Before this change, a libtool-enabled program that calls glibc's
19414         error function would report the program name as
19415         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19416         * modules/progname (configure.ac): Check for a declaration of
19417         program_invocation_name.
19418         * lib/progname.c:  Include <errno.h>.
19419         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19420         Set program_invocation_name.
19421
19422 2009-08-23  Bruno Haible  <bruno@clisp.org>
19423
19424         * lib/dup3.c: Include <string.h>.
19425
19426 2009-08-23  Bruno Haible  <bruno@clisp.org>
19427
19428         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19429         * lib/pipe2.c (pipe2): Likewise.
19430         Suggested by Eric Blake.
19431
19432 2009-08-23  Bruno Haible  <bruno@clisp.org>
19433
19434         Tolerate declared but missing dup3 syscall.
19435         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19436         * lib/unistd.in.h (dup3): If the function is already present,
19437         override it.
19438         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19439         * modules/dup3 (Makefile.am): Compile dup3.c always.
19440         Reported by Paolo Bonzini.
19441
19442 2009-08-23  Bruno Haible  <bruno@clisp.org>
19443
19444         Tolerate declared but missing pipe2 syscall.
19445         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19446         available.
19447         * lib/unistd.in.h (pipe2): If the function is already present,
19448         override it.
19449         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19450         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19451         Reported by Paolo Bonzini.
19452
19453 2009-08-23  Bruno Haible  <bruno@clisp.org>
19454
19455         * lib/pipe2.c (pipe2): Move #ifs inside function.
19456
19457 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19458
19459         quotearg: document limitations of quote_these_too
19460         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19461         those limitations are created.
19462         * lib/quotearg.h (set_char_quoting): Document that digits and
19463         letters that are special after backslash are not permitted.
19464         (quotearg_char): Cross-reference set_char_quoting documentation.
19465
19466 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19467
19468         quotearg: implement custom_quoting_style
19469         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19470         right_quote fields.
19471         (set_custom_quoting): New public function.
19472         (quotearg_buffer_restyled): Add left_quote and right_quote
19473         arguments, handle them very much like locale quoting, and update
19474         all uses.
19475         (quotearg_n_custom): New public function.
19476         (quotearg_n_custom_mem): New public function.
19477         (quotearg_custom): New public function.
19478         (quotearg_custom_mem): New public function.
19479         * lib/quotearg.h: Prototype and document new public functions.
19480         (enum quoting_style): For escape_quoting_style and
19481         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19482         ignored even though they're otherwise like c_quoting_style.
19483         Add custom_quoting_style member and document with comparison to
19484         clocale_quoting_style.
19485         * tests/test-quotearg.c (custom_quotes): New array.
19486         (custom_results): New array.
19487         (main): Extend to test custom quoting.
19488
19489 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19490
19491         quotearg: fix right quote escaping when it's in quote_these_too
19492         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19493         quote, be sure to prepend only one backslash.
19494         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19495         (main): Test it.
19496
19497 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19498
19499         quotearg-tests: test escaping of embedded locale quotes
19500         * tests/test-quotearg.c (struct result_strings): Add member for
19501         new input.
19502         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19503         (inputs): Add new input.
19504         (results_g): Add expected results.
19505         (flag_results): Likewise.
19506         (locale_results): Likewise.
19507         (compare_strings): Check those.
19508
19509 2009-08-23  Bruno Haible  <bruno@clisp.org>
19510
19511         Tests for module 'dup3'.
19512         * modules/dup3-tests: New file.
19513         * tests/test-dup3.c: New file.
19514
19515         New module 'dup3'.
19516         * lib/unistd.in.h (dup3): New declaration.
19517         * lib/dup3.c: New file.
19518         * m4/dup3.m4: New file.
19519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19520         HAVE_DUP3.
19521         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19522         * modules/dup3: New file.
19523         * doc/glibc-functions/dup3.texi: Mention the new module.
19524
19525 2009-08-23  Bruno Haible  <bruno@clisp.org>
19526
19527         Tweak the dup2 test.
19528         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19529         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19530         the test file is still empty. Fix argument order of lseek.
19531
19532 2009-08-23  Bruno Haible  <bruno@clisp.org>
19533
19534         Avoid test link errors when the modules getopt-gnu, gettext are used.
19535         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19537
19538 2009-08-23  Bruno Haible  <bruno@clisp.org>
19539
19540         Fix getdtablesize() on mingw.
19541         * lib/getdtablesize.c (getdtablesize): Implement differently.
19542         * lib/unistd.in.h (getdtablesize): Improve comment.
19543
19544 2009-08-23  Bruno Haible  <bruno@clisp.org>
19545
19546         New module 'mkostemp'.
19547         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19548         * lib/stdlib.in.h (mksotemp): New declaration.
19549         * lib/mkostemp.c: New file, from glibc with modifications.
19550         * lib/tempname.h (GT_FILE): Remove outdated comment.
19551         (gen_tempname): Add flags argument.
19552         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19553         (__GT_FILE): Map to 1.
19554         (small_open, large_open): Remove macros.
19555         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19556         * lib/mkstemp.c (mkstemp): Update.
19557         * lib/mkdtemp.c (mkdtemp): Likewise.
19558         * m4/mkostemp.m4: New file.
19559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19560         HAVE_MKOSTEMP.
19561         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19562         HAVE_MKOSTEMP.
19563         * modules/mkostemp: New file, based on modules/mkstemp.
19564         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19565         * NEWS: Mention the change.
19566
19567 2009-08-23  Bruno Haible  <bruno@clisp.org>
19568
19569         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19570         Reported by Eric Blake.
19571
19572 2009-08-23  Bruno Haible  <bruno@clisp.org>
19573
19574         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19575         Reported by Eric Blake.
19576
19577 2009-08-23  Bruno Haible  <bruno@clisp.org>
19578
19579         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19580         * modules/pipe2 (Depends-on): Likewise.
19581
19582 2009-08-23  Eric Blake  <ebb9@byu.net>
19583
19584         fcntl-h: add O_TTY_INIT support
19585         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19586         * tests/test-fcntl-h.c (o): Test it.
19587         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19588
19589         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19590         * modules/fcntl: Move <fcntl.h> header replacement...
19591         * modules/fcntl-h: ...to new name, so as not to collide with
19592         like-named function.
19593         * tests/test-fcntl.c: Rename...
19594         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19595         * modules/fcntl-tests: Rename...
19596         * modules/fcntl-h-tests: ...to this.  Update test file name.
19597         * modules/chdir-long (Depends-on): Update clients.
19598         * modules/chdir-safer (Depends-on): Likewise.
19599         * modules/fcntl-safer (Depends-on): Likewise.
19600         * modules/fts (Depends-on): Likewise.
19601         * modules/mkancesdirs (Depends-on): Likewise.
19602         * modules/mkdir-p (Depends-on): Likewise.
19603         * modules/open (Depends-on): Likewise.
19604         * modules/savewd (Depends-on): Likewise.
19605         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19606         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19607
19608 2009-08-22  Bruno Haible  <bruno@clisp.org>
19609
19610         * modules/binary-io (License): Relicense under LGPL.
19611         * modules/pipe2 (License): Likewise.
19612
19613 2009-08-22  Bruno Haible  <bruno@clisp.org>
19614
19615         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19616         return value.
19617         * lib/pipe-filter-gi.c (filter_init): Likewise.
19618         Reported by Eric Blake.
19619
19620 2009-08-22  Bruno Haible  <bruno@clisp.org>
19621
19622         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19623         * modules/pipe (Depends-on): Add pipe2.
19624
19625 2009-08-22  Bruno Haible  <bruno@clisp.org>
19626
19627         Tests for module 'pipe2'.
19628         * modules/pipe2-tests: New file.
19629         * tests/test-pipe2.c: New file.
19630
19631         New module 'pipe2'.
19632         * lib/unistd.in.h (pipe2): New declaration.
19633         * lib/pipe2.c: New file.
19634         * m4/pipe2.m4: New file.
19635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19636         HAVE_PIPE2.
19637         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19638         * modules/pipe2: New file.
19639         * doc/glibc-functions/pipe2.texi: Mention the new module.
19640
19641 2009-08-22  Bruno Haible  <bruno@clisp.org>
19642
19643         Reference some new glibc functions.
19644         * doc/glibc-functions/accept4.texi: New file.
19645         * doc/glibc-functions/dup3.texi: New file.
19646         * doc/glibc-functions/mkostemp.texi: New file.
19647         * doc/glibc-functions/pipe2.texi: New file.
19648         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
19649         (Glibc sys/socket.h): Refer to accept4.
19650         (Glibc unistd.h): Refer to dup3, pipe2.
19651         Reported by Eric Blake.
19652
19653 2009-08-22  Jim Meyering  <meyering@redhat.com>
19654             Bruno Haible  <bruno@clisp.org>
19655
19656         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
19657         This makes it so packages using automake-1.11's silent-rules option
19658         can print e.g., a single "GEN    configmake.h" line, rather than
19659         the 30+ statements that perform the job.  If you want to see the
19660         actual commands, you can still run "make V=1".
19661         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
19662         so that make output is abbreviated when those variables are defined
19663         appropriately.
19664         * modules/argz: Likewise.
19665         * modules/arpa_inet: Likewise.
19666         * modules/byteswap: Likewise.
19667         * modules/configmake: Likewise.
19668         * modules/dirent: Likewise.
19669         * modules/errno: Likewise.
19670         * modules/fcntl: Likewise.
19671         * modules/float: Likewise.
19672         * modules/fnmatch: Likewise.
19673         * modules/getopt-posix: Likewise.
19674         * modules/glob: Likewise.
19675         * modules/iconv_open: Likewise.
19676         * modules/inttypes: Likewise.
19677         * modules/localcharset: Likewise.
19678         * modules/locale: Likewise.
19679         * modules/math: Likewise.
19680         * modules/netdb: Likewise.
19681         * modules/netinet_in: Likewise.
19682         * modules/poll: Likewise.
19683         * modules/posix_spawnp-tests: Likewise.
19684         * modules/sched: Likewise.
19685         * modules/search: Likewise.
19686         * modules/selinux-h: Likewise.
19687         * modules/signal: Likewise.
19688         * modules/spawn: Likewise.
19689         * modules/stdarg: Likewise.
19690         * modules/stdbool: Likewise.
19691         * modules/stddef: Likewise.
19692         * modules/stdint: Likewise.
19693         * modules/stdio: Likewise.
19694         * modules/stdlib: Likewise.
19695         * modules/string: Likewise.
19696         * modules/strings: Likewise.
19697         * modules/sys_file: Likewise.
19698         * modules/sys_ioctl: Likewise.
19699         * modules/sys_select: Likewise.
19700         * modules/sys_socket: Likewise.
19701         * modules/sys_stat: Likewise.
19702         * modules/sys_time: Likewise.
19703         * modules/sys_times: Likewise.
19704         * modules/sys_utsname: Likewise.
19705         * modules/sys_wait: Likewise.
19706         * modules/sysexits: Likewise.
19707         * modules/time: Likewise.
19708         * modules/unistd: Likewise.
19709         * modules/wchar: Likewise.
19710         * modules/wctype: Likewise.
19711
19712 2009-08-22  Jim Meyering  <meyering@redhat.com>
19713
19714         announce-gen: detect write failure
19715         * build-aux/announce-gen: Add Coda at end.
19716         Remove equivalent-but-more-verbose block at top.
19717
19718 2009-08-19  Akim Demaille  <demaille@gostai.com>
19719
19720         bootstrap: --help to stdout.
19721         * bootstrap (usage): Don't send --help to stderr.
19722         Use a here doc instead of a long string.
19723
19724 2009-08-21  Eric Blake  <ebb9@byu.net>
19725
19726         test-popen-safer: split from test-popen
19727         * tests/test-popen.c (main): Move...
19728         * tests/test-popen.h: ...into new file.
19729         * tests/test-popen-safer2.c: New file.
19730         * modules/popen-tests (Files): Add test-popen.h.
19731         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
19732         Suggested by Bruno Haible.
19733
19734         test-fcntl-safer: split from test-open
19735         * tests/test-open.c (main): Move...
19736         * tests/test-open.h: ...into new file.
19737         * tests/test-fcntl-safer.c: New file.
19738         * modules/open-tests (Files): Add test-open.h.
19739         * modules/fcntl-safer-tests: New file.
19740         Suggested by Bruno Haible.
19741
19742         test-fopen-safer: split from test-fopen
19743         * tests/test-fopen.c (main): Move...
19744         * tests/test-fopen.h: ...into new file.
19745         * tests/test-fopen-safer.c: New file.
19746         * modules/fopen-tests (Files): Add test-fopen.h.
19747         * modules/fopen-safer-tests: New file.
19748         Suggested by Bruno Haible.
19749
19750 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19751
19752         popen-safer: test O_CLOEXEC at run-time.
19753         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
19754
19755 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19756
19757         fcntl: move more flags to the header
19758         * lib/cloexec.c: Do not define FD_CLOEXEC here.
19759         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
19760         * lib/fcntl.in.h: Do both things here.
19761
19762 2009-08-21  Jim Meyering  <meyering@redhat.com>
19763
19764         consistently remove $@-t before redirecting to it
19765         * modules/argz: Remove $@-t and $@ before redirecting to the former.
19766         * modules/alloca-opt: Likewise.
19767         * modules/byteswap: Likewise.
19768         * modules/fnmatch: Likewise.
19769         * modules/getopt-posix: Likewise.
19770         * modules/glob: Likewise.
19771         * modules/poll: Likewise.
19772         * modules/posix_spawnp-tests: Likewise.
19773         * modules/sys_socket: Likewise.
19774         * modules/sysexits: Likewise.
19775
19776 2009-08-21  Eric Blake  <ebb9@byu.net>
19777
19778         popen: simplify access to original popen
19779         * lib/popen.c (rpl_popen): No need to worry about popen being a
19780         macro.
19781         Reported by Bruno Haible.
19782
19783 2009-08-20  Eric Blake  <ebb9@byu.net>
19784
19785         build: avoid some compiler warnings
19786         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
19787         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
19788         type.
19789         (new_exclude_segment, excluded_file_pattern_p)
19790         (excluded_file_name_p): Reduce scope.
19791         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
19792         old-style declaration.
19793
19794 2009-08-20  Simon Josefsson  <simon@josefsson.org>
19795
19796         * tests/test-exclude1.sh: Handle Windows EOL.
19797         * tests/test-exclude2.sh: Likewise.
19798         * tests/test-exclude3.sh: Likewise.
19799         * tests/test-exclude4.sh: Likewise.
19800         * tests/test-exclude5.sh: Likewise.
19801         * tests/test-exclude6.sh: Likewise.
19802         * tests/test-exclude7.sh: Likewise.
19803
19804 2009-08-19  Akim Demaille  <demaille@gostai.com>
19805
19806         bootstrap: find sha1sum when named gsha1sum.
19807         * bootstrap (find_tool): New.
19808         ($SHA1SUM): New.
19809         Use it.
19810
19811 2009-08-20  Jim Meyering  <meyering@redhat.com>
19812
19813         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19814         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19815         expression that converts "." in a file name to "\." in the resulting
19816         regexp.  Start with a dummy statement, so that prior shell variable
19817         definitions are expanded portably.  Reported by Simon Josefsson.
19818
19819 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19820
19821         Fix polling for writeability of a screen buffer.
19822         * lib/poll.c: Distinguish input and screen buffers for the
19823         Win32 implementation.
19824         * lib/select.c: Likewise.
19825
19826 2009-08-19  Eric Blake  <ebb9@byu.net>
19827
19828         popen-safer: prevent popen from clobbering std descriptors
19829         * modules/popen-safer: New file.
19830         * lib/popen-safer.c: Likewise.
19831         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19832         * lib/stdio--.h (popen): Provide override.
19833         * lib/stdio-safer.h (popen_safer): Provide declaration.
19834         * tests/test-popen.c (includes): Partially test this.
19835         * modules/popen-safer-tests: New file, for more tests.
19836         * tests/test-popen-safer.c: Likewise.
19837         * MODULES.html.sh (file stream based Input/Output): Mention it.
19838
19839         tests: test some of the *-safer modules
19840         * modules/fopen-safer (Depends-on): Add fopen.
19841         * modules/fcntl-safer (Depends-on): Add fcntl.
19842         * modules/stdlib-safer (Depends-on): Add stdlib.
19843         (configure.ac): Set indicator.
19844         * modules/unistd-safer (configure.ac): Likewise.
19845         * modules/tmpfile-safer (configure.ac): Likewise.
19846         (Depends-on): Add tmpfile.
19847         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19848         active.
19849         * tests/test-fopen.c (includes): Test safer versions when they are
19850         in use.
19851         * tests/test-open.c (includes): Likewise.
19852
19853         popen: fix cygwin 1.5 bug when stdin closed
19854         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19855         * modules/popen: New file.
19856         * modules/popen-tests: Likewise.
19857         * tests/test-popen.c: Likewise.
19858         * m4/popen.m4: Likewise.
19859         * lib/popen.c: Likewise.
19860         * lib/stdio.in.h (popen): New declaration.
19861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19862         * modules/stdio (Makefile.am): Likewise.
19863         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19864
19865 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19866
19867         maint.mk: give full control over update-copyright exclusions
19868         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19869         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19870         (update-copyright): Don't force inclusion of top-level
19871         ChangeLog.  Don't force exclusion of all COPYING files, but make
19872         them the default exclusion instead.
19873
19874 2009-08-16  Bruno Haible  <bruno@clisp.org>
19875
19876         Fix test failures on Solaris 10.
19877         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19878         tests when Solaris iconv() is used.
19879         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19880         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19881         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19882         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19883         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19884
19885 2009-08-16  Bruno Haible  <bruno@clisp.org>
19886
19887         Fix test failures on Solaris 10.
19888         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19889         'tr' program and pass it as first argument.
19890         * tests/test-pipe-filter-gi1.sh: Likewise.
19891         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19892         program as first argument.
19893         * tests/test-pipe-filter-gi1.c (main): Likewise.
19894
19895 2009-08-16  Eric Blake  <ebb9@byu.net>
19896
19897         fpurge: fix previous commits
19898         * modules/fpurge (Makefile.am): Make replacement conditional,
19899         partially reverting 2007-04-29 change; missed in previous
19900         attempt.
19901         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19902         is missing.
19903
19904 2009-08-16  Bruno Haible  <bruno@clisp.org>
19905
19906         Clarify fpurge's effect on the file position.
19907         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19908         * tests/test-fpurge.c (main): Make a second pass for checking the file
19909         position.
19910
19911 2009-08-16  Bruno Haible  <bruno@clisp.org>
19912
19913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19914         declaration of fpurge is missing.
19915         * tests/test-fpurge.c (main): Check that the file has not more contents
19916         than expected. Close the file before removing it.
19917
19918 2009-08-15  Eric Blake  <ebb9@byu.net>
19919
19920         fpurge: don't wrap working cygwin implementation
19921         * lib/fpurge.c (fpurge): Fix comment typo.
19922         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19923         1.7 to avoid replacement.
19924         * tests/test-fpurge.c (main): Enhance test.
19925
19926 2009-08-15  Eric Blake  <ebb9@byu.net>
19927         and Jim Meyering  <meyering@redhat.com>
19928
19929         test-update-copyright: skip if perl is insufficient
19930         * tests/test-update-copyright.sh: Failure to run maintainer tool
19931         should not cause testsuite failure on cygwin 1.5.
19932
19933 2009-08-14  Eric Blake  <ebb9@byu.net>
19934
19935         doc: mention more functions added in cygwin 1.7.0
19936         * doc/posix-headers/limits.texi (limits.h): Update for recent
19937         cygwin additions.
19938         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19939         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19940         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19941         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19942         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19943
19944 2009-08-14  Eric Blake  <ebb9@byu.net>
19945
19946         maint.mk: simplify update-copyright rule
19947         * top/maint.mk (update-copyright-local): Delete, and document how
19948         to do it in cfg.mk instead.
19949         (update-copyright-exclude-regexp): Delete, and document how to do
19950         it in .x-update-copyright instead.
19951         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19952         exclude ChangeLog.
19953
19954 2009-08-14  Bruno Haible  <bruno@clisp.org>
19955
19956         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19957
19958 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19959
19960         maint.mk: support update-copyright-env
19961         * top/maint.mk (update-copyright-env): Define place-holder.
19962         (update-copyright): Expand $(update-copyright-env) before
19963         invoking update-copyright.
19964
19965 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19966
19967         update-copyright: implement forced reformatting
19968         * build-aux/update-copyright: Implement and document
19969         UPDATE_COPYRIGHT_FORCE.
19970         * tests/test-update-copyright.sh: Test it.
19971
19972 2009-08-14  Eric Blake  <ebb9@byu.net>
19973         and Bruno Haible  <bruno@clisp.org>
19974
19975         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19976         * tests/test-locale.c: Revert previous patch related to NULL.
19977         * tests/test-stdio.c: Likewise.
19978         * tests/test-stdlib.c: Likewise.
19979         * tests/test-string.c: Likewise.
19980         * tests/test-unistd.c: Likewise.
19981         * modules/time-tests (Depends-on): Add verify.
19982         * modules/wchar-tests (Depends-on): Likewise.
19983         * tests/test-time.c: Test for NULL compliance.
19984         * tests/test-wchar.c: Likewise.
19985         * modules/locale (Depends-on): Add stddef.
19986         * modules/stdio (Depends-on): Likewise.
19987         * modules/stdlib (Depends-on): Likewise.
19988         * modules/string (Depends-on): Likewise.
19989         * modules/time (Depends-on): Likewise.
19990         * modules/unistd (Depends-on): Likewise.
19991         * modules/wchar (Depends-on): Likewise.
19992         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19993         * lib/stdlib.in.h (includes): Likewise.
19994         * lib/string.in.h (includes): Likewise.
19995         * lib/time.in.h (includes): Likewise.
19996         * lib/unistd.in.h (includes): Likewise.
19997         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19998         replaced.
19999         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20000         * m4/stddef_h.m4: New file.
20001         * modules/stddef: Likewise.
20002         * lib/stddef.in.h: Likewise.
20003         * modules/stddef-tests: Likewise.
20004         * tests/test-stddef.c: Likewise.
20005         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
20006         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
20007         * doc/posix-headers/locale.texi (locale.h): Likewise.
20008         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
20009         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20010         * doc/posix-headers/string.texi (string.h): Likewise.
20011         * doc/posix-headers/time.texi (time.h): Likewise.
20012         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
20013         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
20014
20015 2009-08-14  Eric Blake  <ebb9@byu.net>
20016
20017         doc: improve git diff of texinfo files
20018         * .gitattributes: Add rule for *.texi files, with hint on how to
20019         use it.
20020         Copied from m4, and based on a report by Bruno Haible.
20021
20022 2009-08-14  Bruno Haible  <bruno@clisp.org>
20023
20024         Disable multithread support by default on Cygwin 1.5.x for real.
20025         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
20026
20027 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20028
20029         update-copyright: much ado about intervals
20030         * build-aux/update-copyright: Implement and document
20031         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
20032         of copyright year intervals.
20033         Also, document UPDATE_COPYRIGHT_YEAR.
20034         * tests/test-update-copyright.sh: Test it.
20035
20036         update-copyright: convert 2-digit to 4-digit years
20037         * build-aux/update-copyright: Implement and document.
20038         * tests/test-update-copyright.sh: Update.
20039
20040 2009-08-14  Jim Meyering  <meyering@redhat.com>
20041
20042         test-exclude: avoid coreutils "make check" failure
20043         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
20044         just as in test-argmatch.c.
20045
20046 2009-08-13  Eric Blake  <ebb9@byu.net>
20047
20048         test-dup2: fix bad assumption
20049         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
20050         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
20051
20052         test-version-etc: fix CRLF portability issue
20053         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
20054         recognize \r.
20055         * tests/test-argp-version-etc-1.sh: Likewise.
20056
20057         getopt: update client modules
20058         * modules/argp (Depends-on): Use getopt-gnu.
20059         * modules/git-merge-changelog (Depends-on): Likewise.
20060         * modules/long-options (Depends-on): Likewise.
20061         * modules/xstrtol (Depends-on): Likewise.
20062
20063 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20064
20065         * tests/test-version-etc.sh: Don't fail on different
20066         project/version.  Don't fail on CRLF differences.  Rewrite to use
20067         multiple -e instead of multiple sed forks, suggested by Eric Blake
20068         <ebb9@byu.net>.
20069         * tests/test-argp-version-etc-1.sh: Likewise.
20070
20071 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20072
20073         * tests/test-version-etc.sh: Don't fail on different
20074         project/version.
20075
20076 2009-08-12  Bruno Haible  <bruno@clisp.org>
20077
20078         Tests for modules 'getopt-posix', 'getopt-gnu'.
20079         * modules/getopt-posix-tests: New file.
20080         * tests/test-getopt.c: New file.
20081         * tests/test-getopt.h: New file.
20082         * tests/test-getopt_long.h: New file.
20083
20084         New modules 'getopt-posix', 'getopt-gnu'.
20085         * modules/getopt-gnu: New file, renamed from modules/getopt.
20086         * modules/getopt-posix: New file.
20087         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
20088         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
20089         (gl_GETOPT): Remove macro.
20090         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
20091         Disable the test against BSD systems that declare optreset. Test
20092         against mingw bug. Test against lack of support of optional arguments
20093         on many platforms.
20094         * doc/glibc-headers/getopt.texi: Update module name and list of
20095         relevant platforms.
20096         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
20097         'getopt-gnu' and more portability problems.
20098         * NEWS: Mention the changes.
20099
20100 2009-08-12  Bruno Haible  <bruno@clisp.org>
20101
20102         Ensure that optarg etc. get declared by <unistd.h>.
20103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
20104         AC_USE_SYSTEM_EXTENSIONS.
20105         * modules/getopt (Depends-on): Add 'extensions'.
20106
20107 2009-08-12  Bruno Haible  <bruno@clisp.org>
20108
20109         Avoid test link errors.
20110         * modules/pipe-filter-ii-tests (Makefile.am): Define
20111         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
20112         * modules/pipe-filter-gi-tests (Makefile.am): Define
20113         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
20114         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20115
20116 2009-08-12  Bruno Haible  <bruno@clisp.org>
20117
20118         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
20119         gl_GETOPT_SUBSTITUTE before.
20120         (gl_GETOPT): Use it.
20121         * m4/argp.m4 (gl_ARGP): Update.
20122         Reported by Sergey Poznyakoff.
20123
20124         * m4/getopt.m4: Reorder macros.
20125         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
20126         (gl_GETOPT_SUBSTITUTE): Remove macro.
20127
20128 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20129
20130         Minor improvement in gitlog-to-changelog
20131
20132         * build-aux/gitlog-to-changelog: New option `--format' makes
20133         output format string configurable.
20134
20135 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20136
20137         Optimize exclude: use hash tables for non-wildcard patterns.
20138
20139         * lib/exclude.c: Include hash.h and mbuiter.h
20140         (struct exclude_pattern, exclude_segment): New data types.
20141         (struct exclude): Rewrite.
20142         (fnmatch_pattern_has_wildcards): New function.
20143         (new_exclude_segment, free_exclude_segment): New functions.
20144         (excluded_file_pattern_p, excluded_file_name_p): New functions.
20145         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
20146         * lib/exclude.h (is_fnmatch_pattern): New prototype.
20147         * modules/exclude: Depend on hash and mbuiter.
20148
20149         * modules/exclude-tests: New file.
20150         * tests/test-exclude.c: New file.
20151         * tests/test-exclude1.sh: New file.
20152         * tests/test-exclude2.sh: New file.
20153         * tests/test-exclude3.sh: New file.
20154         * tests/test-exclude4.sh: New file.
20155         * tests/test-exclude5.sh: New file.
20156         * tests/test-exclude6.sh: New file.
20157         * tests/test-exclude7.sh: New file.
20158
20159 2009-08-12  Bruno Haible  <bruno@clisp.org>
20160
20161         Ensure that getopt() gets declared by <unistd.h>.
20162         * lib/unistd.in.h: Conditionally include getopt.h.
20163         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
20164         Set GNULIB_UNISTD_H_GETOPT.
20165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20166         GNULIB_UNISTD_H_GETOPT.
20167         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
20168
20169 2009-08-12  Bruno Haible  <bruno@clisp.org>
20170
20171         Clarify logic.
20172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
20173         gl_replace_getopt instead of GETOPT_H.
20174
20175 2009-08-12  Bruno Haible  <bruno@clisp.org>
20176
20177         * m4/getopt.m4: Add comments.
20178
20179 2009-08-12  Bruno Haible  <bruno@clisp.org>
20180
20181         Disable multithread support by default on Cygwin 1.5.x.
20182         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
20183         set gl_use_threads=no if not specified otherwise.
20184
20185 2009-08-11  Bruno Haible  <bruno@clisp.org>
20186
20187         Avoid compilation error on NetBSD 5.0.
20188         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
20189         * tests/test-stdio.c: Likewise.
20190         * tests/test-stdlib.c: Likewise.
20191         * tests/test-string.c: Likewise.
20192         * tests/test-unistd.c: Likewise.
20193         Reported by Greg Troxel <gdt@ir.bbn.com>
20194         at <https://savannah.gnu.org/support/?106973>.
20195
20196 2009-08-11  Bruno Haible  <bruno@clisp.org>
20197
20198         * modules/dup2-tests (Depends-on): Remove close.
20199
20200         Undo 2009-07-19 commit.
20201         * modules/acl-tests (Depends-on): Remove close.
20202         * modules/binary-io-tests (Depends-on): Likewise.
20203         * modules/closein-tests (Depends-on): Likewise.
20204         * modules/flock-tests (Depends-on): Likewise.
20205         * modules/fsync-tests (Depends-on): Likewise.
20206         * modules/lseek-tests (Depends-on): Likewise.
20207         * modules/pipe-tests (Depends-on): Likewise.
20208         * modules/posix_spawn-tests (Depends-on): Likewise.
20209         * modules/posix_spawnp-tests (Depends-on): Likewise.
20210         * modules/stat-time-tests (Depends-on): Likewise.
20211         * modules/yesno-tests (Depends-on): Likewise.
20212
20213 2009-08-10  Bruno Haible  <bruno@clisp.org>
20214
20215         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
20216
20217 2009-08-10  Bruno Haible  <bruno@clisp.org>
20218
20219         Fix a gcc warning.
20220         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
20221
20222 2009-08-10  Bruno Haible  <bruno@clisp.org>
20223
20224         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
20225         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
20226         not only the first time.
20227         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
20228         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
20229         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
20230         is 1, not only the the first time.
20231
20232 2009-08-10  Bruno Haible  <bruno@clisp.org>
20233
20234         Make it possible to use module 'gethostname' without module 'close'.
20235         * lib/unistd.in.h (close): Evoke a link error only if
20236         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20238         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20239         * modules/unistd (Makefile.am): Substitute
20240         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20241         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
20242         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20244         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20245         * modules/sys_ioctl (Makefile.am): Substitute
20246         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20247         * modules/socket (configure.ac): On native Windows, set
20248         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
20249         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20250         Reported by Sam Steingold <sds@gnu.org>.
20251
20252 2009-08-10  Bruno Haible  <bruno@clisp.org>
20253
20254         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
20255         * modules/ioctl (configure.ac): Likewise.
20256
20257 2009-08-10  Bruno Haible  <bruno@clisp.org>
20258
20259         Avoid collision between gnulib wrapper and libintl wrapper.
20260         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
20261         already defined in intl/printf.c.
20262         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
20263         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
20264
20265 2009-08-09  Bruno Haible  <bruno@clisp.org>
20266
20267         Make <sys/select.h> really self-contained, also on Solaris 10.
20268         * lib/sys_select.in.h: Include <string.h>.
20269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
20270         Solaris 10 problem.
20271         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
20272         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
20273         Reported by Jim Meyering.
20274
20275 2009-08-09  Bruno Haible  <bruno@clisp.org>
20276
20277         Avoid warnings from 'aclocal' that are due to a use of macro name
20278         AM_XGETTEXT_OPTION that is not defined in automake.
20279         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
20280         automake.
20281         * modules/error (configure.ac): Likewise.
20282         * modules/propername (configure.ac): Likewise.
20283         * modules/vasprintf (configure.ac): Likewise.
20284         * modules/verror (configure.ac): Likewise.
20285         * modules/xprintf (configure.ac): Likewise.
20286         * modules/xvasprintf (configure.ac): Likewise.
20287
20288 2009-08-08  Bruno Haible  <bruno@clisp.org>
20289
20290         Avoid compilation error in C++ mode.
20291         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
20292         Reported by Sam Steingold <sds@gnu.org>.
20293
20294 2009-08-08  Bruno Haible  <bruno@clisp.org>
20295
20296         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
20297         for the various Unix platforms.
20298         * doc/posix-headers/limits.texi: Update platforms list regarding
20299         HOST_NAME_MAX.
20300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20301
20302 2009-08-07  Jim Meyering  <meyering@redhat.com>
20303
20304         selinux-at: fix typo in a comment
20305         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
20306         Spotted by Paolo Bonzini.
20307
20308         selinux-at: remove redundant m4 code, add documentation
20309         * modules/selinux-at (configure.ac): Remove redundant code.
20310         LIB_SELINUX is already set via the dependent module, selinux-h.
20311         (Include): Add quotes around selinux-at.h.
20312         * lib/selinux-at.h: Add documentation.
20313         Reported by Bruno Haible in
20314         http://marc.info/?l=gnulib-bug&m=124958988300749
20315
20316 2009-08-07  Bruno Haible  <bruno@clisp.org>
20317
20318         Avoid link error on MacOS X 10.3 and 10.4.
20319         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
20320         on non-ELF systems.
20321         * lib/argp-pv.c (argp_program_version): Likewise.
20322         Reported by Simon Josefsson.
20323
20324 2009-08-07  Simon Josefsson  <simon@josefsson.org>
20325
20326         * tests/test-version-etc.sh: Use $EXEEXT.
20327
20328 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
20329
20330         update-copyright: update documentation to point to maint.mk
20331         * build-aux/update-copyright: Here.
20332
20333 2009-08-06  Jim Meyering  <meyering@redhat.com>
20334
20335         maint.mk: support update-copyright-local
20336         * top/maint.mk (update-copyright-local): Define place-holder.
20337         (update-copyright): Depend on $(update-copyright-local).
20338
20339 2009-08-06  Jim Meyering  <meyering@redhat.com>
20340
20341         selinux-at: new module
20342         Initially written for coreutils, this module will soon be
20343         used by findutils, too.
20344         * MODULES.html.sh [Misc]: Add selinux-at.
20345         * lib/selinux-at.h: New file, from coreutils.
20346         * lib/selinux-at.c: Likewise.
20347         * modules/selinux-at: Likewise.
20348         (License): Change from LGPL to GPL, since it depends
20349         on the GPL'd openat module.
20350
20351         doc: update README
20352         * README: Remove references to cogito.
20353         Remove cvs-repo-updating instructions from 2007.
20354         Don't imply that CVS is better if you have limited disk space.
20355
20356 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20357
20358         update-copyright: support C-style comments
20359         * build-aux/update-copyright: Implement and document.
20360         * tests/test-update-copyright.sh: Test.
20361
20362 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20363
20364         update-copyright: support omitted "(C)"
20365         * build-aux/update-copyright: Implement and document.  Also,
20366         allow variable whitespace before "(C)".
20367         * tests/test-update-copyright.sh: Test.
20368
20369 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20370
20371         update-copyright: don't trip on non-FSF copyright statements
20372         * build-aux/update-copyright: Fix so that the first correctly
20373         formatted FSF copyright statement is recognized no matter what
20374         appears before it.  Update documentation.
20375         * tests/test-update-copyright.sh: Test that.
20376
20377 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20378
20379         update-copyright: clean up code a little
20380         * build-aux/update-copyright: Append "_re" to the name of any
20381         variable holding a regular expression.
20382         Replace "old" and "new" with "stmt" in variable names.
20383         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20384         handled correctly.
20385         Format code more consistently.
20386
20387 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20388
20389         update-copyright-tests: improve portability
20390         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20391         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20392
20393 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20394
20395         update-copyright: support @copyright{} and &copy;
20396         * build-aux/update-copyright: Implement and document.
20397         * tests/test-update-copyright.sh: Test.
20398
20399 2009-08-04  Jim Meyering  <meyering@redhat.com>
20400
20401         update-copyright-tests: correctly test EOL=\r\n handling
20402         * tests/test-update-copyright.sh: Put \r at the end of some lines
20403         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20404
20405         maint.mk: make update-copyright exclusion list more configurable
20406         * top/maint.mk (update-copyright): Default to excluding COPYING,
20407         but allow an override, in case someone does want to update that file.
20408
20409         maint.mk: don't update copyright date in COPYING
20410         * top/maint.mk (update-copyright): Exclude COPYING.
20411
20412         maint.mk: add a copyright-updating rule
20413         * top/maint.mk (update-copyright): New rule.
20414         Derived from coreutils/Makefile.am.
20415
20416         update-copyright: rename some variables
20417         * build-aux/update-copyright: Rename a few variables for clarity.
20418         Tweak syntax.  List Joel E. Denny as coauthor.
20419
20420 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20421
20422         update-copyright: fix bug for 2-digit last year and add tests
20423         * build-aux/update-copyright: Fix bug.
20424         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20425         specified.
20426         * modules/update-copyright-tests: New
20427         * tests/test-update-copyright.sh: New.
20428
20429 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20430
20431         update-copyright: handle leading tabs in line prefix
20432         * build-aux/update-copyright: Count leading tabs as 8 spaces
20433         when computing margin.  This helps with the formatting of
20434         ChangeLogs, for example.
20435         Fix documentation a little.
20436
20437 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20438
20439         update-copyright: support EOL=\r\n
20440         * build-aux/update-copyright: Implement that.
20441
20442 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20443
20444         update-copyright: automatically format copyright statements
20445         * build-aux/update-copyright: Implement that.
20446         Also, be a little more predictable and safer by always failing
20447         when the full copyright format is not perfectly recognized as an
20448         unbroken whole.  Discussed at
20449         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20450         Rewrite documentation.
20451
20452 2009-08-03  Bruno Haible  <bruno@clisp.org>
20453
20454         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20455
20456 2009-08-02  Bruno Haible  <bruno@clisp.org>
20457
20458         Tests for module 'uname'.
20459         * modules/uname-tests: New file.
20460         * tests/test-uname.c: New file.
20461
20462         New module 'uname'.
20463         * lib/uname.c: New file.
20464         * m4/uname.m4: New file.
20465         * modules/uname: New file.
20466         * doc/posix-functions/uname.texi: Mention the new module.
20467
20468 2009-08-02  Bruno Haible  <bruno@clisp.org>
20469
20470         Tests for module 'sys_utsname'.
20471         * modules/sys_utsname-tests: New file.
20472         * tests/test-sys_utsname.c: New file.
20473
20474         New module 'sys_utsname'.
20475         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20476         * m4/sys_utsname_h.m4: New file.
20477         * modules/sys_utsname: New file.
20478         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20479
20480 2009-08-02  Bruno Haible  <bruno@clisp.org>
20481
20482         Implicitly initialize the sockets library.
20483         * lib/gethostname.c: Include sockets.h.
20484         (rpl_gethostname): Invoke gl_sockets_startup.
20485         * lib/socket.c: Include sockets.h.
20486         (rpl_socket): Invoke gl_sockets_startup.
20487         * modules/gethostname (Depends-on): Add sockets.
20488         * modules/socket (Depends-on): Likewise.
20489         * tests/test-poll.c: Don't include sockets.h.
20490         (main): Don't invoke gl_sockets_startup.
20491         * tests/test-select.c: Don't include sockets.h.
20492         (main): Don't invoke gl_sockets_startup.
20493
20494 2009-08-02  Bruno Haible  <bruno@clisp.org>
20495
20496         Allow multiple calls to gl_sockets_startup.
20497         * lib/sockets.c (initialized_sockets_version): New variable.
20498         (gl_sockets_startup): Do nothing if already called for this or a higher
20499         version.
20500         (gl_sockets_cleanup): Reset initialized_sockets_version.
20501
20502 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20503
20504         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20505         different project/version.
20506
20507 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20508             Bruno Haible  <bruno@clisp.org>
20509
20510         Tests for module 'pipe-filter-gi'.
20511         * modules/pipe-filter-gi-tests: New file.
20512         * tests/test-pipe-filter-gi1.sh: New file.
20513         * tests/test-pipe-filter-gi1.c: New file.
20514         * tests/test-pipe-filter-gi2.sh: New file.
20515         * tests/test-pipe-filter-gi2-main.c: New file.
20516         * tests/test-pipe-filter-gi2-child.c: New file.
20517
20518         New module 'pipe-filter-gi'.
20519         * lib/pipe-filter-gi.c: New file.
20520         * modules/pipe-filter-gi: New file.
20521
20522 2009-08-02  Bruno Haible  <bruno@clisp.org>
20523             Paolo Bonzini  <bonzini@gnu.org>
20524
20525         Tests for module 'pipe-filter-ii'.
20526         * modules/pipe-filter-ii-tests: New file.
20527         * tests/test-pipe-filter-ii1.sh: New file.
20528         * tests/test-pipe-filter-ii1.c: New file.
20529         * tests/test-pipe-filter-ii2.sh: New file.
20530         * tests/test-pipe-filter-ii2-main.c: New file.
20531         * tests/test-pipe-filter-ii2-child.c: New file.
20532
20533         New module 'pipe-filter-ii'.
20534         * lib/pipe-filter.h: New file.
20535         * lib/pipe-filter-ii.c: New file.
20536         * lib/pipe-filter-aux.h: New file.
20537         * modules/pipe-filter-ii: New file.
20538
20539 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20540
20541         * lib/gc-libgcrypt.c: Change copyright to FSF.
20542         * lib/gc-gnulib.c: Likewise.
20543
20544 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20545
20546         * lib/gethostname.c: Include limits.h.
20547
20548 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20549             Bruno Haible  <bruno@clisp.org>
20550
20551         Ensure HOST_NAME_MAX as part of the gethostname module.
20552         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20553         define also HOST_NAME_MAX.
20554         * tests/test-gethostname.c: Include <limits.h>.
20555         (main): Check also HOST_NAME_MAX.
20556         * doc/posix-headers/limits.texi: Document the mingw problem.
20557
20558 2009-08-02  Bruno Haible  <bruno@clisp.org>
20559
20560         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20561         Add comments.
20562
20563 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20564
20565         * lib/gethostname.c: Add Windows wrapper.
20566         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20567         * modules/gethostname: Depend on sys_socket & errno, for also
20568         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20569         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20570
20571 2009-07-31  Jim Meyering  <meyering@redhat.com>
20572
20573         getloadavg: fix symbol name in comment
20574         * lib/getloadavg.c: Correct a typo I introduced when adding
20575         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20576         Matt Kraai spotted the problem.
20577
20578 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20579
20580         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20581         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20582         code also if ! defined N_NAME_POINTER.
20583         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20584         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20585         but the n_name member is a 12-byte array.
20586
20587 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20588
20589         update-copyright: generalize comment handling
20590         * build-aux/update-copyright: Handle copyright statements
20591         within more comment styles.
20592         Document usage.
20593         Report any file with an external copyright holder or parse failure.
20594
20595 2009-07-29  Jim Meyering  <meyering@redhat.com>
20596
20597         mktime: correct setting of REPLACE_MKTIME
20598         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20599
20600         update-copyright: new module
20601         * modules/update-copyright: New file.
20602         * build-aux/update-copyright: New file.
20603         * MODULES.html.sh (maint+release support): Add update-copyright.
20604
20605 2009-07-27  Bruno Haible  <bruno@clisp.org>
20606
20607         Fix compilation error when <ctime> is used and mktime is replaced.
20608         * lib/time.in.h (mktime): New declaration.
20609         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20610         REPLACE_MKTIME instead of defining mktime in config.h.
20611         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20612         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20613         Reported by Ross McFarland <rwmcfa1@neces.com>.
20614
20615 2009-07-27  Bruno Haible  <bruno@clisp.org>
20616
20617         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20618         Reported by Matt Kraai <mkraai@beckman.com>.
20619
20620 2009-07-25  Jim Meyering  <meyering@redhat.com>
20621
20622         maint.mk: avoid warnings about missing files
20623         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20624         diagnostic when .prev-version does not exist.
20625         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20626         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20627         nonexistent cfg.mk.
20628         Suggestions from Simon Josefsson.
20629
20630 2009-07-25  Bruno Haible  <bruno@clisp.org>
20631
20632         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20633         defined as macros. Needed on QNX 6.4.1.
20634         Reported by Matt Kraai <mkraai@beckman.com>.
20635
20636 2009-07-23  Jim Meyering  <meyering@redhat.com>
20637
20638         maint.mk: invoke "make dist" with a working value of XZ_OPT
20639         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20640
20641 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20642
20643         Make fseeko.c compile on QNX.
20644         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20645
20646 2009-07-22  Peter Simons  <simons@cryp.to>
20647
20648         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
20649         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
20650         * lib/md4.h: Likewise.
20651         * lib/md5.h: Likewise.
20652         * lib/sha1.h: Likewise.
20653         * lib/sha256.h: Likewise.
20654         * lib/sha512.h: Likewise.
20655
20656         tests-sha1: don't assign literal string to 'char *' variable
20657         * tests/test-sha1.c (main): Declare locals with "const" to match
20658         attributes of the right hand side.
20659
20660 2009-07-21  Eric Blake  <ebb9@byu.net>
20661
20662         dup2: fix more mingw problems
20663         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
20664         fd to itself.
20665         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20666         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
20667         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
20668         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
20669         care of mingw bugs.
20670
20671 2009-07-21  Jim Meyering  <meyering@redhat.com>
20672
20673         vc-list-files: avoid failure when /bin/sh is dash
20674         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
20675         On some Debian based systems, /bin/sh is a symlink to dash, and running
20676         this command would omit the "/" following each 'tests' prefix:
20677           dash -x build-aux/vc-list-files -C . tests
20678         That is because bash and dash work differently:
20679           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
20680           bash ok
20681           dash odd
20682
20683 2009-07-21  Eric Blake  <ebb9@byu.net>
20684
20685         dup2-tests: test previous patch
20686         * modules/dup2-tests: New file.
20687         * tests/test-dup2.c: Likewise.
20688         * tests/test-open.c (main): Avoid unspecified behavior.
20689         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
20690         test.
20691
20692         dup2: work around mingw and cygwin 1.5 bug
20693         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
20694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20695         * modules/unistd (Makefile.am): Substitute it.
20696         * lib/unistd.in.h (dup2): Declare the replacement.
20697         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
20698         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
20699         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
20700         * modules/execute (Depends-on): Add dup2.
20701         * modules/fseterr (Depends-on): Likewise.
20702         * modules/pipe (Depends-on): Likewise.
20703         * modules/posix_spawn-internal (Depends-on): Likewise.
20704
20705 2009-07-21  Bruno Haible  <bruno@clisp.org>
20706
20707         * modules/.gitattributes: New file.
20708
20709 2009-07-20  Bruno Haible  <bruno@clisp.org>
20710
20711         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
20712         (main): Use it.
20713
20714 2009-07-20  Eric Blake  <ebb9@byu.net>
20715
20716         test-pipe: make a bit more robust.
20717         * tests/test-pipe.c (myerr): Allow error messages regardless of
20718         what we do to stderr.
20719         (test_pipe): Rearrange to avoid deadlock.
20720         (child_main): Try a larger read, to ensure we avoided deadlock.
20721         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
20722         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
20723         if misused.
20724
20725 2009-07-19  Jim Meyering  <meyering@redhat.com>
20726
20727         fts: avoid false-positive cycle-detection
20728         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
20729         for each new command line argument.
20730
20731 2009-07-19  Bruno Haible  <bruno@clisp.org>
20732
20733         Fix build error on mingw with the modules sys_select and unistd.
20734         * modules/acl-tests (Depends-on): Add close.
20735         * modules/binary-io-tests (Depends-on): Likewise.
20736         * modules/closein-tests (Depends-on): Likewise.
20737         * modules/flock-tests (Depends-on): Likewise.
20738         * modules/fsync-tests (Depends-on): Likewise.
20739         * modules/lseek-tests (Depends-on): Likewise.
20740         * modules/pipe-tests (Depends-on): Likewise.
20741         * modules/posix_spawn-tests (Depends-on): Likewise.
20742         * modules/posix_spawnp-tests (Depends-on): Likewise.
20743         * modules/stat-time-tests (Depends-on): Likewise.
20744         * modules/yesno-tests (Depends-on): Likewise.
20745
20746 2009-07-19  Bruno Haible  <bruno@clisp.org>
20747
20748         Unify conditionals.
20749         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
20750         macros, not at the compiler macros.
20751         * lib/pipe.c: Likewise.
20752         * lib/execute.c: Likewise.
20753         * lib/spawni.c: Likewise.
20754
20755 2009-07-19  Bruno Haible  <bruno@clisp.org>
20756
20757         Fix handling of closed stdin/stdout/stderr on mingw.
20758         * lib/w32spawn.h: Include unistd.h.
20759         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
20760         file descriptor with O_NOINHERIT flag.
20761         (fd_safer_noinherit): New function, based on fd-safer.c.
20762         (dup_safer_noinherit): New function, based on dup-safer.c.
20763         (undup_safer_noinherit): New function.
20764         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
20765         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
20766         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
20767         instead of fd_safer.
20768         * tests/test-pipe.c: Include <windows.h>.
20769         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
20770
20771         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
20772         from main.
20773         (test_pipe): Pass an extra argument for disambiguation.
20774         (main): Invoke parent_main or child_main.
20775
20776         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
20777         consistently.
20778
20779 2009-07-18  Eric Blake  <ebb9@byu.net>
20780
20781         test-pipe: fix mingw build
20782         * tests/test-pipe.c (main): Avoid fcntl on mingw.
20783
20784 2009-07-18  Bruno Haible  <bruno@clisp.org>
20785
20786         * modules/pipe-tests (Makefile.am): Fix typo.
20787
20788 2009-07-18  Eric Blake  <ebb9@byu.net>
20789
20790         error: fix mingw build
20791         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
20792         Reported by Bruno Haible.
20793
20794         error: avoid undefined use of stdout
20795         * lib/error.c (error, error_at_line): Check that fd 1 is open
20796         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
20797         is handling faults and the close_stdout module wants to report the
20798         detection of closed stdout as an error.
20799
20800 2009-07-17  Eric Blake  <ebb9@byu.net>
20801
20802         pipe: be robust in face of closed fds
20803         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
20804         should cause child to misbehave.
20805         * modules/pipe-tests: New module.
20806         * tests/test-pipe.c: New file.
20807         * tests/test-pipe.sh: New file.
20808         Reported by Akim Demaille.
20809
20810 2009-07-14  Bruno Haible  <bruno@clisp.org>
20811
20812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20813         Reported by anonymous kc.
20814
20815 2009-07-07  Jim Meyering  <meyering@redhat.com>
20816
20817         maint.mk: don't look for translatable strings in *.m4 or *.mk
20818         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20819         when searching for translatable strings.
20820
20821 2009-07-05  Jim Meyering  <meyering@redhat.com>
20822
20823         remove superfluous parentheses in STREQ definition
20824         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20825         * lib/getugroups.c (STREQ): Likewise.
20826         * lib/fnmatch.c (STREQ): Likewise.
20827         Spotted by Bruno Haible.
20828
20829 2009-07-04  Jim Meyering  <meyering@redhat.com>
20830
20831         argv-iter: new module
20832         * MODULES.html.sh: Add argv-iter.
20833         * lib/argv-iter.c, lib/argv-iter.h: New files.
20834         * modules/argv-iter: New file.
20835         * modules/argv-iter-tests: New file.
20836         * tests/test-argv-iter.c: Test it.
20837
20838 2009-07-04  Bruno Haible  <bruno@clisp.org>
20839
20840         Fix assertion.
20841         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20842         contains more exact copies of a given entry than file2, leave the extra
20843         copies unpaired rather than aborting.
20844         Reported by Eric Blake.
20845
20846 2009-07-02  Bruno Haible  <bruno@clisp.org>
20847
20848         Speedup git-merge-changelog for git cherry-pick.
20849         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20850         (entries_mapping_get): New function, extracted from compute_mapping.
20851         (entries_mapping_reverse_get): New function.
20852         (compute_mapping): Add a 'full' argument. Return the result in a
20853         'struct entries_mapping'.
20854         (main): Update. Access the mappings through entries_mapping_get.
20855         Reported by Eric Blake.
20856
20857 2009-07-02  Bruno Haible  <bruno@clisp.org>
20858
20859         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20860         best_i.
20861
20862 2009-07-02  Bruno Haible  <bruno@clisp.org>
20863
20864         Speed up approximate search for matching ChangeLog entries.
20865         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20866         argument. Call fstrcmp_bounded instead of fstrcmp.
20867         (compute_mapping, try_split_merged_entry, main): Update callers.
20868
20869 2009-07-02  Bruno Haible  <bruno@clisp.org>
20870
20871         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20872
20873 2009-06-30  Bruno Haible  <bruno@clisp.org>
20874
20875         Reduce the number of uc_is_cased calls.
20876         * lib/unicase.h (casing_suffix_context_t): Add
20877         'first_char_except_ignorable' field.
20878         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20879         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20880         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20881         Update initializer.
20882         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20883         case-ignorable characters.
20884         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20885         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20886         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20887         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20888         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20889
20890 2009-06-30  Bruno Haible  <bruno@clisp.org>
20891
20892         Tests for module 'unicase/ignorable'.
20893         * modules/unicase/ignorable-tests: New file.
20894         * tests/unicase/test-ignorable.c: New file, generated by
20895         gen-uni-tables.
20896
20897         Tests for module 'unicase/cased'.
20898         * modules/unicase/cased-tests: New file.
20899         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20900         * tests/unicase/test-predicate-part1.h: New file, derived from
20901         tests/unictype/test-predicate-part1.h.
20902         * tests/unicase/test-predicate-part2.h: New file, same as
20903         tests/unictype/test-predicate-part2.h.
20904
20905         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20906         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20907         (output_casing_properties): New function.
20908         (main): Call it.
20909         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20910         * lib/unicase/cased.c: Include unictype/bitmap.h.
20911         (uc_is_cased): Define through a bitmap lookup.
20912         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20913         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20914         (uc_is_case_ignorable): Define through a bitmap lookup.
20915         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20916         lib/unictype/bitmap.h.
20917         (Depends-on): Add inline. Clean up.
20918         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20919         lib/unictype/bitmap.h.
20920         (Depends-on): Add inline. Clean up.
20921         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20922         recognition.
20923         * tests/unicase/test-u16-tolower.c (main): Likewise.
20924         * tests/unicase/test-u32-tolower.c (main): Likewise.
20925
20926 2009-06-30  Bruno Haible  <bruno@clisp.org>
20927
20928         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20929         * lib/unicase/u16-casemap.c: Likewise.
20930         * lib/unicase/u32-casemap.c: Likewise.
20931
20932 2009-06-29  Bruno Haible  <bruno@clisp.org>
20933
20934         Define u32_casefold as a wrapper around u32_ct_casefold.
20935         * lib/unicase/u32-casefold.c: Update.
20936         * modules/unicase/u32-casefold (Depends-on): Add
20937         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20938         unicase/empty-suffix-context. Clean up.
20939
20940         Define u16_casefold as a wrapper around u16_ct_casefold.
20941         * lib/unicase/u16-casefold.c: Update.
20942         * modules/unicase/u16-casefold (Depends-on): Add
20943         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20944         unicase/empty-suffix-context. Clean up.
20945
20946         Define u8_casefold as a wrapper around u8_ct_casefold.
20947         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20948         * lib/unicase/u8-casefold.c: Update.
20949         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20950         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20951
20952         Define u32_totitle as a wrapper around u32_ct_totitle.
20953         * lib/unicase/u32-totitle.c: Update.
20954         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20955         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20956
20957         Define u16_totitle as a wrapper around u16_ct_totitle.
20958         * lib/unicase/u16-totitle.c: Update.
20959         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20960         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20961
20962         Define u8_totitle as a wrapper around u8_ct_totitle.
20963         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20964         functions.
20965         (FUNC): Delegate to U_CT_TOTITLE.
20966         * lib/unicase/u8-totitle.c: Update.
20967         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20968         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20969
20970         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20971         invocation.
20972         * modules/unicase/u32-tolower (Depends-on): Add
20973         unicase/empty-prefix-context, unicase/empty-suffix-context.
20974
20975         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20976         invocation.
20977         * modules/unicase/u16-tolower (Depends-on): Add
20978         unicase/empty-prefix-context, unicase/empty-suffix-context.
20979
20980         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20981         * modules/unicase/u8-tolower (Depends-on): Add
20982         unicase/empty-prefix-context, unicase/empty-suffix-context.
20983
20984         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20985         invocation.
20986         * modules/unicase/u32-toupper (Depends-on): Add
20987         unicase/empty-prefix-context, unicase/empty-suffix-context.
20988
20989         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20990         invocation.
20991         * modules/unicase/u16-toupper (Depends-on): Add
20992         unicase/empty-prefix-context, unicase/empty-suffix-context.
20993
20994         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20995         * modules/unicase/u8-toupper (Depends-on): Add
20996         unicase/empty-prefix-context, unicase/empty-suffix-context.
20997
20998         New module 'unicase/u32-ct-casefold'.
20999         * lib/unicase/u32-ct-casefold.c: New file.
21000         * modules/unicase/u32-ct-casefold: New file.
21001
21002         New module 'unicase/u16-ct-casefold'.
21003         * lib/unicase/u16-ct-casefold.c: New file.
21004         * modules/unicase/u16-ct-casefold: New file.
21005
21006         New module 'unicase/u8-ct-casefold'.
21007         * lib/unicase/u8-ct-casefold.c: New file.
21008         * lib/unicase/u-ct-casefold.h: New file, derived from
21009         lib/unicase/u-casefold.h.
21010         * modules/unicase/u8-ct-casefold: New file.
21011
21012         New module 'unicase/u32-ct-totitle'.
21013         * lib/unicase/u32-ct-totitle.c: New file.
21014         * modules/unicase/u32-ct-totitle: New file.
21015
21016         New module 'unicase/u16-ct-totitle'.
21017         * lib/unicase/u16-ct-totitle.c: New file.
21018         * modules/unicase/u16-ct-totitle: New file.
21019
21020         New module 'unicase/u8-ct-totitle'.
21021         * lib/unicase/u8-ct-totitle.c: New file.
21022         * lib/unicase/u-ct-totitle.h: New file, derived from
21023         lib/unicase/u-totitle.h.
21024         * modules/unicase/u8-ct-totitle: New file.
21025
21026         New module 'unicase/u32-ct-tolower'.
21027         * lib/unicase/u32-ct-tolower.c: New file.
21028         * modules/unicase/u32-ct-tolower: New file.
21029
21030         New module 'unicase/u16-ct-tolower'.
21031         * lib/unicase/u16-ct-tolower.c: New file.
21032         * modules/unicase/u16-ct-tolower: New file.
21033
21034         New module 'unicase/u8-ct-tolower'.
21035         * lib/unicase/u8-ct-tolower.c: New file.
21036         * modules/unicase/u8-ct-tolower: New file.
21037
21038         New module 'unicase/u32-ct-toupper'.
21039         * lib/unicase/u32-ct-toupper.c: New file.
21040         * modules/unicase/u32-ct-toupper: New file.
21041
21042         New module 'unicase/u16-ct-toupper'.
21043         * lib/unicase/u16-ct-toupper.c: New file.
21044         * modules/unicase/u16-ct-toupper: New file.
21045
21046         New module 'unicase/u8-ct-toupper'.
21047         * lib/unicase/u8-ct-toupper.c: New file.
21048         * modules/unicase/u8-ct-toupper: New file.
21049
21050         Add context arguments to u*_casemap functions.
21051         * lib/unicase/unicasemap.h: Include unicase.h.
21052         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
21053         suffix_context arguments.
21054         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
21055         functions.
21056         (FUNC): Add prefix_context and suffix_context arguments. Use
21057         uc_is_cased and uc_is_case_ignorable.
21058         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
21059         * lib/unicase/u16-casemap.c: Likewise.
21060         * lib/unicase/u32-casemap.c: Likewise.
21061         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
21062         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21063         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
21064         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21065         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
21066         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21067
21068         New module 'unicase/u32-suffix-context'.
21069         * lib/unicase/u32-suffix-context.c: New file.
21070         * modules/unicase/u32-suffix-context: New file.
21071
21072         New module 'unicase/u16-suffix-context'.
21073         * lib/unicase/u16-suffix-context.c: New file.
21074         * modules/unicase/u16-suffix-context: New file.
21075
21076         New module 'unicase/u8-suffix-context'.
21077         * lib/unicase/u8-suffix-context.c: New file.
21078         * lib/unicase/u-suffix-context.h: New file.
21079         * modules/unicase/u8-suffix-context: New file.
21080
21081         New module 'unicase/empty-suffix-context'.
21082         * lib/unicase/empty-suffix-context.c: New file.
21083         * modules/unicase/empty-suffix-context: New file.
21084
21085         New module 'unicase/u32-prefix-context'.
21086         * lib/unicase/u32-prefix-context.c: New file.
21087         * modules/unicase/u32-prefix-context: New file.
21088
21089         New module 'unicase/u16-prefix-context'.
21090         * lib/unicase/u16-prefix-context.c: New file.
21091         * modules/unicase/u16-prefix-context: New file.
21092
21093         New module 'unicase/u8-prefix-context'.
21094         * lib/unicase/u8-prefix-context.c: New file.
21095         * lib/unicase/u-prefix-context.h: New file.
21096         * lib/unicase/context.h: New file.
21097         * modules/unicase/u8-prefix-context: New file.
21098
21099         New module 'unicase/empty-prefix-context'.
21100         * lib/unicase/empty-prefix-context.c: New file.
21101         * modules/unicase/empty-prefix-context: New file.
21102
21103         New module 'unicase/ignorable'.
21104         * lib/unicase/ignorable.c: New file.
21105         * modules/unicase/ignorable: New file.
21106
21107         New module 'unicase/cased'.
21108         * lib/unicase/caseprop.h: New file.
21109         * lib/unicase/cased.c: New file.
21110         * modules/unicase/cased: New file.
21111
21112         New functions for case mapping of substrings.
21113         * lib/unicase.h (casing_prefix_context_t): New type.
21114         (unicase_empty_prefix_context): New variable.
21115         (u8_casing_prefix_context, u16_casing_prefix_context,
21116         u32_casing_prefix_context, u8_casing_prefixes_context,
21117         u16_casing_prefixes_context, u32_casing_prefixes_context): New
21118         declarations.
21119         (casing_suffix_context_t): New type.
21120         (unicase_empty_suffix_context): New variable.
21121         (u8_casing_suffix_context, u16_casing_suffix_context,
21122         u32_casing_suffix_context, u8_casing_suffixes_context,
21123         u16_casing_suffixes_context, u32_casing_suffixes_context,
21124         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
21125         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
21126         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
21127         declarations.
21128
21129 2009-06-28  Jim Meyering  <meyering@redhat.com>
21130
21131         boostrap: indent only with spaces
21132         * build-aux/bootstrap: Indent only with spaces, never TABs.
21133
21134         bootstrap: split long lines
21135         * build-aux/bootstrap: Keep line length < 80.
21136
21137         bootstrap: sync from coreutils
21138         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
21139         just as autoreconf does.  Verify a list of prerequisite
21140         package-name,version-number pairs if defined in bootstrap.conf.
21141         Refer to README-prereq, if prerequisites are not satisfied.
21142
21143 2009-06-27  Eric Blake  <ebb9@byu.net>
21144
21145         tests: add test for bogus NULL definition
21146         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
21147         * tests/test-stdlib.c: Likewise.
21148         * tests/test-string.c: Likewise.
21149         * tests/test-locale.c: Likewise.
21150         * tests/test-unistd.c: Likewise.
21151         * modules/stdio-tests (Depends-on): Add verify.
21152         * modules/stdlib-tests (Depends-on): Likewise.
21153         * modules/string-tests (Depends-on): Likewise.
21154         * modules/locale-tests (Depends-on): Likewise.
21155         * modules/unistd-tests (Depends-on): Likewise.
21156
21157 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
21158
21159         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
21160         self-explaining comment.
21161         * m4/selinux-selinux-h: Update serial.
21162         (gl_LIBSELINUX): New macro, adding a warning for missing development
21163         packages to code extracted from...
21164         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
21165         Add warning for missing development packages here, too.
21166
21167 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
21168
21169         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
21170
21171 2009-06-25  Eric Blake  <ebb9@byu.net>
21172
21173         version-etc: fix regression
21174         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
21175         gcc.
21176         (version_etc): Use it, to catch bugs with trailing NULL.
21177         * lib/version-etc.c (version_etc_arn): Delete unused argument.
21178         (version_etc_va): Fix logic bug.
21179         * modules/version-etc-tests: Add test.
21180         * tests/test-version-etc.c: New file.
21181         * tests/test-version-etc.sh: Likewise.
21182
21183 2009-06-25  Sam Steingold  <sds@gnu.org>
21184
21185         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
21186         mbtowc declaration.
21187
21188 2009-06-25  Eric Blake  <ebb9@byu.net>
21189
21190         fpurge: migrate into <stdio.h>
21191         * lib/fpurge.h: Delete...
21192         * lib/stdio.in.h (fpurge): ...and declare here, instead.
21193         * lib/fpurge.c (fpurge): Change declaring header.
21194         * modules/fpurge (Files): Drop deleted file.
21195         (Depends-on): Add stdio.
21196         (configure.ac): Set witness.
21197         * modules/stdio (Makefile.am): Support fpurge macros.
21198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21199         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
21200         * lib/fflush.c: Update client.
21201         * tests/test-fpurge.c: Likewise.
21202         * NEWS: Mention the change.
21203
21204 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21205
21206         * lib/argp-version-etc.c (program_authors): Add const
21207         qualifier.
21208         * lib/version-etc.c: Fix typos in the comments.
21209         * modules/argp-version-etc: Depends on version-etc.
21210
21211 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21212
21213         argp-version-etc: new module.
21214
21215         * lib/argp-version-etc.c: New file.
21216         * lib/argp-version-etc.h: New file.
21217         * modules/argp-version-etc: New file.
21218         * modules/argp-version-etc-tests: New file.
21219         * tests/test-argp-version-etc.c: New test.
21220         * tests/test-argp-version-etc-1.sh: New test.
21221
21222 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21223
21224         Provide additional interfaces and documentation for version-etc
21225         module.
21226
21227         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
21228         interfaces.
21229         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
21230         prototypes.
21231
21232 2009-06-24  Bruno Haible  <bruno@clisp.org>
21233
21234         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
21235         HAVE_LIB${NAME} macro.
21236         Reported by Sam Steingold <sds@gnu.org>.
21237
21238 2009-06-23  Simon Josefsson  <simon@josefsson.org>
21239
21240         * modules/hash-tests (test_hash_LDADD): Link to libintl when
21241         needed.
21242
21243 2009-06-21  Bruno Haible  <bruno@clisp.org>
21244
21245         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
21246         work.
21247         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
21248         together with LIB${NAME}, LTLIB${NAME}.
21249         Reported by Sam Steingold <sds@gnu.org>.
21250
21251 2009-06-20  Jim Meyering  <meyering@redhat.com>
21252
21253         tests: make sc_require_test_exit_idiom more generic
21254         * top/maint.mk (Exit_witness_file): New overridable variable.
21255         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
21256         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
21257
21258 2009-06-19  Jim Meyering  <meyering@redhat.com>
21259
21260         hash: reverse order of src/dst parameters in an internal interface
21261         * lib/hash.c (transfer_entries): Reverse order of parameters to
21262         put DST before SRC.  Adjust callers.
21263
21264         tests: test-hash: avoid wholesale duplication
21265         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
21266         Instead, use a loop and add a single conditional.
21267
21268         tests: test-hash: allow seed selection via a command line argument
21269         * tests/test-hash.c (get_seed): New function.
21270         (main): Use it.
21271
21272 2009-06-19  Eric Blake  <ebb9@byu.net>
21273
21274         hash: avoid memory leak on allocation failure
21275         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
21276         failure.  Factor repeated algorithm...
21277         (transfer_entries): ...into new helper routine.
21278         (hash_delete): React to hash_rehash return value.
21279
21280         hash: reduce memory pressure in hash_rehash no-op case
21281         * lib/hash.c (next_prime): Avoid overflow.
21282         (hash_initialize): Factor bucket size computation...
21283         (compute_bucket_size): ...into new helper function.
21284         (hash_rehash): Use new function and open coding to reduce memory
21285         pressure, and avoid a memory leak in USE_OBSTACK code.
21286         Reported by Jim Meyering.
21287
21288 2009-06-18  Eric Blake  <ebb9@byu.net>
21289
21290         hash: make rotation more obvious
21291         * modules/hash (Depends-on): Add bitrotate and stdint.
21292         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
21293         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
21294         (SIZE_MAX): Rely on headers for definition.
21295         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
21296         (raw_hasher): Use rotr_sz.
21297         Suggested by Jim Meyering.
21298
21299         hash: fix memory leak in last patch
21300         * lib/hash.c (hash_rehash): Avoid memory leak.
21301
21302         hash: avoid no-op rehashing
21303         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
21304
21305         hash: provide default callback functions
21306         * lib/hash.c (raw_hasher, raw_comparator): New functions.
21307         (hash_initialize): Use them as defaults.
21308         * tests/test-hash.c (main): Test this.
21309
21310         hash: minor optimization
21311         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
21312         when possible.
21313         (hash_initialize): Document this promise.
21314         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
21315         * tests/test-hash.c (hash_compare_strings): Test this.
21316
21317 2009-06-18  Bruno Haible  <bruno@clisp.org>
21318
21319         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
21320         going to be replaced anyway.
21321
21322 2009-06-18  Bruno Haible  <bruno@clisp.org>
21323
21324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
21325         in one place.
21326         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
21327         be replaced anyway.
21328
21329 2009-06-18  Eric Blake  <ebb9@byu.net>
21330
21331         hash: check for resize before insertion
21332         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
21333         threshold before insertion, so that a pathological hash_rehash
21334         that fills every bucket can still trigger another rehash.
21335
21336 2009-06-18  Jim Meyering  <meyering@redhat.com>
21337
21338         hash-tests: add a loop around the small tests
21339         * tests/test-hash.c (main): Repeat small tests with selected
21340         small initial table sizes.
21341
21342 2009-06-17  Eric Blake  <ebb9@byu.net>
21343
21344         hash: minor cleanups
21345         * lib/hash.h (hash_entry): Make opaque, by moving...
21346         * lib/hash.c (hash_entry): ...here.
21347         (hash_insert): Clarify restrictions on what can be inserted.
21348         (hash_get_next): Clarify when it is safe to remove an element
21349         during traversal.
21350         (check_tuning): Skip verification when tuning is known safe.
21351         (hash_initialize): Clarify restrictions on tuning.
21352
21353 2009-06-17  Jim Meyering  <jim@meyering.net>
21354         and Eric Blake  <ebb9@byu.net>
21355
21356         hash-tests: new module
21357         * modules/hash-tests: New file.
21358         * tests/test-hash.c: New file.
21359
21360 2009-06-17  Eric Blake  <ebb9@byu.net>
21361
21362         strstr-simple: document new module
21363         * MODULES.html.sh: Document new module.
21364
21365         strstr, strcasestr: replace on platforms with broken memchr
21366         * modules/strstr: Split into...
21367         * modules/strstr-simple: ...new module that does not care about
21368         performance, but does care about glibc bug.
21369         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21370         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21371         if platform memchr is broken, per Debian bug 521737.
21372         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21373         memchr.
21374         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21375         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21376         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21377         * modules/mountlist (Depends-on): Add strstr-simple.
21378         * modules/gen-uni-tables (Depends-on): Likewise.
21379         * modules/argz (Depends-on): Add strstr.
21380
21381 2009-06-17  Bruno Haible  <bruno@clisp.org>
21382
21383         * modules/posix_spawn-internal (Depends-on): Add errno.
21384
21385 2009-06-17  Bruno Haible  <bruno@clisp.org>
21386
21387         Define missing ESTALE on Interix 3.5.
21388         * lib/errno.in.h (ESTALE): Assign a value if missing.
21389         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21390         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21391         missing.
21392         * doc/posix-headers/errno.texi: Mention the Interix bug.
21393         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21394
21395 2009-06-15  Eric Blake  <ebb9@byu.net>
21396
21397         memchr, memchr2: add valgrind exception
21398         * lib/memchr.valgrind: New file.
21399         * lib/memchr2.valgrind: New file.
21400         * modules/memchr (Files): Distribute valgrind file.
21401         * modules/memchr2 (Files): Likewise.
21402
21403         docs: memchr is no longer obsolete
21404         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21405         * lib/string.in.h (memchr): Simplify logic.
21406
21407 2009-06-14  Jim Meyering  <meyering@redhat.com>
21408
21409         link-follow: fix the "checking..." message to not mention trailing slash
21410         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21411         never considered trailing slashes.
21412
21413 2009-06-14  Bruno Haible  <bruno@clisp.org>
21414
21415         * m4/memchr.m4: Mention also the bug on IA-64.
21416         * doc/posix-functions/memchr.texi: Likewise.
21417
21418 2009-06-12  Eric Blake  <ebb9@byu.net>
21419
21420         memchr: detect broken x86_64 and alpha implementations
21421         * modules/memchr-tests (Depends-on): Move mmap detection...
21422         * modules/memchr (Depends-on): ...here.
21423         (configure.ac): Set indicator.
21424         * lib/string.in.h (memchr): Declare replacement.
21425         * modules/string (Makefile.am): Trigger replacement.
21426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21427         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21428         bugs.
21429         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21430         * modules/getpagesize (License): Relax license.
21431
21432 2009-06-11  Bruno Haible  <bruno@clisp.org>
21433
21434         * lib/idpriv.h: Add more references.
21435
21436 2009-06-08  Bruno Haible  <bruno@clisp.org>
21437
21438         Tests for module 'idpriv-droptemp'.
21439         * modules/idpriv-droptemp-tests: New file.
21440         * tests/test-idpriv-droptemp.sh: New file.
21441         * tests/test-idpriv-droptemp.su.sh: New file.
21442         * tests/test-idpriv-droptemp.c: New file.
21443
21444         New module 'idpriv-droptemp'.
21445         * lib/idpriv-droptemp.c: New file.
21446         * modules/idpriv-droptemp: New file.
21447
21448 2009-06-08  Bruno Haible  <bruno@clisp.org>
21449
21450         Tests for module 'idpriv-drop'.
21451         * modules/idpriv-drop-tests: New file.
21452         * tests/test-idpriv-drop.sh: New file.
21453         * tests/test-idpriv-drop.su.sh: New file.
21454         * tests/test-idpriv-drop.c: New file.
21455
21456         New module 'idpriv-drop'.
21457         * lib/idpriv.h: New file.
21458         * lib-idpriv-drop.c: New file.
21459         * m4/idpriv.m4: New file.
21460         * modules/idpriv-drop: New file.
21461
21462 2009-06-08  Bruno Haible  <bruno@clisp.org>
21463
21464         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21465         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21466         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21467         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21468         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21469         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21470         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21471
21472 2009-06-08  Eric Blake  <ebb9@byu.net>
21473
21474         test-strstr: use memory fence, when possible
21475         * tests/test-strstr.c (main): Use memory fence, in order to be
21476         more likely to trigger Debian bug 521737.
21477         * modules/strstr-tests (Files): Pull in additional files.
21478
21479         memchr: no longer obsolete, for wider field testing
21480         * modules/memchr (Status, Notice): Delete, this module is no
21481         longer obsolete.
21482         * modules/vasnprintf (Depends-on): Add memchr.
21483
21484 2009-06-07  Jim Meyering  <meyering@redhat.com>
21485
21486         hash: declare some functions with the warn_unused_result attribute
21487         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21488
21489 2009-06-07  Bruno Haible  <bruno@clisp.org>
21490
21491         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21492         Reported by Eric Blake.
21493
21494 2009-06-06  Eric Blake  <ebb9@byu.net>
21495
21496         test-alignof: fix typo with long double
21497         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21498         compiler error.
21499
21500 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21501
21502         Escape non-texinfo { and }s.
21503         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21504         markup error.
21505
21506 2009-06-04  Jim Meyering  <meyering@redhat.com>
21507
21508         gitlog-to-changelog: don't infloop on an empty commit log
21509         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21510         Reported by Boris Petersen <transacid@centerim.org>.
21511
21512 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21513
21514         version-etc: extend for packagers
21515         Add three new configure options, intended for packagers:
21516           --with-packager="packager name"
21517           --with-packager-version="packager-specific version"
21518           --with-packager-bug-reports="packager bug reporting"
21519         An example with coreutils:
21520           $ ./configure \
21521             --with-packager=Gentoo \
21522             --with-packager-bug-report=http://bugs.gentoo.org/ \
21523             --with-packager-version="patchset 1.6"
21524           $ ./src/ls --version | head -n2
21525           ls (GNU coreutils) 7.1-dirty
21526           Packaged by Gentoo (patchset 1.6)
21527         Note that the bug reporting info via --help doesn't show up because
21528         coreutils uses its own custom emit_bug_reporting_address() implementation
21529         in src/system.h.  If it didn't, it'd look like:
21530           $ ./src/ls --help | tail -n4
21531           Report bugs to <bug-coreutils@gnu.org>.
21532           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21533           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21534           General help using GNU software: <http://www.gnu.org/gethelp/>.
21535         * lib/version-etc.c: Print new information, if provided.
21536         * m4/version-etc.m4: New file.
21537         * modules/version-etc (Files): Add m4/version-etc.m4.
21538         (configure.ac): Add gl_VERSION_ETC.
21539
21540 2009-05-31  Bruno Haible  <bruno@clisp.org>
21541
21542         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21543         and 'int64_t'.
21544         * modules/alignof-tests (Dependencies): Add stdint.
21545         Reported by Eric Blake.
21546
21547 2009-05-31  Bruno Haible  <bruno@clisp.org>
21548
21549         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21550         restriction due to compiler bugs.
21551         Reported by Eric Blake.
21552
21553 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21554             Bruno Haible  <bruno@clisp.org>
21555
21556         Fix test-alignof failure.
21557         * lib/alignof.h (alignof_slot): New macro.
21558         (alignof_type): New macro, with the same semantics as the previous
21559         'alignof'.
21560         (alignof): Alias to alignof_slot.
21561         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21562         check that the results are usable as constant expressions.
21563
21564 2009-05-31  Bruno Haible  <bruno@clisp.org>
21565
21566         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21567         * tests/test-memchr.c (main): Check that memchr does not read past the
21568         first occurrence of the byte.
21569         * tests/test-strstr.c (main): Update comment.
21570         Suggested by Eric Blake.
21571
21572 2009-05-30  Bruno Haible  <bruno@clisp.org>
21573
21574         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21575         detail how to use dumpbin.
21576         Reported by David Byron <dbyron@dbyron.com>.
21577
21578 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21579
21580         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21581
21582 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21583
21584         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21585
21586 2009-05-28  Bruno Haible  <bruno@clisp.org>
21587
21588         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21589         build-aux/ files.
21590
21591 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21592
21593         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21594
21595 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21596
21597         * gnulib-tool (sed_transform_main_lib_file)
21598         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21599         regexps.
21600
21601 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21602
21603         * tests/test-strstr.c: Add another self-test.
21604         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21605         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21606
21607 2009-05-23  Bruno Haible  <bruno@clisp.org>
21608
21609         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21610         change.
21611
21612 2009-05-21  Bruno Haible  <bruno@clisp.org>
21613
21614         Simplify use of mode_t varargs.
21615         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21616         uses 'mode_t' or 'int'.
21617         * lib/openat.c (openat): Likewise.
21618         * lib/open-safer.c (open_safer): Likewise.
21619         * m4/mode_t.m4: New file.
21620         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21621         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21622         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21623         * modules/open (Files): Add m4/mode_t.m4.
21624         * modules/openat (Files): Likewise.
21625         * modules/fcntl-safer (Files): Likewise.
21626         Suggested by Eric Blake.
21627
21628 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21629
21630         * doc/glibc-functions/fallocate.texi: New file.
21631         * doc/gnulib.texi: Include it.
21632
21633 2009-05-21  Eric Blake  <ebb9@byu.net>
21634             Bruno Haible  <bruno@clisp.org>
21635
21636         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21637         invocations.
21638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21639
21640 2009-05-21  Eric Blake  <ebb9@byu.net>
21641             Bruno Haible  <bruno@clisp.org>
21642
21643         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21644         include_next. Fix of 2008-11-20 commit.
21645         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21646         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
21647         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
21648         NEXT_MATH_H.
21649         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
21650         instead of NEXT_MATH_H.
21651
21652 2009-05-21  Bruno Haible  <bruno@clisp.org>
21653
21654         Avoid redefinition warnings for SIZE_MAX.
21655         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
21656         Reported by Simon Josefsson.
21657
21658 2009-05-21  Bruno Haible  <bruno@clisp.org>
21659
21660         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
21661         AC_CACHE_VAL.
21662
21663 2009-05-20  Bruno Haible  <bruno@clisp.org>
21664
21665         Make zeroptr.h work on mingw.
21666         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
21667         mprotect.
21668         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
21669         * modules/memchr2-tests (configure.ac): Likewise.
21670         * modules/memcmp-tests (configure.ac): Likewise.
21671         * modules/memmem-tests (configure.ac): Likewise.
21672         * modules/memrchr-tests (configure.ac): Likewise.
21673         Reported by Simon Josefsson.
21674
21675 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21676
21677         * tests/test-glob.c: Include string.h for strcmp prototype.
21678
21679 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21680
21681         * modules/getdelim (Depends-on): Add explicit stdint, although it
21682         was implicitly already pulled in via realloc-posix.
21683         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
21684
21685 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21686
21687         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
21688         G. Christensen" <tgc@jupiterrise.com>.
21689         * m4/sys_socket_h.m4: Check for sa_family_t.
21690         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
21691         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
21692         * tests/test-sys_socket.c: Check that sa_family_t works.
21693
21694 2009-05-18  Eric Blake  <ebb9@byu.net>
21695
21696         maint.mk: allow gnulib_dir in VPATH build
21697         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
21698
21699 2009-05-15  Jim Meyering  <meyering@redhat.com>
21700
21701         maint.mk: Give gnulib_dir a default definition.
21702         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
21703         Thus, most packages no longer need to specify this variable in cfg.mk
21704
21705 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
21706
21707         rename.m4: fix typos that would make non-mingw cross-configure fail
21708         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
21709
21710 2009-05-13  Eric Blake  <ebb9@byu.net>
21711
21712         mmap-anon: avoid out-of-order autoconf expansion
21713         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
21714         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
21715         * modules/memchr-tests (Depends-on): Add extensions.
21716         * modules/memchr2-tests (Depends-on): Add extensions.
21717         * modules/memcmp-tests (Depends-on): Add extensions.
21718         * modules/memmem-tests (Depends-on): Add extensions.
21719         * modules/memrchr-tests (Depends-on): Add extensions.
21720
21721 2009-05-13  Bruno Haible  <bruno@clisp.org>
21722
21723         Make some tests ISO C 99 compliant.
21724         * tests/zerosize-ptr.h: New file.
21725         * tests/test-memchr.c: Include zerosize-ptr.h.
21726         (main): Use a zero-size object pointer instead of NULL.
21727         * tests/test-memchr2.c: Include zerosize-ptr.h.
21728         (main): Use a zero-size object pointer instead of NULL.
21729         * tests/test-memcmp.c: Include zerosize-ptr.h.
21730         (main): Use a zero-size object pointer instead of NULL.
21731         * tests/test-memmem.c: Include zerosize-ptr.h.
21732         (main): Use a zero-size object pointer instead of NULL.
21733         * tests/test-memrchr.c: Include zerosize-ptr.h.
21734         (main): Use a zero-size object pointer instead of NULL.
21735         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
21736         m4/mmap-anon.m4.
21737         (Depends-on): Add getpagesize.
21738         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21739         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
21740         m4/mmap-anon.m4.
21741         (Depends-on): Add getpagesize.
21742         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21743         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
21744         m4/mmap-anon.m4.
21745         (Depends-on): Add getpagesize.
21746         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21747         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
21748         m4/mmap-anon.m4.
21749         (Depends-on): Add getpagesize.
21750         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21751         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
21752         m4/mmap-anon.m4.
21753         (Depends-on): Add getpagesize.
21754         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21755
21756 2009-05-12  Bruno Haible  <bruno@clisp.org>
21757
21758         Tests for module 'alignof'.
21759         * modules/alignof-tests: New file.
21760         * tests/test-alignof.c: New file.
21761
21762 2009-05-12  Bruno Haible  <bruno@clisp.org>
21763
21764         Fix alignof macro.
21765         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
21766         vendor compilers that are always correct.
21767
21768 2009-05-12  Bruno Haible  <bruno@clisp.org>
21769
21770         Make the MAP_ANONYMOUS detection work on HP-UX 11.
21771         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
21772         not whether its fully works.
21773
21774 2009-05-12  Bruno Haible  <bruno@clisp.org>
21775
21776         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
21777
21778 2009-05-12  Jim Meyering  <meyering@redhat.com>
21779
21780         * top/maint.mk: Adjust backslash alignment.
21781
21782 2009-05-11  Simon Josefsson  <simon@josefsson.org>
21783
21784         * top/maint.mk: Make $(srcdir)/build-aux configurable.
21785
21786 2009-05-11  Eric Blake  <ebb9@byu.net>
21787
21788         argp: avoid undefined behavior
21789         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
21790         macros.
21791
21792 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21793
21794         * tests/test-vc-list-files-git.sh: Do git config of user.email and
21795         user.name to prevent git commit from complaining.
21796
21797 2009-05-10  Bruno Haible  <bruno@clisp.org>
21798
21799         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
21800         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
21801         it rewrites every file name only once.
21802         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
21803
21804 2009-05-08  Bruno Haible  <bruno@clisp.org>
21805
21806         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
21807         instead of 'max'.
21808
21809 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21810
21811         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21812         sockaddr_storage test.
21813
21814 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21815
21816         * modules/sys_socket (Makefile.am): Substitute
21817         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21818         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21819         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21820         * tests/test-sys_socket.c: Check sockaddr_storage.
21821
21822 2009-05-08  Bruno Haible  <bruno@clisp.org>
21823
21824         New module 'alignof'.
21825         * lib/alignof.h: New file.
21826         * modules/alignof: New file.
21827
21828 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21829             Bruno Haible  <bruno@clisp.org>
21830
21831         Fix test-file-has-acl on FreeBSD.
21832         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21833         mask is implicitly added.
21834         * tests/test-file-has-acl.c: Include <signal.h>.
21835         (main): Terminate the test after 5 seconds.
21836         * modules/acl-tests (configure.ac): Check for alarm function.
21837
21838 2009-05-04  Bruno Haible  <bruno@clisp.org>
21839
21840         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21841         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21842         * modules/errno (configure.ac): Drop AC_REQUIRE.
21843         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21844         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21845
21846 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21847
21848         * modules/glob-tests: New module.
21849         * tests/test-glob.c: Add.
21850
21851 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21852
21853         * modules/fnmatch-tests: New module.
21854         * tests/test-fnmatch.c: Add.
21855
21856 2009-05-04  Eric Blake  <ebb9@byu.net>
21857
21858         maint: make the new no-submodule-changes rule VPATH-safe
21859         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21860
21861 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21862             Bruno Haible  <bruno@clisp.org>
21863
21864         acl: Fix infinite loop on FreeBSD.
21865         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21866         of return value from acl_get_entry.
21867         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21868         Likewise.
21869
21870 2009-05-03  Bruno Haible  <bruno@clisp.org>
21871
21872         * lib/acl-internal.h (acl_entries): Clarify return value.
21873         * lib/acl_entries.c (acl_entries): Likewise.
21874
21875 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21876
21877         Bug fix in acl module.
21878         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21879
21880 2009-05-03  Bruno Haible  <bruno@clisp.org>
21881
21882         Create gperf-generated file in the source dir, not in the build dir.
21883         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21884         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21885         * modules/unicase/locale-language (unicase/locale-languages.h):
21886         Likewise.
21887         * modules/unicase/special-casing (unicase/special-casing-table.h):
21888         Likewise.
21889         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21890         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21891         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21892         Reported by Ralf Wildenhues.
21893
21894 2009-05-03  Bruno Haible  <bruno@clisp.org>
21895
21896         * modules/fnmatch (Description, configure.ac): Taken from
21897         fnmatch-posix.
21898         * modules/fnmatch-posix: Turn into a symbolic reference to the
21899         'fnmatch' module, and deprecate.
21900         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21901
21902 2009-05-03  Bruno Haible  <bruno@clisp.org>
21903
21904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21905         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21906         Reported by Ralf Wildenhues.
21907
21908 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21909
21910         * m4/fnmatch.m4: Fix fnmatch re-define.
21911
21912 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21913
21914         priv-set: new module and tests; adapt write-any-file
21915         * lib/priv-set.c: New file.
21916         * lib/priv-set.h: New file.
21917         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21918         * lib/write-any-file.c: Simplify by using priv-set module.
21919         * m4/priv-set.m4: New file.
21920         * modules/priv-set: New file.
21921         * modules/unlinkdir: Add dependency on priv-set module.
21922         * modules/write-any-file: Likewise.
21923
21924         Tests for module 'priv-set'.
21925         * modules/priv-set-tests: New file.
21926         * tests/test-priv-set.c: New file.
21927
21928 2009-05-03  Jim Meyering  <meyering@redhat.com>
21929             Bruno Haible  <bruno@clisp.org>
21930
21931         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21932         use the converted UTF-8 variant of the name instead.
21933
21934 2009-05-03  Jim Meyering  <meyering@redhat.com>
21935
21936         tests: tighten some getdate tests
21937         * tests/test-getdate.c (main): Tighten tests: require equality,
21938         not just greater than.  Set TZ envvar to UTC0.
21939
21940 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21941
21942         getdate: correctly interpret "next monday" when run on a Monday
21943         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21944         that e.g., "next tues" (when run on a tuesday) results in a date
21945         that is one week in the future, and not today's date.
21946         I.e., add a week when the wday is the same as the current one.
21947         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21948         and earlier by Martin Bernreuther and Jan Minář.
21949         * tests/test-getdate.c (main): Check that "next DAY" is always in
21950         the future and that "last DAY" is always in the past.
21951
21952 2009-05-02  Jim Meyering  <meyering@redhat.com>
21953
21954         build: ensure that a release build fails when a submodule is unclean
21955         * top/maint.mk (no-submodule-changes): New rule.
21956         (alpha beta major): Depend on it.
21957
21958 2009-05-02  Bruno Haible  <bruno@clisp.org>
21959
21960         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21961         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21962         shell variable gl_fnmatch_required to detect which variant is
21963         requested.
21964         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21965         gl_FUNC_FNMATCH_POSIX.
21966         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21967         exclude fnmatch-posix.
21968
21969 2009-05-02  Bruno Haible  <bruno@clisp.org>
21970
21971         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21972         * modules/mbsrtowcs (License): Change to LGPLv2+.
21973         * modules/strnlen1 (License): Likewise.
21974         Reported by Simon Josefsson.
21975
21976 2009-05-02  Bruno Haible  <bruno@clisp.org>
21977
21978         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21979         "cross".
21980         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21981         gnulib-tool was called with option --source-base=lib.
21982
21983 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21984
21985         Use automake *-local hooks without commands, for extensibility.
21986         * modules/localcharset (Makefile.am): Rename install-exec-local
21987         rule to install-exec-localcharset, and make it a prerequisite of
21988         install-exec-local.  Likewise, rename the uninstall-local rule to
21989         uninstall-localcharset, and make it a prerequisite of the former.
21990
21991 2009-05-01  Bruno Haible  <bruno@clisp.org>
21992
21993         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21994         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21995         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21997         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21998         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21999         m4/locale-zh.m4, m4/codeset.m4.
22000
22001         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22002         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
22003         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22004         m4/locale-zh.m4.
22005
22006         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
22007         REPLACE_WCRTOMB if mbstate_t must be replaced.
22008         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
22009         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
22010
22011 2009-05-01  Bruno Haible  <bruno@clisp.org>
22012
22013         Avoid compiler warnings when redefining macros defined by <libintl.h>.
22014         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
22015         dngettext, dcngettext, textdomain, bindtextdomain,
22016         bind_textdomain_codeset): Undefine before redefining.
22017
22018 2009-04-30  Bruno Haible  <bruno@clisp.org>
22019
22020         Fix bug introduced on 2009-04-25.
22021         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
22022         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
22023         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
22024         is defined.
22025         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
22026         is defined.
22027         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
22028         is defined.
22029         Reported by Elbert_Pol <elbert.pol@gmail.com>.
22030
22031 2009-04-28  Bruno Haible  <bruno@clisp.org>
22032
22033         Comment tweaks.
22034         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
22035         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
22036         * lib/unicase.h (u*_casexfrm): Likewise.
22037         Reported by Paolo Bonzini.
22038
22039 2009-04-28  Bruno Haible  <bruno@clisp.org>
22040
22041         Fix a compilation error.
22042         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
22043         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22044         Reported by Jim Meyering.
22045
22046 2009-04-27  Bruno Haible  <bruno@clisp.org>
22047
22048         New module 'libunistring'.
22049         * modules/libunistring: New file.
22050         * m4/libunistring.m4: New file.
22051         * MODULES.html.sh (Unicode string functions): Add it.
22052
22053 2009-04-27  Eric Blake  <ebb9@byu.net>
22054
22055         maint.mk: allow package-specific header to provide <config.h>
22056         * top/maint.mk (sc_require_config_h): New variable.
22057         (sc_require_config_h, sc_require_config_h_first): Use it.
22058
22059 2009-04-27  Simon Josefsson  <simon@josefsson.org>
22060
22061         * top/maint.mk (sc_avoid_if_before_free): Except
22062         useless-if-before-free script.
22063
22064 2009-04-27  Eric Blake  <ebb9@byu.net>
22065
22066         maintainer-makefile: depend on all required helper scripts
22067         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
22068         useless-if-before-free.
22069         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
22070         version, rather than assuming gnulib checkout is available.
22071         Reported by Simen Josefsson.
22072
22073 2009-04-26  Bruno Haible  <bruno@clisp.org>
22074
22075         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
22076         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
22077         "../" or "..".
22078
22079 2009-04-26  Bruno Haible  <bruno@clisp.org>
22080
22081         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
22082         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
22083         AC_LIB_HAVE_LINKFLAGS.
22084
22085 2009-04-26  Bruno Haible  <bruno@clisp.org>
22086
22087         Simplify calling convention of u*_conv_from_encoding.
22088         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
22089         u32_conv_from_encoding): Expect a resultbuf argument and return the
22090         result directly as a pointer.
22091         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
22092         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
22093         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
22094         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
22095         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
22096         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22097         Update.
22098         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
22099         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
22100         * lib/vasnprintf.c (VASNPRINTF): Update.
22101         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
22102         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
22103         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
22104         * NEWS: Mention the change.
22105
22106 2009-04-26  Bruno Haible  <bruno@clisp.org>
22107
22108         Simplify calling convention of u*_conv_to_encoding.
22109         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22110         u32_conv_to_encoding): Expect a resultbuf argument and return the
22111         result directly as a pointer.
22112         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22113         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
22114         freeing scaled_offsets if mem_iconveha failed.
22115         * lib/unicase/u-casexfrm.h (FUNC): Update.
22116         * lib/uninorm/u-normxfrm.h (FUNC): Update.
22117         * lib/vasnprintf.c (VASNPRINTF): Update.
22118         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
22119         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
22120         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
22121         * NEWS: Mention the change.
22122
22123 2009-04-26  Bruno Haible  <bruno@clisp.org>
22124
22125         Avoid test failures on AIX and OSF/1.
22126         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
22127         malloc(0).
22128         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22129         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22130         Likewise.
22131         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
22132         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
22133         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
22134         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
22135         * doc/posix-functions/malloc.texi: Document the portability problem
22136         related to malloc(0).
22137
22138 2009-04-26  Bruno Haible  <bruno@clisp.org>
22139
22140         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
22141         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
22142         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
22143
22144 2009-04-25  Bruno Haible  <bruno@clisp.org>
22145
22146         Avoid link error when creating a namespace clean library.
22147         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
22148         as macro with arguments if already defined as an alias.
22149         * lib/signbitf.c (gl_signbitf): Don't undefine.
22150         * lib/signbitd.c (gl_signbitd): Don't undefine.
22151         * lib/signbitl.c (gl_signbitl): Don't undefine.
22152
22153 2009-04-25  Jim Meyering  <meyering@redhat.com>
22154
22155         vc-list-files: fix another quoting bug
22156         * build-aux/vc-list-files: Avoid sed backslash expansion
22157         of pathological directory names.
22158
22159 2009-04-25  Eric Blake  <ebb9@byu.net>
22160
22161         vc-list-files: fix shell quoting error
22162         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
22163         timestamp.
22164
22165 2009-04-25  Jim Meyering  <meyering@redhat.com>
22166
22167         vc-list-files: restore lost functionality with subdir argument
22168         * build-aux/vc-list-files: When given a non-"." sub-directory
22169         argument, substitute the $dir/ prefix back onto each resulting name.
22170         Otherwise, coreutils' root_tests check would fail.
22171
22172 2009-04-24  Eric Blake  <ebb9@byu.net>
22173
22174         vc-list-files: ignore git symlinks
22175         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
22176         than ls-files, to ignore git symlinks.
22177
22178         maint.mk: import improvements from m4
22179         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
22180         (move_if_change): Delete unused macro.
22181         (news-date-check, vc-diff-check): Support VPATH builds.
22182         (announcement): Likewise.  Split --bootstrap-tools list...
22183         (boostrap-tools): ...into separate list, which can be overridden
22184         in cfg.mk.
22185         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
22186         requiring dependency on useless-if-before-free module.
22187         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
22188         Support VPATH builds.
22189
22190 2009-04-24  Jim Meyering  <meyering@redhat.com>
22191
22192         maint.mk: remove coreutils-specific rules and variables
22193         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
22194         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
22195         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
22196
22197         maint.mk: remove obsolete rule
22198         * top/maint.mk (rel-check): Remove rule.
22199         (WGET, WGETFLAGS): Remove now-unused variables.
22200
22201 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22202
22203         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
22204         consistency.
22205
22206         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
22207         '$(PATH_SEPARATOR)' instead of ':'.
22208
22209 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22210
22211         * lib/getopt1.c (main): Use 'const' for static array.
22212
22213 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22214
22215         * top/maint.mk: Sync with coreutils.
22216         * NEWS: Explain incompatibilities.
22217
22218 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22219             Bruno Haible  <bruno@clisp.org>
22220
22221         Fix cross-compilation results.
22222         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
22223         statement, as third argument of AC_TRY_RUN.
22224         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22225         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22226         Likewise.
22227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22228         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22229         Likewise.
22230         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22231         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
22232         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
22233
22234 2009-04-20  Bruno Haible  <bruno@clisp.org>
22235
22236         Avoid test failure on mingw.
22237         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
22238
22239 2009-04-20  Bruno Haible  <bruno@clisp.org>
22240
22241         Avoid compilation error on mingw.
22242         * modules/localename-tests (Depends-on): Add locale.
22243
22244 2009-04-19  Bruno Haible  <bruno@clisp.org>
22245
22246         Support for building a shared library on Windows platforms.
22247         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
22248         (main): Test the presence of UNINORM_NFC here.
22249         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
22250         (main): Test the presence of UNINORM_NFD here.
22251         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
22252         (main): Test the presence of UNINORM_NFKC here.
22253         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
22254         (main): Test the presence of UNINORM_NFKD here.
22255
22256 2009-04-19  Bruno Haible  <bruno@clisp.org>
22257
22258         Avoid a compiler warning.
22259         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
22260         Change type of variable 'sequence'.
22261
22262 2009-04-19  Bruno Haible  <bruno@clisp.org>
22263
22264         * modules/configmake (Makefile.am): When the contents of configmake.h
22265         does not change, arrange to preserve its modification time.
22266
22267 2009-04-17  Simon Josefsson  <simon@josefsson.org>
22268
22269         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
22270         gettext domain.
22271
22272 2009-04-16  Jim Meyering  <meyering@redhat.com>
22273
22274         useless-if-before-free: improve conversion code
22275         * build-aux/useless-if-before-free: Adjust code-in-comment to match
22276         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
22277
22278 2009-04-14  Bruno Haible  <bruno@clisp.org>
22279
22280         * modules/fcntl (Depends-on): Add extensions.
22281         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
22282
22283 2009-04-12  Ben Pfaff  <blp@gnu.org>
22284
22285         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
22286         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
22287
22288 2009-03-20  Ben Pfaff  <blp@gnu.org>
22289
22290         Make rename replace existing destinations on Windows.
22291         * m4/rename.m4: Add test for Mingw.
22292         * lib/rename.c: Add rename replacement that uses MoveFileEx with
22293         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
22294         * doc/posix-functions/rename.texi: Document.
22295
22296 2009-04-10  Bruno Haible  <bruno@clisp.org>
22297
22298         New include file "iconveh.h".
22299         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
22300         * lib/striconveh.h: Include it.
22301         (enum iconv_ilseq_handler): Remove definition.
22302         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
22303         striconveh.h.
22304         * lib/striconveha.c: Include striconveh.h.
22305         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
22306         * modules/striconveh (Files): Add lib/iconveh.h.
22307         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
22308         lib/striconveh.h.
22309
22310 2009-04-10  Bruno Haible  <bruno@clisp.org>
22311
22312         * lib/uniconv.h: Update comment.
22313
22314 2009-04-10  Bruno Haible  <bruno@clisp.org>
22315
22316         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
22317         always.
22318         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22319         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22320         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22321         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
22322         "unistring-notinline.h", so that the function gets defined always.
22323         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22324         * lib/unistr/u8-uctomb.c: Likewise.
22325         * lib/unistr/u16-mbtouc.c: Likewise.
22326         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22327         * lib/unistr/u16-uctomb.c: Likewise.
22328         * lib/unistr/u32-mbtouc.c: Likewise.
22329         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22330         * lib/unistr/u32-uctomb.c: Likewise.
22331
22332 2009-04-10  Bruno Haible  <bruno@clisp.org>
22333
22334         Mark 'utime' obsolete.
22335         * modules/utime (Status, Notice): New sections.
22336         Suggested by Jim Meyering.
22337
22338         Fix cross-compile guess for utime test.
22339         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
22340         autoconf.
22341         * doc/posix-functions/utime.texi: Give more precisions.
22342         Reported by Jan <ipif@ymail.com>.
22343
22344 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
22345
22346         filevercmp: correct today's change
22347         * lib/filevercmp.c: Also handle coreutils' test inputs.
22348         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
22349
22350         Fix regression in 'filevercmp' module. Thanks Sven Joachim
22351         for reporting it.
22352         * lib/filevercmp.c: Special handle for "", "." and "..".
22353         * tests/test-filevercmp.c: Enlarge the set suite.
22354
22355 2009-04-07  Jim Meyering  <meyering@redhat.com>
22356
22357         useless-if-before-free: show how to remove braced useless free, too
22358         * build-aux/useless-if-before-free: still only in a comment, though.
22359
22360 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
22361
22362         maint.mk: import changes to syntax-check macros from coreutils
22363         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
22364         Use them in the relevant macros.
22365
22366 2009-04-06  Bruno Haible  <bruno@clisp.org>
22367
22368         Fix unportable use of bit-fields.
22369         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22370         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22371         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22372
22373 2009-04-06  Bruno Haible  <bruno@clisp.org>
22374
22375         Avoid test failures on AIX and OSF/1.
22376         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22377         that malloc(0) = NULL.
22378         * tests/unicase/test-u8-tolower.c (check): Likewise.
22379         * tests/unicase/test-u8-totitle.c (check): Likewise.
22380         * tests/unicase/test-u8-toupper.c (check): Likewise.
22381         * tests/unicase/test-u16-casefold.c (check): Likewise.
22382         * tests/unicase/test-u16-tolower.c (check): Likewise.
22383         * tests/unicase/test-u16-totitle.c (check): Likewise.
22384         * tests/unicase/test-u16-toupper.c (check): Likewise.
22385         * tests/unicase/test-u32-casefold.c (check): Likewise.
22386         * tests/unicase/test-u32-tolower.c (check): Likewise.
22387         * tests/unicase/test-u32-totitle.c (check): Likewise.
22388         * tests/unicase/test-u32-toupper.c (check): Likewise.
22389         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22390         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22391         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22392         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22393         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22394         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22395         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22396         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22397         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22398         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22399         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22400         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22401
22402 2009-04-05  Bruno Haible  <bruno@clisp.org>
22403
22404         Work around an autoconf limitation.
22405         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22406         comment line if it would be longer than 3 KB.
22407
22408 2009-04-05  Bruno Haible  <bruno@clisp.org>
22409
22410         Avoid test failure with libiconv-1.13.
22411         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22412         of the expected test results.
22413
22414 2009-04-05  Bruno Haible  <bruno@clisp.org>
22415
22416         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22417         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22418         that it should be installed.
22419
22420 2009-04-05  Bruno Haible  <bruno@clisp.org>
22421
22422         * gnulib-tool: New option --copy-file.
22423         (func_usage): Document it.
22424         (func_dest_tmpfilename): Moved out of func_import.
22425         (func_add_file, func_update_file): New functions, extracted from
22426         func_import.
22427         (func_import): Update.
22428
22429 2009-04-05  Karl Berry  <karl@gnu.org>
22430
22431         * README: prominently mention gnulib-tool.
22432         Rearrange sections so getting the code is near the top.
22433
22434 2009-04-05  Bruno Haible  <bruno@clisp.org>
22435
22436         * lib/unicase.h: Mention u*_cmp2.
22437         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22438         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22439         * lib/unicase/ulc-casecmp.c: Likewise.
22440         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22441         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22442         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22443         unistr/u8-cmp.
22444         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22445         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22446         unistr/u16-cmp.
22447         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22448         unistr/u32-cmp.
22449
22450         * lib/uninorm.h: Mention u*_cmp2.
22451         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22452         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22453         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22454         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22455         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22456         unistr/u8-cmp.
22457         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22458         unistr/u16-cmp.
22459         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22460         unistr/u32-cmp.
22461
22462         New module 'unistr/u32-cmp2'.
22463         * lib/unistr/u32-cmp2.c: New file.
22464         * modules/unistr/u32-cmp2: New file.
22465
22466         New module 'unistr/u16-cmp2'.
22467         * lib/unistr/u16-cmp2.c: New file.
22468         * modules/unistr/u16-cmp2: New file.
22469
22470         New module 'unistr/u8-cmp2'.
22471         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22472         * lib/unistr/u8-cmp2.c: New file.
22473         * lib/unistr/u-cmp2.h: New file.
22474         * modules/unistr/u8-cmp2: New file.
22475
22476 2009-04-05  Bruno Haible  <bruno@clisp.org>
22477
22478         * lib/unictype.h (uc_property_is_valid): New macro.
22479         * tests/unictype/test-pr_byname.c (main): Use it.
22480
22481         * lib/unistr.h: Doc fixes.
22482         * lib/uniconv.h: Doc fixes.
22483         * lib/unictype.h: Doc fixes.
22484
22485 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22486
22487         Port coreutils 7.2 to Solaris 8.
22488
22489         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22490         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22491         for Solaris 8.  This is a bit of a hack, as it means it's the
22492         caller's responsibility to add -lnsl if needed, but most likely it
22493         won't be needed since only getaddrinfo uses this and getaddrinfo
22494         isn't needed on Solaris 8.
22495
22496         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22497         problem to Solaris 8 encountered with coreutils 7.2, which
22498         resulted in a message "fnmatch.c:292: warning: passing argument 4
22499         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22500         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22501
22502 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22503
22504         * m4/ld-version-script.m4: Add FIXME comment.
22505
22506 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22507
22508         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22509         SOVERSION variable.
22510
22511 2009-04-02  Bruno Haible  <bruno@clisp.org>
22512
22513         * Makefile (info, html, dvi, pdf): Combine the rules.
22514         Suggested by Jim Meyering.
22515
22516 2009-04-01  Bruno Haible  <bruno@clisp.org>
22517
22518         * Makefile (info, html, dvi, pdf): New targets.
22519         Reported by Reuben Thomas <rrt@sc3d.org>.
22520
22521 2009-04-01  Bruno Haible  <bruno@clisp.org>
22522
22523         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22524         can be put into PATH.
22525         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22526
22527 2009-04-01  Bruno Haible  <bruno@clisp.org>
22528
22529         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22530
22531 2009-04-01  Bruno Haible  <bruno@clisp.org>
22532
22533         Rename module 'visibility'.
22534         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22535         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22536         * doc/gnulib.texi: Update.
22537         * MODULES.html.sh (Misc): Update.
22538         * NEWS: Mention the change.
22539
22540 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22541
22542         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22543         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22544         Eric Blake <ebb9@byu.net> for review.
22545         * MODULES.html.sh: Add lib-msvc-compat.
22546         * doc/gnulib.texi: Link to new section.
22547         * m4/ld-output-def.m4: New file.
22548         * doc/ld-output-def.texi: New file.
22549
22550 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22551
22552         Rename ld-version-script to lib-symbol-versions.  Suggested by
22553         Bruno Haible <bruno@clisp.org>.
22554         * modules/ld-version-script: Renamed to lib-symbol-versions.
22555         * doc/ld-version-script.texi: Fix module name.
22556         * MODULES.html.sh: Add lib-symbol-versions.
22557
22558 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22559
22560         * modules/u64-tests: New file.
22561         * tests/test-u64.c: New file.
22562
22563 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22564
22565         * MODULES.html.sh: Mention u64.
22566         * modules/u64: New module.
22567         * modules/crypto/sha512: Depend on u64 module instead of providing
22568         u64.h.
22569
22570 2009-03-27  Eric Blake  <ebb9@byu.net>
22571
22572         test-strerror: make debugging EAI_SYSTEM easier
22573         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22574         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22575         failure was EAI_SYSTEM.
22576
22577 2009-03-25  Bruno Haible  <bruno@clisp.org>
22578
22579         Fix a problem with --enable-relocatable on Solaris 7.
22580         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22581         since 2008-02-24.
22582
22583 2009-03-25  Eric Blake  <ebb9@byu.net>
22584
22585         test-sockets: avoid gcc warning
22586         * tests/test-sockets.c (main): Silence compiler warning.
22587
22588 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22589
22590         New modules nproc, pthread, contributed by Glen Lenker.
22591
22592         * MODULES.html.sh: Add pthread, nproc.
22593         * lib/nproc.c: New file.
22594         * lib/nproc.h: New file.
22595         * lib/pthread.in.h: New file.
22596         * m4/pthread.m4: New file.
22597         * modules/nproc: New file.
22598         * modules/pthread: New file.
22599
22600 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22601
22602         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22603         New variable.
22604
22605 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22606
22607         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22608         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22609         * tests/test-filevercmp.c: Add tests for backup suffixes.
22610
22611 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22612
22613         * modules/stdlib (Depends-on): Add stdint, needed when defining
22614         struct random_data on, for example, HP-UX 10.20.  Reported by
22615         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22616
22617 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22618
22619         * lib/readline.c (readline): Call fflush on stdout after printing
22620         prompt.
22621
22622 2009-03-20  Bruno Haible  <bruno@clisp.org>
22623
22624         Remove dependency from 'close' module to -lws2_32 on native Windows.
22625         * lib/close-hook.h: New file.
22626         * lib/close-hook.c: New file.
22627         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22628         w32sock.h.
22629         (_gl_close_fd_maybe_socket): Remove function.
22630         (rpl_close): Invoke execute_all_close_hooks instead of
22631         _gl_close_fd_maybe_socket.
22632         * lib/sockets.c: Include close-hook.h, w32sock.h.
22633         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22634         (close_sockets_hook): New variable.
22635         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22636         (gl_sockets_cleanup): Unregister it.
22637         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22638         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22639         * modules/close-hook: New file.
22640         * modules/close (Files): Remove lib/w32sock.h.
22641         (Depends-on): Add close-hook.
22642         (Link): Remove section.
22643         * modules/sockets (Files): Add lib/w32sock.h.
22644         (Depends-on): Add close-hook.
22645         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22646         invocation.
22647         * NEWS: Mention that LIB_CLOSE is gone.
22648
22649 2009-03-23  Eric Blake  <ebb9@byu.net>
22650
22651         signal-tests: test previous patch
22652         * tests/test-signal.c: New file.
22653         * modules/signal-tests: Likewise.
22654
22655         signal.h: always support 'volatile sig_atomic_t'
22656         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
22657         (gl_SIGNAL_H_DEFAULTS): Add a default.
22658         * modules/signal (Makefile.am): Substitute if needed.
22659         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
22660         users can blindly add volatile.
22661         * doc/posix-headers/signal.texi (signal.h): Document it.
22662         Reported by Matthew Woehlke.
22663
22664 2009-03-23  Jim Meyering  <meyering@redhat.com>
22665
22666         pathmax: PATH_MAX: use pathconf only when available
22667         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
22668         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
22669         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
22670         This avoids a link failure in a PSP cross-compilation environment
22671         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
22672
22673         * lib/vasnprintf.c (divide): Fix typo in comment.
22674
22675 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22676
22677         * gnulib-tool (func_filter_filelist): Fix comment.
22678
22679 2009-03-20  Bruno Haible  <bruno@clisp.org>
22680
22681         Make sockets.h self-contained.
22682         * lib/sockets.c: Include sockets.h first.
22683         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
22684
22685 2009-03-19  Eric Blake  <ebb9@byu.net>
22686
22687         doc: mention more functions added in cygwin 1.7.0
22688         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
22689         addition.
22690         * doc/posix-functions/log2f.texi: Likewise.
22691
22692 2009-03-19  Jim Meyering  <meyering@redhat.com>
22693
22694         fsusage: avoid syntax error due to statement-before-declaration
22695         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22696         after all declarations.  Reported by Matthew Woehlke in
22697         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
22698
22699 2009-03-18  Eric Blake  <ebb9@byu.net>
22700
22701         build-aux/compile: sync from automake
22702         * build-aux/compile: New file, from automake.
22703         * config/srclist.txt: Mention build-aux/compile.
22704
22705 2009-03-17  Bruno Haible  <bruno@clisp.org>
22706
22707         * lib/git-merge-changelog.c: Fix typo in comment.
22708         Reported by Reuben Thomas <rrt@sc3d.org>.
22709
22710 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
22711
22712         * m4/regex.m4: update and improve help for
22713         --without-included-regex.
22714
22715 2009-03-17  Simon Josefsson  <simon@josefsson.org>
22716
22717         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
22718         failure on missing include files.
22719
22720 2009-03-17  Eric Blake  <ebb9@byu.net>
22721
22722         doc: mention more functions added in cygwin 1.7.0
22723         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
22724         addition.
22725         * doc/posix-functions/fwscanf.texi: Likewise.
22726         * doc/posix-functions/swprintf.texi: Likewise.
22727         * doc/posix-functions/swscanf.texi: Likewise.
22728         * doc/posix-functions/vfwprintf.texi: Likewise.
22729         * doc/posix-functions/vfwscanf.texi: Likewise.
22730         * doc/posix-functions/vswprintf.texi: Likewise.
22731         * doc/posix-functions/vswscanf.texi: Likewise.
22732         * doc/posix-functions/vwprintf.texi: Likewise.
22733         * doc/posix-functions/vwscanf.texi: Likewise.
22734         * doc/posix-functions/wcscasecmp.texi: Likewise.
22735         * doc/posix-functions/wcsdup.texi: Likewise.
22736         * doc/posix-functions/wcsftime.texi: Likewise.
22737         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22738         * doc/posix-functions/wprintf.texi: Likewise.
22739         * doc/posix-functions/wscanf.texi: Likewise.
22740         * doc/glibc-functions/gethostbyname2.texi: Likewise.
22741
22742 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22743
22744         maint.mk: really add $(AM_MAKEFLAGS)
22745         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
22746         was inadvertently omitted in the last commit.
22747         Spotted by Bruno Haible.
22748
22749         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
22750         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
22751         $(AM_MAKEFLAGS)' rather than plain `make'.
22752
22753         gnulib-tool: execute $MAKE not make
22754         * gnulib-tool: Default $MAKE to 'make'.
22755         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
22756         than make.  Initialize $MAKE in the do-autobuild script.
22757
22758         gnulib-tool: use $MAKE not make in generated files
22759         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
22760         make, in generated files.  Initialize $MAKE in the do-autobuild
22761         script.
22762
22763         * top/GNUmakefile (_have-git-version-gen): Fix typo.
22764
22765         GNUmakefile: disable parallelism only for multiple, recursive targets
22766         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
22767         additions in the Makefile.
22768         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
22769         by Automake.
22770         (.NOTPARALLEL): Only disable parallel builds if multiple targets
22771         are listed on the command line and at least one of them is
22772         listed in $(ALL_RECURSIVE_TARGETS).
22773
22774 2009-03-14  Bruno Haible  <bruno@clisp.org>
22775
22776         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
22777         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
22778         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
22779         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
22780         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
22781         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
22782         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
22783         unistr/u8-uctomb.
22784         * modules/unistr/u8-strchr (Depends-on): Likewise.
22785         * modules/unistr/u8-strrchr (Depends-on): Likewise.
22786         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
22787         unistr/u16-uctomb.
22788         * modules/unistr/u16-strchr (Depends-on): Likewise.
22789         * modules/unistr/u16-strrchr (Depends-on): Likewise.
22790
22791 2009-03-12  Bruno Haible  <bruno@clisp.org>
22792
22793         Work around select() bug on Interix 3.5.
22794         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
22795         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
22796         * m4/select.m4: New file.
22797         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
22798         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
22799         * modules/select (Files): Add m4/select.m4.
22800         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
22801         * modules/nanosleep (Depends-on): Add select.
22802         * modules/poll (Depends-on): Likewise.
22803         * doc/posix-functions/select.texi: Mention the Interix bug.
22804         Reported by Markus Duft <mduft@gentoo.org>.
22805
22806         * lib/select.c: Renamed from lib/winsock-select.c.
22807         * modules/select (Files): Add lib/select.c, remove
22808         lib/winsock-select.c.
22809         (configure.ac): Update.
22810
22811 2009-03-12  Jim Meyering  <meyering@redhat.com>
22812
22813         avoid gcc warnings about unused macro definitions
22814         * lib/readtokens.c (STREQ): Remove unused definition.
22815         * lib/xmalloc.c (SIZE_MAX): Likewise.
22816         * lib/openat-die.c (N_): Likewise.
22817         * lib/mountlist.c (SIZE_MAX): Remove definition.
22818         Instead, include <stdint.h>.
22819         * lib/readutmp.c: Likewise.
22820         * modules/readutmp (Depends-on): Add stdint.
22821         * modules/mountlist (Depends-on): Add stdint.
22822         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22823
22824 2009-03-10  Bruno Haible  <bruno@clisp.org>
22825
22826         Tests for module 'mbmemcasecoll'.
22827         * modules/mbmemcasecoll-tests: New file.
22828         * tests/test-mbmemcasecoll1.sh: New file.
22829         * tests/test-mbmemcasecoll2.sh: New file.
22830         * tests/test-mbmemcasecoll3.sh: New file.
22831         * tests/test-mbmemcasecoll.c: New file.
22832
22833         New module 'mbmemcasecoll'.
22834         * lib/mbmemcasecoll.h: New file.
22835         * lib/mbmemcasecoll.c: New file.
22836         * modules/mbmemcasecoll: New file.
22837
22838         * tests/test-mbmemcasecmp.h: New file, extracted from
22839         tests/test-mbmemcasecmp.c.
22840         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22841         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22842         (main): Update.
22843         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22844
22845 2009-03-09  Bruno Haible  <bruno@clisp.org>
22846
22847         Tests for module 'mbmemcasecmp'.
22848         * modules/mbmemcasecmp-tests: New file.
22849         * tests/test-mbmemcasecmp1.sh: New file.
22850         * tests/test-mbmemcasecmp2.sh: New file.
22851         * tests/test-mbmemcasecmp3.sh: New file.
22852         * tests/test-mbmemcasecmp.c: New file.
22853
22854         New module 'mbmemcasecmp'.
22855         * lib/mbmemcasecmp.h: New file.
22856         * lib/mbmemcasecmp.c: New file.
22857         * modules/mbmemcasecmp: New file.
22858
22859 2009-03-09  Bruno Haible  <bruno@clisp.org>
22860
22861         Tests for module 'unicase/ulc-casecoll'.
22862         * modules/unicase/ulc-casecoll-tests: New file.
22863         * tests/unicase/test-ulc-casecoll1.sh: New file.
22864         * tests/unicase/test-ulc-casecoll2.sh: New file.
22865         * tests/unicase/test-ulc-casecoll.c: New file.
22866
22867         New module 'unicase/ulc-casecoll'.
22868         * lib/unicase.h (ulc_casecoll): New declaration.
22869         * lib/unicase/ulc-casecoll.c: New file.
22870         * modules/unicase/ulc-casecoll: New file.
22871
22872         New module 'unicase/ulc-casexfrm'.
22873         * lib/unicase.h (ulc_casexfrm): New declaration.
22874         * lib/unicase/ulc-casexfrm.c: New file.
22875         * modules/unicase/ulc-casexfrm: New file.
22876
22877 2009-03-09  Bruno Haible  <bruno@clisp.org>
22878
22879         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22880         invocations.
22881
22882         * m4/mbscasecmp.m4: Remove file.
22883         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22884         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22885
22886         * m4/mbscasestr.m4: Remove file.
22887         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22888         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22889
22890         * m4/mbschr.m4: Remove file.
22891         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22892         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22893
22894         * m4/mbscspn.m4: Remove file.
22895         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22896         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22897
22898         * m4/mbslen.m4: Remove file.
22899         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22900         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22901
22902         * m4/mbsncasecmp.m4: Remove file.
22903         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22904         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22905
22906         * m4/mbsnlen.m4: Remove file.
22907         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22908         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22909
22910         * m4/mbspbrk.m4: Remove file.
22911         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22912         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22913
22914         * m4/mbspcasecmp.m4: Remove file.
22915         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22916         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22917
22918         * m4/mbsrchr.m4: Remove file.
22919         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22920         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22921
22922         * m4/mbssep.m4: Remove file.
22923         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22924         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22925
22926         * m4/mbsspn.m4: Remove file.
22927         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22928         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22929
22930         * m4/mbsstr.m4: Remove file.
22931         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22932         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22933
22934         * m4/mbstok_r.m4: Remove file.
22935         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22936         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22937
22938         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22939
22940         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22941         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22942
22943         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22944
22945 2009-03-08  Bruno Haible  <bruno@clisp.org>
22946
22947         Tests for module 'unicase/ulc-casecmp'.
22948         * modules/unicase/ulc-casecmp-tests: New file.
22949         * tests/unicase/test-ulc-casecmp1.sh: New file.
22950         * tests/unicase/test-ulc-casecmp2.sh: New file.
22951         * tests/unicase/test-ulc-casecmp.c: New file.
22952
22953         New module 'unicase/ulc-casecmp'.
22954         * lib/unicase.h (ulc_casecmp): New declaration.
22955         * lib/unicase/ulc-casecmp.c: New file.
22956         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22957         'const SRC_UNIT *'.
22958         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22959         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22960         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22961         * modules/unicase/ulc-casecmp: New file.
22962
22963         Tests for module 'unicase/u32-is-cased'.
22964         * modules/unicase/u32-is-cased-tests: New file.
22965         * tests/unicase/test-u32-is-cased.c: New file.
22966
22967         Tests for module 'unicase/u16-is-cased'.
22968         * modules/unicase/u16-is-cased-tests: New file.
22969         * tests/unicase/test-u16-is-cased.c: New file.
22970
22971         Tests for module 'unicase/u8-is-cased'.
22972         * modules/unicase/u8-is-cased-tests: New file.
22973         * tests/unicase/test-u8-is-cased.c: New file.
22974         * tests/unicase/test-is-cased.h: New file.
22975
22976         New module 'unicase/u32-is-cased'.
22977         * lib/unicase/u32-is-cased.c: New file.
22978         * modules/unicase/u32-is-cased: New file.
22979
22980         New module 'unicase/u16-is-cased'.
22981         * lib/unicase/u16-is-cased.c: New file.
22982         * modules/unicase/u16-is-cased: New file.
22983
22984         New module 'unicase/u8-is-cased'.
22985         * lib/unicase/u8-is-cased.c: New file.
22986         * lib/unicase/u-is-cased.h: New file.
22987         * modules/unicase/u8-is-cased: New file.
22988
22989         Tests for module 'unicase/u32-is-casefolded'.
22990         * modules/unicase/u32-is-casefolded-tests: New file.
22991         * tests/unicase/test-u32-is-casefolded.c: New file.
22992
22993         Tests for module 'unicase/u16-is-casefolded'.
22994         * modules/unicase/u16-is-casefolded-tests: New file.
22995         * tests/unicase/test-u16-is-casefolded.c: New file.
22996
22997         Tests for module 'unicase/u8-is-casefolded'.
22998         * modules/unicase/u8-is-casefolded-tests: New file.
22999         * tests/unicase/test-u8-is-casefolded.c: New file.
23000         * tests/unicase/test-is-casefolded.h: New file.
23001
23002         New module 'unicase/u32-is-casefolded'.
23003         * lib/unicase/u32-is-casefolded.c: New file.
23004         * modules/unicase/u32-is-casefolded: New file.
23005
23006         New module 'unicase/u16-is-casefolded'.
23007         * lib/unicase/u16-is-casefolded.c: New file.
23008         * modules/unicase/u16-is-casefolded: New file.
23009
23010         New module 'unicase/u8-is-casefolded'.
23011         * lib/unicase/u8-is-casefolded.c: New file.
23012         * modules/unicase/u8-is-casefolded: New file.
23013
23014         Tests for module 'unicase/u32-is-titlecase'.
23015         * modules/unicase/u32-is-titlecase-tests: New file.
23016         * tests/unicase/test-u32-is-titlecase.c: New file.
23017
23018         Tests for module 'unicase/u16-is-titlecase'.
23019         * modules/unicase/u16-is-titlecase-tests: New file.
23020         * tests/unicase/test-u16-is-titlecase.c: New file.
23021
23022         Tests for module 'unicase/u8-is-titlecase'.
23023         * modules/unicase/u8-is-titlecase-tests: New file.
23024         * tests/unicase/test-u8-is-titlecase.c: New file.
23025         * tests/unicase/test-is-titlecase.h: New file.
23026
23027         New module 'unicase/u32-is-titlecase'.
23028         * lib/unicase/u32-is-titlecase.c: New file.
23029         * modules/unicase/u32-is-titlecase: New file.
23030
23031         New module 'unicase/u16-is-titlecase'.
23032         * lib/unicase/u16-is-titlecase.c: New file.
23033         * modules/unicase/u16-is-titlecase: New file.
23034
23035         New module 'unicase/u8-is-titlecase'.
23036         * lib/unicase/u8-is-titlecase.c: New file.
23037         * modules/unicase/u8-is-titlecase: New file.
23038
23039         Tests for module 'unicase/u32-is-lowercase'.
23040         * modules/unicase/u32-is-lowercase-tests: New file.
23041         * tests/unicase/test-u32-is-lowercase.c: New file.
23042
23043         Tests for module 'unicase/u16-is-lowercase'.
23044         * modules/unicase/u16-is-lowercase-tests: New file.
23045         * tests/unicase/test-u16-is-lowercase.c: New file.
23046
23047         Tests for module 'unicase/u8-is-lowercase'.
23048         * modules/unicase/u8-is-lowercase-tests: New file.
23049         * tests/unicase/test-u8-is-lowercase.c: New file.
23050         * tests/unicase/test-is-lowercase.h: New file.
23051
23052         New module 'unicase/u32-is-lowercase'.
23053         * lib/unicase/u32-is-lowercase.c: New file.
23054         * modules/unicase/u32-is-lowercase: New file.
23055
23056         New module 'unicase/u16-is-lowercase'.
23057         * lib/unicase/u16-is-lowercase.c: New file.
23058         * modules/unicase/u16-is-lowercase: New file.
23059
23060         New module 'unicase/u8-is-lowercase'.
23061         * lib/unicase/u8-is-lowercase.c: New file.
23062         * modules/unicase/u8-is-lowercase: New file.
23063
23064         Tests for module 'unicase/u32-is-uppercase'.
23065         * modules/unicase/u32-is-uppercase-tests: New file.
23066         * tests/unicase/test-u32-is-uppercase.c: New file.
23067
23068         Tests for module 'unicase/u16-is-uppercase'.
23069         * modules/unicase/u16-is-uppercase-tests: New file.
23070         * tests/unicase/test-u16-is-uppercase.c: New file.
23071
23072         Tests for module 'unicase/u8-is-uppercase'.
23073         * modules/unicase/u8-is-uppercase-tests: New file.
23074         * tests/unicase/test-u8-is-uppercase.c: New file.
23075         * tests/unicase/test-is-uppercase.h: New file.
23076
23077         New module 'unicase/u32-is-uppercase'.
23078         * lib/unicase/u32-is-uppercase.c: New file.
23079         * modules/unicase/u32-is-uppercase: New file.
23080
23081         New module 'unicase/u16-is-uppercase'.
23082         * lib/unicase/u16-is-uppercase.c: New file.
23083         * modules/unicase/u16-is-uppercase: New file.
23084
23085         New module 'unicase/u8-is-uppercase'.
23086         * lib/unicase/u8-is-uppercase.c: New file.
23087         * modules/unicase/u8-is-uppercase: New file.
23088
23089         New module 'unicase/u32-is-invariant'.
23090         * lib/unicase/u32-is-invariant.c: New file.
23091         * modules/unicase/u32-is-invariant: New file.
23092
23093         New module 'unicase/u16-is-invariant'.
23094         * lib/unicase/u16-is-invariant.c: New file.
23095         * modules/unicase/u16-is-invariant: New file.
23096
23097         New module 'unicase/u8-is-invariant'.
23098         * lib/unicase/u8-is-invariant.c: New file.
23099         * lib/unicase/invariant.h: New file.
23100         * lib/unicase/u-is-invariant.h: New file.
23101         * modules/unicase/u8-is-invariant: New file.
23102
23103         Tests for module 'unicase/u32-casecoll'.
23104         * modules/unicase/u32-casecoll-tests: New file.
23105         * tests/unicase/test-u32-casecoll.c: New file.
23106
23107         Tests for module 'unicase/u16-casecoll'.
23108         * modules/unicase/u16-casecoll-tests: New file.
23109         * tests/unicase/test-u16-casecoll.c: New file.
23110
23111         Tests for module 'unicase/u8-casecoll'.
23112         * modules/unicase/u8-casecoll-tests: New file.
23113         * tests/unicase/test-u8-casecoll.c: New file.
23114
23115         New module 'unicase/u32-casecoll'.
23116         * lib/unicase/u32-casecoll.c: New file.
23117         * modules/unicase/u32-casecoll: New file.
23118
23119         New module 'unicase/u16-casecoll'.
23120         * lib/unicase/u16-casecoll.c: New file.
23121         * modules/unicase/u16-casecoll: New file.
23122
23123         New module 'unicase/u8-casecoll'.
23124         * lib/unicase/u8-casecoll.c: New file.
23125         * lib/unicase/u-casecoll.h: New file.
23126         * modules/unicase/u8-casecoll: New file.
23127
23128         New module 'unicase/u32-casexfrm'.
23129         * lib/unicase/u32-casexfrm.c: New file.
23130         * modules/unicase/u32-casexfrm: New file.
23131
23132         New module 'unicase/u16-casexfrm'.
23133         * lib/unicase/u16-casexfrm.c: New file.
23134         * modules/unicase/u16-casexfrm: New file.
23135
23136         New module 'unicase/u8-casexfrm'.
23137         * lib/unicase/u8-casexfrm.c: New file.
23138         * lib/unicase/u-casexfrm.h: New file.
23139         * modules/unicase/u8-casexfrm: New file.
23140
23141         Tests for module 'unicase/u32-casecmp'.
23142         * modules/unicase/u32-casecmp-tests: New file.
23143         * tests/unicase/test-u32-casecmp.c: New file.
23144
23145         Tests for module 'unicase/u16-casecmp'.
23146         * modules/unicase/u16-casecmp-tests: New file.
23147         * tests/unicase/test-u16-casecmp.c: New file.
23148
23149         Tests for module 'unicase/u8-casecmp'.
23150         * modules/unicase/u8-casecmp-tests: New file.
23151         * tests/unicase/test-u8-casecmp.c: New file.
23152         * tests/unicase/test-casecmp.h: New file.
23153
23154         New module 'unicase/u32-casecmp'.
23155         * lib/unicase/u32-casecmp.c: New file.
23156         * modules/unicase/u32-casecmp: New file.
23157
23158         New module 'unicase/u16-casecmp'.
23159         * lib/unicase/u16-casecmp.c: New file.
23160         * modules/unicase/u16-casecmp: New file.
23161
23162         New module 'unicase/u8-casecmp'.
23163         * lib/unicase/u8-casecmp.c: New file.
23164         * lib/unicase/u-casecmp.h: New file.
23165         * modules/unicase/u8-casecmp: New file.
23166
23167         Tests for module 'unicase/u32-casefold'.
23168         * modules/unicase/u32-casefold-tests: New file.
23169         * tests/unicase/test-u32-casefold.c: New file.
23170
23171         Tests for module 'unicase/u16-casefold'.
23172         * modules/unicase/u16-casefold-tests: New file.
23173         * tests/unicase/test-u16-casefold.c: New file.
23174
23175         Tests for module 'unicase/u8-casefold'.
23176         * modules/unicase/u8-casefold-tests: New file.
23177         * tests/unicase/test-u8-casefold.c: New file.
23178
23179         New module 'unicase/u32-casefold'.
23180         * lib/unicase/u32-casefold.c: New file.
23181         * modules/unicase/u32-casefold: New file.
23182
23183         New module 'unicase/u16-casefold'.
23184         * lib/unicase/u16-casefold.c: New file.
23185         * modules/unicase/u16-casefold: New file.
23186
23187         New module 'unicase/u8-casefold'.
23188         * lib/unicase/u8-casefold.c: New file.
23189         * lib/unicase/u-casefold.h: New file.
23190         * modules/unicase/u8-casefold: New file.
23191
23192         New module 'unicase/tocasefold'.
23193         * lib/unicase/casefold.h: New file.
23194         * lib/unicase/tocasefold.c: New file.
23195         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
23196         * modules/unicase/tocasefold: New file.
23197
23198         Tests for module 'unicase/u32-totitle'.
23199         * modules/unicase/u32-totitle-tests: New file.
23200         * tests/unicase/test-u32-totitle.c: New file.
23201
23202         Tests for module 'unicase/u16-totitle'.
23203         * modules/unicase/u16-totitle-tests: New file.
23204         * tests/unicase/test-u16-totitle.c: New file.
23205
23206         Tests for module 'unicase/u8-totitle'.
23207         * modules/unicase/u8-totitle-tests: New file.
23208         * tests/unicase/test-u8-totitle.c: New file.
23209
23210         New module 'unicase/u32-totitle'.
23211         * lib/unicase/u32-totitle.c: New file.
23212         * modules/unicase/u32-totitle: New file.
23213
23214         New module 'unicase/u16-totitle'.
23215         * lib/unicase/u16-totitle.c: New file.
23216         * modules/unicase/u16-totitle: New file.
23217
23218         New module 'unicase/u8-totitle'.
23219         * lib/unicase/u8-totitle.c: New file.
23220         * lib/unicase/u-totitle.h: New file.
23221         * modules/unicase/u8-totitle: New file.
23222
23223         Tests for module 'unicase/u32-tolower'.
23224         * modules/unicase/u32-tolower-tests: New file.
23225         * tests/unicase/test-u32-tolower.c: New file.
23226
23227         Tests for module 'unicase/u16-tolower'.
23228         * modules/unicase/u16-tolower-tests: New file.
23229         * tests/unicase/test-u16-tolower.c: New file.
23230
23231         Tests for module 'unicase/u8-tolower'.
23232         * modules/unicase/u8-tolower-tests: New file.
23233         * tests/unicase/test-u8-tolower.c: New file.
23234
23235         New module 'unicase/u32-tolower'.
23236         * lib/unicase/u32-tolower.c: New file.
23237         * modules/unicase/u32-tolower: New file.
23238
23239         New module 'unicase/u16-tolower'.
23240         * lib/unicase/u16-tolower.c: New file.
23241         * modules/unicase/u16-tolower: New file.
23242
23243         New module 'unicase/u8-tolower'.
23244         * lib/unicase/u8-tolower.c: New file.
23245         * modules/unicase/u8-tolower: New file.
23246
23247         Tests for module 'unicase/u32-toupper'.
23248         * modules/unicase/u32-toupper-tests: New file.
23249         * tests/unicase/test-u32-toupper.c: New file.
23250
23251         Tests for module 'unicase/u16-toupper'.
23252         * modules/unicase/u16-toupper-tests: New file.
23253         * tests/unicase/test-u16-toupper.c: New file.
23254
23255         Tests for module 'unicase/u8-toupper'.
23256         * modules/unicase/u8-toupper-tests: New file.
23257         * tests/unicase/test-u8-toupper.c: New file.
23258
23259         New module 'unicase/u32-toupper'.
23260         * lib/unicase/u32-toupper.c: New file.
23261         * modules/unicase/u32-toupper: New file.
23262
23263         New module 'unicase/u16-toupper'.
23264         * lib/unicase/u16-toupper.c: New file.
23265         * modules/unicase/u16-toupper: New file.
23266
23267         New module 'unicase/u8-toupper'.
23268         * lib/unicase/u8-toupper.c: New file.
23269         * modules/unicase/u8-toupper: New file.
23270
23271         New module 'unicase/u32-casemap'.
23272         * lib/unicase/u32-casemap.c: New file.
23273         * modules/unicase/u32-casemap: New file.
23274
23275         New module 'unicase/u16-casemap'.
23276         * lib/unicase/u16-casemap.c: New file.
23277         * modules/unicase/u16-casemap: New file.
23278
23279         New module 'unicase/u8-casemap'.
23280         * lib/unicase/unicasemap.h: New file.
23281         * lib/unicase/u8-casemap.c: New file.
23282         * lib/unicase/u-casemap.h: New file.
23283         * modules/unicase/u8-casemap: New file.
23284
23285         New module 'unicase/special-casing'.
23286         * lib/unicase/special-casing.h: New file.
23287         * lib/unicase/special-casing.c: New file.
23288         * lib/unicase/special-casing-table.gperf: New file, generated by
23289         gen-uni-tables.c.
23290         * modules/unicase/special-casing: New file.
23291
23292         Tests for module 'unicase/locale-language'.
23293         * modules/unicase/locale-language-tests: New file.
23294         * tests/unicase/test-locale-language.sh: New file.
23295         * tests/unicase/test-locale-language.c: New file.
23296
23297         New module 'unicase/locale-language'.
23298         * lib/unicase/locale-language.c: New file.
23299         * lib/unicase/locale-languages.gperf: New file.
23300         * modules/unicase/locale-language: New file.
23301
23302         Generate more tables for case conversion and case folding.
23303         * lib/gen-uni-tables.c (SCC_*): New enum items.
23304         (struct special_casing_rule): New type.
23305         (casing_rules, num_casing_rules, allocated_casing_rules): New
23306         variables.
23307         (add_casing_rule, fill_casing_rules): New functions.
23308         (struct casefold_rule): New type.
23309         (casefolding_rules, num_casefolding_rules,
23310         allocated_casefolding_rules): New variables.
23311         (fill_casefolding_rules): New function.
23312         (unicode_casefold): New variable.
23313         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
23314         sort_casing_rules, output_casing_rules): New functions.
23315         (main): Accept to more arguments: SpecialCasing.txt and
23316         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
23317         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
23318         Output mapping for casefolding.
23319
23320         * lib/unicase.h: Include stdbool.h, uninorm.h.
23321         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
23322         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
23323         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
23324         arguments.
23325         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
23326         resultp arguments.
23327         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
23328         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
23329         resultp arguments.
23330         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
23331         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
23332         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
23333         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
23334         declarations.
23335         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
23336
23337 2009-03-08  Bruno Haible  <bruno@clisp.org>
23338
23339         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23340         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
23341         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
23342         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23343
23344 2009-03-07  Bruno Haible  <bruno@clisp.org>
23345
23346         Adjust u*_normcmp, u*_normcoll API.
23347         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23348         u16_normcoll, u32_normcoll): Change failure conventions.
23349         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
23350         errno and return -1.
23351         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23352
23353 2009-03-07  Bruno Haible  <bruno@clisp.org>
23354
23355         Tests for module 'uninorm/u32-normcoll'.
23356         * modules/uninorm/u32-normcoll-tests: New file.
23357         * tests/uninorm/test-u32-normcoll.c: New file.
23358
23359         Tests for module 'uninorm/u16-normcoll'.
23360         * modules/uninorm/u16-normcoll-tests: New file.
23361         * tests/uninorm/test-u16-normcoll.c: New file.
23362
23363         Tests for module 'uninorm/u8-normcoll'.
23364         * modules/uninorm/u8-normcoll-tests: New file.
23365         * tests/uninorm/test-u8-normcoll.c: New file.
23366
23367 2009-03-07  Bruno Haible  <bruno@clisp.org>
23368
23369         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23370         tests/uninorm/test-u32-normcmp.c.
23371         * tests/uninorm/test-u32-normcmp.c: Include it.
23372         (test_nonascii): New function, extracted from main. Add some more
23373         tests.
23374         (main): Invoke test_ascii and test_nonascii.
23375         * modules/uninorm/u32-normcmp-tests (Files): Add
23376         tests/uninorm/test-u32-normcmp.h.
23377         (Depends-on): Remove uninorm/u32-normcmp.
23378
23379         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23380         tests/uninorm/test-u16-normcmp.c.
23381         * tests/uninorm/test-u16-normcmp.c: Include it.
23382         (test_nonascii): New function, extracted from main. Add some more
23383         tests.
23384         (main): Invoke test_ascii and test_nonascii.
23385         * modules/uninorm/u16-normcmp-tests (Files): Add
23386         tests/uninorm/test-u16-normcmp.h.
23387         (Depends-on): Remove uninorm/u16-normcmp.
23388
23389         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23390         tests/uninorm/test-u8-normcmp.c.
23391         * tests/uninorm/test-u8-normcmp.c: Include it.
23392         (test_nonascii): New function, extracted from main. Add some more
23393         tests.
23394         (main): Invoke test_ascii and test_nonascii.
23395         * modules/uninorm/u8-normcmp-tests (Files): Add
23396         tests/uninorm/test-u8-normcmp.h.
23397         (Depends-on): Remove uninorm/u8-normcmp.
23398
23399 2009-03-07  Bruno Haible  <bruno@clisp.org>
23400
23401         New module 'uninorm/u32-normcoll'.
23402         * lib/uninorm/u32-normcoll.c: New file.
23403         * modules/uninorm/u32-normcoll: New file.
23404
23405         New module 'uninorm/u16-normcoll'.
23406         * lib/uninorm/u16-normcoll.c: New file.
23407         * modules/uninorm/u16-normcoll: New file.
23408
23409         New module 'uninorm/u8-normcoll'.
23410         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23411         declarations.
23412         * lib/uninorm/u8-normcoll.c: New file.
23413         * lib/uninorm/u-normcoll.h: New file.
23414         * modules/uninorm/u8-normcoll: New file.
23415
23416         New module 'uninorm/u32-normxfrm'.
23417         * lib/uninorm/u32-normxfrm.c: New file.
23418         * modules/uninorm/u32-normxfrm: New file.
23419
23420         New module 'uninorm/u16-normxfrm'.
23421         * lib/uninorm/u16-normxfrm.c: New file.
23422         * modules/uninorm/u16-normxfrm: New file.
23423
23424         New module 'uninorm/u8-normxfrm'.
23425         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23426         declarations.
23427         * lib/uninorm/u8-normxfrm.c: New file.
23428         * lib/uninorm/u-normxfrm.h: New file.
23429         * modules/uninorm/u8-normxfrm: New file.
23430
23431 2009-03-07  Bruno Haible  <bruno@clisp.org>
23432
23433         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23434         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23435         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23436
23437 2009-03-07  Bruno Haible  <bruno@clisp.org>
23438
23439         New module 'memxfrm'.
23440         * lib/memxfrm.h: New file.
23441         * lib/memxfrm.c: New file.
23442         * modules/memxfrm: New file.
23443
23444 2009-03-07  Bruno Haible  <bruno@clisp.org>
23445
23446         New module 'memcmp2'.
23447         * lib/memcmp2.h: New file.
23448         * lib/memcmp2.c: New file.
23449         * modules/memcmp2: New file.
23450
23451 2009-03-07  Bruno Haible  <bruno@clisp.org>
23452
23453         Tests for module 'uninorm/decomposing-form'.
23454         * modules/uninorm/decomposing-form-tests: New file.
23455         * tests/uninorm/test-decomposing-form.c: New file.
23456
23457         New module 'uninorm/decomposing-form'.
23458         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23459         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23460         Add 'decomposing_variant' field.
23461         * lib/uninorm/decomposing-form.c: New file.
23462         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23463         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23464         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23465         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23466         * modules/uninorm/decomposing-form: New file.
23467         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23468         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23469
23470 2009-03-07  Bruno Haible  <bruno@clisp.org>
23471
23472         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23473         strings.
23474
23475 2009-03-06  Bruno Haible  <bruno@clisp.org>
23476
23477         Tests for module 'uninorm/u32-normcmp'.
23478         * tests/uninorm/test-u32-normcmp.c: New file.
23479         * modules/uninorm/u32-normcmp-tests: New file.
23480
23481         Tests for module 'uninorm/u16-normcmp'.
23482         * tests/uninorm/test-u16-normcmp.c: New file.
23483         * modules/uninorm/u16-normcmp-tests: New file.
23484
23485         Tests for module 'uninorm/u8-normcmp'.
23486         * tests/uninorm/test-u8-normcmp.c: New file.
23487         * modules/uninorm/u8-normcmp-tests: New file.
23488
23489         New module 'uninorm/u32-normcmp'.
23490         * lib/uninorm/u32-normcmp.c: New file.
23491         * modules/uninorm/u32-normcmp: New file.
23492
23493         New module 'uninorm/u16-normcmp'.
23494         * lib/uninorm/u16-normcmp.c: New file.
23495         * modules/uninorm/u16-normcmp: New file.
23496
23497         New module 'uninorm/u8-normcmp'.
23498         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23499         declarations.
23500         * lib/uninorm/u8-normcmp.c: New file.
23501         * lib/uninorm/u-normcmp.h: New file.
23502         * modules/uninorm/u8-normcmp: New file.
23503
23504 2009-03-06  Bruno Haible  <bruno@clisp.org>
23505
23506         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23507         Reported by Eric Blake.
23508
23509 2009-03-06  Eric Blake  <ebb9@byu.net>
23510             Bruno Haible  <bruno@clisp.org>
23511
23512         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23513         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23514         condition.
23515         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23516         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23517         condition.
23518         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23519
23520 2009-03-06  Eric Blake  <ebb9@byu.net>
23521
23522         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23523         to avoid compiler warnings.
23524         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23525
23526 2009-03-05  Bruno Haible  <bruno@clisp.org>
23527
23528         * tests/test-ftell.c (main): Disable test beyond end of file on
23529         FreeMiNT.
23530         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23531
23532 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23533
23534         * lib/filevercmp.c: Move hidden files up in ordering.
23535         * tests/test-filevercmp.c: Add tests for hidden files.
23536
23537 2009-03-04  Bruno Haible  <bruno@clisp.org>
23538
23539         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23540         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23541         AM_CFLAGS.
23542         Reported by Simon Josefsson.
23543
23544 2009-03-03  Bruno Haible  <bruno@clisp.org>
23545
23546         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23547         Reported by Simon Josefsson.
23548
23549         * doc/ld-version-script.texi: Update node reference.
23550
23551 2009-03-03  Bruno Haible  <bruno@clisp.org>
23552
23553         * modules/visibility (License): Change to 'unlimited'.
23554         Suggested by Simon Josefsson.
23555
23556 2009-03-03  Jim Meyering  <meyering@redhat.com>
23557
23558         unlinkdir: cannot_unlink_dir may modify process state
23559         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23560         it's neither thread-safe nor appropriate for use in a library.
23561
23562 2009-03-03  Eric Blake  <ebb9@byu.net>
23563
23564         test-closein: silence test under Darwin
23565         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23566         care if it dies from EPIPE or EBADF.
23567
23568 2009-03-03  Bruno Haible  <bruno@clisp.org>
23569
23570         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23571         earlier.
23572         * doc/visibility.texi: Fix @node and @section.
23573
23574 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23575
23576         * doc/gnulib.texi: Link to sections for ld version script and
23577         visibility.
23578         * doc/visibility.texi: Add @node and @section.
23579         * modules/ld-version-script: New module.
23580         * m4/ld-version-script.m4: New file.
23581         * doc/ld-version-script.texi: New file.
23582
23583 2009-03-02  David Lutterkort  <lutter@redhat.com>
23584
23585         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23587
23588 2009-03-02  Bruno Haible  <bruno@clisp.org>
23589
23590         * doc/visibility.texi: Mention libtool's -export-symbols option.
23591
23592 2009-03-02  Jim Meyering  <meyering@redhat.com>
23593
23594         announce-gen: new option: --no-print-checksums
23595         * build-aux/announce-gen (usage): Describe it.
23596         (print_checksums): Print a newline here, not in the [*] footnote.
23597         (main): Honor it.
23598
23599 2009-03-01  Bruno Haible  <bruno@clisp.org>
23600
23601         Use socklen_t in the native Windows replacements prototypes.
23602         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23603         instead of 'int'.
23604         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23605         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23606         * modules/getsockopt (Depends-on): Add socklen.
23607         * modules/setsockopt (Depends-on): Add socklen.
23608
23609 2009-03-01  Bruno Haible  <bruno@clisp.org>
23610
23611         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23612         least 4.2.
23613
23614 2009-03-01  Eric Blake  <ebb9@byu.net>
23615             Bruno Haible  <bruno@clisp.org>
23616
23617         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23618         error messages.
23619         * lib/wait-process.c (wait_subprocess): Omit error message about
23620         deadly signal sent to the child of termsigp != NULL.
23621
23622 2009-03-01  Eric Blake  <ebb9@byu.net>
23623
23624         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23625
23626 2009-03-01  Bruno Haible  <bruno@clisp.org>
23627
23628         Avoid a gcc warning.
23629         * tests/test-sched.c (b): Make global.
23630         Reported by Eric Blake.
23631
23632 2009-01-19  Martin Lambers  <marlam@marlam.de>
23633
23634         Provide POSIX semantics for socket timeout options on W32.
23635         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23636         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23637         * modules/setsockopt: Depend on sys_time module for struct timeval.
23638         * modules/getsockopt: Depend on sys_time module for struct timeval.
23639
23640 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23641
23642         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23643         __USE_GNU, for consistency with netdb.in.h.
23644         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23645
23646 2009-03-01  Bruno Haible  <bruno@clisp.org>
23647
23648         More support for FreeMiNT.
23649         * lib/fseeko.c (rpl_fseeko): Complete last commit.
23650         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23651
23652 2009-03-01  Bruno Haible  <bruno@clisp.org>
23653
23654         More support for FreeMiNT.
23655         * lib/fpurge.c (fpurge): Correct last commit.
23656         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23657
23658 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23659
23660         Fix unportable awk script in vc-list-files.
23661         * build-aux/vc-list-files: In the replacement awk script, use
23662         substr with a second argument of 1, not zero.
23663         Report by Simon Josefsson.
23664
23665 2009-02-28  Bruno Haible  <bruno@clisp.org>
23666
23667         More support for FreeMiNT.
23668         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
23669         to FreeMiNT today.
23670         * lib/fwriting.c (fwriting): Likewise.
23671         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
23672
23673 2009-02-28  Bruno Haible  <bruno@clisp.org>
23674
23675         * tests/test-freadseek.c (main): Disable test beyond end of file on
23676         FreeMiNT.
23677         * tests/test-ftello.c (main): Likewise.
23678         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23679
23680 2009-02-28  Bruno Haible  <bruno@clisp.org>
23681
23682         Add tentative support for FreeMiNT.
23683         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
23684         * lib/fpurge.c (fpurge): Likewise.
23685         * lib/freadable.c (freadable): Likewise.
23686         * lib/freading.c (freading): Likewise.
23687         * lib/freadptr.c (freadptr): Likewise.
23688         * lib/freadseek.c (freadptrinc): Likewise.
23689         * lib/fseeko.c (rpl_fseeko): Likewise.
23690         * lib/fseterr.c (fseterr): Likewise.
23691         * lib/fwritable.c (fwritable): Likewise.
23692         * lib/fwriting.c (fwriting): Likewise.
23693         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
23694         Hourihane.
23695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23696
23697 2009-02-28  Bruno Haible  <bruno@clisp.org>
23698
23699         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
23700         SIGCHLD.
23701         Reported by Jim Meyering.
23702
23703 2009-02-28  Bruno Haible  <bruno@clisp.org>
23704
23705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
23706         Mention the results of these tests on various platforms.
23707         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
23708         order.
23709         * doc/posix-functions/printf.texi: Likewise.
23710         * doc/posix-functions/snprintf.texi: Likewise.
23711         * doc/posix-functions/sprintf.texi: Likewise.
23712         * doc/posix-functions/vfprintf.texi: Likewise.
23713         * doc/posix-functions/vprintf.texi: Likewise.
23714         * doc/posix-functions/vsnprintf.texi: Likewise.
23715         * doc/posix-functions/vsprintf.texi: Likewise.
23716         * doc/glibc-functions/obstack_printf.texi: Likewise.
23717         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23718
23719 2009-02-28  Bruno Haible  <bruno@clisp.org>
23720
23721         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
23722         Reported by Loïc Minier <lool@dooz.org>.
23723
23724 2009-02-27  Bruno Haible  <bruno@clisp.org>
23725
23726         * gnulib-tool (func_import): Make the sed expression used to create the
23727         sed script for updating the .gitignore file POSIX compliant.
23728         Reported by Eric Blake.
23729
23730 2009-02-27  Bruno Haible  <bruno@clisp.org>
23731
23732         * gnulib-tool (sed): Don't alias as "sed --posix".
23733         Reported by Eric Blake.
23734
23735 2009-02-27  Bruno Haible  <bruno@clisp.org>
23736
23737         Avoid test link errors.
23738         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
23739         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
23740         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
23741         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
23742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23743
23744 2009-02-27  Bruno Haible  <bruno@clisp.org>
23745
23746         Avoid spurious "(cached)" in configure output.
23747         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
23748         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
23749         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23750         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23751         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23752         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23753         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23754         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23755         Reported by Eric Blake.
23756
23757 2009-02-27  Eric Blake  <ebb9@byu.net>
23758
23759         printf: fix regression in previous patch
23760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
23761
23762 2009-02-27  Bruno Haible  <bruno@clisp.org>
23763
23764         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
23765         value.
23766         * lib/stdint.in.h: Likewise.
23767         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
23768
23769 2009-02-27  Eric Blake  <ebb9@byu.net>
23770
23771         doc: mention more functions added in cygwin 1.7.0
23772         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
23773         addition.
23774         * doc/posix-functions/open_wmemstream.texi: Likewise.
23775         * doc/posix-functions/wcsnlen.texi: Likewise.
23776         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23777         * doc/posix-functions/wcstod.texi: Likewise.
23778         * doc/posix-functions/wcstof.texi: Likewise.
23779         * doc/posix-functions/wcstoimax.texi: Likewise.
23780         * doc/posix-functions/wcstok.texi: Likewise.
23781         * doc/posix-functions/wcstoumax.texi: Likewise.
23782
23783         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
23784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
23785         * doc/posix-functions/fprintf.texi: Update.
23786         * doc/posix-functions/printf.texi: Update.
23787         * doc/posix-functions/snprintf.texi: Update.
23788         * doc/posix-functions/sprintf.texi: Update.
23789         * doc/posix-functions/vfprintf.texi: Update.
23790         * doc/posix-functions/vprintf.texi: Update.
23791         * doc/posix-functions/vsnprintf.texi: Update.
23792         * doc/posix-functions/vsprintf.texi: Update.
23793         * doc/glibc-functions/obstack_printf.texi: Update.
23794         * doc/glibc-functions/obstack_vprintf.texi: Update.
23795
23796 2009-02-26  Eric Blake  <ebb9@byu.net>
23797
23798         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
23799         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
23800         compilation bug by using runtime conversion.
23801         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23802         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
23803         * modules/ceill-tests (Files): Use nan.h.
23804         * modules/floorl-tests (Files): Likewise.
23805         * modules/frexpl-tests (Files): Likewise.
23806         * modules/isnanl-tests (Files): Likewise.
23807         * modules/ldexpl-tests (Files): Likewise.
23808         * modules/roundl-tests (Files): Likewise.
23809         * modules/truncl-tests (Files): Likewise.
23810         * tests/test-ceill.c (main): Use a working NaN.
23811         * tests/test-floorl.c (main): Likewise.
23812         * tests/test-frexpl.c (main): Likewise.
23813         * tests/test-isnan.c (test_long_double): Likewise.
23814         * tests/test-isnanl.h (main): Likewise.
23815         * tests/test-ldexpl.h (main): Likewise.
23816         * tests/test-roundl.h (main): Likewise.
23817         * tests/test-truncl.h (main): Likewise.
23818         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23819
23820 2009-02-26  Eric Blake  <ebb9@byu.net>
23821             Bruno Haible  <bruno@clisp.org>
23822
23823         Work around a *printf bug with %ls on Solaris.
23824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23825         precision is specified, sprintf stops converting the wide string
23826         argument when the number of bytes that have been produced by this
23827         conversion equals or exceeds the precision.
23828         * doc/posix-functions/fprintf.texi: Update.
23829         * doc/posix-functions/printf.texi: Update.
23830         * doc/posix-functions/snprintf.texi: Update.
23831         * doc/posix-functions/sprintf.texi: Update.
23832         * doc/posix-functions/vfprintf.texi: Update.
23833         * doc/posix-functions/vprintf.texi: Update.
23834         * doc/posix-functions/vsnprintf.texi: Update.
23835         * doc/posix-functions/vsprintf.texi: Update.
23836         * doc/glibc-functions/obstack_printf.texi: Update.
23837         * doc/glibc-functions/obstack_vprintf.texi: Update.
23838
23839 2009-02-26  Eric Blake  <ebb9@byu.net>
23840
23841         stdlib: favor compiler check of random.h
23842         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23843         to avoid an ObjC random.h installed by Swarm.
23844
23845 2009-02-26  Bruno Haible  <bruno@clisp.org>
23846
23847         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23848         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23849         Reported by Gary V. Vaughan <gary@gnu.org>.
23850
23851 2009-02-26  Bruno Haible  <bruno@clisp.org>
23852
23853         Fix *printf behaviour regarding the %ls directive.
23854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23855         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23856         NEED_PRINTF_DIRECTIVE_LS.
23857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23858         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23860         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23861         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23862         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23863         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23868         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23870         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23871         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23872         * doc/posix-functions/fprintf.texi: Update.
23873         * doc/posix-functions/printf.texi: Update.
23874         * doc/posix-functions/snprintf.texi: Update.
23875         * doc/posix-functions/sprintf.texi: Update.
23876         * doc/posix-functions/vfprintf.texi: Update.
23877         * doc/posix-functions/vprintf.texi: Update.
23878         * doc/posix-functions/vsnprintf.texi: Update.
23879         * doc/posix-functions/vsprintf.texi: Update.
23880         * doc/glibc-functions/obstack_printf.texi: Update.
23881         * doc/glibc-functions/obstack_vprintf.texi: Update.
23882         Reported by Eric Blake.
23883
23884 2009-02-25  Bruno Haible  <bruno@clisp.org>
23885
23886         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23887         with known value.
23888         Reported by Gary V. Vaughan <gary@gnu.org>.
23889
23890 2009-02-25  Bruno Haible  <bruno@clisp.org>
23891
23892         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23893         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23894         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23895         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23896         Reported by Gary V. Vaughan <gary@gnu.org>.
23897
23898 2009-02-25  Bruno Haible  <bruno@clisp.org>
23899
23900         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23901         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23902         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23903         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23904         Reported by Gary V. Vaughan <gary@gnu.org>.
23905
23906 2009-02-25  Eric Blake  <ebb9@byu.net>
23907
23908         tests: skip fseek/ftell tests if ungetc is broken
23909         * m4/ungetc.m4: New file.
23910         * modules/fseek-tests: Split test, so ungetc dependency is
23911         separate from rest of test.
23912         * modules/fseeko-tests: Likewise.
23913         * modules/ftell-tests: Likewise.
23914         * modules/ftello-tests: Likewise.
23915         * tests/test-fseek.c (main): Isolate ungetc dependency.
23916         * tests/test-fseeko.c (main): Likewise.
23917         * tests/test-ftell.c (main): Likewise.
23918         * tests/test-ftello.c (main): Likewise.
23919         * tests/test-fseek2.sh: New file.
23920         * tests/test-fseeko2.sh: Likewise.
23921         * tests/test-ftell2.sh: Likewise.
23922         * tests/test-ftello2.sh: Likewise.
23923
23924 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
23925
23926         test-getaddrinfo: fix usage of skip return code 77
23927         * tests/test-gettaddrinfo.c: Return skip code 77 only
23928         for first occurance of skip (4x77 is not 77)
23929
23930 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23931
23932         strtod: avoid C99 decl-after-statement
23933         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23934
23935 2009-02-24  Eric Blake  <ebb9@byu.net>
23936
23937         strtod: detect HP-UX 11.31 bug
23938         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23939         Reported by Gary V. Vaughan.
23940
23941 2009-02-23  Bruno Haible  <bruno@clisp.org>
23942
23943         Fix invalid read past end of memory block.
23944         * lib/vasnprintf.c (DCHAR_SET): Define.
23945         (local_wcslen): Define only when needed.
23946         (local_strnlen, local_wcsnlen): New functions.
23947         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23948         directives that involve a conversion ourselves.
23949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23950         wcsnlen, mbrtowc, wcrtomb.
23951         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23952         * tests/test-vasprintf-posix.c (test_function): Likewise.
23953         * tests/test-snprintf-posix.h (test_function): Likewise.
23954         * tests/test-sprintf-posix.h (test_function): Likewise.
23955         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23956
23957 2009-02-22  Bruno Haible  <bruno@clisp.org>
23958
23959         Implement new clarified decomposition of Hangul syllables.
23960         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23961         of type LTV, return only a pairwise decomposition.
23962         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23963         Likewise.
23964         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23965         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23966         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23967
23968 2009-02-22  Bruno Haible  <bruno@clisp.org>
23969
23970         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23971         zero-length results and shrink excess allocated memory.
23972         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23973         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23974         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23975         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23976         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23977         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23978         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23979         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23980         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23981         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23982         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23983         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23984
23985 2009-02-21  Bruno Haible  <bruno@clisp.org>
23986
23987         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23988         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23989         spaces after a period. Put a space between a macro name and its
23990         argument list. Trivial rewordings.
23991         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23992         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23993         (main): Return 0 explicitly.
23994
23995 2009-02-21  Bruno Haible  <bruno@clisp.org>
23996
23997         Tests for module 'uninorm/filter'.
23998         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23999         * modules/uninorm/filter-tests: New file.
24000
24001         New module 'uninorm/filter'.
24002         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
24003         uninorm_filter_flush, uninorm_filter_free): New declarations.
24004         * lib/uninorm/uninorm-filter.c: New file.
24005         * modules/uninorm/filter: New file.
24006
24007 2009-02-21  Bruno Haible  <bruno@clisp.org>
24008
24009         Tests for module 'uninorm/nfkc'.
24010         * tests/uninorm/test-nfkc.c: New file.
24011         * tests/uninorm/test-u8-nfkc.c: New file.
24012         * tests/uninorm/test-u16-nfkc.c: New file.
24013         * tests/uninorm/test-u32-nfkc.c: New file.
24014         * tests/uninorm/test-u32-nfkc-big.sh: New file.
24015         * tests/uninorm/test-u32-nfkc-big.c: New file.
24016         * modules/uninorm/nfkc-tests: New file.
24017
24018         New module 'uninorm/nfkc'.
24019         * lib/uninorm/nfkc.c: New file.
24020         * modules/uninorm/nfkc: New file.
24021
24022         Tests for module 'uninorm/nfkd'.
24023         * tests/uninorm/test-nfkd.c: New file.
24024         * tests/uninorm/test-u8-nfkd.c: New file.
24025         * tests/uninorm/test-u16-nfkd.c: New file.
24026         * tests/uninorm/test-u32-nfkd.c: New file.
24027         * tests/uninorm/test-u32-nfkd-big.sh: New file.
24028         * tests/uninorm/test-u32-nfkd-big.c: New file.
24029         * modules/uninorm/nfkd-tests: New file.
24030
24031         New module 'uninorm/nfkd'.
24032         * lib/uninorm/nfkd.c: New file.
24033         * modules/uninorm/nfkd: New file.
24034
24035         Tests for module 'uninorm/nfc'.
24036         * tests/uninorm/test-nfc.c: New file.
24037         * tests/uninorm/test-u8-nfc.c: New file.
24038         * tests/uninorm/test-u16-nfc.c: New file.
24039         * tests/uninorm/test-u32-nfc.c: New file.
24040         * tests/uninorm/test-u32-nfc-big.sh: New file.
24041         * tests/uninorm/test-u32-nfc-big.c: New file.
24042         * modules/uninorm/nfc-tests: New file.
24043
24044         New module 'uninorm/nfc'.
24045         * lib/uninorm/nfc.c: New file.
24046         * modules/uninorm/nfc: New file.
24047
24048         Tests for module 'uninorm/nfd'.
24049         * tests/uninorm/test-nfd.c: New file.
24050         * tests/uninorm/test-u8-nfd.c: New file.
24051         * tests/uninorm/test-u16-nfd.c: New file.
24052         * tests/uninorm/test-u32-nfd.c: New file.
24053         * tests/uninorm/test-u32-nfd-big.sh: New file.
24054         * tests/uninorm/test-u32-nfd-big.c: New file.
24055         * tests/uninorm/test-u32-normalize-big.h: New file.
24056         * tests/uninorm/test-u32-normalize-big.c: New file.
24057         * tests/uninorm/NormalizationTest.txt: New file, created from
24058         Unicode 5.1.0 NormalizationTest.txt.
24059         * modules/uninorm/nfd-tests: New file.
24060
24061         New module 'uninorm/nfd'.
24062         * lib/uninorm/nfd.c: New file.
24063         * modules/uninorm/nfd: New file.
24064
24065         New module 'uninorm/u32-normalize'.
24066         * lib/uninorm/u32-normalize.c: New file.
24067         * modules/uninorm/u32-normalize: New file.
24068
24069         New module 'uninorm/u16-normalize'.
24070         * lib/uninorm/u16-normalize.c: New file.
24071         * modules/uninorm/u16-normalize: New file.
24072
24073         New module 'uninorm/u8-normalize'.
24074         * lib/uninorm/u8-normalize.c: New file.
24075         * lib/uninorm/normalize-internal.h: New file.
24076         * lib/uninorm/u-normalize-internal.h: New file.
24077         * modules/uninorm/u8-normalize: New file.
24078
24079         New module 'uninorm/decompose-internal'.
24080         * lib/uninorm/decompose-internal.c: New file.
24081         * modules/uninorm/decompose-internal: New file.
24082
24083         Tests for module 'uninorm/composition'.
24084         * tests/uninorm/test-composition.c: New file.
24085         * modules/uninorm/composition-tests: New file.
24086
24087         New module 'uninorm/composition'.
24088         * lib/uninorm/composition.c: New file.
24089         * lib/uninorm/composition-table.gperf: New file, generated by
24090         gen-uni-tables.
24091         * modules/uninorm/composition: New file.
24092
24093         Tests for module 'uninorm/compat-decomposition'.
24094         * tests/uninorm/test-compat-decomposition.c: New file.
24095         * modules/uninorm/compat-decomposition-tests: New file.
24096
24097         New module 'uninorm/compat-decomposition'.
24098         * lib/uninorm/decompose-internal.h: New file.
24099         * lib/uninorm/compat-decomposition.c: New file.
24100         * modules/uninorm/compat-decomposition: New file.
24101
24102         Tests for module 'uninorm/canonical-decomposition'.
24103         * tests/uninorm/test-canonical-decomposition.c: New file.
24104         * modules/uninorm/canonical-decomposition-tests: New file.
24105
24106         New module 'uninorm/canonical-decomposition'.
24107         * lib/uninorm/canonical-decomposition.c: New file.
24108         * modules/uninorm/canonical-decomposition: New file.
24109
24110         Tests for module 'uninorm/decomposition'.
24111         * tests/uninorm/test-decomposition.c: New file.
24112         * modules/uninorm/decomposition-tests: New file.
24113
24114         New module 'uninorm/decomposition'.
24115         * lib/uninorm/decomposition.c: New file.
24116         * modules/uninorm/decomposition: New file.
24117
24118         New module 'uninorm/decomposition-table'.
24119         * lib/uninorm/decomposition-table.h: New file.
24120         * lib/uninorm/decomposition-table.c: New file.
24121         * lib/uninorm/decomposition-table1.h: New file, generated by
24122         gen-uni-tables.
24123         * lib/uninorm/decomposition-table2.h: New file, generated by
24124         gen-uni-tables.
24125         * modules/uninorm/decomposition-table: New file.
24126
24127         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
24128         (UC_DECOMP_*): New enumeration items.
24129         (get_decomposition): New function.
24130         (struct decomp_table): New type.
24131         (output_decomposition, output_decomposition_tables): New functions.
24132         (unicode_composition_exclusions): New variable.
24133         (fill_composition_exclusions, debug_output_composition_tables): New
24134         functions.
24135         (main): Accept one more argument. Invoke fill_composition_exclusions.
24136         Output decomposition and composition tables.
24137
24138         New module 'uninorm/base'.
24139         * lib/uninorm.h: New file.
24140         * lib/unictype.h: Update comment.
24141         * modules/uninorm/base: New file.
24142
24143 2009-02-21  David Lutterkort  <lutter@redhat.com>
24144
24145         Tests for module 'safe-alloc'.
24146         * tests/test-safe-alloc.c: New file.
24147         * modules/safe-alloc-tests: New file.
24148
24149         New module 'safe-alloc'.
24150         * lib/safe-alloc.h: New file.
24151         * lib/safe-alloc.c: New file.
24152         * m4/safe-alloc.m4: New file.
24153         * modules/safe-alloc: New file.
24154         * doc/safe-alloc.texi: New file.
24155         * doc/gnulib.texi: Include it.
24156         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24157         safe-alloc.
24158
24159 2009-02-18  Bruno Haible  <bruno@clisp.org>
24160
24161         Fix link error on non-glibc systems.
24162         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
24163         variable.
24164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24165
24166 2009-02-18  Jim Meyering  <meyering@redhat.com>
24167
24168         fts: avoid used-uninitialized error due to recent change
24169         * lib/fts.c (fts_read): Guard uses of the new member,
24170         parent->fts_n_dirs_remaining, since it's not relevant for
24171         the parent of a directory specified on the command-line.
24172
24173 2009-02-17  James Youngman  <jay@gnu.org>
24174             Bruno Haible  <bruno@clisp.org>
24175
24176         * m4/include_next.m4: Reformulate comment.
24177
24178 2009-02-16  Jim Meyering  <meyering@redhat.com>
24179
24180         fts: add #if guards so that the fts_lgpl module still builds
24181         * lib/fts.c: Guard just-added hash-table-using parts with
24182         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
24183         Reported by Simon Josefsson.
24184
24185 2009-02-15  Bruno Haible  <bruno@clisp.org>
24186
24187         * modules/array-mergesort-tests: New file.
24188         * tests/test-array-mergesort.c: New file.
24189
24190         New module 'array-mergesort'.
24191         * modules/array-mergesort: New file.
24192         * lib/array-mergesort.h: New file.
24193
24194 2009-02-15  Bruno Haible  <bruno@clisp.org>
24195
24196         Fix 2009-02-07 commit.
24197         * lib/gen-uni-tables.c (output_predicate, output_category,
24198         output_combclass, output_bidi_category, output_decimal_digit,
24199         output_digit, output_numeric, output_mirror, output_scripts,
24200         output_ident_category, output_simple_mapping): Fix format directives.
24201         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
24202
24203 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
24204
24205         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
24206         fixes are available from IBM.
24207
24208 2009-02-13  Jim Meyering  <meyering@redhat.com>
24209
24210         fts: arrange not to stat non-directories in more cases
24211         This makes GNU find (when it doesn't need to stat each file)
24212         *much* more efficient at traversing reiserfs file systems.
24213         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
24214         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
24215         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
24216         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
24217         (leaf_optimization_applies): New function.
24218         (LCO_hash, LCO_compare): New helper functions.
24219         (link_count_optimize_ok): New function.
24220         (fts_stat): Initialize new member (if dir).
24221         (fts_read): Decrement parent's fts_n_dirs_remaining count if
24222         we've just stat'ed a directory.  Skip the stat call when possible.
24223         ---
24224         Note this AFS-related exchange:
24225         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
24226         and note find's pioctl call in find/fstype.c.
24227         But that is necessary only if you want to enable the
24228         optimization for AFS, and for now, I don't.
24229
24230         fts: move a function definition "up" (no semantic change)
24231         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
24232         "up" to precede upcoming use of a related function.
24233
24234 2009-02-11  Jim Meyering  <meyering@redhat.com>
24235
24236         fts: correct internal computation of nlinks (optimization-related)
24237         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
24238         whether the current entry is a directory, so don't test it.
24239
24240 2009-02-10  Bruno Haible  <bruno@clisp.org>
24241
24242         Tests for module 'uniwbrk/ulc-wordbreaks'.
24243         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
24244         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
24245         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
24246
24247         Tests for module 'uniwbrk/u32-wordbreaks'.
24248         * modules/uniwbrk/u32-wordbreaks-tests: New file.
24249         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
24250
24251         Tests for module 'uniwbrk/u16-wordbreaks'.
24252         * modules/uniwbrk/u16-wordbreaks-tests: New file.
24253         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
24254
24255         Tests for module 'uniwbrk/u8-wordbreaks'.
24256         * modules/uniwbrk/u8-wordbreaks-tests: New file.
24257         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
24258
24259 2009-02-10  Bruno Haible  <bruno@clisp.org>
24260
24261         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
24262         property.
24263         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
24264         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
24265         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
24266
24267 2009-02-10  Simon Josefsson  <simon@josefsson.org>
24268
24269         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
24270         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
24271
24272 2009-02-10  Bruno Haible  <bruno@clisp.org>
24273
24274         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
24275         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
24276         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
24277         * lib/unilbrk/u8-possible-linebreaks.c: Update.
24278         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
24279         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
24280
24281 2009-02-09  Simon Josefsson  <simon@josefsson.org>
24282
24283         * lib/sockets.h (gl_fd_to_handle): New function.
24284
24285         * tests/test-sockets.c: Call gl_fd_to_handle.
24286
24287 2009-02-09  Bruno Haible  <bruno@clisp.org>
24288
24289         * doc/havelib.texi: Document the conventions on bi-arch systems.
24290
24291 2009-02-08  Bruno Haible  <bruno@clisp.org>
24292
24293         Document the AC_LIB_LINKFLAGS macro.
24294         * doc/havelib.texi: New file, mostly written on 2005-05-24.
24295         * doc/gnulib.texi: Include it.
24296
24297 2009-02-08  Bruno Haible  <bruno@clisp.org>
24298
24299         Fix wrong order of sections, compared to TOC.
24300         * doc/gnulib.texi: Include relocatable-maint.texi after the
24301         "Regular expressions" node, not before.
24302
24303 2009-02-08  Bruno Haible  <bruno@clisp.org>
24304
24305         Tests for module 'unicase/totitle'.
24306         * modules/unicase/totitle-tests: New file.
24307
24308         Tests for module 'unicase/tolower'.
24309         * modules/unicase/tolower-tests: New file.
24310
24311         Tests for module 'unicase/toupper'.
24312         * modules/unicase/toupper-tests: New file.
24313         * tests/unicase/test-mapping-part1.h: New file.
24314         * tests/unicase/test-mapping-part2.h: New file.
24315
24316         New module 'unicase/totitle'.
24317         * modules/unicase/totitle: New file.
24318         * lib/unicase/totitle.c: New file.
24319
24320         New module 'unicase/tolower'.
24321         * modules/unicase/tolower: New file.
24322         * lib/unicase/tolower.c: New file.
24323
24324         New module 'unicase/toupper'.
24325         * modules/unicase/toupper: New file.
24326         * lib/unicase/toupper.c: New file.
24327         * lib/unicase/simple-mapping.h: New file.
24328
24329         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
24330         (mapping_table): New structure.
24331         (output_simple_mapping): New function.
24332         (main): Invoke output_simple_mapping_test and output_simple_mapping.
24333         * modules/gen-uni-tables (Description): Update.
24334         * lib/unicase/toupper.h: New file, automatically generated by
24335         gen-uni-tables.
24336         * lib/unicase/tolower.h: New file, automatically generated by
24337         gen-uni-tables.
24338         * lib/unicase/totitle.h: New file, automatically generated by
24339         gen-uni-tables.
24340         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
24341         gen-uni-tables.
24342         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
24343         gen-uni-tables.
24344         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
24345         gen-uni-tables.
24346
24347         New module 'unicase/base'.
24348         * modules/unicase/base: New file.
24349         * lib/unicase.h: New file.
24350
24351 2009-02-08  Bruno Haible  <bruno@clisp.org>
24352
24353         New module 'uniwbrk/ulc-wordbreaks'.
24354         * modules/uniwbrk/ulc-wordbreaks: New file.
24355         * lib/uniwbrk/ulc-wordbreaks.c: New file.
24356
24357         New module 'uniwbrk/u32-wordbreaks'.
24358         * modules/uniwbrk/u32-wordbreaks: New file.
24359         * lib/uniwbrk/u32-wordbreaks.c: New file.
24360
24361         New module 'uniwbrk/u16-wordbreaks'.
24362         * modules/uniwbrk/u16-wordbreaks: New file.
24363         * lib/uniwbrk/u16-wordbreaks.c: New file.
24364
24365         New module 'uniwbrk/u8-wordbreaks'.
24366         * modules/uniwbrk/u8-wordbreaks: New file.
24367         * lib/uniwbrk/u8-wordbreaks.c: New file.
24368         * lib/uniwbrk/u-wordbreaks.h: New file.
24369
24370         New module 'uniwbrk/table'.
24371         * modules/uniwbrk/table: New file.
24372         * lib/uniwbrk/wbrktable.h: New file.
24373         * lib/uniwbrk/wbrktable.c: New file.
24374
24375         New module 'uniwbrk/wordbreak-property'.
24376         * modules/uniwbrk/wordbreak-property: New file.
24377         * lib/uniwbrk/wordbreak-property.c: New file.
24378
24379         * lib/gen-uni-tables.c (WBP_*): New enum items.
24380         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24381         (unicode_org_wbp): New variable.
24382         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24383         New functions.
24384         (wbp_table): New structure.
24385         (output_wbp, output_wbrk_tables): New functions.
24386         (main): Accept additional argument. Invoke fill_org_wbp,
24387         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24388         output_wbrk_tables.
24389         * modules/gen-uni-tables (Description): Update.
24390         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24391         gen-uni-tables.
24392
24393         New module 'uniwbrk/base'.
24394         * modules/uniwbrk/base: New file.
24395         * lib/uniwbrk.h: New file.
24396
24397 2009-02-08  Bruno Haible  <bruno@clisp.org>
24398
24399         Update to Unicode 5.1.0.
24400         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24401         U+2185..U+2188.
24402         (is_property_default_ignorable_code_point): Don't include characters
24403         of category Cc or Cs and not-a-characters.
24404         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24405         U+0D79, U+109E, U+109F, U+A60C.
24406         * lib/unictype/bidi_of.h: Regenerated.
24407         * lib/unictype/blocks.h: Regenerated.
24408         * lib/unictype/categ_C.h: Regenerated.
24409         * lib/unictype/categ_Cf.h: Regenerated.
24410         * lib/unictype/categ_Cn.h: Regenerated.
24411         * lib/unictype/categ_L.h: Regenerated.
24412         * lib/unictype/categ_Ll.h: Regenerated.
24413         * lib/unictype/categ_Lm.h: Regenerated.
24414         * lib/unictype/categ_Lo.h: Regenerated.
24415         * lib/unictype/categ_Lu.h: Regenerated.
24416         * lib/unictype/categ_M.h: Regenerated.
24417         * lib/unictype/categ_Mc.h: Regenerated.
24418         * lib/unictype/categ_Me.h: Regenerated.
24419         * lib/unictype/categ_Mn.h: Regenerated.
24420         * lib/unictype/categ_N.h: Regenerated.
24421         * lib/unictype/categ_Nd.h: Regenerated.
24422         * lib/unictype/categ_Nl.h: Regenerated.
24423         * lib/unictype/categ_No.h: Regenerated.
24424         * lib/unictype/categ_P.h: Regenerated.
24425         * lib/unictype/categ_Pd.h: Regenerated.
24426         * lib/unictype/categ_Pe.h: Regenerated.
24427         * lib/unictype/categ_Pf.h: Regenerated.
24428         * lib/unictype/categ_Pi.h: Regenerated.
24429         * lib/unictype/categ_Po.h: Regenerated.
24430         * lib/unictype/categ_Ps.h: Regenerated.
24431         * lib/unictype/categ_S.h: Regenerated.
24432         * lib/unictype/categ_Sk.h: Regenerated.
24433         * lib/unictype/categ_Sm.h: Regenerated.
24434         * lib/unictype/categ_So.h: Regenerated.
24435         * lib/unictype/categ_of.h: Regenerated.
24436         * lib/unictype/combining.h: Regenerated.
24437         * lib/unictype/ctype_alnum.h: Regenerated.
24438         * lib/unictype/ctype_alpha.h: Regenerated.
24439         * lib/unictype/ctype_graph.h: Regenerated.
24440         * lib/unictype/ctype_lower.h: Regenerated.
24441         * lib/unictype/ctype_print.h: Regenerated.
24442         * lib/unictype/ctype_punct.h: Regenerated.
24443         * lib/unictype/ctype_upper.h: Regenerated.
24444         * lib/unictype/decdigit.h: Regenerated.
24445         * lib/unictype/digit.h: Regenerated.
24446         * lib/unictype/mirror.h: Regenerated.
24447         * lib/unictype/numeric.h: Regenerated.
24448         * lib/unictype/pr_alphabetic.h: Regenerated.
24449         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24450         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24451         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24452         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24453         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24454         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24455         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24456         * lib/unictype/pr_combining.h: Regenerated.
24457         * lib/unictype/pr_dash.h: Regenerated.
24458         * lib/unictype/pr_decimal_digit.h: Regenerated.
24459         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24460         * lib/unictype/pr_deprecated.h: Regenerated.
24461         * lib/unictype/pr_diacritic.h: Regenerated.
24462         * lib/unictype/pr_extender.h: Regenerated.
24463         * lib/unictype/pr_format_control.h: Regenerated.
24464         * lib/unictype/pr_grapheme_base.h: Regenerated.
24465         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24466         * lib/unictype/pr_grapheme_link.h: Regenerated.
24467         * lib/unictype/pr_id_continue.h: Regenerated.
24468         * lib/unictype/pr_id_start.h: Regenerated.
24469         * lib/unictype/pr_ideographic.h: Regenerated.
24470         * lib/unictype/pr_ignorable_control.h: Regenerated.
24471         * lib/unictype/pr_lowercase.h: Regenerated.
24472         * lib/unictype/pr_math.h: Regenerated.
24473         * lib/unictype/pr_numeric.h: Regenerated.
24474         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24475         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24476         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24477         * lib/unictype/pr_other_id_continue.h: Regenerated.
24478         * lib/unictype/pr_other_lowercase.h: Regenerated.
24479         * lib/unictype/pr_other_math.h: Regenerated.
24480         * lib/unictype/pr_punctuation.h: Regenerated.
24481         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24482         * lib/unictype/pr_soft_dotted.h: Regenerated.
24483         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24484         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24485         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24486         * lib/unictype/pr_uppercase.h: Regenerated.
24487         * lib/unictype/pr_xid_continue.h: Regenerated.
24488         * lib/unictype/pr_xid_start.h: Regenerated.
24489         * lib/unictype/pr_zero_width.h: Regenerated.
24490         * lib/unictype/scripts.h: Regenerated.
24491         * lib/unictype/scripts_byname.gperf: Regenerated.
24492         * lib/unictype/sy_java_ident.h: Regenerated.
24493         * lib/unilbrk/lbrkprop1.h: Regenerated.
24494         * lib/unilbrk/lbrkprop2.h: Regenerated.
24495         * tests/unictype/test-categ_C.c: Regenerated.
24496         * tests/unictype/test-categ_Cf.c: Regenerated.
24497         * tests/unictype/test-categ_Cn.c: Regenerated.
24498         * tests/unictype/test-categ_L.c: Regenerated.
24499         * tests/unictype/test-categ_Ll.c: Regenerated.
24500         * tests/unictype/test-categ_Lm.c: Regenerated.
24501         * tests/unictype/test-categ_Lo.c: Regenerated.
24502         * tests/unictype/test-categ_Lu.c: Regenerated.
24503         * tests/unictype/test-categ_M.c: Regenerated.
24504         * tests/unictype/test-categ_Mc.c: Regenerated.
24505         * tests/unictype/test-categ_Me.c: Regenerated.
24506         * tests/unictype/test-categ_Mn.c: Regenerated.
24507         * tests/unictype/test-categ_N.c: Regenerated.
24508         * tests/unictype/test-categ_Nd.c: Regenerated.
24509         * tests/unictype/test-categ_Nl.c: Regenerated.
24510         * tests/unictype/test-categ_No.c: Regenerated.
24511         * tests/unictype/test-categ_P.c: Regenerated.
24512         * tests/unictype/test-categ_Pd.c: Regenerated.
24513         * tests/unictype/test-categ_Pe.c: Regenerated.
24514         * tests/unictype/test-categ_Pf.c: Regenerated.
24515         * tests/unictype/test-categ_Pi.c: Regenerated.
24516         * tests/unictype/test-categ_Po.c: Regenerated.
24517         * tests/unictype/test-categ_Ps.c: Regenerated.
24518         * tests/unictype/test-categ_S.c: Regenerated.
24519         * tests/unictype/test-categ_Sk.c: Regenerated.
24520         * tests/unictype/test-categ_Sm.c: Regenerated.
24521         * tests/unictype/test-categ_So.c: Regenerated.
24522         * tests/unictype/test-ctype_alnum.c: Regenerated.
24523         * tests/unictype/test-ctype_alpha.c: Regenerated.
24524         * tests/unictype/test-ctype_graph.c: Regenerated.
24525         * tests/unictype/test-ctype_lower.c: Regenerated.
24526         * tests/unictype/test-ctype_print.c: Regenerated.
24527         * tests/unictype/test-ctype_punct.c: Regenerated.
24528         * tests/unictype/test-ctype_upper.c: Regenerated.
24529         * tests/unictype/test-decdigit.h: Regenerated.
24530         * tests/unictype/test-digit.h: Regenerated.
24531         * tests/unictype/test-numeric.h: Regenerated.
24532         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24533         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24534         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24535         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24536         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24537         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24538         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24539         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24540         * tests/unictype/test-pr_combining.c: Regenerated.
24541         * tests/unictype/test-pr_dash.c: Regenerated.
24542         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24543         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24544         * tests/unictype/test-pr_deprecated.c: Regenerated.
24545         * tests/unictype/test-pr_diacritic.c: Regenerated.
24546         * tests/unictype/test-pr_extender.c: Regenerated.
24547         * tests/unictype/test-pr_format_control.c: Regenerated.
24548         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24549         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24550         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24551         * tests/unictype/test-pr_id_continue.c: Regenerated.
24552         * tests/unictype/test-pr_id_start.c: Regenerated.
24553         * tests/unictype/test-pr_ideographic.c: Regenerated.
24554         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24555         * tests/unictype/test-pr_lowercase.c: Regenerated.
24556         * tests/unictype/test-pr_math.c: Regenerated.
24557         * tests/unictype/test-pr_numeric.c: Regenerated.
24558         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24559         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24560         Regenerated.
24561         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24562         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24563         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24564         * tests/unictype/test-pr_other_math.c: Regenerated.
24565         * tests/unictype/test-pr_punctuation.c: Regenerated.
24566         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24567         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24568         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24569         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24570         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24571         * tests/unictype/test-pr_uppercase.c: Regenerated.
24572         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24573         * tests/unictype/test-pr_xid_start.c: Regenerated.
24574         * tests/unictype/test-pr_zero_width.c: Regenerated.
24575
24576         Update to Unicode 5.1.0.
24577         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24578         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24579         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24580         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24581         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24582         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24583         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24584         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24585         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24586         (nonspacing_table_ind): Update.
24587         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24588
24589         Update to Unicode 5.1.0.
24590         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24591         code transform.
24592         * lib/uniname/uniname.c (unicode_character_name,
24593         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24594         * lib/uniname/uninames.h: Regenerated.
24595         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24596
24597 2009-02-07  Bruno Haible  <bruno@clisp.org>
24598
24599         Merge gen-ctype and gen-lbrk into a single program.
24600         * lib/gen-uni-tables.c: New file, incorporating
24601         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24602         Add directory prefixes to the names of the generated files.
24603         * lib/unictype/gen-ctype.c: Remove file.
24604         * lib/unilbrk/gen-lbrk.c: Remove file.
24605         * modules/gen-uni-tables: New file.
24606         * modules/unictype/gen-ctype: Remove file.
24607         * modules/unilbrk/gen-lbrk: Remove file.
24608
24609 2009-02-07  Bruno Haible  <bruno@clisp.org>
24610
24611         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24612
24613         New module 'unistr/u32-strcoll'.
24614         * modules/unistr/u32-strcoll: New file.
24615         * lib/unistr/u32-strcoll.c: New file.
24616
24617         New module 'unistr/u16-strcoll'.
24618         * modules/unistr/u16-strcoll: New file.
24619         * lib/unistr/u16-strcoll.c: New file.
24620
24621         New module 'unistr/u8-strcoll'.
24622         * modules/unistr/u8-strcoll: New file.
24623         * lib/unistr/u8-strcoll.c: New file.
24624         * lib/unistr/u-strcoll.h: New file.
24625
24626 2009-02-07  Bruno Haible  <bruno@clisp.org>
24627
24628         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24629         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24630         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24631         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24632         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24633         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24634
24635 2009-02-07  Bruno Haible  <bruno@clisp.org>
24636
24637         Make 64-bit clean.
24638         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24639         output_combclass, output_bidi_category, output_decimal_digit,
24640         output_digit, output_numeric, output_mirror, output_scripts,
24641         output_ident_category): Use proper width specifier in format strings.
24642
24643 2009-02-07  Bruno Haible  <bruno@clisp.org>
24644
24645         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24646         failure behaviour.
24647
24648 2009-02-07  Jim Meyering  <meyering@redhat.com>
24649
24650         regex: avoid compilation failure with upcoming gcc-4.4
24651         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
24652         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
24653         "... error: integer overflow in preprocessor expression".
24654
24655 2009-02-05  Ben Pfaff  <blp@gnu.org>
24656
24657         Fix link errors on Windows when close module is used.
24658         * modules/close: Add $(LIB_CLOSE) to Link section.
24659         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
24660         $(LIB_CLOSE) on Windows.
24661
24662 2009-02-05  Jim Meyering  <meyering@redhat.com>
24663
24664         still avoid unused-parameter warnings, but do it cleanly
24665         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
24666         (get_fs_usage): Cast to void instead.
24667         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
24668         (dev_from_mount_options, read_file_system_list): Cast to void.
24669         Prompted by Bruno Haible.
24670
24671 2009-02-04  Jim Meyering  <meyering@redhat.com>
24672
24673         fsusage.c: correct copyright year
24674         * lib/fsusage.c: Reflect year in which the change is pushed into
24675
24676         avoid misc. warnings
24677         * lib/fsusage.c (UNUSED_PARAM): Define.
24678         (get_fs_usage): Mark parameter "disk" as unused.
24679         * lib/getugroups.c (getgrent): Use "void" in prototype.
24680         * lib/mountlist.c: Mark unused parameters.
24681         (read_file_system_list): Declare a local with "const".
24682         * lib/nanosleep.c (getnow): Declare static.
24683         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
24684
24685         dirfd: set errno upon failure
24686         * lib/dirfd.c: Include <errno.h>.
24687         Set errno to ENOTSUP when returning -1.
24688         * modules/dirfd (Depends-on): Add errno.
24689         Suggested by John Kodis <kodis@comcast.net>.
24690
24691 2009-02-01  Bruno Haible  <bruno@clisp.org>
24692
24693         Don't assume sizeof (long) >= sizeof (void *).
24694         * lib/memcmp.c: Include stdint.h.
24695         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
24696         srcp2 to 'const byte *'.
24697         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
24698         types to uintptr_t.
24699         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
24700         * modules/memcmp (Depends-on): Add stdint.
24701         Reported by Ozkan Sezer <sezeroz@gmail.com>.
24702
24703 2009-01-30  Eric Blake  <ebb9@byu.net>
24704
24705         fix more require-before-expand issues
24706         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
24707         expand, AC_PROG_AWK.
24708         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
24709
24710 2009-01-28  Eric Blake  <ebb9@byu.net>
24711
24712         version-etc: use consistent URL formatting
24713         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
24714         Improve formatting.  Use fputs for string without %.
24715
24716 2009-01-28  Jim Meyering  <meyering@redhat.com>
24717
24718         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
24719         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
24720         "underquoted definition of NAME" from autoconf-2.59.
24721
24722 2009-01-28  Bruno Haible  <bruno@clisp.org>
24723
24724         * doc/gnulib.texi: Add "Obsolete modules" to index.
24725
24726 2009-01-28  Jim Meyering  <meyering@redhat.com>
24727
24728         useless-if-before-free: recognize more variants
24729         * build-aux/useless-if-before-free: Also recognize e.g.,
24730         if (NULL != p) free (p);
24731
24732 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
24733
24734         test-getaddrinfo: skip (don't fail) this test when there's no network
24735         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
24736         on the presumption that it means you lack network access.
24737
24738 2009-01-26  Jim Meyering  <meyering@redhat.com>
24739
24740         fflush: avoid warnings on modern systems
24741         * lib/fflush.c (rpl_fflush): Move declarations of locals,
24742         pos and result, into scopes where they're used.
24743
24744 2009-01-26  Eric Blake  <ebb9@byu.net>
24745
24746         Silence warning reintroduced by recent extensions patch.
24747         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
24748         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
24749         autoconf.
24750
24751         Backport improved autoconf semantics of AC_DEFUN_ONCE.
24752         * m4/00gnulib.m4: New file.
24753         * gnulib-tool (func_get_filelist): Always use it.
24754         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
24755         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
24756
24757 2009-01-25  Bruno Haible  <bruno@clisp.org>
24758
24759         Make test-quotearg work on MacOS X and AIX.
24760         * tests/test-quotearg.sh: New file.
24761         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
24762         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
24763         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
24764         include <libintl.h>.
24765         (fake_locale): Remove variable.
24766         (gettext, dgettext, dcgettext): Remove functions.
24767         (main): Instead of setting a fake locale, set a real locale. Call
24768         textdomain and bindtextdomain.
24769         * modules/quotearg-tests (Files): Add the new files.
24770         (Depends-on): Add gettext, setenv, unsetenv.
24771         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24772         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
24773         Augment TESTS_ENVIRONMENT.
24774
24775 2009-01-25  Bruno Haible  <bruno@clisp.org>
24776
24777         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
24778         fr_FR.ISO8859-1 locale on MacOS X.
24779         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
24780         ja_JP.eucJP locale on MacOS X.
24781         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
24782         zh_CN.GB18030 locale on MacOS X.
24783
24784 2009-01-25  Bruno Haible  <bruno@clisp.org>
24785
24786         Avoid link errors on MacOS X 10.3.
24787         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
24788         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24789
24790 2009-01-25  Bruno Haible  <bruno@clisp.org>
24791
24792         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24793         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
24794         * modules/pipe (Files): Remove m4/posix_spawn.m4.
24795         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24796         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
24797         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24798         posix_spawnattr_init, posix_spawnattr_setsigmask,
24799         posix_spawnattr_setflags, posix_spawnattr_destroy.
24800
24801         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24802         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
24803         * modules/execute (Files): Remove m4/posix_spawn.m4.
24804         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24805         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24806         posix_spawnattr_init, posix_spawnattr_setsigmask,
24807         posix_spawnattr_setflags, posix_spawnattr_destroy.
24808
24809 2009-01-25  Bruno Haible  <bruno@clisp.org>
24810
24811         * lib/glthread/threadlib.c: Include <stdlib.h>.
24812
24813 2009-01-25  Bruno Haible  <bruno@clisp.org>
24814
24815         * lib/glthread/threadlib.c (dummy): New declaration.
24816
24817 2009-01-25  Bruno Haible  <bruno@clisp.org>
24818
24819         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24820         multibyte characters also for the GB18030 encoding. Don't crash when
24821         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24822
24823 2009-01-25  Bruno Haible  <bruno@clisp.org>
24824
24825         Avoid redefining 'struct random_data' on OSF/1 5.1.
24826         * lib/stdlib.in.h: Include <random.h> if it exists.
24827         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24828         HAVE_RANDOM_H. Include <random.h> when testing whether
24829         'struct random_data' exists.
24830         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24831
24832 2009-01-25  Bruno Haible  <bruno@clisp.org>
24833
24834         Don't install charset.alias on MacOS X >= 10.3.
24835         * lib/localcharset.c (DARWIN7): New macro.
24836         (get_charset_aliases): Hardcode the result for Darwin7.
24837         * modules/localcharset (install-exec-local): Don't install
24838         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24839
24840 2009-01-25  Bruno Haible  <bruno@clisp.org>
24841
24842         Don't install charset.alias on mingw and Cygwin.
24843         * modules/localcharset (install-exec-local): Don't install
24844         charset.alias on mingw and Cygwin, if the file does not yet exist.
24845         The result for these platforms is hardcoded in localcharset.c.
24846
24847 2009-01-25  Bruno Haible  <bruno@clisp.org>
24848
24849         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24851         before requiring AC_USE_SYSTEM_EXTENSIONS.
24852
24853 2009-01-25  Jim Meyering  <meyering@redhat.com>
24854
24855         c-strtod: avoid warnings
24856         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24857         "assignment discards qualifiers from pointer target type" warnings.
24858
24859 2009-01-24  Bruno Haible  <bruno@clisp.org>
24860
24861         Add support for non-UTF-8 locales on MacOS X.
24862         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24863         canonical encodings. For Darwin 7 and newer, don't map traditional
24864         encodings to UTF-8.
24865         Reported by Vincent Lefevre <vincent@vinc17.org>
24866         at <http://savannah.gnu.org/bugs/?25235>.
24867
24868 2009-01-24  Bruno Haible  <bruno@clisp.org>
24869
24870         * doc/gnulib.texi (Obsolete modules): New section.
24871         Reported by Mike Frysinger <vapier@gentoo.org>.
24872
24873 2009-01-24  Bruno Haible  <bruno@clisp.org>
24874
24875         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24876         (%.dvi): New rule.
24877
24878 2009-01-24  Bruno Haible  <bruno@clisp.org>
24879
24880         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24881         Reported by Eric Blake.
24882
24883 2009-01-24  Bruno Haible  <bruno@clisp.org>
24884
24885         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24886         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24887         Reported by Gary V. Vaughan <gary@gnu.org>.
24888
24889 2009-01-24  Bruno Haible  <bruno@clisp.org>
24890
24891         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24892
24893 2009-01-23  Bruno Haible  <bruno@clisp.org>
24894
24895         Make c-strtod, c-strtold usable in libraries.
24896         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24897         (C_STRTOD): Call strdup instead of xstrdup.
24898         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24899         * modules/c-strtold (Depends-on): Likewise.
24900         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24901         * NEWS: Mention the change.
24902         Reported by Michael Gold <mgold@ncf.ca>.
24903
24904 2009-01-23  Jim Meyering  <meyering@redhat.com>
24905
24906         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24907         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24908         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24909
24910 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24911
24912         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24913         GNU CoreUtils.
24914         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24915         * modules/version-etc (Description): Update.
24916
24917 2009-01-22  Bruno Haible  <bruno@clisp.org>
24918
24919         Cache the C locale object.
24920         * lib/c-strtod.c (c_locale_cache): New variable.
24921         (c_locale): New function.
24922         (C_STRTOD): Use it, and don't call freelocale.
24923         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24924         Suggested by Paolo Bonzini.
24925
24926 2009-01-21  Bruno Haible  <bruno@clisp.org>
24927
24928         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24929         conditions other than overflow.
24930
24931 2009-01-21  Bruno Haible  <bruno@clisp.org>
24932
24933         * lib/c-strtod.c: Include errno.h.
24934         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24935         value from STRTOD_L and STRTOD.
24936
24937 2009-01-21  Bruno Haible  <bruno@clisp.org>
24938         and Jim Meyering  <meyering@redhat.com>
24939
24940         nanosleep: skip configure test (fail it) for apple universal builds
24941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24942         universal builds, assume that nanosleep does not work.
24943         * modules/nanosleep (Depends-on): Add multiarch.
24944
24945         mktime: skip configure test (fail it) for apple universal builds
24946         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24947         universal builds, assume that mktime does not work.
24948         * modules/mktime (Depends-on): Add multiarch.
24949
24950 2009-01-21  Eric Blake  <ebb9@byu.net>
24951
24952         multiarch: avoid expand-before-require warning
24953         * modules/multiarch (configure.ac): Require, rather than expand,
24954         gl_MULTIARCH.
24955         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24956         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24957         enforce that all clients require it.  Partial reversion of
24958         2008-12-29 patch.
24959
24960         error: avoid expand-before-require warning
24961         * modules/errno (configure.ac): Require, rather than expand,
24962         gl_HEADER_ERRNO_H.
24963         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24964         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24965         enforce that all clients require it.
24966
24967         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24968         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24969         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24970         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24971
24972 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24973
24974         Revert:
24975         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24976
24977         regex: do not depend on obsolete modules.
24978         * modules/regex: Remove memcmp and memmove.
24979
24980 2009-01-20  Bruno Haible  <bruno@clisp.org>
24981
24982         Make the 'link' module link on Windows NT 4.
24983         * lib/link.c (_WIN32_WINNT): Don't define.
24984         (CreateHardLinkFuncType): New type.
24985         (CreateHardLinkFunc, initialized): New variables.
24986         (initialize): New function.
24987         (link): Invoke CreateHardLink indirectly through the function pointer.
24988
24989 2009-01-20  Bruno Haible  <bruno@clisp.org>
24990
24991         Fix compilation failure on mingw.
24992         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24993
24994 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24995
24996         * doc/c-strtod.texi: Mention a couple of restrictions.
24997
24998 2009-01-20  Jim Meyering  <meyering@redhat.com>
24999
25000         gettimeofday: move more declarations out of functions
25001         * lib/gettimeofday.c: Move extern declarations of tzset and
25002         gmtime out of containing functions.  Prompted by Bruno Haible.
25003
25004 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25005
25006         regex: do not depend on obsolete modules.
25007         * modules/regex: Remove memcmp and memmove.
25008
25009 2009-01-19  Bruno Haible  <bruno@clisp.org>
25010
25011         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25012         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
25013         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25014         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
25015         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
25016
25017 2009-01-19  Bruno Haible  <bruno@clisp.org>
25018
25019         * tests/test-link.c: Include <errno.h>.
25020         (main): Exit with code 77 when a hard link cannot be created due to
25021         the file system.
25022         * tests/test-link.sh: Skip test when a hard link cannot be created due
25023         to the file system.
25024         Suggested by Eric Blake.
25025
25026 2009-01-19  Martin Lambers  <marlam@marlam.de>
25027
25028         * modules/link-tests: New file.
25029         * tests/test-link.sh: New file.
25030         * tests/test-link.c: New file.
25031
25032 2009-01-19  Eric Blake  <ebb9@byu.net>
25033
25034         doc: mention another function added in cygwin 1.7.0
25035         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
25036         Another new function in cygwin 1.7.
25037
25038 2009-01-19  Bruno Haible  <bruno@clisp.org>
25039
25040         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25041         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
25042         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
25043         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25044         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25045         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
25046         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25047         * m4/md4.m4 (gl_MD4): Likewise.
25048         * m4/md5.m4 (gl_MD5): Likewise.
25049         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
25050         * m4/sha1.m4 (gl_SHA1): Likewise.
25051         * m4/sha256.m4 (gl_SHA256): Likewise.
25052         * m4/sha512.m4 (gl_SHA512): Likewise.
25053
25054 2009-01-19  Bruno Haible  <bruno@clisp.org>
25055
25056         * modules/uniname/uniname-tests (Depends-on): Add progname.
25057         * tests/uniname/test-uninames.c: Include progname.h.
25058         (main): Call set_program_name.
25059
25060         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
25061         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
25062         (main): Call set_program_name.
25063
25064         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
25065         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
25066         (main): Call set_program_name.
25067
25068         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
25069         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
25070         (main): Call set_program_name.
25071
25072         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
25073         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
25074         (main): Call set_program_name.
25075
25076         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
25077         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
25078         (main): Call set_program_name.
25079
25080         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
25081         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
25082         (main): Call set_program_name.
25083
25084         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
25085         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
25086         (main): Call set_program_name.
25087
25088         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
25089         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
25090         (main): Call set_program_name.
25091
25092 2009-01-19  Eric Blake  <ebb9@byu.net>
25093
25094         test-unistd: test previous patch
25095         * tests/test-unistd.c: Test *_FILENO macros.
25096
25097         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
25098         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25099         Guarantee a definition.
25100         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
25101         * modules/unistd-safer (Depends-on): Add dependency on unistd.
25102         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
25103         * lib/dup-safer.c (STDERR_FILENO): Likewise.
25104         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25105         Likewise.
25106         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
25107         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
25108         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25109         Likewise.
25110         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
25111         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
25112         (STDERR_FILENO): Likewise.
25113         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
25114         (STDERR_FILENO): Likewise.
25115         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
25116         (STDERR_FILENO): Likewise.
25117         Reported by Elbert Pol.
25118
25119 2009-01-19  Eric Blake  <ebb9@byu.net>
25120
25121         doc: mention more functions added in cygwin 1.7.0
25122         * doc/posix-functions/abort.texi (abort): Update wording related
25123         to cygwin.
25124         * doc/posix-functions/daylight.texi (daylight): Likewise.
25125         * doc/posix-functions/optarg.texi (optarg): Likewise.
25126         * doc/posix-functions/optarg.texi (opterr): Likewise.
25127         * doc/posix-functions/optarg.texi (optind): Likewise.
25128         * doc/posix-functions/optarg.texi (optopt): Likewise.
25129         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
25130         worked in 1.5.x, and was withdrawn in 1.7.
25131         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
25132         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
25133         cygwin versions.
25134         * doc/posix-functions/perror.texi (perror): Likewise.
25135         * doc/posix-functions/printf.texi (printf): Likewise.
25136         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
25137         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
25138         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
25139         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
25140         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25141         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
25142         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
25143         Likewise.
25144         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
25145         Likewise.
25146         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
25147         this function.
25148         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
25149         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
25150         Likewise.
25151         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
25152         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
25153         * doc/posix-functions/confstr.texi (confstr): Likewise.
25154         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
25155         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
25156         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
25157         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
25158         * doc/posix-functions/fputws.texi (fputws): Likewise.
25159         * doc/posix-functions/fwide.texi (fwide): Likewise.
25160         * doc/posix-functions/getwc.texi (getwc): Likewise.
25161         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
25162         * doc/posix-functions/putwc.texi (putwc): Likewise.
25163         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
25164         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
25165         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
25166         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
25167         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
25168         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
25169         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
25170         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
25171         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
25172         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
25173         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
25174
25175 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
25176
25177         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
25178         * lib/ioctl.c: Include <sys/ioctl.h>.
25179
25180 2009-01-19  Simon Josefsson  <simon@josefsson.org>
25181
25182         * modules/getdate-tests (Depends-on): Add progname.
25183         * tests/test-getdate.c: Use progname module, to avoid link errors
25184         on non-glibc systems.
25185
25186 2009-01-18  Simon Josefsson  <simon@josefsson.org>
25187
25188         * modules/filenamecat-tests (Depends-on): Add progname.
25189         * modules/fstrcmp-tests (Depends-on): Likewise.
25190
25191         * tests/test-filenamecat.c: Use progname module, to avoid link
25192         errors on non-glibc systems.
25193         * tests/test-fstrcmp.c: Likewise.
25194
25195 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
25196
25197         gettimeofday: avoid warning: nested extern declaration of 'localtime'
25198         * lib/gettimeofday.c: Move extern declaration out of function.
25199
25200 2009-01-18  Bruno Haible  <bruno@clisp.org>
25201
25202         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
25203         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
25204         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
25205
25206 2009-01-18  Bruno Haible  <bruno@clisp.org>
25207
25208         * lib/strftime.c (MEMPCPY): Remove unused macro.
25209         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
25210
25211 2009-01-18  Martin Lambers  <marlam@marlam.de>
25212
25213         New module 'link'.
25214         * lib/unistd.in.h (link): New declaration.
25215         * lib/link.c: New file.
25216         * m4/link.m4: New file.
25217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
25218         HAVE_LINK.
25219         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
25220         * modules/link: New file.
25221         * doc/posix-functions/link.texi: Mention the new module.
25222
25223 2009-01-18  Bruno Haible  <bruno@clisp.org>
25224
25225         * tests/test-avltree_list.c (main): Call set_program_name.
25226         * tests/test-avltree_oset.c (main): Likewise.
25227         * tests/test-obstack-printf.c: Include progname.h.
25228         (main): Call set_program_name.
25229         * tests/test-quotearg.c: Include progname.h.
25230         (main): Call set_program_name.
25231         * tests/test-xmemdup0.c: Include progname.h.
25232         (main): Call set_program_name.
25233
25234 2009-01-18  Bruno Haible  <bruno@clisp.org>
25235
25236         New module 'alphasort'.
25237         * lib/dirent.in.h (alphasort): New declaration.
25238         * lib/alphasort.c: New file, from glibc with modifications.
25239         * m4/alphasort.m4: New file.
25240         * modules/alphasort: New file.
25241         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
25242         HAVE_ALPHASORT.
25243         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
25244         HAVE_ALPHASORT.
25245         * doc/posix-functions/alphasort.texi: Mention the new module and the
25246         portability problems.
25247
25248 2009-01-18  Bruno Haible  <bruno@clisp.org>
25249
25250         New module 'scandir'.
25251         * lib/dirent.in.h (scandir): New declaration.
25252         * lib/scandir.c: New file, from glibc with modifications.
25253         * m4/scandir.m4: New file.
25254         * modules/scandir: New file.
25255         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
25256         HAVE_SCANDIR.
25257         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
25258         HAVE_SCANDIR.
25259         * doc/posix-functions/scandir.texi: Mention the new module and the
25260         portability problems.
25261
25262 2009-01-17  Bruno Haible  <bruno@clisp.org>
25263
25264         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
25265         Update documentation.
25266         (func_remove_suffix): Escape all dots in the suffix. Update
25267         documentation.
25268         (func_filter_filelist): Update documentation.
25269         Reported by Ralf Wildenhues.
25270
25271 2009-01-17  Bruno Haible  <bruno@clisp.org>
25272
25273         * modules/dprintf-posix-tests: New file.
25274         * tests/test-dprintf-posix.sh: New file.
25275         * tests/test-dprintf-posix.c: New file.
25276
25277         New modules 'dprintf', 'dprintf-posix'.
25278         * lib/stdio.in.h (dprintf): New declaration.
25279         * lib/dprintf.c: New file.
25280         * m4/dprintf.m4: New file.
25281         * m4/dprintf-posix.m4: New file.
25282         * modules/dprintf: New file.
25283         * modules/dprintf-posix: New file.
25284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
25285         HAVE_DPRINTF, REPLACE_DPRINTF.
25286         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
25287         HAVE_DPRINTF, REPLACE_DPRINTF.
25288         * doc/posix-functions/dprintf.texi: Mention the new modules.
25289
25290 2009-01-17  Bruno Haible  <bruno@clisp.org>
25291
25292         * modules/vdprintf-posix-tests: New file.
25293         * tests/test-vdprintf-posix.sh: New file.
25294         * tests/test-vdprintf-posix.c: New file.
25295
25296         New modules 'vdprintf', 'vdprintf-posix'.
25297         * lib/stdio.in.h (vdprintf): New declaration.
25298         * lib/vdprintf.c: New file.
25299         * m4/vdprintf.m4: New file.
25300         * m4/vdprintf-posix.m4: New file.
25301         * modules/vdprintf: New file.
25302         * modules/vdprintf-posix: New file.
25303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
25304         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25305         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
25306         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25307         * doc/posix-functions/vdprintf.texi: Mention the new modules.
25308
25309 2009-01-17  Bruno Haible  <bruno@clisp.org>
25310
25311         Fix replacement of fopen on mingw.
25312         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
25313         mingw.
25314
25315 2009-01-17  Bruno Haible  <bruno@clisp.org>
25316
25317         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
25318         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
25319
25320 2009-01-17  Bruno Haible  <bruno@clisp.org>
25321
25322         Avoid test-fflush2.sh failure on mingw.
25323         * tests/test-fflush2.c: Include binary-io.h.
25324         (main): Put standard input into binary mode.
25325         * modules/fflush-tests (Depends-on): Add binary-io.
25326
25327 2009-01-17  Bruno Haible  <bruno@clisp.org>
25328
25329         * lib/wchar.in.h: In another particular situation, include only the
25330         system's <wchar.h> file.
25331         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
25332         Reported by Albert Chin-A-Young <china@thewrittenword.com>
25333         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
25334
25335 2009-01-17  Bruno Haible  <bruno@clisp.org>
25336
25337         Support for stripping executables in --enable-relocatable.
25338         * build-aux/install-reloc: Expect one more argument, or an environment
25339         variable RELOC_STRIP_PROG. If set, strip the destination program and
25340         its wrapper.
25341         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
25342         RELOC_STRIP_PROG.
25343         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
25344         to set RELOCATABLE_STRIP.
25345         * NEWS: Mention the new Makefile requirement.
25346
25347 2009-01-17  Bruno Haible  <bruno@clisp.org>
25348
25349         * build-aux/install-reloc: Remove debugging information left over by
25350         C compiler on MacOS X.
25351
25352 2009-01-17  Bruno Haible  <bruno@clisp.org>
25353
25354         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
25355         * lib/progreloc.c (find_executable): Fix type of pointer passed to
25356         _NSGetExecutablePath.
25357
25358 2009-01-16  Jim Meyering  <meyering@redhat.com>
25359
25360         strerror: avoid warnings about discarding "const"
25361         * lib/strerror.c (rpl_strerror): Instead of returning a const
25362         string from each and every "case", use a variable, and add a single
25363         cast after the switch.
25364
25365 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
25366
25367         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25368
25369 2009-01-16  Bruno Haible  <bruno@clisp.org>
25370
25371         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25372         array initializer syntax that also works in C++ mode.
25373         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25374
25375 2009-01-16  Jim Meyering  <meyering@redhat.com>
25376
25377         poll: suppress a warning
25378         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25379         to ignore "...unsigned expression < 0 is always false" warnings.
25380
25381 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25382
25383         poll: remove declarations of unused variables
25384         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25385         sockbuf and optlen.
25386
25387 2009-01-15  Bruno Haible  <bruno@clisp.org>
25388
25389         Make fflush-after-ungetc POSIX compliant on BSD systems.
25390         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25391         (clear_ungetc_buffer): Implement also for other systems.
25392         (rpl_fflush): On glibc systems, invoke
25393         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25394         clear_ungetc_buffer after fetching the stream's position, not before.
25395
25396 2009-01-15  Bruno Haible  <bruno@clisp.org>
25397
25398         Make fflush-after-ungetc POSIX compliant on glibc systems.
25399         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25400         after ungetc.
25401         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25402         (rpl_fflush): On glibc systems, simply call the system's fflush
25403         function after clearing the ungetc buffer.
25404         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25405         Instead, lseek only to the end of file, then use the system's fseeko
25406         for the rest. On glibc systems, reset the EOF indicator bit.
25407
25408 2009-01-15  Jim Meyering  <meyering@redhat.com>
25409
25410         openmp.m4: revert quote-adding change, for portability to older autoconf
25411         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25412         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25413         Simon Josefsson noticed the problem when using autoconf-2.61.
25414
25415 2009-01-15  Bruno Haible  <bruno@clisp.org>
25416
25417         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25418         * tests/test-fflush2.c (ASSERT): Always fail.
25419         (main): Add two tests for fflush() after ungetc(), taking into account
25420         the Austin Group's clarification.
25421         Suggested by Eric Blake.
25422
25423 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25424
25425         mktime.m4: remove K&R-style function prototypes
25426         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25427         for the Sun C++ compiler.
25428
25429 2009-01-14  Bruno Haible  <bruno@clisp.org>
25430
25431         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25432         while including <wchar.h>.
25433         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25434         the system's <wchar.h> file.
25435         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25436
25437 2009-01-14  Bruno Haible  <bruno@clisp.org>
25438
25439         * m4/csharp.m4: Don't mention gettext on the serial number line.
25440         * m4/csharpexec.m4: Likewise.
25441         * m4/eaccess.m4: Likewise.
25442         * m4/javaexec.m4: Likewise.
25443         * m4/sig_atomic_t.m4: Likewise.
25444         * m4/tmpdir.m4: Likewise.
25445         * m4/intldir.m4: Bump gettext version.
25446         * m4/lib-ld.m4: Likewise.
25447
25448 2009-01-14  Bruno Haible  <bruno@clisp.org>
25449
25450         * lib/progname.c (set_program_name): Add more comments.
25451         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25452
25453 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25454
25455         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25456         were sys/stat.h does not define it.
25457
25458 2009-01-14  Jim Meyering  <meyering@redhat.com>
25459
25460         many *.m4 files: improve m4 quoting
25461         99% of this change was performed by running the following commands:
25462         git ls-files | grep '\.m4$' | xargs perl -pi \
25463           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25464           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25465           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25466           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25467         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25468         The remainder were to add Copyright dates, increment serial numbers,
25469         undo some changes in comments, exclude m4/intl.m4, and add quotes
25470         around the "1" in ",1" where the unusual spacing prohibited the
25471         above regexps from doing the job.  For more details, see
25472         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25473         * m4/acl.m4: Modified.
25474         * m4/afs.m4: Likewise.
25475         * m4/alloca.m4: Likewise.
25476         * m4/argp.m4: Likewise.
25477         * m4/argz.m4: Likewise.
25478         * m4/atexit.m4: Likewise.
25479         * m4/bison-i18n.m4: Likewise.
25480         * m4/bison.m4: Likewise.
25481         * m4/byteswap.m4: Likewise.
25482         * m4/c-stack.m4: Likewise.
25483         * m4/c-strtod.m4: Likewise.
25484         * m4/calloc.m4: Likewise.
25485         * m4/canonicalize-lgpl.m4: Likewise.
25486         * m4/chown.m4: Likewise.
25487         * m4/clock_time.m4: Likewise.
25488         * m4/codeset.m4: Likewise.
25489         * m4/copy-file.m4: Likewise.
25490         * m4/csharp.m4: Likewise.
25491         * m4/csharpcomp.m4: Likewise.
25492         * m4/csharpexec.m4: Likewise.
25493         * m4/d-ino.m4: Likewise.
25494         * m4/d-type.m4: Likewise.
25495         * m4/dirfd.m4: Likewise.
25496         * m4/double-slash-root.m4: Likewise.
25497         * m4/eaccess.m4: Likewise.
25498         * m4/eealloc.m4: Likewise.
25499         * m4/environ.m4: Likewise.
25500         * m4/errno_h.m4: Likewise.
25501         * m4/euidaccess.m4: Likewise.
25502         * m4/execute.m4: Likewise.
25503         * m4/fatal-signal.m4: Likewise.
25504         * m4/fchdir.m4: Likewise.
25505         * m4/fcntl_h.m4: Likewise.
25506         * m4/fileblocks.m4: Likewise.
25507         * m4/filenamecat.m4: Likewise.
25508         * m4/findprog.m4: Likewise.
25509         * m4/flexmember.m4: Likewise.
25510         * m4/fnmatch.m4: Likewise.
25511         * m4/fopen.m4: Likewise.
25512         * m4/fpending.m4: Likewise.
25513         * m4/fprintf-posix.m4: Likewise.
25514         * m4/free.m4: Likewise.
25515         * m4/frexp.m4: Likewise.
25516         * m4/frexpl.m4: Likewise.
25517         * m4/fsusage.m4: Likewise.
25518         * m4/ftruncate.m4: Likewise.
25519         * m4/gc-camellia.m4: Likewise.
25520         * m4/gc-random.m4: Likewise.
25521         * m4/gc.m4: Likewise.
25522         * m4/getaddrinfo.m4: Likewise.
25523         * m4/getcwd-abort-bug.m4: Likewise.
25524         * m4/getcwd-path-max.m4: Likewise.
25525         * m4/getdate.m4: Likewise.
25526         * m4/getdomainname.m4: Likewise.
25527         * m4/getgroups.m4: Likewise.
25528         * m4/gethostname.m4: Likewise.
25529         * m4/gethrxtime.m4: Likewise.
25530         * m4/getline.m4: Likewise.
25531         * m4/getloadavg.m4: Likewise.
25532         * m4/getndelim2.m4: Likewise.
25533         * m4/getpass.m4: Likewise.
25534         * m4/gettext.m4: Likewise.
25535         * m4/gettime.m4: Likewise.
25536         * m4/gettimeofday.m4: Likewise.
25537         * m4/gnulib-common.m4: Likewise.
25538         * m4/group-member.m4: Likewise.
25539         * m4/host-os.m4: Likewise.
25540         * m4/iconv.m4: Likewise.
25541         * m4/iconv_open.m4: Likewise.
25542         * m4/inet_ntop.m4: Likewise.
25543         * m4/inet_pton.m4: Likewise.
25544         * m4/inline.m4: Likewise.
25545         * m4/intldir.m4: Likewise.
25546         * m4/intlmacosx.m4: Likewise.
25547         * m4/intmax.m4: Likewise.
25548         * m4/intmax_t.m4: Likewise.
25549         * m4/inttypes.m4: Likewise.
25550         * m4/inttypes_h.m4: Likewise.
25551         * m4/inttypes-pri.m4: Likewise.
25552         * m4/isapipe.m4: Likewise.
25553         * m4/isnand.m4: Likewise.
25554         * m4/isnanf.m4: Likewise.
25555         * m4/isnanl.m4: Likewise.
25556         * m4/javacomp.m4: Likewise.
25557         * m4/javaexec.m4: Likewise.
25558         * m4/jm-winsz1.m4: Likewise.
25559         * m4/jm-winsz2.m4: Likewise.
25560         * m4/lchown.m4: Likewise.
25561         * m4/lcmessage.m4: Likewise.
25562         * m4/ldexpl.m4: Likewise.
25563         * m4/lib-ld.m4: Likewise.
25564         * m4/lib-link.m4: Likewise.
25565         * m4/libsigsegv.m4: Likewise.
25566         * m4/link-follow.m4: Likewise.
25567         * m4/localcharset.m4: Likewise.
25568         * m4/locale-fr.m4: Likewise.
25569         * m4/locale-ja.m4: Likewise.
25570         * m4/locale-tr.m4: Likewise.
25571         * m4/locale-zh.m4: Likewise.
25572         * m4/lock.m4: Likewise.
25573         * m4/longlong.m4: Likewise.
25574         * m4/ls-mntd-fs.m4: Likewise.
25575         * m4/lstat.m4: Likewise.
25576         * m4/malloc.m4: Likewise.
25577         * m4/mathl.m4: Likewise.
25578         * m4/mbrtowc.m4: Likewise.
25579         * m4/mbstate_t.m4: Likewise.
25580         * m4/mbswidth.m4: Likewise.
25581         * m4/memchr.m4: Likewise.
25582         * m4/memcmp.m4: Likewise.
25583         * m4/memcpy.m4: Likewise.
25584         * m4/memmem.m4: Likewise.
25585         * m4/memmove.m4: Likewise.
25586         * m4/mempcpy.m4: Likewise.
25587         * m4/memrchr.m4: Likewise.
25588         * m4/memset.m4: Likewise.
25589         * m4/minmax.m4: Likewise.
25590         * m4/mkdir-slash.m4: Likewise.
25591         * m4/mkdtemp.m4: Likewise.
25592         * m4/mktime.m4: Likewise.
25593         * m4/mmap-anon.m4: Likewise.
25594         * m4/mountlist.m4: Likewise.
25595         * m4/nanosleep.m4: Likewise.
25596         * m4/nls.m4: Likewise.
25597         * m4/nocrash.m4: Likewise.
25598         * m4/open.m4: Likewise.
25599         * m4/openat.m4: Likewise.
25600         * m4/openmp.m4: Likewise.
25601         * m4/pathmax.m4: Likewise.
25602         * m4/perl.m4: Likewise.
25603         * m4/physmem.m4: Likewise.
25604         * m4/pipe.m4: Likewise.
25605         * m4/po.m4: Likewise.
25606         * m4/poll.m4: Likewise.
25607         * m4/posixtm.m4: Likewise.
25608         * m4/posixver.m4: Likewise.
25609         * m4/printf-frexp.m4: Likewise.
25610         * m4/printf-frexpl.m4: Likewise.
25611         * m4/printf-posix.m4: Likewise.
25612         * m4/printf-posix-rpl.m4: Likewise.
25613         * m4/printf.m4: Likewise.
25614         * m4/progtest.m4: Likewise.
25615         * m4/putenv.m4: Likewise.
25616         * m4/readline.m4: Likewise.
25617         * m4/readlink.m4: Likewise.
25618         * m4/readutmp.m4: Likewise.
25619         * m4/realloc.m4: Likewise.
25620         * m4/regex.m4: Likewise.
25621         * m4/relocatable.m4: Likewise.
25622         * m4/relocatable-lib.m4: Likewise.
25623         * m4/rename-dest-slash.m4: Likewise.
25624         * m4/rename.m4: Likewise.
25625         * m4/rmdir-errno.m4: Likewise.
25626         * m4/rmdir.m4: Likewise.
25627         * m4/roundf.m4: Likewise.
25628         * m4/roundl.m4: Likewise.
25629         * m4/rpmatch.m4: Likewise.
25630         * m4/save-cwd.m4: Likewise.
25631         * m4/selinux-selinux-h.m4: Likewise.
25632         * m4/setenv.m4: Likewise.
25633         * m4/settime.m4: Likewise.
25634         * m4/sig2str.m4: Likewise.
25635         * m4/sig_atomic_t.m4: Likewise.
25636         * m4/signalblocking.m4: Likewise.
25637         * m4/signbit.m4: Likewise.
25638         * m4/sigpipe.m4: Likewise.
25639         * m4/sockets.m4: Likewise.
25640         * m4/sockpfaf.m4: Likewise.
25641         * m4/st_dm_mode.m4: Likewise.
25642         * m4/stat-time.m4: Likewise.
25643         * m4/stdbool.m4: Likewise.
25644         * m4/stdint.m4: Likewise.
25645         * m4/stdint_h.m4: Likewise.
25646         * m4/stpcpy.m4: Likewise.
25647         * m4/stpncpy.m4: Likewise.
25648         * m4/strcase.m4: Likewise.
25649         * m4/strchrnul.m4: Likewise.
25650         * m4/strcspn.m4: Likewise.
25651         * m4/strdup.m4: Likewise.
25652         * m4/strftime.m4: Likewise.
25653         * m4/strndup.m4: Likewise.
25654         * m4/strnlen.m4: Likewise.
25655         * m4/strpbrk.m4: Likewise.
25656         * m4/strptime.m4: Likewise.
25657         * m4/strsep.m4: Likewise.
25658         * m4/strtod.m4: Likewise.
25659         * m4/strtoimax.m4: Likewise.
25660         * m4/strtok_r.m4: Likewise.
25661         * m4/strtol.m4: Likewise.
25662         * m4/strtoll.m4: Likewise.
25663         * m4/strtoul.m4: Likewise.
25664         * m4/strtoull.m4: Likewise.
25665         * m4/strtoumax.m4: Likewise.
25666         * m4/strverscmp.m4: Likewise.
25667         * m4/threadlib.m4: Likewise.
25668         * m4/timegm.m4: Likewise.
25669         * m4/tm_gmtoff.m4: Likewise.
25670         * m4/tmpdir.m4: Likewise.
25671         * m4/tmpfile.m4: Likewise.
25672         * m4/tzset.m4: Likewise.
25673         * m4/uintmax_t.m4: Likewise.
25674         * m4/unlinkdir.m4: Likewise.
25675         * m4/unlocked-io.m4: Likewise.
25676         * m4/uptime.m4: Likewise.
25677         * m4/userspec.m4: Likewise.
25678         * m4/utimbuf.m4: Likewise.
25679         * m4/utime.m4: Likewise.
25680         * m4/utimes-null.m4: Likewise.
25681         * m4/utimes.m4: Likewise.
25682         * m4/vararrays.m4: Likewise.
25683         * m4/vasnprintf.m4: Likewise.
25684         * m4/vfprintf-posix.m4: Likewise.
25685         * m4/vprintf-posix.m4: Likewise.
25686         * m4/wait-process.m4: Likewise.
25687         * m4/wchar_t.m4: Likewise.
25688         * m4/wint_t.m4: Likewise.
25689         * m4/write-any-file.m4: Likewise.
25690         * m4/yield.m4: Likewise.
25691
25692 2009-01-13  Bruno Haible  <bruno@clisp.org>
25693
25694         Avoid test-copy-file.sh failures when ACL support insufficient.
25695         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
25696         TESTS_ENVIRONMENT.
25697         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
25698         Reported by Jim Meyering.
25699
25700 2009-01-13  Bruno Haible  <bruno@clisp.org>
25701
25702         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
25703         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
25704         * modules/unistdio/u8-printf-parse (Files): Likewise.
25705         * modules/unistdio/u32-printf-parse (Files): Likewise.
25706         * modules/unistdio/ulc-printf-parse (Files): Likewise.
25707
25708 2009-01-13  Simon Josefsson  <simon@josefsson.org>
25709
25710         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
25711         and m4/inttypes_h.m4 too.
25712
25713 2009-01-12  Eric Blake  <ebb9@byu.net>
25714
25715         tests: IRIX 6.2 cc can't compile -0.0 into .data
25716         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
25717         rather than at compile-time.
25718         * tests/test-floorl.c (minus_zero): Likewise.
25719         * tests/test-frexpl.c (minus_zero): Likewise.
25720         * tests/test-isnan.c (minus_zerol): Likewise.
25721         * tests/test-isnanl.h (minus_zero): Likewise.
25722         * tests/test-ldexpl.c (minus_zero): Likewise.
25723         * tests/test-roundl.c (minus_zero): Likewise.
25724         * tests/test-signbit.c (minus_zerol): Likewise.
25725         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25726         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25727         * tests/test-truncl.c (minus_zero): Likewise.
25728         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25729         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25730         Reported by Tom G. Christensen and Nelson H. F. Beebe.
25731
25732 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25733
25734         regex: fix glibc bug 9697
25735         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
25736         handling.
25737
25738 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25739
25740         regex: fix glibc bug 697
25741         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
25742         being NULL also if there are no backreferences.
25743
25744 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25745
25746         regex: merge glibc changes
25747         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25748         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
25749         re_string_skip_chars, re_string_reconstruct): Likewise.
25750         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
25751
25752 2009-01-07  Jim Meyering  <meyering@redhat.com>
25753
25754         poll: filter through cppi
25755         * lib/poll.c: Indent cpp directives to reflect nesting.
25756
25757 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
25758
25759         poll: don't return uninitialized
25760         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
25761
25762 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
25763
25764         avoid compile failure on AIX 6.1
25765         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
25766         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
25767
25768 2009-01-04  Jim Meyering  <meyering@redhat.com>
25769
25770         remove duplicate inclusion of <stdio.h>
25771         * tests/test-fprintf-posix.c: Likewise.
25772         * tests/test-printf-posix.c: Likewise.
25773         * tests/test-snprintf-posix.c: Likewise.
25774         * tests/test-sprintf-posix.c: Likewise.
25775         * tests/test-vasprintf-posix.c: Likewise.
25776         * tests/test-vfprintf-posix.c: Likewise.
25777         * tests/test-vprintf-posix.c: Likewise.
25778         * tests/test-vsnprintf-posix.c: Likewise.
25779         * tests/test-vsprintf-posix.c: Likewise.
25780
25781 2009-01-03  Jim Meyering  <meyering@redhat.com>
25782
25783         gnulib-tool: fix sed-based filtering
25784         * gnulib-tool (func_filter_filelist): Remove extra backslash
25785         in sed_fff_filter definition.
25786
25787 2009-01-02  Jim Meyering  <meyering@redhat.com>
25788
25789         strftime: avoid compilation failure on Solaris 2.6
25790         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
25791         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
25792         Don't #define mbrlen or mbsinit, since now they're guaranteed to
25793         be available.  Reported by Tom G. Christensen.  Details in
25794         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
25795
25796 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25797             Bruno Haible  <bruno@clisp.org>
25798
25799         Speed up gnulib-tool by doing more string processing through shell
25800         built-ins.
25801         * gnulib-tool (fast_func_append): New variable.
25802         (func_remove_prefix, func_remove_suffix): New functions.
25803         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
25804         (func_filter_filelist): New function.
25805         (func_get_dependencies): Use func_remove_suffix instead of sed.
25806         (func_get_automake_snippet): Use func_filter_filelist instead of a
25807         subshell and sed invocation.
25808
25809 2009-01-01  Bruno Haible  <bruno@clisp.org>
25810
25811         Fix a security bug.
25812         * gnulib-tool (func_import, import, update): Don't allow the characters
25813         '"', '$', '`', '\' in macro arguments that become part of commands that
25814         are evaluated.
25815
25816 2009-01-01  Bruno Haible  <bruno@clisp.org>
25817
25818         * gnulib-tool (func_reset_sigpipe): Add more comments.
25819
25820 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25821
25822         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25823         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25824         already know the answer.
25825
25826 2009-01-01  Jim Meyering  <meyering@redhat.com>
25827
25828         * lib/version-etc.c (version_etc_va): Update copyright year.
25829
25830 2008-12-30  Bruno Haible  <bruno@clisp.org>
25831
25832         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25833         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25834         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25835
25836 2008-12-29  Eric Blake  <ebb9@byu.net>
25837
25838         multiarch: avoid autoconf AC_REQUIRE bug
25839         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25840         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25841         2.63 and older.
25842         Reported by Bruno Haible, and analyzed in
25843         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25844
25845 2008-12-29  Bruno Haible  <bruno@clisp.org>
25846
25847         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25848         files in subdirectories correctly.
25849         Reported by Ralf Wildenhues.
25850
25851 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25852
25853         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25854         rather than 'join FILE -', for Solaris join.
25855
25856 2008-12-29  Bruno Haible  <bruno@clisp.org>
25857
25858         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25859         quoting.
25860         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25861         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25862         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25863         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25864         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25865         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25866         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25867         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25868         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25869         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25870         * m4/nls.m4 (AM_NLS): Likewise.
25871         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25872         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25873         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25874         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25875         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25876         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25877         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25878         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25879         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25880         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25881         * m4/xsize.m4 (gl_XSIZE): Likewise.
25882         Suggested by Jim Meyering.
25883
25884 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25885
25886         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25887         * lib/parse-duration.c: use a switch instead of cascading if's.
25888
25889 2008-12-29  Eric Blake  <ebb9@byu.net>
25890
25891         wchar.h: supply WEOF on Irix 5.3
25892         * lib/wchar.in.h (wint_t): Also supply WEOF.
25893         * lib/wctype.in.h (wint_t): Likewise.
25894         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25895         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25896         Reported by Tom G. Christensen.
25897
25898 2008-12-26  Bruno Haible  <bruno@clisp.org>
25899
25900         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25901         i486, i586, i686.
25902
25903 2008-12-26  Bruno Haible  <bruno@clisp.org>
25904
25905         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25906
25907 2008-12-26  Bruno Haible  <bruno@clisp.org>
25908
25909         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25910         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25911         not __STDC_CONSTANT_MACROS.
25912         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25913
25914 2008-12-25  Bruno Haible  <bruno@clisp.org>
25915
25916         Add support for universal builds to vasnprintf.
25917         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25918         universal builds, guess no.
25919         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25920         * modules/vasprintf-posix (Depends-on): Likewise.
25921         * modules/fprintf-posix (Depends-on): Likewise.
25922         * modules/vfprintf-posix (Depends-on): Likewise.
25923         * modules/snprintf-posix (Depends-on): Likewise.
25924         * modules/vsnprintf-posix (Depends-on): Likewise.
25925         * modules/sprintf-posix (Depends-on): Likewise.
25926         * modules/vsprintf-posix (Depends-on): Likewise.
25927         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25928         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25930         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25931         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25932         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25933         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25934
25935         Add support for universal builds to <inttypes.h>.
25936         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25937         _SCNu64_PREFIX): In Apple
25938         universal builds, define directly, using _LP64.
25939         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25940         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25941         * modules/inttypes (Depends-on): Add multiarch.
25942         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25943
25944         Add support for universal builds to <stdint.h>.
25945         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25946         universal builds, define directly, using _LP64.
25947         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25948         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25949         and size_t.
25950         * modules/stdint (Depends-on): Add multiarch.
25951         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25952
25953         New module 'multiarch'.
25954         * modules/multiarch: New file.
25955         * m4/multiarch.m4: New file.
25956
25957 2008-12-25  Bruno Haible  <bruno@clisp.org>
25958
25959         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25960
25961 2008-12-25  Bruno Haible  <bruno@clisp.org>
25962
25963         * modules/btowc (License): Relicense under LGPLv2+.
25964         * modules/mbsinit (License): Likewise.
25965         * modules/mbrtowc (License): Likewise.
25966         * modules/wcrtomb (License): Likewise.
25967         * modules/streq (License): Likewise.
25968         Reported by David Lutterkort <lutter@redhat.com>.
25969
25970 2008-12-23  Bruno Haible  <bruno@clisp.org>
25971
25972         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25973
25974 2008-12-23  Bruno Haible  <bruno@clisp.org>
25975
25976         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25978         GETADDRINFO_LIB, not in LIBS.
25979         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25980         * modules/canon-host (Link): Likewise.
25981         * NEWS: Mention the change.
25982         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25983         GETADDRINFO_LIB.
25984
25985 2008-12-22  Bruno Haible  <bruno@clisp.org>
25986
25987         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25988         * doc/posix-functions/iswalpha_l.texi: Likewise.
25989         * doc/posix-functions/iswblank_l.texi: Likewise.
25990         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25991         * doc/posix-functions/iswctype_l.texi: Likewise.
25992         * doc/posix-functions/iswdigit_l.texi: Likewise.
25993         * doc/posix-functions/iswgraph_l.texi: Likewise.
25994         * doc/posix-functions/iswlower_l.texi: Likewise.
25995         * doc/posix-functions/iswprint_l.texi: Likewise.
25996         * doc/posix-functions/iswpunct_l.texi: Likewise.
25997         * doc/posix-functions/iswspace_l.texi: Likewise.
25998         * doc/posix-functions/iswupper_l.texi: Likewise.
25999         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26000         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
26001         * doc/posix-functions/open_wmemstream.texi: Likewise.
26002         * doc/posix-functions/swscanf.texi: Likewise.
26003         * doc/posix-functions/towctrans_l.texi: Likewise.
26004         * doc/posix-functions/towlower.texi: Likewise.
26005         * doc/posix-functions/towlower_l.texi: Likewise.
26006         * doc/posix-functions/towupper.texi: Likewise.
26007         * doc/posix-functions/towupper_l.texi: Likewise.
26008         * doc/posix-functions/vfwprintf.texi: Likewise.
26009         * doc/posix-functions/vfwscanf.texi: Likewise.
26010         * doc/posix-functions/vswscanf.texi: Likewise.
26011         * doc/posix-functions/vwprintf.texi: Likewise.
26012         * doc/posix-functions/vwscanf.texi: Likewise.
26013         * doc/posix-functions/wcpcpy.texi: Likewise.
26014         * doc/posix-functions/wcpncpy.texi: Likewise.
26015         * doc/posix-functions/wcscasecmp.texi: Likewise.
26016         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
26017         * doc/posix-functions/wcscoll_l.texi: Likewise.
26018         * doc/posix-functions/wcsdup.texi: Likewise.
26019         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26020         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
26021         * doc/posix-functions/wcsnlen.texi: Likewise.
26022         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26023         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26024         * doc/posix-functions/wctrans_l.texi: Likewise.
26025         * doc/posix-functions/wctype_l.texi: Likewise.
26026         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
26027         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
26028         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
26029         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
26030         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
26031         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
26032         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
26033         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
26034         * doc/glibc-functions/wcschrnul.texi: Likewise.
26035         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26036         * doc/glibc-functions/wcstod_l.texi: Likewise.
26037         * doc/glibc-functions/wcstof_l.texi: Likewise.
26038         * doc/glibc-functions/wcstol_l.texi: Likewise.
26039         * doc/glibc-functions/wcstold_l.texi: Likewise.
26040         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26041         * doc/glibc-functions/wcstoq.texi: Likewise.
26042         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26043         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26044         * doc/glibc-functions/wcstouq.texi: Likewise.
26045         * doc/glibc-functions/wmempcpy.texi: Likewise.
26046
26047 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
26048             Eric Blake  <ebb9@byu.net>
26049             Paolo Bonzini  <bonzini@gnu.org>
26050             Bruno Haible  <bruno@clisp.org>
26051
26052         Make c-stack work on Haiku.
26053         * lib/c-stack.c (SA_ONSTACK): Define fallback.
26054         (c_stack_action): Use SA_ONSTACK flag.
26055
26056 2008-12-22  Bruno Haible  <bruno@clisp.org>
26057
26058         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
26059
26060 2008-12-22  Bruno Haible  <bruno@clisp.org>
26061
26062         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
26063         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
26064         being overridden.
26065         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
26066         New macros.
26067         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
26068         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
26069         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
26070         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
26071
26072 2008-12-22  Bruno Haible  <bruno@clisp.org>
26073
26074         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
26075         from test code.
26076
26077 2008-12-22  Eric Blake  <ebb9@byu.net>
26078
26079         Avoid gcc warnings on cygwin.
26080         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
26081         Avoid unused variable.
26082         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
26083         Likewise.
26084
26085 2008-12-22  Bruno Haible  <bruno@clisp.org>
26086
26087         Remove HAVE_MBRTOWC conditionals.
26088         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
26089         (mbscasecmp): Assume mbrtowc function.
26090         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
26091         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
26092         * lib/mbschr.c: Include mbuiter.h unconditionally.
26093         (mbschr): Assume mbrtowc function.
26094         * lib/mbscspn.c: Include mbuiter.h unconditionally.
26095         (mbscspn): Assume mbrtowc function.
26096         * lib/mbslen.c: Include mbuiter.h unconditionally.
26097         (mbslen): Assume mbrtowc function.
26098         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
26099         (mbsncasecmp): Assume mbrtowc function.
26100         * lib/mbsnlen.c: Include mbiter.h unconditionally.
26101         (mbsnlen): Assume mbrtowc function.
26102         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
26103         (mbspbrk): Assume mbrtowc function.
26104         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
26105         (mbspcasecmp): Assume mbrtowc function.
26106         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
26107         (mbsrchr): Assume mbrtowc function.
26108         * lib/mbssep.c: Include mbuiter.h unconditionally.
26109         (mbssep): Assume mbrtowc function.
26110         * lib/mbsspn.c: Include mbuiter.h unconditionally.
26111         (mbsspn): Assume mbrtowc function.
26112         * lib/mbsstr.c: Include mbuiter.h unconditionally.
26113         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
26114         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
26115         (mbstok_r): Assume mbrtowc function.
26116         * lib/propername.c: Include mbuiter.h unconditionally.
26117         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
26118         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
26119         (trim2): Assume mbrtowc function.
26120         * lib/mbswidth.c (mbsinit): Remove fallback definition.
26121         (mbsnwidth): Assume mbrtowc function.
26122         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
26123         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
26124         fallback definitions.
26125         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
26126
26127 2008-12-22  Bruno Haible  <bruno@clisp.org>
26128
26129         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
26130
26131 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
26132
26133         * modules/regex: Request emulations for the mb*/wc* functions we need.
26134         * m4/regex.m4: Don't look for those functions here.
26135         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
26136
26137 2008-12-22  Bruno Haible  <bruno@clisp.org>
26138
26139         * modules/fnmatch (Depends-on): Remove duplicated dependency.
26140
26141 2008-12-21  Bruno Haible  <bruno@clisp.org>
26142
26143         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
26144         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
26145         (Include): Remove conditionalization.
26146         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
26147         (Include): Remove conditionalization.
26148         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
26149         (Include): Remove conditionalization.
26150         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
26151         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26152         * NEWS: Mention the change.
26153         Reported by Alan Hourihane <alanh@fairlite.co.uk>
26154         via Sergey Poznyakoff <gray@gnu.org.ua>.
26155
26156 2008-12-21  Bruno Haible  <bruno@clisp.org>
26157
26158         * MODULES.html.sh (Extended multibyte and wide character utilities
26159         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
26160         wcrtomb, wcsrtombs.
26161         (Support for systems lacking POSIX:2008): Add accept, bind, close,
26162         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
26163         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
26164         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
26165
26166 2008-12-21  Bruno Haible  <bruno@clisp.org>
26167
26168         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
26169
26170 2008-12-21  Bruno Haible  <bruno@clisp.org>
26171
26172         * modules/wcsnrtombs-tests: New file.
26173         * tests/test-wcsnrtombs1.sh: New file.
26174         * tests/test-wcsnrtombs2.sh: New file.
26175         * tests/test-wcsnrtombs3.sh: New file.
26176         * tests/test-wcsnrtombs4.sh: New file.
26177         * tests/test-wcsnrtombs.c: New file.
26178
26179         New module 'wcsnrtombs'.
26180         * lib/wchar.in.h (wcsnrtombs): New declaration.
26181         * lib/wcsnrtombs.c: New file.
26182         * lib/wcsrtombs-state.c: New file.
26183         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
26184         (internal_state): Remove variable.
26185         * m4/wcsnrtombs.m4: New file.
26186         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
26187         compilation units.
26188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
26189         HAVE_WCSNRTOMBS.
26190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
26191         HAVE_WCSNRTOMBS.
26192         * modules/wcsnrtombs: New file.
26193         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
26194         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
26195
26196 2008-12-21  Bruno Haible  <bruno@clisp.org>
26197
26198         * modules/wcsrtombs-tests: New file.
26199         * tests/test-wcsrtombs1.sh: New file.
26200         * tests/test-wcsrtombs2.sh: New file.
26201         * tests/test-wcsrtombs3.sh: New file.
26202         * tests/test-wcsrtombs4.sh: New file.
26203         * tests/test-wcsrtombs.c: New file.
26204
26205         New module 'wcsrtombs'.
26206         * lib/wchar.in.h (wcsrtombs): New declaration.
26207         * lib/wcsrtombs.c: New file.
26208         * m4/wcsrtombs.m4: New file.
26209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
26210         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
26212         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26213         * modules/wcsrtombs: New file.
26214         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
26215         bugs.
26216
26217 2008-12-21  Bruno Haible  <bruno@clisp.org>
26218
26219         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
26220         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
26221         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
26222         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
26223         if not correct.
26224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
26225         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
26226         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26227         m4/locale-zh.m4, m4/codeset.m4.
26228         * doc/posix-functions/wcrtomb.texi: Document the bug.
26229
26230 2008-12-21  Bruno Haible  <bruno@clisp.org>
26231
26232         Work around a btowc() bug on IRIX 6.5.
26233         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
26234         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
26235         REPLACE_WTOBC if not.
26236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
26237         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
26238         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
26239
26240 2008-12-21  Bruno Haible  <bruno@clisp.org>
26241
26242         * modules/wcrtomb-tests: New file.
26243         * tests/test-wcrtomb.sh: New file.
26244         * tests/test-wcrtomb.c: New file.
26245
26246         New module 'wcrtomb'.
26247         * lib/wchar.in.h (wcrtomb): New declaration.
26248         * lib/wcrtomb.c: New file.
26249         * m4/wcrtomb.m4: New file.
26250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
26251         HAVE_WCRTOMB.
26252         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
26253         HAVE_WCRTOMB.
26254         * modules/wcrtomb: New file.
26255         * doc/posix-functions/wcrtomb.texi: Mention the new module.
26256
26257 2008-12-21  Bruno Haible  <bruno@clisp.org>
26258
26259         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
26260         * modules/mbsrtowcs (Files): Likewise.
26261         * modules/wctob (Files): Likewise.
26262         * modules/c-strcase-tests (Files): Likewise.
26263         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26264         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26265         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26266         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26267         * modules/vasnprintf-posix-tests (Files): Likewise.
26268
26269 2008-12-21  William Pursell  <bill.pursell@gmail.com>
26270
26271         gitlog-to-changelog: pass all command-line arguments to git-log
26272         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
26273         it is sometimes convenient to filter the commits in various ways.
26274         gitlog-to-changelog only allows --since to specify a start date,
26275         but git-log itself supports many other filtering mechanisms.
26276         At the moment, I want to filter by branch name.  Rather than
26277         adding a --branch option to gitlog-to-changelog, it seems more
26278         flexible to simply pass all options directly to git-log and let
26279         git do the work.  Notice that this effectively makes --since a
26280         redundant option for gitlog-to-changelog, but removing it would
26281         require current usage to change since calls would then require
26282         an additional '--'.
26283
26284 2008-12-21  Bruno Haible  <bruno@clisp.org>
26285
26286         * modules/mbsnrtowcs-tests: New file.
26287         * tests/test-mbsnrtowcs1.sh: New file.
26288         * tests/test-mbsnrtowcs2.sh: New file.
26289         * tests/test-mbsnrtowcs3.sh: New file.
26290         * tests/test-mbsnrtowcs4.sh: New file.
26291         * tests/test-mbsnrtowcs.c: New file.
26292
26293         New module 'mbsnrtowcs'.
26294         * lib/wchar.in.h (mbsnrtowcs): New declaration.
26295         * lib/mbsnrtowcs.c: New file.
26296         * lib/mbsrtowcs-state.c: New file.
26297         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
26298         (internal_state): Remove variable.
26299         * m4/mbsnrtowcs.m4: New file.
26300         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
26301         compilation units.
26302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
26303         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26304         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
26305         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26306         * modules/mbsnrtowcs: New file.
26307         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
26308         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
26309         portability problem.
26310
26311 2008-12-21  Bruno Haible  <bruno@clisp.org>
26312
26313         Work around mbsrtowcs bug.
26314         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
26315         (gl_FUNC_MBSRTOWCS): Invoke it.
26316         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26317         m4/locale-zh.m4.
26318         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
26319
26320 2008-12-21  Bruno Haible  <bruno@clisp.org>
26321
26322         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
26323
26324 2008-12-21  Bruno Haible  <bruno@clisp.org>
26325
26326         Update doc for AIX.
26327         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
26328         16-bit wchar_t type.
26329         * doc/posix-functions/btowc.texi: Likewise.
26330         * doc/posix-functions/fgetwc.texi: Likewise.
26331         * doc/posix-functions/fgetws.texi: Likewise.
26332         * doc/posix-functions/fputwc.texi: Likewise.
26333         * doc/posix-functions/fputws.texi: Likewise.
26334         * doc/posix-functions/fwide.texi: Likewise.
26335         * doc/posix-functions/fwprintf.texi: Likewise.
26336         * doc/posix-functions/fwscanf.texi: Likewise.
26337         * doc/posix-functions/getwchar.texi: Likewise.
26338         * doc/posix-functions/getwc.texi: Likewise.
26339         * doc/posix-functions/iswalnum.texi: Likewise.
26340         * doc/posix-functions/iswalpha.texi: Likewise.
26341         * doc/posix-functions/iswblank.texi: Likewise.
26342         * doc/posix-functions/iswcntrl.texi: Likewise.
26343         * doc/posix-functions/iswctype.texi: Likewise.
26344         * doc/posix-functions/iswdigit.texi: Likewise.
26345         * doc/posix-functions/iswgraph.texi: Likewise.
26346         * doc/posix-functions/iswlower.texi: Likewise.
26347         * doc/posix-functions/iswprint.texi: Likewise.
26348         * doc/posix-functions/iswpunct.texi: Likewise.
26349         * doc/posix-functions/iswspace.texi: Likewise.
26350         * doc/posix-functions/iswupper.texi: Likewise.
26351         * doc/posix-functions/iswxdigit.texi: Likewise.
26352         * doc/posix-functions/mbrtowc.texi: Likewise.
26353         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26354         * doc/posix-functions/mbstowcs.texi: Likewise.
26355         * doc/posix-functions/mbtowc.texi: Likewise.
26356         * doc/posix-functions/putwchar.texi: Likewise.
26357         * doc/posix-functions/putwc.texi: Likewise.
26358         * doc/posix-functions/swprintf.texi: Likewise.
26359         * doc/posix-functions/tolower.texi: Likewise.
26360         * doc/posix-functions/toupper.texi: Likewise.
26361         * doc/posix-functions/towctrans.texi: Likewise.
26362         * doc/posix-functions/ungetwc.texi: Likewise.
26363         * doc/posix-functions/vswprintf.texi: Likewise.
26364         * doc/posix-functions/wcrtomb.texi: Likewise.
26365         * doc/posix-functions/wcscat.texi: Likewise.
26366         * doc/posix-functions/wcschr.texi: Likewise.
26367         * doc/posix-functions/wcscmp.texi: Likewise.
26368         * doc/posix-functions/wcscoll.texi: Likewise.
26369         * doc/posix-functions/wcscpy.texi: Likewise.
26370         * doc/posix-functions/wcscspn.texi: Likewise.
26371         * doc/posix-functions/wcsftime.texi: Likewise.
26372         * doc/posix-functions/wcslen.texi: Likewise.
26373         * doc/posix-functions/wcsncat.texi: Likewise.
26374         * doc/posix-functions/wcsncmp.texi: Likewise.
26375         * doc/posix-functions/wcsncpy.texi: Likewise.
26376         * doc/posix-functions/wcspbrk.texi: Likewise.
26377         * doc/posix-functions/wcsrchr.texi: Likewise.
26378         * doc/posix-functions/wcsrtombs.texi: Likewise.
26379         * doc/posix-functions/wcsspn.texi: Likewise.
26380         * doc/posix-functions/wcsstr.texi: Likewise.
26381         * doc/posix-functions/wcstod.texi: Likewise.
26382         * doc/posix-functions/wcstof.texi: Likewise.
26383         * doc/posix-functions/wcstoimax.texi: Likewise.
26384         * doc/posix-functions/wcstok.texi: Likewise.
26385         * doc/posix-functions/wcstold.texi: Likewise.
26386         * doc/posix-functions/wcstoll.texi: Likewise.
26387         * doc/posix-functions/wcstol.texi: Likewise.
26388         * doc/posix-functions/wcstombs.texi: Likewise.
26389         * doc/posix-functions/wcstoull.texi: Likewise.
26390         * doc/posix-functions/wcstoul.texi: Likewise.
26391         * doc/posix-functions/wcstoumax.texi: Likewise.
26392         * doc/posix-functions/wcswidth.texi: Likewise.
26393         * doc/posix-functions/wcsxfrm.texi: Likewise.
26394         * doc/posix-functions/wctob.texi: Likewise.
26395         * doc/posix-functions/wctomb.texi: Likewise.
26396         * doc/posix-functions/wctrans.texi: Likewise.
26397         * doc/posix-functions/wctype.texi: Likewise.
26398         * doc/posix-functions/wcwidth.texi: Likewise.
26399         * doc/posix-functions/wmemchr.texi: Likewise.
26400         * doc/posix-functions/wmemcmp.texi: Likewise.
26401         * doc/posix-functions/wmemcpy.texi: Likewise.
26402         * doc/posix-functions/wmemmove.texi: Likewise.
26403         * doc/posix-functions/wmemset.texi: Likewise.
26404         * doc/posix-functions/wprintf.texi: Likewise.
26405         * doc/posix-functions/wscanf.texi: Likewise.
26406
26407 2008-12-21  Bruno Haible  <bruno@clisp.org>
26408
26409         Update doc for HP-UX 11.11.
26410         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26411         in HP-UX version 11.00, not in all versions of HP-UX 11.
26412         * doc/posix-functions/fwide.texi: Likewise.
26413         * doc/posix-functions/fwprintf.texi: Likewise.
26414         * doc/posix-functions/fwscanf.texi: Likewise.
26415         * doc/posix-functions/inet_ntop.texi: Likewise.
26416         * doc/posix-functions/inet_pton.texi: Likewise.
26417         * doc/posix-functions/mbrlen.texi: Likewise.
26418         * doc/posix-functions/mbrtowc.texi: Likewise.
26419         * doc/posix-functions/mbsinit.texi: Likewise.
26420         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26421         * doc/posix-functions/swprintf.texi: Likewise.
26422         * doc/posix-functions/swscanf.texi: Likewise.
26423         * doc/posix-functions/towctrans.texi: Likewise.
26424         * doc/posix-functions/vfwprintf.texi: Likewise.
26425         * doc/posix-functions/vswprintf.texi: Likewise.
26426         * doc/posix-functions/vwprintf.texi: Likewise.
26427         * doc/posix-functions/wcrtomb.texi: Likewise.
26428         * doc/posix-functions/wcsrtombs.texi: Likewise.
26429         * doc/posix-functions/wcsstr.texi: Likewise.
26430         * doc/posix-functions/wctob.texi: Likewise.
26431         * doc/posix-functions/wctrans.texi: Likewise.
26432         * doc/posix-functions/wmemchr.texi: Likewise.
26433         * doc/posix-functions/wmemcmp.texi: Likewise.
26434         * doc/posix-functions/wmemcpy.texi: Likewise.
26435         * doc/posix-functions/wmemmove.texi: Likewise.
26436         * doc/posix-functions/wmemset.texi: Likewise.
26437         * doc/posix-functions/wprintf.texi: Likewise.
26438         * doc/posix-functions/wscanf.texi: Likewise.
26439
26440 2008-12-21  Bruno Haible  <bruno@clisp.org>
26441
26442         Work around a portability problem.
26443         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26444         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26445
26446 2008-12-20  Bruno Haible  <bruno@clisp.org>
26447
26448         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26449         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26450         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26452         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26453
26454         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26455         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26456         set.
26457         (GNULIB_defined_mbstate_t): New macro.
26458         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26459         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26460         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26461         reuses the system's mbrtowc function but works around the bugs.
26462         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26463         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26464         macros.
26465         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26466         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26467         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26468         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26469         REPLACE_MBSINIT if mbsinit needs to be overridden.
26470         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26471         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26472         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26473         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26474         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26475         m4/locale-zh.m4.
26476         (Depends): Add mbsinit.
26477         * modules/mbsinit (Depends): Add mbrtowc.
26478         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26479
26480 2008-12-20  Bruno Haible  <bruno@clisp.org>
26481
26482         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26483         so that there are no conversion errors on AIX.
26484         * tests/test-mbsrtowcs.c (main): LIkewise.
26485
26486 2008-12-20  Bruno Haible  <bruno@clisp.org>
26487
26488         Work around wctob bug on Solaris <= 9.
26489         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26490         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26492         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26493         * modules/wctob (Files): Add m4/locale-fr.m4.
26494         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26495
26496 2008-12-20  Bruno Haible  <bruno@clisp.org>
26497
26498         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26499         /dev/null.
26500         * tests/test-select-in.sh: Likewise.
26501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26502
26503 2008-12-20  Bruno Haible  <bruno@clisp.org>
26504
26505         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26506         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26507         Cygwin 1.5.x.
26508
26509 2008-12-20  Bruno Haible  <bruno@clisp.org>
26510
26511         Ensure mbstate_t is defined on HP-UX 11.11.
26512         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26513         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26514         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26515         AC_USE_SYSTEM_EXTENSIONS.
26516         * modules/fnmatch (Depends-on): Add extensions.
26517         * modules/mbrlen (Depends-on): Likewise.
26518         * modules/mbrtowc (Depends-on): Likewise.
26519         * modules/mbsinit (Depends-on): Likewise.
26520         * modules/mbsrtowcs (Depends-on): Likewise.
26521         * modules/mbswidth (Depends-on): Likewise.
26522         * modules/quotearg (Depends-on): Likewise.
26523         * modules/strftime (Depends-on): Likewise.
26524
26525 2008-12-20  Bruno Haible  <bruno@clisp.org>
26526
26527         Ensure wctob is declared on IRIX 6.5.
26528         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26529         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26530         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26532         of HAVE_WCTOB.
26533         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26534         HAVE_WCTOB.
26535         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26536
26537 2008-12-19  Bruno Haible  <bruno@clisp.org>
26538
26539         * modules/mbsrtowcs-tests: New file.
26540         * tests/test-mbsrtowcs1.sh: New file.
26541         * tests/test-mbsrtowcs2.sh: New file.
26542         * tests/test-mbsrtowcs3.sh: New file.
26543         * tests/test-mbsrtowcs4.sh: New file.
26544         * tests/test-mbsrtowcs.c: New file.
26545
26546         New module 'mbsrtowcs'.
26547         * lib/wchar.in.h (mbsrtowcs): New declaration.
26548         * lib/mbsrtowcs.c: New file.
26549         * m4/mbsrtowcs.m4: New file.
26550         * modules/mbsrtowcs: New file.
26551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26552         HAVE_MBSRTOWCS.
26553         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26554         HAVE_MBSRTOWCS.
26555         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26556
26557 2008-12-19  Bruno Haible  <bruno@clisp.org>
26558
26559         New module 'mbrlen'.
26560         * lib/wchar.in.h (mbrlen): New declaration.
26561         * lib/mbrlen.c: New file.
26562         * m4/mbrlen.m4: New file.
26563         * modules/mbrlen: New file.
26564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26565         HAVE_MBRLEN.
26566         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26567         HAVE_MBRLEN.
26568         * doc/posix-functions/mbrlen.texi: Document the new module.
26569
26570 2008-12-19  Bruno Haible  <bruno@clisp.org>
26571
26572         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26573         * modules/mbrtowc (Depends-on): Add verify.
26574         Suggested by Paul Eggert.
26575
26576 2008-12-18  Bruno Haible  <bruno@clisp.org>
26577
26578         * modules/mbsinit-tests: New file.
26579         * tests/test-mbsinit.sh: New file.
26580         * tests/test-mbsinit.c: New file.
26581
26582 2008-12-18  Bruno Haible  <bruno@clisp.org>
26583
26584         * modules/mbrtowc-tests: New file.
26585         * tests/test-mbrtowc1.sh: New file.
26586         * tests/test-mbrtowc2.sh: New file.
26587         * tests/test-mbrtowc3.sh: New file.
26588         * tests/test-mbrtowc4.sh: New file.
26589         * tests/test-mbrtowc.c: New file.
26590
26591         New module 'mbrtowc'.
26592         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26593         mbsinit and mbrtowc.
26594         (mbrtowc): New declaration.
26595         * lib/mbrtowc.c: New file.
26596         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26597         * modules/mbrtowc: New file.
26598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26599         HAVE_MBRTOWC.
26600         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26601         HAVE_MBRTOWC.
26602         * doc/posix-functions/mbrtowc.texi: Document the new module.
26603
26604 2008-12-18  Bruno Haible  <bruno@clisp.org>
26605
26606         New module 'wctob'.
26607         * lib/wchar.in.h (wctob): New declaration.
26608         * lib/wctob.c: New file.
26609         * m4/wctob.m4: New file.
26610         * modules/wctob: New file.
26611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26612         HAVE_WCTOB.
26613         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26614         * doc/posix-functions/wctob.texi: Document the new module.
26615
26616 2008-12-18  Bruno Haible  <bruno@clisp.org>
26617
26618         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26619         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26620
26621 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26622
26623         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26624         G. Christensen" <tgc@jupiterrise.com>.
26625
26626         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26627         G. Christensen" <tgc@jupiterrise.com>.
26628
26629         * lib/flock.c: Need to include string.h.  Reported by "Tom
26630         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26631         <ebb9@byu.net>.
26632
26633 2008-12-18  Bruno Haible  <bruno@clisp.org>
26634
26635         * m4/locale-ja.m4: New file, from GNU gettext.
26636
26637 2008-12-17  Bruno Haible  <bruno@clisp.org>
26638
26639         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26640         Suggested by Eric Blake.
26641
26642 2008-12-17  Bruno Haible  <bruno@clisp.org>
26643
26644         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26645
26646 2008-12-17  Bruno Haible  <bruno@clisp.org>
26647
26648         * lib/mbsinit.c: Include verify.h. Verify an assumption.
26649         * modules/mbsinit (Depends-on): Add verify.
26650         Suggested by Paul Eggert.
26651
26652 2008-12-17  Bruno Haible  <bruno@clisp.org>
26653
26654         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
26655         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
26656         gl_FUNC_MBRTOWC.
26657         * m4/mbiter.m4 (gl_MBITER): LIkewise.
26658         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
26659         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
26660         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
26661         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
26662         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
26663         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
26664         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
26665         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
26666         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
26667         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
26668         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
26669         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
26670         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
26671         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
26672         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26673         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
26674         * modules/trim (configure.ac): Likewise.
26675
26676 2008-12-17  Bruno Haible  <bruno@clisp.org>
26677
26678         * modules/btowc-tests: New file.
26679         * tests/test-btowc1.sh: New file.
26680         * tests/test-btowc2.sh: New file.
26681         * tests/test-btowc.c: New file.
26682
26683         New module 'btowc'.
26684         * lib/wchar.in.h (btowc): New declaration.
26685         * lib/btowc.c: New file.
26686         * m4/btowc.m4: New file.
26687         * modules/btowc: New file.
26688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
26689         HAVE_BTOWC.
26690         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
26691         * doc/posix-functions/btowc.texi: Document the new module.
26692
26693 2008-12-17  Bruno Haible  <bruno@clisp.org>
26694
26695         New module 'mbsinit'.
26696         * lib/wchar.in.h (mbsinit): New declaration.
26697         * lib/mbsinit.c: New file.
26698         * m4/mbsinit.m4: New file.
26699         * modules/mbsinit: New file.
26700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
26701         HAVE_MBSINIT.
26702         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
26703         HAVE_MBSINIT.
26704         * doc/posix-functions/mbsinit.texi: Document the new module.
26705
26706 2008-12-16  Bruno Haible  <bruno@clisp.org>
26707
26708         * lib/unistd.in.h: Add comment.
26709         * tests/test-environ.c: Don't include <stdlib.h>.
26710
26711 2008-12-16  Bruno Haible  <bruno@clisp.org>
26712
26713         * lib/parse-duration.h (parse_duration): Document return value
26714         convention.
26715         * lib/parse-duration.c: Include specification header first. Add
26716         comments.
26717         (_): Remove macro.
26718         (parse_year_month_day, parse_hour_minute_second): Move side effects
26719         outside of strchr call.
26720         (parse_non_iso8601): Move side effects outside of isspace call.
26721         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
26722         call.
26723
26724 2008-12-16  Bruno Haible  <bruno@clisp.org>
26725
26726         * tests/test-parse-duration.sh: Produce no output when the test
26727         succeeds.
26728
26729 2008-12-16  Bruno Haible  <bruno@clisp.org>
26730
26731         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
26732         expressions.
26733
26734 2008-12-15  Bruno Haible  <bruno@clisp.org>
26735
26736         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
26737         * doc/glibc-functions/flistxattr.texi: Likewise.
26738         * doc/glibc-functions/fopencookie.texi: Likewise.
26739         * doc/glibc-functions/fremovexattr.texi: Likewise.
26740         * doc/glibc-functions/fsetxattr.texi: Likewise.
26741         * doc/glibc-functions/getxattr.texi: Likewise.
26742         * doc/glibc-functions/lgetxattr.texi: Likewise.
26743         * doc/glibc-functions/listxattr.texi: Likewise.
26744         * doc/glibc-functions/llistxattr.texi: Likewise.
26745         * doc/glibc-functions/lremovexattr.texi: Likewise.
26746         * doc/glibc-functions/lsetxattr.texi: Likewise.
26747         * doc/glibc-functions/removexattr.texi: Likewise.
26748         * doc/glibc-functions/setxattr.texi: Likewise.
26749         * doc/posix-functions/open_memstream.texi: Likewise.
26750
26751 2008-12-15  Eric Blake  <ebb9@byu.net>
26752
26753         Update doc for cygwin 1.7.
26754         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
26755         functions.
26756         * doc/posix-functions/fchmodat.texi: Likewise.
26757         * doc/posix-functions/fchownat.texi: Likewise.
26758         * doc/posix-functions/fdopendir.texi: Likewise.
26759         * doc/posix-functions/fmemopen.texi: Likewise.
26760         * doc/posix-functions/freeaddrinfo.texi: Likewise.
26761         * doc/posix-functions/fstatat.texi: Likewise.
26762         * doc/posix-functions/futimens.texi: Likewise.
26763         * doc/posix-functions/gai_strerror.texi: Likewise.
26764         * doc/posix-functions/getaddrinfo.texi: Likewise.
26765         * doc/posix-functions/getnameinfo.texi: Likewise.
26766         * doc/posix-functions/if_freenameindex.texi: Likewise.
26767         * doc/posix-functions/if_indextoname.texi: Likewise.
26768         * doc/posix-functions/if_nameindex.texi: Likewise.
26769         * doc/posix-functions/if_nametoindex.texi: Likewise.
26770         * doc/posix-functions/insque.texi: Likewise.
26771         * doc/posix-functions/linkat.texi: Likewise.
26772         * doc/posix-functions/llrint.texi: Likewise.
26773         * doc/posix-functions/llrintf.texi: Likewise.
26774         * doc/posix-functions/llrintl.texi: Likewise.
26775         * doc/posix-functions/lockf.texi: Likewise.
26776         * doc/posix-functions/lrintl.texi: Likewise.
26777         * doc/posix-functions/mkdirat.texi: Likewise.
26778         * doc/posix-functions/mkfifoat.texi: Likewise.
26779         * doc/posix-functions/mknodat.texi: Likewise.
26780         * doc/posix-functions/mq_close.texi: Likewise.
26781         * doc/posix-functions/mq_getattr.texi: Likewise.
26782         * doc/posix-functions/mq_notify.texi: Likewise.
26783         * doc/posix-functions/mq_open.texi: Likewise.
26784         * doc/posix-functions/mq_receive.texi: Likewise.
26785         * doc/posix-functions/mq_send.texi: Likewise.
26786         * doc/posix-functions/mq_setattr.texi: Likewise.
26787         * doc/posix-functions/mq_timedreceive.texi: Likewise.
26788         * doc/posix-functions/mq_timedsend.texi: Likewise.
26789         * doc/posix-functions/mq_unlink.texi: Likewise.
26790         * doc/posix-functions/open_memstream.texi: Likewise.
26791         * doc/posix-functions/openat.texi: Likewise.
26792         * doc/posix-functions/posix_fadvise.texi: Likewise.
26793         * doc/posix-functions/posix_fallocate.texi: Likewise.
26794         * doc/posix-functions/posix_madvise.texi: Likewise.
26795         * doc/posix-functions/posix_memalign.texi: Likewise.
26796         * doc/posix-functions/posix_openpt.texi: Likewise.
26797         * doc/posix-functions/readlinkat.texi: Likewise.
26798         * doc/posix-functions/remque.texi: Likewise.
26799         * doc/posix-functions/renameat.texi: Likewise.
26800         * doc/posix-functions/rintl.texi: Likewise.
26801         * doc/posix-functions/sem_unlink.texi: Likewise.
26802         * doc/posix-functions/shm_open.texi: Likewise.
26803         * doc/posix-functions/shm_unlink.texi: Likewise.
26804         * doc/posix-functions/signgam.texi: Likewise.
26805         * doc/posix-functions/sigset.texi: Likewise.
26806         * doc/posix-functions/stpcpy.texi: Likewise.
26807         * doc/posix-functions/stpncpy.texi: Likewise.
26808         * doc/posix-functions/strerror.texi: Likewise.
26809         * doc/posix-functions/strtod.texi: Likewise.
26810         * doc/posix-functions/symlinkat.texi: Likewise.
26811         * doc/posix-functions/unlinkat.texi: Likewise.
26812         * doc/posix-functions/utimensat.texi: Likewise.
26813         * doc/glibc-functions/bindresvport.texi: Likewise.
26814         * doc/glibc-functions/dn_expand.texi: Likewise.
26815         * doc/glibc-functions/exp10.texi: Likewise.
26816         * doc/glibc-functions/exp10f.texi: Likewise.
26817         * doc/glibc-functions/fgetxattr.texi: Likewise.
26818         * doc/glibc-functions/flistxattr.texi: Likewise.
26819         * doc/glibc-functions/fopencookie.texi: Likewise.
26820         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26821         * doc/glibc-functions/fremovexattr.texi: Likewise.
26822         * doc/glibc-functions/fsetxattr.texi: Likewise.
26823         * doc/glibc-functions/getifaddrs.texi: Likewise.
26824         * doc/glibc-functions/getxattr.texi: Likewise.
26825         * doc/glibc-functions/lgetxattr.texi: Likewise.
26826         * doc/glibc-functions/listxattr.texi: Likewise.
26827         * doc/glibc-functions/llistxattr.texi: Likewise.
26828         * doc/glibc-functions/lremovexattr.texi: Likewise.
26829         * doc/glibc-functions/lsetxattr.texi: Likewise.
26830         * doc/glibc-functions/pow10.texi: Likewise.
26831         * doc/glibc-functions/pow10f.texi: Likewise.
26832         * doc/glibc-functions/rcmd_af.texi: Likewise.
26833         * doc/glibc-functions/removexattr.texi: Likewise.
26834         * doc/glibc-functions/res_init.texi: Likewise.
26835         * doc/glibc-functions/res_mkquery.texi: Likewise.
26836         * doc/glibc-functions/res_query.texi: Likewise.
26837         * doc/glibc-functions/res_querydomain.texi: Likewise.
26838         * doc/glibc-functions/res_send.texi: Likewise.
26839         * doc/glibc-functions/rresvport_af.texi: Likewise.
26840         * doc/glibc-functions/setxattr.texi: Likewise.
26841         * doc/glibc-functions/strcasestr.texi: Likewise.
26842
26843 2008-12-15  Bruno Haible  <bruno@clisp.org>
26844
26845         Fix compilation error on OSF/1 4.0.
26846         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26847         <sys/time.h>, simply delegate to the system header.
26848         Reported by Daniel Richard G. <oss@teragram.com>.
26849
26850 2008-12-15  Bruno Haible  <bruno@clisp.org>
26851
26852         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26853         * doc/posix-functions/fchmodat.texi: Likewise.
26854         * doc/posix-functions/fchownat.texi: Likewise.
26855         * doc/posix-functions/fdopendir.texi: Likewise.
26856         * doc/posix-functions/fstatat.texi: Likewise.
26857         * doc/posix-functions/mkdirat.texi: Likewise.
26858         * doc/posix-functions/unlinkat.texi: Likewise.
26859
26860 2008-12-14  Bruno Haible  <bruno@clisp.org>
26861
26862         Update doc for POSIX:2008.
26863         * doc/posix-functions/faccessat.texi: New file.
26864         * doc/posix-functions/fchmodat.texi: New file.
26865         * doc/posix-functions/fchownat.texi: New file.
26866         * doc/posix-functions/fdopendir.texi: New file.
26867         * doc/posix-functions/fstatat.texi: New file.
26868         * doc/posix-functions/futimens.texi: New file.
26869         * doc/posix-functions/linkat.texi: New file.
26870         * doc/posix-functions/mkdirat.texi: New file.
26871         * doc/posix-functions/mkfifoat.texi: New file.
26872         * doc/posix-functions/mknodat.texi: New file.
26873         * doc/posix-functions/open_wmemstream.texi: New file.
26874         * doc/posix-functions/openat.texi: New file.
26875         * doc/posix-functions/psiginfo.texi: New file.
26876         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26877         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26878         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26879         * doc/posix-functions/readlinkat.texi: New file.
26880         * doc/posix-functions/renameat.texi: New file.
26881         * doc/posix-functions/strerror_l.texi: New file.
26882         * doc/posix-functions/symlinkat.texi: New file.
26883         * doc/posix-functions/unlinkat.texi: New file.
26884         * doc/posix-functions/utimensat.texi: New file.
26885         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26886
26887 2008-12-14  Bruno Haible  <bruno@clisp.org>
26888
26889         Update doc for POSIX:2008.
26890         * doc/posix-functions/alphasort.texi: Renamed from
26891         doc/glibc-functions/alphasort.texi.
26892         * doc/posix-functions/dirfd.texi: Renamed from
26893         doc/glibc-functions/dirfd.texi.
26894         * doc/posix-functions/dprintf.texi: Renamed from
26895         doc/glibc-functions/dprintf.texi.
26896         * doc/posix-functions/duplocale.texi: Renamed from
26897         doc/glibc-functions/duplocale.texi.
26898         * doc/posix-functions/fexecve.texi: Renamed from
26899         doc/glibc-functions/fexecve.texi.
26900         * doc/posix-functions/fmemopen.texi: Renamed from
26901         doc/glibc-functions/fmemopen.texi.
26902         * doc/posix-functions/freelocale.texi: Renamed from
26903         doc/glibc-functions/freelocale.texi.
26904         * doc/posix-functions/getdate_err.texi: Renamed from
26905         doc/glibc-functions/getdate_err.texi.
26906         * doc/posix-functions/isalnum_l.texi: Renamed from
26907         doc/glibc-functions/isalnum_l.texi.
26908         * doc/posix-functions/isalpha_l.texi: Renamed from
26909         doc/glibc-functions/isalpha_l.texi.
26910         * doc/posix-functions/isblank_l.texi: Renamed from
26911         doc/glibc-functions/isblank_l.texi.
26912         * doc/posix-functions/iscntrl_l.texi: Renamed from
26913         doc/glibc-functions/iscntrl_l.texi.
26914         * doc/posix-functions/isdigit_l.texi: Renamed from
26915         doc/glibc-functions/isdigit_l.texi.
26916         * doc/posix-functions/isgraph_l.texi: Renamed from
26917         doc/glibc-functions/isgraph_l.texi.
26918         * doc/posix-functions/islower_l.texi: Renamed from
26919         doc/glibc-functions/islower_l.texi.
26920         * doc/posix-functions/isprint_l.texi: Renamed from
26921         doc/glibc-functions/isprint_l.texi.
26922         * doc/posix-functions/ispunct_l.texi: Renamed from
26923         doc/glibc-functions/ispunct_l.texi.
26924         * doc/posix-functions/isspace_l.texi: Renamed from
26925         doc/glibc-functions/isspace_l.texi.
26926         * doc/posix-functions/isupper_l.texi: Renamed from
26927         doc/glibc-functions/isupper_l.texi.
26928         * doc/posix-functions/iswalnum_l.texi: Renamed from
26929         doc/glibc-functions/iswalnum_l.texi.
26930         * doc/posix-functions/iswalpha_l.texi: Renamed from
26931         doc/glibc-functions/iswalpha_l.texi.
26932         * doc/posix-functions/iswblank_l.texi: Renamed from
26933         doc/glibc-functions/iswblank_l.texi.
26934         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26935         doc/glibc-functions/iswcntrl_l.texi.
26936         * doc/posix-functions/iswctype_l.texi: Renamed from
26937         doc/glibc-functions/iswctype_l.texi.
26938         * doc/posix-functions/iswdigit_l.texi: Renamed from
26939         doc/glibc-functions/iswdigit_l.texi.
26940         * doc/posix-functions/iswgraph_l.texi: Renamed from
26941         doc/glibc-functions/iswgraph_l.texi.
26942         * doc/posix-functions/iswlower_l.texi: Renamed from
26943         doc/glibc-functions/iswlower_l.texi.
26944         * doc/posix-functions/iswprint_l.texi: Renamed from
26945         doc/glibc-functions/iswprint_l.texi.
26946         * doc/posix-functions/iswpunct_l.texi: Renamed from
26947         doc/glibc-functions/iswpunct_l.texi.
26948         * doc/posix-functions/iswspace_l.texi: Renamed from
26949         doc/glibc-functions/iswspace_l.texi.
26950         * doc/posix-functions/iswupper_l.texi: Renamed from
26951         doc/glibc-functions/iswupper_l.texi.
26952         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26953         doc/glibc-functions/iswxdigit_l.texi.
26954         * doc/posix-functions/isxdigit_l.texi: Renamed from
26955         doc/glibc-functions/isxdigit_l.texi.
26956         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26957         doc/glibc-functions/mbsnrtowcs.texi.
26958         * doc/posix-functions/mkdtemp.texi: Renamed from
26959         doc/glibc-functions/mkdtemp.texi.
26960         * doc/posix-functions/newlocale.texi: Renamed from
26961         doc/glibc-functions/newlocale.texi.
26962         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26963         doc/glibc-functions/nl_langinfo_l.texi.
26964         * doc/posix-functions/open_memstream.texi: Renamed from
26965         doc/glibc-functions/open_memstream.texi.
26966         * doc/posix-functions/opterr.texi: Renamed from
26967         doc/glibc-functions/opterr.texi.
26968         * doc/posix-functions/optind.texi: Renamed from
26969         doc/glibc-functions/optind.texi.
26970         * doc/posix-functions/optopt.texi: Renamed from
26971         doc/glibc-functions/optopt.texi.
26972         * doc/posix-functions/psignal.texi: Renamed from
26973         doc/glibc-functions/psignal.texi.
26974         * doc/posix-functions/scandir.texi: Renamed from
26975         doc/glibc-functions/scandir.texi.
26976         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26977         doc/glibc-functions/sched_get_priority_min.texi.
26978         * doc/posix-functions/signgam.texi: Renamed from
26979         doc/glibc-functions/signgam.texi.
26980         * doc/posix-functions/stpcpy.texi: Renamed from
26981         doc/glibc-functions/stpcpy.texi.
26982         * doc/posix-functions/stpncpy.texi: Renamed from
26983         doc/glibc-functions/stpncpy.texi.
26984         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26985         doc/glibc-functions/strcasecmp_l.texi.
26986         * doc/posix-functions/strcoll_l.texi: Renamed from
26987         doc/glibc-functions/strcoll_l.texi.
26988         * doc/posix-functions/strfmon_l.texi: Renamed from
26989         doc/glibc-functions/strfmon_l.texi.
26990         * doc/posix-functions/strftime_l.texi: Renamed from
26991         doc/glibc-functions/strftime_l.texi.
26992         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26993         doc/glibc-functions/strncasecmp_l.texi.
26994         * doc/posix-functions/strndup.texi: Renamed from
26995         doc/glibc-functions/strndup.texi.
26996         * doc/posix-functions/strnlen.texi: Renamed from
26997         doc/glibc-functions/strnlen.texi.
26998         * doc/posix-functions/strsignal.texi: Renamed from
26999         doc/glibc-functions/strsignal.texi.
27000         * doc/posix-functions/strxfrm_l.texi: Renamed from
27001         doc/glibc-functions/strxfrm_l.texi.
27002         * doc/posix-functions/timer_gettime.texi: Renamed from
27003         doc/glibc-functions/timer_gettime.texi.
27004         * doc/posix-functions/tolower_l.texi: Renamed from
27005         doc/glibc-functions/tolower_l.texi.
27006         * doc/posix-functions/toupper_l.texi: Renamed from
27007         doc/glibc-functions/toupper_l.texi.
27008         * doc/posix-functions/towctrans_l.texi: Renamed from
27009         doc/glibc-functions/towctrans_l.texi.
27010         * doc/posix-functions/towlower_l.texi: Renamed from
27011         doc/glibc-functions/towlower_l.texi.
27012         * doc/posix-functions/towupper_l.texi: Renamed from
27013         doc/glibc-functions/towupper_l.texi.
27014         * doc/posix-functions/uselocale.texi: Renamed from
27015         doc/glibc-functions/uselocale.texi.
27016         * doc/posix-functions/vdprintf.texi: Renamed from
27017         doc/glibc-functions/vdprintf.texi.
27018         * doc/posix-functions/wcpcpy.texi:
27019         Renamed from doc/glibc-functions/wcpcpy.texi.
27020         * doc/posix-functions/wcpncpy.texi: Renamed from
27021         doc/glibc-functions/wcpncpy.texi.
27022         * doc/posix-functions/wcscasecmp.texi: Renamed from
27023         doc/glibc-functions/wcscasecmp.texi.
27024         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
27025         doc/glibc-functions/wcscasecmp_l.texi.
27026         * doc/posix-functions/wcscoll_l.texi: Renamed from
27027         doc/glibc-functions/wcscoll_l.texi.
27028         * doc/posix-functions/wcsdup.texi: Renamed from
27029         doc/glibc-functions/wcsdup.texi.
27030         * doc/posix-functions/wcsncasecmp.texi: Renamed from
27031         doc/glibc-functions/wcsncasecmp.texi.
27032         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
27033         doc/glibc-functions/wcsncasecmp_l.texi.
27034         * doc/posix-functions/wcsnlen.texi: Renamed from
27035         doc/glibc-functions/wcsnlen.texi.
27036         * doc/posix-functions/wcsnrtombs.texi: Renamed from
27037         doc/glibc-functions/wcsnrtombs.texi.
27038         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
27039         doc/glibc-functions/wcsxfrm_l.texi.
27040         * doc/posix-functions/wctrans_l.texi: Renamed from
27041         doc/glibc-functions/wctrans_l.texi.
27042         * doc/posix-functions/wctype_l.texi: Renamed from
27043         doc/glibc-functions/wctype_l.texi.
27044         * doc/gnulib.texi (Function Substitutes): Add these subsections.
27045         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
27046         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
27047         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
27048         these subsections.
27049         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
27050         Remove sections.
27051
27052 2008-12-14  Bruno Haible  <bruno@clisp.org>
27053
27054         Update doc for POSIX:2008.
27055         * doc/posix-functions/*.texi: Update URL of POSIX specification.
27056
27057 2008-12-14  Bruno Haible  <bruno@clisp.org>
27058
27059         Update doc for POSIX:2008.
27060         * doc/pastposix-functions/bcmp.texi: Renamed from
27061         doc/posix-functions/bcmp.texi.
27062         * doc/pastposix-functions/bcopy.texi: Renamed from
27063         doc/posix-functions/bcopy.texi.
27064         * doc/pastposix-functions/bsd_signal.texi: Renamed from
27065         doc/posix-functions/bsd_signal.texi.
27066         * doc/pastposix-functions/bzero.texi: Renamed from
27067         doc/posix-functions/bzero.texi.
27068         * doc/pastposix-functions/ecvt.texi: Renamed from
27069         doc/posix-functions/ecvt.texi.
27070         * doc/pastposix-functions/fcvt.texi: Renamed from
27071         doc/posix-functions/fcvt.texi.
27072         * doc/pastposix-functions/ftime.texi: Renamed from
27073         doc/posix-functions/ftime.texi.
27074         * doc/pastposix-functions/gcvt.texi: Renamed from
27075         doc/posix-functions/gcvt.texi.
27076         * doc/pastposix-functions/getcontext.texi: Renamed from
27077         doc/posix-functions/getcontext.texi.
27078         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
27079         doc/posix-functions/gethostbyaddr.texi.
27080         * doc/pastposix-functions/gethostbyname.texi: Renamed from
27081         doc/posix-functions/gethostbyname.texi.
27082         * doc/pastposix-functions/getwd.texi: Renamed from
27083         doc/posix-functions/getwd.texi.
27084         * doc/pastposix-functions/h_errno.texi: Renamed from
27085         doc/posix-functions/h_errno.texi.
27086         * doc/pastposix-functions/index.texi: Renamed from
27087         doc/posix-functions/index.texi.
27088         * doc/pastposix-functions/makecontext.texi: Renamed from
27089         doc/posix-functions/makecontext.texi.
27090         * doc/pastposix-functions/mktemp.texi: Renamed from
27091         doc/posix-functions/mktemp.texi.
27092         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
27093         doc/posix-functions/pthread_attr_getstackaddr.texi.
27094         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
27095         doc/posix-functions/pthread_attr_setstackaddr.texi.
27096         * doc/pastposix-functions/rindex.texi: Renamed from
27097         doc/posix-functions/rindex.texi.
27098         * doc/pastposix-functions/scalb.texi: Renamed from
27099         doc/posix-functions/scalb.texi.
27100         * doc/pastposix-functions/setcontext.texi: Renamed from
27101         doc/posix-functions/setcontext.texi.
27102         * doc/pastposix-functions/swapcontext.texi: Renamed from
27103         doc/posix-functions/swapcontext.texi.
27104         * doc/pastposix-functions/ualarm.texi: Renamed from
27105         doc/posix-functions/ualarm.texi.
27106         * doc/pastposix-functions/usleep.texi: Renamed from
27107         doc/posix-functions/usleep.texi.
27108         * doc/pastposix-functions/vfork.texi: Renamed from
27109         doc/posix-functions/vfork.texi.
27110         * doc/pastposix-functions/wcswcs.texi: Renamed from
27111         doc/posix-functions/wcswcs.texi.
27112         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
27113         (Function Substitutes): Update.
27114
27115 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27116
27117         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
27118         m4/strerror.m4.
27119
27120 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27121             Bruno Haible  <bruno@clisp.org>
27122
27123         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
27124
27125 2008-12-13  Bruno Haible  <bruno@clisp.org>
27126
27127         * modules/strtoull (Depends-on): Remove unistd.
27128
27129 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27130
27131         * modules/strtoull (Depends-on): Add stdlib.
27132
27133 2008-12-11  Simon Josefsson  <simon@josefsson.org>
27134
27135         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
27136
27137 2008-12-10  Jim Meyering  <meyering@redhat.com>
27138
27139         gl_ASSERT: don't say assertions are disabled when they're not
27140         * m4/assert.m4 (gl_ASSERT): Do not make configure report
27141         "checking whether to enable assertions... no", when they are in
27142         fact enabled.  This is solely a bug in the output of configure.
27143         In spite of saying "no", NDEBUG was not defined in that case.
27144         Also, as noted by Eric Blake, leave assertions enabled upon
27145         --enable-assert=INVALID.
27146
27147 2008-12-10  Bruno Haible  <bruno@clisp.org>
27148
27149         Change MODULES.html to refer to POSIX:2008 where possible.
27150         * MODULES.html.sh (POSIX2008_URL): New variable.
27151         (posix_headers): Remove sys/timeb, ucontext.
27152         (posix2001_headers): New variable.
27153         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
27154         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
27155         index, makecontext, mktemp, pthread_attr_getstackaddr,
27156         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
27157         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
27158         (posix2001_functions): New variable.
27159         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
27160         otherwise.
27161
27162 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27163
27164         add missing include to parse-duration.c
27165         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
27166         * modules/parse-duration (Depends-on): Add xalloc.
27167
27168         fix sed script reading maint.mk
27169         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
27170         (syntax-check-rules): Use it.
27171
27172 2008-12-09  Bruno Haible  <bruno@clisp.org>
27173
27174         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
27175         MacOS X 10.4/PowerPC.
27176         Reported by Simon Josefsson.
27177
27178 2008-12-08  Jim Meyering  <meyering@redhat.com>
27179
27180         work around mingw's lack of some S_IF definitions
27181         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
27182         Reported by Simon Josefsson.
27183
27184 2008-12-08  Bruno Haible  <bruno@clisp.org>
27185
27186         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
27187         applied to variables. Needed on MacOS X 10.4/PowerPC.
27188         Reported by Simon Josefsson.
27189
27190 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
27191         and Eric Blake  <ebb9@byu.net>
27192
27193         assert: honor --enable-assert
27194         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
27195         order to honor --enable-assert, rather than treating it as a
27196         synonym for --disable-assert.
27197
27198 2008-12-08  Jim Meyering  <meyering@redhat.com>
27199
27200         * lib/posixtm.c: Remove now-useless declaration of mktime.
27201
27202         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
27203
27204 2008-12-07  Bruno Haible  <bruno@clisp.org>
27205
27206         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
27207         test_once): Mark functions as static.
27208         * tests/test-tls.c (test_tls): Likewise.
27209
27210 2008-12-07  Bruno Haible  <bruno@clisp.org>
27211
27212         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
27213         iconv_register_autodetect.
27214
27215 2008-12-07  Jim Meyering  <meyering@redhat.com>
27216
27217         posixtm.c: avoid a warning
27218         * lib/posixtm.c (posixtime): Don't initialize tm0.
27219         It's no longer needed to placate gcc4's -Wuninitialized,
27220         and the attempt to placate would elicit a new warning.
27221
27222         unicodeio.c: mark unused parameters
27223         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27224         (fallback_failure_callback): Likewise.
27225
27226 2008-12-07  Bruno Haible  <bruno@clisp.org>
27227
27228         * gnulib-tool (func_create_testdir): When building the tests
27229         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
27230         Reported by Simon Josefsson.
27231
27232 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27233
27234         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
27235
27236 2008-12-06  Bruno Haible  <bruno@clisp.org>
27237
27238         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
27239         Suggested by Eric Blake.
27240
27241 2008-12-06  Bruno Haible  <bruno@clisp.org>
27242
27243         Fix a c-stack test failure on MacOS X.
27244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
27245         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
27246         handler for SIGBUS as well.
27247         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
27248         install a signal handler for SIGBUS as well.
27249         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
27250
27251 2008-12-06  Bruno Haible  <bruno@clisp.org>
27252
27253         Advocacy documentation.
27254         * doc/gnulib-intro.texi (Benefits): New section.
27255         * doc/gnulib.texi: Update.
27256
27257 2008-12-06  Bruno Haible  <bruno@clisp.org>
27258
27259         Document the 'manywarnings' module.
27260         * doc/manywarnings.texi: New file.
27261         * doc/gnulib.texi: Include it.
27262
27263 2008-12-05  Eric Blake  <ebb9@byu.net>
27264
27265         tests: silence some gcc warnings
27266         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
27267         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
27268         type mismatches.
27269
27270 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27271             Bruno Haible  <bruno@clisp.org>
27272
27273         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
27274
27275 2008-11-29  Jim Meyering  <meyering@redhat.com>
27276
27277         unicodeio.c: mark unused parameters
27278         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27279         (fallback_failure_callback): Likewise.
27280
27281         fts: fix a thinko
27282         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
27283         (set_stat_type): Return S_IF*-valued "type" directly.
27284         Prompted by James Youngman's spotting a related bug.
27285         Confirmed by further testing through find.
27286
27287         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
27288         * lib/fts.c (D_TYPE): Define.
27289         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
27290         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
27291         (s_ifmt_shift_bits): New function.
27292         (set_stat_type): New function.
27293         (fts_build): When not calling fts_stat, call set_stat_type
27294         to propagate dirent.d_type info to fts_read caller.
27295         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
27296         fts_statp->st_mode type information may be valid.
27297
27298 2008-11-28  Simon Josefsson  <simon@josefsson.org>
27299
27300         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
27301         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
27302         <sds@gnu.org>.
27303
27304 2008-11-20  Bruno Haible  <bruno@clisp.org>
27305
27306         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
27307         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
27308         INCLUDE_NEXT.
27309         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
27310         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
27311         * modules/math (Makefile.am): Substitute
27312         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
27313         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27314
27315 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27316             Bruno Haible  <bruno@clisp.org>
27317
27318         * lib/stdint.in.h: Define all type macros so that their expansion is
27319         a single typedef'ed token. Fixes a compilation failure in Boost which
27320         does "using ::int8_t;".
27321
27322 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27323
27324         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
27325         gl_MANYWARN_ALL_GCC.
27326         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
27327         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
27328         * modules/manywarnings: New file.
27329         * MODULES.html.sh: Mention manywarnings module.
27330
27331 2008-11-18  Bruno Haible  <bruno@clisp.org>
27332
27333         * doc/gnulib-tool.texi (Unit tests): New section.
27334
27335 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27336
27337         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
27338         paths like 'lib/po/foo.po'.
27339
27340 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27341
27342         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
27343         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
27344
27345 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27346
27347         * m4/warnings.m4: Use CPPFLAGS to really check whether the
27348         parameter works.
27349
27350 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27351
27352         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
27353
27354 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27355
27356         * modules/parse-duration-tests: New file.
27357         * tests/test-parse-duration.sh: New file.
27358         * tests/test-parse-duration.c: New file.
27359
27360         New module 'parse-duration'.
27361         * lib/parse-duration.h: New file.
27362         * lib/parse-duration.c: New file.
27363         * modules/parse-duration: New file.
27364
27365 2008-11-17  Bruno Haible  <bruno@clisp.org>
27366
27367         * tests/test-select-out.sh: Comment out the first pipe test.
27368         Reported by Simon Josefsson.
27369
27370 2008-11-17  Bruno Haible  <bruno@clisp.org>
27371
27372         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27374         gl_HOSTENT.
27375
27376 2008-11-17  Bruno Haible  <bruno@clisp.org>
27377
27378         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27379         -lnetwork and -lnet. Needed for Haiku and BeOS.
27380
27381 2008-11-16  Bruno Haible  <bruno@clisp.org>
27382
27383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27384
27385 2008-11-16  Bruno Haible  <bruno@clisp.org>
27386
27387         Avoid test failure on Haiku.
27388         * tests/test-fsync.c: Include <errno.h>.
27389         (main): Don't require that fsync (0) fails.
27390
27391 2008-11-15  Bruno Haible  <bruno@clisp.org>
27392
27393         New module 'hostent'.
27394         * modules/hostent: New file.
27395         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27396
27397 2008-11-15  Bruno Haible  <bruno@clisp.org>
27398
27399         New module 'servent'.
27400         * modules/servent: New file.
27401         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27402
27403 2008-11-15  Bruno Haible  <bruno@clisp.org>
27404
27405         Avoid generating same test program with two different rules.
27406         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27407         test-frexp to test-frexp-nolibm.
27408         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27409         test-frexpl to test-frexpl-nolibm.
27410
27411 2008-11-15  Bruno Haible  <bruno@clisp.org>
27412
27413         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27414         $(FREXPL_LIBM).
27415
27416 2008-11-15  Bruno Haible  <bruno@clisp.org>
27417
27418         * lib/netdb.in.h: Activate the definitions also when the system's
27419         <netdb.h> has 'struct addrinfo'.
27420         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27421         EAI_OVERFLOW or AI_NUMERICSERV.
27422         * doc/posix-headers/netdb.texi: Document the problem.
27423
27424 2008-11-15  Bruno Haible  <bruno@clisp.org>
27425
27426         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27427
27428         Make the 'sched' module work on platforms where <sched.h> exists but
27429         is incomplete (such as Haiku).
27430         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27431         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27432         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27433         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27434         HAVE_STRUCT_SCHED_PARAM.
27435         * modules/sched (Depends-on): Add include_next.
27436         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27437         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27438         * doc/posix-headers/sched.texi: Document the issue.
27439
27440 2008-11-13  Jim Meyering  <meyering@redhat.com>
27441
27442         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27443         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27444         test would fail due to the difference in the Report bugs to ...
27445         line.  The expected address is empty, "<>", while the actual
27446         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27447
27448 2008-11-12  Bruno Haible  <bruno@clisp.org>
27449
27450         lstat: don't compile lstat.c on systems lacking lstat
27451         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27452         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27453         Reported by Daniel P. Berrange via Jim Meyering.
27454
27455 2008-11-12  Jim Meyering  <meyering@redhat.com>
27456
27457         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27458
27459 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27460
27461         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27462         instead.
27463
27464 2008-11-12  Bruno Haible  <bruno@clisp.org>
27465
27466         * lib/unicodeio.c: Include unistr.h.
27467         (utf8_wctomb): Remove function.
27468         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27469
27470 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27471
27472         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27473         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27474         <bruno@clisp.org>.
27475         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27476
27477 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27478
27479         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27480         * doc/gnulib.texi: Add section for warnings.
27481
27482 2008-11-11  Bruno Haible  <bruno@clisp.org>
27483
27484         * lib/sockets.h: Add a comment.
27485
27486 2008-11-11  Karl Berry  <karl@gnu.org>
27487
27488         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27489
27490 2008-11-11  Eric Blake  <ebb9@byu.net>
27491
27492         fdl.texi: avoid git symlinks
27493         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27494
27495 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27496
27497         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27498
27499 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27500
27501         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27502         (gl_WARN_ADD): Substitute $2 if literal.
27503
27504 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27505
27506         * m4/warning.m4: Remove.
27507
27508 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27509
27510         * m4/warnings.m4: Almost complete rewrite. :-)
27511
27512 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27513
27514         * modules/warnings: New module.
27515         * m4/warnings.m4: New file.
27516         * MODULES.html.sh: Mention warnings module.
27517         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27518         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27519
27520 2008-11-10  Eric Blake  <ebb9@byu.net>
27521
27522         fdl.texi: make a symlink to the latest version
27523         * doc/standards.texi: Revert today's earlier change.
27524         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27525         * doc/fdl.texi: ...and replace this with a symlink to the newer
27526         fdl-1.3.texi.
27527
27528 2008-11-10  Bruno Haible  <bruno@clisp.org>
27529
27530         * tests/test-select-fd.c (main): Accept the result file name as fourth
27531         argument.
27532         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27533         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27534
27535 2008-11-10  Bruno Haible  <bruno@clisp.org>
27536
27537         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27538         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27539         as autoconf-substituted macros.
27540         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27541         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27542         gl_NETDB_H_DEFAULTS. Set these variables.
27543         * modules/netdb (Makefile.am): Substitute these variables.
27544
27545 2008-11-10  Eric Blake  <ebb9@byu.net>
27546
27547         standards.texi: include correct file for FDL 1.3
27548         * doc/standards.texi (GNU Free Documentation License): Change
27549         include file to pull in FDL 1.3, not 1.2.
27550
27551         fdl.texi: revert accidental change to license
27552         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27553
27554 2008-11-10  Bruno Haible  <bruno@clisp.org>
27555
27556         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27557         cross-compiling guesses also when the native compile gives no result.
27558
27559 2008-11-10  Bruno Haible  <bruno@clisp.org>
27560
27561         * lib/spawni.c (__spawni): Force variable into the stack.
27562
27563 2008-11-10  Bruno Haible  <bruno@clisp.org>
27564
27565         Add support for Haiku.
27566         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27567         glibc and BeOS, but also on Haiku.
27568         * lib/fpurge.c (fpurge): Likewise.
27569         * lib/freadable.c (freadable): Likewise.
27570         * lib/freadahead.c (freadahead): Likewise.
27571         * lib/freading.c (freading): Likewise.
27572         * lib/freadptr.c (freadptr): Likewise.
27573         * lib/freadseek.c (freadptrinc): Likewise.
27574         * lib/fseeko.c (rpl_fseeko): Likewise.
27575         * lib/fseterr.c (fseterr): Likewise.
27576         * lib/fwritable.c (fwritable): Likewise.
27577         * lib/fwriting.c (fwriting): Likewise.
27578         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27579
27580 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27581
27582         * lib/config.charset: Treat Haiku like BeOS.
27583
27584 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27585
27586         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27587         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27588
27589 2008-11-08  Bruno Haible  <bruno@clisp.org>
27590
27591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27592         AC_CACHE_CHECK.
27593
27594 2008-11-08  Bruno Haible  <bruno@clisp.org>
27595
27596         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27597
27598 2008-11-08  Bruno Haible  <bruno@clisp.org>
27599
27600         * tests/test-select-fd.c: New file.
27601         * tests/test-select-in.sh: New file.
27602         * tests/test-select-out.sh: New file.
27603         * tests/test-select-stdin.c: New file.
27604         * modules/select-tests (Files): Add the new files.
27605         (Depends-on): Add gettimeofday.
27606         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27607         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27608         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27609
27610 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27611             Bruno Haible  <bruno@clisp.org>
27612
27613         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27614
27615 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27616
27617         * build-aux/pmccabe2html: Added support for C++ source files.
27618
27619 2008-11-05  Ben Pfaff  <blp@gnu.org>
27620
27621         Fix lib/close.c build on Windows.
27622         * modules/close (Files): Add lib/w32sock.h.
27623
27624 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27625
27626         Accept Bison's NEWS format.
27627         * build-aux/announce-gen (print_news_deltas): Tweak
27628         $re_prefix.
27629
27630 2008-11-04  Bruno Haible  <bruno@clisp.org>
27631
27632         * modules/random_r (Maintainer): Add glibc.
27633
27634 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27635
27636         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27637         by karl@freefriends.org (Karl Berry).
27638         * doc/alloca.texi: Likewise.
27639         * doc/c-ctype.texi: Likewise.
27640         * doc/c-strcase.texi: Likewise.
27641         * doc/c-strcaseeq.texi: Likewise.
27642         * doc/c-strcasestr.texi: Likewise.
27643         * doc/c-strstr.texi: Likewise.
27644         * doc/c-strtod.texi: Likewise.
27645         * doc/c-strtold.texi: Likewise.
27646         * doc/ctime.texi: Likewise.
27647         * doc/error.texi: Likewise.
27648         * doc/fdl.texi: Likewise.
27649         * doc/gcd.texi: Likewise.
27650         * doc/getdate.texi: Likewise.
27651         * doc/gnulib-intro.texi: Likewise.
27652         * doc/gnulib-tool.texi: Likewise.
27653         * doc/gnulib.texi: Likewise.
27654         * doc/inet_ntoa.texi: Likewise.
27655         * doc/maintain.texi: Likewise.
27656         * doc/make-stds.texi: Likewise.
27657         * doc/quote.texi: Likewise.
27658         * doc/regexprops-generic.texi: Likewise.
27659         * doc/standards.texi: Likewise.
27660         * doc/verify.texi: Likewise.
27661         * doc/visibility.texi: Likewise.
27662         * doc/gnulib.texi (GNU Free Documentation License): Include
27663         fdl-1.3.texi instead of fdl.texi.
27664
27665 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27666
27667         * doc/fdl-1.3.texi: New file, from
27668         <http://www.gnu.org/licenses/fdl-1.3.texi>.
27669         * modules/fdl-1.3: Add.
27670         * MODULES.html.sh: Add fdl-1.3.
27671
27672 2008-11-03  Bruno Haible  <bruno@clisp.org>
27673
27674         Make determination of absolute name of header file work with AIX xlc.
27675         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
27676         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
27677         preprocessing.
27678         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27679         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27680
27681 2008-11-03  Simon Josefsson  <simon@josefsson.org>
27682
27683         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
27684         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
27685         <ludo@gnu.org>.
27686
27687 2008-11-02  Bruno Haible  <bruno@clisp.org>
27688
27689         Mark 'strpbrk' obsolete.
27690         * modules/strpbrk (Status, Notice): New sections.
27691         * modules/strtok_r (Depends-on): Add strpbrk.
27692
27693 2008-11-02  Bruno Haible  <bruno@clisp.org>
27694
27695         Mark 'strdup' obsolete.
27696         * modules/strdup (Status, Notice): New sections.
27697         * modules/findprog (Depends-on): Add strdup.
27698         * modules/getaddrinfo (Depends-on): Likewise.
27699         * modules/localename (Depends-on): Likewise.
27700         * modules/relocatable-lib (Depends-on): Likewise.
27701         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
27702         * modules/relocatable-prog (Depends-on): Likewise.
27703         * modules/trim (Depends-on): Likewise.
27704         * modules/unictype/gen-ctype (Depends-on): Likewise.
27705         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27706
27707 2008-11-02  Bruno Haible  <bruno@clisp.org>
27708
27709         Mark 'strcspn' obsolete.
27710         * modules/strcspn (Status, Notice): New sections.
27711
27712 2008-11-02  Bruno Haible  <bruno@clisp.org>
27713
27714         Mark 'rmdir' obsolete.
27715         * modules/rmdir (Status, Notice): New sections.
27716         * modules/clean-temp (Depends-on): Add rmdir.
27717         * modules/openat (Depends-on): Likewise.
27718
27719 2008-11-02  Bruno Haible  <bruno@clisp.org>
27720
27721         Mark 'raise' obsolete.
27722         * modules/raise (Status, Notice): New sections.
27723         (Include): Specify <signal.h>.
27724         * modules/stdio (Depends-on): Add raise.
27725         * modules/write (Depends-on): Likewise.
27726
27727 2008-11-02  Bruno Haible  <bruno@clisp.org>
27728
27729         Mark 'memset' obsolete.
27730         * modules/memset (Status, Notice): New sections.
27731
27732 2008-11-02  Bruno Haible  <bruno@clisp.org>
27733
27734         Mark 'memmove' obsolete.
27735         * modules/memmove (Status, Notice): New sections.
27736         * modules/argp (Depends-on): Add memmove.
27737         * modules/argz (Depends-on): Likewise.
27738         * modules/canonicalize (Depends-on): Likewise.
27739         * modules/canonicalize-lgpl (Depends-on): Likewise.
27740         * modules/fts (Depends-on): Likewise.
27741         * modules/getcwd (Depends-on): Likewise.
27742         * modules/human (Depends-on): Likewise.
27743         * modules/regex (Depends-on): Likewise.
27744         * modules/striconveh (Depends-on): Likewise.
27745         * modules/trim (Depends-on): Likewise.
27746         * modules/unistr/u8-move (Depends-on): Likewise.
27747         * modules/unistr/u16-move (Depends-on): Likewise.
27748         * modules/unistr/u32-move (Depends-on): Likewise.
27749
27750 2008-11-02  Bruno Haible  <bruno@clisp.org>
27751
27752         Mark 'memcpy' obsolete.
27753         * modules/memcpy (Status, Notice): New sections.
27754
27755 2008-11-02  Bruno Haible  <bruno@clisp.org>
27756
27757         Mark 'memcmp' obsolete.
27758         * modules/memcmp (Status, Notice): New sections.
27759         * modules/argmatch (Depends-on): Add memchr.
27760         * modules/backupfile (Depends-on): Likewise.
27761         * modules/c-strcasestr (Depends-on): Likewise.
27762         * modules/crypto/des (Depends-on): Likewise.
27763         * modules/csharpcomp (Depends-on): Likewise.
27764         * modules/fnmatch (Depends-on): Likewise.
27765         * modules/git-merge-changelog (Depends-on): Likewise.
27766         * modules/isnand (Depends-on): Likewise.
27767         * modules/isnand-nolibm (Depends-on): Likewise.
27768         * modules/isnanf (Depends-on): Likewise.
27769         * modules/isnanf-nolibm (Depends-on): Likewise.
27770         * modules/isnanl (Depends-on): Likewise.
27771         * modules/isnanl-nolibm (Depends-on): Likewise.
27772         * modules/mbchar (Depends-on): Likewise.
27773         * modules/memcoll (Depends-on): Likewise.
27774         * modules/quotearg (Depends-on): Likewise.
27775         * modules/regex (Depends-on): Likewise.
27776         * modules/relocatable-prog (Depends-on): Likewise.
27777         * modules/same (Depends-on): Likewise.
27778         * modules/signbit (Depends-on): Likewise.
27779         * modules/strcasestr-simple (Depends-on): Likewise.
27780         * modules/unictype/gen-ctype (Depends-on): Likewise.
27781         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27782         * modules/uniname/uniname (Depends-on): Likewise.
27783         * modules/unistr/u8-cmp (Depends-on): Likewise.
27784
27785 2008-11-02  Bruno Haible  <bruno@clisp.org>
27786
27787         Mark 'memchr' obsolete.
27788         * modules/memchr (Status, Notice): New sections.
27789         * modules/argp (Depends-on): Add memchr.
27790         * modules/base64 (Depends-on): Likewise.
27791         * modules/c-strcasestr (Depends-on): Likewise.
27792         * modules/chdir-long (Depends-on): Likewise.
27793         * modules/fnmatch (Depends-on): Likewise.
27794         * modules/getsubopt (Depends-on): Likewise.
27795         * modules/git-merge-changelog (Depends-on): Likewise.
27796         * modules/glob (Depends-on): Likewise.
27797         * modules/strcasestr-simple (Depends-on): Likewise.
27798         * modules/strnlen (Depends-on): Likewise.
27799
27800 2008-11-02  Bruno Haible  <bruno@clisp.org>
27801
27802         Mark 'atexit' obsolete.
27803         * modules/atexit (Status, Notice): New sections.
27804         * modules/chdir-long (Depends-on): Add atexit.
27805         * modules/wait-process (Depends-on): Likewise.
27806
27807 2008-11-02  Bruno Haible  <bruno@clisp.org>
27808
27809         * gnulib-tool: New option --with-obsolete.
27810         (func_usage): Document it.
27811         (func_modules_transitive_closure): Drop obsolete dependencies if
27812         incobsolete is not true.
27813         (func_import): Read and save the incobsolete variable to the cache.
27814
27815 2008-11-02  Bruno Haible  <bruno@clisp.org>
27816
27817         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27818         * gnulib-tool: New option --extract-status.
27819         (func_usage): Document it.
27820         (sed_extract_prog): Recognize it.
27821         (func_get_status): New function.
27822
27823 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27824
27825         * modules/sockets (License): Change from LGPL to LGPLv2+.
27826
27827 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27828
27829         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27830
27831 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27832
27833         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27834         Mention times and sys_times.
27835         * modules/sys_times, modules/sys_times-tests: New modules.
27836         * modules/times, modules/times-tests: Likewise
27837         * m4/sys_times_h.m4: New file.
27838         * lib/sys_times.in.h: Likewise
27839         * lib/times.c: Likewise.
27840         * tests/test-sys_times.c: Likewise.
27841         * tests/test-times.c: Likewise.
27842         * doc/posix-headers/sys_times.texi: Update.
27843         * doc/posix-functions/times.texi: Update.
27844
27845 2008-10-28  Jim Meyering  <meyering@redhat.com>
27846
27847         * modules/tempname (Depends-on): Add lstat.
27848
27849         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27850
27851 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27852
27853         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27854         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27855         using idiom used elsewhere in gnulib.
27856
27857 2008-10-27  Jim Meyering  <meyering@redhat.com>
27858
27859         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27860
27861 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27862
27863         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27864         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27865         programs.
27866         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27867
27868 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27869
27870         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27871
27872 2008-10-27  Bruno Haible  <bruno@clisp.org>
27873
27874         * tests/test-lstat.c: Include <stdio.h>.
27875
27876 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27877
27878         * modules/lstat-tests: New module.
27879         * tests/test-lstat.c: New file.
27880
27881 2008-10-26  Jim Meyering  <meyering@redhat.com>
27882
27883         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27884
27885 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27886             Bruno Haible  <bruno@clisp.org>
27887
27888         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27889         * modules/configmake (Include): Add a note that the include must come
27890         after all system headers.
27891         * lib/javaversion.c: Include configmake.h after all other includes.
27892
27893 2008-10-26  Bruno Haible  <bruno@clisp.org>
27894
27895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27896         HAVE_STRUCT_RANDOM_DATA to 1.
27897         (gl_STDLIB_H): Simplify.
27898
27899 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27900
27901         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27902         substitute HAVE_STRUCT_RANDOM_DATA.
27903         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27904         random_data.
27905         * modules/stdlib (Makefile.am): Substitute
27906         HAVE_STRUCT_RANDOM_DATA.
27907
27908 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27909
27910         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27911         * doc/gnulib-intro.texi (Copyright): Likewise.
27912
27913 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27914
27915         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27916         findings.
27917
27918 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27919             Bruno Haible  <bruno@clisp.org>
27920
27921         * lib/unistd.in.h: Include <winsock2.h>.
27922         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27923         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27924         Provide dummy declarations.
27925         (gethostname): Override.
27926         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27927         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27928         gl_PREREQ_SYS_H_WINSOCK2.
27929         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27930         * doc/posix-functions/gethostname.texi: More details.
27931
27932 2008-10-25  Bruno Haible  <bruno@clisp.org>
27933
27934         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27935         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27936         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27937
27938         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27939         here ...
27940         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27941         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27942         gl_UNISTD_H_DEFAULTS.
27943
27944 2008-10-25  Eric Blake  <ebb9@byu.net>
27945
27946         signbit: avoid spurious compiler failure
27947         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27948         declarations inside function.
27949
27950 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27951             Bruno Haible  <bruno@clisp.org>
27952
27953         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27954         * modules/random_r (Depends-on): Add stdint.
27955
27956 2008-10-24  Bruno Haible  <bruno@clisp.org>
27957
27958         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27959         Eggert.
27960         * modules/strerror (License): Likewise.
27961
27962 2008-10-24  Jim Meyering  <meyering@redhat.com>
27963
27964         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27965         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27966
27967 2008-10-24  Eric Blake  <ebb9@byu.net>
27968
27969         getgroups: fix compilation when getgroups is available
27970         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27971         but with <config.h> override of getgroups disabled.
27972
27973 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27974
27975         * doc/gnulib.texi (Header files): Add note about C++ problems.
27976         Explained by Bruno Haible <bruno@clisp.org>.
27977
27978 2008-10-23  Bruno Haible  <bruno@clisp.org>
27979
27980         Define a dummy SA_NODEFER macro on Interix.
27981         * lib/signal.in.h (SA_NODEFER): Define fallback.
27982         Reported by Aleksey Cheusov <cheusov@tut.by> via
27983         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27984
27985 2008-10-23  Bruno Haible  <bruno@clisp.org>
27986
27987         * modules/freadahead (License): Change to LGPLv2+.
27988         Suggested by Simon Josefsson.
27989
27990 2008-10-23  Jim Meyering  <meyering@redhat.com>
27991
27992         random_r: new module
27993         * modules/random_r: New file.
27994         * m4/random_r.m4: New file.
27995         * lib/random_r.c: New file, from glibc.
27996         * modules/random_r-tests: New file.
27997         * tests/test-random_r.c: New file.
27998         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27999          Declare.
28000         (RAND_MAX): Define.
28001         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
28002         * modules/stdlib: Substitute them, too.
28003         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
28004         * doc/glibc-functions/initstate_r.texi: Mention the new module.
28005         * doc/glibc-functions/random_r.texi: Likewise.
28006         * doc/glibc-functions/setstate_r.texi: Likewise.
28007         * doc/glibc-functions/srandom_r.texi: Likewise.
28008         * config/srclist.txt: Mention it.
28009
28010 2008-10-23  David Lutterkort  <lutter@redhat.com>
28011
28012         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
28013         link requirement
28014
28015 2008-10-23  Jim Meyering  <meyering@redhat.com>
28016
28017         selinux-h: mark parameters of stub functions as intentionally unused
28018         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
28019         * lib/se-context.in.h: Likewise.
28020
28021 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28022
28023         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
28024
28025 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28026
28027         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
28028
28029 2008-10-22  Eric Blake  <ebb9@byu.net>
28030
28031         glthread/thread: avoid compiler warning
28032         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
28033         Add unreachable abort to silence compiler.
28034
28035 2008-10-22  Eric Blake  <ebb9@byu.net>
28036
28037         netdb: also supply struct addrinfo for cygwin 1.5.x
28038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
28039         older cygwin.
28040         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
28041         cygwin.
28042         * doc/posix-headers/netdb.texi (netdb.h): Document this.
28043
28044 2008-10-22  Bruno Haible  <bruno@clisp.org>
28045
28046         * users.txt: Update entry about pspp.
28047
28048 2008-10-21  Bruno Haible  <bruno@clisp.org>
28049
28050         Simplification.
28051         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
28052         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
28053
28054         Simplification.
28055         * lib/ioctl.c (ioctl): Don't undefine.
28056         * lib/socket.c (socket): Don't undefine.
28057
28058         Remove unused module indicator macros.
28059         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
28060         GNULIB_$1 as a C macro.
28061
28062         * doc/posix-functions/close.texi: Undo last change.
28063         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
28064         Windows platforms.
28065
28066 2008-10-21  Bruno Haible  <bruno@clisp.org>
28067
28068         Add gethostname() declaration to <unistd.h>.
28069         * lib/unistd.in.h (gethostname): New declaration.
28070         * lib/gethostname.c: Include <unistd.h>.
28071         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
28072         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
28073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
28074         and HAVE_GETHOSTNAME.
28075         * modules/gethostname (Depends-on): Add unistd.
28076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28077         (Include): Specify <unistd.h>.
28078         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
28079         HAVE_GETHOSTNAME.
28080         * tests/test-gethostname.c: Include <unistd.h> first.
28081
28082 2008-10-21  Bruno Haible  <bruno@clisp.org>
28083
28084         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
28085         * modules/select-tests (Depends-on): Likewise.
28086         Reported by Simon Josefsson.
28087
28088 2008-10-21  Simon Josefsson  <simon@josefsson.org>
28089
28090         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
28091         * lib/accept.c: New file, based on winsock.c.
28092         * lib/bind.c: New file, based on winsock.c.
28093         * lib/connect.c: New file, based on winsock.c.
28094         * lib/getpeername.c: New file, based on winsock.c.
28095         * lib/getsockname.c: New file, based on winsock.c.
28096         * lib/getsockopt.c: New file, based on winsock.c.
28097         * lib/ioctl.c: New file, based on winsock.c.
28098         * lib/listen.c: New file, based on winsock.c.
28099         * lib/recv.c: New file, based on winsock.c.
28100         * lib/recvfrom.c: New file, based on winsock.c.
28101         * lib/send.c: New file, based on winsock.c.
28102         * lib/sendto.c: New file, based on winsock.c.
28103         * lib/setsockopt.c: New file, based on winsock.c.
28104         * lib/shutdown.c: New file, based on winsock.c.
28105         * lib/socket.c: New file, based on winsock.c.
28106         * lib/w32sock.h: New file, based on winsock.c.
28107         * lib/winsock.c: Remove file.
28108         * modules/accept: Likewise.
28109         * modules/bind: Likewise.
28110         * modules/connect: Likewise.
28111         * modules/getpeername: Likewise.
28112         * modules/getsockname: Likewise.
28113         * modules/getsockopt: Likewise.
28114         * modules/ioctl: Likewise.
28115         * modules/listen: Likewise.
28116         * modules/recv: Likewise.
28117         * modules/recvfrom: Likewise.
28118         * modules/send: Likewise.
28119         * modules/sendto: Likewise.
28120         * modules/setsockopt: Likewise.
28121         * modules/shutdown: Likewise.
28122         * modules/socket: Use socket.c instead of winsock.c.
28123         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
28124         * doc/posix-functions/accept.texi: Doc fix.
28125         * doc/posix-functions/bind.texi: Doc fix.
28126         * doc/posix-functions/close.texi: Doc fix.
28127         * doc/posix-functions/connect.texi: Doc fix.
28128         * doc/posix-functions/getpeername.texi: Doc fix.
28129         * doc/posix-functions/getsockname.texi: Doc fix.
28130         * doc/posix-functions/getsockopt.texi: Doc fix.
28131         * doc/posix-functions/ioctl.texi: Doc fix.
28132         * doc/posix-functions/listen.texi: Doc fix.
28133         * doc/posix-functions/recv.texi: Doc fix.
28134         * doc/posix-functions/recvfrom.texi: Doc fix.
28135         * doc/posix-functions/send.texi: Doc fix.
28136         * doc/posix-functions/sendto.texi: Doc fix.
28137         * doc/posix-functions/setsockopt.texi: Doc fix.
28138         * doc/posix-functions/shutdown.texi: Doc fix.
28139         * doc/posix-functions/socket.texi: Doc fix.
28140
28141 2008-10-20  Bruno Haible  <bruno@clisp.org>
28142
28143         Take into account the role of SIGABRT_COMPAT on Windows 2008.
28144         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
28145         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
28146         as an alias for SIGABRT.
28147         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
28148         (sigaction): Map it to SIGABRT.
28149         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
28150
28151 2008-10-20  Bruno Haible  <bruno@clisp.org>
28152
28153         * lib/fts.c: Don't include lstat.h.
28154         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
28155
28156         Move the lstat() declaration to <sys/stat.h>.
28157         * lib/lstat.h: Remove file.
28158         * lib/sys_stat.in.h: Add special invocation convention.
28159         (lstat): New declaration.
28160         * lib/lstat.c (orig_lstat): New function.
28161         (rpl_lstat): Use orig_lstat instead of lstat.
28162         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
28163         AC_C_INLINE. Set REPLACE_LSTAT.
28164         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
28165         and REPLACE_LSTAT.
28166         * modules/lstat (Files): Remove lib/lstat.h.
28167         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28168         (Include): Specify <sys/stat.h> instead of lstat.h.
28169         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
28170         REPLACE_LSTAT.
28171         * NEWS: Mention the change.
28172
28173 2008-10-20  Bruno Haible  <bruno@clisp.org>
28174
28175         * modules/posix_spawn-tests: New file.
28176         * tests/test-posix_spawn3.c: New file.
28177
28178 2008-10-20  Bruno Haible  <bruno@clisp.org>
28179
28180         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
28181         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
28182         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
28183         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
28184         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
28185
28186 2008-10-20  Bruno Haible  <bruno@clisp.org>
28187
28188         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
28189         of posix_spawn on AIX 5.3.
28190
28191 2008-10-20  Bruno Haible  <bruno@clisp.org>
28192
28193         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
28194
28195 2008-10-20  Bruno Haible  <bruno@clisp.org>
28196
28197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
28198         of AC_LANG_PROGRAM.
28199
28200 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28201
28202         * lib/netdb.in.h: Don't define GNU specific constants until they
28203         are supported or needed.  Reported by Bruno Haible
28204         <bruno@clisp.org>.
28205
28206 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28207
28208         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
28209
28210 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28211
28212         * lib/getaddrinfo.h: Remove file.
28213         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
28214         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
28215         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
28216         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
28217         * modules/netdb: Substitute GNULIB_GETADDRINFO.
28218         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
28219         * tests/test-getaddrinfo.c: Likewise.
28220         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
28221         * NEWS: Mention change.
28222
28223 2008-10-19  Bruno Haible  <bruno@clisp.org>
28224
28225         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
28226
28227 2008-10-19  Bruno Haible  <bruno@clisp.org>
28228
28229         * lib/wait-process.c: Include simply <sys/wait.h>.
28230         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
28231         WIFSTOPPED): Remove fallback definitions.
28232         * modules/wait-process (Depends-on): Add sys_wait.
28233
28234         New module 'sys_wait'.
28235         * modules/sys_wait: New file.
28236         * lib/sys_wait.in.h: New file, partially copied from
28237         lib/wait-process.c.
28238         * m4/sys_wait_h.m4: New file.
28239         * doc/posix-headers/sys_wait.texi: Mention the new module.
28240
28241 2008-10-19  Bruno Haible  <bruno@clisp.org>
28242
28243         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
28244
28245 2008-10-19  Bruno Haible  <bruno@clisp.org>
28246
28247         Assume that waitpid() fills an 'int' status, not a 'union wait'.
28248         * lib/wait-process.c (WAIT_T): Remove type.
28249         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
28250         (wait_subprocess): Update.
28251
28252 2008-10-19  Bruno Haible  <bruno@clisp.org>
28253
28254         New module 'atoll'.
28255         * modules/atoll: New file.
28256         * lib/stdlib.in.h (atoll): New declaration.
28257         * lib/atoll.c: New file, from glibc with modifications.
28258         * m4/atoll.m4: New file.
28259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
28260         HAVE_ATOLL.
28261         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
28262         * doc/posix-functions/atoll.texi: Mention the new module.
28263
28264 2008-10-19  Bruno Haible  <bruno@clisp.org>
28265
28266         Add strtoull() declaration to <stdlib.h>.
28267         * lib/stdlib.in.h (strtoull): New declaration.
28268         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28269         Set HAVE_STRTOULL.
28270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
28271         HAVE_STRTOULL.
28272         * modules/strtoull (Depends-on): Add stdlib.
28273         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28274         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
28275         HAVE_STRTOULL.
28276
28277 2008-10-19  Bruno Haible  <bruno@clisp.org>
28278
28279         Add strtoll() declaration to <stdlib.h>.
28280         * lib/stdlib.in.h (strtoll): New declaration.
28281         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28282         Set HAVE_STRTOLL.
28283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
28284         HAVE_STRTOLL.
28285         * modules/strtoll (Depends-on): Add stdlib.
28286         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28287         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
28288
28289 2008-10-19  Bruno Haible  <bruno@clisp.org>
28290
28291         * modules/bcopy (Depends-on): Add strings.
28292         (Include): Specify <strings.h>.
28293
28294 2008-10-19  Bruno Haible  <bruno@clisp.org>
28295
28296         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
28297
28298 2008-10-19  Bruno Haible  <bruno@clisp.org>
28299
28300         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
28301         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
28302         mingw.
28303
28304 2008-10-19  Bruno Haible  <bruno@clisp.org>
28305
28306         * lib/atanl.c: Don't include isnanl.h.
28307         * lib/cosl.c: Likewise.
28308         * lib/ldexpl.c: Likewise.
28309         * lib/logl.c: Likewise.
28310         * lib/sinl.c: Likewise.
28311         * lib/sqrtl.c: Likewise.
28312         * lib/tanl.c: Likewise.
28313
28314         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
28315         * lib/isnanf.h: Remove file.
28316         * lib/isnand.h: Remove file.
28317         * lib/isnanl.h: Remove file.
28318         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
28319         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
28320         macros.
28321         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
28322         HAVE_ISNANF, don't define it as a C macro.
28323         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
28324         HAVE_ISNAND, don't define it as a C macro.
28325         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
28326         HAVE_ISNANL, don't define it as a C macro.
28327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
28328         HAVE_ISNAN[FDL].
28329         * modules/isnanf (Files): Remove lib/isnanf.h.
28330         (Depends-on): Add math.
28331         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28332         (Include): Specify <math.h> instead of isnanf.h.
28333         * modules/isnand (Files): Remove lib/isnand.h.
28334         (Depends-on): Add math.
28335         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28336         (Include): Specify <math.h> instead of isnand.h.
28337         * modules/isnanl (Files): Remove lib/isnanl.h.
28338         (Depends-on): Add math.
28339         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28340         (Include): Specify <math.h> instead of isnanl.h.
28341         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
28342         HAVE_ISNAN[FDL].
28343         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
28344         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
28345         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
28346         * NEWS: Mention the change.
28347
28348 2008-10-18  Bruno Haible  <bruno@clisp.org>
28349
28350         Add getusershell(), setusershell(), endusershell() declarations to
28351         <unistd.h>.
28352         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
28353         declarations.
28354         * lib/getusershell.c: Include unistd.h.
28355         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
28356         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28357         HAVE_GETUSERSHELL.
28358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
28359         and HAVE_GETUSERSHELL.
28360         * modules/getusershell (Depends-on): Add unistd, extensions.
28361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28362         (Include): Specify <unistd.h>.
28363         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
28364         HAVE_GETUSERSHELL.
28365
28366 2008-10-18  Bruno Haible  <bruno@clisp.org>
28367
28368         Add a getloadavg() declaration to <stdlib.h>.
28369         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28370         getloadavg declaration.
28371         (getloadavg): New declaration.
28372         * lib/getloadavg.c: Include <stdlib.h> first.
28373         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28374         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28375         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28377         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28378         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28379         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28380         (Include): Specify <stdlib.h>.
28381         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28382         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28383
28384 2008-10-18  Bruno Haible  <bruno@clisp.org>
28385
28386         * lib/dirchownmod.c: Don't include lchmod.h.
28387
28388         Move the lchmod() declaration to <sys/stat.h>.
28389         * lib/lchmod.h: Remove file.
28390         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28391         (lchmod): New declaration, moved here from lib/lchown.h.
28392         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28393         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28395         and HAVE_LCHMOD.
28396         * modules/lchmod (Files): Remove lib/lchmod.h.
28397         (Depends-on): Add sys_stat, extensions.
28398         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28399         (Include): Specify <sys/stat.h> instead of lchmod.h.
28400         * modules/sys_stat (Depends-on): Add link-warning.
28401         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28402         definition of GL_LINK_WARNING.
28403         * NEWS: Mention the change.
28404
28405 2008-10-18  Bruno Haible  <bruno@clisp.org>
28406
28407         * lib/fchdir.c: Don't include dirfd.h.
28408         * lib/fts.c: Likewise.
28409         * lib/getcwd.c: Likewise.
28410         * lib/glob.c: Likewise.
28411
28412         Move the dirfd() declaration to <dirent.h>.
28413         * lib/dirfd.h: Remove file.
28414         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28415         (dirfd): New declaration.
28416         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28418         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28419         HAVE_DECL_DIRFD.
28420         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28421         HAVE_DECL_DIRFD.
28422         * modules/dirfd (Files): Remove lib/dirfd.h.
28423         (Depends-on): Add dirent, extensions.
28424         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28425         (Include): Specify <dirent.h> instead of dirfd.h.
28426         * modules/dirent (Depends-on): Add link-warning.
28427         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28428         definition of GL_LINK_WARNING.
28429         * NEWS: Mention the change.
28430
28431 2008-10-18  Bruno Haible  <bruno@clisp.org>
28432
28433         Move the euidaccess() declaration to <unistd.h>.
28434         * lib/euidaccess.h: Remove file.
28435         * lib/unistd.in.h (euidaccess): New declaration.
28436         * lib/euidaccess.c: Don't include euidaccess.h.
28437         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28438         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28440         and HAVE_EUIDACCESS.
28441         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28442         (Depends-on): Add unistd.
28443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28444         (Include): Specify <unistd.h> instead of euidaccess.h.
28445         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28446         HAVE_EUIDACCESS.
28447         * NEWS: Mention the change.
28448
28449 2008-10-18  Bruno Haible  <bruno@clisp.org>
28450
28451         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28452
28453         Move the getdomainname() declaration to <unistd.h>.
28454         * lib/getdomainname.h: Remove file.
28455         * lib/unistd.in.h (getdomainname): New declaration.
28456         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28457         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28458         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28459         HAVE_GETDOMAINNAME.
28460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28461         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28462         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28463         (Depends-on): Add unistd, extensions.
28464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28465         (Includes): Specify <unistd.h> instead of getdomainname.h.
28466         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28467         HAVE_GETDOMAINNAME.
28468         * NEWS: Mention the change.
28469
28470 2008-10-18  Bruno Haible  <bruno@clisp.org>
28471
28472         * modules/dirent: New file.
28473         * m4/dirent_h.m4: New file.
28474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28475         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28476         * modules/fchdir (Files): Remove lib/dirent.in.h.
28477         (Depends-on): Add dirent.
28478         (Makefile.am): Move rules to modules/dirent.
28479         * doc/posix-headers/dirent.texi: Mention the new module.
28480
28481 2008-10-18  Bruno Haible  <bruno@clisp.org>
28482
28483         Avoid -Wunused-parameter warnings in public gnulib header files.
28484         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28485         macro.
28486         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28487
28488 2008-10-18  Bruno Haible  <bruno@clisp.org>
28489
28490         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28491         * doc/glibc-functions/error.texi: Mention the module 'error'.
28492         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28493         * doc/glibc-functions/getdomainname.texi: Mention the module
28494         'getdomainname'.
28495         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28496         * doc/glibc-functions/getpagesize.texi: Mention the module
28497         'getpagesize'.
28498         * doc/glibc-functions/getusershell.texi: Mention the module
28499         'getusershell'.
28500         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28501         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28502         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28503         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28504         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28505         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28506         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28507         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28508         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28509         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28510         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28511         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28512         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28513         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28514
28515 2008-10-17  Bruno Haible  <bruno@clisp.org>
28516
28517         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28518         HP-UX and IRIX, use -0.0L.
28519         * tests/test-ceill.c (minus_zero): Likewise.
28520         * tests/test-floorl.c (minus_zero): Likewise.
28521         * tests/test-frexpl.c (minus_zero): Likewise.
28522         * tests/test-isnan.c (minus_zerol): Likewise.
28523         * tests/test-isnanl.h (minus_zero): Likewise.
28524         * tests/test-ldexpl.c (minus_zero): Likewise.
28525         * tests/test-roundl.c (minus_zero): Likewise.
28526         * tests/test-signbit.c (minus_zerol): Likewise.
28527         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28528         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28529         * tests/test-truncl.c (minus_zero): Likewise.
28530         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28531         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28532         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28533         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28534
28535 2008-10-17  Bruno Haible  <bruno@clisp.org>
28536
28537         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28538         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28539         that it gets activated only for gcc >= 3.0.
28540         * lib/dirent.in.h: Likewise.
28541         * lib/errno.in.h: Likewise.
28542         * lib/fcntl.in.h: Likewise.
28543         * lib/float.in.h: Likewise.
28544         * lib/iconv.in.h: Likewise.
28545         * lib/inttypes.in.h: Likewise.
28546         * lib/locale.in.h: Likewise.
28547         * lib/math.in.h: Likewise.
28548         * lib/netdb.in.h: Likewise.
28549         * lib/netinet_in.in.h: Likewise.
28550         * lib/search.in.h: Likewise.
28551         * lib/signal.in.h: Likewise.
28552         * lib/spawn.in.h: Likewise.
28553         * lib/stdarg.in.h: Likewise.
28554         * lib/stdint.in.h: Likewise.
28555         * lib/stdio.in.h: Likewise.
28556         * lib/stdlib.in.h: Likewise.
28557         * lib/string.in.h: Likewise.
28558         * lib/strings.in.h: Likewise.
28559         * lib/sys_file.in.h: Likewise.
28560         * lib/sys_ioctl.in.h: Likewise.
28561         * lib/sys_select.in.h: Likewise.
28562         * lib/sys_socket.in.h: Likewise.
28563         * lib/sys_stat.in.h: Likewise.
28564         * lib/sys_time.in.h: Likewise.
28565         * lib/sysexits.in.h: Likewise.
28566         * lib/time.in.h: Likewise.
28567         * lib/unistd.in.h: Likewise.
28568         * lib/wchar.in.h: Likewise.
28569         * lib/wctype.in.h: Likewise.
28570         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28571
28572 2008-10-17  Jim Meyering  <meyering@redhat.com>
28573
28574         ignore-value: don't depend on inline module
28575         * modules/ignore-value (Depends-on): Remove 'inline'.
28576         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28577         Suggestion from Bruno Haible.
28578
28579 2008-10-17  Bruno Haible  <bruno@clisp.org>
28580
28581         New implementation of condition variables for Win32.
28582         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28583         (gl_linked_waitqueue_t): New type.
28584         (gl_cond_t): Use it.
28585         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28586         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28587         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28588         (glthread_cond_init_func, glthread_cond_wait_func,
28589         glthread_cond_timedwait_func, glthread_cond_signal_func,
28590         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28591         Reimplemented on the basis of gl_linked_waitqueue_t.
28592         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28593         gl_waitqueue_t.
28594         (gl_rwlock_t): Update.
28595         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28596
28597 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28598
28599         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28600         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28601
28602 2008-10-17  Jim Meyering  <meyering@redhat.com>
28603
28604         ignore-value: new module
28605         * modules/ignore-value: New file.
28606         * lib/ignore-value.h: New file.
28607         * MODULES.html.sh (Compiler warning management): New section,
28608         just for this module.  More to come.
28609
28610 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28611
28612         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28613         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28614         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28615
28616 2008-10-16  Jim Meyering  <meyering@redhat.com>
28617
28618         openat-die.c: avoid 'no previous prototype' warning
28619         * lib/openat-die.c: Include "openat.h".
28620         Reported by Reuben Thomas <rrt@sc3d.org>.
28621
28622 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28623
28624         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28625         * lib/netdb.in.h: Fix typo.
28626         Reported by Bruno Haible  <bruno@clisp.org>
28627
28628         * lib/netdb.in.h: Include sys/socket.h for platforms without
28629         netdb.h, to get structures like hostent on MinGW.
28630         * modules/netdb (Depends-on): Add sys_socket.
28631
28632 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28633
28634         * modules/netdb, modules/netdb-tests: New file.
28635         * m4/netdb_h.m4: New file.
28636         * lib/netdb.in.h: Add, currently just an empty file pending
28637         definitions.
28638         * tests/test-netdb.c: New file.
28639         * doc/posix-headers/netdb.texi: Mention that we replace it if
28640         needed.
28641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28642         netdb.
28643
28644 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28645
28646         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
28647         with code.
28648
28649 2008-10-13  Bruno Haible  <bruno@clisp.org>
28650
28651         * lib/glthread/cond.c (glthread_cond_wait_func,
28652         glthread_cond_timedwait_func): Add a comment.
28653
28654 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28655
28656         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
28657         * tests/test-select.c: Likewise,
28658
28659 2008-10-13  Bruno Haible  <bruno@clisp.org>
28660
28661         * lib/glthread/cond.c (glthread_cond_wait_func,
28662         glthread_cond_timedwait_func): Fix variable name.
28663         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28664
28665 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
28666
28667         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
28668         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
28669         struct sockaddr.sa_len.
28670         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
28671
28672 2008-10-13  Simon Josefsson  <simon@josefsson.org>
28673
28674         * build-aux/pmccabe2html: Add css and css_url parameters.
28675
28676 2008-10-12  Bruno Haible  <bruno@clisp.org>
28677
28678         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
28679         calling aclx_get.
28680         Reported by Rainer Tammer <tammer@tammer.net>.
28681
28682 2008-10-12  Bruno Haible  <bruno@clisp.org>
28683
28684         Use msvcrt aware primitives for creation/termination of Win32 threads.
28685         * lib/glthread/thread.c: Include <process.h>.
28686         (glthread_create_func): Use _beginthreadex instead of CreateThread.
28687         (wrapper_func): Update signature.
28688         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
28689
28690 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28691             Bruno Haible  <bruno@clisp.org>
28692
28693         Provide a Win32 implementation of the 'cond' module.
28694         * lib/glthread/cond.h [USE_WIN32]: New implementation.
28695         * lib/glthread/cond.c (glthread_cond_init_func,
28696         glthread_cond_wait_func, glthread_cond_timedwait_func,
28697         glthread_cond_signal_func, glthread_cond_broadcast_func,
28698         glthread_cond_destroy_func) [USE_WIN32]: New functions.
28699         * modules/cond (Dependencies): Add gettimeofday.
28700
28701 2008-10-11  Bruno Haible  <bruno@clisp.org>
28702
28703         Make sleep work on older versions of mingw.
28704         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
28705         only whether it exists.
28706         * doc/posix-functions/sleep.texi: Mention the problem with older
28707         versions of mingw.
28708
28709 2008-10-11  Bruno Haible  <bruno@clisp.org>
28710
28711         New module 'shutdown'.
28712         * modules/shutdown: New file.
28713         * lib/sys_socket.in.h (shutdown): New declaration.
28714         * lib/winsock.c (shutdown): New function.
28715         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28716         GNULIB_SHUTDOWN.
28717         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
28718         * doc/posix-functions/shutdown.texi: Document the new module.
28719
28720 2008-10-11  Jim Meyering  <meyering@redhat.com>
28721
28722         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
28723
28724 2008-10-11  Bruno Haible  <bruno@clisp.org>
28725
28726         New module 'fclose'.
28727         * modules/fclose: New file.
28728         * lib/stdio.in.h (fclose): New declaration.
28729         * lib/fclose.c: New file.
28730         * m4/fclose.m4: New file.
28731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
28732         REPLACE_FCLOSE.
28733         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
28734         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
28735         REPLACE_FCLOSE.
28736         * modules/close (Depends-on): fclose.
28737         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
28738
28739 2008-10-11  Bruno Haible  <bruno@clisp.org>
28740
28741         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
28742         set errno and don't call _close.
28743
28744 2008-10-10  Bruno Haible  <bruno@clisp.org>
28745
28746         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28747         ACL, not afterwards. Fixes test failure on Cygwin.
28748
28749 2008-10-09  Ben Pfaff  <blp@gnu.org>
28750
28751         * build-aux/announce-gen: Fix gnulib version related part of usage
28752         message.  Die with a useful error message if no tarballs are
28753         found.
28754
28755 2008-10-10  Jim Meyering  <meyering@redhat.com>
28756
28757         bootstrap: use git's --depth=N option only if it's supported
28758         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
28759         recognize the --depth option.  Reported by Pádraig Brady.
28760
28761 2008-10-09  Bruno Haible  <bruno@clisp.org>
28762
28763         New module 'ioctl'.
28764         * modules/ioctl: New file.
28765         * lib/sys_socket.in.h (ioctl): Remove declaration.
28766         * lib/winsock.c: Include <sys/ioctl.h>.
28767         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
28768         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28769         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
28770         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
28771         * doc/posix-functions/ioctl.texi: Mention the new module.
28772
28773 2008-10-09  Bruno Haible  <bruno@clisp.org>
28774
28775         New module 'sys_ioctl'.
28776         * lib/sys_ioctl.in.h: New file.
28777         * m4/sys_ioctl_h.m4: New file.
28778         * modules/sys_ioctl: New file.
28779         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
28780
28781 2008-10-09  Bruno Haible  <bruno@clisp.org>
28782
28783         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
28784         * lib/winsock.c: Include <stdarg.h>.
28785         (rpl_ioctl): Change to second argument 'int' and then varargs.
28786
28787 2008-10-09  Bruno Haible  <bruno@clisp.org>
28788
28789         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
28790         when the sys_socket module is present and the system has <winsock2.h>.
28791
28792 2008-10-09  Bruno Haible  <bruno@clisp.org>
28793
28794         * doc/posix-functions/close.texi: Mention module 'close' instead of
28795         module 'sys_socket'.
28796
28797 2008-10-09  Bruno Haible  <bruno@clisp.org>
28798
28799         * doc/glibc-headers/sys_ioctl.texi: New file.
28800         * doc/gnulib.texi: Include it.
28801
28802 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28803             Bruno Haible  <bruno@clisp.org>
28804
28805         Combine the two replacements of 'close'.
28806         * lib/sys_socket.in.h (close): Define to a reminder to include
28807         <unistd.h>.
28808         (_gl_close_fd_maybe_socket): New declaration.
28809         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
28810         * lib/winsock.c (close): Remove undefinition.
28811         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28812         needed for the gnulib module 'close'.
28813         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28814         define to an error symbol or to a warning, if suitable.
28815         * lib/close.c: Include <sys/socket.h>.
28816         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28817         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28818         UNISTD_H_HAVE_WINSOCK2_H.
28819         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28821         UNISTD_H_HAVE_WINSOCK2_H.
28822         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28823         (configure.ac): Set a module indicator.
28824         (Makefile.am): Substitute GNULIB_CLOSE.
28825         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28826         * modules/poll-tests (Depends-on): Add close.
28827         * modules/select-tests (Depends-on): Likewise.
28828
28829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28830             Bruno Haible  <bruno@clisp.org>
28831
28832         New module 'close'.
28833         * modules/close: New file.
28834         * lib/unistd.in.h (close): Move declaration out of the
28835         FCHDIR_REPLACEMENT scope.
28836         (_gl_unregister_fd): New declaration.
28837         * lib/close.c: New file.
28838         * lib/fchdir.c (rpl_close): Remove function.
28839         * m4/close.m4: New file.
28840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28841         close.
28842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28843         REPLACE_CLOSE.
28844         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28845         REPLACE_CLOSE.
28846         * modules/fchdir (Depends-on): Add close.
28847
28848 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28849             Bruno Haible  <bruno@clisp.org>
28850
28851         * lib/fcntl.in.h (open): Simplify conditionals.
28852         (_gl_register_fd): New declaration.
28853         * lib/fchdir.c (rpl_open): Remove function.
28854         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28855         also.
28856         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28858         open.
28859
28860 2008-10-09  Jim Meyering  <meyering@redhat.com>
28861
28862         GNUmakefile: use the more name-space-friendly "_version"
28863         * top/GNUmakefile (_dummy): Update.
28864         (_version): Rename from "version".
28865
28866 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28867             Bruno Haible  <bruno@clisp.org>
28868
28869         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28870         rpl_close.
28871         (_gl_register_fd): New function, extracted from rpl_open.
28872         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28873         (rpl_open, rpl_opendir): Use _gl_register_fd.
28874
28875 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28876
28877         Fix organization of 'open' replacement.
28878         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28879         (gl_FUNC_OPEN): Use it.
28880         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28881
28882 2008-10-08  Bruno Haible  <bruno@clisp.org>
28883
28884         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28885
28886 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28887
28888         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28889         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28890         listen).
28891
28892 2008-10-08  Eric Blake  <ebb9@byu.net>
28893
28894         GNUmakefile: add 'make version' target
28895         * top/GNUmakefile (_curr-ver): Split version update rules...
28896         (version): ...into a target.
28897
28898 2008-10-07  Bruno Haible  <bruno@clisp.org>
28899
28900         Use a more portable replacement expression for -0.0L.
28901         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28902         instead of -0.0L. Fix m4 quotation.
28903
28904         * tests/test-signbit.c: Include <float.h>.
28905         (minus_zero): New variable.
28906         (test_signbitl): Use minus_zero instead of -zero.
28907         * modules/signbit-tests (Depends-on): Add float.
28908
28909         * tests/test-ceill.c: Include <float.h>.
28910         (zero): Remove variable.
28911         (minus_zero): New variable.
28912         (main): Use minus_zero instead of -zero.
28913         * modules/ceill-tests (Depends-on): Add float.
28914
28915         * tests/test-floorl.c: Include <float.h>.
28916         (zero): Remove variable.
28917         (minus_zero): New variable.
28918         (main): Use minus_zero instead of -zero.
28919         * modules/floorl-tests (Depends-on): Add float.
28920
28921         * tests/test-roundl.c: Include <float.h>.
28922         (zero): Remove variable.
28923         (minus_zero): New variable.
28924         (main): Use minus_zero instead of -zero.
28925         * modules/roundl-tests (Depends-on): Add float.
28926
28927         * tests/test-truncl.c: Include <float.h>.
28928         (zero): Remove variable.
28929         (minus_zero): New variable.
28930         (main): Use minus_zero instead of -zero.
28931         * modules/truncl-tests (Depends-on): Add float.
28932
28933         * tests/test-frexpl.c (zero): Remove variable.
28934         (minus_zero): New variable.
28935         (main): Use minus_zero instead of -zero.
28936         * modules/frexpl-tests (Depends-on): Add float.
28937
28938         * tests/test-isnan.c (zerol): Remove variable.
28939         (minus_zerol): New variable.
28940         (test_long_double): Use minus_zerol instead of -zerol.
28941         * modules/isnan-tests (Depends-on): Add float.
28942
28943         * tests/test-isnanl.h (zero): Remove variable.
28944         (minus_zero): New variable.
28945         (main): Use minus_zero instead of -zero.
28946         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28947         * modules/isnanl-tests (Depends-on): Add float.
28948
28949         * tests/test-ldexpl.c (zero): Remove variable.
28950         (minus_zero): New variable.
28951         (main): Use minus_zero instead of -zero.
28952         * modules/ldexpl-tests (Depends-on): Add float.
28953
28954         * tests/test-snprintf-posix.h (zerol): Remove variable.
28955         (minus_zerol): New variable.
28956         (test_function): Use minus_zerol instead of -zerol.
28957         * modules/snprintf-posix-tests (Depends-on): Add float.
28958         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28959
28960         * tests/test-sprintf-posix.h (zerol): Remove variable.
28961         (minus_zerol): New variable.
28962         (test_function): Use minus_zerol instead of -zerol.
28963         * modules/sprintf-posix-tests (Depends-on): Add float.
28964         * modules/vsprintf-posix-tests (Depends-on): Add float.
28965
28966         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28967         (minus_zerol): New variable.
28968         (test_function): Use minus_zerol instead of -zerol.
28969         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28970
28971         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28972         (minus_zerol): New variable.
28973         (test_function): Use minus_zerol instead of -zerol.
28974         * modules/vasprintf-posix-tests (Depends-on): Add float.
28975
28976 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28977
28978         * MODULES.html.sh (Support for building documentation): Mention
28979         pmccabe2html.  Sort entries.
28980
28981         Add pmccabe2html module, from gnupdf.
28982         * build-aux/pmccabe.css: New file.
28983         * build-aux/pmccabe2html: New file.
28984         * m4/pmccabe2html.m4: New file.
28985         * modules/pmccabe2html: New file.
28986
28987 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28988
28989         flock: new module
28990         * MODULES.html.sh: Add to list of modules.
28991         * lib/flock.c: flock implementation for Windows and Unix systems
28992         which have fcntl.
28993         * doc/glibc-functions/flock.texi: Update documentation.
28994         * lib/sys_file.in.h: <sys/file.h> header file.
28995         * m4/flock.m4: M4 macros.
28996         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28997         * modules/flock: flock module.
28998         * modules/flock-tests: flock tests module.
28999         * modules/sys_file: sys/file.h module.
29000         * tests/test-flock.c: test suite for flock.
29001
29002 2008-10-06  Jim Meyering  <meyering@redhat.com>
29003
29004         bootstrap: check for LT_INIT more portably still ;-)
29005         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
29006         Spotted by Bruno Haible.
29007
29008 2008-10-06  Eric Blake  <ebb9@byu.net>
29009
29010         test-signbit: avoid tripping Irix cc bug on -0.0L
29011         * tests/test-signbit.c (minus_zerol): Delete, and replace with
29012         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
29013         entire testsuite consistent and avoids an Irix 6.2 bug.
29014
29015 2008-10-05  Bruno Haible  <bruno@clisp.org>
29016             Jim Meyering  <jim@meyering.net>
29017
29018         Add an option for ignoring EPIPE during close_stdout.
29019         * lib/closeout.h: Include <stdbool.h>.
29020         (close_stdout_set_ignore_EPIPE): New declaration.
29021         * lib/closeout.c: Include <stdbool.h>.
29022         (ignore_EPIPE): New variable.
29023         (close_stdout_set_ignore_EPIPE): New function.
29024         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
29025         * lib/close-stream.c (close_stream): Mention the possible EPIPE
29026         failure.
29027         * modules/closeout (Depends-on): Add stdbool.
29028
29029 2008-10-05  Bruno Haible  <bruno@clisp.org>
29030
29031         * modules/accept: New file.
29032         * modules/bind: New file.
29033         * modules/connect: New file.
29034         * modules/getpeername: New file.
29035         * modules/getsockname: New file.
29036         * modules/getsockopt: New file.
29037         * modules/listen: New file.
29038         * modules/recv: New file.
29039         * modules/recvfrom: New file.
29040         * modules/send: New file.
29041         * modules/sendto: New file.
29042         * modules/setsockopt: New file.
29043         * modules/socket: New file.
29044         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
29045         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29046         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
29047         the particular module is requested. Add a link warning when the
29048         particular module is not requested.
29049         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
29050         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
29051         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
29052         the particular module is requested.
29053         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
29054         gl_SYS_SOCKET_H_DEFAULTS): New macros.
29055         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
29056         * modules/sys_socket (Depends-on): Add link-warning.
29057         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
29058         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
29059         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
29060         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
29061         GL_LINK_WARNING.
29062         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
29063         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
29064         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
29065         * doc/posix-functions/getpeername.texi: Mention the new module
29066         'getpeername'.
29067         * doc/posix-functions/getsockname.texi: Mention the new module
29068         'getsockname'.
29069         * doc/posix-functions/getsockopt.texi: Mention the new module
29070         'getsockopt'.
29071         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
29072         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
29073         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
29074         * doc/posix-functions/send.texi: Mention the new module 'send'.
29075         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
29076         * doc/posix-functions/setsockopt.texi: Mention the new module
29077         'setsockopt'.
29078         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
29079         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
29080         listen, connect, accept.
29081         * modules/select-tests (Depends-on): Likewise.
29082
29083 2008-10-05  Bruno Haible  <bruno@clisp.org>
29084
29085         * lib/winsock.c (strerror): Remove unused #undef.
29086         (rpl_close): Remove unused local variable.
29087
29088         * modules/sys_socket (Depends-on); Add errno.
29089
29090 2008-10-05  Bruno Haible  <bruno@clisp.org>
29091
29092         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
29093         (select): Add a link warning when the 'select' module is not used.
29094         * modules/sys_select (Depends-on): Add link-warning.
29095         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
29096         Suggested by Paolo Bonzini.
29097
29098 2008-10-05  Jim Meyering  <meyering@redhat.com>
29099
29100         bootstrap: check for LT_INIT more portably
29101         * build-aux/bootstrap: Avoid using grep -E, since it's not
29102         portable enough.  Suggestion from Bruno Haible.
29103
29104 2008-10-05  Bruno Haible  <bruno@clisp.org>
29105
29106         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
29107         as being fixed by gnulib.
29108
29109 2008-10-05  Bruno Haible  <bruno@clisp.org>
29110
29111         * modules/select-tests: New file, mostly copied from
29112         modules/sys_select-tests.
29113         * tests/test-select.c: New file, mostly copied from
29114         tests/test-sys_select.c.
29115         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
29116         * modules/sys_select-tests (Depends-on): Remove all dependencies.
29117         (Makefile.am): Remove test_sys_select_LDADD.
29118
29119         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
29120         to an undefined symbol, for an error message.
29121         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
29122         (gl_SYS_SELECT_H_DEFAULTS): New macro.
29123         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
29124         winsock-select.c here.
29125         * modules/sys_select (Files): Remove lib/winsock-select.c.
29126         (Depends-on): Remove alloca.
29127         (Makefile.am): Substitute GNULIB_SELECT.
29128         * modules/select: New file.
29129         * doc/posix-functions/select.texi: Update.
29130
29131 2008-10-05  Bruno Haible  <bruno@clisp.org>
29132
29133         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
29134         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
29135         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
29136         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
29137         getdtablesize.
29138         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
29139         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
29140
29141 2008-10-05  Bruno Haible  <bruno@clisp.org>
29142
29143         * modules/getdtablesize-tests: New file.
29144         * tests/test-getdtablesize.c: New file.
29145
29146         New module 'getdtablesize'.
29147         * lib/unistd.in.h (getdtablesize): New declaration.
29148         * lib/getdtablesize.c: New file.
29149         * m4/getdtablesize.m4: New file.
29150         * modules/getdtablesize: New file.
29151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29152         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
29153         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
29154         HAVE_GETDTABLESIZE.
29155         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
29156
29157 2008-10-05  Bruno Haible  <bruno@clisp.org>
29158
29159         * modules/sched (Makefile.am): Fix typo.
29160         Reported by Simon Josefsson.
29161
29162 2008-10-05  Jim Meyering  <meyering@redhat.com>
29163
29164         bootstrap: check for LT_INIT, too
29165         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
29166         are deprecated.  Suggestion from Ralf Wildenhues.
29167
29168 2008-10-05  Bruno Haible  <bruno@clisp.org>
29169
29170         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
29171         overriding them by ours.
29172         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
29173
29174 2008-10-05  Jim Meyering  <meyering@redhat.com>
29175
29176         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
29177         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
29178         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
29179
29180 2008-10-04  Bruno Haible  <bruno@clisp.org>
29181
29182         * modules/dup2 (License): Change to LGPLv2+.
29183         * modules/sleep (License): Likewise.
29184         * modules/perror (License): Likewise.
29185         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
29186         Blake.
29187         * modules/signal (License): Likewise.
29188         * modules/sigprocmask (License): Likewise.
29189         * modules/raise (License): Change to LGPLv2+, with approval by Jim
29190         Meyering.
29191
29192 2008-10-04  Bruno Haible  <bruno@clisp.org>
29193
29194         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
29195         Reported by Rainer Tammer <tammer@tammer.net>.
29196
29197 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
29198             Bruno Haible  <bruno@clisp.org>
29199
29200         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
29201         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
29202         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
29203
29204 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
29205
29206         filevercmp: new module
29207         * lib/filevercmp.h: New function filevercmp comparing version strings.
29208         * lib/filevercmp.c: Implementation of filevercmp function.
29209         * modules/filevercmp: Module metadata.
29210         * tests/test-filevercmp.c: Unit test for new module.
29211         * modules/filevercmp-tests: Unit test metadata.
29212         * MODULES.html.sh: Add filevercmp module.
29213
29214 2008-10-03  Bruno Haible  <bruno@clisp.org>
29215
29216         * lib/c-ctype.h: Add comment.
29217         Reported by Jim Meyering.
29218
29219 2008-10-02  Bruno Haible  <bruno@clisp.org>
29220
29221         * modules/posix_spawn-internal (Depends-on): Add 'open'.
29222
29223 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29224
29225         * build-aux/bootstrap: Allow renaming bootstrap, and change the
29226         name of bootstrap.conf accordingly.
29227
29228 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29229
29230         * build-aux/bootstrap: Install git-merge-changelog configuration
29231         items into .gitconfig if needed.
29232
29233 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29234
29235         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
29236         git repository, and initialize/update it accordingly.
29237
29238 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
29239
29240         * modules/fsync-tests: New file.
29241         * tests/test-fsync.c: New file.
29242
29243         New module 'fsync'.
29244         * lib/fsync.c: New file.
29245         * m4/fsync.m4: New file.
29246         * modules/fsync: New file.
29247         * lib/unistd.in.h (fsync): New declaration.
29248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
29249         GNULIB_FSYNC and HAVE_FSYNC.
29250         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
29251         * MODULES.html.sh (posix_functions): Add fsync.
29252         * doc/posix-functions/fsync.texi: Mention the new module.
29253
29254 2008-10-02  Jim Meyering  <meyering@redhat.com>
29255
29256         fts.c: sync with similar code from coreutils' remove.c
29257         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
29258         Guard also with "#if defined __linux__", since for now at least,
29259         this code is Linux-kernel-specific.
29260
29261 2008-10-02  Jim Meyering  <meyering@redhat.com>
29262
29263         fts: bug fixes
29264         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
29265         Include <sys/vfs.h>, not <sys/statfs.h>.
29266
29267         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
29268         Include <sys/vfs.h>, not <sys/statfs.h>.
29269
29270 2008-10-01  Bruno Haible  <bruno@clisp.org>
29271
29272         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
29273         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
29274         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
29275         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
29276         * doc/posix-functions/posix_spawnp.texi: Likewise.
29277         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
29278         whether posix_spawn actually works.
29279         * m4/pipe.m4 (gl_PIPE): Likewise.
29280         * modules/execute (Files): Add m4/posix_spawn.m4.
29281         * modules/pipe (Files): Add m4/posix_spawn.m4.
29282         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
29283
29284 2008-10-01  Jim Meyering  <meyering@redhat.com>
29285
29286         remove trailing spaces
29287         * NEWS: Likewise.
29288         * lib/poll.c (poll): Likewise.
29289         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
29290         * lib/winsock.c (rpl_close): Likewise.
29291         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
29292         * modules/yield: Likewise.
29293         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
29294         * tests/test-sys_select.c (connect_to_socket): Likewise.
29295
29296         fts.c: adjust a new interface to be more generally useful
29297         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
29298         (fts_build): Adjust caller.
29299
29300 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29301
29302         * modules/cond-tests: New file.
29303         * tests/test-cond.c: New file.
29304
29305 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29306             Bruno Haible  <bruno@clisp.org>
29307
29308         * modules/cond (Dependencies): Add errno, time.
29309         * lib/glthread/cond.h: Include <time.h>.
29310         (gl_cond_define, gl_cond_define_initialized): Use the same definition
29311         across platforms.
29312
29313 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29314             Bruno Haible  <bruno@clisp.org>
29315
29316         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
29317
29318 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29319             Bruno Haible  <bruno@clisp.org>
29320
29321         * modules/tls-tests (Depends-on): Add thread, yield.
29322         (configure.ac): Remove all checks.
29323         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
29324         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29325         gl_thread_self): Remove definitions. Include glthread/thread.h and
29326         glthread/yield.h instead.
29327         (test_tls): Pass an additional NULL argument to gl_thread_join.
29328
29329 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29330             Bruno Haible  <bruno@clisp.org>
29331
29332         * modules/lock-tests (Depends-on): Add thread, yield.
29333         (configure.ac): Remove all checks.
29334         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
29335         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29336         gl_thread_self): Remove definitions. Include glthread/thread.h and
29337         glthread/yield.h instead.
29338         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
29339         additional NULL argument to gl_thread_join.
29340
29341 2008-09-30  Bruno Haible  <bruno@clisp.org>
29342
29343         Fix the Win32 implementation of the 'thread' module.
29344         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
29345         pointer type.
29346         (gl_thread_self): Invoke gl_thread_self_func.
29347         (gl_thread_self_func): New declaration.
29348         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
29349         (do_init_self_key, init_self_key): New functions.
29350         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
29351         Remove some fields.
29352         (running_threads, running_lock): Remove variables.
29353         (get_current_thread_handle): New function.
29354         (gl_thread_self_func, wrapper_func, glthread_create_func,
29355         glthread_join_func, gl_thread_exit_func): Largely rewritten and
29356         simplified.
29357
29358 2008-09-30  Bruno Haible  <bruno@clisp.org>
29359
29360         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
29361         files.
29362
29363 2008-09-30  Jim Meyering  <meyering@redhat.com>
29364
29365         fts.m4: correct the test for statfs.f_type
29366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29367         when checking for statfs.f_type.
29368
29369 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29370
29371         tests: avoid some compiler warnings
29372         * tests/test-memchr.c (main): Pass NULL indirectly.
29373         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29374
29375 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29376
29377         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29378         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29379         exactly specified dayshifts.
29380         (dayshift): New rule.
29381         (rel): Add dayshift.
29382         (relative_time_table) [tomorrow, yesterday, today, now]:
29383         Use tDAY_SHIFT in place of tDAY_UNIT.
29384         * tests/test-getdate.c: Add tests for now-disallowed countable
29385         dayshifts, e.g., "4 yesterday ago".
29386
29387 2008-09-29  Bruno Haible  <bruno@clisp.org>
29388
29389         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29390         * tests/test-posix_spawn1.in.sh: Renamed from
29391         tests/test-posix_spawn.in.sh.
29392         * tests/test-posix_spawn2.c: New file.
29393         * tests/test-posix_spawn2.in.sh: New file.
29394         * modules/posix_spawnp-tests (Files): Update.
29395         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29396
29397 2008-09-29  Bruno Haible  <bruno@clisp.org>
29398
29399         Propagate effects of putenv/setenv/unsetenv to child processes.
29400         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29401         * lib/pipe.c (create_pipe): Likewise.
29402
29403 2008-09-29  Bruno Haible  <bruno@clisp.org>
29404
29405         Enable use of shell scripts as executables in mingw.
29406         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29407         run the program as a shell script.
29408         * lib/pipe.c (create_pipe): Likewise.
29409         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29410         resulting array.
29411
29412 2008-09-29  Eric Blake  <ebb9@byu.net>
29413
29414         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29415
29416 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29417
29418         * doc/posix-functions/accept.texi: Update mingw problems.
29419         * doc/posix-functions/bind.texi: Update mingw problems.
29420         * doc/posix-functions/close.texi: Update mingw problems.
29421         * doc/posix-functions/connect.texi: Update mingw problems.
29422         * doc/posix-functions/getpeername.texi: Update mingw problems.
29423         * doc/posix-functions/getsockname.texi: Update mingw problems.
29424         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29425         * doc/posix-functions/ioctl.texi: Update mingw problems.
29426         * doc/posix-functions/listen.texi: Update mingw problems.
29427         * doc/posix-functions/recv.texi: Update mingw problems.
29428         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29429         * doc/posix-functions/select.texi: Update mingw problems.
29430         * doc/posix-functions/send.texi: Update mingw problems.
29431         * doc/posix-functions/sendto.texi: Update mingw problems.
29432         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29433         * doc/posix-functions/socket.texi: Update mingw problems.
29434
29435 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29436             Bruno Haible  <bruno@clisp.org>
29437
29438         * lib/sys_select.in.h: Include sys/time.h.
29439         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29440         * modules/sys_select: Depend on sys_time.
29441         * tests/test-sys_select.c: Test that sys/select.h defines struct
29442         timeval fully.
29443
29444 2008-09-29  Bruno Haible  <bruno@clisp.org>
29445
29446         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29447         * lib/sys_select.in.h: Likewise.
29448
29449 2008-09-29  Bruno Haible  <bruno@clisp.org>
29450
29451         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29452
29453 2008-09-29  Bruno Haible  <bruno@clisp.org>
29454
29455         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29456         Set LIBSOCKET instead of augmenting LIBS.
29457         * modules/sockets (Link): New section.
29458         * modules/sockets-tests (test_sockets_LDADD): New variable.
29459         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29460         * modules/poll-tests (test_poll_LDADD): New variable.
29461         * NEWS: Document the change.
29462
29463 2008-09-29  Bruno Haible  <bruno@clisp.org>
29464
29465         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29466         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29467         ARPA_INET_H directly.
29468         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29469
29470 2008-09-28  Bruno Haible  <bruno@clisp.org>
29471
29472         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29473         from gl_HEADER_SYS_SOCKET.
29474         (gl_HEADER_SYS_SOCKET): Invoke it.
29475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29476
29477 2008-09-28  Bruno Haible  <bruno@clisp.org>
29478
29479         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29480         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29481         Needed on OSF/1 4.0.
29482
29483 2008-09-28  Bruno Haible  <bruno@clisp.org>
29484
29485         Override open more carefully.
29486         * lib/open.c (orig_open): New function.
29487         (rpl_open): Use orig_open instead of open.
29488         * lib/fcntl.in.h: Add special invocation convention.
29489         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29490         (gl_FUNC_OPEN): Invoke it.
29491
29492         Override freopen more carefully.
29493         * lib/freopen.c (orig_freopen): New function.
29494         (rpl_freopen): Use orig_freopen instead of freopen.
29495         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29496         (gl_FUNC_FREOPEN): Invoke it.
29497
29498         Override fopen more carefully.
29499         * lib/fopen.c (orig_fopen): New function.
29500         (rpl_fopen): Use orig_fopen instead of fopen.
29501         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29502         (gl_FUNC_FOPEN): Invoke it.
29503         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29504
29505 2008-09-28  Bruno Haible  <bruno@clisp.org>
29506
29507         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29508         SIGPIPE.
29509
29510 2008-09-28  Bruno Haible  <bruno@clisp.org>
29511
29512         * tests/test-sigaction.c (handler, main): Disable the check whether
29513         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29514         glibc systems with LinuxThreads.
29515
29516 2008-09-28  Bruno Haible  <bruno@clisp.org>
29517
29518         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29519
29520         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29521         with AIX xlc.
29522         * lib/fcntl.in.h (open): Likewise.
29523         Reported by Rainer Tammer <tammer@tammer.net>.
29524
29525 2008-09-28  Bruno Haible  <bruno@clisp.org>
29526
29527         * modules/posix_spawnp-tests: New file.
29528         * tests/test-posix_spawn.c: New file.
29529         * tests/test-posix_spawn.in.sh: New file.
29530
29531         New module 'posix_spawnp'.
29532         * modules/posix_spawnp: New file.
29533         * lib/spawnp.c: New file, from GNU libc with modifications.
29534         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29535
29536         New module 'posix_spawn'.
29537         * modules/posix_spawn: New file.
29538         * lib/spawn.c: New file, from GNU libc with modifications.
29539         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29540
29541         New module 'posix_spawnattr_destroy'.
29542         * modules/posix_spawnattr_destroy: New file.
29543         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29544         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29545         module.
29546
29547         New module 'posix_spawnattr_setsigmask'.
29548         * modules/posix_spawnattr_setsigmask: New file.
29549         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29550         modifications.
29551         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29552         new module.
29553
29554         New module 'posix_spawnattr_getsigmask'.
29555         * modules/posix_spawnattr_getsigmask: New file.
29556         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29557         modifications.
29558         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29559         new module.
29560
29561         New module 'posix_spawnattr_setsigdefault'.
29562         * modules/posix_spawnattr_setsigdefault: New file.
29563         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29564         modifications.
29565         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29566         new module.
29567
29568         New module 'posix_spawnattr_getsigdefault'.
29569         * modules/posix_spawnattr_getsigdefault: New file.
29570         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29571         modifications.
29572         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29573         new module.
29574
29575         New module 'posix_spawnattr_setschedpolicy'.
29576         * modules/posix_spawnattr_setschedpolicy: New file.
29577         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29578         modifications.
29579         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29580         new module.
29581
29582         New module 'posix_spawnattr_getschedpolicy'.
29583         * modules/posix_spawnattr_getschedpolicy: New file.
29584         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29585         modifications.
29586         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29587         new module.
29588
29589         New module 'posix_spawnattr_setschedparam'.
29590         * modules/posix_spawnattr_setschedparam: New file.
29591         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29592         modifications.
29593         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29594         new module.
29595
29596         New module 'posix_spawnattr_getschedparam'.
29597         * modules/posix_spawnattr_getschedparam: New file.
29598         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29599         modifications.
29600         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29601         new module.
29602
29603         New module 'posix_spawnattr_setpgroup'.
29604         * modules/posix_spawnattr_setpgroup: New file.
29605         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29606         modifications.
29607         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29608         module.
29609
29610         New module 'posix_spawnattr_getpgroup'.
29611         * modules/posix_spawnattr_getpgroup: New file.
29612         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29613         modifications.
29614         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29615         module.
29616
29617         New module 'posix_spawnattr_setflags'.
29618         * modules/posix_spawnattr_setflags: New file.
29619         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29620         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29621         module.
29622
29623         New module 'posix_spawnattr_getflags'.
29624         * modules/posix_spawnattr_getflags: New file.
29625         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29626         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29627         module.
29628
29629         New module 'posix_spawnattr_init'.
29630         * modules/posix_spawnattr_init: New file.
29631         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29632         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29633         module.
29634
29635         New module 'posix_spawn_file_actions_destroy'.
29636         * modules/posix_spawn_file_actions_destroy: New file.
29637         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29638         modifications.
29639         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29640         the new module.
29641
29642         New module 'posix_spawn_file_actions_addopen'.
29643         * modules/posix_spawn_file_actions_addopen: New file.
29644         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29645         modifications.
29646         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
29647         the new module.
29648
29649         New module 'posix_spawn_file_actions_adddup2'.
29650         * modules/posix_spawn_file_actions_adddup2: New file.
29651         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
29652         modifications.
29653         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
29654         the new module.
29655
29656         New module 'posix_spawn_file_actions_addclose'.
29657         * modules/posix_spawn_file_actions_addclose: New file.
29658         * lib/spawn_faction_addclose.c: New file, from GNU libc with
29659         modifications.
29660         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
29661         the new module.
29662
29663         New module 'posix_spawn_file_actions_init'.
29664         * modules/posix_spawn_file_actions_init: New file.
29665         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
29666         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
29667         new module.
29668
29669         New module 'posix_spawn-internal'.
29670         * modules/posix_spawn-internal: New file.
29671         * lib/spawn_int.h: New file, from GNU libc with modifications.
29672         * lib/spawni.c: New file, from GNU libc with modifications.
29673         * m4/posix_spawn.m4: New file.
29674
29675         New module 'spawn'.
29676         * modules/spawn: New file.
29677         * lib/spawn.in.h: New file, from GNU libc with modifications.
29678         * m4/spawn_h.m4: New file.
29679         * doc/posix-headers/spawn.texi: Mention the new module.
29680
29681 2008-09-28  Bruno Haible  <bruno@clisp.org>
29682
29683         * modules/sched-tests: New file.
29684         * tests/test-sched.c: New file.
29685
29686         New module 'sched'.
29687         * modules/sched: New file.
29688         * lib/sched.in.h: New file.
29689         * m4/sched_h.m4: New file.
29690         * doc/posix-headers/sched.texi: Mention the new module.
29691
29692 2008-09-27  Eric Blake  <ebb9@byu.net>
29693
29694         Fix previous patch, and tweak references to $0.
29695         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
29696         (func_version, func_gnulib_dir): Don't call this program
29697         gnulib-tool.
29698         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
29699         with using $0 in function.
29700         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
29701         (func_fatal_error): Reuse the name the user invoked us with.
29702
29703 2008-09-27  Bruno Haible  <bruno@clisp.org>
29704
29705         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
29706         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
29707         (gl_ICONV_H): Not here.
29708         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29709         instead of assigning ICONV_H directly.
29710
29711         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
29713         WCHAR_H directly.
29714
29715 2008-09-27  Bruno Haible  <bruno@clisp.org>
29716
29717         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
29718         * modules/arpa_inet (Depends-on): Add link-warning.
29719         (Makefile.am): Insert the definition of GL_LINK-WARNING.
29720         * modules/unistd (Makefile.am): Likewise.
29721
29722 2008-09-26  Bruno Haible  <bruno@clisp.org>
29723
29724         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
29725         variables.
29726         (func_version): Essentially copied from gnulib-tool.
29727         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
29728         func_readlink): Copied from gnulib-tool.
29729
29730 2008-09-26  Bruno Haible  <bruno@clisp.org>
29731
29732         * gnulib-tool (func_version): Change directory to $gnulib_dir before
29733         invoking git-version-gen.
29734
29735 2008-09-26  Bruno Haible  <bruno@clisp.org>
29736
29737         * posix-modules: Update to directory names changed on 2008-01-19.
29738         Remove commas in output before splitting into words. No more need to
29739         avoid 'ftruncate' since 2007-02-19.
29740
29741 2008-09-26  Bruno Haible  <bruno@clisp.org>
29742
29743         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
29744
29745 2008-09-26  Bruno Haible  <bruno@clisp.org>
29746
29747         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
29748         * modules/fwriteerror (Depends-on): Add errno.
29749
29750 2008-09-26  Bruno Haible  <bruno@clisp.org>
29751
29752         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
29753         * tests/test-vc-list-files-cvs.sh: Likewise.
29754
29755 2008-09-26  Bruno Haible  <bruno@clisp.org>
29756
29757         * doc/posix-headers/sys_resource.texi: Reorder items.
29758
29759 2008-09-26  Jim Meyering  <meyering@redhat.com>
29760
29761         fts: tweak inode comparison function
29762         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
29763         inode numbers, as documented.
29764
29765         fts: sort dirent entries on inode number before traversing
29766         This avoids a quadratic, seek-related performance penalty when
29767         operating on a directory containing many entries (measurable at 10k;
29768         3.5 hours at 2 million entries with a cold cache) on certain types
29769         of file systems, including ext3 and ext4, but not tmpfs.
29770         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
29771         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
29772         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
29773         (fs_handles_readdir_ordered_dirents_efficiently): New function.
29774         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
29775         (fts_build): Set the stat.st_ino member from D_INO.
29776         If it is likely to be useful, sort dirent entries on inode number.
29777
29778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
29779         and the struct statfs.f_type member.
29780         * modules/fts (Depends-on): Add d-ino.
29781
29782 2008-09-26  Bruno Haible  <bruno@clisp.org>
29783
29784         * modules/sigpipe-die (Depends-on): Add sigpipe.
29785
29786         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
29787         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
29788         and GNULIB_STDIO_H_SIGPIPE are set.
29789         * lib/stdio-write.c: New file.
29790         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
29791         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29792         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29793         REPLACE_STDIO_WRITE_FUNCS.
29794         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
29795         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29796         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29797         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29798         * modules/stdio (Files): Add lib/stdio-write.c.
29799         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
29800         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29801         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29802         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29803         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
29804         REPLACE_FPRINTF_POSIX.
29805         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
29806         REPLACE_PRINTF_POSIX.
29807         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
29808         REPLACE_VFPRINTF_POSIX.
29809         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
29810         REPLACE_VPRINTF_POSIX.
29811         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29812         SIGPIPE issue.
29813         * doc/posix-functions/fputc.texi: Likewise.
29814         * doc/posix-functions/fputs.texi: Likewise.
29815         * doc/posix-functions/fwrite.texi: Likewise.
29816         * doc/posix-functions/printf.texi: Likewise.
29817         * doc/posix-functions/putc.texi: Likewise.
29818         * doc/posix-functions/putchar.texi: Likewise.
29819         * doc/posix-functions/puts.texi: Likewise.
29820         * doc/posix-functions/vfprintf.texi: Likewise.
29821         * doc/posix-functions/vprintf.texi: Likewise.
29822
29823         * modules/safe-write (Depends-on): Add write.
29824
29825         * modules/sigpipe-tests: New file.
29826         * tests/test-sigpipe.c: New file.
29827         * tests/test-sigpipe.sh: New file.
29828
29829         * modules/write: New file.
29830         * lib/unistd.in.h: Include <sys/types.h>.
29831         (write): New declaration.
29832         * lib/write.c: New file.
29833         * m4/write.m4: New file.
29834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29835         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29836         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29837         GNULIB_WRITE, REPLACE_WRITE.
29838         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29839         and the SIGPIPE issue.
29840
29841         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29842         (raise): New declaration.
29843         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29844         (ext_signal): New function.
29845         (rpl_raise): New function.
29846         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29847         GNULIB_SIGNAL_H_SIGPIPE.
29848         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29849         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29850
29851         * modules/sigpipe: New file.
29852         * m4/sigpipe.m4: New file.
29853
29854 2008-09-25  Derek Price  <derek@ximbiot.com>
29855             Bruno Haible  <bruno@clisp.org>
29856
29857         * gnulib-tool (func_import): Report all license incompatibilities, not
29858         just the first one.
29859
29860 2008-09-25  Bruno Haible  <bruno@clisp.org>
29861
29862         * gnulib-tool (func_import): When computing the edits, consider not
29863         only the Makefile.ams that exist but also those that will be generated.
29864
29865 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29866
29867         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29868         fixes gnulib-tool --test warning about duplicate dependency.
29869
29870 2008-09-25  Bruno Haible  <bruno@clisp.org>
29871
29872         * gnulib-tool: Don't ask the user to perform edits in the generated
29873         Makefile.ams.
29874         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29875         apply to the Makefile.am being generated.
29876         (func_emit_tests_Makefile_am): Execute edits that apply to the
29877         Makefile.am being generated.
29878         (func_import): Setup list of Makefile.am edits before emitting the
29879         Makefile.ams, not at the end.
29880         (func_create_testdir): Update.
29881         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29882
29883 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29884
29885         * gnulib-tool (func_import): Store the --tests-base option in the
29886         comment in gnulib-cache.m4.
29887
29888 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29889
29890         * NEWS: Document increased portability that sys_select now provides.
29891
29892         * lib/sys_select.in.h: Install select wrapper.
29893         * lib/sys_socket.in.h: Use more descriptive name when there is no
29894         select wrapper.
29895         * lib/winsock-select.c: New.
29896         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29897         Require gl_HEADER_SYS_SOCKET.
29898         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29899         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29900         * tests/test-sys_select.c: Add functional tests.
29901
29902 2008-09-24  Eric Blake  <ebb9@byu.net>
29903
29904         open, fopen: close fd leak in last patch
29905         * lib/open.c (rpl_open): Close fd before returning error.
29906         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29907         * doc/posix-functions/open.texi (open): Document that Irix also
29908         has the bug.
29909         * doc/posix-functions/fopen.texi (fopen): Likewise.
29910         Reported by Paolo Bonzini.
29911
29912 2008-09-24  Bruno Haible  <bruno@clisp.org>
29913
29914         Ensure that a filename ending in a slash cannot be used to access a
29915         non-directory.
29916         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29917         to check whether it's really a directory.
29918         * lib/fopen.c: Include fcntl.h, unistd.h.
29919         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29920         and fdopen().
29921         * modules/fopen (Depends-on): Add unistd.
29922         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29923         * tests/test-fopen.c (main): Likewise.
29924         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29925         * doc/posix-functions/fopen.texi: Likewise.
29926         Reported by Eric Blake.
29927
29928 2008-09-23  Eric Blake  <ebb9@byu.net>
29929
29930         c-stack: avoid compiler optimizations when provoking overflow
29931         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29932         recursion harder to optimize, to ensure a stack overflow occurs.
29933         * tests/test-c-stack.c (recurse): Likewise.
29934         Borrowed from libsigsegv.
29935
29936         c-stack: work around Irix sigaltstack bug
29937         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29938         whether sigaltstack uses wrong end of stack_t (copied in part from
29939         libsigsegv).
29940         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29941         Irix bug, without requiring an over-allocation.
29942         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29943         bug.
29944
29945         fopen: document mingw bug on directories
29946         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29947         not allowing a stream visiting a directory, even though reading
29948         from such a stream is not portable.
29949
29950 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29951
29952         * lib/poll.c: Rewrite.
29953         * modules/poll: Depend on alloca.
29954
29955 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29956
29957         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29958         instead define prototypes for a full set of wrappers.  Ensure
29959         that Cygwin does not use the compatibility code, which is only
29960         for MinGW.
29961         * lib/winsock.c: New.
29962         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29963         * modules/sys_socket: Add lib/winsock.c.
29964
29965         * modules/poll-tests: Add errno and perror.
29966         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29967
29968 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29969
29970         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29971
29972 2008-09-23  Bruno Haible  <bruno@clisp.org>
29973
29974         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29975         * doc/glibc-functions/*: Likewise.
29976
29977 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29978
29979         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29980         success.
29981
29982 2008-09-22  Eric Blake  <ebb9@byu.net>
29983             Bruno Haible  <bruno@clisp.org>
29984
29985         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29986         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29987         supply %A but mishandle pseudo-NaN.
29988         Reported by Simon Josefsson.
29989
29990 2008-09-21  Bruno Haible  <bruno@clisp.org>
29991
29992         * tests/test-lock.c (main): Tweak skip message.
29993         * tests/test-tls.c (main): Likewise.
29994
29995 2008-09-21  Bruno Haible  <bruno@clisp.org>
29996
29997         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29998         whether 'struct sigaction' has sa_sigaction here...
29999         (gl_PREREQ_SIG_HANDLER_H): ... not here.
30000         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
30001
30002 2008-09-21  Bruno Haible  <bruno@clisp.org>
30003
30004         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
30005         section.
30006         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
30007         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
30008         the new section.
30009         (Support for obsolete systems lacking POSIX:2001): New section.
30010         (String handling <string.h>): Move strdup to the new section.
30011         Suggested by Simon Josefsson and Paolo Bonzini.
30012
30013 2008-09-21  Bruno Haible  <bruno@clisp.org>
30014
30015         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
30016         exponents in %e and %g results on 'long double'. Needed for mingw's
30017         improved *printf functions.
30018         * tests/test-vasprintf-posix.c (test_function): Likewise.
30019         * tests/test-snprintf-posix.h (test_function): Likewise.
30020         * tests/test-sprintf-posix.h (test_function): Likewise.
30021         Reported by Eric Blake.
30022
30023 2008-09-21  Bruno Haible  <bruno@clisp.org>
30024
30025         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
30026         * tests/test-sprintf-posix.h (test_function): Likewise.
30027
30028 2008-09-21  Bruno Haible  <bruno@clisp.org>
30029
30030         * modules/getpass (Depends-on): Add strdup-posix.
30031
30032         New module 'strdup-posix'.
30033         * modules/strdup-posix: New file.
30034         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
30035         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
30036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30037         REPLACE_STRDUP.
30038         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
30039         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
30040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30041         strdup-posix.
30042
30043         * modules/strdup (Depends-on): Remove malloc-posix.
30044
30045 2008-09-20  Bruno Haible  <bruno@clisp.org>
30046
30047         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
30048         Wildenhues.
30049
30050 2008-09-20  Bruno Haible  <bruno@clisp.org>
30051
30052         Ensure that wint_t gets defined on IRIX 5.3.
30053         * lib/wchar.in.h (wint_t): Define if not defined by the system.
30054         * lib/wctype.in.h (wint_t): Likewise.
30055         (__wctype_wint_t): Remove type.
30056         (isw*): Use wint_t instead of __wctype_wint_t.
30057         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
30058         * modules/wchar (Files): Add m4/wint_t.m4.
30059         (Makefile.am): Substitute HAVE_WINT_T.
30060         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
30061         * tests/test-wctype.c: Check that wint_t is defined.
30062         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
30063         * doc/posix-headers/wctype.texi: Likewise.
30064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30065
30066 2008-09-18  Bruno Haible  <bruno@clisp.org>
30067
30068         * gnulib-tool (func_exit): Update comment.
30069
30070 2008-09-18  Simon Josefsson  <simon@josefsson.org>
30071
30072         * modules/getaddrinfo (Depends-on): Remove strdup, this module
30073         assumes strdup exists and does not depend on strdup to return
30074         ENOMEM on out of memory conditions.
30075
30076 2008-09-18  Bruno Haible  <bruno@clisp.org>
30077
30078         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
30079         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
30080         digits for the exponent.
30081
30082 2008-09-18  Jim Meyering  <meyering@redhat.com>
30083             Bruno Haible  <bruno@clisp.org>
30084
30085         * lib/vasnprintf.c (decimal_point_char): Define also if
30086         NEED_PRINTF_INFINITE_LONG_DOUBLE.
30087
30088 2008-09-16  Bruno Haible  <bruno@clisp.org>
30089         and Eric Blake  <ebb9@byu.net>
30090
30091         vasnprintf: support Irix 5.3
30092         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
30093         that mishandle long double infinity.
30094         Reported by Tom G. Christensen.
30095
30096 2008-09-16  Bruno Haible  <bruno@clisp.org>
30097
30098         * doc/glibc-functions/scandir.texi: Mention the function is missing on
30099         Solaris 9.
30100         * doc/glibc-functions/alphasort.texi: Likewise.
30101         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
30102
30103 2008-09-16  Jim Meyering  <meyering@redhat.com>
30104
30105         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
30106         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
30107         a umask modification leak out of a subshell.  Otherwise, the
30108         opensolaris /bin/sh would be accepted and thus cause unwarranted
30109         failures in the coreutils test suite.
30110
30111 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
30112
30113         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
30114         to succeed.
30115
30116 2008-09-16  Jim Meyering  <meyering@redhat.com>
30117
30118         avoid spurious test failure when library is built without ACL support
30119         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
30120         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
30121         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
30122         * tests/test-copy-acl.sh: Likewise.
30123
30124 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30125
30126         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
30127         based on character occurrence counts.
30128
30129 2008-09-15  Eric Blake  <ebb9@byu.net>
30130
30131         tests: avoid some compiler warnings
30132         * tests/test-memchr.c (main): Pass NULL indirectly.
30133         * tests/test-closein.c (main): Avoid unused variable.
30134
30135 2008-09-15  Bruno Haible  <bruno@clisp.org>
30136
30137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
30138         are missing on OpenBSD 4.0 individually.
30139         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30140
30141 2008-09-15  Bruno Haible  <bruno@clisp.org>
30142
30143         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
30144         * doc/posix-functions/strerror.texi: Mention also Cygwin.
30145         * doc/posix-functions/perror.texi: Likewise.
30146         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
30147         is missing.
30148         Reported by Eric Blake.
30149
30150         * lib/errno.in.h: Use replacement values >= 2000.
30151         Reported by Eric Blake.
30152
30153 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30154
30155         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
30156         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
30157         limit.
30158         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
30159         compareseq was aborted.
30160
30161 2008-09-14  Bruno Haible  <bruno@clisp.org>
30162
30163         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
30164         yvec_edit_count.
30165         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
30166         (fstrcmp_bounded): Simplify result computation accordingly.
30167
30168 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30169
30170         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
30171         (fstrcmp): Define in terms of fstrcmp_bounded.
30172         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
30173         lower_bound argument.
30174         Return quickly if the result is certainly < lower_bound.
30175         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
30176
30177 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30178
30179         * lib/diffseq.h (EARLY_ABORT): New macro.
30180         (compareseq): Change return type to bool. Return true when EARLY_ABORT
30181         evaluates to true.
30182
30183 2008-09-14  Bruno Haible  <bruno@clisp.org>
30184
30185         * modules/perror-tests: New file.
30186         * tests/test-perror.sh: New file.
30187         * tests/test-perror.c: New file.
30188
30189         New module 'perror'.
30190         * lib/stdio.in.h (perror): New declaration.
30191         * lib/perror.c: New file.
30192         * m4/perror.m4: New file.
30193         * modules/perror: New file.
30194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
30195         * doc/posix-functions/perror.texi: Mention the perror module.
30196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
30197         REPLACE_PERROR.
30198         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
30199         REPLACE_PERROR.
30200
30201 2008-09-14  Bruno Haible  <bruno@clisp.org>
30202
30203         * modules/stdio (Makefile.am): Reorder to match the order in
30204         lib/stdio.in.h.
30205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30206
30207 2008-09-13  Bruno Haible  <bruno@clisp.org>
30208
30209         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
30210
30211 2008-09-13  Bruno Haible  <bruno@clisp.org>
30212
30213         Extend strerror to cover the added errno values.
30214         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
30215         (rpl_strerror): Provide error messages for the added errno values and
30216         for the WSA* values.
30217         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
30218         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
30219         strerror.
30220         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
30221         * modules/strerror (Depends-on): Add errno.
30222         * doc/posix-functions/strerror.texi: Document the change.
30223         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
30224         and EOVERFLOW.
30225
30226 2008-09-13  Bruno Haible  <bruno@clisp.org>
30227
30228         * modules/EOVERFLOW: Remove file.
30229         * m4/eoverflow.m4: Remove file.
30230         * modules/EOVERFLOW-tests: Remove file.
30231         * tests/test-EOVERFLOW.c: Remove file.
30232         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
30233         * modules/ftell (Depends-on): Likewise.
30234         * modules/getdelim (Depends-on): Likewise.
30235         * modules/getugroups (Depends-on): Likewise.
30236         * modules/poll (Depends-on): Likewise.
30237         * modules/snprintf (Depends-on): Likewise.
30238         * modules/sprintf-posix (Depends-on): Likewise.
30239         * modules/vasnprintf (Depends-on): Likewise.
30240         * modules/vasprintf (Depends-on): Likewise.
30241         * modules/vfprintf-posix (Depends-on): Likewise.
30242         * modules/vsnprintf (Depends-on): Likewise.
30243         * modules/vsprintf-posix (Depends-on): Likewise.
30244         * modules/xvasprintf (Depends-on): Likewise.
30245         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30246         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
30247         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
30248         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
30249         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30250         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
30251         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
30252         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
30253         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30254         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
30255         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
30256         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
30257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30258         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
30259         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
30260         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
30261         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30262         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
30263         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
30264         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
30265         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30266         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
30267         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
30268         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
30269         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
30270         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30271         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
30272         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
30273         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
30274         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
30275         * MODULES.html.sh: Remove EOVERFLOW.
30276         * NEWS: Mention the change.
30277
30278 2008-09-13  Bruno Haible  <bruno@clisp.org>
30279
30280         * modules/errno-tests: New file.
30281         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
30282
30283         * lib/errno.in.h: New file.
30284         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
30285         * modules/errno: New file.
30286         * doc/posix-headers/errno.texi: Update documentation.
30287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
30288
30289 2008-09-13  Bruno Haible  <bruno@clisp.org>
30290
30291         * tests/test-poll.c: Use #if for native Windows, rather than testing
30292         __MSVCRT__.
30293
30294 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30295             Bruno Haible  <bruno@clisp.org>
30296
30297         * lib/glob.c: Don't include <pwd.h> on native Windows.
30298         (WINDOWS32): New macro.
30299         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
30300
30301 2008-09-13  Bruno Haible  <bruno@clisp.org>
30302
30303         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
30304         (ETIMEDOUT): Remove macro.
30305         (glthread_cond_timedwait_multithreaded): New declaration.
30306         (glthread_cond_timedwait): Use it.
30307         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
30308         (glthread_cond_timedwait_multithreaded): New function.
30309
30310 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30311
30312         * modules/poll-tests: Do not check for io.h.
30313         * tests/test-poll.c: Check for __MSVCRT__ instead.
30314
30315 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30316
30317         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
30318         * modules/poll-tests: Add inet_pton, stdbool, sockets.
30319         * tests/test-poll.c: Use them.  Use _pipe on Windows.
30320
30321 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30322
30323         * modules/poll-tests: New.
30324         * tests/test-poll.c: New.
30325
30326 2008-09-12  Eric Blake  <ebb9@byu.net>
30327
30328         frexp: test for NetBSD failure on -0.0
30329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
30330         not all, bugs from NetBSD 3.0 have been fixed.
30331         * doc/posix-functions/frexp.texi (frexp): Document bug.
30332         Reported by Thomas Klausner.
30333
30334         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
30335         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
30336         literal -0.0.
30337         Reported by Jonathan C. Patschke <jp@centtech.com>.
30338
30339 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30340
30341         * lib/glthread/cond.h: Use dummy implementation also if
30342         USE_WIN32_THREADS.
30343
30344 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30345
30346         * modules/fnmatch-posix (License): Change to LGPLv2+.
30347         * modules/fnmatch-gnu (License): Likewise.
30348
30349 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30350
30351         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
30352
30353 2008-09-11  Jim Meyering  <meyering@redhat.com>
30354
30355         * users.txt: Add gtk-vnc.
30356
30357 2008-09-08  Simon Josefsson  <simon@josefsson.org>
30358
30359         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
30360         rotate amounts.
30361
30362         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
30363         required for 16-bit and 8-bit rotates.
30364         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
30365         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
30366         UINT8_MAX instead of hard-coded constants.
30367         Suggested by Paul Eggert.
30368
30369 2008-09-07  Bruno Haible  <bruno@clisp.org>
30370
30371         * tests/test-striconveh.c (main): Check behaviour when converting from
30372         UTF-7.
30373
30374         Make striconveh work better with stateful encodings.
30375         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30376         that iconv does not increment the inptr when returning -1/EINVAL.
30377
30378 2008-09-07  Bruno Haible  <bruno@clisp.org>
30379
30380         * build-aux/config.rpath: Update according to libtool-2.2.6.
30381         * build-aux/config.libpath: Likewise.
30382
30383 2008-09-06  Bruno Haible  <bruno@clisp.org>
30384
30385         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30386         * lib/freadptr.c (freadptr): Likewise.
30387         * lib/freadseek.c (freadptrinc): Likewise.
30388         Reported by Simon Josefsson.
30389
30390 2008-09-06  Bruno Haible  <bruno@clisp.org>
30391
30392         * modules/freadptr (License): Change to LGPLv2+.
30393         * modules/freadseek (License): Likewise.
30394         Suggested by Eric Blake.
30395
30396         * modules/memchr2 (License): Change to LGPLv2+.
30397         Approved by Eric Blake.
30398
30399 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30400             Bruno Haible  <bruno@clisp.org>
30401
30402         Make gnulib-tool work with native 'sed' on AIX.
30403         * gnulib-tool (sed_noop): New variable.
30404         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30405         func_add_or_update, func_create_testdir): Use it to initialize sed
30406         script variables.
30407         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30408
30409 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30410             Bruno Haible  <bruno@clisp.org>
30411
30412         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30413         also works after #include directives.
30414
30415 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30416
30417         getdate.y: reject an out-of-range timezone value
30418         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30419         the range [-24...+24].  When specified with only one or two digits,
30420         * tests/test-getdate.c: Tests for the fix.
30421         * doc/getdate.texi: Document this change.
30422
30423 2008-09-03  Bruno Haible  <bruno@clisp.org>
30424
30425         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30426
30427 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30428
30429         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30430         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30431         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30432         Blake <ebb9@byu.net>.
30433
30434         * tests/test-bitrotate.c: Add more test vectors.
30435
30436 2008-09-02  Eric Blake  <ebb9@byu.net>
30437
30438         vasnprintf-posix: handle large precision via %.*d
30439         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30440         when handling it ourselves.
30441         * tests/test-vasnprintf-posix.c (test_function): Add test.
30442         * tests/test-snprintf-posix.h (test_function): Likewise.
30443         * tests/test-sprintf-posix.h (test_function): Likewise.
30444         * tests/test-vasprintf-posix.c (test_function): Likewise.
30445         Reported by Alain Guibert.
30446
30447 2008-09-01  Eric Blake  <ebb9@byu.net>
30448
30449         c-stack: make configure-time check more robust
30450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30451         successful sigaction call.
30452         Reported by Tom G. Christensen.
30453
30454 2008-09-01  Bruno Haible  <bruno@clisp.org>
30455
30456         New module 'findprog-lgpl'.
30457         * modules/findprog-lgpl: New file.
30458         * lib/findprog-lgpl.c: New file.
30459         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30460         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30461         to decide whether to use strdup or xstrdup, concatenated_filename or
30462         xconcatenated_filename.
30463
30464 2008-09-01  Bruno Haible  <bruno@clisp.org>
30465
30466         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30467         'xconcat-filename' (GPL).
30468         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30469         (License): Change to LGPLv2+.
30470         * modules/xconcat-filename: New file.
30471         * lib/concat-filename.h (concatenated_filename): Change specification.
30472         (xconcatenated_filename): New declaration.
30473         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30474         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30475         memory situations.
30476         * lib/xconcat-filename.c: New file.
30477         * NEWS: Mention the change.
30478         * lib/findprog.c: Include concat-filename.h, not filename.h.
30479         (find_in_path): Use xconcatenated_filename instead of
30480         concatenated_filename.
30481         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30482         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30483         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30484         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30485         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30486         instead of concatenated_filename.
30487         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30488         (execute_java_class): Use xconcatenated_filename instead of
30489         concatenated_filename.
30490         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30491         * modules/javacomp (Depends-on): Likewise.
30492         * modules/javaexec (Depends-on): Likewise.
30493
30494 2008-09-01  Bruno Haible  <bruno@clisp.org>
30495
30496         Split module 'filename' into 'filename' and 'concat-filename'.
30497         * modules/filename: Keep only lib/filename.h.
30498         (License): Change to LGPLv2+.
30499         * modules/concat-filename: New file, extracted from modules/filename.
30500         * lib/filename.h (concatenated_filename): Remove declaration.
30501         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30502         * lib/concat-filename.c: Include concat-filename.h.
30503         * NEWS: Mention the change.
30504
30505 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30506
30507         * lib/bitrotate.h (rotl8, rotr8): Add.
30508
30509         * modules/bitrotate (configure.ac): Need
30510         AC_REQUIRE([AC_C_INLINE]).
30511         (Description): Mention stdint.h.  Reported by Bruno Haible
30512         <bruno@clisp.org>.
30513
30514         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30515         Paolo Bonzini <bonzini@gnu.org>.
30516
30517 2008-08-31  Bruno Haible  <bruno@clisp.org>
30518
30519         Assume Solaris specific bi-arch conventions on Solaris systems.
30520         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30521         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30523         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30524         like acl_libdirstem.
30525         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30526         acl_libdirstem.
30527         * NEWS: Mention the change.
30528         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30529
30530 2008-08-31  Jim Meyering  <meyering@redhat.com>
30531
30532         * lib/strftime.h: Add comments describing the two added arguments.
30533
30534         remove duplicate #include directives
30535         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30536         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30537
30538 2008-08-31  Bruno Haible  <bruno@clisp.org>
30539
30540         New module 'sigpipe-die'.
30541         * modules/sigpipe-die: New file.
30542         * lib/sigpipe-die.h: New file.
30543         * lib/sigpipe-die.c: New file.
30544         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30545
30546 2008-08-31  Bruno Haible  <bruno@clisp.org>
30547
30548         Don't override previously installed signal handlers.
30549         * lib/fatal-signal.c (saved_sigactions): New variable.
30550         (uninstall_handlers): Reset the signal to the saved handler, not
30551         to SIG_DFL (except when ignored).
30552         (install_handlers): Save the previous handlers.
30553
30554 2008-08-30  Bruno Haible  <bruno@clisp.org>
30555
30556         * gnulib-tool (func_reset_sigpipe): New function.
30557         (func_get_automake_snippet, func_modules_transitive_closure,
30558         func_import): Invoke it before a join command that reads from stdin,
30559         to avoid "echo: write error: Broken pipe" error messages on stderr.
30560         Reported by Sam Steingold <sds@gnu.org>.
30561
30562 2008-08-30  Bruno Haible  <bruno@clisp.org>
30563
30564         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30565         Code copied from m4/open.m4.
30566         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30567         access and the filename ends in a slash. Code copied from lib/open.c.
30568         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30569         * tests/test-fopen.c (main): Check against bug with trailing slash.
30570
30571 2008-08-29  Bruno Haible  <bruno@clisp.org>
30572
30573         Avoid some "gcc -pedantic" warnings.
30574         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30575         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30576         * lib/dirent.in.h: Likewise.
30577         * lib/fcntl.in.h: Likewise.
30578         * lib/float.in.h: Likewise.
30579         * lib/iconv.in.h: Likewise.
30580         * lib/inttypes.in.h: Likewise.
30581         * lib/locale.in.h: Likewise.
30582         * lib/math.in.h: Likewise.
30583         * lib/netinet_in.in.h: Likewise.
30584         * lib/search.in.h: Likewise.
30585         * lib/signal.in.h: Likewise.
30586         * lib/stdarg.in.h: Likewise.
30587         * lib/stdint.in.h: Likewise.
30588         * lib/stdio.in.h: Likewise.
30589         * lib/stdlib.in.h: Likewise.
30590         * lib/string.in.h: Likewise.
30591         * lib/strings.in.h: Likewise.
30592         * lib/sys_select.in.h: Likewise.
30593         * lib/sys_socket.in.h: Likewise.
30594         * lib/sys_stat.in.h: Likewise.
30595         * lib/sys_time.in.h: Likewise.
30596         * lib/sysexits.in.h: Likewise.
30597         * lib/time.in.h: Likewise.
30598         * lib/unistd.in.h: Likewise.
30599         * lib/wchar.in.h: Likewise.
30600         * lib/wctype.in.h: Likewise.
30601         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30602         * modules/fchdir (Makefile.am): Likewise.
30603         * modules/fcntl (Makefile.am): Likewise.
30604         * modules/float (Makefile.am): Likewise.
30605         * modules/iconv_open (Makefile.am): Likewise.
30606         * modules/inttypes (Makefile.am): Likewise.
30607         * modules/locale (Makefile.am): Likewise.
30608         * modules/math (Makefile.am): Likewise.
30609         * modules/netinet_in (Makefile.am): Likewise.
30610         * modules/search (Makefile.am): Likewise.
30611         * modules/signal (Makefile.am): Likewise.
30612         * modules/stdarg (Makefile.am): Likewise.
30613         * modules/stdint (Makefile.am): Likewise.
30614         * modules/stdio (Makefile.am): Likewise.
30615         * modules/stdlib (Makefile.am): Likewise.
30616         * modules/string (Makefile.am): Likewise.
30617         * modules/strings (Makefile.am): Likewise.
30618         * modules/sys_select (Makefile.am): Likewise.
30619         * modules/sys_socket (Makefile.am): Likewise.
30620         * modules/sys_stat (Makefile.am): Likewise.
30621         * modules/sys_time (Makefile.am): Likewise.
30622         * modules/sysexits (Makefile.am): Likewise.
30623         * modules/time (Makefile.am): Likewise.
30624         * modules/unistd (Makefile.am): Likewise.
30625         * modules/wchar (Makefile.am): Likewise.
30626         * modules/wctype (Makefile.am): Likewise.
30627         Reported by Reuben Thomas <rrt@sc3d.org>.
30628
30629 2008-08-29  Bruno Haible  <bruno@clisp.org>
30630
30631         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30632         any more.
30633
30634 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30635
30636         * MODULES.html.sh (Misc): Add bitrotate.
30637
30638         * modules/bitrotate: New file.
30639
30640         * lib/bitrotate.h: New file.
30641
30642         * modules/bitrotate-tests: New file.
30643
30644         * tests/test-bitrotate.c: New file.
30645
30646         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
30647         on the bitrotate module.
30648
30649         * lib/arctwo.c: Use new bitrotate module.
30650
30651 2008-08-29  Jim Meyering  <meyering@redhat.com>
30652
30653         bootstrap: merge changes from coreutils
30654         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
30655         of copied files.  Remove a kludge, now that this is fixed.
30656         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
30657         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
30658         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
30659
30660 2008-08-29  Bruno Haible  <bruno@clisp.org>
30661
30662         * MODULES.html.sh: Remove --cvs-urls option.
30663
30664 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
30665
30666         maint.mk: adjust to file name change
30667         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
30668
30669 2008-08-28  Jim Meyering  <meyering@redhat.com>
30670
30671         * modules/getndelim2 (License): Relicense to LGPLv2+.
30672         Approved by Richard Stallman for the version of 1995, and by
30673         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
30674
30675 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
30676
30677         * lib/getdelim.c (flockfile, funlockfile): Make all of them
30678         dummy if one is not available.  Do not touch them if
30679         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
30680         (getc_maybe_unlocked): New.
30681         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
30682
30683 2008-08-26  Eric Blake  <ebb9@byu.net>
30684
30685         doc/INSTALL: resync from autoconf
30686         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
30687         (INSTALL_PRELUDE): Delete; this is done more efficiently by
30688         moving...
30689         * install.texi [!autoconf]: ...here.  Resync from autoconf.
30690         * INSTALL: Regenerate.
30691         * INSTALL.ISO: New file.
30692         * INSTALL.UTF-8: Likewise.
30693
30694 2008-08-26  Jim Meyering  <meyering@redhat.com>
30695
30696         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
30697         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
30698         these definitions conditional, so that they may be overridden, too.
30699
30700 2008-08-26  Bruno Haible  <bruno@clisp.org>
30701
30702         Generate INSTALL file variants with prettier quotes.
30703         * doc/Makefile (INSTALL_PRELUDE): New macro.
30704         (INSTALL): Use it.
30705         (INSTALL.ISO, INSTALL.UTF-8): New rules.
30706
30707 2008-08-26  Bruno Haible  <bruno@clisp.org>
30708
30709         Run makeinfo in an English locale.
30710         * doc/Makefile (MAKEINFO): New variable.
30711
30712 2008-08-26  Bruno Haible  <bruno@clisp.org>
30713
30714         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
30715         Suggested by Eric Blake.
30716
30717 2008-08-25  Bruno Haible  <bruno@clisp.org>
30718
30719         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
30720
30721 2008-08-25  Eric Blake  <ebb9@byu.net>
30722
30723         c-stack: test that stack overflow can be caught
30724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
30725         that platform allows handling stack overflow; at least OS/2 EMX
30726         has sigaltstack, but crashes before transferring control to
30727         handler on stack overflow.
30728         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
30729         check for HAVE_STACK_OVERFLOW_HANDLING.
30730         Reported by Elbert Pol.
30731
30732 2008-08-25  Bruno Haible  <bruno@clisp.org>
30733
30734         * doc/posix-functions/strftime.texi: Fix description of strftime
30735         module.
30736
30737 2008-08-24  Bruno Haible  <bruno@clisp.org>
30738
30739         * tests/uniwidth/test-uc_width2.c: New file.
30740         * tests/uniwidth/test-uc_width2.sh: New file.
30741         * modules/uniwidth/width-tests (Files): Add the new files.
30742         (TESTS): Add uniwidth/test-uc_width2.sh.
30743         (TESTS_ENVIRONMENT): New variable.
30744         (check_PROGRAMS): Add test-uc_width2.
30745         (test_uc_width2_SOURCES): New variable.
30746
30747         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
30748         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
30749         not 0x00AB.
30750         Reported by Alexander V. Lukyanov <lav@netis.ru>.
30751
30752 2008-08-22  Eric Blake  <ebb9@byu.net>
30753
30754         test-lock, test-tls: mention why a test is skipped
30755         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
30756         skipped.
30757         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
30758
30759         count-one-bits: relax license
30760         * modules/count-one-bits (License): Relicense to LGPLv2+.
30761         Suggested by Ludovic Courtès, approved by Ben Pfaff.
30762
30763 2008-08-22  Andreas Schwab  <schwab@suse.de>
30764
30765         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30766         Remove spurious space in assignment.
30767
30768 2008-08-21  Simon Josefsson  <simon@josefsson.org>
30769
30770         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
30771         Paul Eggert <eggert@CS.UCLA.EDU>.
30772
30773 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
30774
30775         * modules/gettext: Add m4/threadlib.m4.
30776
30777 2008-08-19  Eric Blake  <ebb9@byu.net>
30778
30779         test-c-stack: fix compilation failure on FreeBSD 5.0
30780         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
30781         headers before <sys/resource.h>.
30782         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
30783         the bug.
30784         Reported by Nelson H. F. Beebe.
30785
30786         strverscmp: migrate from "strverscmp.h" to <string.h>
30787         * modules/string (Makefile.am): Add new hooks.
30788         * modules/strverscmp (Files): Remove strverscmp.h.
30789         (Depends-on): Add string.
30790         (configure.ac): Add indicator.
30791         (Include): Mention new header.
30792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
30793         defaults.
30794         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
30795         results.
30796         * lib/strverscmp.h: Delete.
30797         * lib/string.in.h (strverscmp): Provide declaration, when needed.
30798         * tests/test-strverscmp.c (includes): Adjust client.
30799         * lib/check-version.c (includes): Likewise.
30800         * NEWS: Document the change.
30801
30802         strverscmp: add unit test
30803         * modules/strverscmp-tests: New file.
30804         * tests/test-strverscmp.c: Likewise.
30805
30806 2008-08-19  Simon Josefsson  <simon@josefsson.org>
30807
30808         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
30809         regarding Windows crypto stuff, from Mono.
30810
30811 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30812
30813         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30814         if present, for intel RND.  Return error on failures.
30815
30816 2008-08-18  Ben Pfaff  <blp@gnu.org>
30817
30818         gitlog-to-changelog: give better diagnostic for failed pipe-open
30819         * build-aux/gitlog-to-changelog: Improve error message: suggest
30820         that the version of Git may be too old.
30821
30822 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30823
30824         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30825         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30826
30827 2008-08-18  Bruno Haible  <bruno@clisp.org>
30828
30829         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30830         pthread_in_use().
30831
30832 2008-08-18  Bruno Haible  <bruno@clisp.org>
30833
30834         * lib/glthread/threadlib.c: Include <pthread.h>.
30835
30836 2008-08-18  Bruno Haible  <bruno@clisp.org>
30837
30838         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30839         glthread_recursive_lock_* macros.
30840         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30841         Fix syntax error.
30842
30843 2008-08-18  Bruno Haible  <bruno@clisp.org>
30844
30845         * lib/glthread/thread.c: Avoid forcing a context switch right after
30846         thread creation.
30847
30848 2008-08-17  Bruno Haible  <bruno@clisp.org>
30849
30850         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30851         * lib/glthread/thread.h: Provide Win32 specific implementation.
30852         * modules/thread (Files): Add lib/glthread/thread.c.
30853         (Depends-on): Add lock.
30854         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30855
30856 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30857
30858         New module 'yield'.
30859         * modules/yield: New file.
30860         * lib/glthread/yield.h: New file.
30861         * m4/yield.m4: New file.
30862         * MODULES.html.sh (Multithreading): Add yield.
30863
30864 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30865
30866         New module 'thread'.
30867         * modules/thread: New file.
30868         * lib/glthread/thread.h: New file.
30869         * m4/thread.m4: New file.
30870         * MODULES.html.sh (Multithreading): Add thread.
30871
30872 2008-08-17  Bruno Haible  <bruno@clisp.org>
30873
30874         * lib/glthread/lock.h: Include <stdlib.h> always.
30875         * lib/glthread/tls.h: Likewise.
30876         * lib/glthread/cond.h: Likewise.
30877
30878 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30879
30880         New module 'cond'.
30881         * modules/cond: New file.
30882         * lib/glthread/cond.h: New file.
30883         * lib/glthread/cond.c: New file.
30884         * m4/cond.m4: New file.
30885         * MODULES.html.sh (Multithreading): Add cond.
30886
30887 2008-08-16  Eric Blake  <ebb9@byu.net>
30888
30889         c-stack: fix regression on Irix 5.3 from 2008-06-21
30890         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30891         sa_sigaction...
30892         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30893         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30894         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30895         * modules/signal (Makefile.am): Use the value.
30896         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30897         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30898         * doc/posix-headers/signal.texi (signal.h): Document this
30899         portability issue.
30900         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30901         Reported by Tom G. Christensen.
30902
30903 2008-08-17  Bruno Haible  <bruno@clisp.org>
30904
30905         New module 'threadlib'.
30906         * modules/threadlib: New file.
30907         * lib/glthread/threadlib.c: New file, extracted from
30908         lib/glthread/lock.c.
30909         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30910         functions.
30911         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30912         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30913         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30914         macros.
30915         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30916         (gl_DISABLE_THREADS): Remove macro.
30917         * modules/lock (Files): Remove build-aux/config.rpath.
30918         (Depends-on): Remove havelib. Add threadlib.
30919         (configure.ac-early): Remove section.
30920         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30921         * modules/tls (Depends-on): Remove lock. Add threadlib.
30922         (Link): New section, copied from threadlib.
30923         * MODULES.html.sh (Multithreading): Add threadlib.
30924
30925 2008-08-14  Bruno Haible  <bruno@clisp.org>
30926
30927         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30928         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30929         glthread_rwlock_unlock, glthread_rwlock_destroy,
30930         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30931         glthread_recursive_lock_destroy): Define as macros always.
30932         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30933         glthread_lock_lock.
30934         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30935         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30936         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30937         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30938         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30939         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30940         (glthread_recursive_lock_lock_func): Renamed from
30941         glthread_recursive_lock_lock.
30942         (glthread_recursive_lock_unlock_func): Renamed from
30943         glthread_recursive_lock_unlock.
30944         (glthread_recursive_lock_destroy_func): Renamed from
30945         glthread_recursive_lock_destroy.
30946
30947 2008-08-14  Bruno Haible  <bruno@clisp.org>
30948
30949         * lib/glthread/lock.h: Renamed from lib/lock.h.
30950         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30951         * lib/glthread/tls.h: Renamed from lib/tls.h.
30952         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30953         * lib/fstrcmp.c: Update includes.
30954         * lib/strsignal.c: Update includes.
30955         * modules/lock (Files, Makefile.am): Update.
30956         (Include): Change to "glthread/lock.h".
30957         * modules/tls (Files, Makefile.am): Update.
30958         (Include): Change to "glthread/tls.h".
30959         * tests/test-lock.c: Update includes.
30960         * tests/test-tls.c: Update includes.
30961         * NEWS: Mention the renamed header files.
30962
30963 2008-08-11  Jim Meyering  <meyering@redhat.com>
30964
30965         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30966
30967 2008-08-11  Eric Blake  <ebb9@byu.net>
30968
30969         test-c-stack: avoid C99-ism
30970         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30971         before statement.
30972         Reported by Alain Guibert.
30973
30974 2008-08-10  Jim Meyering  <meyering@redhat.com>
30975
30976         ensure that return value of uinttostr et al are not ignored
30977         * lib/inttostr.h (__GNUC_PREREQ): Define.
30978         (__attribute_warn_unused_result__): Define.
30979         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30980
30981 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30982
30983         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30984         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30985
30986 2008-08-07  Jim Meyering  <meyering@redhat.com>
30987
30988         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30989
30990         * modules/mkstemp (License): Relicense under LGPLv2+.
30991         * modules/tempname (License): Likewise.
30992
30993 2008-08-06  Bruno Haible  <bruno@clisp.org>
30994
30995         * lib/poll.c (poll): Further micro-optimization.
30996
30997 2008-08-06  Jim Meyering  <meyering@redhat.com>
30998
30999         inet_pton.c: use locale-independent tolower
31000         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
31001         (inet_pton6): Use c_tolower rather than tolower.
31002         * modules/inet_pton (Depends-on): Add c-ctype.
31003
31004 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
31005
31006         * lib/poll.c (poll): Avoid division when timeout is 0, cache
31007         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
31008
31009 2008-08-06  Jim Meyering  <meyering@redhat.com>
31010
31011         * modules/inet_pton (License): Relicense under LGPLv2+.
31012
31013 2008-08-03  Bruno Haible  <bruno@clisp.org>
31014
31015         Additional non-aborting API for lock and tls.
31016         * lib/lock.h: Include <errno.h>.
31017         (glthread_lock_init): New macro/function.
31018         (gl_lock_init): Define as wrapper around glthread_lock_init.
31019         (glthread_lock_lock): New macro/function.
31020         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
31021         (glthread_lock_unlock): New macro/function.
31022         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
31023         (glthread_lock_destroy): New macro/function.
31024         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
31025         (glthread_rwlock_init): New macro/function.
31026         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
31027         (glthread_rwlock_rdlock): New macro/function.
31028         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
31029         (glthread_rwlock_wrlock): New macro/function.
31030         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
31031         (glthread_rwlock_unlock): New macro/function.
31032         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
31033         (glthread_rwlock_destroy): New macro/function.
31034         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
31035         (glthread_recursive_lock_init): New macro/function.
31036         (gl_recursive_lock_init): Define as wrapper around
31037         glthread_recursive_lock_init.
31038         (glthread_recursive_lock_lock): New macro/function.
31039         (gl_recursive_lock_lock): Define as wrapper around
31040         glthread_recursive_lock_lock.
31041         (glthread_recursive_lock_unlock): New macro/function.
31042         (gl_recursive_lock_unlock): Define as wrapper around
31043         glthread_recursive_lock_unlock.
31044         (glthread_recursive_lock_destroy): New macro/function.
31045         (gl_recursive_lock_destroy): Define as wrapper around
31046         glthread_recursive_lock_destroy.
31047         (glthread_once): New macro/function.
31048         (gl_once): Define as wrapper around glthread_once.
31049         Update function declarations.
31050         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
31051         glthread_rwlock_init. Return error code.
31052         (glthread_rwlock_rdlock_multithreaded): Renamed from
31053         glthread_rwlock_rdlock. Return error code.
31054         (glthread_rwlock_wrlock_multithreaded): Renamed from
31055         glthread_rwlock_wrlock. Return error code.
31056         (glthread_rwlock_unlock_multithreaded): Renamed from
31057         glthread_rwlock_unlock. Return error code.
31058         (glthread_rwlock_destroy_multithreaded): Renamed from
31059         glthread_rwlock_destroy. Return error code.
31060         (glthread_recursive_lock_init_multithreaded): Renamed from
31061         glthread_recursive_lock_init. Return error code.
31062         (glthread_recursive_lock_lock_multithreaded): Renamed from
31063         glthread_recursive_lock_lock. Return error code.
31064         (glthread_recursive_lock_unlock_multithreaded): Renamed from
31065         glthread_recursive_lock_unlock. Return error code.
31066         (glthread_recursive_lock_destroy_multithreaded): Renamed from
31067         glthread_recursive_lock_destroy. Return error code.
31068         (glthread_once_call): Make static.
31069         (glthread_once_multithreaded): Renamed from glthread_once.
31070         * lib/tls.h: Include <errno.h>.
31071         (glthread_tls_key_init): New macro/function.
31072         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
31073         (glthread_tls_set): New macro/function.
31074         (gl_tls_set): Define as wrapper around glthread_tls_set.
31075         (glthread_tls_key_destroy): New macro/function.
31076         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
31077         Update function declarations.
31078         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
31079         glthread_tls_get.
31080         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31081
31082 2008-08-04  Eric Blake  <ebb9@byu.net>
31083
31084         gnumakefile: use space, not TAB, outside of targets
31085         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
31086
31087 2008-08-02  Jim Meyering  <meyering@redhat.com>
31088
31089         getdate.y: avoid locale-dependent date parsing failure
31090         In Turkish locales, getdate would fail to recognize keywords
31091         containing a lowercase "i".  The solution is not to rely on
31092         locale-sensitive case-conversion.
31093         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
31094         (lookup_word): Use c_toupper in place of toupper.
31095         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
31096         Reported by Vefa Bicakci <bicave@superonline.com> in
31097         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
31098         * modules/getdate (Depends-on): Add c-ctype.
31099
31100 2008-08-02  Bruno Haible  <bruno@clisp.org>
31101
31102         * gnulib-tool (func_import): When updating or creating a .gitignore
31103         file, prepend each added line with a slash, and ignore leading slashes
31104         from the existing lines.
31105         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31106
31107 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31108
31109         Portability fix for GNU make 3.79.1.
31110         * top/GNUmakefile: Avoid 'else COND', which older GNU make
31111         versions do not understand.
31112
31113 2008-08-01  Bruno Haible  <bruno@clisp.org>
31114
31115         Work around bug of HP-UX 10.20 cc with -0.0 literal.
31116         * tests/test-isnanf.h (zero): New variable.
31117         (main): Avoid literal -0.0f.
31118         * tests/test-isnand.h (zero): New variable.
31119         (main): Avoid literal -0.0.
31120         * tests/test-isnanl.h (zero): New variable.
31121         (main): Avoid literal -0.0L.
31122         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
31123         (test_float, test_double, test_long_double): Avoid literals -0.0f,
31124         -0.0, -0.0L.
31125         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
31126         (test_signbitd): Avoid literal -0.0.
31127         (test_signbitl): Avoid literal -0.0L.
31128         * tests/test-ceilf1.c (zero): New variable.
31129         (main): Avoid literal -0.0f.
31130         * tests/test-ceill.c (zero): New variable.
31131         (main): Avoid literal -0.0L.
31132         * tests/test-floorf1.c (zero): New variable.
31133         (main): Avoid literal -0.0f.
31134         * tests/test-floorl.c (zero): New variable.
31135         (main): Avoid literal -0.0L.
31136         * tests/test-roundf1.c (zero): New variable.
31137         (main): Avoid literal -0.0f.
31138         * tests/test-round1.c (zero): New variable.
31139         (main): Avoid literal -0.0.
31140         * tests/test-roundl.c (zero): New variable.
31141         (main): Avoid literal -0.0L.
31142         * tests/test-truncf1.c (zero): New variable.
31143         (main): Avoid literal -0.0f.
31144         * tests/test-trunc1.c (zero): New variable.
31145         (main): Avoid literal -0.0.
31146         * tests/test-truncl.c (zero): New variable.
31147         (main): Avoid literal -0.0L.
31148         * tests/test-frexp.c (zero): New variable.
31149         (main): Avoid literal -0.0.
31150         * tests/test-frexpl.c (zero): New variable.
31151         (main): Avoid literal -0.0L.
31152         * tests/test-ldexpl.c (zero): New variable.
31153         (main): Avoid literal -0.0L.
31154         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
31155         (zerod, zerol): New variables.
31156         (test_function): Avoid literals -0.0, -0.0L.
31157         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
31158         (zerod, zerol): New variables.
31159         (test_function): Avoid literals -0.0, -0.0L.
31160         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
31161         (zerod, zerol): New variables.
31162         (test_function): Avoid literals -0.0, -0.0L.
31163         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
31164         (zerod, zerol): New variables.
31165         (test_function): Avoid literals -0.0, -0.0L.
31166         * tests/test-strtod.c (zero): New variable.
31167         (main): Avoid literal -0.0.
31168         Reported by Jonathan C. Patschke <jp@centtech.com>.
31169
31170 2008-07-31  Jim Meyering  <meyering@redhat.com>
31171
31172         sha256.h: correct definition of SHA224_DIGEST_SIZE
31173         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
31174         Reported by Paulie Pena IV <paulie4@gmail.com>.
31175         Define as 224 / 8, rather than as a literal.
31176         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
31177         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
31178         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
31179
31180 2008-07-31  Bruno Haible  <bruno@clisp.org>
31181
31182         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
31183         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
31184         Reported by Jonathan Patschke <jp@centtech.com>.
31185
31186 2008-07-31  Bruno Haible  <bruno@clisp.org>
31187
31188         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
31189         Reported by Paolo Bonzini <bonzini@gnu.org>.
31190
31191 2008-07-30  Eric Blake  <ebb9@byu.net>
31192
31193         test-strtod: allow compilation without -lm
31194         * tests/test-strtod.c (main): Avoid link dependence on fabs.
31195         Reported by Dennis Clarke <blastwave@gmail.com>.
31196
31197 2008-07-28  Jim Meyering  <meyering@redhat.com>
31198
31199         bootstrap: work also when there are no .po files in po/
31200         * build-aux/bootstrap (update_po_files): Complete the change
31201         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
31202
31203 2008-07-27  Jim Meyering  <meyering@redhat.com>
31204
31205         * users.txt: Add zile.
31206
31207 2008-07-26  Ben Pfaff  <blp@gnu.org>
31208
31209         Add missing dependencies on new m4/exponent[fdl].m4 files.
31210         * modules/isnanf-nolibm: Add m4/exponentf.m4.
31211         * modules/isnand-nolibm: Add m4/exponentd.m4.
31212         * modules/isnanl-nolibm: Add m4/exponentl.m4.
31213         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
31214         m4/isnan[fdl].m4, because the macros actually used moved.
31215         Reported by Jim Meyering.
31216
31217 2008-07-14  Ben Pfaff  <blp@gnu.org>
31218
31219         Add isinf module.
31220         * lib/isinf.c: New file.
31221         * lib/math.in.h: Define isinf macro if we have decided to replace
31222         it.
31223         * m4/isinf.m4: New file.
31224         * m4/math_h.m4: Initialize and substitute variables for isinf
31225         module.
31226         * modules/isinf: New file.
31227         * modules/isinf-tests: New file.
31228         * modules/math: Add substitutions for new module.
31229         * tests/test-isinf.c: New file.
31230         * doc/posix-functions/isinf.texi: Mention new module.
31231         * MODULES.html.sh: Mention new module.
31232
31233 2008-07-14  Ben Pfaff  <blp@gnu.org>
31234
31235         Factor out some macros for use by additional modules.
31236         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
31237         exponentf.m4.
31238         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
31239         exponentd.m4.
31240         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
31241         file exponentl.m4.
31242         * m4/exponentf.m4: New file.
31243         * m4/exponentd.m4: New file.
31244         * m4/exponentl.m4: New file.
31245         * modules/isnanf: Use new file m4/exponentf.m4.
31246         * modules/isnand: Use new file m4/exponentd.m4.
31247         * modules/isnanl: Use new file m4/exponentl.m4.
31248
31249 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
31250
31251         mktime.c: normalize tp->tm_isdst value to -1/0/1.
31252         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
31253         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
31254         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
31255
31256         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
31257         readlink on platforms without PATH_MAX.
31258
31259 2008-07-21  Eric Blake  <ebb9@byu.net>
31260
31261         Warn, not fail, on stale version.
31262         * top/GNUmakefile (_curr-ver): Tone down previous patch.
31263
31264         Don't allow installation with stale devel version number.
31265         * top/GNUmakefile (_is-install-target): New macro.
31266         (_curr-ver): Forbid installation with stale version number.
31267
31268 2008-07-20  Bruno Haible  <bruno@clisp.org>
31269
31270         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
31271         TESTS_ENVIRONMENT.
31272         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
31273
31274 2008-07-20  Bruno Haible  <bruno@clisp.org>
31275
31276         * lib/c-stack.h (c_stack_action): Add documentation.
31277         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
31278
31279 2008-07-20  Bruno Haible  <bruno@clisp.org>
31280
31281         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
31282         * modules/readlink (License): Likewise.
31283
31284 2008-07-17  Eric Blake  <ebb9@byu.net>
31285
31286         * modules/c-stack (Link): Fix typo.
31287
31288         Make c-stack use libsigsegv, when available.
31289         * modules/c-stack (Depends-on): Add libsigsegv.
31290         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
31291         needed.
31292         * lib/c-stack.c (SIGSTKSZ): Define fallback.
31293         (segv_handler, overflow_handler, c_stack_action)
31294         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
31295         implementation when libsigsegv is available, but only when using
31296         the library is necessary.
31297         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
31298         comment, explaining why XSI check fails on Linux.
31299         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
31300         * tests/test-c-stack2.sh: Tweak skip message.
31301         * NEWS: Document new link-time requirements.
31302
31303 2008-07-16  Eric Blake  <ebb9@byu.net>
31304
31305         c-stack: Expose false positives when not using libsigsegv.
31306         * modules/c-stack-tests (Files): Expand test.
31307         * tests/test-c-stack.c (main): Add means to conditionally trigger
31308         non-overflow SIGSEGV.
31309         * tests/test-c-stack2.sh: New file.
31310
31311 2008-07-14  Bruno Haible  <bruno@clisp.org>
31312
31313         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
31314         Reported by Eric Blake.
31315
31316 2008-07-14  Sam Steingold  <sds@gnu.org>
31317             Bruno Haible  <bruno@clisp.org>
31318
31319         New module libsigsegv.
31320         * modules/libsigsegv: New file.
31321         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
31322         modifications.
31323         * MODULES.html.sh (Signal handling): New section.
31324
31325 2008-07-14  Bruno Haible  <bruno@clisp.org>
31326
31327         * modules/unictype/ctype-* (Description): Add the word "function".
31328         Improves the resulting doc in MODULES.html.
31329
31330 2008-07-12  Ben Pfaff  <blp@gnu.org>
31331
31332         Add longlong module.
31333         * modules/longlong: New file.
31334
31335 2008-07-12  Bruno Haible  <bruno@clisp.org>
31336
31337         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
31338         to empty.
31339
31340 2008-07-10  Ben Pfaff  <blp@gnu.org>
31341
31342         Add isnan module.
31343         * doc/posix-functions/isnan.texi: Mention new module.
31344         * lib/math.in.h: Define isnan macro if we have decided to replace
31345         it.
31346         * m4/isnan.m4: New file.
31347         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
31348         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
31349         also.
31350         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
31351         redundancy.
31352         * m4/math_h.m4: Initialize and substitute variables for isnan
31353         module.
31354         * modules/isnan: New file.
31355         * modules/isnan-tests: New file.
31356         * modules/math: Add substitutions for new module.
31357         * tests/test-isnan.c: New file.
31358         * MODULES.html.sh: Mention new module.
31359
31360 2008-07-10  Ben Pfaff  <blp@gnu.org>
31361
31362         Add isnanf module.
31363         * lib/isnanf.m4: New file.
31364         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
31365         (gl_HAVE_ISNANF_IN_LIBM): New macro.
31366         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31367         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31368         * modules/isnanf: New file.
31369         * modules/isnanf-tests: New file.
31370         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31371         files.
31372         * tests/test-isnanf-nolibm.c: factored most of its contents into
31373         new file tests/test-isnanf.h.
31374         * tests/test-isnanf.h: New file.
31375         * tests/test-isnanf.c: New file.
31376         * MODULES.html.sh: Mention new module.
31377         * doc/glibc-functions/isnanf.texi: Mention new module.
31378
31379 2008-07-10  Ben Pfaff  <blp@gnu.org>
31380
31381         Add isnand module.
31382         * lib/isnand.h: New file.
31383         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31384         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31385         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31386         functionality also.
31387         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31388         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31389         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31390         * modules/isnand: New file.
31391         * modules/isnand-tests: New file.
31392         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31393         files.
31394         * tests/test-isnand-nolibm.c: factored most of its contents into
31395         new file tests/test-isnand.h.
31396         * tests/test-isnand.h: New file.
31397         * tests/test-isnand.c: New file.
31398         * MODULES.html.sh: Mention new module.
31399
31400 2008-07-10  Ben Pfaff  <blp@gnu.org>
31401
31402         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31403         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31404         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31405         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31406         * modules/isnanf-nolibm: Update references to renamed files.
31407         * modules/isnand-nolibm: Likewise.
31408         * modules/isnanf-nolibm-tests: Likewise.
31409         * modules/isnand-nolibm-tests: Likewise.
31410         * lib/frexp.c: Likewise.
31411         * lib/isfinite.c: Likewise.
31412         * lib/signbitd.c: Likewise.
31413         * lib/signbitf.c: Likewise.
31414         * lib/vasnprintf.c: Likewise.
31415         * tests/test-ceilf1.c: Likewise.
31416         * tests/test-ceilf2.c: Likewise.
31417         * tests/test-floorf1.c: Likewise.
31418         * tests/test-floorf2.c: Likewise.
31419         * tests/test-frexp.c: Likewise.
31420         * tests/test-round1.c: Likewise.
31421         * tests/test-round2.c: Likewise.
31422         * tests/test-roundf1.c: Likewise.
31423         * tests/test-strtod.c: Likewise.
31424         * tests/test-trunc1.c: Likewise.
31425         * tests/test-trunc2.c: Likewise.
31426         * tests/test-truncf1.c: Likewise.
31427         * tests/test-truncf2.c: Likewise.
31428         * NEWS: Mention the renamed header files.
31429
31430 2008-07-11  Jim Meyering  <meyering@redhat.com>
31431
31432         vc-list-files: make the last-resort awk code more portable
31433         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31434         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31435         does not support it.
31436
31437 2008-07-10  Eric Blake  <ebb9@byu.net>
31438
31439         Work with tar's bootstrap.
31440         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31441         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31442         an m4 comment.
31443
31444 2008-07-09  Jim Meyering  <meyering@redhat.com>
31445
31446         posix-shell.m4: fix typo that made this test malfunction
31447         * m4/posix-shell.m4: Remove capitalization in variable name.
31448
31449 2008-07-08  Bruno Haible  <bruno@clisp.org>
31450
31451         * m4/onceonly.m4: Update comments.
31452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31453
31454 2008-07-04  Jim Meyering  <meyering@redhat.com>
31455
31456         * users.txt: Add vc-dwim.
31457         (bison, coreutils): Use the gitweb URL.
31458
31459 2008-07-03  Jim Meyering  <meyering@redhat.com>
31460
31461         * users.txt: Add libffcall.  From Sam Steingold.
31462
31463 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31464
31465         getdate.y: do not ignore TZ with relative day, month or year offset
31466         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31467         relative-date-handling, since otherwise, the latter would clobber the
31468         sole output (an updated Start value) of the tz-handling block.
31469         * tests/test-getdate.c: Tests for the fix
31470
31471 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31472
31473         Recognize 'foo_LIBRARIES += libgnu.a'.
31474         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31475         makefile snippet has already specified an installation location,
31476         also using '+='.
31477
31478 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31479
31480         getdate.y: factor out common actions
31481         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31482         Use them in place of open-coded actions.
31483
31484 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31485
31486         Add self-test for getdate module.
31487         * modules/getdate-tests: New file.
31488         * tests/test-getdate.c: New file.
31489
31490 2008-06-29  Bruno Haible  <bruno@clisp.org>
31491
31492         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31493         .gitignore.
31494         Reported by Sylvain Beucler <beuc@beuc.net>.
31495
31496 2008-06-29  Bruno Haible  <bruno@clisp.org>
31497
31498         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31499         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31500
31501 2008-06-29  Bruno Haible  <bruno@clisp.org>
31502
31503         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31504         EXTRA_DIST.
31505         Reported by Sylvain Beucler <beuc@beuc.net>.
31506
31507 2008-06-26  Jim Meyering  <meyering@redhat.com>
31508
31509         make several modules depend on the "open" module
31510         This provides slightly increased consistency when opening-for-write
31511         the name of a non-directory spelled with a trailing slash.
31512         * modules/chdir-safer: Likewise.
31513         * modules/chown: Likewise.
31514         * modules/clean-temp: Likewise.
31515         * modules/copy-file: Likewise.
31516         * modules/fchdir: Likewise.
31517         * modules/fcntl-safer: Likewise.
31518         * modules/pipe: Likewise.
31519         * modules/utime: Likewise.
31520         Prompted by Eric Blake and Bruno Haible.
31521
31522 2008-06-24  Andreas Schwab  <schwab@suse.de>
31523
31524         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31525         literals can be used as initializers for global variables.
31526
31527 2008-06-23  Eric Blake  <ebb9@byu.net>
31528
31529         Make gnulib-cache.m4 easier to diff.
31530         * gnulib-tool (func_import): Allow newlines when reading cached
31531         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31532
31533 2008-06-23  Bruno Haible  <bruno@clisp.org>
31534
31535         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31536         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31537         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31538         m4/signalblocking.m4.
31539         (gl_PREREQ_SIGACTION): Don't invoke it.
31540         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31541         gl_PREREQ_SIG_HANDLER_H.
31542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31543         Don't check for sigaction here.
31544
31545 2008-06-23  Bruno Haible  <bruno@clisp.org>
31546
31547         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31548         (install_handlers): Don't set the SA_RESETHAND flag.
31549
31550 2008-06-23  Bruno Haible  <bruno@clisp.org>
31551
31552         * m4/sigaction.m4: Comment fixes.
31553         * lib/signal.in.h: Likewise.
31554
31555 2008-06-23  Eric Blake  <ebb9@byu.net>
31556
31557         Fix typo.
31558         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31559
31560         Avoid SA_ namespace.
31561         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31562         Reported by Ralf Wildenhues.
31563
31564         Avoid test failure due to SA_RESTORER.
31565         * tests/test-sigaction.c (SA_MASK): New macro.
31566         (main): Avoid failing due to extension flags being set.
31567         Reported by Jim Meyering.
31568
31569         Revert use of sig-handler.h in sigprocmask.c.
31570         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31571         it requires the existence of struct sigaction.
31572         * lib/sigprocmask.c (handler_t): Restore typedef.
31573         (rpl_signal, old_handlers): Use local type.
31574
31575 2008-06-22  Bruno Haible  <bruno@clisp.org>
31576
31577         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31578         conditionally.
31579         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31580
31581 2008-06-22  Bruno Haible  <bruno@clisp.org>
31582
31583         * doc/posix-functions/siginterrupt.texi: Move note.
31584
31585         * lib/signal.in.h (SA_RESTART): New macro.
31586         * lib/sigaction.c: Update comment.
31587
31588         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31589
31590         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31591         (gl_PREREQ_SIGPROCMASK): Invoke it.
31592         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31593
31594         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31595
31596         * lib/sigprocmask.c: Update a comment.
31597
31598 2008-06-21  Eric Blake  <ebb9@byu.net>
31599
31600         Use sigaction module rather than signal().
31601         * modules/c-stack (Depends-on): Add sigaction.
31602         * modules/fatal-signal (Depends-on): Likewise.
31603         * modules/nanosleep (Depends-on): Likewise.
31604         * modules/sigprocmask (Files): Add sig-handler.h.
31605         * modules/sigaction (Files): Likewise.
31606         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31607         Eggert.
31608         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31609         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31610         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31611         (init_fatal_signals): Likewise.
31612         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31613         (siginterrupt): Delete fallback.
31614         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31615         instead.
31616         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31617         siginterrupt.
31618
31619         New module sigaction, for mingw.
31620         * modules/sigaction: New module...
31621         * modules/sigaction-tests: ...and its test.
31622         * m4/sigaction.m4: New file.
31623         * lib/sigaction.c: Likewise.
31624         * tests/test-sigaction.c: Likewise.
31625         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31626         * modules/signal (Makefile.am): Likewise.
31627         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31628         needed.
31629         * doc/posix-headers/signal.texi (signal.h): Mention provided
31630         types.
31631         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31632         that sigaction is preferable.
31633         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31634         module.
31635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31636         sigaction.
31637
31638         Improve robustness of sigprocmask by overriding signal.
31639         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31640         is in use.
31641         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31642         (SIGKILL, SIGSTOP): Provide fallbacks.
31643         (rpl_signal): Implement.
31644         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31645         signal can be called inside handlers.
31646
31647         Fix nanosleep module on mingw.
31648         * modules/nanosleep (Depends-on): Add sys_select.
31649         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
31650
31651         Fix licensing of sigprocmask.
31652         * modules/raise (License): Relicense as LGPL.
31653
31654 2008-06-21  Bruno Haible  <bruno@clisp.org>
31655
31656         * lib/propername.c (proper_name_utf8): Don't use the transliterated
31657         result if it contains question marks.
31658         Reported by Michael Geng <linux@michaelgeng.de>.
31659
31660 2008-06-19  Bruno Haible  <bruno@clisp.org>
31661
31662         Fix CVS-ism.
31663         * doc/gnulib.texi: Include updated-stamp.texi.
31664         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
31665         (updated-stamp.texi): New rule.
31666         (gnulib.info): Depend on it.
31667         * doc/.gitignore: Add updated-stamp.texi.
31668         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
31669
31670 2008-06-19  Bruno Haible  <bruno@clisp.org>
31671
31672         * doc/Makefile (gnulib.info): Update and simplify dependencies.
31673         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31674
31675 2008-06-19  Eric Blake  <ebb9@byu.net>
31676
31677         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
31678         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
31679         Reported by Stepan Kasal.
31680
31681 2008-06-18  Bruno Haible  <bruno@clisp.org>
31682
31683         * lib/fatal-signal.c (init_fatal_signals): Add comment.
31684         Reported by Eric Blake.
31685
31686 2008-06-18  Eric Blake  <ebb9@byu.net>
31687
31688         Work around cygwin 1.5.25 strsignal bug.
31689         * tests/test-strsignal.c: Allow for const char *.
31690         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
31691
31692 2008-06-18  Simon Josefsson  <simon@josefsson.org>
31693
31694         * users.txt: Update URL to article and add author/date
31695         information.
31696
31697 2008-06-17  Bruno Haible  <bruno@clisp.org>
31698
31699         New macro gl_DISABLE_THREADS.
31700         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
31701         if the user did not pass --enable-threads or --disable-threads option.
31702         (gl_DISABLE_THREADS): New macro.
31703         Reported by Eric Blake <ebb9@byu.net>.
31704
31705 2008-06-17  Bruno Haible  <bruno@clisp.org>
31706
31707         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
31708         when the macro ignores it.
31709         Based on a patch by Eric Blake <ebb9@byu.net>.
31710
31711 2008-06-17  Bruno Haible  <bruno@clisp.org>
31712
31713         * modules/tls (License): Change to LGPLv2+.
31714         Reported by Eric Blake.
31715
31716 2008-06-17  Eric Blake  <ebb9@byu.net>
31717
31718         Simplify c-stack prerequisites.
31719         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
31720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
31721         no longer requires <ucontext.h> to exist.  Optimize setrlimit
31722         check.
31723         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
31724         <sys/resource.h>.
31725
31726         Move c-stack test into testsuite.
31727         * modules/c-stack-tests: New file.
31728         * lib/c-stack.c [DEBUG]: Move test program...
31729         * tests/test-c-stack.c: ...into this new file.  Skip rather than
31730         fail test if sigaltstack is lacking.
31731         * tests/test-c-stack.sh: New driver file.
31732
31733 2008-06-16  Eric Blake  <ebb9@byu.net>
31734
31735         Use raise module consistently.
31736         * modules/fatal-signal (Depends-on): Add raise.
31737         * modules/sigprocmask (Depends-on): Likewise.
31738         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
31739         * lib/sigprocmask.c (sigprocmask): Likewise.
31740         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31741         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
31742
31743         Fix compliance bug in sigpending.
31744         * lib/sigprocmask.c (sigpending): Return pending array via
31745         parameter, not return value.
31746
31747 2008-06-14  Eric Blake  <ebb9@byu.net>
31748
31749         Improve obstack-printf test code.
31750         * tests/test-obstack-printf.c (test_function): Fix comment, and
31751         simplify usage of obstack_* in macros.  Add a test for coverage.
31752         Reported by Bruno Haible.
31753
31754 2008-06-14  Bruno Haible  <bruno@clisp.org>
31755
31756         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
31757         array size as a constant, not as a const variable.
31758         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
31759         AC_USE_SYSTEM_EXTENSIONS.
31760         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31761         Test whether the obstack_printf function actually exists.
31762         * modules/obstack-printf (Depends-on): Add extensions.
31763         (Include): Remove obstack.h.
31764         * modules/obstack-printf-posix (Depends-on): Add extensions.
31765         (Include): Remove obstack.h.
31766
31767 2008-06-13  Eric Blake  <ebb9@byu.net>
31768
31769         Add obstack-printf and obstack-printf-posix modules.
31770         * modules/obstack-printf: New file.
31771         * modules/obstack-printf-posix: Likewise.
31772         * MODULES.html.sh (Misc): Mention them.
31773         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31774         Likewise.
31775         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31776         Likewise.
31777         * modules/stdio (Makefile.am): Accomodate new modules.
31778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31779         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
31780         Declare.
31781         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
31782         functions.
31783         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
31784         (gl_REPLACE_OBSTACK_PRINTF): New macros
31785         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
31786         * tests/test-obstack-printf.c: New file.
31787         * modules/obstack-printf-tests: Likewise.
31788         * modules/obstack-printf-posix-tests: Likewise.
31789
31790 2008-06-11  Bruno Haible  <bruno@clisp.org>
31791
31792         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
31793         * lib/open.c: Include errno.h.
31794         (open): Fail when attempting to write to a file that has a trailing
31795         slash.
31796         * tests/test-open.c (main): Test against trailing slash bug.
31797         * doc/posix-functions/open.texi: Mention the trailing slash bug.
31798
31799 2008-06-10  Bruno Haible  <bruno@clisp.org>
31800
31801         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
31802         for $? to work inside the trap command, with various /bin/sh-s.
31803         * tests/test-vc-list-files-cvs.sh: Likewise.
31804
31805 2008-06-10  Bruno Haible  <bruno@clisp.org>
31806
31807         * lib/acl-internal.h: Don't include gettext.h here.
31808         * lib/set-mode-acl.c: Include gettext.h here.
31809         * lib/copy-acl.c: Likewise.
31810
31811 2008-06-10  Bruno Haible  <bruno@clisp.org>
31812
31813         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31814         * lib/wait-process.c (wait_subprocess): Likewise.
31815         * lib/execute.h (execute): Add termsigp argument.
31816         * lib/execute.c (execute): Likewise.
31817         * lib/csharpcomp.c (compile_csharp_using_pnet,
31818         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31819         * lib/csharpexec.c (execute_csharp_using_pnet,
31820         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31821         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31822         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31823         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31824         is_jikes_present): Update.
31825         * lib/javaexec.c (execute_java_class): Update.
31826         * lib/javaversion.c (execute_and_read_line): Update.
31827         * NEWS: Document the changes.
31828         Reported by Eric Blake.
31829
31830 2008-06-10  Eric Blake  <ebb9@byu.net>
31831
31832         Add missing include.
31833         * tests/test-strstr.c (includes): Add <signal.h>.
31834         * tests/test-strcasestr.c (includes): Likewise.
31835         * tests/test-memmem.c (includes): Likewise.
31836
31837 2008-06-10  Bruno Haible  <bruno@clisp.org>
31838
31839         * lib/wait-process.c (wait_subprocess): Add an assertion.
31840
31841 2008-06-10  Bruno Haible  <bruno@clisp.org>
31842
31843         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31844
31845 2008-06-10  Bruno Haible  <bruno@clisp.org>
31846
31847         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31848         using alarm().
31849         * tests/test-strcasestr.c (main): Likewise.
31850         * tests/test-strstr.c (main): Likewise.
31851
31852 2008-06-09  Bruno Haible  <bruno@clisp.org>
31853
31854         Work around the Solaris 10 ACE ACLs ABI change.
31855         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31856         declare if ACL_NO_TRIVIAL is present.
31857         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31858         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31859         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31860         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31861         define if ACL_NO_TRIVIAL is present.
31862         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31863         and use the current ABI.
31864         (file_has_acl): Use same #if condition as elsewhere.
31865         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31866         in use, and use the current ABI.
31867         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31868         Reported by Jim Meyering.
31869
31870 2008-06-09  Eric Blake  <ebb9@byu.net>
31871
31872         Work around environments that (stupidly) ignore SIGALRM.
31873         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31874         before using alarm().
31875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31877         Reported by Ian Beckwith <ianb@erislabs.net>.
31878
31879         Produce autobuild blurb earlier in log.
31880         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31881
31882 2008-06-09  Jim Meyering  <meyering@redhat.com>
31883         and OndÅ™ej Vašík  <ovasik@redhat.com>
31884
31885         utimens.c: correct kernel bug work-around
31886         OndÅ™ej Vašík found that the invalid return value of 280 indicates
31887         failure, not success, and the kernel bug we're trying to work
31888         around affects not just the utimensat call, but also the fallback
31889         futimens call.
31890         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31891         not success.
31892         [HAVE_FUTIMENS]: Use the same work-around, here.
31893
31894 2008-06-09  Jim Meyering  <meyering@redhat.com>
31895
31896         add more guards around definition of ACE_-related code
31897         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31898         ALLOW and ACE_OWNER are also defined.
31899
31900 2008-06-08  Bruno Haible  <bruno@clisp.org>
31901
31902         * lib/acl-internal.h: Add me as co-author.
31903         * lib/file-has-acl.c: Likewise.
31904         * lib/set-mode-acl.c: Likewise.
31905         * lib/copy-acl.c: Likewise.
31906
31907 2008-06-08  Bruno Haible  <bruno@clisp.org>
31908
31909         Add support for AIX ACLs.
31910         * lib/acl-internal.h (acl_nontrivial): New declaration.
31911         * lib/file-has-acl.c (acl_nontrivial): New function.
31912         (file_has_acl): Add implementation using AIX 4 ACL API.
31913         * lib/set-mode-acl.c (qset_acl): Likewise.
31914         * lib/copy-acl.c (qcopy_acl): Likewise.
31915
31916 2008-06-08  Bruno Haible  <bruno@clisp.org>
31917
31918         Add support for HP-UX ACLs.
31919         * lib/acl-internal.h (acl_nontrivial): New declaration.
31920         * lib/file-has-acl.c (acl_nontrivial): New function.
31921         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31922         * lib/set-mode-acl.c (qset_acl): Likewise.
31923         * lib/copy-acl.c (qcopy_acl): Likewise.
31924
31925 2008-06-08  Bruno Haible  <bruno@clisp.org>
31926
31927         Add support for Cygwin ACLs.
31928         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31929         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31930         the chmod_or_fchmod call.
31931         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31932
31933 2008-06-08  Bruno Haible  <bruno@clisp.org>
31934
31935         Fix bug with setuid modes in Solaris 10+ code.
31936         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31937         succeeded, when the mode contains some special bits.
31938
31939 2008-06-08  Bruno Haible  <bruno@clisp.org>
31940
31941         Add support for Solaris 7..10 ACLs.
31942         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31943         declarations.
31944         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31945         functions.
31946         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31947         * lib/set-mode-acl.c (qset_acl): Likewise.
31948         * lib/copy-acl.c (qcopy_acl): Likewise.
31949
31950 2008-06-08  Bruno Haible  <bruno@clisp.org>
31951
31952         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31953         declaration.
31954         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31955         (acl_access_nontrivial): Remove MacOS X case.
31956         (file_has_acl): Use acl_extended_nontrivial.
31957         * lib/copy-acl.c (qcopy_acl): Likewise.
31958
31959 2008-06-08  Bruno Haible  <bruno@clisp.org>
31960
31961         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31962
31963 2008-06-08  Jim Meyering  <meyering@redhat.com>
31964
31965         * modules/acl (Maintainer): Add Bruno Haible.
31966
31967 2008-06-07  Bruno Haible  <bruno@clisp.org>
31968
31969         Improve support for Tru64 ACLs.
31970         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31971         ACL on OSF/1.
31972
31973 2008-06-07  Bruno Haible  <bruno@clisp.org>
31974
31975         Add support for MacOS X ACLs.
31976         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31977         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31978         * lib/set-mode-acl.c (qset_acl): Likewise.
31979         * lib/copy-acl.c (qcopy_acl): Likewise.
31980
31981 2008-06-07  Bruno Haible  <bruno@clisp.org>
31982
31983         Fix memory leak introduced on 2008-05-22.
31984         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31985         use.
31986
31987 2008-06-07  Bruno Haible  <bruno@clisp.org>
31988
31989         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31990         to construct an empty ACL.
31991
31992 2008-06-07  Bruno Haible  <bruno@clisp.org>
31993
31994         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31995         precisely.
31996         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31997
31998 2008-06-07  Bruno Haible  <bruno@clisp.org>
31999
32000         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
32001         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
32002
32003 2008-06-07  Bruno Haible  <bruno@clisp.org>
32004
32005         * doc/posix-functions/_setjmp.texi: Explain the use of this function
32006         regardless of POSIX.
32007         * doc/posix-functions/_longjmp.texi: Likewise.
32008         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
32009         SystemV platform in this case.
32010
32011 2008-06-06  Eric Blake  <ebb9@byu.net>
32012
32013         Document abort() bugs.
32014         * doc/posix-functions/abort.texi (abort): Mention anomalies.
32015
32016         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
32017         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
32018         sigsetjmp.
32019         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
32020         siglongjmp, but only as a macro.
32021         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
32022         is obsolete.
32023         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
32024
32025         Tweak documentation to cover cygwin argz bugs.
32026         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
32027         argz bug fix; no code change needed since no cygwin releases
32028         occurred between the last fix and the bug being tested.
32029         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
32030         module and recently fixed cygwin bugs.
32031         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
32032         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
32033         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
32034         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
32035         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
32036         Likewise.
32037         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
32038         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
32039         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
32040         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
32041         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
32042         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
32043         Likewise.
32044
32045         Avoid gcc warning on cygwin.
32046         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
32047         !ACL_NO_TRIVIAL]: Avoid unused variable.
32048
32049 2008-06-05  Eric Blake  <ebb9@byu.net>
32050
32051         Be tolerant of UNKNOWN version in gnulib-tool test dir.
32052         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
32053         git-version-gen fails to come up with a version.
32054         Reported by Simon Josefsson.
32055
32056 2008-06-05  Jim Meyering  <meyering@redhat.com>
32057             Paul Eggert  <eggert@cs.ucla.edu>
32058
32059         utimens.c: work around a probable Linux kernel bug
32060         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
32061         appears to be a kernel bug that causes utimensat to return 280
32062         instead of 0, indicating success.
32063
32064 2008-06-04  Bruno Haible  <bruno@clisp.org>
32065
32066         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
32067         2008-06-01 commit.
32068
32069 2008-06-04  Bruno Haible  <bruno@clisp.org>
32070
32071         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
32072         * lib/file-has-acl.c (acl_access_nontrivial): New function.
32073         (file_has_acl): Use it. Save errno afterwards.
32074         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
32075
32076 2008-06-03  Bruno Haible  <bruno@clisp.org>
32077
32078         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
32079         draft code. Simplify #ifs.
32080         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
32081         Put Solaris code after POSIX-draft code. Fix comments regarding
32082         Solaris 10, HP-UX. Mention Cygwin.
32083         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
32084
32085 2008-06-03  Eric Blake  <ebb9@byu.net>
32086
32087         Provide fallback for older kernels.
32088         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
32089         Provide runtime fallback if kernel lacks support.
32090         Reported by Mike Frysinger.
32091
32092 2008-06-02  Bruno Haible  <bruno@clisp.org>
32093
32094         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
32095         it exists.
32096
32097 2008-06-02  Bruno Haible  <bruno@clisp.org>
32098
32099         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
32100         * lib/copy-acl.c (qcopy_acl): Update comment.
32101
32102 2008-06-02  Bruno Haible  <bruno@clisp.org>
32103
32104         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
32105         like ACL APIs.
32106
32107 2008-06-02  Bruno Haible  <bruno@clisp.org>
32108
32109         * tests/test-file-has-acl.sh: Use different code for Cygwin.
32110         * tests/test-set-mode-acl.sh: Likewise.
32111         * tests/test-copy-acl.sh: Likewise.
32112         * tests/test-copy-file.sh: Likewise.
32113
32114 2008-06-02  Bruno Haible  <bruno@clisp.org>
32115
32116         * tests/test-file-has-acl.sh: Remove unused code.
32117
32118 2008-06-01  Bruno Haible  <bruno@clisp.org>
32119
32120         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
32121         (copy_acl): Just a wrapper around qcopy_acl that emits the error
32122         messages.
32123         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
32124
32125 2008-06-01  Bruno Haible  <bruno@clisp.org>
32126
32127         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
32128         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
32129         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
32130         APIs.
32131         * modules/acl-tests (configure.ac): Remove tests now contained in
32132         m4/acl.m4.
32133
32134 2008-06-02  Jim Meyering  <meyering@redhat.com>
32135
32136         announce-gen: use a better key-server host name
32137         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
32138         it may be more consistently reliable.  Suggested by Werner Koch
32139         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
32140
32141 2008-06-01  Bruno Haible  <bruno@clisp.org>
32142
32143         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
32144         Reported by Voroskoi Andras <voroskoi@gmail.com>.
32145
32146 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
32147
32148         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
32149
32150 2008-06-01  Bruno Haible  <bruno@clisp.org>
32151
32152         New ACL tests.
32153         * tests/test-file-has-acl.sh: New file.
32154         * tests/test-file-has-acl.c: New file.
32155         * tests/test-set-mode-acl.sh: New file.
32156         * tests/test-set-mode-acl.c: New file.
32157         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
32158         * tests/test-copy-acl.c: New file.
32159         * modules/acl-tests: New file, based on modules/copy-file-tests.
32160         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
32161         (Depends-on): Add acl-tests.
32162         (configure.ac): Remove checks.
32163         (Makefile.am): Don't create test-sameacls program here any more.
32164
32165 2008-06-01  Bruno Haible  <bruno@clisp.org>
32166
32167         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
32168         * tests/test-sameacls.c: Include progname.h.
32169         (main): Invoke set_program_name. Portability fixes for MacOS X,
32170         Solaris, HP-UX.
32171
32172 2008-06-01  Bruno Haible  <bruno@clisp.org>
32173
32174         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
32175         function.
32176         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
32177
32178 2008-06-01  Bruno Haible  <bruno@clisp.org>
32179
32180         * modules/rpmatch (Depends-on): Add strdup.
32181
32182 2008-06-01  Bruno Haible  <bruno@clisp.org>
32183
32184         * lib/pipe.c: Include unistd-safer.h.
32185         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
32186         * modules/pipe (Depends-on): Add unistd-safer.
32187
32188 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32189
32190         * modules/autobuild (configure.ac): Call AB_INIT.
32191
32192 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32193
32194         * tests/test-getaddrinfo.c: Don't print debug messages by default.
32195         Suggested by Bruno Haible <bruno@clisp.org>.
32196
32197 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32198
32199         * tests/test-base64.c: Cast size_t to unsigned long when invoking
32200         printf.  Use %lu instead of %d.  Reported by Bruno Haible
32201         <bruno@clisp.org>.
32202
32203 2008-05-29  Eric Blake  <ebb9@byu.net>
32204
32205         Prefer new POSIX 200x interfaces over futimesat.
32206         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
32207         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
32208         when available.
32209         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
32210
32211 2008-05-28  Bruno Haible  <bruno@clisp.org>
32212
32213         * modules/stpcpy (License): Change to LGPLv2+.
32214         Requested by David Lutterkort <dlutter@redhat.com>.
32215
32216 2008-05-27  Bruno Haible  <bruno@clisp.org>
32217
32218         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
32219         current mingw.
32220         Reported by Jose E. Marchesi <jemarch@gnu.org>.
32221
32222 2008-05-27  Bruno Haible  <bruno@clisp.org>
32223
32224         * modules/iconv_open (Link): New section, from module 'iconv'.
32225         * modules/striconv (Link): Likewise.
32226         * modules/striconveh (Link): Likewise.
32227         * modules/xstriconv (Link): Likewise.
32228         * modules/unicodeio (Link): Likewise.
32229         * modules/propername (Link): Likewise.
32230         Reported by Jim Meyering.
32231
32232 2008-05-26  Jim Meyering  <meyering@redhat.com>
32233
32234         sha256: do not artificially restrict buffer length to be < 2^32
32235         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
32236         uint32_t to size_t.
32237         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
32238         to match.
32239
32240         avoid unaligned access errors, e.g., on sparc
32241         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
32242         direct access through a possibly-unaligned uint64* pointer.
32243         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
32244         direct access through a possibly-unaligned uint32* pointer.
32245         Prompted by this patch from Tom "spot" Callaway:
32246         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
32247
32248         sha512.c: fix typo in comment
32249         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
32250
32251 2008-05-25  Bruno Haible  <bruno@clisp.org>
32252
32253         * lib/set-mode-acl.c: Renamed from lib/acl.c.
32254         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
32255         (Makefile.am): Update lib_SOURCES.
32256
32257 2008-05-25  Bruno Haible  <bruno@clisp.org>
32258
32259         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
32260
32261 2008-05-25  Jim Meyering  <meyering@redhat.com>
32262
32263         useless-if-before-free: freed expr may have white-space differences
32264         * build-aux/useless-if-before-free: Recognize cases in which the
32265         freed expression differs from the tested one in embedded white
32266         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
32267         $1 was used, so we can't make any regexp shy.  Improved tests now
32268         detect this.
32269
32270         useless-if-before-free: accept white space in the expression.
32271         * build-aux/useless-if-before-free: For now, any white space
32272         in the expression must be identical in the free argument.
32273
32274         useless-if-before-free: efficiency tweak
32275         * build-aux/useless-if-before-free: Make the expression-matching
32276         regexp "shy".
32277         Make the *outer* regexp shy, not the expr-matching one.
32278
32279         update code-in-comment to accept cast of free arg
32280         * build-aux/useless-if-before-free: Update regexp.
32281
32282 2008-05-25  Bruno Haible  <bruno@clisp.org>
32283
32284         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
32285         * modules/copy-file-tests (Files, Makefile.am): Update.
32286         * tests/test-copy-file.c (func_test_copy): Update.
32287
32288 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
32289
32290         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
32291
32292 2008-05-23  Bruno Haible  <bruno@clisp.org>
32293
32294         Improve support for ACLs on OSF/1.
32295         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
32296         Remove fallback for unknown flavors of ACLs.
32297
32298 2008-05-22  Bruno Haible  <bruno@clisp.org>
32299
32300         Add support for ACLs on OSF/1.
32301         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
32302         replacements.
32303         (acl_free_text): New macro fallback.
32304         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
32305         acl_free.
32306         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
32307         acl_free_text function. Require AC_C_INLINE.
32308
32309 2008-05-22  Bruno Haible  <bruno@clisp.org>
32310
32311         Make copy_acl work on MacOS X 10.5.
32312         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
32313         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
32314         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
32315         If MODE_INSIDE_ACL, don't assume that every system has the same text
32316         representation for ACLs as FreeBSD.
32317         * lib/copy-acl.c (copy_acl): Add support for platforms with
32318         !MODE_INSIDE_ACL.
32319         * lib/file-has-acl.c (file_has_acl): Likewise.
32320         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
32321         FreeBSD, MacOS X, or IRIX, respectively.
32322
32323 2008-05-22  Bruno Haible  <bruno@clisp.org>
32324
32325         * lib/acl.h: Don't include <sys/acl.h>.
32326         (GETACLCNT): Move fallback to lib/acl-internal.h.
32327         * lib/acl-internal.h: Include <sys/acl.h> here.
32328         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
32329
32330 2008-05-22  Bruno Haible  <bruno@clisp.org>
32331
32332         Split off copy_acl function to separate file.
32333         * lib/copy-acl.c: New file, extracted from lib/acl.c.
32334         * lib/acl.c (copy_acl): Moved function to separate file.
32335         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
32336         * modules/acl (Files): Add lib/copy-acl.c.
32337         (Makefiles.am): Augment lib_SOURCES.
32338
32339 2008-05-22  Bruno Haible  <bruno@clisp.org>
32340
32341         * modules/copy-file-tests: New file.
32342         * tests/test-copy-file.sh: New file.
32343         * tests/test-copy-file.c: New file.
32344         * tests/test-copy-file-sameacls.c: New file.
32345
32346 2008-05-22  Eric Blake  <ebb9@byu.net>
32347
32348         Avoid gcc warning.
32349         * tests/test-memcmp.c (main): Pass NULL indirectly.
32350
32351 2008-05-21  Bruno Haible  <bruno@clisp.org>
32352
32353         Add reference doc about ACLs.
32354         * doc/acl-resources.txt: New file.
32355         * doc/acl-cygwin.txt: New file.
32356
32357 2008-05-21  Bruno Haible  <bruno@clisp.org>
32358
32359         Avoid one more warning from gcc.
32360         * lib/vasnprintf.c (IF_LINT): Update comments.
32361         (VASNPRINTF): Use it also for the 'prefix' array initializer.
32362
32363 2008-05-21  Jim Meyering  <meyering@redhat.com>
32364
32365         avoid a warning from gcc
32366         * lib/vasnprintf.c (IF_LINT): Define.
32367         (scale10_round_decimal_long_double):
32368         Use it to avoid a "may be used uninitialized" warning.
32369         (scale10_round_decimal_double): Likewise.
32370
32371 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32372
32373         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32374         declared.
32375
32376 2008-05-20  Bruno Haible  <bruno@clisp.org>
32377
32378         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32379         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32380
32381 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32382
32383         * modules/memcmp-tests: New file.
32384         * tests/test-memcmp.c: New file.
32385
32386 2008-05-19  Bruno Haible  <bruno@clisp.org>
32387
32388         * modules/propername (Notice, configure.ac): Put quoted "..." into
32389         --keyword option.
32390         * lib/propername.h: Update comments accordingly.
32391         Reported by Eric Blake.
32392
32393 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32394
32395         * modules/getpass-gnu (Depends-on): Add fseeko.
32396
32397 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32398
32399         * modules/base64-tests: New file.
32400
32401 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32402
32403         * lib/base64.c (base64_decode_ctx): If a decode context structure
32404         was passed in use it to ignore newlines.  If a context structure
32405         was _not_ passed in, continue to treat newlines as garbage (this
32406         is the historical behavior).  Formerly base64_decode.
32407         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32408         takes a decode context structure.
32409         * lib/base64.h (base64_decode): Macro for four-argument calls.
32410         (base64_decode_alloc): Likewise.
32411         * lib/base64.c (base64_decode_ctx): If a decode context structure
32412         was passed in use it to ignore newlines.  If a context structure
32413         was _not_ passed in, continue to treat newlines as garbage (this
32414         is the historical behavior).  Formerly base64_decode.
32415         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32416         takes a decode context structure.
32417         * lib/base64.h (base64_decode): Macro for four-argument calls.
32418         (base64_decode_alloc): Likewise.
32419
32420 2008-05-19  Jim Meyering  <meyering@redhat.com>
32421
32422         avoid a warning from gcc
32423         * lib/trim.c (IF_LINT): Define.
32424         (trim2): Use it to avoid a "may be used uninitialized" warning.
32425
32426         Fix doc typo.
32427         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32428
32429 2008-05-19  Bruno Haible  <bruno@clisp.org>
32430
32431         * doc/glibc-functions/getpass.texi: Document limits of other
32432         implementations.
32433
32434 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32435             Bruno Haible <bruno@clisp.org>
32436
32437         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32438
32439 2008-05-18  Bruno Haible  <bruno@clisp.org>
32440
32441         * modules/propername: New file, from GNU gettext.
32442         * lib/propername.h: New file, from GNU gettext.
32443         * lib/propername.c: New file, from GNU gettext.
32444         * MODULES.html.sh (Internationalization functions): Add propername.
32445
32446 2008-05-16  Jim Meyering  <meyering@redhat.com>
32447             Bruno Haible  <bruno@clisp.org>
32448
32449         Avoid some warnings from "gcc -Wshadow".
32450         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32451
32452 2008-05-15  Eric Blake  <ebb9@byu.net>
32453
32454         Extend previous patch to cygwin 1.7.0.
32455         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32456         fast implementation in cygwin >= 1.7.0.
32457         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32459
32460 2008-05-15  Bruno Haible  <bruno@clisp.org>
32461
32462         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32463         implementation in glibc >= 2.9.
32464         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32466
32467 2008-05-15  Bruno Haible  <bruno@clisp.org>
32468
32469         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32470         (Unicode string functions): Add unilbrk/*.
32471         Reported by Karl Berry.
32472
32473 2008-05-15  Eric Blake  <ebb9@byu.net>
32474
32475         Fix violation of <stdbool.h> replacement in regex.
32476         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32477         * lib/regexec.c (re_search_internal): Likewise.
32478         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32479
32480 2008-05-15  Jim Meyering  <meyering@redhat.com>
32481
32482         avoid distracting test output when git or cvs is not found
32483         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32484         * tests/test-vc-list-files-git.sh: Likewise.
32485
32486 2008-05-15  Eric Blake  <ebb9@byu.net>
32487
32488         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32489         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32490         glibc version.
32491         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32492         * doc/posix-functions/strstr.texi (strstr): Likewise.
32493         * lib/str-two-way.h (MAX): Sychronize with glibc.
32494
32495 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32496
32497         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32498         opr.ctx_type.
32499         (calc_first): Initialize constraint field.
32500         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32501         Fix grammar.
32502         (duplicate_node): Merge constraint field for all node types.
32503         (calc_eclosure_iter): Look at constraint field for all node types.
32504         * lib/regex_internal.c (create_cd_newstate): Don't look at
32505         opr.ctx_type.
32506
32507 2008-05-14  Bruno Haible  <bruno@clisp.org>
32508
32509         Help GCC to do better code generation.
32510         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32511         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32512         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32513         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32514         Declare with attribute 'malloc' if supported.
32515
32516 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32517
32518         use "echo STR|wc -c" rather than unportable "expr length STR"
32519         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32520         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32521
32522 2008-05-14  Jim Meyering  <meyering@redhat.com>
32523
32524         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32525         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32526         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32527         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32528         via Collin Lasse.
32529
32530 2008-05-14  Eric Blake  <ebb9@byu.net>
32531
32532         Avoid quadratic growth in gl_LIBSOURCES.
32533         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32534         Suggested by Bruno Haible.
32535
32536         Test xmemdup0.
32537         * modules/xmemdup0-tests: New file.
32538         * tests/test-xmemdup0.c: Likewise.
32539
32540 2008-05-13  Eric Blake  <ebb9@byu.net>
32541
32542         Split xmemdup0 into its own module.
32543         * modules/xmemdup0: New file.
32544         * lib/xmemdup0.h: Likewise.
32545         * lib/xmemdup0.c: Likewise.
32546         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32547         * lib/xalloc.h (xmemdup0): Remove.
32548         * lib/xmalloc.c (xmemdup0): Likewise.
32549
32550 2008-05-13  Eric Blake  <ebb9@byu.net>
32551             Bruno Haible  <bruno@clisp.org>
32552
32553         Reduce number of forks required during autoconf.
32554         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32555         and gl_LIBSOURCES_DIR.
32556         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32557         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32558         m4_syscmd per file.
32559         <m4_foreach_w>: Move...
32560         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32561
32562 2008-05-13  Eric Blake  <ebb9@byu.net>
32563
32564         * gnulib-tool: Fix various comment typos.
32565
32566 2008-05-12  Bruno Haible  <bruno@clisp.org>
32567
32568         Tailor the linebreaking algorithm.
32569         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32570
32571 2008-05-12  Bruno Haible  <bruno@clisp.org>
32572
32573         Update to Unicode 5.0.0.
32574         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32575         LBP_JV, LBP_JT. Redistribute values.
32576         (unilbrk_table): Change size.
32577         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32578         Unicode TR#14 rev. 22.
32579         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32580         LBP_JV, LBP_JT. Redistribute values.
32581         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32582         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32583         Update.
32584         * lib/unilbrk/lbrkprop1.h: Regenerated.
32585         * lib/unilbrk/lbrkprop2.h: Regenerated.
32586         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32587         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32588         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32589         Likewise.
32590         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32591         Likewise.
32592         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32593         result.
32594         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32595         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32596         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32597         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32598         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32599         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32600
32601 2008-05-11  Bruno Haible  <bruno@clisp.org>
32602
32603         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32604
32605 2008-05-11  Bruno Haible  <bruno@clisp.org>
32606
32607         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32608         * modules/unilbrk/gen-lbrk: New file.
32609
32610 2008-05-11  Bruno Haible  <bruno@clisp.org>
32611
32612         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32613         * m4/sha512.m4 (gl_SHA512): Likewise.
32614
32615 2008-05-11  Jim Meyering  <meyering@redhat.com>
32616
32617         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32618         * modules/crypto/sha256: New file.
32619         * modules/crypto/sha512: Likewise.
32620         * lib/sha256.c: Likewise.
32621         * lib/sha256.h: Likewise.
32622         * lib/sha512.c: Likewise.
32623         * lib/sha512.h: Likewise.
32624         * lib/u64.h: Likewise.
32625         * m4/sha256.m4: Likewise.
32626         * m4/sha512.m4: Likewise.
32627         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32628
32629 2008-05-10  Bruno Haible  <bruno@clisp.org>
32630
32631         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32632         (Input/Output <stdio.h>): Add xprintf.
32633         (Signal handling <signal.h>): Add strsignal.
32634         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32635         (Core language properties): Add func.
32636         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32637         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32638         strings.
32639         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32640         (Input/output): New section.
32641         (File system functions): Add openat-die, stat-macros.
32642         (Networking functions): Add sockets.
32643         (Unicode string functions): Add unictype/*.
32644         (Support for building libraries and executables): Add gperf.
32645         (Support for building documentation): Add agpl-3.0.
32646         (Misc): Add nocrash.
32647
32648 2008-05-10  Bruno Haible  <bruno@clisp.org>
32649
32650         * modules/unictype/gen-ctype: New file.
32651
32652 2008-05-10  Jim Meyering  <meyering@redhat.com>
32653
32654         Make chdir-safer.c more efficient on a system with no symlinks.
32655         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
32656         also if ELOOP is zero.  Suggested by Bruno Haible.
32657
32658         Make chdir-safer.c slightly safer.
32659         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
32660         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
32661
32662         Avoid compile failure on systems without ELOOP (like mingw).
32663         * lib/chdir-safer.c (ELOOP): Define if not already defined.
32664         Reported by Bruno Haible.
32665
32666 2008-05-10  Bruno Haible  <bruno@clisp.org>
32667
32668         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
32669         (is_utf8_encoding): Use a case-insensitive comparison.
32670         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
32671         streq.
32672
32673 2008-05-10  Bruno Haible  <bruno@clisp.org>
32674
32675         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
32676         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
32677         * lib/unilbrk/ulc-common.h (iconv_string_length,
32678         iconv_string_keeping_offsets): Remove declarations.
32679         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
32680         Don't include <iconv.h>, streq.h, xsize.h.
32681         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
32682         conversion.
32683         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
32684         <iconv.h>, streq.h, xsize.h.
32685         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
32686         conversion.
32687         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
32688         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
32689         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
32690         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
32691
32692 2008-05-10  Bruno Haible  <bruno@clisp.org>
32693
32694         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
32695         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
32696
32697         * modules/unilbrk/u32-width-linebreaks-tests: New file.
32698         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
32699
32700         * modules/unilbrk/u16-width-linebreaks-tests: New file.
32701         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
32702
32703         * modules/unilbrk/u8-width-linebreaks-tests: New file.
32704         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
32705
32706         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
32707         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
32708
32709         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
32710         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
32711
32712         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
32713         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
32714
32715         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
32716         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
32717
32718 2008-05-10  Bruno Haible  <bruno@clisp.org>
32719
32720         Split up 'linebreak' module.
32721         * lib/unilbrk.h: New file, based on lib/linebreak.h.
32722         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
32723         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
32724         modifications.
32725         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
32726         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
32727         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
32728         lib/linebreak.c.
32729         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
32730         lib/linebreak.c.
32731         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
32732         lib/linebreak.c.
32733         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
32734         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
32735         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
32736         lib/linebreak.c.
32737         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
32738         lib/linebreak.c.
32739         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
32740         lib/linebreak.c.
32741         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
32742         lib/linebreak.c.
32743         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
32744         lib/linebreak.c.
32745         * modules/unilbrk/base: New file.
32746         * modules/unilbrk/tables: New file.
32747         * modules/unilbrk/u8-possible-linebreaks: New file.
32748         * modules/unilbrk/u16-possible-linebreaks: New file.
32749         * modules/unilbrk/u32-possible-linebreaks: New file.
32750         * modules/unilbrk/ulc-common: New file.
32751         * modules/unilbrk/ulc-possible-linebreaks: New file.
32752         * modules/unilbrk/u8-width-linebreaks: New file.
32753         * modules/unilbrk/u16-width-linebreaks: New file.
32754         * modules/unilbrk/u32-width-linebreaks: New file.
32755         * modules/unilbrk/ulc-width-linebreaks: New file.
32756         * lib/linebreak.h: Remove file.
32757         * lib/linebreak.c: Remove file.
32758         * m4/linebreak.m4: Remove file.
32759         * modules/linebreak: Remove file.
32760         * NEWS: Mention the changes.
32761
32762 2008-05-09  Eric Blake  <ebb9@byu.net>
32763
32764         Add xmemdup0.
32765         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
32766         implementation.
32767         * lib/xmalloc.c (xmemdup0): New C implementation.
32768
32769 2008-05-08  Bruno Haible  <bruno@clisp.org>
32770
32771         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
32772
32773 2008-05-07  Eric Blake  <ebb9@byu.net>
32774
32775         Support cross-compilation of <wctype.h>.
32776         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
32777         AC_CACHE_CHECK.
32778
32779 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
32780
32781         * build-aux/vc-list-files: Add support for bzr.
32782
32783 2008-05-03  Jim Meyering  <meyering@redhat.com>
32784
32785         avoid failed assertion with tight malloc
32786         * tests/test-getndelim2.c: Correct an off-by-one assertion.
32787
32788 2008-05-03  Simon Josefsson  <simon@josefsson.org>
32789
32790         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
32791         are needed from arpa/inet.h.
32792         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
32793         Reported by Bruno Haible.
32794
32795 2008-05-02  Jim Meyering  <meyering@redhat.com>
32796
32797         avoid compilation error on FreeBSD 6
32798         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
32799
32800 2008-05-01  Jim Meyering  <meyering@redhat.com>
32801
32802         useless-if-before-free: correct --help's exit status description
32803         * build-aux/useless-if-before-free (usage): Like grep, exit 0
32804         for one or more matches, etc.  Reported by Bruno Haible.
32805
32806         vc-list-files: make the stand-alone gnulib test work
32807         * modules/vc-list-files-tests (configure.ac):
32808         Define and AC_SUBST abs_aux_dir.
32809         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
32810         $(abs_top_srcdir) to each script and having each of them
32811         duplicate the work of setting PATH, set PATH here, using
32812         the new variable, abs_aux_dir instead.
32813         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32814         * tests/test-vc-list-files-git.sh: Likewise.
32815         Reported by Bruno Haible.
32816
32817 2008-05-01  Bruno Haible  <bruno@clisp.org>
32818
32819         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32820         reallocation. Rename 'done' to 'found_delimiter'.
32821
32822 2008-05-01  Jim Meyering  <meyering@redhat.com>
32823
32824         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32825         * build-aux/vc-list-files: Use `...`, not $(...).
32826
32827 2008-04-30  Jim Meyering  <meyering@redhat.com>
32828
32829         add tests for vc-list-files
32830         * modules/vc-list-files-tests: New module.
32831         * tests/test-vc-list-files-cvs.sh: New file.
32832         * tests/test-vc-list-files-git.sh: New file.
32833
32834         avoid a warning from gcc
32835         * lib/getndelim2.c (IF_LINT): Define.
32836         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32837
32838         vc-list-files: work properly with build-aux/cvsu, too
32839         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32840         to all cvs-based clauses.
32841
32842         vc-list-files: work properly in the CVS+awk case, too
32843         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32844
32845         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32846         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32847         take more than one file argument, so .  Add quotes, just in case $dir
32848         ever contains a shell meta-character.  Prompted by Soren Hansen in
32849         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32850
32851 2008-04-29  Eric Blake  <ebb9@byu.net>
32852
32853         Optimize getndelim2 to use block operations when possible.
32854         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32855         freadseek, and memchr2.
32856         * lib/getndelim2.c (getndelim2): Use them for block reads.
32857
32858 2008-04-29  Bruno Haible  <bruno@clisp.org>
32859
32860         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32861         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32862         * modules/inet_ntop (Depends-on): Add extensions.
32863         * modules/inet_pton (Depends-on): Likewise.
32864         Reported by Simon Josefsson.
32865
32866 2008-04-29  Jim Meyering  <meyering@redhat.com>
32867
32868         When the is more than one match in a block, match all of them.
32869         * build-aux/useless-if-before-free: Iterate through each block
32870         until there are no more matches.
32871
32872         Fix broken useless-if-before-free script.
32873         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32874         the expression to match cast of argument to free-like function.
32875
32876 2008-04-29  Eric Blake  <ebb9@byu.net>
32877
32878         Use new header.
32879         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32880
32881 2008-04-29  Jim Meyering  <meyering@redhat.com>
32882
32883         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32884         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32885         by gnulib to exist and to declare e.g., inet_ntop.
32886         Don't include "inet_ntop.h", now removed.
32887
32888         * m4/arpa_inet_h.m4: Remove trailing blanks.
32889
32890 2008-04-29  Eric Blake  <ebb9@byu.net>
32891
32892         Silence valgrind on safe reads beyond potential array bounds.
32893         * lib/rawmemchr.valgrind: New file.
32894         * lib/strchrnul.valgrind: Likewise.
32895         * modules/rawmemchr (Files): Distribute new file.
32896         * modules/strchrnul (Files): Likewise.
32897         Suggested by Bruno Haible.
32898
32899 2008-04-29  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32902         (inet_ntop, inet_pton): Change portability warning's wording.
32903         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32904         Invoke gl_CHECK_NEXT_HEADERS.
32905         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32906         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32907         set ARPA_INET_H.
32908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32909         * modules/arpa_inet (Description): No longer only for systems that
32910         lack it.
32911         (Depends-on): Add include_next.
32912         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32913         HAVE_ARPA_INET_H.
32914
32915 2008-04-29  Jim Meyering  <meyering@redhat.com>
32916
32917         * modules/mkdir (License): Re-license as LGPLv2+.
32918
32919 2008-04-29  Bruno Haible  <bruno@clisp.org>
32920
32921         * modules/rawmemchr (Maintainer): Set to Eric.
32922         * modules/strchrnul (Maintainer): Likewise.
32923
32924 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32925
32926         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32927         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32928
32929         * modules/arpa_inet (arpa/inet.h): Use them.
32930
32931 2008-04-28  Eric Blake  <ebb9@byu.net>
32932
32933         Test getndelim2.
32934         * modules/getndelim2-tests: New file.
32935         * tests/test-getndelim2.c: Likewise.
32936         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32937         stream.
32938         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32939
32940         * MODULES.html.sh: Document new module.
32941
32942 2008-04-20  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/c-stack.c (die): Use raise.
32945         * modules/c-stack (Depends-on): Add raise.
32946
32947 2008-04-28  Bruno Haible  <bruno@clisp.org>
32948
32949         Expect rpmatch to be declared.
32950         * lib/yesno.c (rpmatch): Remove declaration.
32951
32952         Declare rpmatch.
32953         * lib/stdlib.in.h (rpmatch): New declaration.
32954         * lib/rpmatch.c: Include <stdlib.h> first.
32955         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32956         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32958         HAVE_RPMATCH.
32959         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32960         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32961         (Include): Set to <stdlib.h>.
32962         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32963         HAVE_RPMATCH.
32964         * NEWS: Document the change.
32965
32966 2008-04-28  Bruno Haible  <bruno@clisp.org>
32967
32968         Change rpmatch to use nl_langinfo when appropriate.
32969         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32970         (N_): New macro.
32971         (localized_pattern): New function/macro.
32972         (try): Remove match, nomatch arguments. Copy the pattern into safe
32973         memory before caching it.
32974         (rpmatch): Use localized_pattern. Add translator comments.
32975         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32976         Suggested by Eric Blake.
32977         * modules/rpmatch (Depends-on): Add stdbool.
32978
32979 2008-04-28  Eric Blake  <ebb9@byu.net>
32980
32981         Add rawmemchr module, matching glibc.
32982         * modules/string (Makefile.am): New indicator.
32983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32984         * lib/string.in.h (rawmemchr): Declare when appropriate.
32985         * modules/rawmemchr: New file.
32986         * m4/rawmemchr.m4: Likewise.
32987         * lib/rawmemchr.c: Likewise.
32988         * modules/rawmemchr-tests: Likewise.
32989         * tests/test-rawmemchr.c: Likewise.
32990         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32991         module.
32992         * modules/strchrnul (Depends-on): Add rawmemchr.
32993         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32994
32995         Whitespace cleanup.
32996         * tests/test-strchrnul.c: Reindent.
32997         * lib/strchrnul.c: Likewise.
32998
32999         Optimize and test strchrnul.
33000         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
33001         * modules/strchrnul-tests: New file.
33002         * tests/test-strchrnul.c: Likewise.
33003
33004         Remove intprops dependency.
33005         * modules/memchr (Depends-on): Remove intprops.
33006         * modules/memrchr (Depends-on): Likewise.
33007         * modules/memchr2 (Depends-on): Likewise.
33008         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
33009         * lib/memrchr.c (__memrchr): Likewise.
33010         * lib/memrchr2.c (memchr2): Likewise.
33011         Reported by Simon Josefsson.
33012
33013 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33014
33015         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
33016         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33017
33018 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33019
33020         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
33021
33022         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
33023
33024         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
33025
33026         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
33027         declarations.
33028         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
33029
33030         * m4/inet_pton.m4: Don't check for header files.
33031
33032         * m4/inet_ntop.m4: Don't check for header files.
33033
33034 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33035
33036         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
33037         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
33038         trigger for cygwin).
33039         Reported by Bruno Haible  <bruno@clisp.org>.
33040
33041 2008-04-28  Bruno Haible  <bruno@clisp.org>
33042
33043         * doc/posix-functions/strdup.texi: Mention mingw problem.
33044
33045 2008-04-27  Bruno Haible  <bruno@clisp.org>
33046
33047         * modules/stat-time-tests (Depends-on): Add sleep.
33048         * tests/test-stat-time.c (force_unlink): New function.
33049         (cleanup): Use it.
33050         (test_mtime): Remove the ctime related tests.
33051         (test_ctime): New function, containing the ctime related tests.
33052         (main): Call test_ctime, except on native Windows platforms.
33053
33054 2008-04-27  Bruno Haible  <bruno@clisp.org>
33055
33056         * lib/rpmatch.c (rpmatch): Add some comments.
33057         Reported by James Youngman <jay@gnu.org>.
33058
33059 2008-04-27  Bruno Haible  <bruno@clisp.org>
33060
33061         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
33062         quiet NaNs.
33063
33064 2008-04-27  Bruno Haible  <bruno@clisp.org>
33065
33066         Make test-yesno.sh work on mingw.
33067         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
33068         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
33069         (main): Set stdin to binary mode.
33070         * modules/yesno-tests (Depends-on): Add binary-io.
33071
33072 2008-04-27  Bruno Haible  <bruno@clisp.org>
33073
33074         Fix 'isfinite' on x86, x86_64, ia64 platforms.
33075         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
33076         argument that lie outside the IEEE 854 domain.
33077         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
33078         (gl_ISFINITE): Use it.
33079         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
33080
33081 2008-04-27  Bruno Haible  <bruno@clisp.org>
33082
33083         Allow local renaming in config.h.
33084         * lib/memrchr.c (memrchr): Don't undefine outside libc.
33085
33086 2008-04-27  Bruno Haible  <bruno@clisp.org>
33087
33088         * lib/memchr.c (__memchr): Change type of 'i'.
33089         * lib/memchr2.c (memchr2): Likewise.
33090
33091 2008-04-26  Eric Blake  <ebb9@byu.net>
33092         and Bruno Haible  <bruno@clisp.org>
33093
33094         Optimize and test memrchr.
33095         * modules/memrchr (Depends-on): Add intprops.
33096         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
33097         * modules/memrchr-tests: New file.
33098         * tests/test-memrchr.c: New file.
33099
33100 2008-04-26  Bruno Haible  <bruno@clisp.org>
33101
33102         Add tentative support for DragonFly BSD.
33103         * lib/stdio-impl.h: Add macros for DragonFly BSD.
33104         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
33105         fp.
33106         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
33107         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
33108         * lib/fpurge.c (fpurge): Likewise.
33109         * lib/freadable.c (freaadable): Likewise.
33110         * lib/freadahead.c (freadahead): Likewise.
33111         * lib/freading.c (freading): Likewise.
33112         * lib/freadptr.c (freadptr): Likewise.
33113         * lib/freadseek.c (freadptrinc): Likewise.
33114         * lib/fseeko.c (fseeko): Likewise.
33115         * lib/fseterr.c (fseterr): Likewise.
33116         * lib/fwritable.c (fwritable): Likewise.
33117         * lib/fwriting.c (fwriting): Likewise.
33118
33119 2008-04-26  Bruno Haible  <bruno@clisp.org>
33120
33121         * lib/stdio-impl.h: New file.
33122         * lib/fbufmode.c: Include stdio-impl.h.
33123         (fbufmode): Use fp_, remove redundant #defines.
33124         * lib/fflush.c: Include stdio-impl.h.
33125         (clear_ungetc_buffer): Remove redundant #defines.
33126         * lib/fpurge.c: Include stdio-impl.h.
33127         (fpurge): Remove redundant #defines.
33128         * lib/freadable.c: Include stdio-impl.h.
33129         (freadable): Remove redundant #defines.
33130         * lib/freadahead.c: Include stdio-impl.h.
33131         (freadahead): Remove redundant #defines.
33132         * lib/freading.c: Include stdio-impl.h.
33133         (freading): Remove redundant #defines.
33134         * lib/freadptr.c: Include stdio-impl.h.
33135         (freadptr): Remove redundant #defines.
33136         * lib/freadseek.c: Include stdio-impl.h.
33137         (freadptrinc): Remove redundant #defines.
33138         * lib/fseeko.c: Include stdio-impl.h.
33139         (rpl_fseeko): Remove redundant #defines.
33140         * lib/fseterr.c: Include stdio-impl.h.
33141         (fseterr): Remove redundant #defines.
33142         * lib/fwritable.c: Include stdio-impl.h.
33143         (fwritable: Remove redundant #defines.
33144         * lib/fwriting.c: Include stdio-impl.h.
33145         (fwriting): Remove redundant #defines.
33146         * modules/fbufmode (Files): Add lib/stdio-impl.h.
33147         * modules/fflush (Files): Likewise.
33148         * modules/fpurge (Files): Likewise.
33149         * modules/freadable (Files): Likewise.
33150         * modules/freadahead (Files): Likewise.
33151         * modules/freading (Files): Likewise.
33152         * modules/freadptr (Files): Likewise.
33153         * modules/freadseek (Files): Likewise.
33154         * modules/fseeko (Files): Likewise.
33155         * modules/fseterr (Files): Likewise.
33156         * modules/fwritable (Files): Likewise.
33157         * modules/fwriting (Files): Likewise.
33158
33159 2008-04-26  Bruno Haible  <bruno@clisp.org>
33160
33161         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
33162         restore_seek_optimization, update_fpos_cache): New functions, extracted
33163         from rpl_fflush.
33164         (rpl_fflush): Use them.
33165         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
33166         (gl_REPLACE_FFLUSH): Use it.
33167
33168 2008-04-26  Bruno Haible  <bruno@clisp.org>
33169
33170         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
33171         on Solaris.
33172         * tests/test-xstrtoimax.sh: Likewise.
33173         * tests/test-xstrtoumax.sh: Likewise.
33174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33175
33176 2008-04-26  Bruno Haible  <bruno@clisp.org>
33177
33178         * modules/memchr-tests: New file.
33179         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
33180
33181 2008-04-26  Eric Blake  <ebb9@byu.net>
33182             Bruno Haible  <bruno@clisp.org>
33183
33184         * lib/memchr.c: Include intprops.h.
33185         (__memchr): Optimize parallel detection of matching bytes. Rename local
33186         variables. Add explanatory comments.
33187
33188 2008-04-26  Bruno Haible  <bruno@clisp.org>
33189
33190         Fix module 'memchr', broken since 2000-10-28.
33191         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
33192
33193 2008-04-26  Bruno Haible  <bruno@clisp.org>
33194
33195         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
33196         comments.
33197
33198 2008-04-25  Eric Blake  <ebb9@byu.net>
33199
33200         Use native fstatat on cygwin 1.7.0.
33201         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
33202         first.
33203
33204 2008-04-23  Eric Blake  <ebb9@byu.net>
33205
33206         Improve memchr2 performance.
33207         * lib/memchr2.c (memchr2): Further optimize parallel detection of
33208         NUL bytes.
33209         * modules/memchr2 (Depends-on): Use intprops.h.
33210
33211 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33212
33213         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
33214         an inline function instead of a CPP macro.  Patch by Ben Pfaff
33215         <blp@cs.stanford.edu>.
33216
33217 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33218
33219         * lib/arpa_inet.in.h: New file.
33220
33221         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
33222         (Makefile.am): Sed in substitute header file.
33223
33224         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
33225         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
33226
33227         * modules/inet_ntop (configure.ac): Use
33228         gl_ARPA_INET_MODULE_INDICATOR.
33229
33230         * modules/inet_pton (configure.ac): Use
33231         gl_ARPA_INET_MODULE_INDICATOR.
33232
33233 2008-04-22  Jim Meyering  <meyering@redhat.com>
33234
33235         * modules/verify (License): Re-license as LGPLv2+.
33236
33237 2008-04-22  Simon Josefsson  <simon@josefsson.org>
33238
33239         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
33240         parameter to void* as per POSIX standard (MinGW uses char*).
33241
33242 2008-04-21  Bruno Haible  <bruno@clisp.org>
33243
33244         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33245         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33246         Define to replacements if REPLACE_ISWCNTRL is 1.
33247         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
33248         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
33249         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
33250         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
33251         what it fixes.
33252         * doc/posix-functions/iswalpha.texi: Likewise.
33253         * doc/posix-functions/iswblank.texi: Likewise.
33254         * doc/posix-functions/iswcntrl.texi: Likewise.
33255         * doc/posix-functions/iswdigit.texi: Likewise.
33256         * doc/posix-functions/iswgraph.texi: Likewise.
33257         * doc/posix-functions/iswlower.texi: Likewise.
33258         * doc/posix-functions/iswprint.texi: Likewise.
33259         * doc/posix-functions/iswpunct.texi: Likewise.
33260         * doc/posix-functions/iswspace.texi: Likewise.
33261         * doc/posix-functions/iswupper.texi: Likewise.
33262         * doc/posix-functions/iswxdigit.texi: Likewise.
33263         Reported by Alain Guibert.
33264
33265 2008-04-21  Bruno Haible  <bruno@clisp.org>
33266
33267         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
33268         Patch by Alain Guibert.
33269
33270 2008-04-21  Bruno Haible  <bruno@clisp.org>
33271
33272         Fix test failures on mingw.
33273         * tests/test-xstrtol.c (print_no_progname): New function.
33274         (main): Install it in error_print_progname hook.
33275         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
33276         * tests/test-xstrtoimax.sh: Likewise.
33277         * tests/test-xstrtoumax.sh: Likewise.
33278
33279 2008-04-21  Bruno Haible  <bruno@clisp.org>
33280
33281         Fix test failure on mingw.
33282         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
33283
33284 2008-04-21  Bruno Haible  <bruno@clisp.org>
33285
33286         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
33287         Actually assign a value.
33288
33289 2008-04-20  Bruno Haible  <bruno@clisp.org>
33290
33291         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
33292         take 2.
33293         * lib/canonicalize.c (canonicalize_file_name): Elide if the
33294         'canonicalize-lgpl' module is also used.
33295         * lib/canonicalize-lgpl.c: Undo last change.
33296         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
33297
33298 2008-04-20  Bruno Haible  <bruno@clisp.org>
33299
33300         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
33301         config.h. Provide _mkdir based fallback for mingw.
33302         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
33303         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
33304         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
33305         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
33306         rather than defining mkdir in config.h.
33307         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
33308         (gl_SYS_STAT_H_DEFAULTS): New macro.
33309         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
33310         HAVE_IO_H any more.
33311         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
33312         HAVE_DECL_MKDIR and HAVE_IO_H.
33313
33314 2008-04-20  Bruno Haible  <bruno@clisp.org>
33315
33316         * lib/isapipe.c: Port to native Windows platforms.
33317
33318 2008-04-20  Bruno Haible  <bruno@clisp.org>
33319
33320         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33321
33322 2008-04-21  Eric Blake  <ebb9@byu.net>
33323
33324         Work around preprocessors that don't handle UINTMAX_MAX.
33325         * lib/memchr2.c (memchr2): Avoid embedded #if.
33326         Reported by Alain Guibert, fix suggested by Bruno Haible.
33327
33328 2008-04-21  Simon Josefsson  <simon@josefsson.org>
33329
33330         * doc/posix-functions/strftime.texi (strftime): Explain better
33331         Windows incompatibility.  Suggested by Micah Cowan
33332         <micah@cowan.name>.
33333
33334 2008-04-20  Bruno Haible  <bruno@clisp.org>
33335
33336         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
33337         unistr/u8-mblen.
33338
33339 2008-04-20  Bruno Haible  <bruno@clisp.org>
33340
33341         Fix test failure on platforms with non-GNU iconv.
33342         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
33343         (U_TO_U8): Use it, rather than u16_to_u8.
33344         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
33345         units at the end of the input string.
33346         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
33347
33348 2008-04-20  Bruno Haible  <bruno@clisp.org>
33349
33350         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
33351         when the resulting length is 0.
33352         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
33353
33354 2008-04-20  Bruno Haible  <bruno@clisp.org>
33355
33356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
33357         works.
33358         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
33359
33360 2008-04-20  Bruno Haible  <bruno@clisp.org>
33361
33362         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
33363         * modules/tsearch-tests (configure.ac): Test for initstate function.
33364
33365 2008-04-20  Bruno Haible  <bruno@clisp.org>
33366
33367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33368         for nlink_t if missing.
33369         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33370
33371 2008-04-19  Bruno Haible  <bruno@clisp.org>
33372
33373         Work around snprintf bug on Linux libc5.
33374         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33376         gl_SNPRINTF_SIZE1.
33377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33378         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33379         that test failed.
33380         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33381         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33382         * modules/snprintf (Files): Add m4/printf.m4.
33383         * modules/vsnprintf (Files): Likewise.
33384         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33385         * doc/posix-functions/vsnprintf.texi: Likewise.
33386
33387 2008-04-19  Bruno Haible  <bruno@clisp.org>
33388
33389         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33390         from 0.0058 to less than 10^-7.
33391
33392 2008-04-19  Bruno Haible  <bruno@clisp.org>
33393
33394         Fix rounding when a precision is given.
33395         * lib/vasnprintf.c (is_borderline): New function.
33396         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33397         9...9x.
33398         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33399         %e, %g.
33400         * tests/test-vasprintf-posix.c (test_function): Likewise.
33401         * tests/test-snprintf-posix.h (test_function): Likewise.
33402         * tests/test-sprintf-posix.h (test_function): Likewise.
33403         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33404         * tests/test-printf-posix.h (test_function): Likewise.
33405         * tests/test-printf-posix.output: Update.
33406         Reported by John Darrington <john@darrington.wattle.id.au> via
33407         Ben Pfaff <blp@cs.stanford.edu>.
33408
33409 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33410
33411         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33412         Suggested by Bruno Haible <bruno@clisp.org>.
33413
33414 2008-04-17  Bruno Haible  <bruno@clisp.org>
33415
33416         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33417         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33418         implementation.
33419         Patch by Bruce Merry <bmerry@gmail.com>.
33420
33421 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33422
33423         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33424         doesn't work under Windows.
33425
33426 2008-04-16  Bruno Haible  <bruno@clisp.org>
33427
33428         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33429         New macros.
33430         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33431         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33432         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33433         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33434         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33435         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33436         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33437         macros.
33438         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33439         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33440         Northern Sotho, Uighur.
33441
33442 2008-04-16  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33445         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33446         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33447         Reported by Daniel Bergström <daniel@octocode.com>.
33448
33449 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33450             Bruno Haible  <bruno@clisp.org>
33451
33452         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33453         function.
33454         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33455         New functions, mostly extracted from gl_locale_name_default.
33456         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33457
33458 2008-04-16  Eric Blake  <ebb9@byu.net>
33459
33460         Adjust strtod detection to catch glibc 2.7 bug.
33461         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33462         Reported by John Gatewood Ham.
33463
33464 2008-04-16  Bruno Haible  <bruno@clisp.org>
33465
33466         Add tentative support for Linux libc5.
33467         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33468         * lib/fpurge.c (fpurge): Likewise.
33469         * lib/freadable.c (freadable): Likewise.
33470         * lib/freadahead.c (freadahead): Likewise.
33471         * lib/freading.c (freading): Likewise.
33472         * lib/freadptr.c (freadptr): Likewise.
33473         * lib/freadseek.c (freadptrinc): Likewise.
33474         * lib/fseeko.c (rpl_fseeko): Likewise.
33475         * lib/fseterr.c (fseterr): Likewise.
33476         * lib/fwritable.c (fwritable): Likewise.
33477         * lib/fwriting.c (fwriting): Likewise.
33478         Reported by Alain Guibert <alguibert+bts@free.fr>.
33479
33480 2008-04-15  Bruno Haible  <bruno@clisp.org>
33481
33482         * modules/mathl (configure.ac): Define module indicator.
33483
33484 2008-04-15  Bruno Haible  <bruno@clisp.org>
33485
33486         * lib/logl.c (logl): Remove unused variables.
33487
33488 2008-04-15  Bruno Haible  <bruno@clisp.org>
33489
33490         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33491         fails.
33492
33493 2008-04-15  Bruno Haible  <bruno@clisp.org>
33494
33495         * lib/trim.c (trim2): Fix argument of isspace() macro.
33496
33497 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33498
33499         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33500         to 0.
33501         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33502
33503 2008-04-14  Bruno Haible  <bruno@clisp.org>
33504
33505         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33506         AC_LANG_PROGRAM argument.
33507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33508         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33510         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33511         * m4/math_h.m4 (gl_MATH_H): Likewise.
33512         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33514         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33515         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33516         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33517         * m4/regex.m4 (gl_REGEX): Likewise.
33518         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33519         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33522         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33523         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33525         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33526
33527 2008-04-14  Jim Meyering  <meyering@redhat.com>
33528
33529         test-strtod: fix typos: s/abs/fabs/
33530         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33531
33532 2008-04-13  Bruno Haible  <bruno@clisp.org>
33533
33534         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33535         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33536         module is also used and while not building the reloc-wrapper.
33537
33538 2008-04-13  Bruno Haible  <bruno@clisp.org>
33539
33540         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33541
33542 2008-04-13  Bruno Haible  <bruno@clisp.org>
33543
33544         Fix AIX compilation failure introduced on 2008-04-02.
33545         * tests/test-frexp.c (exp): Undefine before redefining.
33546         * tests/test-frexpl.c (exp): Likewise.
33547
33548 2008-04-13  Bruno Haible  <bruno@clisp.org>
33549
33550         Work around a HP-UX stdio bug.
33551         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33552         * tests/test-ftello.c (main): Likewise.
33553         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33554         * doc/posix-functions/ftello.texi: Likewise.
33555
33556 2008-04-13  Bruno Haible  <bruno@clisp.org>
33557
33558         Make test-signbit pass on HP-UX/hppa.
33559         * tests/test-signbit.c (minus_zerol): New variable.
33560         (test_signbitl): Use it.
33561
33562 2008-04-13  Bruno Haible  <bruno@clisp.org>
33563
33564         Make truncl work on OSF/1 4.0.
33565         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33566         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33567         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33569         HAVE_DECL_TRUNCL.
33570         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33571         HAVE_DECL_TRUNCL.
33572         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33573
33574 2008-04-13  Bruno Haible  <bruno@clisp.org>
33575
33576         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33577
33578 2008-04-13  Bruno Haible  <bruno@clisp.org>
33579
33580         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33581         expression, so as to avoid HP-UX 11 cc compiler bug.
33582
33583 2008-04-13  Bruno Haible  <bruno@clisp.org>
33584
33585         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33586
33587 2008-04-13  Bruno Haible  <bruno@clisp.org>
33588
33589         * lib/git-merge-changelog.c: Remove empty declaration outside of
33590         functions.
33591
33592 2008-04-13  Bruno Haible  <bruno@clisp.org>
33593
33594         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33595
33596 2008-04-13  Bruno Haible  <bruno@clisp.org>
33597
33598         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33599         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33601         also if it exists but lacks definitions of the SHUT_* macros.
33602         * modules/sys_socket (Description): Update.
33603         Reported by Elbert Pol <e.pol@chello.nl>.
33604
33605 2008-04-13  Bruno Haible  <bruno@clisp.org>
33606
33607         * lib/localcharset.c (OS2): Don't redefine if already defined.
33608         Reported by Elbert Pol <e.pol@chello.nl>.
33609
33610 2008-04-13  Bruno Haible  <bruno@clisp.org>
33611
33612         * lib/binary-io.h [__EMX__]: Include <io.h>.
33613         Reported by Elbert Pol <e.pol@chello.nl>.
33614
33615 2008-04-12  Bruno Haible  <bruno@clisp.org>
33616
33617         * lib/fpucw.h: Enable the definitions also for x86_64.
33618         Needed for NetBSD/x86_64.
33619         Reported by Thomas Klausner <tk@giga.or.at>.
33620
33621 2008-04-12  Bruno Haible  <bruno@clisp.org>
33622
33623         * tests/test-strtod.c: Include isnand.h.
33624         (main): Use isnand instead of isnan.
33625         Reported by Jim Meyering.
33626
33627 2008-04-12  Bruno Haible  <bruno@clisp.org>
33628
33629         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33630         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33631
33632 2008-04-12  Jim Meyering  <meyering@redhat.com>
33633
33634         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33635
33636 2008-04-12  Bruno Haible  <bruno@clisp.org>
33637
33638         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33639         Reported by Elbert Pol <e.pol@chello.nl>.
33640
33641 2008-04-12  Eric Blake  <ebb9@byu.net>
33642
33643         Work around Solaris 10 math.h bug.
33644         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33645         (gl_MATH_H_DEFAULTS): Set up default.
33646         * modules/math (Makefile.am): Replace new indicators.
33647         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
33648         * tests/test-math.c (main): Test this.
33649         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
33650         * doc/posix-headers/math.texi (math.h): Mention bug.
33651         Reported by Nelson H. F. Beebe and Jim Meyering.
33652
33653 2008-04-11  Bruno Haible  <bruno@clisp.org>
33654
33655         Adapt to future versions of Apple GCC.
33656         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
33657         Reported by Peter O'Gorman <peter@pogma.com>.
33658
33659 2008-04-11  Bruno Haible  <bruno@clisp.org>
33660
33661         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
33662
33663 2008-04-11  Bruno Haible  <bruno@clisp.org>
33664
33665         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
33666
33667         * modules/getaddrinfo-tests (Makefile.am): Define
33668         test_getaddrinfo_LDADD.
33669
33670 2008-04-11  Bruno Haible  <bruno@clisp.org>
33671
33672         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
33673         (init): Fix syntax error.
33674         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
33675         is declared.
33676
33677 2008-04-11  Bruno Haible  <bruno@clisp.org>
33678
33679         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
33680         * modules/glob (Depends-on): Add stdbool.
33681
33682 2008-04-11  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/trim.c: Include <string.h>.
33685
33686 2008-04-11  Eric Blake  <ebb9@byu.net>
33687
33688         Avoid compile failure on OS/2.
33689         * lib/regex_internal.h (internal_function): Disable optimization
33690         on OS/2 (__EMX__), where it caused compiler error.
33691         Reported by Elbert Pol.
33692
33693 2008-04-11  Bruno Haible  <bruno@clisp.org>
33694
33695         Flush the standard error stream before aborting. Needed on mingw.
33696         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
33697         * tests/test-array_list.c (ASSERT): Likewise.
33698         * tests/test-array_oset.c (ASSERT): Likewise.
33699         * tests/test-avltree_list.c (ASSERT): Likewise.
33700         * tests/test-avltree_oset.c (ASSERT): Likewise.
33701         * tests/test-avltreehash_list.c (ASSERT): Likewise.
33702         * tests/test-binary-io.c (ASSERT): Likewise.
33703         * tests/test-byteswap.c (ASSERT): Likewise.
33704         * tests/test-c-ctype.c (ASSERT): Likewise.
33705         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
33706         * tests/test-c-strcasestr.c (ASSERT): Likewise.
33707         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
33708         * tests/test-c-strstr.c (ASSERT): Likewise.
33709         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
33710         * tests/test-canonicalize.c (ASSERT): Likewise.
33711         * tests/test-carray_list.c (ASSERT): Likewise.
33712         * tests/test-ceilf1.c (ASSERT): Likewise.
33713         * tests/test-ceilf2.c (ASSERT): Likewise.
33714         * tests/test-ceill.c (ASSERT): Likewise.
33715         * tests/test-count-one-bits.c (ASSERT): Likewise.
33716         * tests/test-fbufmode.c (ASSERT): Likewise.
33717         * tests/test-fflush2.c (ASSERT): Likewise.
33718         * tests/test-floorf1.c (ASSERT): Likewise.
33719         * tests/test-floorf2.c (ASSERT): Likewise.
33720         * tests/test-floorl.c (ASSERT): Likewise.
33721         * tests/test-fopen.c (ASSERT): Likewise.
33722         * tests/test-fpending.c (ASSERT): Likewise.
33723         * tests/test-fprintf-posix.c (ASSERT): Likewise.
33724         * tests/test-fpurge.c (ASSERT): Likewise.
33725         * tests/test-freadable.c (ASSERT): Likewise.
33726         * tests/test-freadahead.c (ASSERT): Likewise.
33727         * tests/test-freading.c (ASSERT): Likewise.
33728         * tests/test-freadptr.c (ASSERT): Likewise.
33729         * tests/test-freadptr2.c (ASSERT): Likewise.
33730         * tests/test-freadseek.c (ASSERT): Likewise.
33731         * tests/test-freopen.c (ASSERT): Likewise.
33732         * tests/test-frexp.c (ASSERT): Likewise.
33733         * tests/test-frexpl.c (ASSERT): Likewise.
33734         * tests/test-fseek.c (ASSERT): Likewise.
33735         * tests/test-fseeko.c (ASSERT): Likewise.
33736         * tests/test-fstrcmp.c (ASSERT): Likewise.
33737         * tests/test-ftell.c (ASSERT): Likewise.
33738         * tests/test-ftello.c (ASSERT): Likewise.
33739         * tests/test-func.c (ASSERT): Likewise.
33740         * tests/test-fwritable.c (ASSERT): Likewise.
33741         * tests/test-fwriting.c (ASSERT): Likewise.
33742         * tests/test-getdelim.c (ASSERT): Likewise.
33743         * tests/test-getline.c (ASSERT): Likewise.
33744         * tests/test-i-ring.c (ASSERT): Likewise.
33745         * tests/test-iconv-utf.c (ASSERT): Likewise.
33746         * tests/test-iconv.c (ASSERT): Likewise.
33747         * tests/test-isfinite.c (ASSERT): Likewise.
33748         * tests/test-isnand.c (ASSERT): Likewise.
33749         * tests/test-isnanf.c (ASSERT): Likewise.
33750         * tests/test-isnanl.h (ASSERT): Likewise.
33751         * tests/test-ldexpl.c (ASSERT): Likewise.
33752         * tests/test-linked_list.c (ASSERT): Likewise.
33753         * tests/test-linkedhash_list.c (ASSERT): Likewise.
33754         * tests/test-localename.c (ASSERT): Likewise.
33755         * tests/test-lseek.c (ASSERT): Likewise.
33756         * tests/test-mbscasecmp.c (ASSERT): Likewise.
33757         * tests/test-mbscasestr1.c (ASSERT): Likewise.
33758         * tests/test-mbscasestr2.c (ASSERT): Likewise.
33759         * tests/test-mbscasestr3.c (ASSERT): Likewise.
33760         * tests/test-mbscasestr4.c (ASSERT): Likewise.
33761         * tests/test-mbschr.c (ASSERT): Likewise.
33762         * tests/test-mbscspn.c (ASSERT): Likewise.
33763         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
33764         * tests/test-mbspbrk.c (ASSERT): Likewise.
33765         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
33766         * tests/test-mbsrchr.c (ASSERT): Likewise.
33767         * tests/test-mbsspn.c (ASSERT): Likewise.
33768         * tests/test-mbsstr1.c (ASSERT): Likewise.
33769         * tests/test-mbsstr2.c (ASSERT): Likewise.
33770         * tests/test-mbsstr3.c (ASSERT): Likewise.
33771         * tests/test-memchr2.c (ASSERT): Likewise.
33772         * tests/test-memmem.c (ASSERT): Likewise.
33773         * tests/test-open.c (ASSERT): Likewise.
33774         * tests/test-printf-frexp.c (ASSERT): Likewise.
33775         * tests/test-printf-frexpl.c (ASSERT): Likewise.
33776         * tests/test-printf-posix.c (ASSERT): Likewise.
33777         * tests/test-quotearg.c (ASSERT): Likewise.
33778         * tests/test-rbtree_list.c (ASSERT): Likewise.
33779         * tests/test-rbtree_oset.c (ASSERT): Likewise.
33780         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
33781         * tests/test-round1.c (ASSERT): Likewise.
33782         * tests/test-roundf1.c (ASSERT): Likewise.
33783         * tests/test-roundl.c (ASSERT): Likewise.
33784         * tests/test-signbit.c (ASSERT): Likewise.
33785         * tests/test-sleep.c (ASSERT): Likewise.
33786         * tests/test-snprintf-posix.c (ASSERT): Likewise.
33787         * tests/test-snprintf.c (ASSERT): Likewise.
33788         * tests/test-sprintf-posix.c (ASSERT): Likewise.
33789         * tests/test-stat-time.c (ASSERT): Likewise.
33790         * tests/test-strcasestr.c (ASSERT): Likewise.
33791         * tests/test-strerror.c (ASSERT): Likewise.
33792         * tests/test-striconv.c (ASSERT): Likewise.
33793         * tests/test-striconveh.c (ASSERT): Likewise.
33794         * tests/test-striconveha.c (ASSERT): Likewise.
33795         * tests/test-strsignal.c (ASSERT): Likewise.
33796         * tests/test-strstr.c (ASSERT): Likewise.
33797         * tests/test-strtod.c (ASSERT): Likewise.
33798         * tests/test-trunc1.c (ASSERT): Likewise.
33799         * tests/test-trunc2.c (ASSERT): Likewise.
33800         * tests/test-truncf1.c (ASSERT): Likewise.
33801         * tests/test-truncf2.c (ASSERT): Likewise.
33802         * tests/test-truncl.c (ASSERT): Likewise.
33803         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
33804         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
33805         * tests/test-vasnprintf.c (ASSERT): Likewise.
33806         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
33807         * tests/test-vasprintf.c (ASSERT): Likewise.
33808         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
33809         * tests/test-vprintf-posix.c (ASSERT): Likewise.
33810         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33811         * tests/test-vsnprintf.c (ASSERT): Likewise.
33812         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33813         * tests/test-wcwidth.c (ASSERT): Likewise.
33814         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33815         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33816         * tests/test-xvasprintf.c (ASSERT): Likewise.
33817         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33818         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33819         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33820         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33821         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33822         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33823         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33824         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33825         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33826         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33827         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33828         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33829         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33830         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33831         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33832         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33833         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33834         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33835         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33836         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33837         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33838         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33839         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33840         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33841         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33842         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33843         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33844         * tests/unictype/test-combining.c (ASSERT): Likewise.
33845         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33846         * tests/unictype/test-digit.c (ASSERT): Likewise.
33847         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33848         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33849         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33850         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33851         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33852         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33853         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33854         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33855         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33856         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33857         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33858         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33859         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33860         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33861         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33862         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33863         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33864         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33865         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33866         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33867         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33868         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33869         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33870         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33871         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33872         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33873         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33874         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33875         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33876         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33877         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33878         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33879         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33880         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33881         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33882         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33883         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33884         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33885         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33886         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33887         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33888         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33889         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33890         Reported by Eric Blake.
33891
33892 2008-04-11  Bruno Haible  <bruno@clisp.org>
33893
33894         * lib/wchar.in.h: Tweak comment.
33895
33896 2008-04-11  Bruno Haible  <bruno@clisp.org>
33897
33898         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33899         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33900         gl_COMMON.
33901         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33902
33903 2008-04-11  Bruno Haible  <bruno@clisp.org>
33904
33905         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33906
33907 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33908
33909         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33910         of attempting to use non-existing /dev/*random.  Based on patch
33911         from Adam Strzelecki <ono@java.pl> in
33912         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33913
33914 2008-04-08  Bruno Haible  <bruno@clisp.org>
33915
33916         Add tentative support for emx+gcc.
33917         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33918         * lib/fpurge.c (fpurge): Likewise.
33919         * lib/freadable.c (freadable): Likewise.
33920         * lib/freadahead.c (freadahead): Likewise.
33921         * lib/freading.c (freading): Likewise.
33922         * lib/freadptr.c (freadptr): Likewise.
33923         * lib/freadseek.c (freadptrinc): Likewise.
33924         * lib/fseeko.c (rpl_fseeko): Likewise.
33925         * lib/fseterr.c (fseterr): Likewise.
33926         * lib/fwritable.c (fwritable): Likewise.
33927         * lib/fwriting.c (fwriting): Likewise.
33928         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33929
33930 2008-04-09  Eric Blake  <ebb9@byu.net>
33931
33932         Avoid some autoconf warnings.
33933         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33934         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33935         * m4/afs.m4 (gl_AFS): Likewise.
33936         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33937         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33938         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33939         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33940         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33941         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33942         (AC_CHECK_DECLS_ONCE): Likewise.
33943         Rename file...
33944         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33945         gnulib-tool requires autoconf 2.59 or better.
33946         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33947
33948 2008-04-08  Eric Blake  <ebb9@byu.net>
33949
33950         Use 'git describe --match' if present (added in git 1.5.5).
33951         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33952         if possible.
33953
33954 2008-04-08  Bruno Haible  <bruno@clisp.org>
33955
33956         Add tentative support for OpenServer.
33957         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33958         _ptr, _cnt.
33959         * lib/fpurge.c (fpurge): Likewise.
33960         * lib/freadable.c (freadable): Likewise.
33961         * lib/freadahead.c (freadahead): Likewise.
33962         * lib/freading.c (freading): Likewise.
33963         * lib/freadptr.c (freadptr): Likewise.
33964         * lib/freadseek.c (freadptrinc): Likewise.
33965         * lib/fseeko.c (rpl_fseeko): Likewise.
33966         * lib/fseterr.c (fseterr): Likewise.
33967         * lib/fwritable.c (fwritable): Likewise.
33968         * lib/fwriting.c (fwriting): Likewise.
33969         Reported by Roger Cornelius <rac@tenzing.org> and
33970         Brian K. White <brian@aljex.com>.
33971
33972 2008-04-06  Jim Meyering  <meyering@redhat.com>
33973
33974         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33975
33976 2008-04-06  Bruno Haible  <bruno@clisp.org>
33977
33978         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33979         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33980         * tests/test-printf-posix.sh: Likewise.
33981         * tests/test-vfprintf-posix.sh: Likewise.
33982         * tests/test-vprintf-posix.sh: Likewise.
33983         * tests/test-xprintf-posix.sh: Likewise.
33984
33985 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33986
33987         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33988         hide error from 'ls', needed on OS/2.
33989         Report by Elbert Pol <elbert.pol@gmail.com>.
33990
33991 2008-04-04  Eric Blake  <ebb9@byu.net>
33992
33993         Make test-fseeko.c failures meaningful.
33994         * tests/test-fseeko.c: Print line number on failure.
33995         * tests/test-fseek.c: Likewise.
33996         Reported by Nelson H. F. Beebe.
33997
33998         Improve strtod bug detection check.
33999         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
34000         required for Solaris 10.
34001         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
34002
34003 2008-04-04  Bruno Haible  <bruno@clisp.org>
34004
34005         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
34006         by m4/setenv.m4.
34007
34008 2008-04-03  Eric Blake  <ebb9@byu.net>
34009
34010         Ensure sane .version contents.
34011         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
34012         version string.
34013         * build-aux/git-version-gen: Improve documentation.
34014
34015         Make GNU make output nicer.
34016         * top/GNUmakefile [!_have-Makefile]: Add dependency on
34017         MAKECMDGOALS to enforce message for all command line targets.  Set
34018         srcdir for use in maint.mk.
34019
34020         Another maintainer tweak.
34021         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
34022         a target that regenerates version.
34023
34024 2008-04-03  Jim Meyering  <meyering@redhat.com>
34025
34026         vc-list-files: don't cause coreutils "make po-check" failure
34027         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
34028
34029 2008-04-03  Eric Blake  <ebb9@byu.net>
34030
34031         Allow VPATH usage of vc-list-files.
34032         * build-aux/vc-list-files (scriptversion): Add timestamp.
34033         (options): Add --help, --version, -C.
34034         (CVS): Support installed cvsu.
34035
34036 2008-04-02  Bruno Haible  <bruno@clisp.org>
34037
34038         Avoid some "statement with no effect" warnings from gcc.
34039         * tests/test-wctype.c (main): Explicitly ignore unused values.
34040         Reported by Jim Meyering.
34041
34042 2008-04-02  Jim Meyering  <meyering@redhat.com>
34043
34044         Avoid some warnings from "gcc -Wshadow".
34045         * tests/test-frexp.c (exp): Define to a different identifier.
34046         * tests/test-frexpl.c (exp): Likewise.
34047
34048 2008-04-03  Jim Meyering  <meyering@redhat.com>
34049
34050         bootstrap: remove dangling *.[ch] symlinks from lib
34051         * build-aux/bootstrap [dangling symlink removal]: Move find's
34052         -depth option to precede all others, to avoid a warning.
34053         Remove *.[ch] files too, and from "$source_base" (usually lib/).
34054
34055 2008-04-02  Bruno Haible  <bruno@clisp.org>
34056
34057         Avoid some warnings from "gcc -Wshadow".
34058         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
34059         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
34060         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
34061         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
34062         Reported by Jim Meyering.
34063
34064 2008-04-01  Bruno Haible  <bruno@clisp.org>
34065
34066         Fix test to work on IRIX 6.5 with cc.
34067         * tests/test-math.c (numeric_equal): New function.
34068         (main): Use it.
34069
34070 2008-04-01  Bruno Haible  <bruno@clisp.org>
34071
34072         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
34073
34074 2008-04-01  Bruno Haible  <bruno@clisp.org>
34075
34076         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
34077         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34078         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
34079         (Depends-on): Remove math.
34080
34081         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
34082         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34083         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
34084         (Depends-on): Remove math.
34085
34086         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
34087         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34088         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
34089         (Depends-on): Remove math.
34090         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
34091         (Depends-on): Remove math.
34092
34093         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
34094         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34095         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
34096         (Depends-on): Remove math.
34097         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
34098         (Depends-on): Remove math.
34099
34100         * tests/test-round1.c: Include nan.h.
34101         (main): Use NaNd instead of NAN.
34102         * modules/round-tests (Files): Add tests/nan.h.
34103
34104         * tests/test-trunc1.c: Include nan.h.
34105         (main): Use NaNd instead of NAN.
34106         * modules/trunc-tests (Files): Add tests/nan.h.
34107
34108         * tests/test-roundf1.c: Include nan.h.
34109         (main): Use NaNf instead of NAN.
34110         * modules/roundf-tests (Files): Add tests/nan.h.
34111
34112         * tests/test-truncf1.c: Include nan.h.
34113         (main): Use NaNf instead of NAN.
34114         * modules/truncf-tests (Files): Add tests/nan.h.
34115
34116         * tests/test-ceilf1.c: Include nan.h.
34117         (main): Use NaNf instead of NAN.
34118         * modules/ceilf-tests (Files): Add tests/nan.h.
34119
34120         * tests/test-floorf1.c: Include nan.h.
34121         (main): Use NaNf instead of NAN.
34122         * modules/floorf-tests (Files): Add tests/nan.h.
34123
34124         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
34125         (main): Use NaNf instead of NAN.
34126         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
34127
34128         * tests/test-isnand.c: Include nan.h instead of <math.h>.
34129         (main): Use NaNd instead of NAN.
34130         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
34131
34132         * tests/test-frexp.c: Include nan.h.
34133         (main): Use NaNd instead of NAN.
34134         * modules/frexp-tests (Files): Add tests/nan.h.
34135
34136         * lib/isnan.c: Don't include <math.h>.
34137         (FUNC): Don't use NAN macro.
34138         * modules/isnand-nolibm (Depends-on): Remove math.
34139         * modules/isnanf-nolibm (Depends-on): Remove math.
34140         * modules/isnanl (Depends-on): Remove math.
34141         * modules/isnanl-nolibm (Depends-on): Remove math.
34142
34143         * tests/nan.h: New file.
34144
34145 2008-04-01  Eric Blake  <ebb9@byu.net>
34146
34147         Fix typos.
34148         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
34149         values to be the right type.
34150
34151         For now, cater to gnulib strtod inaccuracies.
34152         * tests/test-strtod.c (main): Allow 1-ulp error on expected
34153         fractional results.  While not as nice from a QoI perspective, it
34154         is a quicker patch than correctly implementing decimal to binary
34155         rounding.
34156
34157 2008-03-31  Eric Blake  <ebb9@byu.net>
34158
34159         Guarantee a definition of NAN.
34160         * lib/math.in.h (NAN): Define if missing.
34161         * tests/test-math.c (main): Test it.
34162         * doc/posix-headers/math.texi (math.h): Document this.
34163         * lib/isnan.c (rpl_isnand): Use it.
34164         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
34165         * tests/test-floorf1.c (NaN): Likewise.
34166         * tests/test-frexp.c (NaN): Likewise.
34167         * tests/test-isnand.c (NaN): Likewise.
34168         * tests/test-isnanf.c (NaN): Likewise.
34169         * tests/test-round1.c (NaN): Likewise.
34170         * tests/test-roundf1.c (NaN): Likewise.
34171         * tests/test-snprintf-posix.h (NaN): Likewise.
34172         * tests/test-sprintf-posix.h (NaN): Likewise.
34173         * tests/test-trunc1.c (NaN): Likewise.
34174         * tests/test-truncf1.c (NaN): Likewise.
34175         * tests/test-vasnprintf-posix.c (NaN): Likewise.
34176         * tests/test-vasprintf-posix.c (NaN): Likewise.
34177         * modules/isnand-nolibm (Depends-on): Add math.
34178         * modules/isnanf-nolibm (Depends-on): Likewise.
34179         * modules/isnanl (Depends-on): Likewise.
34180         * modules/isnanl-nolibm (Depends-on): Likewise.
34181         * modules/snprintf-posix-tests (Depends-on): Likewise.
34182         * modules/sprintf-posix-tests (Depends-on): Likewise.
34183         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
34184         * modules/vsprintf-posix-tests (Depends-on): Likewise.
34185         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
34186         * modules/vasprintf-posix-tests (Depends-on): Likewise.
34187
34188 2008-03-31  Bruno Haible  <bruno@clisp.org>
34189
34190         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
34191         * doc/posix-functions/strtod.texi: Likewise.
34192
34193 2008-03-31  Bruno Haible  <bruno@clisp.org>
34194
34195         * tests/test-strtod.c (main): Don't use C99 syntax.
34196
34197 2008-03-31  Bruno Haible  <bruno@clisp.org>
34198
34199         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
34200         Reported by Eric Blake.
34201
34202 2008-03-31  Jim Meyering  <meyering@redhat.com>
34203
34204         Don't compare actual signbit return values.
34205         * tests/test-strtod.c (main): Rather, compare only their
34206         zero/non-zero nature.
34207
34208 2008-03-31  Eric Blake  <ebb9@byu.net>
34209
34210         More strtod documentation.
34211         * doc/posix-functions/strtod.texi (strtod): Interpret more test
34212         failures as distinct bugs.
34213
34214 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34215
34216         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
34217         Problem reported by Erik Benada in
34218         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
34219
34220 2008-03-30  Bruno Haible  <bruno@clisp.org>
34221
34222         * tests/test-strtod.c: Add comments about which assertion fails on which
34223         platform.
34224         * doc/posix-functions/strtod.texi: Add info about many more platforms.
34225
34226 2008-03-30  Eric Blake  <ebb9@byu.net>
34227
34228         Test signbit behavior on zeros.
34229         * tests/test-signbit.c (test_signbitf): Add tests for zero.
34230         (test_signbitd, test_signbitl): Likewise.
34231
34232         More strtod touchups.
34233         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
34234         sign of negative underflow, for now.  Use .5, not .1.
34235         * doc/posix-functions/strtod.texi (strtod): Mention these
34236         limitations.
34237         Reported by Jim Meyering.
34238
34239 2008-03-30  Bruno Haible  <bruno@clisp.org>
34240
34241         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
34242         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
34243
34244 2008-03-30  Bruno Haible  <bruno@clisp.org>
34245
34246         Avoid failure when attempting to return empty iconv results on some
34247         platforms.
34248         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
34249         allocation, don't report ENOMEM when the resulting string is empty.
34250
34251 2008-03-30  Bruno Haible  <bruno@clisp.org>
34252
34253         Fix buffer overrun.
34254         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
34255         Don't consider the width for tmp_length. Check count against tmp_length
34256         before doing the padding. Ensure enough allocation during padding.
34257
34258 2008-03-30  Eric Blake  <ebb9@byu.net>
34259
34260         strtod touchups.
34261         * lib/strtod.c (strtod): Avoid compiler warnings.
34262         Reported by Jim Meyering.
34263
34264 2008-03-30  Bruno Haible  <bruno@clisp.org>
34265
34266         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
34267         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
34268         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
34269         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
34270         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
34271         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
34272         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
34273         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
34274
34275         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
34276         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
34277         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
34278         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
34279         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
34280         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
34281         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
34282         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
34283
34284         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
34285         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
34286         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
34287         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
34288         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
34289         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
34290         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
34291         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
34292
34293         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
34294         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
34295
34296         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
34297         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
34298
34299         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
34300         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
34301
34302         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
34303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
34304         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
34305
34306         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
34307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
34308         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
34309
34310         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
34311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
34312         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
34313
34314         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
34315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
34316         * modules/vasprintf (Depends-on): Add EOVERFLOW.
34317
34318         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
34319         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
34320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
34321         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
34322         (Depends-on): Add EOVERFLOW.
34323         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
34324         (Depends-on): Add EOVERFLOW.
34325         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34326         (Depends-on): Add EOVERFLOW.
34327         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34328         (Depends-on): Add EOVERFLOW.
34329         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34330         (Depends-on): Add EOVERFLOW.
34331         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34332         (Depends-on): Add EOVERFLOW.
34333         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34334         (Depends-on): Add EOVERFLOW.
34335         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34336         (Depends-on): Add EOVERFLOW.
34337
34338         * lib/sprintf.c (EOVERFLOW): Remove fallback.
34339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
34340         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
34341
34342         * lib/snprintf.c (EOVERFLOW): Remove fallback.
34343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
34344         * modules/snprintf (Depends-on): Add EOVERFLOW.
34345
34346         * lib/poll.c (EOVERFLOW): Remove fallback.
34347         * modules/poll (Depends-on): Add EOVERFLOW.
34348
34349         * lib/getugroups.c (EOVERFLOW): Remove fallback.
34350         * modules/getugroups (Depends-on): Add EOVERFLOW.
34351
34352         * lib/getdelim.c (EOVERFLOW): Remove fallback.
34353         * modules/getdelim (Depends-on): Add EOVERFLOW.
34354
34355         * lib/ftell.c (EOVERFLOW): Remove fallback.
34356         * modules/ftell (Depends-on): Add EOVERFLOW.
34357
34358         * lib/fprintf.c (EOVERFLOW): Remove fallback.
34359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
34360         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
34361
34362         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
34363
34364         * modules/EOVERFLOW-tests: New file.
34365         * tests/test-EOVERFLOW.c: New file.
34366
34367         * modules/EOVERFLOW: New file.
34368         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34369
34370 2008-03-30  Bruno Haible  <bruno@clisp.org>
34371
34372         Fix bug introduced on 2007-06-10.
34373         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34374         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34375
34376 2008-03-30  Bruno Haible  <bruno@clisp.org>
34377
34378         Improve freadseek's efficiency after ungetc.
34379         * lib/freadseek.c: Include freadahead.h.
34380         (freadptrinc): New function, extracted from freadseek.
34381         (freadseek): Use it in a loop. Use freadahead to determine the number
34382         of loop iterations.
34383         * modules/freadseek (Depends-on): Add freadahead.
34384         (configure.ac): Require AC_C_INLINE.
34385
34386 2008-03-30  Bruno Haible  <bruno@clisp.org>
34387
34388         * lib/freadseek.c (freadseek): Don't ignore the return value of
34389         freadptr.
34390
34391 2008-03-29  Eric Blake  <ebb9@byu.net>
34392
34393         Add hex float support.
34394         * modules/strtod (Depends-on): Add c-ctype.
34395         (Link): Mention POW_LIB.
34396         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34397         whitespace between 'e' and exponent.
34398         * tests/test-strtod.c (main): Enable hex float tests.
34399         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34400         now provides.
34401
34402         Document various strtod bugs, with some fixes.
34403         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34404         "-0x", "inf", "nan", and hex constants.
34405         * doc/posix-functions/atof.texi (atof): Likewise.
34406         * modules/stdlib (Makefile.am): Support strtod.
34407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34408         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34409         detect additional strtod bugs.
34410         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34411         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34412         bool where appropriate.  Parse 'inf' and 'nan'.
34413         * tests/test-strtod.c: New file.
34414         * modules/strtod (Depends-on): Add stdbool, stdlib.
34415         (configure.ac): Turn on module indicator.
34416         * modules/strtod-tests: New module.
34417
34418 2008-03-29  Eric Blake  <ebb9@byu.net>
34419
34420         Fix ftell on mingw.
34421         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34422         * modules/ftell-tests (Depends-on): Add binary-io.
34423         * modules/ftello-tests (Depends-on): Likewise.
34424         * tests/test-ftell.c (main): Enhance test to cover behavior after
34425         ungetc.  Enforce binary mode.
34426         * tests/test-ftello.c (main): Likewise.
34427
34428         Pass test-freadseek on cygwin.
34429         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34430         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34431         ungetc buffer.
34432
34433         * tests/test-fflush2.c (main): Fix typo.
34434
34435 2008-03-29  Bruno Haible  <bruno@clisp.org>
34436
34437         * tests/test-fflush2.c (main): Temporarily disable the contents of
34438         this test.
34439         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34440         Reported by Eric Blake.
34441
34442 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34443
34444         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34445         (GC_SHA224_DIGEST_SIZE): Add.
34446
34447         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34448         (gc_hash_digest_length): Likewise.
34449         (gc_hash_buffer): Likewise.
34450
34451 2008-03-25  Bruno Haible  <bruno@clisp.org>
34452
34453         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34454         detail which gettext release to use.
34455         Reported by Simon Josefsson.
34456
34457 2008-03-26  Jim Meyering  <meyering@redhat.com>
34458
34459         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34460         * modules/gnumakefile (clean-GNUmakefile): Also, use
34461         test ... && ... || : syntax rather than if-then ... fi.
34462
34463         gnumakefile: Don't double-quote-expand $(VPATH) value.
34464         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34465
34466 2008-03-24  Eric Blake  <ebb9@byu.net>
34467
34468         Alter GNUmakefile to install into top directory.
34469         * modules/maintainer-makefile: Split, and add dependency...
34470         * modules/gnumakefile: to this new module.
34471         * build-aux/GNUmakefile: Move...
34472         * top/GNUmakefile: ...here.
34473         * build-aux/maint.mk: Move...
34474         * top/maint.mk: ...here.
34475         * MODULES.html.sh (Support for maintaining...): Document new
34476         module.
34477
34478 2008-03-23  Bruno Haible  <bruno@clisp.org>
34479
34480         * gnulib-tool: New options --vc-files, --no-vc-files.
34481         (func_usage): Document them.
34482         (vc_files): New variable.
34483         (func_import): Consider vc_files.
34484         (func_create_testdir): Set vc_files to empty.
34485         Suggested by Jim Meyering and Karl Berry.
34486
34487 2008-03-23  Bruno Haible  <bruno@clisp.org>
34488
34489         Fix regex compilation error on HP-UX 11.
34490         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34491         * modules/regex (Files): Add m4/mbstate_t.m4.
34492         Reported by Ton Voon <ton.voon@altinity.com>.
34493
34494 2008-03-23  Bruno Haible  <bruno@clisp.org>
34495
34496         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34497
34498 2008-03-23  Eric Blake  <ebb9@byu.net>
34499             Bruno Haible  <bruno@clisp.org>
34500
34501         Install files from top/ in the destination directory.
34502         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34503         augmentation also for the files from top/.
34504         (func_import, func_create_testdir): Rewrite file names:
34505         top/filename -> filename.
34506
34507 2008-03-23  Bruno Haible  <bruno@clisp.org>
34508
34509         Tweak "gnulib --version" output.
34510         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34511
34512 2008-03-23  Bruno Haible  <bruno@clisp.org>
34513
34514         Tweak "gnulib --version" output.
34515         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34516         rather than contents of ChangeLog, when possible.
34517
34518 2008-03-21  Eric Blake  <ebb9@byu.net>
34519
34520         More --version tweaks.
34521         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34522         date of last ChangeLog entry.
34523
34524 2008-03-21  Jim Meyering  <meyering@redhat.com>
34525
34526         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34527
34528 2008-03-20  Eric Blake  <ebb9@byu.net>
34529
34530         VPATH fix.
34531         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34532
34533 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34534
34535         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34536         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34537
34538 2008-03-20  Eric Blake  <ebb9@byu.net>
34539
34540         Sync GNUmakefile with coreutils.
34541         * build-aux/GNUmakefile (have-Makefile): Rename...
34542         (_have-Makefile): ...to this, for namespace consideration.
34543         (GNUmakefile.cfg): Include, if present.
34544         (_autoreconf): Define a default.
34545         (_is-dist-target): New rule for rebuilds to pick up intra-release
34546         version.
34547         (maint-cfg.mk): Rename...
34548         (cfg.mk): ...to this.
34549
34550 2008-03-18  Jim Meyering  <meyering@redhat.com>
34551
34552         New script and module: mktempd
34553         * MODULES.html.sh (maint+release support): Add mktempd.
34554         * build-aux/mktempd: New file.
34555         * modules/mktempd: New file.
34556
34557 2008-03-15  Jim Meyering  <meyering@redhat.com>
34558
34559         Undo last change.
34560         * lib/sha1.c, lib/md5.c: 63 != ~63.
34561         Reported by Andreas Schwab.
34562
34563         sha1.c, md5.c: Hoist a redundant expression.
34564         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34565         "ctx->buflen" only once, before calling *_process_block.
34566         * lib/md5.c (md5_process_bytes): Likewise.
34567
34568 2008-03-14  Eric Blake  <ebb9@byu.net>
34569
34570         Bump copyright year in files generated by gnulib-tool.
34571         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34572         gnulib-tool, rather than hard-coding it.
34573
34574         Fix 'gnulib-tool --version' output to work with git.
34575         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34576         (startup): ...here.
34577         (func_version): Use it to invoke git-version-gen, rather than
34578         relying on CVS keyword expansion.  Modernize wording.
34579         (cvsdatestamp, last_checkin_date, version): Kill unused
34580         variables.
34581
34582 2008-03-12  Jim Meyering  <meyering@redhat.com>
34583
34584         Recognize optional cast of the argument to free.
34585         * build-aux/useless-if-before-free: Update regexps.
34586
34587         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34588
34589 2008-03-11  Bruno Haible  <bruno@clisp.org>
34590
34591         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34592         by a single package.
34593         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34594         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34595         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34596         Reported by Sam Steingold <sds@gnu.org>.
34597
34598 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34599
34600         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34601         repositories.
34602
34603 2008-03-11  Bruno Haible  <bruno@clisp.org>
34604
34605         Avoid conflicts between local macro definitions.
34606         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34607         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34608
34609 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34610             Bruno Haible  <bruno@clisp.org>
34611
34612         Make va_copy work with some version of xlc on AIX 5.1.
34613         * lib/stdarg.in.h: New file.
34614         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34615         On AIX, use a <stdarg.h> file substitute.
34616         * modules/stdarg (Files): Add lib/stdarg.in.h.
34617         (Depends-on): Add include_next.
34618         (Makefile.am): Build a stdarg.h substitute if requested.
34619         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34620
34621 2008-03-10  Bruno Haible  <bruno@clisp.org>
34622
34623         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34624         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34625         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34626
34627 2008-03-10  Bruno Haible  <bruno@clisp.org>
34628
34629         * modules/stdlib (Depends-on): Add include_next, remove
34630         absolute-header.
34631
34632 2008-03-09  Bruno Haible  <bruno@clisp.org>
34633
34634         * lib/freadahead.h (freadahead): Document more precisely.
34635         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34636         the sum of both buffer sizes.
34637         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34638         * NEWS: Document the change.
34639
34640 2008-03-09  Bruno Haible  <bruno@clisp.org>
34641
34642         Extend freadptr to return also the buffer size.
34643         * lib/freadptr.h (freadptr): Add sizep argument.
34644         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34645         (freadptr): Add sizep argument. Determine buffer size like freadahead
34646         does.
34647         * tests/test-freadptr.c: Don't include freadahead.h.
34648         (main): Adapt for new calling convention of freadptr.
34649         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
34650         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
34651         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
34652         tests/test-freadptr2.sh.
34653         (Depends): Remove freadahead.
34654         (TESTS): Add test-freadptr2.sh.
34655         (check_PROGRAMS): Add test-freadptr2.
34656
34657 2008-03-09  Bruno Haible  <bruno@clisp.org>
34658
34659         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
34660         Report and solution by Simon Josefsson.
34661
34662 2008-03-06  Bruno Haible  <bruno@clisp.org>
34663
34664         Make fflush after ungetc work on BSD platforms.
34665         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
34666         * tests/test-fflush2.c: New file.
34667         * tests/test-fflush2.sh: New file.
34668         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
34669         tests/test-fflush2.c.
34670         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
34671         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
34672
34673 2008-03-06  Eric Blake  <ebb9@byu.net>
34674
34675         Likewise for ftello.
34676         * modules/ftello (Dependencies): Add extensions.
34677         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
34678
34679 2008-03-06  Bruno Haible  <bruno@clisp.org>
34680
34681         * modules/fseeko (Dependencies): Add extensions.
34682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
34683         Needed on glibc systems.
34684
34685 2008-03-06  Bruno Haible  <bruno@clisp.org>
34686
34687         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
34688         email address.
34689         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34690
34691 2008-03-06  Bruno Haible  <bruno@clisp.org>
34692
34693         * users.txt: Add libgnupdf.
34694
34695 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34696
34697         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
34698         (Header File Substitutes, Function Substitutes,
34699         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
34700         (Build robot for gnulib): Fix typo.
34701
34702 2008-03-06  Bruno Haible  <bruno@clisp.org>
34703
34704         * doc/gnulib-tool.texi (VCS Issues): Small updates.
34705         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34706
34707 2008-03-06  Bruno Haible  <bruno@clisp.org>
34708
34709         * doc/func.texi: New file, extracted from doc/gnulib.texi.
34710         * doc/gnulib.texi: Include it.
34711
34712 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34713
34714         * modules/func (License): Change license to unlimited; there was
34715         no LGPL parts in the module anyway.
34716
34717 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34718
34719         * modules/__func__: Renamed to modules/func.
34720         * modules/__func__-tests: Renamed to modules/func-tests.
34721         * tests/test-__func__.c: Renamed to tests/test-func.c.
34722         * m4/__func__.m4: Renamed to m4/func.m4.
34723         * doc/gnulib.texi (__func__): Section renamed to func.
34724         Suggested by Eric Blake <ebb9@byu.net>.
34725
34726 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34727
34728         * doc/gnulib.texi (__func__): Use C99 terminology when talking
34729         about __func__.  Make example self-contained.  Suggested by Eric
34730         Blake <ebb9@byu.net>.
34731
34732         * tests/test-__func__.c (main): Avoid extraneous () around __func.
34733         Suggested by Eric Blake <ebb9@byu.net>.
34734
34735 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34736
34737         * modules/__func__: New file.
34738         * modules/__func__-tests: New file.
34739         * tests/test-__func__.c: New file.
34740         * m4/__func__.m4: New file.
34741         * doc/gnulib.texi (__func__): Document __func__ module.
34742
34743 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34744
34745         * modules/byteswap (License): Re-license as LGPLv2+.
34746
34747 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34748
34749         * doc/Makefile: Add pdf target.
34750
34751 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34752
34753         * modules/inline (License): Use 'unlimited', since there are only
34754         *.m4 files in this module.
34755
34756 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34757             Bruno Haible  <bruno@clisp.org>
34758
34759         Add support for HP C 7.1 on OpenVMS 8.3.
34760         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
34761
34762 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34763
34764         Update VMS specifics.
34765         * lib/getopt.c [VMS]: Remove include of unixlib.h.
34766
34767 2008-03-02  Jim Meyering  <meyering@redhat.com>
34768
34769         Remove the last dependency on the "free" module.
34770         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
34771         Reported by Bob Proulx.
34772
34773         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
34774
34775         Remove useless "if" tests before free.  Deprecate "free" module.
34776         * doc/posix-functions/free.texi: Mention that this
34777         module is no longer useful.
34778         * modules/free (Notice): Say this module is obsolete.
34779         * modules/readutmp (Depends-on): Remove free.
34780         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
34781         * lib/putenv.c (putenv): Likewise.
34782         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
34783         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
34784         * tests/test-c-strcasestr.c (main): Likewise.
34785         * tests/test-c-strstr.c (main): Likewise.
34786         * tests/test-mbscasestr1.c (main): Likewise.
34787         * tests/test-mbscasestr2.c (main): Likewise.
34788         * tests/test-mbsstr1.c (main): Likewise.
34789         * tests/test-mbsstr2.c (main): Likewise.
34790         * tests/test-memmem.c (main): Likewise.
34791         * tests/test-strcasestr.c (main): Likewise.
34792         * tests/test-striconv.c (main): Likewise.
34793         * tests/test-striconveh.c (main): Likewise.
34794         * tests/test-striconveha.c (main): Likewise.
34795         * tests/test-strstr.c (main): Likewise.
34796
34797         * build-aux/git-version-gen: Adjust a comment and the Usage string.
34798
34799         bootstrap: sync from coreutils again
34800         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
34801
34802 2008-03-01  Jim Meyering  <meyering@redhat.com>
34803
34804         bootstrap: sync from coreutils
34805         * build-aux/bootstrap (update_po_files): Copy a .po file into place
34806         also when the target doesn't exist.
34807
34808 2008-03-01  Eric Blake  <ebb9@byu.net>
34809
34810         Fix bugs in last patch.
34811         * lib/memchr2.c (memchr2): Fix typo.
34812         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34813         extension.
34814         Reported by Bruce Korb.
34815
34816         New module 'memchr2'.
34817         * modules/memchr2: New file.
34818         * modules/memchr2-tests: Likewise.
34819         * lib/memchr2.h: Likewise.
34820         * lib/memchr2.c: Likewise, based on memchr.c.
34821         * tests/test-memchr2.c: New test.
34822         * MODULES.html.sh (String handling): Add memchr2.
34823
34824 2008-02-29  Bruno Haible  <bruno@clisp.org>
34825
34826         * modules/freadseek-tests: New file.
34827         * tests/test-freadseek.sh: New file.
34828         * tests/test-freadseek.c: New file.
34829
34830         New module 'freadseek'.
34831         * modules/freadseek: New file.
34832         * lib/freadseek.h: New file.
34833         * lib/freadseek.c: New file.
34834         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34835
34836 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34837
34838         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34839         wydawca.
34840
34841         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34842         program_invocation_name and program_invocation_short_name are
34843         present.
34844
34845 2008-02-28  Bruno Haible  <bruno@clisp.org>
34846
34847         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34848         * tests/test-freadptr.sh: Also test non-seekable stdin.
34849
34850 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34851
34852         * build-aux/bootstrap (source_base, m4_base)
34853         (doc_base, tests_base): New variables.
34854         (gnulib_tool_options): Do not hardcode base directories, use
34855         the above variables instead.
34856
34857 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34858
34859         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34860
34861 2008-02-28  Bruno Haible  <bruno@clisp.org>
34862
34863         * modules/freadptr-tests: New file.
34864         * tests/test-freadptr.sh: New file.
34865         * tests/test-freadptr.c: New file.
34866
34867         New module 'freadptr'.
34868         * modules/freadptr: New file.
34869         * lib/freadptr.h: New file.
34870         * lib/freadptr.c: New file.
34871         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34872
34873 2008-02-26  Karl Berry  <karl@freefriends.org>
34874
34875         Sync from Libtool:
34876         * libltdl/argz.c (argz_add, argz_count): New functions.
34877         * libltdl/argz.in.h: Declare them.
34878         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34879
34880 2008-02-22  Bruno Haible  <bruno@clisp.org>
34881
34882         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34883         is a pointer type.  Needed for HP-UX 10.
34884         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34885         * doc/posix-functions/gmtime_r.texi: Likewise.
34886         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34887
34888 2008-02-24  Bruno Haible  <bruno@clisp.org>
34889
34890         * modules/environ-tests: New file.
34891         * tests/test-environ.c: New file.
34892
34893         New module 'environ'.
34894         * modules/environ: New file.
34895         * lib/unistd.in.h (environ): New declaration.
34896         * m4/environ.m4: New file.
34897         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34898         after use.
34899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34900         HAVE_DECL_ENVIRON.
34901         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34902         HAVE_DECL_ENVIRON.
34903         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34904         wrong claim that 'environ' is missing on some systems.
34905         * modules/execute (Depends-on): Add environ.
34906         * lib/execute.c (environ): Remove fallback declaration.
34907         * modules/pipe (Depends-on): Add environ.
34908         * lib/pipe.c (environ): Remove fallback declaration.
34909         * modules/setenv (Depends-on): Add environ.
34910         * lib/setenv.c (environ): Remove fallback declaration.
34911         * modules/unsetenv (Depends-on): Add environ.
34912         * lib/unsetenv.c (environ): Remove fallback declaration.
34913         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34914         m4/environ.m4.
34915         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34916         (gl_PREREQ_UNSETENV): Likewise.
34917
34918 2008-02-24  Bruno Haible  <bruno@clisp.org>
34919
34920         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34921
34922 2008-02-20  Bob Proulx  <bob@proulx.com>
34923
34924         Enable use of older two part flavor 'git describe'.
34925         * build-aux/git-version-gen: If using the older two part flavor of
34926         git version then recreate the third part now present in the
34927         newer three part flavor of git describe.
34928
34929 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34930
34931         * lib/fts.c (fts_build): Typo correction to comment.
34932
34933 2008-02-17  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34936         generating no-op conflicts.
34937
34938 2008-02-17  Bruno Haible  <bruno@clisp.org>
34939
34940         Speed up by 10%.
34941         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34942         result_entries, rather than an index-based loop.
34943
34944 2008-02-17  Bruno Haible  <bruno@clisp.org>
34945
34946         Speed up by 25%.
34947         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34948         'hashcode_cached'.
34949         (entry_create): New function.
34950         (entry_hashcode): Use the cached hashcode if possible.
34951         (read_changelog_file, try_split_merged_entry): Use entry_create.
34952
34953 2008-02-17  Bruno Haible  <bruno@clisp.org>
34954
34955         Speed up from O(n^2) to O(n) for long ChangeLog files.
34956         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34957         (read_changelog_file): Change implementation of entries_reversed list
34958         to rbtreehash.
34959         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34960
34961 2008-02-17  Bruno Haible  <bruno@clisp.org>
34962
34963         New option --split-merged-entry.
34964         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34965         (find_paragraph_end, try_split_merged_entry): New functions.
34966         (long_options): Add option --split-merged-entry.
34967         (usage): Document option --split-merged-entry.
34968         (main): Implement option --split-merged-entry.
34969         Reported by Eric Blake.
34970
34971 2008-02-17  Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/git-merge-changelog.c: Include c-strstr.h.
34974         (main): Support the "git pull --rebase" situation.
34975         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34976         Reported by Eric Blake.
34977
34978 2008-02-16  Eric Blake  <ebb9@byu.net>
34979
34980         Avoid doubling \ in common case of "c-maybe" quoting style.
34981         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34982         eliding outer quotes.
34983         * lib/quotearg.h: Document this.
34984         * tests/test-quotearg.c (result_strings, inputs, results_g)
34985         (flag_results, locale_results): Test it by adding a new string to
34986         each test group.
34987         (compare_strings): Test new string.
34988
34989 2008-02-13  Eric Blake  <ebb9@byu.net>
34990
34991         Avoid trigraph quoting in default output.
34992         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34993         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34994         unless explicitly requested.
34995         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34996
34997 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34998
34999         Don't rely on signed integer overflowing to negative value.
35000         * lib/getugroups.c (getugroups): Include <limits.h>.
35001         Instead, compare against INT_MAX, and increment only if the test passes.
35002
35003 2008-02-13  Jim Meyering  <meyering@redhat.com>
35004         and Eric Blake  <ebb9@byu.net>
35005
35006         Avoid shadowing warning and compile errors on Linux.
35007         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
35008         forwarding macros on Linux.
35009         (dcgettext): Define a stub, for Linux.
35010         (results_g, main): Avoid warnings.
35011
35012 2008-02-12  Eric Blake  <ebb9@byu.net>
35013
35014         Silence warning in last patch.
35015         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
35016
35017         Quotearg part 4: add tests, fix c-maybe colon quoting.
35018         * lib/quotearg.h: Improve documentation.
35019         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
35020         escapes when adding outer quotes.  When quoting trigraphs, use
35021         valid C notation.  When quoting NUL, omit extra characters if next
35022         character is not digit.  Alter prototype.
35023         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
35024         callers.
35025         * modules/quotearg-tests: New module.
35026         * tests/test-quotearg.c: New test.
35027
35028 2008-02-07  Eric Blake  <ebb9@byu.net>
35029
35030         Quotearg part 3: add flag to control outer quote elision.
35031         * lib/quotearg.h (c_maybe_quoting_style): New style.
35032         (enum quoting_flags): Better documentation of flags.
35033         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
35034         c-maybe style.
35035         (quotearg_buffer_restyled): Handle new flag to elide outer
35036         quotes.
35037
35038         Quotearg part 2: add flag that can control NUL elision.
35039         * lib/quotearg.h (set_quoting_flags): New prototype.
35040         * lib/quotearg.c (struct quoting_options): Add flag field.
35041         (set_quoting_flags): New function.
35042         (quotearg_buffer_restyled): Add flags parameter.
35043         (quotearg_alloc_mem): Set the flag if length cannot be returned.
35044         (quotearg_n_options): Set the flag, since length cannot be
35045         returned.
35046         (quoting_options_from_style): Default flags correctly.
35047
35048         Quotearg part 1: more wrappers, restore quotearg_char state.
35049         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
35050         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
35051         (quotearg_colon_mem): New wrappers.
35052         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
35053         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
35054         functions.
35055         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
35056         (quotearg_colon_mem): New functions.
35057
35058 2008-02-11  Bruno Haible  <bruno@clisp.org>
35059
35060         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
35061         library in the current directory: it does not work with parallel make.
35062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35063
35064 2008-02-11  Bruno Haible  <bruno@clisp.org>
35065
35066         * .gitattributes: New file.
35067
35068 2008-02-11  Jim Meyering  <meyering@redhat.com>
35069
35070         useless-if-before-free: Fix reversed exit values.
35071         * build-aux/useless-if-before-free: Use correct values
35072         for EXIT_MATCH and EXIT_NO_MATCH.
35073
35074         * build-aux/useless-if-before-free: Close stdout carefully.
35075
35076 2008-02-10  Bruno Haible  <bruno@clisp.org>
35077
35078         New module 'git-merge-changelog'.
35079         * modules/git-merge-changelog: New file.
35080         * lib/git-merge-changelog.c: New file.
35081
35082 2008-02-10  Jim Meyering  <meyering@redhat.com>
35083
35084         useless-if-before-free: New option: --list (-l).
35085
35086         useless-if-before-free: Don't exit immediately upon open failure.
35087         * build-aux/useless-if-before-free: Exit 2 for errors.
35088         Upon failure to open a file, don't exit immediately.
35089         Rather, just warn and continue with any remaining files.
35090
35091 2008-02-10  Bruno Haible  <bruno@clisp.org>
35092
35093         New abstract list operation 'node_set_value'.
35094         * lib/gl_list.h (gl_list_node_set_value): New function.
35095         (struct gl_list_implementation): New field node_set_value.
35096         * lib/gl_list.c (gl_list_node_set_value): New function.
35097         * lib/gl_array_list.c (gl_array_node_set_value): New function.
35098         (gl_array_list_implementation): Update.
35099         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
35100         (gl_carray_list_implementation): Update.
35101         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
35102         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
35103         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
35104         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
35105         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
35106         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
35107         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
35108         Update.
35109         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
35110         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
35111         (gl_sublist_list_implementation): Update.
35112
35113 2008-02-10  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
35116         Needed when ELEMENT is #defined to 'some_type *'.
35117
35118 2008-02-10  Jim Meyering  <meyering@redhat.com>
35119
35120         New script and module: useless-if-before-free
35121         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
35122         * build-aux/useless-if-before-free: New file.
35123         * modules/useless-if-before-free: New file.
35124
35125         * build-aux/gitlog-to-changelog: Use committer date, not author date.
35126
35127         xstrtol_error: Fix typo.
35128         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
35129         s/exit_failure/exit_status/.
35130
35131 2008-02-09  Jim Meyering  <meyering@redhat.com>
35132
35133         New script and module: gitlog-to-changelog
35134         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
35135         * modules/gitlog-to-changelog: New file.
35136         * build-aux/gitlog-to-changelog: New file.
35137
35138 2008-02-08  Jim Meyering  <meyering@redhat.com>
35139
35140         Avoid two "parameter unused" warnings.
35141         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
35142         Mark "st" as used.
35143
35144         Use "git COMMAND", not "git-COMMAND".
35145         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
35146         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
35147         * build-aux/git-version-gen: Use "git status", not "git-status".
35148
35149 2008-02-07  Bruno Haible  <bruno@clisp.org>
35150
35151         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
35152         Avoids a crash on Windows Vista.
35153         Reported by Adam Strzelecki <ono@java.pl> via
35154         Simon Josefsson <simon@josefsson.org>.
35155
35156 2008-02-06  Bruno Haible  <bruno@clisp.org>
35157
35158         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
35159         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
35160         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
35161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
35162         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35163         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35164         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
35165         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
35166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35167         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35168         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35170         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35172         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35173         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
35174         left-adjust flag.
35175         * tests/test-snprintf-posix.h (test_function): Likewise.
35176         * tests/test-sprintf-posix.h (test_function): Likewise.
35177         * tests/test-vasprintf-posix.c (test_function): Likewise.
35178         * doc/posix-functions/fprintf.texi: Update.
35179         * doc/posix-functions/printf.texi: Update.
35180         * doc/posix-functions/snprintf.texi: Update.
35181         * doc/posix-functions/sprintf.texi: Update.
35182         * doc/posix-functions/vfprintf.texi: Update.
35183         * doc/posix-functions/vprintf.texi: Update.
35184         * doc/posix-functions/vsnprintf.texi: Update.
35185         * doc/posix-functions/vsprintf.texi: Update.
35186         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35187
35188 2008-02-06  Bruno Haible  <bruno@clisp.org>
35189
35190         Fix bug introduced on 2008-01-26.
35191         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
35192
35193 2008-02-06  Bruno Haible  <bruno@clisp.org>
35194
35195         Fix bug introduced on 2007-06-10.
35196         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
35197         !NEED_PRINTF_FLAG_ZERO.
35198
35199 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
35200
35201         getloadavg: use libperfstat on AIX5
35202         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
35203
35204 2008-02-03  Bruno Haible  <bruno@clisp.org>
35205
35206         * lib/diffseq.h: Add comments about required #includes.
35207         Reported by Michael Biggs <gnulib@doubleplum.net>.
35208
35209 2008-02-01  Bruno Haible  <bruno@clisp.org>
35210
35211         * users.txt: Add gnuit.
35212
35213 2008-01-31  Bruno Haible  <bruno@clisp.org>
35214
35215         * lib/md4.c (set_uint32): Mark as inline.
35216         * lib/md5.c (set_uint32): Likewise.
35217         * lib/sha1.c (set_uint32): Likewise.
35218         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
35219         * m4/md5.m4 (gl_MD5): Likewise.
35220         * m4/sha1.m4 (gl_SHA1): Likewise.
35221
35222 2008-01-31  Jim Meyering  <meyering@redhat.com>
35223
35224         Use "sizeof VAR", rather than a literal "4".
35225         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
35226         * lib/md4.c (md4_read_ctx): Likewise.
35227         * lib/sha1.c (sha1_read_ctx): Likewise.
35228
35229 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35230
35231         * tests/test-sha1.c: New file, based on test-md5.c.
35232
35233         * modules/crypto/sha1-tests: New file.
35234
35235 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35236
35237         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
35238
35239 2008-01-31  Jim Meyering  <meyering@redhat.com>
35240
35241         Prefer "sizeof v" over the equivalent "4".
35242         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
35243         * lib/md5.c (set_uint32): Likewise.
35244         * lib/sha1.c (set_uint32): Likewise.
35245
35246 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35247
35248         * lib/sha1.c (set_uint32): Mark function as static.
35249
35250 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35251
35252         md2: clarify comments to say that alignment is not required.
35253         * lib/md2.h: Remove warning about alignment in comment.
35254         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
35255         never been required.
35256
35257 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35258
35259         md4: adapt alignment constraint fix from sha1.
35260         * lib/md4.c (set_uint32): New function, from sha1.c
35261         (md4_read_ctx): Use it.
35262         (md4_finish_ctx): Doc fix.
35263         * lib/md4.h: Doc fix.
35264
35265 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35266
35267         md5: adapt alignment constraint fix from sha1.
35268         * lib/md5.c (set_uint32): New function, from sha1.c
35269         (md5_read_ctx): Use it.
35270         (md5_finish_ctx): Doc fix.
35271         * lib/md5.h: Doc fix.
35272
35273 2008-01-30  Peter Palfrader  <weasel@debian.org>
35274
35275         sha1: remove the result buffer alignment constraint
35276         * lib/sha1.c (set_uint32): New function.
35277         (sha1_read_ctx): Rewrite to remove the result buffer alignment
35278         constraint.
35279         (sha1_finish_ctx): Remove comment warning about alignment constraint.
35280         * lib/sha1.h: Likewise.
35281
35282 2008-01-30  Andreas Schwab  <schwab@suse.de>
35283             Bruno Haible  <bruno@clisp.org>
35284
35285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
35286         correct definition of LDBL_MIN_EXP.
35287
35288 2008-01-30  Karl Berry  <karl@gnu.org>
35289
35290         * config/srclist-update: try to preserve x bit on updates.
35291         * config/srclistvars.sh: update for karl.
35292
35293 2008-01-29  Jim Meyering  <meyering@redhat.com>
35294
35295         vasnprintf.c: Avoid warning about unused label
35296         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
35297         "overflow" label definition and associated code with the
35298         same cpp condition that guards the sole use of that label.
35299
35300 2008-01-26  Bruno Haible  <bruno@clisp.org>
35301
35302         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
35303         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
35304         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
35305         * lib/isnanl-nolibm.h (isnanl): Likewise.
35306         Reported by Paul Eggert <eggert@cs.ucla.edu>.
35307
35308 2008-01-26  Bruno Haible  <bruno@clisp.org>
35309
35310         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
35311         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
35312
35313 2008-01-26  Bruno Haible  <bruno@clisp.org>
35314
35315         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
35316         GCC >= 4.0 built-in.
35317         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
35318
35319 2008-01-26  Bruno Haible  <bruno@clisp.org>
35320
35321         Rename isnan, applicable to 'double' only, to isnand.
35322         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
35323         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
35324         (configure.ac): Update.
35325         (Include): Replace "isnan.h" with "isnand.h".
35326         * m4/isnand.m4: Renamed from m4/isnan.m4.
35327         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
35328         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
35329         instead of isnan.c.
35330         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
35331         instead of HAVE_ISNAN_IN_LIBC.
35332         (isnand): Renamed from isnan.
35333         * lib/isnand.c: New file.
35334         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
35335         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
35336         (Makefile.am): Update.
35337         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
35338         Include isnand.h instead of isnan.h.
35339         (main): Test isnand instead of isnan.
35340         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
35341         isnan-nolibm.
35342         * modules/frexp (Depends-on): Likewise.
35343         * modules/frexp-tests (Depends-on): Likewise.
35344         * modules/frexp-nolibm (Depends-on): Likewise.
35345         * modules/frexp-nolibm-tests (Depends-on): Likewise.
35346         * modules/isfinite (Depends-on): Likewise.
35347         * modules/round-tests (Depends-on): Likewise.
35348         * modules/signbit (Depends-on): Likewise.
35349         * modules/signbit-tests (Depends-on): Likewise.
35350         * modules/snprintf-posix (Depends-on): Likewise.
35351         * modules/sprintf-posix (Depends-on): Likewise.
35352         * modules/trunc-tests (Depends-on): Likewise.
35353         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35354         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35355         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35356         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35357         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35358         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35359         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35360         * modules/vasnprintf-posix (Depends-on): Likewise.
35361         * modules/vasprintf-posix (Depends-on): Likewise.
35362         * modules/vfprintf-posix (Depends-on): Likewise.
35363         * modules/vsnprintf-posix (Depends-on): Likewise.
35364         * modules/vsprintf-posix (Depends-on): Likewise.
35365         * lib/frexp.c: Include isnand.h instead of isnan.h.
35366         (ISNAN): Set to isnand instead of isnan.
35367         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35368         (gl_isfinited): Use isnand instead of isnan.
35369         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35370         (gl_signbitd): Use isnand instead of isnan.
35371         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35372         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35373         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35374         (main): Use isnand instead of isnan.
35375         * tests/test-round1.c: Include isnand.h.
35376         (main): Use isnand instead of isnan.
35377         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35378         (ISNAN): Set to isnand instead of isnan.
35379         * tests/test-trunc1.c: Include isnand.h.
35380         (main): Use isnand instead of isnan.
35381         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35382         (equal): Use isnand instead of isnan.
35383         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35384         isnand-nolibm.
35385         * NEWS: Mention the change.
35386
35387 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35388             Bruno Haible  <bruno@clisp.org>
35389
35390         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35391         the GCC builtins for signbits are present and set
35392         REPLACE_SIGNBIT_USING_GCC if so.
35393         * lib/math.in.h (signbit): Define using GCC builtins if
35394         REPLACE_SIGNBIT_USING_GCC is set.
35395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35396         REPLACE_SIGNBIT_USING_GCC.
35397         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35398
35399 2008-01-25  Jim Meyering  <meyering@redhat.com>
35400
35401         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35402         * lib/poll.c: Include <config.h>, not "config.h".
35403         * tests/test-getaddrinfo.c: Likewise.
35404
35405 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35406
35407         * modules/sockets-tests: New file.
35408
35409 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35410
35411         * modules/sockets: New module, can be used to call WSA_Startup and
35412         WSA_Cleanup when needed.
35413
35414         * lib/sockets.h, lib/sockets.c: New files.
35415
35416         * m4/sockets.m4: New file.
35417
35418         * tests/test-sockets.c: New file.
35419
35420 2008-01-19  Bruno Haible  <bruno@clisp.org>
35421
35422         * doc/posix-headers: Renamed from doc/headers.
35423         * doc/posix-functions: Renamed from doc/functions.
35424         * doc/gnulib.texi: Update.
35425
35426 2008-01-19  Bruno Haible  <bruno@clisp.org>
35427
35428         * doc/glibc-functions/strcasestr.texi: Include contents of
35429         doc/functions/strcasestr.texi, fixing the list of platforms.
35430         * doc/functions/strcasestr.texi: Remove file.
35431
35432 2008-01-19  Bruno Haible  <bruno@clisp.org>
35433
35434         * doc/glibc-functions/memmem.texi: Include contents of
35435         doc/functions/memmem.texi.
35436         * doc/functions/memmem.texi: Remove file.
35437
35438 2008-01-18  Bruno Haible  <bruno@clisp.org>
35439
35440         * doc/glibc-functions/*.texi: New files.
35441         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35442         to use the new files.
35443
35444 2008-01-17  Bruno Haible  <bruno@clisp.org>
35445
35446         * tests/test-gethostname.c (main): Fix printf statement.
35447
35448 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35449
35450         * modules/gethostname-tests: New file.
35451
35452         * tests/test-gethostname.c: New file.
35453
35454 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35455
35456         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35457         used by the UNAME case.  Reported by Bruno Haible
35458         <bruno@clisp.org>.
35459
35460 2008-01-17  Eric Blake  <ebb9@byu.net>
35461
35462         Convert c-strcasestr to be more efficient.
35463         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35464         (Depends-on): Add c-strcase, remove malloca, strnlen.
35465         * tests/test-c-strcasestr.c (main): Enhance test.
35466         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35467
35468 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35469
35470         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35471         Use it in creating po/Makevars.
35472
35473 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35474
35475         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35476         Applications that requires it should initialize libgcrypt
35477         manually.
35478
35479 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35480
35481         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35482
35483 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35484
35485         Fix problem with getdate on mingw32 reported by Simon Josefsson
35486         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35487         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35488         tzname", when deciding whether to declare tzname.
35489         * lib/strftime.c (tzname): Likewise.
35490
35491 2008-01-15  Bruno Haible  <bruno@clisp.org>
35492
35493         Work around a MacOS X 10.5 bug in frexpl().
35494         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35495         * doc/functions/frexpl.texi: Document the bug.
35496         Reported by Elias Pipping <pipping@gentoo.org>.
35497
35498 2008-01-14  Eric Blake  <ebb9@byu.net>
35499
35500         Touch up previous patch.
35501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35502         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35503
35504         Convert strcasestr module to use Two-Way algorithm.
35505         * modules/strcasestr-simple: New module, based on the old
35506         strcasestr, but with Two-Way rather than KMP.
35507         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35508         * lib/string.in.h (rpl_strcasestr): Declare.
35509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35510         performance.
35511         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35512         * modules/string (Makefile.am): Support strcasestr.
35513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35514         * modules/strcasestr-tests (Depends-on): Check for alarm.
35515         * tests/test-strcasestr.c: Augment test.
35516         * lib/str-two-way.h: Clean up stray macro.
35517         * NEWS: Document new module.
35518         * MODULES.html.sh (string handling): Likewise.
35519         * doc/functions/strcasestr.texi: New file.
35520         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35521         here, since it is not a POSIX function.
35522
35523 2008-01-14  Colin Watson  <cjwatson@debian.org>
35524             Bruno Haible  <bruno@clisp.org>
35525
35526         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35527         works fine; if not, set REPLACE_STRSIGNAL.
35528         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35530         REPLACE_STRSIGNAL.
35531         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35532         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35533         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35534
35535 2008-01-14  Bruno Haible  <bruno@clisp.org>
35536
35537         * modules/strsignal (Include): Change to <string.h>.
35538
35539 2008-01-14  Colin Watson  <cjwatson@debian.org>
35540
35541         * modules/argp (Notice): Add a notice recommending to change
35542         XGETTEXT_OPTIONS.
35543         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35544
35545 2008-01-13  Colin Watson  <cjwatson@debian.org>
35546
35547         * modules/strsignal-tests: New file.
35548         * tests/test-strsignal.c: New file.
35549
35550         * lib/strsignal.c: New file, from glibc with modifications.
35551         * lib/siglist.h: New file, from glibc with modifications.
35552         * lib/string.in.h (strsignal): New declaration.
35553         * m4/strsignal.m4: New file.
35554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35555         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35556         * modules/strsignal: New file.
35557         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35558         HAVE_DECL_STRSIGNAL.
35559
35560 2008-01-13  Bruno Haible  <bruno@clisp.org>
35561
35562         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35563         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35564         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35566
35567 2008-01-13  Bruno Haible  <bruno@clisp.org>
35568
35569         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35570         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35571         * lib/argp.h (__attribute__): Likewise.
35572         * lib/c-stack.c (__attribute__): Likewise.
35573         * lib/error.h (__attribute__): Likewise.
35574         * lib/fts.c (__attribute__): Likewise.
35575         * lib/openat.h (__attribute__): Likewise.
35576         * lib/stdio.in.h (__attribute__): Likewise.
35577         * lib/string.in.h (__attribute__): Likewise.
35578         * lib/utimens.c (__attribute__): Likewise.
35579         * lib/vasnprintf.h (__attribute__): Likewise.
35580         * lib/xalloc.h (__attribute__): Likewise.
35581         * lib/xprintf.h (__attribute__): Likewise.
35582         * lib/xstrtol.h (__attribute__): Likewise.
35583         * lib/xvasprintf.h (__attribute__): Likewise.
35584
35585 2008-01-12  Bruno Haible  <bruno@clisp.org>
35586
35587         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35588         * doc/glibc-headers/a.out.texi: New file.
35589         * doc/glibc-headers/aliases.texi: New file.
35590         * doc/glibc-headers/alloca.texi: New file.
35591         * doc/glibc-headers/ar.texi: New file.
35592         * doc/glibc-headers/argp.texi: New file.
35593         * doc/glibc-headers/argz.texi: New file.
35594         * doc/glibc-headers/byteswap.texi: New file.
35595         * doc/glibc-headers/crypt.texi: New file.
35596         * doc/glibc-headers/endian.texi: New file.
35597         * doc/glibc-headers/envz.texi: New file.
35598         * doc/glibc-headers/err.texi: New file.
35599         * doc/glibc-headers/error.texi: New file.
35600         * doc/glibc-headers/execinfo.texi: New file.
35601         * doc/glibc-headers/fpu_control.texi: New file.
35602         * doc/glibc-headers/fstab.texi: New file.
35603         * doc/glibc-headers/fts.texi: New file.
35604         * doc/glibc-headers/getopt.texi: New file.
35605         * doc/glibc-headers/ieee754.texi: New file.
35606         * doc/glibc-headers/ifaddrs.texi: New file.
35607         * doc/glibc-headers/libintl.texi: New file.
35608         * doc/glibc-headers/mcheck.texi: New file.
35609         * doc/glibc-headers/mntent.texi: New file.
35610         * doc/glibc-headers/obstack.texi: New file.
35611         * doc/glibc-headers/paths.texi: New file.
35612         * doc/glibc-headers/printf.texi: New file.
35613         * doc/glibc-headers/pty.texi: New file.
35614         * doc/glibc-headers/resolv.texi: New file.
35615         * doc/glibc-headers/shadow.texi: New file.
35616         * doc/glibc-headers/sysexits.texi: New file.
35617         * doc/glibc-headers/ttyent.texi: New file.
35618
35619 2008-01-12  Jim Meyering  <meyering@redhat.com>
35620
35621         announce-gen: emit Gnulib's git-based version string.
35622         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35623         New option --gnulib-version=V, where V is expected to be
35624         the output of running git describe in the gnulib directory.
35625         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35626         not useful, and plan to stop publishing an xdelta file with each
35627         coreutils release.
35628
35629         * build-aux/announce-gen: Also check for lzma-compressed files.
35630
35631 2008-01-11  Bruno Haible  <bruno@clisp.org>
35632
35633         * tests/test-memmem.c (main): Increase maximum allowed time.
35634         * tests/test-strstr.c (main): Likewise.
35635
35636 2008-01-11  Bruno Haible  <bruno@clisp.org>
35637
35638         * doc/functions/memmem.texi: Add more precisions about platforms.
35639         * doc/functions/strstr.texi: Likewise.
35640
35641 2008-01-10  Eric Blake  <ebb9@byu.net>
35642
35643         * m4/strstr.m4: Delete cruft from copy-n-paste.
35644         Reported by Bruno Haible.
35645
35646 2008-01-10  Bruno Haible  <bruno@clisp.org>
35647
35648         Make c-strstr rely on strstr.
35649         * lib/c-strstr.c: Don't include str-kmp.h.
35650         (c_strstr): Define in terms of strstr.
35651         * modules/c-strstr (Files): Remove lib/str-kmp.h.
35652         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
35653
35654 2008-01-10  Bruno Haible  <bruno@clisp.org>
35655
35656         * doc/gnulib.texi (String Functions in C Locale): New section.
35657         * doc/c-ctype.texi: New file.
35658         * doc/c-strcase.texi: New file.
35659         * doc/c-strcaseeq.texi: New file.
35660         * doc/c-strcasestr.texi: New file.
35661         * doc/c-strstr.texi: New file.
35662         * doc/c-strtod.texi: New file.
35663         * doc/c-strtold.texi: New file.
35664
35665 2008-01-10  Eric Blake  <ebb9@byu.net>
35666
35667         * lib/relocatable.h: Fix a comment.
35668
35669 2008-01-10  Eric Blake  <ebb9@byu.net>
35670
35671         Share two-way algorithm.
35672         * lib/str-two-way.h: New file, merged from...
35673         * lib/memmem.c: ...here...
35674         * lib/strstr.c: ...and here.
35675         * modules/memmem (Files): Use it.
35676         * modules/strstr (Files): Likewise.
35677
35678         Avoid quadratic strstr implementations.
35679         * lib/strstr.c: New file.
35680         * m4/strstr.m4: Likewise.
35681         * modules/strstr: Likewise.
35682         * modules/strstr-tests: Likewise.
35683         * tests/test-strstr.c: Likewise.
35684         * lib/string.in.h (rpl_strstr): Declare.
35685         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
35686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
35687         * modules/string (Makefile.am): Likewise.
35688         * MODULES.html.sh (string handling): Mention new module.
35689         * doc/functions/strstr.texi (strstr): Document the bug.
35690
35691 2008-01-10  Bruno Haible  <bruno@clisp.org>
35692
35693         * lib/relocatable.h (relocate): State whether result is freshly
35694         allocated or not.
35695         * lib/relocatable.c (relocate): Return a freshly allocated string
35696         instead of a pointer to a privately held string.
35697         Reported by Sylvain Beucler <beuc@gnu.org>.
35698
35699 2008-01-10  Colin Watson  <cjwatson@debian.org>
35700
35701         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
35702         s/S_ISNLK/S_ISLNK/.
35703
35704 2008-01-09  Bruno Haible  <bruno@clisp.org>
35705
35706         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
35707         and other files.
35708         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
35709         if it's only a guess.
35710         * modules/memmem: Simplify by depending on memmem-simple.
35711
35712 2008-01-09  Bruno Haible  <bruno@clisp.org>
35713
35714         Work around OpenBSD 4.0 tdelete() bug.
35715         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
35716         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
35717         macros and don't redefine the enum values.
35718         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
35719         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
35720         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
35721
35722 2008-01-09  Bruno Haible  <bruno@clisp.org>
35723
35724         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
35725         (main): Don't perform the tests if setlocale did not install a UTF-8
35726         locale. Needed on OpenBSD 4.0.
35727         * modules/wcwidth-tests (Depends-on): Add localcharset.
35728
35729 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35730
35731         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
35732         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
35733         * NEWS: announce this.
35734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
35735
35736 2008-01-09  Simon Josefsson  <simon@josefsson.org>
35737         and Eric Blake  <ebb9@byu.net>
35738
35739         Add memmem-simple module.
35740         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
35741         (gl_FUNC_MEMMEM): Separate performance from presence checks.
35742         * modules/memmem-simple: New file.
35743         * modules/memmem (Description): Tweak.
35744         * MODULES.html.sh (string handling): Mention new module.
35745         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
35746         addressed by memmem-simple.
35747         * NEWS: Document the difference.
35748
35749 2008-01-09  Eric Blake  <ebb9@byu.net>
35750
35751         Give gcc some memmem optimization hints.
35752         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
35753         (strcasestr): Declare as pure.
35754         * modules/memmem (Maintainer): Claim my implementation.
35755
35756 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35757
35758         Support AIX 6.1 and higher.
35759         * build-aux/config.libpath: Likewise.
35760         * build-aux/config.rpath: Likewise.
35761
35762 2008-01-08  Jim Meyering  <meyering@redhat.com>
35763             Bruno Haible  <bruno@clisp.org>
35764
35765         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
35766         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
35767         Reported by Peter Fales in
35768         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
35769
35770 2008-01-08  Bruno Haible  <bruno@clisp.org>
35771
35772         * modules/unictype/category-of (Depends-on): Add
35773         unictype/category-none.
35774         * modules/unictype/category-and-tests (Depends-on): Add
35775         unictype/category-{L,N,Lu,Nd}.
35776         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
35777         * modules/unictype/category-or-tests (Depends-on): Add
35778         unictype/category-{L,N}.
35779         * modules/unictype/category-name-tests (Depends-on): Add
35780         unictype/category-{Z,Nl}.
35781         Reported by Simon Josefsson.
35782
35783 2008-01-08  Bruno Haible  <bruno@clisp.org>
35784
35785         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
35786         convention better.
35787         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
35788         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
35789         Reported by Peter Miller <millerp@canb.auug.org.au>.
35790
35791 2008-01-08  Eric Blake  <ebb9@byu.net>
35792
35793         Rewrite memmem to guarantee linear complexity without malloc.
35794         * lib/memmem.c (memmem): Use Two-Way rather than
35795         Knuth-Morris-Pratt, to allow O(1) space usage.
35796         (critical_factorization, two_way_short_needle)
35797         (two_way_long_needle): New functions.
35798         (knuth_morris_pratt): Delete.
35799         * modules/memmem (Depends-on): No longer need malloca or stdbool.
35800         Add stdint.
35801         * tests/test-memmem.c (main): Add tests for periodic needle and
35802         sublinear performance.
35803         * doc/functions/memmem.texi (memmem): Document other deficiencies
35804         in cygwin and older glibc.
35805
35806 2008-01-08  Bruno Haible  <bruno@clisp.org>
35807
35808         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
35809         augmentation.
35810
35811 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35812
35813         Add a configure time option: --disable-acl.
35814         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35815         AC_ARG_ENABLE(acl).
35816
35817 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35818
35819         * tests/test-localename.c: Don't include obsolete "setenv.h".
35820
35821         * modules/localename-tests (Depends-on): Need unsetenv.
35822
35823 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35824
35825         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35826
35827 2008-01-06  Colin Watson  <cjwatson@debian.org>
35828
35829         * users.txt: Add man-db.
35830
35831 2008-01-07  Bruno Haible  <bruno@clisp.org>
35832
35833         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35834         previous section name.
35835
35836 2008-01-07  Bruno Haible  <bruno@clisp.org>
35837
35838         * lib/progname.c (set_program_name): Don't strip off a leading
35839         "lt-" prefix outside a .libs directory.
35840         Suggested by Paul Eggert.
35841
35842 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35843             Bruno Haible  <bruno@clisp.org>
35844
35845         Improve memory cleanup in 'relocatable' module.
35846         * lib/relocatable.h (compute_curr_prefix): Change return type to
35847         'char *'.
35848         * lib/relocatable.c (compute_curr_prefix): Change return type to
35849         'char *'. Free curr_installdir after use.
35850         (relocate): Free curr_prefix_better after use.
35851         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35852
35853 2008-01-01  Bruno Haible  <bruno@clisp.org>
35854
35855         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35856         failure on older glibc systems.
35857         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35858
35859 2008-01-05  Eric Blake  <ebb9@byu.net>
35860
35861         Avoid quadratic system memmem.
35862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35863         Reported by Ralf Wildenhues.
35864
35865         Fix memmem test for mingw.
35866         * modules/memmem-tests (configure.ac): Check for alarm.
35867         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35868         it.
35869         * doc/functions/memmem.texi: New file.
35870         * doc/gnulib.texi (Function Substitutes): Add memmem.
35871         Reported by Bruno Haible.
35872
35873 2008-01-04  Bruno Haible  <bruno@clisp.org>
35874
35875         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35876         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35877         gl_HEADER_STRING_H_DEFAULTS.
35878
35879 2008-01-04  Eric Blake  <ebb9@byu.net>
35880
35881         Shorten duration of memmem test.
35882         * tests/test-memmem.c (main): Use alarm to declare failure if test
35883         is taking too long.
35884         Reported by Ralf Wildenhues.
35885
35886 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35887
35888         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35889         string, needed by strerror.
35890
35891 2008-01-03  Colin Watson  <cjwatson@debian.org>
35892             Bruno Haible  <bruno@clisp.org>
35893
35894         * doc/gnulib-tool.texi (Localization): New section.
35895
35896 2008-01-02  Bruno Haible  <bruno@clisp.org>
35897
35898         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35899         variables to 'unsigned char *' type.
35900         Reported by Paul Eggert.
35901
35902 2008-01-02  Jim Meyering  <jim@meyering.net>
35903
35904         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35905
35906 2007-12-31  Jim Meyering  <jim@meyering.net>
35907
35908         Avoid use of private FTS type name.
35909         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35910
35911 2007-12-30  Karl Berry  <karl@gnu.org>
35912
35913         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35914         work around defect in Texinfo and/or the standalone Info browser.
35915
35916 2007-12-30  Bruno Haible  <bruno@clisp.org>
35917
35918         Unify 5 copies of the KMP code.
35919         * lib/str-kmp.h: New file.
35920         * lib/c-strcasestr.c: Include str-kmp.h.
35921         (knuth_morris_pratt): Remove function.
35922         (c_strcasestr): Update.
35923         * lib/c-strstr.c: Include str-kmp.h.
35924         (knuth_morris_pratt): Remove function.
35925         (c_strcasestr): Update.
35926         * lib/mbscasestr.c: Include str-kmp.h.
35927         (knuth_morris_pratt_unibyte): Remove function.
35928         * lib/mbsstr.c: Include str-kmp.h.
35929         (knuth_morris_pratt_unibyte): Remove function.
35930         * lib/strcasestr.c: Include str-kmp.h.
35931         (knuth_morris_pratt): Remove function.
35932         (strcasestr): Update.
35933         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35934         * modules/c-strstr (Files): Likewise.
35935         * modules/mbscasestr (Files): Likewise.
35936         * modules/mbsstr (Files): Likewise.
35937         * modules/strcasestr (Files): Likewise.
35938         Suggested by Paul Eggert.
35939
35940 2007-12-30  Bruno Haible  <bruno@clisp.org>
35941
35942         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35943         defined.
35944
35945 2007-12-30  Bruno Haible  <bruno@clisp.org>
35946
35947         * lib/xmalloca.h: Include xalloc.h.
35948         (xnmalloca): New macro.
35949
35950 2007-12-30  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/malloca.h (nmalloca): New macro.
35953         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35954         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35955         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35956         knuth_morris_pratt_multibyte): Likewise.
35957         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35958         knuth_morris_pratt_multibyte): Likewise.
35959         * lib/memmem.c (knuth_morris_pratt): Likewise.
35960         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35961
35962 2007-12-25  Bruno Haible  <bruno@clisp.org>
35963
35964         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35965         * lib/glob.c: Don't include openat.h.
35966         (link_exists2_p): Add back the code that deals with the
35967         !GLOB_ALTDIRFUNC case.
35968         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35969         let it do the filename concatenation.
35970         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35971         * modules/glob (Depends-on): Remove openat.
35972
35973 2007-12-31  Bruno Haible  <bruno@clisp.org>
35974
35975         * modules/dirfd (License): Change to LGPLv2+.
35976         Approved by Jim Meyering.
35977
35978 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35979
35980         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35981         when multiplying M by sizeof (size_t).
35982
35983 2007-12-10  Martin Lambers  <marlam@marlam.de>
35984
35985         Override getpagesize on mingw.
35986         * lib/getpagesize.c: New file.
35987         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35988         * modules/getpagesize (Files): Add lib/getpagesize.c.
35989         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35991         REPLACE_GETPAGESIZE.
35992         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35993
35994 2007-12-25  Bruno Haible  <bruno@clisp.org>
35995
35996         * modules/localcharset (Notice): New field.
35997         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35998         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35999
36000 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36001             Bruno Haible  <bruno@clisp.org>
36002
36003         Avoid using the syntax symbol() in formatted documentation.
36004         * MODULES.html.sh (func_module): When replacing symbol() with a
36005         hyperlink, remove the parentheses. Show an error if some remain.
36006         Recognize and render the '...' syntax.
36007         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
36008         Rework. Add paragraph about GCC's inlining.
36009         * doc/alloca.texi: Likewise.
36010         * doc/error.texi: Remove parentheses from symbol reference.
36011         * doc/gnulib-intro.texi: Likewise.
36012         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
36013         * modules/fnmatch (Description): Reword to say "the ... function".
36014         * modules/full-read (Description): Likewise.
36015         * modules/full-write (Description): Likewise.
36016         * modules/safe-read (Description): Likewise.
36017         * modules/safe-write (Description): Likewise.
36018         * modules/strchrnul (Description): Likewise.
36019         * modules/trim (Description): Likewise.
36020         * modules/error (Description): Remove parentheses from symbol
36021         references.
36022         * modules/verror (Description): Likewise.
36023         Reported by Karl Berry.
36024
36025 2007-12-25  Bruno Haible  <bruno@clisp.org>
36026
36027         Fixup after 2007-10-16 commit.
36028         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
36029
36030 2007-12-24  Bruno Haible  <bruno@clisp.org>
36031
36032         Make --enable-relocatable work with DESTDIR.
36033         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
36034         to compute installdir from destprog.
36035         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
36036         also set the RELOC_DESTDIR variable.
36037         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36038
36039 2007-12-24  Bruno Haible  <bruno@clisp.org>
36040
36041         Fix link error due to xalloc_die().
36042         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
36043         of xreadlink.
36044         * lib/relocwrapper.c: Update comments.
36045         * build-aux/install-reloc: Remove xreadlink.c from file list.
36046         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
36047         xreadlink.c.
36048         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36049
36050 2007-12-24  Bruno Haible  <bruno@clisp.org>
36051
36052         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
36053         * lib/setenv.h: Remove file.
36054         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
36055         lib/setenv.h.
36056         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
36057         (Depends-on): Add stdlib.
36058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
36059         gl_FUNC_UNSETENV.
36060         (Include): Replace setenv.h with <stdlib.h>.
36061         * modules/unsetenv: New file.
36062         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
36063         * lib/unsetenv.c: Include <stdlib.h> first.
36064         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
36065         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
36066         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
36067         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
36068         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
36069         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
36071         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36072         * doc/functions/unsetenv.texi: Update.
36073         * modules/xsetenv (Depends-on): Add unsetenv.
36074         * modules/getdate (Depends-on): Likewise.
36075         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
36076         * lib/xsetenv.c: Don't include setenv.h.
36077         * lib/getdate.y: Likewise.
36078         * lib/relocwrapper.c: Likewise.
36079         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
36080         (Depends-on): Add stdlib.
36081         * NEWS: Mention the changes.
36082         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36083
36084 2007-12-23  Bruno Haible  <bruno@clisp.org>
36085
36086         * lib/memmem.c (memmem): Use lowercase variable names. Tab
36087         indentation.
36088
36089 2007-12-23  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/c-strcasestr.c: Add more comments.
36092         * lib/c-strstr.c: Likewise.
36093         * lib/mbscasestr.c: Likewise.
36094         * lib/mbsstr.c: Likewise.
36095         * lib/strcasestr.c: Likewise.
36096         * lib/memmem.c: Likewise.
36097
36098 2007-12-23  Bruno Haible  <bruno@clisp.org>
36099
36100         * tests/test-memmem.c: Include <string.h> first.
36101
36102 2007-12-22  Bruno Haible  <bruno@clisp.org>
36103
36104         * gnulib-tool (func_create_testdir): Change $auxdir while generating
36105         the contents of $testsbase.
36106         Reported by Ralf Wildenhues.
36107
36108 2007-12-22  Bruno Haible  <bruno@clisp.org>
36109
36110         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
36111         two variables local_ldadd_before, local_ldadd_last.
36112
36113 2007-12-20  Eric Blake  <ebb9@byu.net>
36114
36115         Work around circular library issue when cross-compiling.
36116         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
36117         that progname.o does not need to pull in rpl_memcmp.
36118
36119 2007-12-19  Eric Blake  <ebb9@byu.net>
36120
36121         Fix memmem to avoid O(n^2) worst-case complexity.
36122         * lib/memmem.c (knuth_morris_pratt): New function.
36123         (memmem): Use it if first few naive iterations fail.
36124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
36125         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
36126         * modules/memchr (License): Likewise.
36127         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
36128         malloca.
36129         * tests/test-memmem.c: Rewrite, borrowing ideas from
36130         test-mbsstr1.c; the old version wouldn't even compile!
36131         * modules/memmem-tests: New file.
36132         * lib/string.in.h (rpl_memmem): Add declaration.
36133         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
36134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
36135         REPLACE_MEMMEM.
36136
36137 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36138
36139         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
36140         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
36141         before any system include files, and undef after them all.  This
36142         should fix a problem on VMS reported by John E. Malmberg in
36143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
36144
36145 2007-12-17  Eric Blake  <ebb9@byu.net>
36146
36147         Revert addition of verify, for BSD/OS.
36148         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
36149         can't handle large files, for the sake of obsolete platforms.
36150         * modules/fseeko (Depends-on): Remove verify.
36151         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
36152         * doc/functions/ftello.texi (ftello): Likewise.
36153         * doc/functions/fgetpos.texi (fgetpos): Likewise.
36154         Reported by Larry Jones.
36155
36156 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
36157
36158         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
36159         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
36160
36161 2007-12-17  Jim Meyering  <meyering@redhat.com>
36162
36163         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
36164         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
36165         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
36166         * modules/getcwd (Depends-on): Add openat.
36167         Reported by Petr Salinger.
36168
36169 2007-12-17  Bruno Haible  <bruno@clisp.org>
36170
36171         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
36172         avoid a segmentation fault of the configure test on x86_64 systems.
36173
36174 2007-12-15  Jim Meyering  <meyering@redhat.com>
36175
36176         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
36177
36178 2007-12-13  Eric Blake  <ebb9@byu.net>
36179
36180         Another fseek test.
36181         * tests/test-fseek.c (main): Also test ungetc handling.
36182         * tests/test-fseeko.c (main): Likewise.
36183         * modules/fseeko (Depends-on): Add verify.
36184         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
36185         large.
36186         Reported by Larry Jones.
36187
36188         Fix fseeko on mingw.
36189         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
36190         seek.
36191
36192         Beef up fseek tests.
36193         * tests/test-fseek.c (main): Also test eof handling.
36194         * tests/test-fseeko.c (main): Likewise.
36195         Reported by Larry Jones.
36196
36197 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
36198
36199         Fix fseeko on BSD-based platforms.
36200         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
36201         successful seek.
36202
36203 2007-12-12  Eric Blake  <ebb9@byu.net>
36204
36205         Allow circular dependency of separate libtests.a
36206         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
36207         when use_libtests.
36208
36209 2007-12-11  Eric Blake  <ebb9@byu.net>
36210
36211         Fix bug with -0.0L in previous patch.
36212         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
36213         * tests/test-isnan.c (main): Also test on zeroes.
36214         * tests/test-isnanf.c (main): Likewise.
36215         * tests/test-isnanl.h (main): Likewise.
36216
36217         Detect pseudo-denormals on x86 even when cross-compiling.
36218         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
36219         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
36220         invalid bit patterns that happen to satisfy ==.
36221
36222         Avoid link failures with separate libtests.a.
36223         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
36224         last, to satisfy circular dependencies.
36225
36226 2007-12-11  Eric Blake  <ebb9@byu.net>
36227         and Bruno Haible  <bruno@clisp.org>
36228
36229         Fix OpenBSD 4.0 <float.h> handling of long double.
36230         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
36231         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
36232         * doc/headers/float.texi (float.h): Document OpenBSD bug.
36233
36234 2007-12-11  Jim Meyering  <meyering@redhat.com>
36235
36236         * users.txt: Add libvirt.
36237
36238         Support versions of autoconf prior to 2.59c.
36239         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
36240         if it is not already defined.
36241
36242 2007-12-09  Bruno Haible  <bruno@clisp.org>
36243
36244         Let 'gnulib-tool --import' collect sources needed for the tests in
36245         tests/ rather than in lib/.
36246         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
36247         argument. If true, add rules to generate libtests.a, and put libtests.a
36248         into $(LDADD). Consider source files in subdirectories and set
36249         uses_subdirs.
36250         (func_emit_initmacro_start, func_emit_initmacro_end,
36251         func_emit_initmacro_done): Pass all arguments explicitly.
36252         (func_import): Determine two module lists main_modules,
36253         testsrelated_modules. Determine use_libtests. Determine two variables
36254         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
36255         instead of just sed_transform_lib_file. Determine two variables
36256         main_files and testsrelated_files. Compute 'files' as the union of
36257         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
36258         func_add_or_update. In the generated gnulib-comp.m4, collect the
36259         object files for tests/ in different variables than those for lib/.
36260         Substitute LIBTESTS_LIBDEPS.
36261         (func_create_testdir): Combine the uses_subdirs results from
36262         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
36263
36264 2007-12-09  Bruno Haible  <bruno@clisp.org>
36265
36266         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
36267         the build-aux directory.
36268
36269 2007-12-09  Bruno Haible  <bruno@clisp.org>
36270
36271         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
36272         introduced on 2006-09-09.
36273
36274 2007-12-07  Jim Meyering  <meyering@redhat.com>
36275
36276         Let these macros work also with autoconf-2.59.
36277         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
36278         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
36279         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36280
36281 2007-12-06  Jim Meyering  <meyering@redhat.com>
36282
36283         Avoid a configure-time syntax error in gl_FUNC_ACL.
36284         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
36285         function in each branch, before testing the cache variable.
36286
36287 2007-12-04  Eric Blake  <ebb9@byu.net>
36288
36289         Make scripts executable.
36290         * build-aux/config.guess: Add execute permissions.
36291         * build-aux/config.sub: Likewise.
36292         * build-aux/gendocs.sh: Likewise.
36293
36294         Fix frexp on mingw.
36295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
36296         cross-compiling.
36297         * doc/functions/frexp.texi (frexp): Document the bug.
36298
36299         Make cygwin fseeko check more reliable.
36300         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
36301         version numbers, rather than unrelated feature check.
36302         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
36303         * doc/functions/ftello.texi (ftello): Likewise.
36304         Reported by Bruno Haible.
36305
36306         * m4/strerror.m4: Bump version number.
36307
36308 2007-12-03  Bruno Haible  <bruno@clisp.org>
36309
36310         * doc/functions/mprotect.texi: Mention the mingw problem.
36311
36312 2007-12-03  Eric Blake  <ebb9@byu.net>
36313
36314         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
36315         REPLACE_STRERROR is initialized before this macro.
36316
36317 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36318
36319         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
36320         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
36321         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
36322         put -lsec in even for programs other than 'ls'.  This fixes a problem
36323         for gettext reported by Bruno Haible in
36324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
36325         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
36326         Add support for Solaris 10.  This isn't efficient, but should get the
36327         job done for now.
36328
36329 2007-12-03  James Youngman  <jay@gnu.org>
36330
36331         * doc/regexprops-generic.texi: change "an close-group" to "a
36332         close-group" and "illegal" to "not allowed".
36333
36334 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36335
36336         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
36337         pr_byname.h. Needed for the rare case when the maintainer has done
36338         "make maintainer-clean" in the source directory and then attempts a
36339         build outside the source directory.
36340         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
36341         scripts_byname.h.
36342
36343 2007-12-02  Martin Lambers <marlam@marlam.de>
36344             Bruno Haible  <bruno@clisp.org>
36345
36346         * lib/getpagesize.h: Remove file.
36347         * lib/unistd.in.h: Include declaration of getpagesize here.
36348         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
36349         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
36350         HAVE_SYS_PARAM_H.
36351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
36352         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36353         * modules/getpagesize (Files): Remove lib/getpagesize.h.
36354         (Depends-on): Add unistd.
36355         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36356         (Include): Use <unistd.h> instead of getpagesize.h.
36357         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
36358         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36359         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
36360         gl_GETPAGESIZE invocation, already handled by module dependency.
36361         * lib/pagealign_alloc.c: Don't include getpagesize.h.
36362
36363 2007-12-02  Bruno Haible  <bruno@clisp.org>
36364
36365         * modules/strings-tests: New file.
36366         * tests/test-strings.c: New file.
36367
36368         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36369         * lib/strings.in.h: New file.
36370         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36371         * m4/strings_h.m4: New file.
36372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36373         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36374         * modules/strings: New file.
36375         * modules/string (Makefile.am): Update.
36376         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36377         Reported by Karl Berry.
36378
36379 2007-12-01  Eric Blake  <ebb9@byu.net>
36380
36381         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36382         accomodate fix in cygwin 1.5.25.
36383
36384 2007-12-01  Jim Meyering  <meyering@redhat.com>
36385
36386         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36387         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36388         that would inhibit utf8-optimization of a regexp containing line-
36389         or buffer-anchors, e.g., `^', `$'.
36390
36391 2007-11-30  Bruno Haible  <bruno@clisp.org>
36392
36393         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36394         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36395         glthread_recursive_lock_init.
36396         * lib/lock.c (glthread_recursive_lock_init)
36397         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36399
36400 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36401
36402         New function qset_acl, like set_acl but with syscall semantics.
36403         * lib/acl.h (qset_acl): New decl.
36404         * lib/acl.c (qset_acl): New function.
36405         (set_acl): Use new function.  Use more-consistent diagnostics.
36406
36407 2007-11-28  Jim Meyering  <meyering@redhat.com>
36408
36409         * modules/physmem (License): Change from GPL to LGPLv2+.
36410
36411 2007-11-26  Bruno Haible  <bruno@clisp.org>
36412
36413         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36414         'long double' type has excess precision.
36415         Reported by Jim Meyering in
36416         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36417
36418 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36419
36420         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36421         Sync from <http://gnu.org/licenses>.
36422         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36423         with license text from same location.
36424         * doc/maintain.texi, doc/standards.texi:  Sync from
36425         <http://savannah.gnu.org/projects/gnustandards>.
36426
36427 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36428         and Jim Meyering  <meyering@redhat.com>
36429
36430         Adjust getdate' grammar to accept a slightly more regular language.
36431         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36432         Before, the former was rejected.
36433         * lib/getdate.y (digits_to_date_time): New function, factored
36434         out of ...
36435         (number): ...here.  Just call digits_to_date_time.
36436         (hybrid): New non-terminal to handle an <unsigned number,
36437         signed relative offset> sequence consistently.
36438
36439 2007-11-18  Jim Meyering  <meyering@redhat.com>
36440
36441         Pull my changes from coreutils:
36442         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36443         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36444         use of $gnulib_tool_option_extras, so that it's separated from the
36445         preceding argument.
36446
36447         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36448         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36449         parent destination directories before copying a file into place.
36450
36451 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36452
36453         bootstrap: work also with 4-argument variant of AC_INIT
36454         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36455
36456 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36457
36458         Port test-getaddrinfo to Solaris.
36459         Problem reported by Bruno Haible in
36460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36461         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36462         explanation of setting 'hints'.
36463         Don't reject an implementation merely because it returns EAI_SERVICE.
36464         (EAI_SERVICE): Define to 0 if not defined.
36465
36466 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36467
36468         The license of gnu-make and posix-shell is now "GPLed build tool".
36469         * modules/gnu-make (License): Likewise.
36470         * modules/posix-shell (License): Likewise.
36471
36472         New module posix-shell, for determining a POSIX shell
36473         or perhaps something that is close enough to a POSIX shell.
36474         * m4/posix-shell.m4: New file.
36475         * modules/posix-shell: New file.
36476
36477         * MODULES.html.sh: Mention new module.
36478
36479         New module gnu-make, for determining whether we're using GNU Make.
36480         * m4/gnu-make.m4: New file.
36481         * modules/gnu-make: New file.
36482         * MODULES.html.sh: Mention new module.
36483
36484 2007-11-14  Jim Meyering  <meyering@redhat.com>
36485
36486         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36487         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36488         use this macro to create a function _definition_.
36489         Remove useless "#undef ARGMATCH_DIE".
36490
36491 2007-11-14  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/config.charset: Update for OpenBSD 4.1.
36494         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36495
36496 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36497
36498         Document 64-bit #if problems in stdint.texi.
36499         * doc/headers/stdint.texi (stdint.h): Mention problems with
36500         64-bit-#if, and how to work around them.
36501
36502         Don't insist on 'long long int' support in the preprocessor.  It
36503         breaks too many things.  For example, PRIdMAX still uses a 'long
36504         long int' format with the latest Sun compiler, even though
36505         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36506         preprocessor problem.  This causes the latest coreutils to dump
36507         core on Solaris 10 sparc with the Sun C compiler.
36508         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36509         the troublesome expressions at configure-time, not at #if-time.
36510         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36511         preprocessor.
36512         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36513         compile-time C checks, done at 'configure'-time.
36514         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36515         * modules/inttypes (Makefile): Substitute the new symbols that
36516         gl_INTTYPES_H now generates.
36517         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36518
36519 2007-11-12  Bruno Haible  <bruno@clisp.org>
36520
36521         Tests for Unicode character classification functions.
36522
36523         * modules/unictype/bidicategory-byname-tests: New file.
36524         * modules/unictype/bidicategory-name-tests: New file.
36525         * modules/unictype/bidicategory-of-tests: New file.
36526         * modules/unictype/bidicategory-test-tests: New file.
36527         * modules/unictype/block-list-tests: New file.
36528         * modules/unictype/block-of-tests: New file.
36529         * modules/unictype/block-test-tests: New file.
36530         * modules/unictype/category-C-tests: New file.
36531         * modules/unictype/category-Cc-tests: New file.
36532         * modules/unictype/category-Cf-tests: New file.
36533         * modules/unictype/category-Cn-tests: New file.
36534         * modules/unictype/category-Co-tests: New file.
36535         * modules/unictype/category-Cs-tests: New file.
36536         * modules/unictype/category-L-tests: New file.
36537         * modules/unictype/category-Ll-tests: New file.
36538         * modules/unictype/category-Lm-tests: New file.
36539         * modules/unictype/category-Lo-tests: New file.
36540         * modules/unictype/category-Lt-tests: New file.
36541         * modules/unictype/category-Lu-tests: New file.
36542         * modules/unictype/category-M-tests: New file.
36543         * modules/unictype/category-Mc-tests: New file.
36544         * modules/unictype/category-Me-tests: New file.
36545         * modules/unictype/category-Mn-tests: New file.
36546         * modules/unictype/category-N-tests: New file.
36547         * modules/unictype/category-Nd-tests: New file.
36548         * modules/unictype/category-Nl-tests: New file.
36549         * modules/unictype/category-No-tests: New file.
36550         * modules/unictype/category-P-tests: New file.
36551         * modules/unictype/category-Pc-tests: New file.
36552         * modules/unictype/category-Pd-tests: New file.
36553         * modules/unictype/category-Pe-tests: New file.
36554         * modules/unictype/category-Pf-tests: New file.
36555         * modules/unictype/category-Pi-tests: New file.
36556         * modules/unictype/category-Po-tests: New file.
36557         * modules/unictype/category-Ps-tests: New file.
36558         * modules/unictype/category-S-tests: New file.
36559         * modules/unictype/category-Sc-tests: New file.
36560         * modules/unictype/category-Sk-tests: New file.
36561         * modules/unictype/category-Sm-tests: New file.
36562         * modules/unictype/category-So-tests: New file.
36563         * modules/unictype/category-Z-tests: New file.
36564         * modules/unictype/category-Zl-tests: New file.
36565         * modules/unictype/category-Zp-tests: New file.
36566         * modules/unictype/category-Zs-tests: New file.
36567         * modules/unictype/category-and-not-tests: New file.
36568         * modules/unictype/category-and-tests: New file.
36569         * modules/unictype/category-byname-tests: New file.
36570         * modules/unictype/category-name-tests: New file.
36571         * modules/unictype/category-none-tests: New file.
36572         * modules/unictype/category-of-tests: New file.
36573         * modules/unictype/category-or-tests: New file.
36574         * modules/unictype/category-test-withtable-tests: New file.
36575         * modules/unictype/combining-class-tests: New file.
36576         * modules/unictype/ctype-alnum-tests: New file.
36577         * modules/unictype/ctype-alpha-tests: New file.
36578         * modules/unictype/ctype-blank-tests: New file.
36579         * modules/unictype/ctype-cntrl-tests: New file.
36580         * modules/unictype/ctype-digit-tests: New file.
36581         * modules/unictype/ctype-graph-tests: New file.
36582         * modules/unictype/ctype-lower-tests: New file.
36583         * modules/unictype/ctype-print-tests: New file.
36584         * modules/unictype/ctype-punct-tests: New file.
36585         * modules/unictype/ctype-space-tests: New file.
36586         * modules/unictype/ctype-upper-tests: New file.
36587         * modules/unictype/ctype-xdigit-tests: New file.
36588         * modules/unictype/decimal-digit-tests: New file.
36589         * modules/unictype/digit-tests: New file.
36590         * modules/unictype/mirror-tests: New file.
36591         * modules/unictype/numeric-tests: New file.
36592         * modules/unictype/property-alphabetic-tests: New file.
36593         * modules/unictype/property-ascii-hex-digit-tests: New file.
36594         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36595         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36596         * modules/unictype/property-bidi-block-separator-tests: New file.
36597         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36598         * modules/unictype/property-bidi-common-separator-tests: New file.
36599         * modules/unictype/property-bidi-control-tests: New file.
36600         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36601         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36602         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36603         * modules/unictype/property-bidi-european-digit-tests: New file.
36604         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36605         * modules/unictype/property-bidi-left-to-right-tests: New file.
36606         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36607         * modules/unictype/property-bidi-other-neutral-tests: New file.
36608         * modules/unictype/property-bidi-pdf-tests: New file.
36609         * modules/unictype/property-bidi-segment-separator-tests: New file.
36610         * modules/unictype/property-bidi-whitespace-tests: New file.
36611         * modules/unictype/property-byname-tests: New file.
36612         * modules/unictype/property-combining-tests: New file.
36613         * modules/unictype/property-composite-tests: New file.
36614         * modules/unictype/property-currency-symbol-tests: New file.
36615         * modules/unictype/property-dash-tests: New file.
36616         * modules/unictype/property-decimal-digit-tests: New file.
36617         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36618         * modules/unictype/property-deprecated-tests: New file.
36619         * modules/unictype/property-diacritic-tests: New file.
36620         * modules/unictype/property-extender-tests: New file.
36621         * modules/unictype/property-format-control-tests: New file.
36622         * modules/unictype/property-grapheme-base-tests: New file.
36623         * modules/unictype/property-grapheme-extend-tests: New file.
36624         * modules/unictype/property-grapheme-link-tests: New file.
36625         * modules/unictype/property-hex-digit-tests: New file.
36626         * modules/unictype/property-hyphen-tests: New file.
36627         * modules/unictype/property-id-continue-tests: New file.
36628         * modules/unictype/property-id-start-tests: New file.
36629         * modules/unictype/property-ideographic-tests: New file.
36630         * modules/unictype/property-ids-binary-operator-tests: New file.
36631         * modules/unictype/property-ids-trinary-operator-tests: New file.
36632         * modules/unictype/property-ignorable-control-tests: New file.
36633         * modules/unictype/property-iso-control-tests: New file.
36634         * modules/unictype/property-join-control-tests: New file.
36635         * modules/unictype/property-left-of-pair-tests: New file.
36636         * modules/unictype/property-line-separator-tests: New file.
36637         * modules/unictype/property-logical-order-exception-tests: New file.
36638         * modules/unictype/property-lowercase-tests: New file.
36639         * modules/unictype/property-math-tests: New file.
36640         * modules/unictype/property-non-break-tests: New file.
36641         * modules/unictype/property-not-a-character-tests: New file.
36642         * modules/unictype/property-numeric-tests: New file.
36643         * modules/unictype/property-other-alphabetic-tests: New file.
36644         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36645         * modules/unictype/property-other-grapheme-extend-tests: New file.
36646         * modules/unictype/property-other-id-continue-tests: New file.
36647         * modules/unictype/property-other-id-start-tests: New file.
36648         * modules/unictype/property-other-lowercase-tests: New file.
36649         * modules/unictype/property-other-math-tests: New file.
36650         * modules/unictype/property-other-uppercase-tests: New file.
36651         * modules/unictype/property-paired-punctuation-tests: New file.
36652         * modules/unictype/property-paragraph-separator-tests: New file.
36653         * modules/unictype/property-pattern-syntax-tests: New file.
36654         * modules/unictype/property-pattern-white-space-tests: New file.
36655         * modules/unictype/property-private-use-tests: New file.
36656         * modules/unictype/property-punctuation-tests: New file.
36657         * modules/unictype/property-quotation-mark-tests: New file.
36658         * modules/unictype/property-radical-tests: New file.
36659         * modules/unictype/property-sentence-terminal-tests: New file.
36660         * modules/unictype/property-soft-dotted-tests: New file.
36661         * modules/unictype/property-space-tests: New file.
36662         * modules/unictype/property-terminal-punctuation-tests: New file.
36663         * modules/unictype/property-test-tests: New file.
36664         * modules/unictype/property-titlecase-tests: New file.
36665         * modules/unictype/property-unassigned-code-value-tests: New file.
36666         * modules/unictype/property-unified-ideograph-tests: New file.
36667         * modules/unictype/property-uppercase-tests: New file.
36668         * modules/unictype/property-variation-selector-tests: New file.
36669         * modules/unictype/property-white-space-tests: New file.
36670         * modules/unictype/property-xid-continue-tests: New file.
36671         * modules/unictype/property-xid-start-tests: New file.
36672         * modules/unictype/property-zero-width-tests: New file.
36673         * modules/unictype/scripts-tests: New file.
36674         * modules/unictype/syntax-c-ident-tests: New file.
36675         * modules/unictype/syntax-c-whitespace-tests: New file.
36676         * modules/unictype/syntax-java-ident-tests: New file.
36677         * modules/unictype/syntax-java-whitespace-tests: New file.
36678         * tests/unictype/test-bidi_byname.c: New file.
36679         * tests/unictype/test-bidi_name.c: New file.
36680         * tests/unictype/test-bidi_of.c: New file.
36681         * tests/unictype/test-bidi_test.c: New file.
36682         * tests/unictype/test-block_list.c: New file.
36683         * tests/unictype/test-block_of.c: New file.
36684         * tests/unictype/test-block_test.c: New file.
36685         * tests/unictype/test-categ_and.c: New file.
36686         * tests/unictype/test-categ_and_not.c: New file.
36687         * tests/unictype/test-categ_byname.c: New file.
36688         * tests/unictype/test-categ_name.c: New file.
36689         * tests/unictype/test-categ_none.c: New file.
36690         * tests/unictype/test-categ_of.c: New file.
36691         * tests/unictype/test-categ_or.c: New file.
36692         * tests/unictype/test-categ_test_withtable.c: New file.
36693         * tests/unictype/test-combining.c: New file.
36694         * tests/unictype/test-decdigit.c: New file.
36695         * tests/unictype/test-digit.c: New file.
36696         * tests/unictype/test-mirror.c: New file.
36697         * tests/unictype/test-numeric.c: New file.
36698         * tests/unictype/test-pr_byname.c: New file.
36699         * tests/unictype/test-pr_test.c: New file.
36700         * tests/unictype/test-predicate-part1.h: New file.
36701         * tests/unictype/test-predicate-part2.h: New file.
36702         * tests/unictype/test-scripts.c: New file.
36703         * tests/unictype/test-sy_c_ident.c: New file.
36704         * tests/unictype/test-sy_java_ident.c: New file.
36705
36706         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
36707         for Unicode 5.0.0.
36708         * tests/unictype/test-categ_Cc.c: Likewise.
36709         * tests/unictype/test-categ_Cf.c: Likewise.
36710         * tests/unictype/test-categ_Cn.c: Likewise.
36711         * tests/unictype/test-categ_Co.c: Likewise.
36712         * tests/unictype/test-categ_Cs.c: Likewise.
36713         * tests/unictype/test-categ_L.c: Likewise.
36714         * tests/unictype/test-categ_Ll.c: Likewise.
36715         * tests/unictype/test-categ_Lm.c: Likewise.
36716         * tests/unictype/test-categ_Lo.c: Likewise.
36717         * tests/unictype/test-categ_Lt.c: Likewise.
36718         * tests/unictype/test-categ_Lu.c: Likewise.
36719         * tests/unictype/test-categ_M.c: Likewise.
36720         * tests/unictype/test-categ_Mc.c: Likewise.
36721         * tests/unictype/test-categ_Me.c: Likewise.
36722         * tests/unictype/test-categ_Mn.c: Likewise.
36723         * tests/unictype/test-categ_N.c: Likewise.
36724         * tests/unictype/test-categ_Nd.c: Likewise.
36725         * tests/unictype/test-categ_Nl.c: Likewise.
36726         * tests/unictype/test-categ_No.c: Likewise.
36727         * tests/unictype/test-categ_P.c: Likewise.
36728         * tests/unictype/test-categ_Pc.c: Likewise.
36729         * tests/unictype/test-categ_Pd.c: Likewise.
36730         * tests/unictype/test-categ_Pe.c: Likewise.
36731         * tests/unictype/test-categ_Pf.c: Likewise.
36732         * tests/unictype/test-categ_Pi.c: Likewise.
36733         * tests/unictype/test-categ_Po.c: Likewise.
36734         * tests/unictype/test-categ_Ps.c: Likewise.
36735         * tests/unictype/test-categ_S.c: Likewise.
36736         * tests/unictype/test-categ_Sc.c: Likewise.
36737         * tests/unictype/test-categ_Sk.c: Likewise.
36738         * tests/unictype/test-categ_Sm.c: Likewise.
36739         * tests/unictype/test-categ_So.c: Likewise.
36740         * tests/unictype/test-categ_Z.c: Likewise.
36741         * tests/unictype/test-categ_Zl.c: Likewise.
36742         * tests/unictype/test-categ_Zp.c: Likewise.
36743         * tests/unictype/test-categ_Zs.c: Likewise.
36744         * tests/unictype/test-ctype_alnum.c: Likewise.
36745         * tests/unictype/test-ctype_alpha.c: Likewise.
36746         * tests/unictype/test-ctype_blank.c: Likewise.
36747         * tests/unictype/test-ctype_cntrl.c: Likewise.
36748         * tests/unictype/test-ctype_digit.c: Likewise.
36749         * tests/unictype/test-ctype_graph.c: Likewise.
36750         * tests/unictype/test-ctype_lower.c: Likewise.
36751         * tests/unictype/test-ctype_print.c: Likewise.
36752         * tests/unictype/test-ctype_punct.c: Likewise.
36753         * tests/unictype/test-ctype_space.c: Likewise.
36754         * tests/unictype/test-ctype_upper.c: Likewise.
36755         * tests/unictype/test-ctype_xdigit.c: Likewise.
36756         * tests/unictype/test-decdigit.h: Likewise.
36757         * tests/unictype/test-digit.h: Likewise.
36758         * tests/unictype/test-numeric.h: Likewise.
36759         * tests/unictype/test-pr_alphabetic.c: Likewise.
36760         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
36761         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36762         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36763         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
36764         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36765         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
36766         * tests/unictype/test-pr_bidi_control.c: Likewise.
36767         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
36768         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
36769         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36770         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36771         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36772         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36773         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36774         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36775         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
36776         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
36777         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
36778         * tests/unictype/test-pr_combining.c: Likewise.
36779         * tests/unictype/test-pr_composite.c: Likewise.
36780         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36781         * tests/unictype/test-pr_dash.c: Likewise.
36782         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36783         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
36784         * tests/unictype/test-pr_deprecated.c: Likewise.
36785         * tests/unictype/test-pr_diacritic.c: Likewise.
36786         * tests/unictype/test-pr_extender.c: Likewise.
36787         * tests/unictype/test-pr_format_control.c: Likewise.
36788         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36789         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36790         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36791         * tests/unictype/test-pr_hex_digit.c: Likewise.
36792         * tests/unictype/test-pr_hyphen.c: Likewise.
36793         * tests/unictype/test-pr_id_continue.c: Likewise.
36794         * tests/unictype/test-pr_id_start.c: Likewise.
36795         * tests/unictype/test-pr_ideographic.c: Likewise.
36796         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
36797         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
36798         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36799         * tests/unictype/test-pr_iso_control.c: Likewise.
36800         * tests/unictype/test-pr_join_control.c: Likewise.
36801         * tests/unictype/test-pr_left_of_pair.c: Likewise.
36802         * tests/unictype/test-pr_line_separator.c: Likewise.
36803         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36804         * tests/unictype/test-pr_lowercase.c: Likewise.
36805         * tests/unictype/test-pr_math.c: Likewise.
36806         * tests/unictype/test-pr_non_break.c: Likewise.
36807         * tests/unictype/test-pr_not_a_character.c: Likewise.
36808         * tests/unictype/test-pr_numeric.c: Likewise.
36809         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36810         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36811         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36812         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36813         * tests/unictype/test-pr_other_id_start.c: Likewise.
36814         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36815         * tests/unictype/test-pr_other_math.c: Likewise.
36816         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36817         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36818         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36819         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36820         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36821         * tests/unictype/test-pr_private_use.c: Likewise.
36822         * tests/unictype/test-pr_punctuation.c: Likewise.
36823         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36824         * tests/unictype/test-pr_radical.c: Likewise.
36825         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36826         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36827         * tests/unictype/test-pr_space.c: Likewise.
36828         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36829         * tests/unictype/test-pr_titlecase.c: Likewise.
36830         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36831         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36832         * tests/unictype/test-pr_uppercase.c: Likewise.
36833         * tests/unictype/test-pr_variation_selector.c: Likewise.
36834         * tests/unictype/test-pr_white_space.c: Likewise.
36835         * tests/unictype/test-pr_xid_continue.c: Likewise.
36836         * tests/unictype/test-pr_xid_start.c: Likewise.
36837         * tests/unictype/test-pr_zero_width.c: Likewise.
36838         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36839         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36840
36841 2007-11-12  Bruno Haible  <bruno@clisp.org>
36842
36843         Unicode character classification functions.
36844         * lib/unictype.h: New file.
36845         * modules/unictype/base: New file.
36846         * modules/unictype/category-L: New file.
36847         * modules/unictype/category-Lu: New file.
36848         * modules/unictype/category-Ll: New file.
36849         * modules/unictype/category-Lt: New file.
36850         * modules/unictype/category-Lm: New file.
36851         * modules/unictype/category-Lo: New file.
36852         * modules/unictype/category-M: New file.
36853         * modules/unictype/category-Mn: New file.
36854         * modules/unictype/category-Mc: New file.
36855         * modules/unictype/category-Me: New file.
36856         * modules/unictype/category-N: New file.
36857         * modules/unictype/category-Nd: New file.
36858         * modules/unictype/category-Nl: New file.
36859         * modules/unictype/category-No: New file.
36860         * modules/unictype/category-P: New file.
36861         * modules/unictype/category-Pc: New file.
36862         * modules/unictype/category-Pd: New file.
36863         * modules/unictype/category-Ps: New file.
36864         * modules/unictype/category-Pe: New file.
36865         * modules/unictype/category-Pi: New file.
36866         * modules/unictype/category-Pf: New file.
36867         * modules/unictype/category-Po: New file.
36868         * modules/unictype/category-S: New file.
36869         * modules/unictype/category-Sm: New file.
36870         * modules/unictype/category-Sc: New file.
36871         * modules/unictype/category-Sk: New file.
36872         * modules/unictype/category-So: New file.
36873         * modules/unictype/category-Z: New file.
36874         * modules/unictype/category-Zs: New file.
36875         * modules/unictype/category-Zl: New file.
36876         * modules/unictype/category-Zp: New file.
36877         * modules/unictype/category-C: New file.
36878         * modules/unictype/category-Cc: New file.
36879         * modules/unictype/category-Cf: New file.
36880         * modules/unictype/category-Cs: New file.
36881         * modules/unictype/category-Co: New file.
36882         * modules/unictype/category-Cn: New file.
36883         * modules/unictype/category-or: New file.
36884         * modules/unictype/category-of: New file.
36885         * modules/unictype/category-test: New file.
36886         * modules/unictype/category-test-withtable: New file.
36887         * modules/unictype/category-byname: New file.
36888         * modules/unictype/category-none: New file.
36889         * modules/unictype/category-and: New file.
36890         * modules/unictype/category-and-not: New file.
36891         * modules/unictype/category-name: New file.
36892         * modules/unictype/combining-class: New file.
36893         * modules/unictype/category-all: New file.
36894         * modules/unictype/bidicategory-all: New file.
36895         * modules/unictype/bidicategory-byname: New file.
36896         * modules/unictype/bidicategory-name: New file.
36897         * modules/unictype/bidicategory-of: New file.
36898         * modules/unictype/bidicategory-test: New file.
36899         * modules/unictype/decimal-digit: New file.
36900         * modules/unictype/digit: New file.
36901         * modules/unictype/numeric: New file.
36902         * modules/unictype/mirror: New file.
36903         * modules/unictype/property-white-space: New file.
36904         * modules/unictype/property-alphabetic: New file.
36905         * modules/unictype/property-other-alphabetic: New file.
36906         * modules/unictype/property-not-a-character: New file.
36907         * modules/unictype/property-default-ignorable-code-point: New file.
36908         * modules/unictype/property-other-default-ignorable-code-point: New
36909         file.
36910         * modules/unictype/property-deprecated: New file.
36911         * modules/unictype/property-logical-order-exception: New file.
36912         * modules/unictype/property-variation-selector: New file.
36913         * modules/unictype/property-private-use: New file.
36914         * modules/unictype/property-unassigned-code-value: New file.
36915         * modules/unictype/property-uppercase: New file.
36916         * modules/unictype/property-other-uppercase: New file.
36917         * modules/unictype/property-lowercase: New file.
36918         * modules/unictype/property-other-lowercase: New file.
36919         * modules/unictype/property-titlecase: New file.
36920         * modules/unictype/property-soft-dotted: New file.
36921         * modules/unictype/property-id-start: New file.
36922         * modules/unictype/property-other-id-start: New file.
36923         * modules/unictype/property-id-continue: New file.
36924         * modules/unictype/property-other-id-continue: New file.
36925         * modules/unictype/property-xid-start: New file.
36926         * modules/unictype/property-xid-continue: New file.
36927         * modules/unictype/property-pattern-white-space: New file.
36928         * modules/unictype/property-pattern-syntax: New file.
36929         * modules/unictype/property-join-control: New file.
36930         * modules/unictype/property-grapheme-base: New file.
36931         * modules/unictype/property-grapheme-extend: New file.
36932         * modules/unictype/property-other-grapheme-extend: New file.
36933         * modules/unictype/property-grapheme-link: New file.
36934         * modules/unictype/property-bidi-control: New file.
36935         * modules/unictype/property-bidi-left-to-right: New file.
36936         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36937         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36938         * modules/unictype/property-bidi-european-digit: New file.
36939         * modules/unictype/property-bidi-eur-num-separator: New file.
36940         * modules/unictype/property-bidi-eur-num-terminator: New file.
36941         * modules/unictype/property-bidi-arabic-digit: New file.
36942         * modules/unictype/property-bidi-common-separator: New file.
36943         * modules/unictype/property-bidi-block-separator: New file.
36944         * modules/unictype/property-bidi-segment-separator: New file.
36945         * modules/unictype/property-bidi-whitespace: New file.
36946         * modules/unictype/property-bidi-non-spacing-mark: New file.
36947         * modules/unictype/property-bidi-boundary-neutral: New file.
36948         * modules/unictype/property-bidi-pdf: New file.
36949         * modules/unictype/property-bidi-embedding-or-override: New file.
36950         * modules/unictype/property-bidi-other-neutral: New file.
36951         * modules/unictype/property-hex-digit: New file.
36952         * modules/unictype/property-ascii-hex-digit: New file.
36953         * modules/unictype/property-ideographic: New file.
36954         * modules/unictype/property-unified-ideograph: New file.
36955         * modules/unictype/property-radical: New file.
36956         * modules/unictype/property-ids-binary-operator: New file.
36957         * modules/unictype/property-ids-trinary-operator: New file.
36958         * modules/unictype/property-zero-width: New file.
36959         * modules/unictype/property-space: New file.
36960         * modules/unictype/property-non-break: New file.
36961         * modules/unictype/property-iso-control: New file.
36962         * modules/unictype/property-format-control: New file.
36963         * modules/unictype/property-dash: New file.
36964         * modules/unictype/property-hyphen: New file.
36965         * modules/unictype/property-punctuation: New file.
36966         * modules/unictype/property-line-separator: New file.
36967         * modules/unictype/property-paragraph-separator: New file.
36968         * modules/unictype/property-quotation-mark: New file.
36969         * modules/unictype/property-sentence-terminal: New file.
36970         * modules/unictype/property-terminal-punctuation: New file.
36971         * modules/unictype/property-currency-symbol: New file.
36972         * modules/unictype/property-math: New file.
36973         * modules/unictype/property-other-math: New file.
36974         * modules/unictype/property-paired-punctuation: New file.
36975         * modules/unictype/property-left-of-pair: New file.
36976         * modules/unictype/property-combining: New file.
36977         * modules/unictype/property-composite: New file.
36978         * modules/unictype/property-decimal-digit: New file.
36979         * modules/unictype/property-numeric: New file.
36980         * modules/unictype/property-diacritic: New file.
36981         * modules/unictype/property-extender: New file.
36982         * modules/unictype/property-ignorable-control: New file.
36983         * modules/unictype/property-test: New file.
36984         * modules/unictype/property-byname: New file.
36985         * modules/unictype/property-all: New file.
36986         * modules/unictype/scripts: New file.
36987         * modules/unictype/scripts-all: New file.
36988         * modules/unictype/block-of: New file.
36989         * modules/unictype/block-test: New file.
36990         * modules/unictype/block-list: New file.
36991         * modules/unictype/block-all: New file.
36992         * modules/unictype/syntax-c-whitespace: New file.
36993         * modules/unictype/syntax-java-whitespace: New file.
36994         * modules/unictype/syntax-c-ident: New file.
36995         * modules/unictype/syntax-java-ident: New file.
36996         * modules/unictype/ctype-alnum: New file.
36997         * modules/unictype/ctype-alpha: New file.
36998         * modules/unictype/ctype-cntrl: New file.
36999         * modules/unictype/ctype-digit: New file.
37000         * modules/unictype/ctype-graph: New file.
37001         * modules/unictype/ctype-lower: New file.
37002         * modules/unictype/ctype-print: New file.
37003         * modules/unictype/ctype-punct: New file.
37004         * modules/unictype/ctype-space: New file.
37005         * modules/unictype/ctype-upper: New file.
37006         * modules/unictype/ctype-xdigit: New file.
37007         * modules/unictype/ctype-blank: New file.
37008         * lib/unictype/bidi_byname.c: New file.
37009         * lib/unictype/bidi_name.c: New file.
37010         * lib/unictype/bidi_of.c: New file.
37011         * lib/unictype/bidi_test.c: New file.
37012         * lib/unictype/bitmap.h: New file.
37013         * lib/unictype/block_test.c: New file.
37014         * lib/unictype/blocks.c: New file.
37015         * lib/unictype/categ_C.c: New file.
37016         * lib/unictype/categ_Cc.c: New file.
37017         * lib/unictype/categ_Cf.c: New file.
37018         * lib/unictype/categ_Cn.c: New file.
37019         * lib/unictype/categ_Co.c: New file.
37020         * lib/unictype/categ_Cs.c: New file.
37021         * lib/unictype/categ_L.c: New file.
37022         * lib/unictype/categ_Ll.c: New file.
37023         * lib/unictype/categ_Lm.c: New file.
37024         * lib/unictype/categ_Lo.c: New file.
37025         * lib/unictype/categ_Lt.c: New file.
37026         * lib/unictype/categ_Lu.c: New file.
37027         * lib/unictype/categ_M.c: New file.
37028         * lib/unictype/categ_Mc.c: New file.
37029         * lib/unictype/categ_Me.c: New file.
37030         * lib/unictype/categ_Mn.c: New file.
37031         * lib/unictype/categ_N.c: New file.
37032         * lib/unictype/categ_Nd.c: New file.
37033         * lib/unictype/categ_Nl.c: New file.
37034         * lib/unictype/categ_No.c: New file.
37035         * lib/unictype/categ_P.c: New file.
37036         * lib/unictype/categ_Pc.c: New file.
37037         * lib/unictype/categ_Pd.c: New file.
37038         * lib/unictype/categ_Pe.c: New file.
37039         * lib/unictype/categ_Pf.c: New file.
37040         * lib/unictype/categ_Pi.c: New file.
37041         * lib/unictype/categ_Po.c: New file.
37042         * lib/unictype/categ_Ps.c: New file.
37043         * lib/unictype/categ_S.c: New file.
37044         * lib/unictype/categ_Sc.c: New file.
37045         * lib/unictype/categ_Sk.c: New file.
37046         * lib/unictype/categ_Sm.c: New file.
37047         * lib/unictype/categ_So.c: New file.
37048         * lib/unictype/categ_Z.c: New file.
37049         * lib/unictype/categ_Zl.c: New file.
37050         * lib/unictype/categ_Zp.c: New file.
37051         * lib/unictype/categ_Zs.c: New file.
37052         * lib/unictype/categ_and.c: New file.
37053         * lib/unictype/categ_and_not.c: New file.
37054         * lib/unictype/categ_byname.c: New file.
37055         * lib/unictype/categ_name.c: New file.
37056         * lib/unictype/categ_none.c: New file.
37057         * lib/unictype/categ_of.c: New file.
37058         * lib/unictype/categ_or.c: New file.
37059         * lib/unictype/categ_test.c: New file.
37060         * lib/unictype/combining.c: New file.
37061         * lib/unictype/ctype_alnum.c: New file.
37062         * lib/unictype/ctype_alpha.c: New file.
37063         * lib/unictype/ctype_blank.c: New file.
37064         * lib/unictype/ctype_cntrl.c: New file.
37065         * lib/unictype/ctype_digit.c: New file.
37066         * lib/unictype/ctype_graph.c: New file.
37067         * lib/unictype/ctype_lower.c: New file.
37068         * lib/unictype/ctype_print.c: New file.
37069         * lib/unictype/ctype_punct.c: New file.
37070         * lib/unictype/ctype_space.c: New file.
37071         * lib/unictype/ctype_upper.c: New file.
37072         * lib/unictype/ctype_xdigit.c: New file.
37073         * lib/unictype/decdigit.c: New file.
37074         * lib/unictype/digit.c: New file.
37075         * lib/unictype/identsyntaxmap.h: New file.
37076         * lib/unictype/mirror.c: New file.
37077         * lib/unictype/numeric.c: New file.
37078         * lib/unictype/pr_alphabetic.c: New file.
37079         * lib/unictype/pr_ascii_hex_digit.c: New file.
37080         * lib/unictype/pr_bidi_arabic_digit.c: New file.
37081         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
37082         * lib/unictype/pr_bidi_block_separator.c: New file.
37083         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
37084         * lib/unictype/pr_bidi_common_separator.c: New file.
37085         * lib/unictype/pr_bidi_control.c: New file.
37086         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
37087         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
37088         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
37089         * lib/unictype/pr_bidi_european_digit.c: New file.
37090         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
37091         * lib/unictype/pr_bidi_left_to_right.c: New file.
37092         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
37093         * lib/unictype/pr_bidi_other_neutral.c: New file.
37094         * lib/unictype/pr_bidi_pdf.c: New file.
37095         * lib/unictype/pr_bidi_segment_separator.c: New file.
37096         * lib/unictype/pr_bidi_whitespace.c: New file.
37097         * lib/unictype/pr_byname.c: New file.
37098         * lib/unictype/pr_byname.gperf: New file.
37099         * lib/unictype/pr_combining.c: New file.
37100         * lib/unictype/pr_composite.c: New file.
37101         * lib/unictype/pr_currency_symbol.c: New file.
37102         * lib/unictype/pr_dash.c: New file.
37103         * lib/unictype/pr_decimal_digit.c: New file.
37104         * lib/unictype/pr_default_ignorable_code_point.c: New file.
37105         * lib/unictype/pr_deprecated.c: New file.
37106         * lib/unictype/pr_diacritic.c: New file.
37107         * lib/unictype/pr_extender.c: New file.
37108         * lib/unictype/pr_format_control.c: New file.
37109         * lib/unictype/pr_grapheme_base.c: New file.
37110         * lib/unictype/pr_grapheme_extend.c: New file.
37111         * lib/unictype/pr_grapheme_link.c: New file.
37112         * lib/unictype/pr_hex_digit.c: New file.
37113         * lib/unictype/pr_hyphen.c: New file.
37114         * lib/unictype/pr_id_continue.c: New file.
37115         * lib/unictype/pr_id_start.c: New file.
37116         * lib/unictype/pr_ideographic.c: New file.
37117         * lib/unictype/pr_ids_binary_operator.c: New file.
37118         * lib/unictype/pr_ids_trinary_operator.c: New file.
37119         * lib/unictype/pr_ignorable_control.c: New file.
37120         * lib/unictype/pr_iso_control.c: New file.
37121         * lib/unictype/pr_join_control.c: New file.
37122         * lib/unictype/pr_left_of_pair.c: New file.
37123         * lib/unictype/pr_line_separator.c: New file.
37124         * lib/unictype/pr_logical_order_exception.c: New file.
37125         * lib/unictype/pr_lowercase.c: New file.
37126         * lib/unictype/pr_math.c: New file.
37127         * lib/unictype/pr_non_break.c: New file.
37128         * lib/unictype/pr_not_a_character.c: New file.
37129         * lib/unictype/pr_numeric.c: New file.
37130         * lib/unictype/pr_other_alphabetic.c: New file.
37131         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
37132         * lib/unictype/pr_other_grapheme_extend.c: New file.
37133         * lib/unictype/pr_other_id_continue.c: New file.
37134         * lib/unictype/pr_other_id_start.c: New file.
37135         * lib/unictype/pr_other_lowercase.c: New file.
37136         * lib/unictype/pr_other_math.c: New file.
37137         * lib/unictype/pr_other_uppercase.c: New file.
37138         * lib/unictype/pr_paired_punctuation.c: New file.
37139         * lib/unictype/pr_paragraph_separator.c: New file.
37140         * lib/unictype/pr_pattern_syntax.c: New file.
37141         * lib/unictype/pr_pattern_white_space.c: New file.
37142         * lib/unictype/pr_private_use.c: New file.
37143         * lib/unictype/pr_punctuation.c: New file.
37144         * lib/unictype/pr_quotation_mark.c: New file.
37145         * lib/unictype/pr_radical.c: New file.
37146         * lib/unictype/pr_sentence_terminal.c: New file.
37147         * lib/unictype/pr_soft_dotted.c: New file.
37148         * lib/unictype/pr_space.c: New file.
37149         * lib/unictype/pr_terminal_punctuation.c: New file.
37150         * lib/unictype/pr_test.c: New file.
37151         * lib/unictype/pr_titlecase.c: New file.
37152         * lib/unictype/pr_unassigned_code_value.c: New file.
37153         * lib/unictype/pr_unified_ideograph.c: New file.
37154         * lib/unictype/pr_uppercase.c: New file.
37155         * lib/unictype/pr_variation_selector.c: New file.
37156         * lib/unictype/pr_white_space.c: New file.
37157         * lib/unictype/pr_xid_continue.c: New file.
37158         * lib/unictype/pr_xid_start.c: New file.
37159         * lib/unictype/pr_zero_width.c: New file.
37160         * lib/unictype/scripts.c: New file.
37161         * lib/unictype/sy_c_ident.c: New file.
37162         * lib/unictype/sy_c_whitespace.c: New file.
37163         * lib/unictype/sy_java_ident.c: New file.
37164         * lib/unictype/sy_java_whitespace.c: New file.
37165
37166         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
37167         Unicode 5.0.0.
37168         * lib/unictype/blocks.h: Likewise.
37169         * lib/unictype/categ_C.h: Likewise.
37170         * lib/unictype/categ_Cc.h: Likewise.
37171         * lib/unictype/categ_Cf.h: Likewise.
37172         * lib/unictype/categ_Cn.h: Likewise.
37173         * lib/unictype/categ_Co.h: Likewise.
37174         * lib/unictype/categ_Cs.h: Likewise.
37175         * lib/unictype/categ_L.h: Likewise.
37176         * lib/unictype/categ_Ll.h: Likewise.
37177         * lib/unictype/categ_Lm.h: Likewise.
37178         * lib/unictype/categ_Lo.h: Likewise.
37179         * lib/unictype/categ_Lt.h: Likewise.
37180         * lib/unictype/categ_Lu.h: Likewise.
37181         * lib/unictype/categ_M.h: Likewise.
37182         * lib/unictype/categ_Mc.h: Likewise.
37183         * lib/unictype/categ_Me.h: Likewise.
37184         * lib/unictype/categ_Mn.h: Likewise.
37185         * lib/unictype/categ_N.h: Likewise.
37186         * lib/unictype/categ_Nd.h: Likewise.
37187         * lib/unictype/categ_Nl.h: Likewise.
37188         * lib/unictype/categ_No.h: Likewise.
37189         * lib/unictype/categ_P.h: Likewise.
37190         * lib/unictype/categ_Pc.h: Likewise.
37191         * lib/unictype/categ_Pd.h: Likewise.
37192         * lib/unictype/categ_Pe.h: Likewise.
37193         * lib/unictype/categ_Pf.h: Likewise.
37194         * lib/unictype/categ_Pi.h: Likewise.
37195         * lib/unictype/categ_Po.h: Likewise.
37196         * lib/unictype/categ_Ps.h: Likewise.
37197         * lib/unictype/categ_S.h: Likewise.
37198         * lib/unictype/categ_Sc.h: Likewise.
37199         * lib/unictype/categ_Sk.h: Likewise.
37200         * lib/unictype/categ_Sm.h: Likewise.
37201         * lib/unictype/categ_So.h: Likewise.
37202         * lib/unictype/categ_Z.h: Likewise.
37203         * lib/unictype/categ_Zl.h: Likewise.
37204         * lib/unictype/categ_Zp.h: Likewise.
37205         * lib/unictype/categ_Zs.h: Likewise.
37206         * lib/unictype/categ_of.h: Likewise.
37207         * lib/unictype/combining.h: Likewise.
37208         * lib/unictype/ctype_alnum.h: Likewise.
37209         * lib/unictype/ctype_alpha.h: Likewise.
37210         * lib/unictype/ctype_blank.h: Likewise.
37211         * lib/unictype/ctype_cntrl.h: Likewise.
37212         * lib/unictype/ctype_digit.h: Likewise.
37213         * lib/unictype/ctype_graph.h: Likewise.
37214         * lib/unictype/ctype_lower.h: Likewise.
37215         * lib/unictype/ctype_print.h: Likewise.
37216         * lib/unictype/ctype_punct.h: Likewise.
37217         * lib/unictype/ctype_space.h: Likewise.
37218         * lib/unictype/ctype_upper.h: Likewise.
37219         * lib/unictype/ctype_xdigit.h: Likewise.
37220         * lib/unictype/decdigit.h: Likewise.
37221         * lib/unictype/digit.h: Likewise.
37222         * lib/unictype/mirror.h: Likewise.
37223         * lib/unictype/numeric.h: Likewise.
37224         * lib/unictype/pr_alphabetic.h: Likewise.
37225         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37226         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37227         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37228         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37229         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37230         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37231         * lib/unictype/pr_bidi_control.h: Likewise.
37232         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37233         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37234         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37235         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37236         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37237         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37238         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37239         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37240         * lib/unictype/pr_bidi_pdf.h: Likewise.
37241         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37242         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37243         * lib/unictype/pr_combining.h: Likewise.
37244         * lib/unictype/pr_composite.h: Likewise.
37245         * lib/unictype/pr_currency_symbol.h: Likewise.
37246         * lib/unictype/pr_dash.h: Likewise.
37247         * lib/unictype/pr_decimal_digit.h: Likewise.
37248         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37249         * lib/unictype/pr_deprecated.h: Likewise.
37250         * lib/unictype/pr_diacritic.h: Likewise.
37251         * lib/unictype/pr_extender.h: Likewise.
37252         * lib/unictype/pr_format_control.h: Likewise.
37253         * lib/unictype/pr_grapheme_base.h: Likewise.
37254         * lib/unictype/pr_grapheme_extend.h: Likewise.
37255         * lib/unictype/pr_grapheme_link.h: Likewise.
37256         * lib/unictype/pr_hex_digit.h: Likewise.
37257         * lib/unictype/pr_hyphen.h: Likewise.
37258         * lib/unictype/pr_id_continue.h: Likewise.
37259         * lib/unictype/pr_id_start.h: Likewise.
37260         * lib/unictype/pr_ideographic.h: Likewise.
37261         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37262         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37263         * lib/unictype/pr_ignorable_control.h: Likewise.
37264         * lib/unictype/pr_iso_control.h: Likewise.
37265         * lib/unictype/pr_join_control.h: Likewise.
37266         * lib/unictype/pr_left_of_pair.h: Likewise.
37267         * lib/unictype/pr_line_separator.h: Likewise.
37268         * lib/unictype/pr_logical_order_exception.h: Likewise.
37269         * lib/unictype/pr_lowercase.h: Likewise.
37270         * lib/unictype/pr_math.h: Likewise.
37271         * lib/unictype/pr_non_break.h: Likewise.
37272         * lib/unictype/pr_not_a_character.h: Likewise.
37273         * lib/unictype/pr_numeric.h: Likewise.
37274         * lib/unictype/pr_other_alphabetic.h: Likewise.
37275         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37276         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37277         * lib/unictype/pr_other_id_continue.h: Likewise.
37278         * lib/unictype/pr_other_id_start.h: Likewise.
37279         * lib/unictype/pr_other_lowercase.h: Likewise.
37280         * lib/unictype/pr_other_math.h: Likewise.
37281         * lib/unictype/pr_other_uppercase.h: Likewise.
37282         * lib/unictype/pr_paired_punctuation.h: Likewise.
37283         * lib/unictype/pr_paragraph_separator.h: Likewise.
37284         * lib/unictype/pr_pattern_syntax.h: Likewise.
37285         * lib/unictype/pr_pattern_white_space.h: Likewise.
37286         * lib/unictype/pr_private_use.h: Likewise.
37287         * lib/unictype/pr_punctuation.h: Likewise.
37288         * lib/unictype/pr_quotation_mark.h: Likewise.
37289         * lib/unictype/pr_radical.h: Likewise.
37290         * lib/unictype/pr_sentence_terminal.h: Likewise.
37291         * lib/unictype/pr_soft_dotted.h: Likewise.
37292         * lib/unictype/pr_space.h: Likewise.
37293         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37294         * lib/unictype/pr_titlecase.h: Likewise.
37295         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37296         * lib/unictype/pr_unified_ideograph.h: Likewise.
37297         * lib/unictype/pr_uppercase.h: Likewise.
37298         * lib/unictype/pr_variation_selector.h: Likewise.
37299         * lib/unictype/pr_white_space.h: Likewise.
37300         * lib/unictype/pr_xid_continue.h: Likewise.
37301         * lib/unictype/pr_xid_start.h: Likewise.
37302         * lib/unictype/pr_zero_width.h: Likewise.
37303         * lib/unictype/scripts.h: Likewise.
37304         * lib/unictype/scripts_byname.gperf: Likewise.
37305         * lib/unictype/sy_c_ident.h: Likewise.
37306         * lib/unictype/sy_c_whitespace.h: Likewise.
37307         * lib/unictype/sy_java_ident.h: Likewise.
37308         * lib/unictype/sy_java_whitespace.h: Likewise.
37309
37310         * lib/unictype/Makefile: New file.
37311         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
37312         glibc.
37313         * lib/unictype/3level.h: New file, copied from glibc.
37314         * lib/unictype/3levelbit.h: New file.
37315
37316 2007-11-11  Bruno Haible  <bruno@clisp.org>
37317
37318         * modules/gperf: New file.
37319         * modules/iconv_open (Depends-on): Add it.
37320         (Makefile.am): Remove the GPERF definition.
37321
37322 2007-11-11  Bruno Haible  <bruno@clisp.org>
37323
37324         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
37325         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
37326
37327 2007-11-11  Bruno Haible  <bruno@clisp.org>
37328
37329         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
37330         (usage): Remove function.
37331
37332 2007-11-11  Bruno Haible  <bruno@clisp.org>
37333
37334         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
37335         gl_FUNC_CEILF_LIBS.
37336         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
37337         gl_FUNC_CEIL_LIBS.
37338         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
37339         gl_FUNC_CEILL_LIBS.
37340         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
37341         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
37342         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
37343
37344 2007-11-11  Bruno Haible  <bruno@clisp.org>
37345
37346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
37347         roundf were declared but do not exist on functions.
37348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
37349         roundl were declared but do not exist on functions.
37350         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
37351         HAVE_FLOORL_AND_CEILL, respectively.
37352         Needed for Sun C on Solaris 10.
37353
37354 2007-11-11  Bruno Haible  <bruno@clisp.org>
37355
37356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
37357         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
37358         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
37359         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
37360         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
37361         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
37362         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
37363         HAVE_DECL_ROUNDF.
37364         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
37365         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
37366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37367         of HAVE_DECL_ROUND*.
37368         * modules/math (Makefile.am): Update.
37369
37370 2007-11-10  Bruno Haible  <bruno@clisp.org>
37371
37372         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37373         ptrdiff_t as m4/intl.m4.
37374
37375 2007-11-10  Jim Meyering  <meyering@redhat.com>
37376
37377         Avoid link failure for the argmatch test.
37378         * tests/test-argmatch.c (usage): Define function to avoid a link
37379         failure: argmatch_die requires a usage function.
37380
37381 2007-11-09  Bruno Haible  <bruno@clisp.org>
37382
37383         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37384         * doc/functions/vsnprintf.texi: Likewise.
37385         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37386         with a size argument < 2.
37387
37388 2007-11-09  Bruno Haible  <bruno@clisp.org>
37389
37390         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37391         buffer. Fixes an inefficiency introduced on 2007-11-03.
37392
37393 2007-11-09  Bruno Haible  <bruno@clisp.org>
37394
37395         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37396         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37397
37398 2007-11-08  Jim Meyering  <meyering@redhat.com>
37399
37400         Change cache variable name prefix "jm_" to "gl_" everywhere.
37401         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37402         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37403         * m4/uptime.m4: s/gl_/jm_/
37404
37405 2007-11-07  Bruno Haible  <bruno@clisp.org>
37406
37407         Update to GNU gettext 0.17.
37408         * m4/intl.m4: Update to GNU gettext 0.17.
37409         * m4/po.m4: Likewise.
37410         * modules/gettext (Files): Remove m4/ulonglong.m4.
37411         (configure.ac): Require gettext infrastructure from version 0.17.
37412
37413 2007-11-06  Bruno Haible  <bruno@clisp.org>
37414
37415         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37416         symbolic values are not defined in a public header.
37417         * lib/freadable.c (freadable) [QNX]: Likewise.
37418         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37419         * lib/freading.c (freading) [QNX]: Likewise.
37420         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37421         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37422         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37423         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37424         Reported by Alain Magloire.
37425
37426         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37427
37428 2007-11-05  Bruno Haible  <bruno@clisp.org>
37429
37430         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37431         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37432         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37433         Reported by Eric Blake.
37434
37435 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37436             Bruno Haible  <bruno@clisp.org>
37437
37438         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37439         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37440         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37441         (malloc): Undefine also before including <stdlib.h>.
37442         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37443         Needed on OSF/1 4.0.
37444
37445 2007-11-05  Jim Meyering  <meyering@redhat.com>
37446
37447         git-version-gen: sync from coreutils.
37448         * build-aux/git-version-gen: Add comments.
37449         Change the first '-' to '.' in the snapshot version string,
37450         e.g., 6.9-377-08144 -> 6.9.377-08144
37451         Remove first parameter.
37452         Don't declare a version "-dirty" merely because a time
37453         stamp has changed.
37454
37455 2007-11-04  Bruno Haible  <bruno@clisp.org>
37456
37457         * lib/lock.h: Protect all macro definitions containing an 'if'
37458         statement through a "do { ... } while (0)".
37459         * lib/tls.h: Likewise.
37460
37461 2007-11-04  Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37464
37465 2007-11-04  Bruno Haible  <bruno@clisp.org>
37466
37467         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37468         * modules/fprintf-posix (Depends-on): Add nocrash.
37469         * modules/snprintf-posix (Depends-on): Likewise.
37470         * modules/sprintf-posix (Depends-on): Likewise.
37471         * modules/vasnprintf-posix (Depends-on): Likewise.
37472         * modules/vasprintf-posix (Depends-on): Likewise.
37473         * modules/vfprintf-posix (Depends-on): Likewise.
37474         * modules/vsnprintf-posix (Depends-on): Likewise.
37475         * modules/vsprintf-posix (Depends-on): Likewise.
37476         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37477         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37478         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37479         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37480         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37481         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37482         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37483
37484 2007-11-04  Bruno Haible  <bruno@clisp.org>
37485
37486         * modules/nocrash: New file.
37487         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37488         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37489
37490 2007-11-04  Bruno Haible  <bruno@clisp.org>
37491
37492         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37493         precision handling.
37494         * tests/test-vasprintf-posix.c (test_function): Likewise.
37495         * tests/test-snprintf-posix.h (test_function): Likewise.
37496         * tests/test-sprintf-posix.h (test_function): Likewise.
37497
37498         Fix *printf behaviour for large precisions on mingw and BeOS.
37499         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37500         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37502         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37504         gl_PRINTF_PRECISION and test its result. Invoke
37505         gl_PREREQ_VASNPRINTF_PRECISION.
37506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37508         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37509         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37510         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37512         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37513         * doc/functions/fprintf.texi: Update.
37514         * doc/functions/printf.texi: Update.
37515         * doc/functions/snprintf.texi: Update.
37516         * doc/functions/sprintf.texi: Update.
37517         * doc/functions/vfprintf.texi: Update.
37518         * doc/functions/vprintf.texi: Update.
37519         * doc/functions/vsnprintf.texi: Update.
37520         * doc/functions/vsprintf.texi: Update.
37521
37522 2007-11-04  Bruno Haible  <bruno@clisp.org>
37523
37524         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37525
37526 2007-11-04  Bruno Haible  <bruno@clisp.org>
37527
37528         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37529         Reported by Sylvain Beucler <beuc@gnu.org>.
37530
37531 2007-11-03  Bruno Haible  <bruno@clisp.org>
37532
37533         * tests/test-fprintf-posix2.sh: New file.
37534         * tests/test-fprintf-posix2.c: New file.
37535         * modules/fprintf-posix-tests (Files): Add them.
37536         (TESTS): Add test-fprintf-posix2.sh.
37537         (configure.ac): Check for getrlimit and setrlimit.
37538         (check_PROGRAMS): Add test-fprintf-posix2.
37539
37540         * tests/test-printf-posix2.sh: New file.
37541         * tests/test-printf-posix2.c: New file.
37542         * modules/printf-posix-tests (Files): Add them.
37543         (TESTS): Add test-printf-posix2.sh.
37544         (configure.ac): Check for getrlimit and setrlimit.
37545         (check_PROGRAMS): Add test-printf-posix2.
37546
37547         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37548         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37549         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37550         (decode_double): New function, copied from decode_long_double.
37551         (scale10_round_decimal_decoded): New function, extracted from
37552         scale10_round_decimal_long_double.
37553         (scale10_round_decimal_long_double): Use it.
37554         (scale10_round_decimal_double): New function.
37555         (floorlog10): New function.
37556         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37558         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37560         gl_PRINTF_ENOMEM and test its result. Invoke
37561         gl_PREREQ_VASNPRINTF_ENOMEM.
37562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37569         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37570         * modules/snprintf-posix (Depends-on): Likewise.
37571         * modules/sprintf-posix (Depends-on): Likewise.
37572         * modules/vasnprintf-posix (Depends-on): Likewise.
37573         * modules/vasprintf-posix (Depends-on): Likewise.
37574         * modules/vfprintf-posix (Depends-on): Likewise.
37575         * modules/vsnprintf-posix (Depends-on): Likewise.
37576         * modules/vsprintf-posix (Depends-on): Likewise.
37577         * doc/functions/fprintf.texi: Update.
37578         * doc/functions/printf.texi: Update.
37579         * doc/functions/snprintf.texi: Update.
37580         * doc/functions/sprintf.texi: Update.
37581         * doc/functions/vfprintf.texi: Update.
37582         * doc/functions/vprintf.texi: Update.
37583         * doc/functions/vsnprintf.texi: Update.
37584         * doc/functions/vsprintf.texi: Update.
37585
37586 2007-11-03  Bruno Haible  <bruno@clisp.org>
37587
37588         * modules/frexp-nolibm-tests: New file.
37589
37590         * modules/frexp-nolibm: New file.
37591         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37592
37593 2007-11-03  Bruno Haible  <bruno@clisp.org>
37594
37595         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37596         value is C99 compliant.
37597         Needed for OSF/1 5.1.
37598
37599 2007-11-03  Bruno Haible  <bruno@clisp.org>
37600
37601         Fix out-of-memory handling of vasnprintf.
37602         * lib/printf-parse.c: Include <errno.h>.
37603         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37604         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37605         is already set.
37606
37607 2007-11-02  Eric Blake  <ebb9@byu.net>
37608
37609         Fix tests on cygwin.
37610         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37611
37612 2007-11-01  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37615         warning.
37616         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37617         needed for POSIX compatibility.
37618
37619 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37620
37621         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37622         for compatibility with GNU.
37623
37624 2007-11-01  Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37627         (putenv): Renamed from rpl_putenv. Change argument type from
37628         'const char *' to 'char *'.
37629         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37630         of defining putenv in config.h, just set REPLACE_PUTENV.
37631         * modules/putenv (Depends-on): Add stdlib.
37632         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37633         (Include): Use <stdlib.h>.
37634         * lib/stdlib.in.h (putenv): New declaration.
37635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37636         REPLACE_PUTENV.
37637         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37638         REPLACE_PUTENV.
37639         Needed for MacOS X 10.5.0.
37640         Reported by Peter O'Gorman <peter@pogma.com>.
37641
37642 2007-11-01  Jim Meyering  <meyering@redhat.com>
37643
37644         Treat an empty date string exactly like "0".
37645         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37646         if the remaining date string (to be parsed) is empty, use "0".
37647         Reported by Mischa Molhoek and discussed in this thread:
37648         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
37649
37650 2007-10-31  Bruno Haible  <bruno@clisp.org>
37651
37652         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
37653         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
37654         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
37655         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
37656         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
37657         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
37658
37659 2007-10-31  Bruno Haible  <bruno@clisp.org>
37660
37661         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
37662         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
37663         (AC_TYPE_LONG_LONG_INT): Use it.
37664         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
37665         it as well.
37666         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
37667         to m4/longlong.m4.
37668         * modules/stdint (Files): Remove m4/ulonglong.m4.
37669         * modules/strtoull (Files): Use m4/longlong.m4 instead of
37670         m4/ulonglong.m4.
37671         * modules/strtoumax (Files): Likewise.
37672
37673 2007-10-30  Bruno Haible  <bruno@clisp.org>
37674
37675         * modules/xvasprintf-posix: New file.
37676         Suggested by Eric Blake.
37677
37678 2007-10-30  Bruno Haible  <bruno@clisp.org>
37679
37680         * modules/xprintf-posix-tests: New file.
37681         * tests/test-xprintf-posix.sh: New file.
37682         * tests/test-xprintf-posix.c: New file.
37683         * tests/test-xfprintf-posix.c: New file.
37684
37685         * modules/xprintf-posix: New file.
37686
37687 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37688
37689         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
37690         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
37691         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
37692
37693 2007-10-29  Bruno Haible  <bruno@clisp.org>
37694
37695         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
37696         contain the special marker '_cv_'.
37697         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37698         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37699         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37700         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
37701         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37702         Reported by Ralf Wildenhues.
37703
37704 2007-10-29  Bruno Haible  <bruno@clisp.org>
37705
37706         * gnulib-tool (func_import): When --lgpl is not specified, set
37707         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
37708         GPLv3.
37709         Reported by Simon Josefsson.
37710
37711 2007-10-28  Bruno Haible  <bruno@clisp.org>
37712
37713         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
37714         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
37715         HAVE_DECL_ISFINITE.
37716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37717         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
37718         HAVE_DECL_ISFINITE.
37719
37720 2007-10-28  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
37723         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
37724
37725 2007-10-28  Bruno Haible  <bruno@clisp.org>
37726
37727         Fix link errors with Sun C 5.0 on Solaris 10.
37728         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
37729         function is declared but not present in the compiler's libm.
37730         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37731         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37732         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
37733         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
37734         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
37735         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
37736         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
37737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37738         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
37739         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
37740         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
37741         HAVE_DECL_FLOORL.
37742
37743 2007-10-28  Bruno Haible  <bruno@clisp.org>
37744
37745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
37746         gl_FUNC_FLOORL. Cache the result.
37747         (gl_FUNC_FLOORL): Use it.
37748         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
37749         gl_FUNC_CEILL. Cache the result.
37750         (gl_FUNC_CEILL): Use it.
37751
37752         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
37753         gl_FUNC_FLOOR. Cache the result.
37754         (gl_FUNC_FLOOR): Use it.
37755         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
37756         gl_FUNC_CEIL. Cache the result.
37757         (gl_FUNC_CEIL): Use it.
37758
37759         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
37760         gl_FUNC_FLOORF. Cache the result.
37761         (gl_FUNC_FLOORF): Use it.
37762         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
37763         gl_FUNC_CEILF. Cache the result.
37764         (gl_FUNC_CEILF): Use it.
37765
37766 2007-10-28  Bruno Haible  <bruno@clisp.org>
37767
37768         * gnulib-tool: Allow specifying the LGPL version number through
37769         --lgpl=2 or --lgpl=3.
37770         (func_usage): Document --lgpl with argument.
37771         Handle --lgpl=... arguments.
37772         (func_import): Recognize also gl_LGPL calls with an argument. When
37773         --lgpl=2 is used and the module's license is just LGPL, report an
37774         error. Set sed_transform_lib_file according to the lgpl variable. In
37775         the generated files, use --lgpl or gl_LGPL invocations with argument,
37776         if necessary.
37777         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
37778         an LGPv2+ license.
37779         * doc/gnulib-tool.texi (Modified imports): Update explanation of
37780         gl_LGPL macro.
37781
37782 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37783             Bruno Haible  <bruno@clisp.org>
37784
37785         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
37786         (u16_uctomb_aux): Likewise.
37787         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
37788         !HAVE_INLINE.
37789         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
37790
37791 2007-10-28  Bruno Haible  <bruno@clisp.org>
37792
37793         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
37794         Invoke AM_GETTEXT_OPTION if it exists.
37795         * modules/vasprintf: Likewise.
37796         * modules/verror: Likewise.
37797         * modules/xprintf: Likewise.
37798         * modules/xvasprintf: Likewise.
37799
37800 2007-10-27  Ben Pfaff  <blp@gnu.org>
37801
37802         * lib/math.in.h: Define isfinite macro and prototypes for
37803         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
37804         implementations.
37805         * m4/math_h.m4: New substitutions for isfinite module.
37806         * lib/isfinite.c: New file.
37807         * m4/isfinite.m4: New file.
37808         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
37809         * modules/isfinite: New file.
37810         * modules/isfinite-tests: New file.
37811         * tests/tests-isfinite.c: New file.
37812         * doc/functions/isfinite.texi: Mention isfinite module.
37813         * MODULES.html.sh: Mention new module.
37814
37815 2007-10-27  Ben Pfaff  <blp@gnu.org>
37816
37817         Ralf Wildenhues reported that Tru64 4.0D declares the round
37818         functions but does not have definitions.
37819         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37820         cannot be found in any library, set the output variable to
37821         "missing" instead of "".
37822         * m4/round.m4: Also use our substitute if we cannot find round in
37823         any library, even if it is declared.
37824         * m4/roundf.m4: Likewise for roundf.
37825         * m4/roundl.m4: Likewise for roundl.
37826         * lib/math.in.h: Undefine roundf, round, roundl before defining
37827         their replacements, to allow for hypothetical systems where these
37828         may be defined as macros but not available in libraries.
37829
37830 2007-10-27  Bruno Haible  <bruno@clisp.org>
37831
37832         * doc/gnulib.texi: Invoke @firstparagraphindent.
37833         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37834         changes in gnulib.
37835         (Source changes): New section.
37836
37837 2007-10-26  Bruno Haible  <bruno@clisp.org>
37838
37839         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37840         borrowed from autoconf.
37841
37842 2007-10-26  Bruno Haible  <bruno@clisp.org>
37843
37844         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37845         strerror returned the empty string. Needed on HP-UX 11.00.
37846
37847 2007-10-24  Micah Cowan  <micah@cowan.name>
37848
37849         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37850         * build-aux/bootstrap: Remove support for now-unnecessary option,
37851         --cvs-user, and envvars CVS_USER, CVS_RSH.
37852
37853 2007-10-24  Jim Meyering  <meyering@redhat.com>
37854
37855         Avoid diagnostics from sha1sum when there is no cached checksum.
37856         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37857         if the po.s1 file hasn't been created yet.
37858
37859         * build-aux/bootstrap: Sync from coreutils:
37860         2007-10-24  Jim Meyering  <meyering@redhat.com>
37861         Get gnulib from the git repository, not from an obsolete cvs one.
37862         * build-aux/bootstrap: Suggestion from Micah Cowan.
37863         2007-10-04  Jim Meyering  <jim@meyering.net>
37864         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37865         (update_po_files): Work also when there are no .po files in po/.
37866
37867 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37868
37869         * README: Append ".git" to git and cg examples.
37870         Problem reported by Benoit Sigoure.
37871
37872 2007-10-23  Micah Cowan  <micah@cowan.name>
37873
37874         * users.txt: Add wget.
37875
37876 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37877
37878         Fix linking of some unistdio tests on FreeBSD.
37879         * modules/unistdio/u16-vsnprintf-tests
37880         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37881         * modules/unistdio/u16-vsprintf-tests
37882         (test_u16_vsnprintf1_LDADD): Likewise.
37883         * modules/unistdio/u32-vsnprintf-tests
37884         (test_u32_vsnprintf1_LDADD): Likewise.
37885         * modules/unistdio/u32-vsprintf-tests
37886         (test_u32_vsprintf1_LDADD): Likewise.
37887         * modules/unistdio/u8-vsnprintf-tests
37888         (test_u8_vsnprintf1_LDADD): Likewise.
37889         * modules/unistdio/u8-vsprintf-tests
37890         (test_u8_vsprintf1_LDADD): Likewise.
37891         * modules/unistdio/ulc-vsnprintf-tests
37892         (test_ulc_vsnprintf1_LDADD): Likewise.
37893         * modules/unistdio/ulc-vsprintf-tests
37894         (test_ulc_vsprintf1_LDADD): Likewise.
37895
37896         Fix linking of some uniconv tests on FreeBSD.
37897         * modules/uniconv/u16-conv-from-enc-tests
37898         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37899         * modules/uniconv/u16-conv-to-enc-tests
37900         (test_u16_conv_to_enc_LDADD): Likewise.
37901         * modules/uniconv/u16-strconv-from-enc-tests
37902         (test_u16_strconv_from_enc_LDADD): Likewise.
37903         * modules/uniconv/u16-strconv-to-enc-tests
37904         (test_u16_strconv_to_enc_LDADD): Likewise.
37905         * modules/uniconv/u32-conv-from-enc-tests
37906         (test_u32_conv_from_enc_LDADD): Likewise.
37907         * modules/uniconv/u32-conv-to-enc-tests
37908         (test_u32_conv_to_enc_LDADD): Likewise.
37909         * modules/uniconv/u32-strconv-from-enc-tests
37910         (test_u32_strconv_from_enc_LDADD): Likewise.
37911         * modules/uniconv/u32-strconv-to-enc-tests
37912         (test_u32_strconv_to_enc_LDADD): Likewise.
37913         * modules/uniconv/u8-conv-from-enc-tests
37914         (test_u8_conv_from_enc_LDADD): Likewise.
37915         * modules/uniconv/u8-conv-to-enc-tests
37916         (test_u8_conv_to_enc_LDADD): Likewise.
37917         * modules/uniconv/u8-strconv-from-enc-tests
37918         (test_u8_strconv_from_enc_LDADD): Likewise.
37919         * modules/uniconv/u8-strconv-to-enc-tests
37920         (test_u8_strconv_to_enc_LDADD): Likewise.
37921
37922 2007-10-22  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37925         size.
37926
37927 2007-10-22  Eric Blake  <ebb9@byu.net>
37928
37929         Tweak x*printf documentation.
37930         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37931         variable name and comments.
37932         Suggested by Bruno Haible.
37933
37934 2007-10-22  Bruno Haible  <bruno@clisp.org>
37935
37936         * lib/acl.c (copy_acl): Fix file name in comment.
37937
37938 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37939
37940         Fix Tru64 problem with stdbool.h.
37941         * lib/stdbool.in.h (false, true):
37942         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37943         Don't declare as an enum in this situation; it runs afoul of Tru64.
37944         Problem reported by Steven M. Schweda in
37945         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37946
37947 2007-10-22  Eric Blake  <ebb9@byu.net>
37948
37949         Also wrap vf?printf.
37950         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37951         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37952         (xvprintf, xvfprintf): New functions.
37953
37954 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37955
37956         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37957         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37958
37959         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37960         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37961
37962 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37963
37964         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37965         by Bruno Haible.
37966
37967 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37968
37969         * lib/getloadavg.c
37970         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37971         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37972
37973         * tests/test-i-ring.c: Work for C89.
37974
37975 2007-10-22  Bruno Haible  <bruno@clisp.org>
37976
37977         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37978         -1u, in preprocessor expression, so that we don't test for the bug
37979         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37981
37982 2007-10-22  Eric Blake  <ebb9@byu.net>
37983
37984         * tests/test-yesno.sh: Silence stderr during test.
37985
37986 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37987
37988         * modules/crypto/gc-camellia: New file.
37989
37990         * m4/gc-camellia.m4: New file.
37991
37992         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37993
37994         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37995
37996 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37997
37998         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37999         --help to stdout.  Reported by sms@antinode.org (Steven
38000         M. Schweda).
38001
38002 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38003
38004         * users.txt: Fix link to libksba.
38005
38006 2007-10-21  Ben Pfaff  <blp@gnu.org>
38007
38008         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
38009         round.c roundf implementation that depends on floorf and ceilf to
38010         be tested unconditionally.
38011
38012 2007-10-21  Ben Pfaff  <blp@gnu.org>
38013
38014         * m4/check-libm-func.m4: Removed.
38015         * m4/check-math-lib.m4: New file.
38016         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
38017         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
38018         definition and lack of AC_LIBOBJ([roundf]).
38019         * m4/roundl.m4: Ditto, and similarly for roundl.
38020         * modules/round: Reference new m4 file.
38021         * modules/roundf: Ditto.
38022         * modules/roundl: Ditto.
38023         * tests/test-round2.c (main): Use ROUND instead of round.
38024         Bug report from Bruno Haible.
38025
38026 2007-10-21  Bruno Haible  <bruno@clisp.org>
38027
38028         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
38029         context.
38030
38031 2007-10-21  Bruno Haible  <bruno@clisp.org>
38032
38033         * tests/test-wcwidth.c (main): Allow negative result for some control
38034         characters.
38035
38036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
38037         Needed on OSF/1 5.1.
38038
38039 2007-10-21  Bruno Haible  <bruno@clisp.org>
38040
38041         * tests/test-floorf1.c: Include isnanf.h.
38042         (main): Use isnanf() instead of isnan().
38043         * tests/test-ceilf1.c: Include isnanf.h.
38044         (main): Use isnanf() instead of isnan().
38045         * tests/test-truncf1.c: Include isnanf.h.
38046         (main): Use isnanf() instead of isnan().
38047         * tests/test-roundf1.c: Include isnanf.h.
38048         (main): Use isnanf() instead of isnan().
38049
38050 2007-10-21  Eric Blake  <ebb9@byu.net>
38051
38052         * users.txt: Update URL for m4.
38053
38054 2007-10-21  Bruno Haible  <bruno@clisp.org>
38055
38056         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
38057
38058 2007-10-21  Bruno Haible  <bruno@clisp.org>
38059
38060         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
38061         Git's management files if the CVS files are not present.
38062
38063 2007-10-20  Bruno Haible  <bruno@clisp.org>
38064
38065         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
38066         gcc-3.4.x.
38067
38068 2007-10-20  Ben Pfaff  <blp@gnu.org>
38069
38070         * lib/math.in.h: Declare round, roundf, roundl if we are providing
38071         implementations.
38072         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
38073         * lib/round.c: New file.
38074         * lib/roundf.c: New file.
38075         * lib/roundl.c: New file.
38076         * m4/round.m4: New file.
38077         * m4/roundf.m4: New file.
38078         * m4/roundl.m4: New file.
38079         * m4/check-libm-func-m4: New file.
38080         * modules/math: Replace round, roundf, roundl related @VARS@ in
38081         math.in.h.
38082         * modules/round: New file.
38083         * modules/round-tests: New file.
38084         * modules/roundf: New file.
38085         * modules/roundf-tests: New file.
38086         * modules/roundl: New file.
38087         * modules/roundl-tests: New file.
38088         * tests/test-round1.c: New file.
38089         * tests/test-round2.c: New file.
38090         * tests/test-roundf1.c: New file.
38091         * tests/test-roundf2.c: New file.
38092         * tests/test-roundl.c: New file.
38093         * doc/functions/round.texi: Mention round module.
38094         * doc/functions/roundf.texi: Mention roundf module.
38095         * doc/functions/roundl.texi: Mention roundl module.
38096         * MODULES.html.sh: Mention new modules.
38097         Thanks to Bruno Haible for suggestions.
38098
38099 2007-10-20  Jim Meyering  <meyering@redhat.com>
38100
38101         * lib/xprintf.c: Include <config.h> unconditionally.
38102
38103         Change xprintf's license to GPL.
38104         * modules/xprintf (License): s/LGPL/GPL/, since this module
38105         depends on modules (exit and exitfail) which are GPL.
38106         Suggestion from Bruno Haible.
38107
38108         xprintf fixes.
38109         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
38110         Use a clearer diagnostic.
38111         Patch from Bruno Haible.
38112
38113 2007-10-20  Bruno Haible  <bruno@clisp.org>
38114
38115         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
38116         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
38117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38118
38119 2007-10-20  Bruno Haible  <bruno@clisp.org>
38120
38121         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
38122         precision in the comparison result > x - 1 or similar.
38123         * tests/test-ceilf2.c (correct_result_p): Likewise.
38124         * tests/test-truncf2.c (correct_result_p): Likewise.
38125         * tests/test-trunc2.c (correct_result_p): Likewise.
38126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38127
38128 2007-10-20  Bruno Haible  <bruno@clisp.org>
38129
38130         * modules/ceil: New file.
38131         * m4/ceil.m4: New file.
38132         * doc/functions/ceil.texi: Mention the 'ceil' module.
38133
38134 2007-10-20  Bruno Haible  <bruno@clisp.org>
38135
38136         * modules/floor: New file.
38137         * m4/floor.m4: New file.
38138         * doc/functions/floor.texi: Mention the 'floor' module.
38139
38140 2007-10-20  Bruno Haible  <bruno@clisp.org>
38141
38142         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
38143         of %a.
38144         * modules/floorf-tests (Depends-on): Likewise.
38145         * modules/truncf-tests (Depends-on): Likewise.
38146         * modules/trunc-tests (Depends-on): Likewise.
38147         Reported by Ben Pfaff.
38148
38149 2007-10-19  Jim Meyering  <meyering@redhat.com>
38150
38151         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
38152         Don't bother testing specific errno values.  Just test ferror.
38153
38154         New module: xprintf
38155         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
38156
38157 2007-10-19  Bruno Haible  <bruno@clisp.org>
38158
38159         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
38160         syntax.
38161         * modules/javaexec (Makefile.am): Likewise.
38162         * modules/relocatable-prog (Makefile.am): Likewise.
38163         Suggested by Jim Meyering.
38164
38165 2007-10-18  Bruno Haible  <bruno@clisp.org>
38166
38167         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
38168         Reported by Jim Meyering.
38169
38170 2007-10-18  Eric Blake  <ebb9@byu.net>
38171
38172         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
38173
38174 2007-10-18  Bruno Haible  <bruno@clisp.org>
38175
38176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
38177         the format string into writable memory. Needed in Fortify conditions.
38178
38179 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
38180             Bruno Haible  <bruno@clisp.org>
38181
38182         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
38183         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
38184         * modules/trim (Depends-on): Add mbchar.
38185         (configure.ac): Add gl_FUNC_MBRTOWC.
38186         (Makefile.am): Augment lib_SOURCES.
38187
38188 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38189
38190         Modify glob.c to use fstatat and dirfd, to simplify it.
38191         Suggested by Eric Blake.
38192         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
38193         Don't include <stdbool.h>; not used.
38194         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
38195         (link_exists_p): Simplify implementation, since we can now assume
38196         dirfd and fstatat.
38197         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
38198
38199 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38200
38201         * gnulib-tool (func_get_dependencies): Fix sed script to
38202         match only tests.
38203
38204 2007-10-17  Bruno Haible  <bruno@clisp.org>
38205
38206         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
38207         allow locale names without encoding suffix.
38208         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38209         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38210
38211 2007-10-16  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
38214         * lib/getgroups.c (getgroups): Likewise.
38215         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
38216
38217 2007-10-16  Bruno Haible  <bruno@clisp.org>
38218
38219         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
38220         * modules/malloc-posix (License): Likewise.
38221         * modules/realloc-posix (License): Likewise.
38222         * modules/calloc-posix (License): Likewise.
38223         * modules/intprops (License): Change from GPL to LGPL, with
38224         Paul Eggert's approval.
38225
38226 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38227
38228         Merge glibc changes into lib/glob.c.
38229
38230         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
38231         2007-10-15 04:59:03 UTC.  Here are the changes:
38232
38233         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
38234
38235         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
38236
38237         * lib/glob.c: Add some branch prediction throughout.
38238
38239         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
38240
38241         [BZ #5103]
38242         * lib/glob.c (glob): Recognize patterns starting \/.
38243
38244         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
38245
38246         [BZ #3996]
38247         * lib/glob.c (attribute_hidden): Define if not defined.
38248         (glob): Unescape dirname, filename or username when needed and not
38249         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
38250         is NULL.  Handle unescaped [ in pattern without closing ].
38251         Don't pass GLOB_CHECK down to recursive glob for directories.
38252         (__glob_pattern_type): New function.
38253         (__glob_pattern_p): Implement using __glob_pattern_type.
38254         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
38255         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
38256         Remove unreachable code.
38257
38258         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
38259
38260         * lib/glob.c (glob_in_dir): Add some comments and asserts to
38261         explain why there are no leaks.
38262
38263         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
38264
38265         [BZ #3253]
38266         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
38267         time, rather allocate increasingly bigger arrays of pointers, if
38268         possible with alloca, if too large with malloc.
38269
38270 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38271
38272         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
38273         Problem reported by H.Merijn Brand in
38274         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
38275         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
38276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
38277
38278 2007-10-15  Bruno Haible  <bruno@clisp.org>
38279
38280         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
38281         with explicit rpl_ prefix.
38282         * lib/fopen.c (fopen): Likewise.
38283         * lib/freopen.c (freopen): Likewise.
38284         * lib/iconv.c (iconv): Likewise.
38285         * lib/iconv_close.c (iconv_close): Likewise.
38286
38287 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38288
38289         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
38290
38291 2007-10-15  Bruno Haible  <bruno@clisp.org>
38292
38293         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
38294         <stddef.h> instead of <stdlib.h> since we only need NULL.
38295         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38296
38297 2007-10-15  Bruno Haible  <bruno@clisp.org>
38298
38299         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
38300         Replace paragraph talking about LIBOBJS.
38301         Reported by Colin Watson <cjwatson@debian.org>.
38302
38303 2007-10-15  Bruno Haible  <bruno@clisp.org>
38304
38305         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
38306         <stdlib.h> before using NULL.
38307
38308 2007-10-15  Simon Josefsson  <simon@josefsson.org>
38309
38310         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
38311         Reported by Albert Chin <china@thewrittenword.com>.
38312
38313 2007-10-14  Bruno Haible  <bruno@clisp.org>
38314
38315         * modules/iconv_open-utf-tests: New file.
38316         * tests/test-iconv-utf.c: New file.
38317
38318         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
38319         * modules/iconv_open-utf: New file.
38320         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
38321         (iconv, iconv_close): New declarations.
38322         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
38323         be defined.
38324         (iconv_open): Add special handling of conversion between UTF-8 and
38325         UTF-{16,32}{BE,LE}.
38326         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
38327         * lib/iconv_close.c: New file.
38328         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
38329         gl_FUNC_ICONV_OPEN.
38330         (gl_FUNC_ICONV_OPEN): Use it.
38331         (gl_FUNC_ICONV_OPEN_UTF): New macro.
38332         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
38333         and REPLACE_ICONV_UTF.
38334         * modules/iconv_open (Depends-on): Add c-strcase.
38335         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
38336         ICONV_CONST.
38337         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
38338
38339 2007-10-13  Albert Chin  <china@thewrittenword.com>
38340             Bruno Haible  <bruno@clisp.org>
38341
38342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
38343         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
38344
38345 2007-10-13  Bruno Haible  <bruno@clisp.org>
38346
38347         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
38348         defined, use the ISO C99 inline semantics.
38349         * lib/argp.h (ARGP_EI): Likewise.
38350
38351 2007-10-13  Bruno Haible  <bruno@clisp.org>
38352
38353         Handle 'inline' change in gcc 4.3.0.
38354         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
38355         argp_fmtstream_write, argp_fmtstream_set_lmargin,
38356         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
38357         argp_fmtstream_point): Disable 'extern' declaration if the function
38358         definition is going to be provided inline.
38359         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
38360         semantics, not the ISO C99 inline semantics.
38361         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
38362         'extern' declaration if the function definition is going to be provided
38363         inline.
38364         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
38365         the GNU C inline semantics, not the ISO C99 inline semantics. With
38366         GCC 4.2, avoid a warning.
38367
38368 2007-10-13  Bruno Haible  <bruno@clisp.org>
38369
38370         * lib/freading.h (freading): Enable the use of __freading for
38371         glibc >= 2.7.
38372         * lib/freading.c (freading): Likewise.
38373
38374 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38375
38376         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38377         "warning: C99 inline functions are not supported; using GNU89".
38378
38379 2007-10-12  Bruno Haible  <bruno@clisp.org>
38380
38381         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38382         of 2.
38383         * tests/test-ceilf2.c: New file.
38384         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38385
38386         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38387         * modules/ceilf-tests: Update.
38388
38389 2007-10-12  Bruno Haible  <bruno@clisp.org>
38390
38391         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38392         of 2.
38393         * tests/test-floorf2.c: New file.
38394         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38395
38396         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38397         * modules/floorf-tests: Update.
38398
38399 2007-10-12  Bruno Haible  <bruno@clisp.org>
38400
38401         * tests/test-trunc2.c: New file.
38402         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38403
38404         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38405         * modules/trunc-tests: Update.
38406
38407 2007-10-12  Bruno Haible  <bruno@clisp.org>
38408
38409         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38410         of 2.
38411         * tests/test-truncf2.c: New file.
38412         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38413
38414         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38415         * modules/truncf-tests: Update.
38416
38417 2007-10-11  Eric Blake  <ebb9@byu.net>
38418
38419         Don't claim strerror is broken on Interix.
38420         * doc/functions/strerror.texi (strerror): Known broken systems are
38421         now Solaris 8, and not Interix.
38422         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38423         Interix on cross-compile.
38424         Reported by Martin Koeppe in
38425         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38426
38427 2007-10-11  Bruno Haible  <bruno@clisp.org>
38428
38429         * modules/i-ring-tests: New file.
38430         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38431         instead of assert.
38432
38433 2007-10-11  Bruno Haible  <bruno@clisp.org>
38434
38435         * modules/filenamecat-tests: New file.
38436         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38437         * lib/filenamecat.c: Remove test code.
38438
38439 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38440
38441         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38442
38443         * lib/strerror.c: Include <string.h> always, to test interface,
38444         and to remove the need for the dummy.
38445         Include intprops.h to compute width instead of doing it ourselves
38446         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38447         (strerror): Define it to return NULL if there's no system strerror.
38448         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38449         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38450         ancient pre-strerror Unix systems well any more.  Saying "unknown
38451         system error" is enough.
38452         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38453         simpler strerror.c implementation.
38454         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38455         Simplify the tests to reflect the simpler strerror implementation.
38456         * modules/strerror (Depends-on): Add intprops.
38457
38458 2007-10-09  Eric Blake  <ebb9@byu.net>
38459
38460         Silence test-fpending.
38461         * modules/fpending-tests (Files): Add wrapper script.
38462         * tests/test-fpending.sh: New file.
38463
38464 2007-10-09  Bruno Haible  <bruno@clisp.org>
38465
38466         * MODULES.html.sh (func_module): Don't create a hyperlink for
38467         function names like 'printf_frexp'.
38468         (Misc): Add crc, memxor.
38469         (Characteristics of floating types): New section.
38470         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38471         isnanf-nolibm, signbit, trunc, truncf, truncl.
38472         (Enhancements for ISO C 99 functions): New subsection Input/output.
38473         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38474         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38475         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38476         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38477         (Enhancements for POSIX:2001 functions): Add chdir-long.
38478         (File system functions): Add areadlink, chdir-safer, read-file.
38479         Remove cycle-check.
38480         (File system as inode set): New section.
38481         (Date and time): Add gethrxtime.
38482         (Multithreading): Add openmp.
38483         (Internationalization functions): Add localename.
38484         (Unicode string functions): Add unistr/u*-mbsnlen.
38485         (Support for maintaining and releasing projects): Add git-version-gen.
38486         (Lone files): Remove directories.
38487
38488 2007-10-08  Ben Pfaff  <blp@gnu.org>
38489
38490         * lib/xmalloca.h: Fix typo in comment.
38491
38492 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38493
38494         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38495         when avoiding problems with integer overflow.  Use a portable test
38496         instead.
38497
38498 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38499
38500         * modules/dummy (License): Change to LGPLv2+.
38501         * modules/float (License): Likewise
38502         * modules/realloc (License): Likewise
38503         * modules/stdlib (License): Likewise
38504
38505 2007-10-07  Bruno Haible  <bruno@clisp.org>
38506
38507         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38508         * floor.c (TWO_MANT_DIG): Likewise.
38509         * ceil.c (TWO_MANT_DIG): Likewise.
38510         Reported by Ben Pfaff.
38511
38512 2007-10-07  Bruno Haible  <bruno@clisp.org>
38513
38514         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38515         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38516         * lib/frexp.c (FUNC): Likewise.
38517         * lib/printf-frexp.h (printf_frexp): Likewise.
38518         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38519         * lib/printf-frexp.c (FUNC): Likewise.
38520         Suggested by Jim Meyering.
38521
38522 2007-10-07  Jim Meyering  <meyering@redhat.com>
38523
38524         Make xnanosleep's integer overflow test more robust.
38525         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38526         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38527
38528 2007-10-07  Bruno Haible  <bruno@clisp.org>
38529
38530         * NEWS: Mention the license change.
38531
38532         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38533         abbreviations in the modules files.
38534
38535         Change copyright notice from GPLv2+ to GPLv3+.
38536         * README: Change copyright notice.
38537         * MODULES.html.sh: Likewise.
38538         * build-aux/bootstrap.conf: Likewise.
38539         * build-aux/config.libpath: Likewise.
38540         * build-aux/csharpcomp.sh.in: Likewise.
38541         * build-aux/csharpexec.sh.in: Likewise.
38542         * build-aux/install-reloc: Likewise.
38543         * build-aux/javacomp.sh.in: Likewise.
38544         * build-aux/javaexec.sh.in: Likewise.
38545         * build-aux/ldd.sh.in: Likewise.
38546         * build-aux/reloc-ldflags: Likewise.
38547         * build-aux/relocatable.sh.in: Likewise.
38548         * build-aux/x-to-1.in: Likewise.
38549         * check-module: Likewise.
38550         * config/srclistvars.sh: Likewise.
38551         * gnulib-tool: Likewise.
38552         * lib/acl-internal.h: Likewise.
38553         * lib/acl.c: Likewise.
38554         * lib/acl.h: Likewise.
38555         * lib/acl_entries.c: Likewise.
38556         * lib/areadlink-with-size.c: Likewise.
38557         * lib/areadlink.c: Likewise.
38558         * lib/areadlink.h: Likewise.
38559         * lib/argmatch.c: Likewise.
38560         * lib/argmatch.h: Likewise.
38561         * lib/argp-ba.c: Likewise.
38562         * lib/argp-eexst.c: Likewise.
38563         * lib/argp-fmtstream.c: Likewise.
38564         * lib/argp-fmtstream.h: Likewise.
38565         * lib/argp-fs-xinl.c: Likewise.
38566         * lib/argp-help.c: Likewise.
38567         * lib/argp-namefrob.h: Likewise.
38568         * lib/argp-parse.c: Likewise.
38569         * lib/argp-pin.c: Likewise.
38570         * lib/argp-pv.c: Likewise.
38571         * lib/argp-pvh.c: Likewise.
38572         * lib/argp-xinl.c: Likewise.
38573         * lib/argp.h: Likewise.
38574         * lib/at-func.c: Likewise.
38575         * lib/atanl.c: Likewise.
38576         * lib/backupfile.c: Likewise.
38577         * lib/backupfile.h: Likewise.
38578         * lib/basename.c: Likewise.
38579         * lib/binary-io.h: Likewise.
38580         * lib/byteswap.in.h: Likewise.
38581         * lib/c-stack.c: Likewise.
38582         * lib/c-stack.h: Likewise.
38583         * lib/c-strcasestr.c: Likewise.
38584         * lib/c-strcasestr.h: Likewise.
38585         * lib/c-strstr.c: Likewise.
38586         * lib/c-strstr.h: Likewise.
38587         * lib/c-strtod.c: Likewise.
38588         * lib/calloc.c: Likewise.
38589         * lib/canon-host.c: Likewise.
38590         * lib/canon-host.h: Likewise.
38591         * lib/canonicalize-lgpl.c: Likewise.
38592         * lib/canonicalize.c: Likewise.
38593         * lib/canonicalize.h: Likewise.
38594         * lib/ceil.c: Likewise.
38595         * lib/ceilf.c: Likewise.
38596         * lib/ceill.c: Likewise.
38597         * lib/chdir-long.c: Likewise.
38598         * lib/chdir-long.h: Likewise.
38599         * lib/chdir-safer.c: Likewise.
38600         * lib/chdir-safer.h: Likewise.
38601         * lib/chown.c: Likewise.
38602         * lib/classpath.c: Likewise.
38603         * lib/classpath.h: Likewise.
38604         * lib/clean-temp.c: Likewise.
38605         * lib/clean-temp.h: Likewise.
38606         * lib/cloexec.c: Likewise.
38607         * lib/close-stream.c: Likewise.
38608         * lib/closein.c: Likewise.
38609         * lib/closein.h: Likewise.
38610         * lib/closeout.c: Likewise.
38611         * lib/closeout.h: Likewise.
38612         * lib/concat-filename.c: Likewise.
38613         * lib/copy-file.c: Likewise.
38614         * lib/copy-file.h: Likewise.
38615         * lib/count-one-bits.h: Likewise.
38616         * lib/crc.c: Likewise.
38617         * lib/crc.h: Likewise.
38618         * lib/creat-safer.c: Likewise.
38619         * lib/csharpcomp.c: Likewise.
38620         * lib/csharpcomp.h: Likewise.
38621         * lib/csharpexec.c: Likewise.
38622         * lib/csharpexec.h: Likewise.
38623         * lib/cycle-check.c: Likewise.
38624         * lib/cycle-check.h: Likewise.
38625         * lib/diacrit.c: Likewise.
38626         * lib/diacrit.h: Likewise.
38627         * lib/diffseq.h: Likewise.
38628         * lib/dirchownmod.c: Likewise.
38629         * lib/dirent.in.h: Likewise.
38630         * lib/dirfd.c: Likewise.
38631         * lib/dirfd.h: Likewise.
38632         * lib/dirname.c: Likewise.
38633         * lib/dirname.h: Likewise.
38634         * lib/dummy.c: Likewise.
38635         * lib/dup-safer.c: Likewise.
38636         * lib/dup2.c: Likewise.
38637         * lib/eealloc.h: Likewise.
38638         * lib/error.c: Likewise.
38639         * lib/error.h: Likewise.
38640         * lib/euidaccess.c: Likewise.
38641         * lib/exclude.c: Likewise.
38642         * lib/exclude.h: Likewise.
38643         * lib/execute.c: Likewise.
38644         * lib/execute.h: Likewise.
38645         * lib/exitfail.c: Likewise.
38646         * lib/exitfail.h: Likewise.
38647         * lib/expl.c: Likewise.
38648         * lib/fatal-signal.c: Likewise.
38649         * lib/fatal-signal.h: Likewise.
38650         * lib/fbufmode.c: Likewise.
38651         * lib/fbufmode.h: Likewise.
38652         * lib/fchdir.c: Likewise.
38653         * lib/fchmodat.c: Likewise.
38654         * lib/fchownat.c: Likewise.
38655         * lib/fcntl--.h: Likewise.
38656         * lib/fcntl-safer.h: Likewise.
38657         * lib/fcntl.in.h: Likewise.
38658         * lib/fd-safer.c: Likewise.
38659         * lib/fflush.c: Likewise.
38660         * lib/file-has-acl.c: Likewise.
38661         * lib/file-set.c: Likewise.
38662         * lib/file-type.c: Likewise.
38663         * lib/file-type.h: Likewise.
38664         * lib/fileblocks.c: Likewise.
38665         * lib/filemode.c: Likewise.
38666         * lib/filemode.h: Likewise.
38667         * lib/filename.h: Likewise.
38668         * lib/filenamecat.c: Likewise.
38669         * lib/filenamecat.h: Likewise.
38670         * lib/findprog.c: Likewise.
38671         * lib/findprog.h: Likewise.
38672         * lib/float.in.h: Likewise.
38673         * lib/floor.c: Likewise.
38674         * lib/floorf.c: Likewise.
38675         * lib/floorl.c: Likewise.
38676         * lib/fopen-safer.c: Likewise.
38677         * lib/fopen.c: Likewise.
38678         * lib/fpending.c: Likewise.
38679         * lib/fpending.h: Likewise.
38680         * lib/fprintf.c: Likewise.
38681         * lib/fprintftime.h: Likewise.
38682         * lib/fpucw.h: Likewise.
38683         * lib/fpurge.c: Likewise.
38684         * lib/fpurge.h: Likewise.
38685         * lib/freadable.c: Likewise.
38686         * lib/freadable.h: Likewise.
38687         * lib/freadahead.c: Likewise.
38688         * lib/freadahead.h: Likewise.
38689         * lib/freading.c: Likewise.
38690         * lib/freading.h: Likewise.
38691         * lib/free.c: Likewise.
38692         * lib/freopen.c: Likewise.
38693         * lib/frexp.c: Likewise.
38694         * lib/frexpl.c: Likewise.
38695         * lib/fseek.c: Likewise.
38696         * lib/fseterr.c: Likewise.
38697         * lib/fseterr.h: Likewise.
38698         * lib/fstatat.c: Likewise.
38699         * lib/fstrcmp.c: Likewise.
38700         * lib/fstrcmp.h: Likewise.
38701         * lib/fsusage.c: Likewise.
38702         * lib/fsusage.h: Likewise.
38703         * lib/ftell.c: Likewise.
38704         * lib/ftello.c: Likewise.
38705         * lib/fts-cycle.c: Likewise.
38706         * lib/fts.c: Likewise.
38707         * lib/fts_.h: Likewise.
38708         * lib/full-read.c: Likewise.
38709         * lib/full-read.h: Likewise.
38710         * lib/full-write.c: Likewise.
38711         * lib/full-write.h: Likewise.
38712         * lib/fwritable.c: Likewise.
38713         * lib/fwritable.h: Likewise.
38714         * lib/fwriteerror.c: Likewise.
38715         * lib/fwriteerror.h: Likewise.
38716         * lib/fwriting.c: Likewise.
38717         * lib/fwriting.h: Likewise.
38718         * lib/gcd.c: Likewise.
38719         * lib/gcd.h: Likewise.
38720         * lib/getcwd.c: Likewise.
38721         * lib/getdate.h: Likewise.
38722         * lib/getdate.y: Likewise.
38723         * lib/getdomainname.c: Likewise.
38724         * lib/getdomainname.h: Likewise.
38725         * lib/getgroups.c: Likewise.
38726         * lib/gethostname.c: Likewise.
38727         * lib/gethrxtime.c: Likewise.
38728         * lib/gethrxtime.h: Likewise.
38729         * lib/getloadavg.c: Likewise.
38730         * lib/getndelim2.c: Likewise.
38731         * lib/getndelim2.h: Likewise.
38732         * lib/getnline.c: Likewise.
38733         * lib/getnline.h: Likewise.
38734         * lib/getopt.c: Likewise.
38735         * lib/getopt.in.h: Likewise.
38736         * lib/getopt1.c: Likewise.
38737         * lib/getopt_int.h: Likewise.
38738         * lib/getpagesize.h: Likewise.
38739         * lib/getsubopt.c: Likewise.
38740         * lib/gettime.c: Likewise.
38741         * lib/getugroups.c: Likewise.
38742         * lib/getugroups.h: Likewise.
38743         * lib/getusershell.c: Likewise.
38744         * lib/gl_anyavltree_list1.h: Likewise.
38745         * lib/gl_anyavltree_list2.h: Likewise.
38746         * lib/gl_anyhash_list1.h: Likewise.
38747         * lib/gl_anyhash_list2.h: Likewise.
38748         * lib/gl_anylinked_list1.h: Likewise.
38749         * lib/gl_anylinked_list2.h: Likewise.
38750         * lib/gl_anyrbtree_list1.h: Likewise.
38751         * lib/gl_anyrbtree_list2.h: Likewise.
38752         * lib/gl_anytree_list1.h: Likewise.
38753         * lib/gl_anytree_list2.h: Likewise.
38754         * lib/gl_anytree_oset.h: Likewise.
38755         * lib/gl_anytreehash_list1.h: Likewise.
38756         * lib/gl_anytreehash_list2.h: Likewise.
38757         * lib/gl_array_list.c: Likewise.
38758         * lib/gl_array_list.h: Likewise.
38759         * lib/gl_array_oset.c: Likewise.
38760         * lib/gl_array_oset.h: Likewise.
38761         * lib/gl_avltree_list.c: Likewise.
38762         * lib/gl_avltree_list.h: Likewise.
38763         * lib/gl_avltree_oset.c: Likewise.
38764         * lib/gl_avltree_oset.h: Likewise.
38765         * lib/gl_avltreehash_list.c: Likewise.
38766         * lib/gl_avltreehash_list.h: Likewise.
38767         * lib/gl_carray_list.c: Likewise.
38768         * lib/gl_carray_list.h: Likewise.
38769         * lib/gl_linked_list.c: Likewise.
38770         * lib/gl_linked_list.h: Likewise.
38771         * lib/gl_linkedhash_list.c: Likewise.
38772         * lib/gl_linkedhash_list.h: Likewise.
38773         * lib/gl_list.c: Likewise.
38774         * lib/gl_list.h: Likewise.
38775         * lib/gl_oset.c: Likewise.
38776         * lib/gl_oset.h: Likewise.
38777         * lib/gl_rbtree_list.c: Likewise.
38778         * lib/gl_rbtree_list.h: Likewise.
38779         * lib/gl_rbtree_oset.c: Likewise.
38780         * lib/gl_rbtree_oset.h: Likewise.
38781         * lib/gl_rbtreehash_list.c: Likewise.
38782         * lib/gl_rbtreehash_list.h: Likewise.
38783         * lib/gl_sublist.c: Likewise.
38784         * lib/gl_sublist.h: Likewise.
38785         * lib/group-member.c: Likewise.
38786         * lib/group-member.h: Likewise.
38787         * lib/hard-locale.c: Likewise.
38788         * lib/hard-locale.h: Likewise.
38789         * lib/hash-pjw.c: Likewise.
38790         * lib/hash-pjw.h: Likewise.
38791         * lib/hash-triple.c: Likewise.
38792         * lib/hash.c: Likewise.
38793         * lib/hash.h: Likewise.
38794         * lib/human.c: Likewise.
38795         * lib/human.h: Likewise.
38796         * lib/i-ring.c: Likewise.
38797         * lib/i-ring.h: Likewise.
38798         * lib/idcache.c: Likewise.
38799         * lib/imaxabs.c: Likewise.
38800         * lib/imaxdiv.c: Likewise.
38801         * lib/inet_pton.c: Likewise.
38802         * lib/inet_pton.h: Likewise.
38803         * lib/intprops.h: Likewise.
38804         * lib/inttostr.c: Likewise.
38805         * lib/inttostr.h: Likewise.
38806         * lib/inttypes.in.h: Likewise.
38807         * lib/isapipe.c: Likewise.
38808         * lib/isdir.c: Likewise.
38809         * lib/isnan.c: Likewise.
38810         * lib/isnan.h: Likewise.
38811         * lib/isnanf.c: Likewise.
38812         * lib/isnanf.h: Likewise.
38813         * lib/isnanl-nolibm.h: Likewise.
38814         * lib/isnanl.c: Likewise.
38815         * lib/isnanl.h: Likewise.
38816         * lib/javacomp.c: Likewise.
38817         * lib/javacomp.h: Likewise.
38818         * lib/javaexec.c: Likewise.
38819         * lib/javaexec.h: Likewise.
38820         * lib/javaversion.c: Likewise.
38821         * lib/javaversion.h: Likewise.
38822         * lib/javaversion.java: Likewise.
38823         * lib/lbrkprop.h: Likewise.
38824         * lib/lchmod.h: Likewise.
38825         * lib/lchown.c: Likewise.
38826         * lib/ldexpl.c: Likewise.
38827         * lib/linebreak.c: Likewise.
38828         * lib/linebreak.h: Likewise.
38829         * lib/linebuffer.c: Likewise.
38830         * lib/linebuffer.h: Likewise.
38831         * lib/locale.in.h: Likewise.
38832         * lib/logl.c: Likewise.
38833         * lib/long-options.c: Likewise.
38834         * lib/long-options.h: Likewise.
38835         * lib/lstat.c: Likewise.
38836         * lib/lstat.h: Likewise.
38837         * lib/math.in.h: Likewise.
38838         * lib/mbchar.c: Likewise.
38839         * lib/mbchar.h: Likewise.
38840         * lib/mbfile.h: Likewise.
38841         * lib/mbiter.h: Likewise.
38842         * lib/mbscasecmp.c: Likewise.
38843         * lib/mbscasestr.c: Likewise.
38844         * lib/mbschr.c: Likewise.
38845         * lib/mbscspn.c: Likewise.
38846         * lib/mbslen.c: Likewise.
38847         * lib/mbsncasecmp.c: Likewise.
38848         * lib/mbsnlen.c: Likewise.
38849         * lib/mbspbrk.c: Likewise.
38850         * lib/mbspcasecmp.c: Likewise.
38851         * lib/mbsrchr.c: Likewise.
38852         * lib/mbssep.c: Likewise.
38853         * lib/mbsspn.c: Likewise.
38854         * lib/mbsstr.c: Likewise.
38855         * lib/mbstok_r.c: Likewise.
38856         * lib/mbswidth.c: Likewise.
38857         * lib/mbswidth.h: Likewise.
38858         * lib/mbuiter.h: Likewise.
38859         * lib/memcasecmp.c: Likewise.
38860         * lib/memcasecmp.h: Likewise.
38861         * lib/memchr.c: Likewise.
38862         * lib/memcmp.c: Likewise.
38863         * lib/memcoll.c: Likewise.
38864         * lib/memcoll.h: Likewise.
38865         * lib/memcpy.c: Likewise.
38866         * lib/memrchr.c: Likewise.
38867         * lib/mkancesdirs.c: Likewise.
38868         * lib/mkdir-p.c: Likewise.
38869         * lib/mkdir-p.h: Likewise.
38870         * lib/mkdir.c: Likewise.
38871         * lib/mkdirat.c: Likewise.
38872         * lib/mkdtemp.c: Likewise.
38873         * lib/mkstemp-safer.c: Likewise.
38874         * lib/mkstemp.c: Likewise.
38875         * lib/modechange.c: Likewise.
38876         * lib/modechange.h: Likewise.
38877         * lib/mountlist.c: Likewise.
38878         * lib/mountlist.h: Likewise.
38879         * lib/mpsort.c: Likewise.
38880         * lib/nanosleep.c: Likewise.
38881         * lib/obstack.c: Likewise.
38882         * lib/obstack.h: Likewise.
38883         * lib/open-safer.c: Likewise.
38884         * lib/open.c: Likewise.
38885         * lib/openat-die.c: Likewise.
38886         * lib/openat-priv.h: Likewise.
38887         * lib/openat-proc.c: Likewise.
38888         * lib/openat.c: Likewise.
38889         * lib/openat.h: Likewise.
38890         * lib/pagealign_alloc.c: Likewise.
38891         * lib/pagealign_alloc.h: Likewise.
38892         * lib/physmem.c: Likewise.
38893         * lib/physmem.h: Likewise.
38894         * lib/pipe-safer.c: Likewise.
38895         * lib/pipe.c: Likewise.
38896         * lib/pipe.h: Likewise.
38897         * lib/posixtm.c: Likewise.
38898         * lib/posixtm.h: Likewise.
38899         * lib/posixver.c: Likewise.
38900         * lib/printf-frexp.c: Likewise.
38901         * lib/printf-frexp.h: Likewise.
38902         * lib/printf-frexpl.c: Likewise.
38903         * lib/printf-frexpl.h: Likewise.
38904         * lib/printf.c: Likewise.
38905         * lib/progname.c: Likewise.
38906         * lib/progname.h: Likewise.
38907         * lib/progreloc.c: Likewise.
38908         * lib/putenv.c: Likewise.
38909         * lib/quote.c: Likewise.
38910         * lib/quote.h: Likewise.
38911         * lib/quotearg.c: Likewise.
38912         * lib/quotearg.h: Likewise.
38913         * lib/raise.c: Likewise.
38914         * lib/readline.c: Likewise.
38915         * lib/readline.h: Likewise.
38916         * lib/readlink.c: Likewise.
38917         * lib/readtokens.c: Likewise.
38918         * lib/readtokens.h: Likewise.
38919         * lib/readtokens0.c: Likewise.
38920         * lib/readtokens0.h: Likewise.
38921         * lib/readutmp.c: Likewise.
38922         * lib/readutmp.h: Likewise.
38923         * lib/realloc.c: Likewise.
38924         * lib/relocwrapper.c: Likewise.
38925         * lib/rename-dest-slash.c: Likewise.
38926         * lib/rename.c: Likewise.
38927         * lib/rmdir.c: Likewise.
38928         * lib/rpmatch.c: Likewise.
38929         * lib/safe-read.c: Likewise.
38930         * lib/safe-read.h: Likewise.
38931         * lib/safe-write.c: Likewise.
38932         * lib/safe-write.h: Likewise.
38933         * lib/same-inode.h: Likewise.
38934         * lib/same.c: Likewise.
38935         * lib/same.h: Likewise.
38936         * lib/save-cwd.c: Likewise.
38937         * lib/save-cwd.h: Likewise.
38938         * lib/savedir.c: Likewise.
38939         * lib/savedir.h: Likewise.
38940         * lib/savewd.c: Likewise.
38941         * lib/savewd.h: Likewise.
38942         * lib/search.in.h: Likewise.
38943         * lib/setenv.c: Likewise.
38944         * lib/setenv.h: Likewise.
38945         * lib/settime.c: Likewise.
38946         * lib/sh-quote.c: Likewise.
38947         * lib/sh-quote.h: Likewise.
38948         * lib/sig2str.c: Likewise.
38949         * lib/sig2str.h: Likewise.
38950         * lib/signal.in.h: Likewise.
38951         * lib/signbitd.c: Likewise.
38952         * lib/signbitf.c: Likewise.
38953         * lib/signbitl.c: Likewise.
38954         * lib/sigprocmask.c: Likewise.
38955         * lib/sincosl.c: Likewise.
38956         * lib/sleep.c: Likewise.
38957         * lib/sprintf.c: Likewise.
38958         * lib/sqrtl.c: Likewise.
38959         * lib/stat-time.h: Likewise.
38960         * lib/stdio--.h: Likewise.
38961         * lib/stdio-safer.h: Likewise.
38962         * lib/stdlib--.h: Likewise.
38963         * lib/stdlib-safer.h: Likewise.
38964         * lib/stdlib.in.h: Likewise.
38965         * lib/stpcpy.c: Likewise.
38966         * lib/stpncpy.c: Likewise.
38967         * lib/strchrnul.c: Likewise.
38968         * lib/strcspn.c: Likewise.
38969         * lib/strerror.c: Likewise.
38970         * lib/strftime.c: Likewise.
38971         * lib/strftime.h: Likewise.
38972         * lib/striconveh.c: Likewise.
38973         * lib/striconveh.h: Likewise.
38974         * lib/striconveha.c: Likewise.
38975         * lib/striconveha.h: Likewise.
38976         * lib/stripslash.c: Likewise.
38977         * lib/strnlen1.c: Likewise.
38978         * lib/strnlen1.h: Likewise.
38979         * lib/strtod.c: Likewise.
38980         * lib/strtoimax.c: Likewise.
38981         * lib/strtok_r.c: Likewise.
38982         * lib/strtol.c: Likewise.
38983         * lib/strtoll.c: Likewise.
38984         * lib/strtoul.c: Likewise.
38985         * lib/strtoull.c: Likewise.
38986         * lib/sysexits.in.h: Likewise.
38987         * lib/tempname.c: Likewise.
38988         * lib/tempname.h: Likewise.
38989         * lib/timespec.h: Likewise.
38990         * lib/tls.c: Likewise.
38991         * lib/tls.h: Likewise.
38992         * lib/tmpdir.c: Likewise.
38993         * lib/tmpdir.h: Likewise.
38994         * lib/tmpfile-safer.c: Likewise.
38995         * lib/tmpfile.c: Likewise.
38996         * lib/trigl.c: Likewise.
38997         * lib/trigl.h: Likewise.
38998         * lib/trim.c: Likewise.
38999         * lib/trim.h: Likewise.
39000         * lib/trunc.c: Likewise.
39001         * lib/truncf.c: Likewise.
39002         * lib/truncl.c: Likewise.
39003         * lib/tsearch.c: Likewise.
39004         * lib/unicodeio.c: Likewise.
39005         * lib/unicodeio.h: Likewise.
39006         * lib/unistd--.h: Likewise.
39007         * lib/unistd-safer.h: Likewise.
39008         * lib/unistdio/ulc-fprintf.c: Likewise.
39009         * lib/unistdio/ulc-vfprintf.c: Likewise.
39010         * lib/unlinkdir.c: Likewise.
39011         * lib/unlinkdir.h: Likewise.
39012         * lib/unlocked-io.h: Likewise.
39013         * lib/unsetenv.c: Likewise.
39014         * lib/userspec.c: Likewise.
39015         * lib/utime.c: Likewise.
39016         * lib/utimecmp.c: Likewise.
39017         * lib/utimecmp.h: Likewise.
39018         * lib/utimens.c: Likewise.
39019         * lib/verify.h: Likewise.
39020         * lib/verror.c: Likewise.
39021         * lib/verror.h: Likewise.
39022         * lib/version-etc-fsf.c: Likewise.
39023         * lib/version-etc.c: Likewise.
39024         * lib/version-etc.h: Likewise.
39025         * lib/vfprintf.c: Likewise.
39026         * lib/vprintf.c: Likewise.
39027         * lib/vsprintf.c: Likewise.
39028         * lib/w32spawn.h: Likewise.
39029         * lib/wait-process.c: Likewise.
39030         * lib/wait-process.h: Likewise.
39031         * lib/wcwidth.c: Likewise.
39032         * lib/write-any-file.c: Likewise.
39033         * lib/xalloc-die.c: Likewise.
39034         * lib/xalloc.h: Likewise.
39035         * lib/xasprintf.c: Likewise.
39036         * lib/xgetcwd.c: Likewise.
39037         * lib/xgetcwd.h: Likewise.
39038         * lib/xgetdomainname.c: Likewise.
39039         * lib/xgetdomainname.h: Likewise.
39040         * lib/xgethostname.c: Likewise.
39041         * lib/xmalloc.c: Likewise.
39042         * lib/xmalloca.c: Likewise.
39043         * lib/xmalloca.h: Likewise.
39044         * lib/xmemcoll.c: Likewise.
39045         * lib/xnanosleep.c: Likewise.
39046         * lib/xreadlink.c: Likewise.
39047         * lib/xreadlink.h: Likewise.
39048         * lib/xsetenv.c: Likewise.
39049         * lib/xsetenv.h: Likewise.
39050         * lib/xstriconv.c: Likewise.
39051         * lib/xstriconv.h: Likewise.
39052         * lib/xstrndup.c: Likewise.
39053         * lib/xstrndup.h: Likewise.
39054         * lib/xstrtod.c: Likewise.
39055         * lib/xstrtod.h: Likewise.
39056         * lib/xstrtol-error.c: Likewise.
39057         * lib/xstrtol.c: Likewise.
39058         * lib/xstrtol.h: Likewise.
39059         * lib/xtime.h: Likewise.
39060         * lib/xvasprintf.c: Likewise.
39061         * lib/xvasprintf.h: Likewise.
39062         * lib/yesno.c: Likewise.
39063         * lib/yesno.h: Likewise.
39064         * posix-modules: Likewise.
39065         * tests/test-alloca-opt.c: Likewise.
39066         * tests/test-arcfour.c: Likewise.
39067         * tests/test-arctwo.c: Likewise.
39068         * tests/test-argmatch.c: Likewise.
39069         * tests/test-argp-2.sh: Likewise.
39070         * tests/test-argp.c: Likewise.
39071         * tests/test-arpa_inet.c: Likewise.
39072         * tests/test-array_list.c: Likewise.
39073         * tests/test-array_oset.c: Likewise.
39074         * tests/test-atexit.c: Likewise.
39075         * tests/test-avltree_list.c: Likewise.
39076         * tests/test-avltree_oset.c: Likewise.
39077         * tests/test-avltreehash_list.c: Likewise.
39078         * tests/test-base64.c: Likewise.
39079         * tests/test-binary-io.c: Likewise.
39080         * tests/test-byteswap.c: Likewise.
39081         * tests/test-c-ctype.c: Likewise.
39082         * tests/test-c-strcasecmp.c: Likewise.
39083         * tests/test-c-strcasestr.c: Likewise.
39084         * tests/test-c-strncasecmp.c: Likewise.
39085         * tests/test-c-strstr.c: Likewise.
39086         * tests/test-canonicalize-lgpl.c: Likewise.
39087         * tests/test-canonicalize.c: Likewise.
39088         * tests/test-carray_list.c: Likewise.
39089         * tests/test-ceilf.c: Likewise.
39090         * tests/test-ceill.c: Likewise.
39091         * tests/test-count-one-bits.c: Likewise.
39092         * tests/test-crc.c: Likewise.
39093         * tests/test-dirname.c: Likewise.
39094         * tests/test-fbufmode.c: Likewise.
39095         * tests/test-fcntl.c: Likewise.
39096         * tests/test-fflush.c: Likewise.
39097         * tests/test-floorf.c: Likewise.
39098         * tests/test-floorl.c: Likewise.
39099         * tests/test-fopen.c: Likewise.
39100         * tests/test-fprintf-posix.c: Likewise.
39101         * tests/test-fprintf-posix.h: Likewise.
39102         * tests/test-fpurge.c: Likewise.
39103         * tests/test-freadable.c: Likewise.
39104         * tests/test-freadahead.c: Likewise.
39105         * tests/test-freading.c: Likewise.
39106         * tests/test-freopen.c: Likewise.
39107         * tests/test-frexp.c: Likewise.
39108         * tests/test-frexpl.c: Likewise.
39109         * tests/test-fseek.c: Likewise.
39110         * tests/test-fseeko.c: Likewise.
39111         * tests/test-fseterr.c: Likewise.
39112         * tests/test-fstrcmp.c: Likewise.
39113         * tests/test-ftell.c: Likewise.
39114         * tests/test-ftello.c: Likewise.
39115         * tests/test-fwritable.c: Likewise.
39116         * tests/test-fwriting.c: Likewise.
39117         * tests/test-getaddrinfo.c: Likewise.
39118         * tests/test-getpass.c: Likewise.
39119         * tests/test-gettimeofday.c: Likewise.
39120         * tests/test-hmac-md5.c: Likewise.
39121         * tests/test-hmac-sha1.c: Likewise.
39122         * tests/test-iconv.c: Likewise.
39123         * tests/test-iconvme.c: Likewise.
39124         * tests/test-inttypes.c: Likewise.
39125         * tests/test-isnan.c: Likewise.
39126         * tests/test-isnanf.c: Likewise.
39127         * tests/test-isnanl-nolibm.c: Likewise.
39128         * tests/test-isnanl.c: Likewise.
39129         * tests/test-isnanl.h: Likewise.
39130         * tests/test-ldexpl.c: Likewise.
39131         * tests/test-linked_list.c: Likewise.
39132         * tests/test-linkedhash_list.c: Likewise.
39133         * tests/test-locale.c: Likewise.
39134         * tests/test-localename.c: Likewise.
39135         * tests/test-lock.c: Likewise.
39136         * tests/test-lseek.c: Likewise.
39137         * tests/test-malloca.c: Likewise.
39138         * tests/test-math.c: Likewise.
39139         * tests/test-mbscasecmp.c: Likewise.
39140         * tests/test-mbscasestr1.c: Likewise.
39141         * tests/test-mbscasestr2.c: Likewise.
39142         * tests/test-mbscasestr3.c: Likewise.
39143         * tests/test-mbscasestr4.c: Likewise.
39144         * tests/test-mbschr.c: Likewise.
39145         * tests/test-mbscspn.c: Likewise.
39146         * tests/test-mbsncasecmp.c: Likewise.
39147         * tests/test-mbspbrk.c: Likewise.
39148         * tests/test-mbspcasecmp.c: Likewise.
39149         * tests/test-mbsrchr.c: Likewise.
39150         * tests/test-mbsspn.c: Likewise.
39151         * tests/test-mbsstr1.c: Likewise.
39152         * tests/test-mbsstr2.c: Likewise.
39153         * tests/test-mbsstr3.c: Likewise.
39154         * tests/test-md5.c: Likewise.
39155         * tests/test-memmem.c: Likewise.
39156         * tests/test-netinet_in.c: Likewise.
39157         * tests/test-open.c: Likewise.
39158         * tests/test-printf-frexp.c: Likewise.
39159         * tests/test-printf-frexpl.c: Likewise.
39160         * tests/test-printf-posix.c: Likewise.
39161         * tests/test-printf-posix.h: Likewise.
39162         * tests/test-rbtree_list.c: Likewise.
39163         * tests/test-rbtree_oset.c: Likewise.
39164         * tests/test-rbtreehash_list.c: Likewise.
39165         * tests/test-read-file.c: Likewise.
39166         * tests/test-rijndael.c: Likewise.
39167         * tests/test-search.c: Likewise.
39168         * tests/test-signbit.c: Likewise.
39169         * tests/test-sleep.c: Likewise.
39170         * tests/test-snprintf-posix.c: Likewise.
39171         * tests/test-snprintf-posix.h: Likewise.
39172         * tests/test-snprintf.c: Likewise.
39173         * tests/test-sprintf-posix.c: Likewise.
39174         * tests/test-sprintf-posix.h: Likewise.
39175         * tests/test-stat-time.c: Likewise.
39176         * tests/test-stdbool.c: Likewise.
39177         * tests/test-stdint.c: Likewise.
39178         * tests/test-stdio.c: Likewise.
39179         * tests/test-stdlib.c: Likewise.
39180         * tests/test-stpncpy.c: Likewise.
39181         * tests/test-strcasestr.c: Likewise.
39182         * tests/test-striconv.c: Likewise.
39183         * tests/test-striconveh.c: Likewise.
39184         * tests/test-striconveha.c: Likewise.
39185         * tests/test-string.c: Likewise.
39186         * tests/test-sys_select.c: Likewise.
39187         * tests/test-sys_socket.c: Likewise.
39188         * tests/test-sys_stat.c: Likewise.
39189         * tests/test-sys_time.c: Likewise.
39190         * tests/test-sysexits.c: Likewise.
39191         * tests/test-time.c: Likewise.
39192         * tests/test-tls.c: Likewise.
39193         * tests/test-trunc.c: Likewise.
39194         * tests/test-truncf.c: Likewise.
39195         * tests/test-truncl.c: Likewise.
39196         * tests/test-unistd.c: Likewise.
39197         * tests/test-vasnprintf-posix.c: Likewise.
39198         * tests/test-vasnprintf-posix2.c: Likewise.
39199         * tests/test-vasnprintf.c: Likewise.
39200         * tests/test-vasprintf-posix.c: Likewise.
39201         * tests/test-vasprintf.c: Likewise.
39202         * tests/test-verify.c: Likewise.
39203         * tests/test-vfprintf-posix.c: Likewise.
39204         * tests/test-vprintf-posix.c: Likewise.
39205         * tests/test-vsnprintf-posix.c: Likewise.
39206         * tests/test-vsnprintf.c: Likewise.
39207         * tests/test-vsprintf-posix.c: Likewise.
39208         * tests/test-wchar.c: Likewise.
39209         * tests/test-wctype.c: Likewise.
39210         * tests/test-wcwidth.c: Likewise.
39211         * tests/test-xstrtol.c: Likewise.
39212         * tests/test-xvasprintf.c: Likewise.
39213         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39214         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39215         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39216         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39217         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39218         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39219         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39220         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39221         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39222         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39223         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39224         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39225         * tests/uniname/test-uninames.c: Likewise.
39226         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39227         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
39228         * tests/unistdio/test-u16-printf1.h: Likewise.
39229         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39230         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39231         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39232         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39233         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39234         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39235         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39236         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
39237         * tests/unistdio/test-u32-printf1.h: Likewise.
39238         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39239         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39240         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39241         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39242         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39243         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39244         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39245         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
39246         * tests/unistdio/test-u8-printf1.h: Likewise.
39247         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39248         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39249         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39250         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39251         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39252         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39253         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39254         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
39255         * tests/unistdio/test-ulc-printf1.h: Likewise.
39256         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39257         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39258         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39259         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39260         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39261         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39262         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39263         * tests/uniwidth/test-u16-width.c: Likewise.
39264         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39265         * tests/uniwidth/test-u32-width.c: Likewise.
39266         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39267         * tests/uniwidth/test-u8-width.c: Likewise.
39268         * tests/uniwidth/test-uc_width.c: Likewise.
39269         * config/srclist-update: Likewise.
39270         (fixlicense): Update to GPLv3+.
39271
39272         Change copyright notice from LGPLv2.1+ to LGPLv3+.
39273         * tests/test-tsearch.c: Change copyright notice.
39274
39275         Change copyright notice from LGPLv2.0+ to LGPLv3+.
39276         * lib/c-strcaseeq.h: Change copyright notice.
39277         * lib/streq.h: Likewise.
39278         * lib/uniconv.h: Likewise.
39279         * lib/uniconv/u-conv-from-enc.h: Likewise.
39280         * lib/uniconv/u-conv-to-enc.h: Likewise.
39281         * lib/uniconv/u-strconv-from-enc.h: Likewise.
39282         * lib/uniconv/u-strconv-to-enc.h: Likewise.
39283         * lib/uniconv/u16-conv-from-enc.c: Likewise.
39284         * lib/uniconv/u16-conv-to-enc.c: Likewise.
39285         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
39286         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
39287         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
39288         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
39289         * lib/uniconv/u32-conv-from-enc.c: Likewise.
39290         * lib/uniconv/u32-conv-to-enc.c: Likewise.
39291         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
39292         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
39293         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
39294         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
39295         * lib/uniconv/u8-conv-from-enc.c: Likewise.
39296         * lib/uniconv/u8-conv-to-enc.c: Likewise.
39297         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
39298         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
39299         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
39300         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
39301         * lib/uniname.h: Likewise.
39302         * lib/uniname/uniname.c: Likewise.
39303         * lib/unistdio.h: Likewise.
39304         * lib/unistdio/u-asnprintf.h: Likewise.
39305         * lib/unistdio/u-asprintf.h: Likewise.
39306         * lib/unistdio/u-printf-args.c: Likewise.
39307         * lib/unistdio/u-printf-args.h: Likewise.
39308         * lib/unistdio/u-printf-parse.h: Likewise.
39309         * lib/unistdio/u-snprintf.h: Likewise.
39310         * lib/unistdio/u-sprintf.h: Likewise.
39311         * lib/unistdio/u-vasprintf.h: Likewise.
39312         * lib/unistdio/u-vsnprintf.h: Likewise.
39313         * lib/unistdio/u-vsprintf.h: Likewise.
39314         * lib/unistdio/u16-asnprintf.c: Likewise.
39315         * lib/unistdio/u16-asprintf.c: Likewise.
39316         * lib/unistdio/u16-printf-parse.c: Likewise.
39317         * lib/unistdio/u16-snprintf.c: Likewise.
39318         * lib/unistdio/u16-sprintf.c: Likewise.
39319         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
39320         * lib/unistdio/u16-u16-asprintf.c: Likewise.
39321         * lib/unistdio/u16-u16-snprintf.c: Likewise.
39322         * lib/unistdio/u16-u16-sprintf.c: Likewise.
39323         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
39324         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
39325         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
39326         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
39327         * lib/unistdio/u16-vasnprintf.c: Likewise.
39328         * lib/unistdio/u16-vasprintf.c: Likewise.
39329         * lib/unistdio/u16-vsnprintf.c: Likewise.
39330         * lib/unistdio/u16-vsprintf.c: Likewise.
39331         * lib/unistdio/u32-asnprintf.c: Likewise.
39332         * lib/unistdio/u32-asprintf.c: Likewise.
39333         * lib/unistdio/u32-printf-parse.c: Likewise.
39334         * lib/unistdio/u32-snprintf.c: Likewise.
39335         * lib/unistdio/u32-sprintf.c: Likewise.
39336         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
39337         * lib/unistdio/u32-u32-asprintf.c: Likewise.
39338         * lib/unistdio/u32-u32-snprintf.c: Likewise.
39339         * lib/unistdio/u32-u32-sprintf.c: Likewise.
39340         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
39341         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
39342         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
39343         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
39344         * lib/unistdio/u32-vasnprintf.c: Likewise.
39345         * lib/unistdio/u32-vasprintf.c: Likewise.
39346         * lib/unistdio/u32-vsnprintf.c: Likewise.
39347         * lib/unistdio/u32-vsprintf.c: Likewise.
39348         * lib/unistdio/u8-asnprintf.c: Likewise.
39349         * lib/unistdio/u8-asprintf.c: Likewise.
39350         * lib/unistdio/u8-printf-parse.c: Likewise.
39351         * lib/unistdio/u8-snprintf.c: Likewise.
39352         * lib/unistdio/u8-sprintf.c: Likewise.
39353         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
39354         * lib/unistdio/u8-u8-asprintf.c: Likewise.
39355         * lib/unistdio/u8-u8-snprintf.c: Likewise.
39356         * lib/unistdio/u8-u8-sprintf.c: Likewise.
39357         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
39358         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
39359         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
39360         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
39361         * lib/unistdio/u8-vasnprintf.c: Likewise.
39362         * lib/unistdio/u8-vasprintf.c: Likewise.
39363         * lib/unistdio/u8-vsnprintf.c: Likewise.
39364         * lib/unistdio/u8-vsprintf.c: Likewise.
39365         * lib/unistdio/ulc-asnprintf.c: Likewise.
39366         * lib/unistdio/ulc-asprintf.c: Likewise.
39367         * lib/unistdio/ulc-printf-parse.c: Likewise.
39368         * lib/unistdio/ulc-snprintf.c: Likewise.
39369         * lib/unistdio/ulc-sprintf.c: Likewise.
39370         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39371         * lib/unistdio/ulc-vasprintf.c: Likewise.
39372         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39373         * lib/unistdio/ulc-vsprintf.c: Likewise.
39374         * lib/unistr.h: Likewise.
39375         * lib/unistr/u-cpy-alloc.h: Likewise.
39376         * lib/unistr/u-cpy.h: Likewise.
39377         * lib/unistr/u-endswith.h: Likewise.
39378         * lib/unistr/u-move.h: Likewise.
39379         * lib/unistr/u-set.h: Likewise.
39380         * lib/unistr/u-startswith.h: Likewise.
39381         * lib/unistr/u-stpcpy.h: Likewise.
39382         * lib/unistr/u-stpncpy.h: Likewise.
39383         * lib/unistr/u-strcat.h: Likewise.
39384         * lib/unistr/u-strcpy.h: Likewise.
39385         * lib/unistr/u-strcspn.h: Likewise.
39386         * lib/unistr/u-strdup.h: Likewise.
39387         * lib/unistr/u-strlen.h: Likewise.
39388         * lib/unistr/u-strncat.h: Likewise.
39389         * lib/unistr/u-strncpy.h: Likewise.
39390         * lib/unistr/u-strnlen.h: Likewise.
39391         * lib/unistr/u-strpbrk.h: Likewise.
39392         * lib/unistr/u-strspn.h: Likewise.
39393         * lib/unistr/u-strstr.h: Likewise.
39394         * lib/unistr/u-strtok.h: Likewise.
39395         * lib/unistr/u16-check.c: Likewise.
39396         * lib/unistr/u16-chr.c: Likewise.
39397         * lib/unistr/u16-cmp.c: Likewise.
39398         * lib/unistr/u16-cpy-alloc.c: Likewise.
39399         * lib/unistr/u16-cpy.c: Likewise.
39400         * lib/unistr/u16-endswith.c: Likewise.
39401         * lib/unistr/u16-mblen.c: Likewise.
39402         * lib/unistr/u16-mbsnlen.c: Likewise.
39403         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39404         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39405         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39406         * lib/unistr/u16-mbtouc.c: Likewise.
39407         * lib/unistr/u16-mbtoucr.c: Likewise.
39408         * lib/unistr/u16-move.c: Likewise.
39409         * lib/unistr/u16-next.c: Likewise.
39410         * lib/unistr/u16-prev.c: Likewise.
39411         * lib/unistr/u16-set.c: Likewise.
39412         * lib/unistr/u16-startswith.c: Likewise.
39413         * lib/unistr/u16-stpcpy.c: Likewise.
39414         * lib/unistr/u16-stpncpy.c: Likewise.
39415         * lib/unistr/u16-strcat.c: Likewise.
39416         * lib/unistr/u16-strchr.c: Likewise.
39417         * lib/unistr/u16-strcmp.c: Likewise.
39418         * lib/unistr/u16-strcpy.c: Likewise.
39419         * lib/unistr/u16-strcspn.c: Likewise.
39420         * lib/unistr/u16-strdup.c: Likewise.
39421         * lib/unistr/u16-strlen.c: Likewise.
39422         * lib/unistr/u16-strmblen.c: Likewise.
39423         * lib/unistr/u16-strmbtouc.c: Likewise.
39424         * lib/unistr/u16-strncat.c: Likewise.
39425         * lib/unistr/u16-strncmp.c: Likewise.
39426         * lib/unistr/u16-strncpy.c: Likewise.
39427         * lib/unistr/u16-strnlen.c: Likewise.
39428         * lib/unistr/u16-strpbrk.c: Likewise.
39429         * lib/unistr/u16-strrchr.c: Likewise.
39430         * lib/unistr/u16-strspn.c: Likewise.
39431         * lib/unistr/u16-strstr.c: Likewise.
39432         * lib/unistr/u16-strtok.c: Likewise.
39433         * lib/unistr/u16-to-u32.c: Likewise.
39434         * lib/unistr/u16-to-u8.c: Likewise.
39435         * lib/unistr/u16-uctomb-aux.c: Likewise.
39436         * lib/unistr/u16-uctomb.c: Likewise.
39437         * lib/unistr/u32-check.c: Likewise.
39438         * lib/unistr/u32-chr.c: Likewise.
39439         * lib/unistr/u32-cmp.c: Likewise.
39440         * lib/unistr/u32-cpy-alloc.c: Likewise.
39441         * lib/unistr/u32-cpy.c: Likewise.
39442         * lib/unistr/u32-endswith.c: Likewise.
39443         * lib/unistr/u32-mblen.c: Likewise.
39444         * lib/unistr/u32-mbsnlen.c: Likewise.
39445         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39446         * lib/unistr/u32-mbtouc.c: Likewise.
39447         * lib/unistr/u32-mbtoucr.c: Likewise.
39448         * lib/unistr/u32-move.c: Likewise.
39449         * lib/unistr/u32-next.c: Likewise.
39450         * lib/unistr/u32-prev.c: Likewise.
39451         * lib/unistr/u32-set.c: Likewise.
39452         * lib/unistr/u32-startswith.c: Likewise.
39453         * lib/unistr/u32-stpcpy.c: Likewise.
39454         * lib/unistr/u32-stpncpy.c: Likewise.
39455         * lib/unistr/u32-strcat.c: Likewise.
39456         * lib/unistr/u32-strchr.c: Likewise.
39457         * lib/unistr/u32-strcmp.c: Likewise.
39458         * lib/unistr/u32-strcpy.c: Likewise.
39459         * lib/unistr/u32-strcspn.c: Likewise.
39460         * lib/unistr/u32-strdup.c: Likewise.
39461         * lib/unistr/u32-strlen.c: Likewise.
39462         * lib/unistr/u32-strmblen.c: Likewise.
39463         * lib/unistr/u32-strmbtouc.c: Likewise.
39464         * lib/unistr/u32-strncat.c: Likewise.
39465         * lib/unistr/u32-strncmp.c: Likewise.
39466         * lib/unistr/u32-strncpy.c: Likewise.
39467         * lib/unistr/u32-strnlen.c: Likewise.
39468         * lib/unistr/u32-strpbrk.c: Likewise.
39469         * lib/unistr/u32-strrchr.c: Likewise.
39470         * lib/unistr/u32-strspn.c: Likewise.
39471         * lib/unistr/u32-strstr.c: Likewise.
39472         * lib/unistr/u32-strtok.c: Likewise.
39473         * lib/unistr/u32-to-u16.c: Likewise.
39474         * lib/unistr/u32-to-u8.c: Likewise.
39475         * lib/unistr/u32-uctomb.c: Likewise.
39476         * lib/unistr/u8-check.c: Likewise.
39477         * lib/unistr/u8-chr.c: Likewise.
39478         * lib/unistr/u8-cmp.c: Likewise.
39479         * lib/unistr/u8-cpy-alloc.c: Likewise.
39480         * lib/unistr/u8-cpy.c: Likewise.
39481         * lib/unistr/u8-endswith.c: Likewise.
39482         * lib/unistr/u8-mblen.c: Likewise.
39483         * lib/unistr/u8-mbsnlen.c: Likewise.
39484         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39485         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39486         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39487         * lib/unistr/u8-mbtouc.c: Likewise.
39488         * lib/unistr/u8-mbtoucr.c: Likewise.
39489         * lib/unistr/u8-move.c: Likewise.
39490         * lib/unistr/u8-next.c: Likewise.
39491         * lib/unistr/u8-prev.c: Likewise.
39492         * lib/unistr/u8-set.c: Likewise.
39493         * lib/unistr/u8-startswith.c: Likewise.
39494         * lib/unistr/u8-stpcpy.c: Likewise.
39495         * lib/unistr/u8-stpncpy.c: Likewise.
39496         * lib/unistr/u8-strcat.c: Likewise.
39497         * lib/unistr/u8-strchr.c: Likewise.
39498         * lib/unistr/u8-strcmp.c: Likewise.
39499         * lib/unistr/u8-strcpy.c: Likewise.
39500         * lib/unistr/u8-strcspn.c: Likewise.
39501         * lib/unistr/u8-strdup.c: Likewise.
39502         * lib/unistr/u8-strlen.c: Likewise.
39503         * lib/unistr/u8-strmblen.c: Likewise.
39504         * lib/unistr/u8-strmbtouc.c: Likewise.
39505         * lib/unistr/u8-strncat.c: Likewise.
39506         * lib/unistr/u8-strncmp.c: Likewise.
39507         * lib/unistr/u8-strncpy.c: Likewise.
39508         * lib/unistr/u8-strnlen.c: Likewise.
39509         * lib/unistr/u8-strpbrk.c: Likewise.
39510         * lib/unistr/u8-strrchr.c: Likewise.
39511         * lib/unistr/u8-strspn.c: Likewise.
39512         * lib/unistr/u8-strstr.c: Likewise.
39513         * lib/unistr/u8-strtok.c: Likewise.
39514         * lib/unistr/u8-to-u16.c: Likewise.
39515         * lib/unistr/u8-to-u32.c: Likewise.
39516         * lib/unistr/u8-uctomb-aux.c: Likewise.
39517         * lib/unistr/u8-uctomb.c: Likewise.
39518         * lib/unitypes.h: Likewise.
39519         * lib/uniwidth.h: Likewise.
39520         * lib/uniwidth/cjk.h: Likewise.
39521         * lib/uniwidth/u16-strwidth.c: Likewise.
39522         * lib/uniwidth/u16-width.c: Likewise.
39523         * lib/uniwidth/u32-strwidth.c: Likewise.
39524         * lib/uniwidth/u32-width.c: Likewise.
39525         * lib/uniwidth/u8-strwidth.c: Likewise.
39526         * lib/uniwidth/u8-width.c: Likewise.
39527         * lib/uniwidth/width.c: Likewise.
39528
39529 2007-10-07  Bruno Haible  <bruno@clisp.org>
39530
39531         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39532         The file is still under LGPL (see modules/inttypes).
39533
39534 2007-10-06  Bruno Haible  <bruno@clisp.org>
39535
39536         * modules/trunc (Dependencies): Add 'extensions'.
39537         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39538         Reported by Ben Pfaff <blp@gnu.org>.
39539
39540 2007-10-06  Bruno Haible  <bruno@clisp.org>
39541
39542         * modules/freopen-tests: New file.
39543         * tests/test-freopen.c: New file.
39544
39545         * modules/fopen-tests: New file.
39546         * tests/test-fopen.c: New file.
39547
39548         * modules/fopen: New file.
39549         * lib/fopen.c: New file.
39550         * m4/fopen.m4: New file.
39551         * modules/freopen: New file.
39552         * lib/freopen.c: New file.
39553         * m4/freopen.m4: New file.
39554         * lib/stdio.in.h (fopen, freopen): New declarations.
39555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39556         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39557         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39558         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39559         * doc/functions/fopen.texi: Mention the 'fopen' module.
39560         * doc/functions/freopen.texi: Mention the 'freopen' module.
39561
39562 2007-10-06  Bruno Haible  <bruno@clisp.org>
39563
39564         * modules/open-tests: New file.
39565         * tests/test-open.c: New file.
39566
39567         * modules/open: New file.
39568         * lib/open.c: New file.
39569         * m4/open.m4: New file.
39570         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39571         lib/open.c does.
39572         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39573         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39574         macros.
39575         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39576         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39577         REPLACE_OPEN.
39578         * doc/functions/open.texi: Mention the 'open' module.
39579
39580 2007-10-04  Bruno Haible  <bruno@clisp.org>
39581
39582         * modules/ceill-tests: New file.
39583         * tests/test-ceill.c: New file.
39584
39585         * modules/ceill: New file.
39586         * lib/ceill.c: Replace entire file.
39587         * m4/ceill.m4: New file.
39588         * lib/math.in.h (ceill): Replace declaration.
39589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39590         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39591         * doc/functions/ceill.texi: Mention the 'ceill' module.
39592         * modules/mathl (Files): Remove lib/ceill.c.
39593         (Depends-on): Add ceill.
39594
39595 2007-10-04  Bruno Haible  <bruno@clisp.org>
39596
39597         * modules/ceilf-tests: New file.
39598         * tests/test-ceilf.c: New file.
39599
39600         * modules/ceilf: New file.
39601         * lib/ceil.c: New file.
39602         * lib/ceilf.c: New file.
39603         * m4/ceilf.m4: New file.
39604         * lib/math.in.h (ceilf): New declaration.
39605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39606         HAVE_DECL_CEILF.
39607         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39608         HAVE_DECL_CEILF.
39609         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39610
39611 2007-10-04  Bruno Haible  <bruno@clisp.org>
39612
39613         * modules/floorl-tests: New file.
39614         * tests/test-floorl.c: New file.
39615
39616         * modules/floorl: New file.
39617         * lib/floorl.c: Replace entire file.
39618         * m4/floorl.m4: New file.
39619         * lib/math.in.h (floorl): Replace declaration.
39620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39621         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39622         * doc/functions/floorl.texi: Mention the 'floorl' module.
39623         * modules/mathl (Files): Remove lib/floorl.c.
39624         (Depends-on): Add floorl.
39625
39626 2007-10-04  Bruno Haible  <bruno@clisp.org>
39627
39628         * modules/floorf-tests: New file.
39629         * tests/test-floorf.c: New file.
39630
39631         * modules/floorf: New file.
39632         * lib/floor.c: New file.
39633         * lib/floorf.c: New file.
39634         * m4/floorf.m4: New file.
39635         * lib/math.in.h (floorf): New declaration.
39636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39637         HAVE_DECL_FLOORF.
39638         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39639         HAVE_DECL_FLOORF.
39640         * doc/functions/floorf.texi: Mention the 'floorf' module.
39641
39642 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39643             Bruno Haible  <bruno@clisp.org>
39644
39645         Advertise for the Git server instead of the CVS server.
39646         * doc/gnulib-intro.texi (Steady Development): Mention the Git
39647         repository instead of the CVS one.
39648         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
39649         about all VCS systems generically.
39650         * doc/gnulib.texi (Introduction): Capitalize `Git'.
39651
39652 2007-10-04  Bruno Haible  <bruno@clisp.org>
39653
39654         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
39655         means.
39656         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
39657
39658 2007-10-04  Bruno Haible  <bruno@clisp.org>
39659
39660         * modules/truncl-tests: New file.
39661         * tests/test-truncl.c: New file.
39662
39663         * modules/truncl: New file.
39664         * lib/truncl.c: New file.
39665         * m4/truncl.m4: New file.
39666         * lib/math.in.h (truncl): New declaration.
39667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
39668         HAVE_DECL_TRUNCL.
39669         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
39670         HAVE_DECL_TRUNCL.
39671         * doc/functions/truncl.texi: Mention the 'truncl' module.
39672
39673 2007-10-04  Bruno Haible  <bruno@clisp.org>
39674
39675         * modules/truncf-tests: New file.
39676         * tests/test-truncf.c: New file.
39677
39678         * modules/truncf: New file.
39679         * lib/trunc.c: Make paramerizable through USE_* macros.
39680         * lib/truncf.c: New file.
39681         * m4/truncf.m4: New file.
39682         * lib/math.in.h (truncf): New declaration.
39683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
39684         HAVE_DECL_TRUNCF.
39685         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
39686         HAVE_DECL_TRUNCF.
39687         * doc/functions/truncf.texi: Mention the 'truncf' module.
39688
39689 2007-10-03  Bruno Haible  <bruno@clisp.org>
39690
39691         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39692         augmentation also for tests modules.
39693         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
39694         * modules/atexit-tests (Makefile.am): Likewise.
39695         * modules/binary-io-tests (Makefile.am): Likewise.
39696         * modules/c-strcase-tests (Makefile.am): Likewise.
39697         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
39698         * modules/canonicalize-tests (Makefile.am): Likewise.
39699         * modules/closein-tests (Makefile.am): Likewise.
39700         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39701         * modules/freadahead-tests (Makefile.am): Likewise.
39702         * modules/fseek-tests (Makefile.am): Likewise.
39703         * modules/fseeko-tests (Makefile.am): Likewise.
39704         * modules/ftell-tests (Makefile.am): Likewise.
39705         * modules/ftello-tests (Makefile.am): Likewise.
39706         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
39707         * modules/isnanl-tests (Makefile.am): Likewise.
39708         * modules/lseek-tests (Makefile.am): Likewise.
39709         * modules/mbscasecmp-tests (Makefile.am): Likewise.
39710         * modules/mbscasestr-tests (Makefile.am): Likewise.
39711         * modules/mbschr-tests (Makefile.am): Likewise.
39712         * modules/mbscspn-tests (Makefile.am): Likewise.
39713         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
39714         * modules/mbspbrk-tests (Makefile.am): Likewise.
39715         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
39716         * modules/mbsrchr-tests (Makefile.am): Likewise.
39717         * modules/mbsspn-tests (Makefile.am): Likewise.
39718         * modules/mbsstr-tests (Makefile.am): Likewise.
39719         * modules/printf-posix-tests (Makefile.am): Likewise.
39720         * modules/snprintf-posix-tests (Makefile.am): Likewise.
39721         * modules/sprintf-posix-tests (Makefile.am): Likewise.
39722         * modules/tsearch-tests (Makefile.am): Likewise.
39723         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39724         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
39725         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
39726         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39727         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39728         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39729         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39730         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39731         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
39732         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
39733         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39734         * modules/xstrtol-tests (Makefile.am): Likewise.
39735         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39736         * modules/yesno-tests (Makefile.am): Likewise.
39737
39738 2007-10-03  Bruno Haible  <bruno@clisp.org>
39739
39740         * modules/trunc-tests: New file.
39741         * tests/test-trunc.c: New file.
39742
39743         * modules/trunc: New file.
39744         * lib/trunc.c: New file.
39745         * m4/trunc.m4: New file.
39746         * lib/math.in.h (trunc): New declaration.
39747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
39748         HAVE_DECL_TRUNC.
39749         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
39750         HAVE_DECL_TRUNC.
39751         * doc/functions/trunc.texi: Mention the 'trunc' module.
39752
39753 2007-10-03  Bruno Haible  <bruno@clisp.org>
39754
39755         * tests/test-fpending.c: New file, mostly copied
39756         from coreutils/lib/t-fpending.c.
39757         * modules/fpending-tests: New file.
39758
39759 2007-10-03  Bruno Haible  <bruno@clisp.org>
39760
39761         Port the stdio extensions to QNX (untested).
39762         * lib/fseterr.c (fseterr): Add support for QNX.
39763         * lib/fbufmode.c (fbufmode): Likewise.
39764         * lib/freadable.c (freadable): Likewise.
39765         * lib/fwritable.c (fwritable): Likewise.
39766         * lib/freading.c (freading): Likewise.
39767         * lib/fwriting.c (fwriting): Likewise.
39768         * lib/freadahead.c (freadahed): Likewise.
39769         * lib/fpurge.c (fpurge): Likewise.
39770         * lib/fseeko.c (rpl_fseeko): Likewise.
39771
39772 2007-10-03  Bruno Haible  <bruno@clisp.org>
39773             Jim Meyering  <jim@meyering.net>
39774             Eric Blake  <ebb9@byu.net>
39775
39776         * doc/relocatable.texi: Use @command instead of @program.
39777
39778 2007-10-02  Jim Meyering  <jim@meyering.net>
39779
39780         Perform one more "_.h" -> ".in.h" substitution.
39781         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
39782         instead of unistd_.h here, too.
39783
39784 2007-10-01  Bruno Haible  <bruno@clisp.org>
39785
39786         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
39787         Needed for the alloca-opt module.
39788
39789 2007-09-30  Bruno Haible  <bruno@clisp.org>
39790
39791         * lib/alloca.in.h: Renamed from lib/alloca_.h.
39792         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
39793         alloca_.h.
39794         * lib/argz.in.h: Renamed from lib/argz_.h.
39795         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
39796         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39797         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
39798         byteswap_.h.
39799         * lib/dirent.in.h: Renamed from lib/dirent_.h.
39800         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
39801         dirent_.h.
39802         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
39803         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
39804         fcntl_.h.
39805         * lib/float.in.h: Renamed from lib/float_.h.
39806         * modules/float (Files, Makefile.am): Use float.in.h instead of
39807         float_.h.
39808         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
39809         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
39810         fnmatch_.h.
39811         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39812         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39813         getopt_.h.
39814         * lib/glob.in.h: Renamed from lib/glob_.h.
39815         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39816         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39817         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39818         iconv_.h.
39819         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39820         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39821         inttypes_.h.
39822         * lib/locale.in.h: Renamed from lib/locale_.h.
39823         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39824         locale_.h.
39825         * lib/math.in.h: Renamed from lib/math_.h.
39826         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39827         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39828         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39829         of netinet_in_.h. Add dependency.
39830         * lib/poll.in.h: Renamed from lib/poll_.h.
39831         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39832         * lib/search.in.h: Renamed from lib/search_.h.
39833         * modules/search (Files, Makefile.am): Use search.in.h instead of
39834         search_.h.
39835         * lib/signal.in.h: Renamed from lib/signal_.h.
39836         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39837         _signal.h.
39838         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39839         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39840         stdbool_.h.
39841         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39842         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39843         stdint_.h.
39844         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39845         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39846         stdio_.h.
39847         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39848         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39849         stdlib_.h.
39850         * lib/string.in.h: Renamed from lib/string_.h.
39851         * modules/string (Files, Makefile.am): Use string.in.h instead of
39852         string_.h.
39853         * doc/gnulib-tool.texi (Initial import): Update.
39854         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39855         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39856         of sys_select_.h. Add dependency.
39857         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39858         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39859         of sys_socket_.h.
39860         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39861         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39862         sys_stat_.h.
39863         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39864         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39865         sys_time_.h.
39866         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39867         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39868         sysexits_.h.
39869         * lib/time.in.h: Renamed from lib/time_.h.
39870         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39871         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39872         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39873         unistd_.h.
39874         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39875         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39876         wchar_.h.
39877         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39878         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39879         wctype_.h.
39880         * build-aux/bootstrap (slurp): Update.
39881         * lib/.cppi-disable: Update.
39882
39883 2007-09-30  Bruno Haible  <bruno@clisp.org>
39884
39885         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39886         Needed on BeOS.
39887
39888 2007-09-30  Bruno Haible  <bruno@clisp.org>
39889
39890         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39891
39892 2007-09-29  Bruno Haible  <bruno@clisp.org>
39893
39894         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39895
39896 2007-09-29  Bruno Haible  <bruno@clisp.org>
39897
39898         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39899         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39900         * build-aux/install-reloc: Compile also areadlink.c.
39901         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39902
39903 2007-09-29  Bruno Haible  <bruno@clisp.org>
39904
39905         * gnulib-tool (func_emit_initmacro_done): Indentation.
39906
39907 2007-09-29  Bruno Haible  <bruno@clisp.org>
39908
39909         * README: Add CVS checkout update instructions.
39910         Info from Bob Proulx <bob@proulx.com>.
39911
39912 2007-09-28  Eric Blake  <ebb9@byu.net>
39913
39914         Provide move-if-change.
39915         * build-aux/move-if-change: New file, based on best practice
39916         rather than any canonical upstream location.
39917
39918 2007-09-28  Jim Meyering  <jim@meyering.net>
39919
39920         Fix canonicalize loop-detection corner case.
39921         Do not attempt to stat the symlink values stored via seen_triple.
39922         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39923         on linux-2.6.18, (but not 2.6.22).
39924         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39925         triple_compare.  The former compares dev,ino,filename, while the latter
39926         would actually stat dirname(filename) when dev and ino were equal.
39927         * lib/hash-triple.c: Install <string.h>.
39928         (STREQ): Define.
39929         (triple_compare_ino_str): New function.
39930         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39931
39932 2007-09-28  Eric Blake  <ebb9@byu.net>
39933
39934         Enforce that AC_REPLACE_FUNCS files exist.
39935         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39936         override check for typos.
39937
39938         Fix test-closein on Solaris 10.
39939         * tests/test-closein.c (main): Don't assume stdin can be inherited
39940         closed on all systems.
39941         * tests/test-closein.sh: Likewise.
39942         Reported by Piotr Tarnowski.
39943
39944 2007-09-28  Jim Meyering  <jim@meyering.net>
39945
39946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39947
39948 2007-09-27  Jim Meyering  <jim@meyering.net>
39949
39950         canonicalize: Avoid a false-positive cycle failure.
39951         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39952         Sort.  Remove cycle-check.
39953         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39954         not cycle-check.h.
39955         (seen_triple): New function.
39956         (canonicalize_filename_mode): Use it instead of cycle-check.
39957         * tests/test-canonicalize.c: Add a test for this bug.
39958         * tests/test-canonicalize.sh: Set up and run the test.
39959
39960         New module, file-set, from coreutils.
39961         * modules/file-set: Define it.
39962         * lib/file-set.c, lib/file-set.h: Implement.
39963
39964         New module, hash-triple, from coreutils.
39965         * modules/hash-triple: Define it.
39966         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39967
39968 2007-09-25  Eric Blake  <ebb9@byu.net>
39969
39970         Fix strerror on Interix.
39971         * lib/string_.h (strerror): Declare replacement.
39972         * doc/functions/strerror.texi (strerror): Document the Interix
39973         shortcoming.
39974         * modules/string (Makefile.am): Support new hooks.
39975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39976         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39977         gl_FUNC_STRERROR_SEPARATE.
39978         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39979         * lib/strerror.c (rpl_strerror): Provide replacement.
39980         * modules/strerror (Depends-on): Add string.
39981         (configure.ac): Detect use of module.
39982         * tests/test-strerror.c: New file.
39983         * modules/strerror-tests: New test module.
39984         * modules/argp (Depends-on): Add strerror.
39985         * modules/error (Depends-on): Likewise.
39986         Reported by Martin Koeppe.
39987
39988 2007-09-24  Bruno Haible  <bruno@clisp.org>
39989
39990         * README: Update git instructions.
39991
39992 2007-09-24  Eric Blake  <ebb9@byu.net>
39993
39994         Revert fpending breakage from 2007-09-08.
39995         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39996         __fpending.c.
39997
39998 2007-09-24  Jim Meyering  <jim@meyering.net>
39999
40000         filenamecat.c: Add a test.
40001         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
40002         showing how the function works when DIR is the empty string.
40003
40004 2007-09-21  Simon Josefsson  <simon@josefsson.org>
40005
40006         * tests/test-canonicalize.sh: Turn on executable bit.
40007
40008 2007-09-19  Eric Blake  <ebb9@byu.net>
40009
40010         * README: Update CVS instructions.
40011
40012 2007-09-18  Bruno Haible  <bruno@clisp.org>
40013
40014         * modules/areadlink: New file.
40015         * lib/areadlink.h (areadlink): New declaration.
40016         * lib/areadlink.c: New file, based on lib/xreadlink.c.
40017
40018 2007-09-17  Jim Meyering  <jim@meyering.net>
40019
40020         * lib/savewd.c (ESTALE) [!defined]: Define.
40021         Reported to be required on Interix by Martin Koeppe.
40022
40023 2007-09-17  Bruno Haible  <bruno@clisp.org>
40024
40025         * gnulib-tool (func_version): Use $version.
40026
40027 2007-09-16  Bruno Haible  <bruno@clisp.org>
40028
40029         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
40030         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
40031         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
40032         Reported by Greg Schafer <gschafer@zip.com.au>.
40033
40034 2007-09-15  Bruno Haible  <bruno@clisp.org>
40035
40036         * gnulib-tool (sed): Try a little harder to make bash understand the
40037         alias.
40038         Reported by Bruce Korb <bruce.korb@gmail.com>.
40039
40040 2007-09-13  Eric Blake  <ebb9@byu.net>
40041
40042         * ChangeLog: Remove conflict markers.
40043
40044 2007-09-13  Simon Josefsson  <simon@josefsson.org>
40045
40046         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
40047         Reported by Bruno Haible <bruno@clisp.org>.
40048
40049 2007-09-12  Bruno Haible  <bruno@clisp.org>
40050
40051         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
40052         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
40053         is not defined.
40054
40055 2007-09-12  Eric Blake  <ebb9@byu.net>
40056
40057         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
40058         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
40059         Autoconf definition.
40060         * modules/euidaccess (Depends-on): Add extensions, for
40061         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
40062         * modules/fnmatch (Depends-on): Likewise.
40063         * modules/getaddrinfo (Depends-on): Likewise.
40064         * modules/getdelim (Depends-on): Likewise.
40065         * modules/getline (Depends-on): Likewise.
40066         * modules/getsubopt (Depends-on): Likewise.
40067         * modules/gettext (Depends-on): Likewise.
40068         * modules/group-member (Depends-on): Likewise.
40069         * modules/mbchar (Depends-on): Likewise.
40070         * modules/memmem (Depends-on): Likewise.
40071         * modules/mempcpy (Depends-on): Likewise.
40072         * modules/memrchr (Depends-on): Likewise.
40073         * modules/pagealign_alloc (Depends-on): Likewise.
40074         * modules/readutmp (Depends-on): Likewise.
40075         * modules/stpcpy (Depends-on): Likewise.
40076         * modules/stpncpy (Depends-on): Likewise.
40077         * modules/strchrnul (Depends-on): Likewise.
40078         * modules/strndup (Depends-on): Likewise.
40079         * modules/strsep (Depends-on): Likewise.
40080         * modules/strverscmp (Depends-on): Likewise.
40081         * modules/vasprintf (Depends-on): Likewise.
40082         * modules/wcwidth (Depends-on): Likewise.
40083         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
40084         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
40085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
40086         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
40087         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40088         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40089         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
40090         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40091         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
40092         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40093         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40094         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
40095         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
40096         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
40097         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
40098         * m4/readutmp.m4 (gl_READUTMP): Likewise.
40099         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40100         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
40101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40102         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
40103         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40104         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
40105         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
40106         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
40107         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
40108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40109         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
40110         so that lock.m4 can be used in gettext without extensions module.
40111
40112 2007-09-11  Bruno Haible  <bruno@clisp.org>
40113
40114         * m4/isc-posix.m4: Remove file.
40115         Suggested by Eric Blake.
40116
40117 2007-09-11  Eric Blake  <ebb9@byu.net>
40118
40119         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
40120
40121 2007-09-10  Bruno Haible  <bruno@clisp.org>
40122
40123         * posix-modules: Fix typo in error message.
40124         Reported by Matt <mkraai@beckman.com>.
40125
40126 2007-09-09  Bruno Haible  <bruno@clisp.org>
40127
40128         * doc/functions/getdelim.texi: Update list of platforms lacking the
40129         function.
40130         * doc/functions/getline.texi: Likewise.
40131
40132 2007-09-09  Jim Meyering  <jim@meyering.net>
40133
40134         * lib/hash.c (hash_initialize): Detect calloc failure.
40135         Reported by Bruno Haible.
40136
40137 2007-09-09  Bruno Haible  <bruno@clisp.org>
40138
40139         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
40140         malloc or realloc fails.
40141
40142 2007-09-09  Bruno Haible  <bruno@clisp.org>
40143
40144         * modules/getcwd (Depends-on): Add malloc-posix.
40145         * modules/glob (Depends-on): Likewise.
40146         * modules/putenv (Depends-on): Likewise.
40147         * modules/strdup (Depends-on): Likewise.
40148         * modules/getdelim (Depends-on): Add realloc-posix.
40149         * modules/read-file (Depends-on): Likewise.
40150
40151 2007-09-09  Bruno Haible  <bruno@clisp.org>
40152
40153         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
40154         (gl_FUNC_MALLOC_POSIX): Require it.
40155         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
40156         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
40157         * modules/realloc (Files): Add m4/malloc.m4.
40158         * modules/calloc (Files): Likewise.
40159
40160 2007-09-09  Bruno Haible  <bruno@clisp.org>
40161
40162         * modules/malloc-posix: New file.
40163         * modules/malloc (Depends-on): Add malloc-posix.
40164         * lib/malloc.c: Include errno.h.
40165         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
40166         and a POSIX-compatible malloc into a single function. Set ENOMEM
40167         when returning NULL.
40168         * m4/malloc.m4: New file.
40169         * doc/functions/malloc.texi: Mention the malloc-posix module.
40170         * lib/stdlib_.h (malloc): New declaration.
40171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40172         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
40173         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
40174         and HAVE_MALLOC_POSIX.
40175
40176 2007-09-09  Bruno Haible  <bruno@clisp.org>
40177
40178         * modules/realloc-posix: New file.
40179         * modules/realloc (Depends-on): Add realloc-posix.
40180         * lib/realloc.c: Include errno.h.
40181         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
40182         and a POSIX-compatible realloc into a single function. Set ENOMEM
40183         when returning NULL.
40184         * m4/realloc.m4: New file.
40185         * doc/functions/realloc.texi: Mention the realloc-posix module.
40186         * lib/stdlib_.h (realloc): New declaration.
40187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40188         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
40189         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
40190         and HAVE_REALLOC_POSIX.
40191
40192 2007-09-09  Bruno Haible  <bruno@clisp.org>
40193
40194         * modules/calloc-posix: New file.
40195         * modules/calloc (Depends-on): Add calloc-posix.
40196         * lib/calloc.c: Include errno.h.
40197         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
40198         and a POSIX-compatible calloc into a single function. Set ENOMEM
40199         when returning NULL.
40200         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
40201         * doc/functions/calloc.texi: Mention the calloc-posix module.
40202         * lib/stdlib_.h (calloc): New declaration.
40203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40204         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
40205         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
40206         and HAVE_CALLOC_POSIX.
40207
40208 2007-09-09  Bruno Haible  <bruno@clisp.org>
40209
40210         Allow for modules to show an arbitrary notice.
40211         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
40212         * gnulib-tool: New option --extract-notice.
40213         (func_usage): Document it.
40214         (sed_extract_prog): Update.
40215         (func_get_notice): New function.
40216         (func_modules_notice): New function.
40217         (func_import, func_create_testdir): Invoke it.
40218         Suggested by Jim Meyering.
40219
40220 2007-09-09  Bruno Haible  <bruno@clisp.org>
40221
40222         * gnulib-tool: New options --verbose, --quiet.
40223         (func_usage): Document them.
40224         (verbose): New variable.
40225         (func_execute_command): New function.
40226         (func_import): Don't show the module list and the file list if
40227         $verbose < 0.
40228         (func_create_testdir): Likewise. Use func_execute_command.
40229         (func_create_megatestdir): Use func_execute_command.
40230
40231 2007-09-08  Bruno Haible  <bruno@clisp.org>
40232
40233         * gnulib-tool (func_import): Prefer rsync over wget when available,
40234         for fetching the PO files.
40235
40236 2007-09-08  Bruno Haible  <bruno@clisp.org>
40237
40238         * posix-modules: New file. Portions copied from gnulib-tool.
40239         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
40240
40241 2007-09-08  Jim Meyering  <jim@meyering.net>
40242
40243         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
40244         * lib/fpending.h: Rename from __fpending.h.
40245         * lib/fpending.c: Rename from __fpending.c.
40246         Include "fpending.h", not "__fpending.h".
40247         * lib/__fpending.h, lib/__fpending.c: Remove files.
40248         * modules/fpending (Files): Reflect new file names.
40249         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
40250
40251 2007-09-08  Bruno Haible  <bruno@clisp.org>
40252
40253         * m4/inttypes-h.m4: Remove stub file.
40254
40255 2007-09-07  Simon Josefsson  <simon@josefsson.org>
40256
40257         * doc/headers/stdint.texi: Discuss #include_next issue.
40258
40259 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40260
40261         * build-aux/bootstrap: Remove obsolete comment about wget --help.
40262
40263 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40264
40265         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
40266         in variable name.
40267
40268 2007-09-03  Jim Meyering  <jim@meyering.net>
40269
40270         New module: git-version-gen.
40271         * modules/git-version-gen: New file.
40272
40273         Import changes from coreutils for bootstrap script.
40274
40275         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
40276
40277         bootstrap: uses rsync to download the .po files
40278         * build-aux/bootstrap (po_download_command_format): New global.
40279         (download_po_files): Use rsync.
40280         (update_po_files): Don't remove .po files after download,
40281         so future rsync runs can take advantage of the copies.
40282
40283         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
40284
40285         Solve the unnecessary-.po-file-regeneration problem once and for all.
40286         * build-aux/bootstrap (download_po_files): New function, renamed from
40287         get_translations.  Now, downloads, but doesn't update LINGUAS.
40288         (update_po_files): New function.
40289
40290         bootstrap: Ignore more.
40291         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
40292         uniwidth to e.g., lib/.gitignore.
40293         (slurp): Handle the sys_stat_.h -> sys mapping, too.
40294
40295         * build-aux/bootstrap: New setting: vc_ignore.
40296         (insert_sorted_if_absent): Create $file if absent.
40297         Adapt to new, possibly empty, list: $vc_ignore.
40298
40299         bootstrap: generate more ignorable names
40300         * build-aux/bootstrap (slurp): When generating ignorable names,
40301         also map .sin to .sed, .gperf to .c, and .y to .c.
40302
40303 2007-09-03  Jim Meyering  <jim@meyering.net>
40304
40305         * build-aux/git-version-gen: New file, from coreutils.  For details, see
40306         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
40307
40308 2007-09-02  Bruno Haible  <bruno@clisp.org>
40309
40310         Fix mis-recognition of 'mcs' on QNX 6.
40311         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
40312         output contains the string "Mono".
40313         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
40314         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
40315
40316 2007-09-01  Bruno Haible  <bruno@clisp.org>
40317
40318         Fix collision between uniwidth/* and linebreak modules.
40319         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
40320         u32_width): Remove declarations.
40321         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
40322         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
40323         streq3, streq2, streq1, streq0): Remove functions.
40324         (STREQ): Remove macro.
40325         (is_cjk_encoding): Remove function.
40326         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
40327         (uc_width, u8_width, u16_width, u32_width): Remove functions.
40328         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
40329         * NEWS: Document the change.
40330
40331 2007-09-01  Bruno Haible  <bruno@clisp.org>
40332
40333         * lib/streq.h: Add double-inclusion guard.
40334
40335 2007-09-01  Karl Berry  <karl@gnu.org>
40336
40337         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
40338
40339 2007-08-28  Jim Meyering  <jim@meyering.net>
40340
40341         Rename mreadlink_with_size to areadlink_with_size.
40342         * NEWS: Document the change.
40343         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
40344         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
40345         * lib/mreadlink.h: Rename this to...
40346         * lib/areadlink.h: ...this.
40347         * modules/mreadlink-with-size: Rename this to...
40348         * modules/areadlink-with-size: ...this.
40349         * lib/canonicalize.c: Reflect the renaming.
40350         * modules/canonicalize: Likewise.
40351
40352 2007-08-26  Bruno Haible  <bruno@clisp.org>
40353
40354         * gnulib-tool (func_import): When deciding which files to remove,
40355         consider also dangling symbolic links.
40356         Reported by Eric Blake.
40357
40358 2007-08-26  Bruno Haible  <bruno@clisp.org>
40359
40360         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
40361
40362 2007-08-23  Simon Josefsson  <simon@josefsson.org>
40363
40364         * lib/readline.c: Don't include getline.h, the prototype is now
40365         found in stdio.h.
40366
40367 2007-08-23  Jim Meyering  <jim@meyering.net>
40368
40369         Getdelim touchup.
40370         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40371         around the funlockfile call, since funlockfile never sets errno.
40372         Don't set errno upon failed realloc.
40373
40374 2007-08-22  Eric Blake  <ebb9@byu.net>
40375
40376         Getline touchups.
40377         * lib/getdelim.c (getdelim): Revert regression that required *n to
40378         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40379         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40380         getdelim, rather than whether implementation is missing.
40381         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40382         * lib/stdio_.h (getline): Also declare if replacement is
40383         required.
40384         * doc/functions/getdelim.texi: New file.
40385         * doc/functions/getline.texi: Likewise.
40386         * doc/gnulib.texi (Function Substitutes): Add new files.
40387         Reported by Bruno Haible.
40388
40389 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40390
40391         * users.txt: Add Guile.
40392
40393 2007-08-22  Eric Blake  <ebb9@byu.net>
40394
40395         * tests/test-getdelim.c (main): Use remove, not unlink.
40396         * tests/test-getline.c (main): Likewise.
40397
40398         Move getline and getdelim into stdio.h, per POSIX 200x.
40399         * modules/getline (Files): Remove getline.h.
40400         (Depends-on): Add stdio.
40401         (configure.ac): Add module indicator.
40402         * modules/getdelim (Files): Remove getdelim.h.
40403         (Depends-on): Add stdio.
40404         (configure.ac): Add module indicator.
40405         * modules/stdio (Makefile.am): Work with new indicators.
40406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40407         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40408         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40409         * lib/getdelim.h: Delete.
40410         * lib/getline.h: Delete.
40411         * lib/stdio_.h (getdelim, getline): Declare.
40412         * modules/getdelim-tests: New module.
40413         * modules/getline-tests: Likewise.
40414         * tests/test-getdelim.c: New file.
40415         * tests/test-getline.c: Likewise.
40416         * NEWS: Document the change.
40417         * lib/getline.c: Update choice of header.
40418         * lib/csharpcomp.c: Likewise.
40419         * lib/getpass.c: Likewise.
40420         * lib/javacomp.c: Likewise.
40421         * lib/javaversion.c: Likewise.
40422         * lib/yesno.c: Likewise.
40423         * lib/getdelim.c: Likewise.
40424         (getdelim): Set errno on failure, and avoid memory leak.
40425
40426 2007-08-19  Bruno Haible  <bruno@clisp.org>
40427
40428         * modules/closein (Depends-on): Add freadahead.
40429         * lib/closein.c: Include freadahead.h.
40430         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40431         is zero.
40432
40433 2007-08-19  Bruno Haible  <bruno@clisp.org>
40434
40435         * modules/freadahead-tests: New file.
40436         * tests/test-freadahead.sh: New file.
40437         * tests/test-freadahead.c: New file.
40438
40439         * modules/freadahead: New file.
40440         * lib/freadahead.h: New file.
40441         * lib/freadahead.c: New file.
40442         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40443         fbufmode, fpurge, freadable, fwritable.
40444
40445 2007-08-19  Eric Blake  <ebb9@byu.net>
40446
40447         Test yesno in combination with closein.
40448         * lib/yesno.c (yesno): Document use of stdin.
40449         * modules/yesno-tests (Files): New module.
40450         * tests/test-yesno.c (main): New file.
40451         * tests/test-yesno.sh: Likewise.
40452
40453 2007-08-19  Bruno Haible  <bruno@clisp.org>
40454
40455         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40456         * lib/fseeko.c (rpl_fseeko): Likewise.
40457         * lib/fseterr.c (fseterr): Likewise.
40458
40459 2007-08-19  Bruno Haible  <bruno@clisp.org>
40460
40461         * tests/test-lseek.c (main): Disable a test for BeOS.
40462         * doc/functions/lseek.texi: Document the BeOS bug.
40463
40464 2007-08-19  Bruno Haible  <bruno@clisp.org>
40465             Eric Blake  <ebb9@byu.net>
40466
40467         * lib/lseek.c: Include <sys/stat.h>.
40468         (rpl_lseek): Add workaround code also for Unix platforms.
40469         Needed for BeOS.
40470         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40471         * doc/functions/lseek.texi: Document BeOS definiency.
40472
40473 2007-08-18  Bruno Haible  <bruno@clisp.org>
40474
40475         * modules/fstrcmp-tests: New file.
40476         * tests/test-fstrcmp.c: New file.
40477
40478 2007-08-18  Bruno Haible  <bruno@clisp.org>
40479
40480         * modules/fstrcmp: New file, from GNU gettext with modifications.
40481         * lib/fstrcmp.h: New file, from GNU gettext.
40482         * lib/fstrcmp.c: New file, from GNU gettext.
40483         * MODULES.html.sh (String handling): Add fstrcmp.
40484
40485 2007-08-18  Bruno Haible  <bruno@clisp.org>
40486
40487         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40488         'bool'.
40489         (diag, compareseq): Remove const from the ctxt argument.
40490         (USE_HEURISTIC): Undefine at the end.
40491
40492 2007-08-18  Jim Meyering  <jim@meyering.net>
40493
40494         New file: lib/idcache.h
40495         * NEWS: Mention the addition.
40496         * modules/idcache (Files): Add lib/idcache.h
40497         * lib/idcache.c: Include "idcache.h".
40498         Don't include <sys/types.h>.
40499         Add a FIXME comment.
40500         Move file-scoped "static" declarations to the top.
40501         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40502
40503 2007-08-17  Bruno Haible  <bruno@clisp.org>
40504         and Paul Eggert  <eggert@cs.ucla.edu>
40505
40506         * MODULES.html.sh: Add diffseq.
40507         * modules/diffseq: New file.
40508         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40509         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40510
40511 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40512
40513         Import changes from coreutils for bootstrap script.
40514
40515         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40516
40517         * build-aux/bootstrap (slurp): Work even in environments where
40518         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40519         current code does not slurp files whose names start with ".", and
40520         this looks like it might be a troublesome area.
40521
40522         2007-07-11  Jim Meyering  <jim@meyering.net>
40523
40524         If there's a GPL vN copyright comment, require that N == 3.
40525
40526         2007-07-08  Jim Meyering  <jim@meyering.net>
40527
40528         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40529         * build-aux/bootstrap (mam_template): Move definition out of loop.
40530
40531         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40532
40533         * build-aux/bootstrap (symlink_to_dir): Rename function from
40534         symlink_to_gnulib.  Add a directory parameter.  Update all
40535         callers.
40536         (cp_mark_as_generated): Also check for -- and link to -- files in
40537         gl/.
40538
40539         2007-07-08  Jim Meyering  <jim@meyering.net>
40540
40541         Adapt to deeper hierarchy in gnulib.
40542         * build-aux/bootstrap (symlink_to_dir): If the destination
40543         directory doesn't exist, create it. This is required at least for
40544         "lib/uniwidth/cjk.h".
40545
40546         2007-05-15  Jim Meyering  <jim@meyering.net>
40547
40548         * build-aux/bootstrap: Now that generated Makefile.am files
40549         are no longer under version control, they must be created at
40550         bootstrap time.
40551
40552 2007-08-14  Ben Pfaff  <blp@gnu.org>
40553
40554         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40555
40556 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40557
40558         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40559         given the changes below.
40560         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40561         even on hosts that have padding bits beyond the supported 64.
40562
40563 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40564
40565         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40566         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40567         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40568         depends on it.
40569         (xstrtol_error): Remove.
40570         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40571         but with a different signature.
40572         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40573         * lib/xstrtol-error.c: Include exitfail.h.
40574         (xstrtol_fatal): New function, with a different signature from the
40575         old xstrtol_error, so that the caller need not worry about passing
40576         in an exit status, or about storage management of the option argument.
40577         (xstrtol_error): Now a static function.  Redo signature to
40578         implement xstrtol_fatal.  Output the correct number of hyphens in
40579         front of the option so that the caller need not worry about
40580         storage management.
40581         (N_): New macro.
40582         (_): Remove; not used now.
40583         * modules/xstrtol: Depend on getopt.
40584         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40585         of old STRTOL_FATAL_ERROR macro.
40586         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40587         of test program.
40588         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40589         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40590
40591 2007-08-08  Eric Blake  <ebb9@byu.net>
40592
40593         * lib/xstrtol-error.c: Add missing include.
40594
40595         Move xstrtol messages into gnulib domain, when --pobase is used.
40596         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40597         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40598         * modules/xstrtol (Files): Distribute new file.
40599         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40600         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40601         * tests/test-xstrtol.c: ...into new file.
40602         * tests/test-xstrtoul.c: Also test xstrtoul.
40603         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40604         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40605         * tests/test-xstrtol.sh: Drive the tests.
40606         * tests/test-xstrtoimax.sh: Likewise.
40607         * tests/test-xstrtoumax.sh: Likewise.
40608         * modules/xstrtol-tests: New module.
40609         * modules/xstrtoimax-tests: Likewise.
40610         * modules/xstrtoumax-tests: Likewise.
40611
40612 2007-08-08  Jim Meyering  <jim@meyering.net>
40613
40614         New function: mfile_name_concat.
40615         * lib/filenamecat.c (mfile_name_concat): New function, just like
40616         file_name_concat, but return NULL upon failure rather than exiting
40617         with a diagnostic.
40618         * lib/filenamecat.h: Declare it.
40619
40620 2007-08-07  Bruno Haible  <bruno@clisp.org>
40621
40622         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40623         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40624         warning from gcc.
40625         Reported by Eric Blake.
40626
40627 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40628
40629         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40630         * modules/crypto/arcfour (License): Likewise.
40631         * modules/crypto/des-tests (License): Likewise.
40632         * modules/crypto/gc-arctwo-tests (License): Likewise.
40633         * modules/crypto/gc-des-tests (License): Likewise.
40634         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40635         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40636         * modules/crypto/gc-md2-tests (License): Likewise.
40637         * modules/crypto/gc-md4-tests (License): Likewise.
40638         * modules/crypto/gc-md5-tests (License): Likewise.
40639         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40640         * modules/crypto/gc-rijndael-tests (License): Likewise.
40641         * modules/crypto/gc-sha1-tests (License): Likewise.
40642         * modules/crypto/gc-tests (License): Likewise.
40643         * modules/crypto/hmac-md5 (License): Likewise.
40644         * modules/crypto/hmac-sha1 (License): Likewise.
40645         * modules/crypto/md2-tests (License): Likewise.
40646         * modules/crypto/md4-tests (License): Likewise.
40647         * modules/crypto/md5 (License): Likewise.
40648         * modules/crypto/rijndael (License): Likewise.
40649         * modules/crypto/sha1 (License): Likewise.
40650         * modules/memxor (License): Likewise.
40651
40652 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40653         and Bruno Haible  <bruno@clisp.org>
40654
40655         * NEWS: Describe interface changes to human, xstrtol.
40656         * lib/human.h: Include <xstrtol.h>.
40657         (human_options): Return enum strtol_error, not int.  Remove
40658         bool arg; take int * instead.
40659         * lib/human.c: Don't include "gettext.h".
40660         (_): Remove; no longer used.
40661         Don't include <xstrtol.h>, since human.h does it.
40662         (human_options): Adjust to abovementioned interface changes.
40663         Do not report error to stderr; that's now the caller's
40664         responsibility.
40665         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
40666         interface change.
40667         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
40668         Str, Argument_type_string.  All uses changed.  Put " argument"
40669         in diagnostics to make them clearer.  Change wording of suffix
40670         message for clarity.
40671         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
40672         Argument_type_string.
40673         (STRTOL_FATAL_WARN): Remove; no longer used.
40674         * modules/human (Depends-on): Remove gettext-h.
40675
40676 2007-08-06  Simon Josefsson  <simon@josefsson.org>
40677
40678         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
40679
40680 2007-07-31  Bruno Haible  <bruno@clisp.org>
40681
40682         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
40683         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
40684         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
40685
40686 2007-07-31  Bruno Haible  <bruno@clisp.org>
40687
40688         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
40689         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
40690
40691 2007-07-30  Bruno Haible  <bruno@clisp.org>
40692
40693         * modules/base64 (License): Use the synonymous term "LGPLv2+".
40694         * modules/c-ctype (License): Likewise.
40695         * modules/c-strcase (License): Likewise.
40696         * modules/check-version (License): Likewise.
40697         * modules/iconv (License): Likewise.
40698         * modules/iconv_open (License): Likewise.
40699         * modules/read-file (License): Likewise.
40700         * modules/striconv (License): Likewise.
40701         * modules/strverscmp (License): Likewise.
40702         * modules/vasprintf (License): Likewise.
40703         * modules/crypto/des (License): Likewise.
40704         * modules/crypto/gc (License): Likewise.
40705         * modules/crypto/gc-arcfour (License): Likewise.
40706         * modules/crypto/gc-arctwo (License): Likewise.
40707         * modules/crypto/gc-des (License): Likewise.
40708         * modules/crypto/gc-hmac-md5 (License): Likewise.
40709         * modules/crypto/gc-hmac-sha1 (License): Likewise.
40710         * modules/crypto/gc-md2 (License): Likewise.
40711         * modules/crypto/gc-md4 (License): Likewise.
40712         * modules/crypto/gc-md5 (License): Likewise.
40713         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
40714         * modules/crypto/gc-random (License): Likewise.
40715         * modules/crypto/gc-rijndael (License): Likewise.
40716         * modules/crypto/gc-sha1 (License): Likewise.
40717         * modules/crypto/md2 (License): Likewise.
40718         * modules/crypto/md4 (License): Likewise.
40719
40720 2007-07-30  Jim Meyering  <jim@meyering.net>
40721
40722         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
40723         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
40724         it has valid stat data.  This bug would cause du not to count the
40725         sizes of inaccessible directories.
40726         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
40727         in <http://bugzilla.redhat.com/250077>.
40728
40729 2007-07-25  Peter O'Gorman  <peter@pogma.com>
40730             Bruno Haible  <bruno@clisp.org>
40731
40732         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
40733         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
40734         #include_next, gives a diagnostic about it, but reports no error in
40735         the exit code.
40736         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40737
40738 2007-07-24  Ben Pfaff  <blp@gnu.org>
40739
40740         Improve name: "count-one-bits" is better than "popcount".
40741         * MODULES.html.sh: Update name.
40742         * lib/popcount.h: Renamed lib/count-one-bits.h.
40743         (popcount): Renamed count_one_bits.
40744         (popcountl): Renamed count_one_bits_l.
40745         (popcountll): Renamed count_one_bits_ll.
40746         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
40747         * modules/popcount: Renamed module/count-one-bits.
40748         * modules/popcount-tests: Renamed module/count-one-bits-tests.
40749         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
40750
40751 2007-07-23  Ben Pfaff  <blp@gnu.org>
40752
40753         * lib/popcount.h (popcount32): Reduce size of constants, to allow
40754         better code generation, and add U to large constants to avoid
40755         warnings, in non-GCC case.
40756         Suggested by Bruno Haible.
40757
40758 2007-07-23  Ben Pfaff  <blp@gnu.org>
40759
40760         * lib/popcount.h: Use verify_true instead of if...abort.
40761         * modules/popcount: Depend on verify module.
40762         Suggested by Jim Meyering.
40763
40764 2007-07-23  Bruno Haible  <bruno@clisp.org>
40765
40766         * gnulib-tool (func_import): Create a .cvsignore file also when the
40767         directory is not yet in CVS but the toplevel directory is. When
40768         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
40769         Reported by Karl Berry.
40770
40771 2007-07-22  Ben Pfaff  <blp@gnu.org>
40772
40773         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
40774         case.
40775         Suggested by Eric Blake.
40776
40777 2007-07-22  Ben Pfaff  <blp@gnu.org>
40778
40779         New module: popcount.
40780         * MODULES.html.sh: Add popcount.
40781         * modules/popcount: New file.
40782         * modules/popcount-tests: New file.
40783         * tests/test-popcount.c: New file.
40784         * lib/popcount.h: New file.
40785         * m4/popcount.m4: New file.
40786
40787 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40788
40789         * build-aux/announce-gen: Update to GPLv3.
40790
40791         * build-aux/config.guess: Update from config.
40792
40793 2007-07-21  Bruno Haible  <bruno@clisp.org>
40794
40795         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
40796         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
40797
40798 2007-07-20  Jim Meyering  <jim@meyering.net>
40799
40800         * check-module: Diagnose a self-dependency.
40801
40802 2007-07-19  Bruno Haible  <bruno@clisp.org>
40803
40804         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
40805         empty.
40806         Reported by Eric Blake.
40807
40808 2007-07-18  Bruno Haible  <bruno@clisp.org>
40809
40810         * gnulib-tool: New options --po-base, --po-domain.
40811         (func_usage): Document them.
40812         (pobase, po_domain): New variables.
40813         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40814         DEFAULT_TEXT_DOMAIN.
40815         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40816         (func_import): Consider pobase and po_domain. Create a po/ directory.
40817         (func_create_testdir): Set pobase and po_domain to empty.
40818         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40819         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40820
40821 2007-07-18  Bruno Haible  <bruno@clisp.org>
40822
40823         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40824         EXTRA_DIST augmentation for files in build-aux/.
40825
40826 2007-07-16  Bruno Haible  <bruno@clisp.org>
40827
40828         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40829         * modules/getdelim (License): Likewise.
40830
40831 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40832
40833         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40834         * modules/d-type (License): Likewise.
40835         * modules/extensions (License): Likewise.
40836         * modules/fnmatch (License): Likewise.
40837         * modules/fseeko (License): Likewise.
40838         * modules/getaddrinfo (License): Likewise.
40839         * modules/getline (License): Likewise.
40840         * modules/getlogin_r (License): Likewise.
40841         * modules/getpass (License): Likewise.
40842         * modules/gettimeofday (License): Likewise.
40843         * modules/glob (License): Likewise.
40844         * modules/inet_ntop (License): Likewise.
40845         * modules/malloc (License): Likewise.
40846         * modules/malloca (License): Likewise.
40847         * modules/memmem (License): Likewise.
40848         * modules/mempcpy (License): Likewise.
40849         * modules/memset (License): Likewise.
40850         * modules/minmax (License): Likewise.
40851         * modules/mktime (License): Likewise.
40852         * modules/netinet_in (License): Likewise.
40853         * modules/pathmax (License): Likewise.
40854         * modules/poll (License): Likewise.
40855         * modules/regex (License): Likewise.
40856         * modules/snprintf (License): Likewise.
40857         * modules/stdbool (License): Likewise.
40858         * modules/stdint (License): Likewise.
40859         * modules/stdio (License): Likewise.
40860         * modules/strcase (License): Likewise.
40861         * modules/strcasestr (License): Likewise.
40862         * modules/strdup (License): Likewise.
40863         * modules/string (License): Likewise.
40864         * modules/strndup (License): Likewise.
40865         * modules/strnlen (License): Likewise.
40866         * modules/strpbrk (License): Likewise.
40867         * modules/strptime (License): Likewise.
40868         * modules/strsep (License): Likewise.
40869         * modules/sys_select (License): Likewise.
40870         * modules/sys_socket (License): Likewise.
40871         * modules/sys_stat (License): Likewise.
40872         * modules/sys_time (License): Likewise.
40873         * modules/time (License): Likewise.
40874         * modules/time_r (License): Likewise.
40875         * modules/timegm (License): Likewise.
40876         * modules/unistd (License): Likewise.
40877         * modules/vsnprintf (License): Likewise.
40878         * modules/wctype (License): Likewise.
40879
40880 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40881
40882         * modules/argz (License): LGPLv2+.
40883
40884 2007-07-15  Karl Berry  <karl@gnu.org>
40885
40886         * doc/gnulib.texi: revise node structure per new fdl.texi.
40887
40888 2007-07-14  Bruno Haible  <bruno@clisp.org>
40889
40890         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40891         the output file.
40892         * lib/uniname/uninames.h: Regenerated.
40893
40894 2007-07-14  Karl Berry  <karl@gnu.org>
40895
40896         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40897         omitting sectioning and index commands.
40898
40899 2007-07-13  Bruno Haible  <bruno@clisp.org>
40900
40901         New gnulib-tool option --more-symlinks.
40902         * gnulib-tool (func_usage): Document --more-symlinks.
40903         (do_copyrights): New variable.
40904         Recognize option --more-symlinks.
40905         (func_import): Don't add a copyright notice transform to
40906         sed_transform_lib_file if do_copyrights is empty.
40907
40908 2007-07-13  Bruno Haible  <bruno@clisp.org>
40909
40910         * lib/vasnprintf.c (decimal_point_char): Define also if
40911         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40912         && !NEED_PRINTF_DIRECTIVE_A.
40913         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40914         Gary V. Vaughan <gary@gnu.org>.
40915
40916 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40917
40918         * lib/inttypes_.h: Undo previous change, since it was fixed
40919         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40920
40921 2007-07-13  Bruno Haible  <bruno@clisp.org>
40922
40923         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40924         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40925
40926 2007-07-13  Jim Meyering  <jim@meyering.net>
40927
40928         df: Don't fail for Tru64's "file-on-file mount".
40929         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40930         so we fall through and use statfs instead.  Details here:
40931         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40932         Reported by Albert Chin.
40933
40934 2007-07-13  Bruno Haible  <bruno@clisp.org>
40935
40936         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40937         * modules/configmake (License): Likewise.
40938         * modules/gettext (License): Likewise.
40939         * modules/gettext-h (License): Likewise.
40940         * modules/include_next (License): Likewise.
40941         * modules/link-warning (License): Likewise.
40942         * modules/localcharset (License): Likewise.
40943         * modules/localename (License): Likewise.
40944         * modules/lock (License): Likewise.
40945         * modules/relocatable-lib-lgpl (License): Likewise.
40946         * modules/size_max (License): Likewise.
40947         * modules/vasnprintf (License): Likewise.
40948         * modules/wchar (License): Likewise.
40949         * modules/xsize (License): Likewise.
40950
40951 2007-07-13  Bruno Haible  <bruno@clisp.org>
40952
40953         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40954         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40955
40956 2007-07-12  Bruno Haible  <bruno@clisp.org>
40957
40958         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40959         in the modules files.
40960
40961 2007-07-11  Karl Berry  <karl@gnu.org>
40962
40963         * MODULES.html.sh (func_module): use
40964          sed -e '\|^'"${includefile}"'$|d'
40965          instead of /.../d, to avoid errors on $includefile's containing /.
40966
40967 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40968
40969         * gnulib-tool (func_import): Avoid duplication of --avoid
40970         statements
40971         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40972         names to `_' in variable names.
40973
40974 2007-07-10  Eric Blake  <ebb9@byu.net>
40975
40976         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40977         * NEWS: Document this change.
40978
40979 2007-07-08  Bruno Haible  <bruno@clisp.org>
40980
40981         Update to Unicode 5.0.
40982         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40983         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40984         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40985         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40986         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40987         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40988         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40989         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40990         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40991         U+10A3F, U+1D242..U+1D244.
40992         (nonspacing_table_ind): Update.
40993         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40994         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40995
40996 2007-07-08  Bruno Haible  <bruno@clisp.org>
40997
40998         Update to Unicode 5.0.
40999         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
41000         code transform. Extend the name index field of unicode_name_to_code and
41001         unicode_code_to_name from 16 to 24 bits.
41002         * lib/uniname/uniname.c (unicode_character_name,
41003         unicode_name_character): Add the range 0x12xxx to the code transform.
41004         * lib/uniname/uninames.h: Regenerated.
41005         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
41006
41007 2007-07-07  Bruno Haible  <bruno@clisp.org>
41008
41009         * modules/wcwidth-tests: New file.
41010         * tests/test-wcwidth.c: New file.
41011
41012         Work around MacOS X wcwidth() bug.
41013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
41014         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
41015         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
41016         original wcwidth in non-UTF-8 locales.
41017         * modules/wcwidth (Depends-on): Add localcharset, streq,
41018         uniwidth/width.
41019         * doc/functions/wcwidth.texi: Update.
41020
41021 2007-07-07  Bruno Haible  <bruno@clisp.org>
41022
41023         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
41024         (wcwidth): New declaration.
41025         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
41026         macros.
41027         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
41028         here. Prepare for creating <wchar.h> unconditionally.
41029         * modules/wchar (Depends-on): Add link-warning.
41030         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
41031         REPLACE_WCWIDTH, and GL_LINK_WARNING.
41032         * lib/wcwidth.h: Remove file.
41033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
41034         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
41035         * modules/wcwidth (Files): Remove lib/wcwidth.h.
41036         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
41037         (Include): Replace wcwidth.h with <wchar.h>.
41038         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
41039         * lib/mbchar.h: Don't include wcwidth.h.
41040         * lib/mbswidth.c: Likewise.
41041         * NEWS: Mention the change.
41042
41043 2007-07-07  Bruno Haible  <bruno@clisp.org>
41044
41045         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
41046         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
41047         definition with an external declaration.
41048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
41049         defined as a function. Remove AC_C_INLINE requirement.
41050         * modules/wcwidth (Files): Add lib/wcwidth.c.
41051         (Makefile.am): Remove redundant statement.
41052
41053 2007-07-07  Bruno Haible  <bruno@clisp.org>
41054
41055         * MODULES.html.sh (Unicode string functions): Add the new modules.
41056
41057         * tests/uniwidth/test-u32-strwidth.c: New file.
41058         * modules/uniwidth/u32-strwidth-tests: New file.
41059
41060         * lib/uniwidth/u32-strwidth.c: New file.
41061         * modules/uniwidth/u32-strwidth: New file.
41062
41063         * tests/uniwidth/test-u16-strwidth.c: New file.
41064         * modules/uniwidth/u16-strwidth-tests: New file.
41065
41066         * lib/uniwidth/u16-strwidth.c: New file.
41067         * modules/uniwidth/u16-strwidth: New file.
41068
41069         * tests/uniwidth/test-u8-strwidth.c: New file.
41070         * modules/uniwidth/u8-strwidth-tests: New file.
41071
41072         * lib/uniwidth/u8-strwidth.c: New file.
41073         * modules/uniwidth/u8-strwidth: New file.
41074
41075         * tests/uniwidth/test-u32-width.c: New file.
41076         * modules/uniwidth/u32-width-tests: New file.
41077
41078         * lib/uniwidth/u32-width.c: New file.
41079         * modules/uniwidth/u32-width: New file.
41080
41081         * tests/uniwidth/test-u16-width.c: New file.
41082         * modules/uniwidth/u16-width-tests: New file.
41083
41084         * lib/uniwidth/u16-width.c: New file.
41085         * modules/uniwidth/u16-width: New file.
41086
41087         * tests/uniwidth/test-u8-width.c: New file.
41088         * modules/uniwidth/u8-width-tests: New file.
41089
41090         * lib/uniwidth/u8-width.c: New file.
41091         * modules/uniwidth/u8-width: New file.
41092
41093         * tests/uniwidth/test-uc_width.c: New file.
41094         * modules/uniwidth/width-tests: New file.
41095
41096         * lib/uniwidth/width.c: New file, from GNU libiconv.
41097         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
41098         * modules/uniwidth/width: New file.
41099
41100         * lib/uniwidth.h: New file, from GNU libiconv.
41101         * modules/uniwidth/base: New file.
41102
41103 2007-07-07  Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/uniname.h: New file, from GNU gettext.
41106         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
41107         * lib/uniname/uninames.h: New file, from GNU gettext.
41108         * lib/uniname/uniname.c: New file, from GNU gettext.
41109         * tests/uniname/test-uninames.sh: New file.
41110         * tests/uniname/test-uninames.c: New file, from GNU gettext.
41111         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
41112         * modules/uniname/base: New file.
41113         * modules/uniname/uniname: New file.
41114         * modules/uniname/uniname-tests: New file.
41115         * MODULES.html.sh (Unicode string functions): Add the new modules.
41116
41117 2007-07-06  Bruno Haible  <bruno@clisp.org>
41118
41119         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
41120
41121 2007-07-06  Bruno Haible  <bruno@clisp.org>
41122
41123         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
41124         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
41125         includes <cygwin/sys_time.h> which includes <sys/select.h> which
41126         include <sys/time.h>.
41127         Reported by Eric Blake.
41128
41129 2007-07-06  Eric Blake  <ebb9@byu.net>
41130
41131         Fix testing canonicalize on cygwin.
41132         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41133         Revert patch from 2007-06-19.
41134         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
41135         canonicalize module is also in use.
41136         * tests/test-canonicalize.c: New file.
41137         * tests/test-canonicalize.sh: Likewise.
41138         * modules/canonicalize-tests: Likewise.
41139
41140 2007-07-06  Jim Meyering  <jim@meyering.net>
41141
41142         * lib/getugroups.c (getugroups): Detect getgrent failure.
41143         Adjust comment to reflect reality: this function may return -1.
41144
41145 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
41146
41147         * build-aux/bootstrap (TP_URL,get_translations): Update to use
41148         the new TP address.
41149         (usage): Fix typo
41150         (gnulib_mk): New variable.
41151
41152 2007-07-05  Jim Meyering  <jim@meyering.net>
41153
41154         Don't let endgrent clobber errno, no matter how improbable.
41155         * lib/getugroups.c (getugroups): Save and restore errno around
41156         endgrent call.
41157
41158         Close the group DB even when failing with 2^31 or more members.
41159         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
41160
41161 2007-07-04  Jim Meyering  <jim@meyering.net>
41162
41163         * lib/getugroups.h: New file.
41164         * lib/getugroups.c: Include "getugroups.h".
41165         Remove uses of "register" keyword.
41166         Move local variable, "cp", down into scope where used.
41167         Give "username" parameter the "const" attribute.
41168         * modules/getugroups (Files): Add lib/getugroups.h
41169
41170 2007-07-04  Karl Berry  <karl@gnu.org>
41171
41172         * MODULES.html.sh (func_all_modules): Complete rename of
41173         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
41174
41175 2007-07-02  Bruno Haible  <bruno@clisp.org>
41176
41177         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
41178         mode, when inttypes.h comes from gnulib.
41179         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41180
41181 2007-07-02  Simon Josefsson  <simon@josefsson.org>
41182
41183         * NEWS: Mention lgpl module name change.
41184
41185         * modules/lgpl-2.1: Renamed from lgpl.
41186
41187         * NEWS: Mention gpl module name change.
41188
41189         * modules/gpl-3.0: New file, based on gpl-2.0.
41190
41191         * modules/gpl-2.0: Renamed from gpl.
41192
41193         * modules/gpl: Fix filename, doc/gpl.texi is now found at
41194         doc/gpl-2.0.texi.
41195
41196 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
41197
41198         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
41199         #define __STDC_LIMIT_MACROS temporarily while including
41200         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
41201         Problem reported by Joel E. Denny in
41202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
41203
41204 2007-07-01  Bruno Haible  <bruno@clisp.org>
41205
41206         * lib/unistdio.h: New file.
41207         * lib/unistdio/u-asnprintf.h: New file.
41208         * lib/unistdio/u-asprintf.h: New file.
41209         * lib/unistdio/u-printf-args.c: New file.
41210         * lib/unistdio/u-printf-args.h: New file.
41211         * lib/unistdio/u-printf-parse.h: New file.
41212         * lib/unistdio/u-snprintf.h: New file.
41213         * lib/unistdio/u-sprintf.h: New file.
41214         * lib/unistdio/u-vasprintf.h: New file.
41215         * lib/unistdio/u-vsnprintf.h: New file.
41216         * lib/unistdio/u-vsprintf.h: New file.
41217         * lib/unistdio/ulc-asnprintf.c: New file.
41218         * lib/unistdio/ulc-asprintf.c: New file.
41219         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
41220         * lib/unistdio/ulc-printf-parse.c: New file.
41221         * lib/unistdio/ulc-snprintf.c: New file.
41222         * lib/unistdio/ulc-sprintf.c: New file.
41223         * lib/unistdio/ulc-vasnprintf.c: New file.
41224         * lib/unistdio/ulc-vasprintf.c: New file.
41225         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
41226         * lib/unistdio/ulc-vsnprintf.c: New file.
41227         * lib/unistdio/ulc-vsprintf.c: New file.
41228         * lib/unistdio/u8-asnprintf.c: New file.
41229         * lib/unistdio/u8-asprintf.c: New file.
41230         * lib/unistdio/u8-printf-parse.c: New file.
41231         * lib/unistdio/u8-snprintf.c: New file.
41232         * lib/unistdio/u8-sprintf.c: New file.
41233         * lib/unistdio/u8-vasnprintf.c: New file.
41234         * lib/unistdio/u8-vasprintf.c: New file.
41235         * lib/unistdio/u8-vsnprintf.c: New file.
41236         * lib/unistdio/u8-vsprintf.c: New file.
41237         * lib/unistdio/u8-u8-asnprintf.c: New file.
41238         * lib/unistdio/u8-u8-asprintf.c: New file.
41239         * lib/unistdio/u8-u8-snprintf.c: New file.
41240         * lib/unistdio/u8-u8-sprintf.c: New file.
41241         * lib/unistdio/u8-u8-vasnprintf.c: New file.
41242         * lib/unistdio/u8-u8-vasprintf.c: New file.
41243         * lib/unistdio/u8-u8-vsnprintf.c: New file.
41244         * lib/unistdio/u8-u8-vsprintf.c: New file.
41245         * lib/unistdio/u16-asnprintf.c: New file.
41246         * lib/unistdio/u16-asprintf.c: New file.
41247         * lib/unistdio/u16-printf-parse.c: New file.
41248         * lib/unistdio/u16-snprintf.c: New file.
41249         * lib/unistdio/u16-sprintf.c: New file.
41250         * lib/unistdio/u16-vasnprintf.c: New file.
41251         * lib/unistdio/u16-vasprintf.c: New file.
41252         * lib/unistdio/u16-vsnprintf.c: New file.
41253         * lib/unistdio/u16-vsprintf.c: New file.
41254         * lib/unistdio/u16-u16-asnprintf.c: New file.
41255         * lib/unistdio/u16-u16-asprintf.c: New file.
41256         * lib/unistdio/u16-u16-snprintf.c: New file.
41257         * lib/unistdio/u16-u16-sprintf.c: New file.
41258         * lib/unistdio/u16-u16-vasnprintf.c: New file.
41259         * lib/unistdio/u16-u16-vasprintf.c: New file.
41260         * lib/unistdio/u16-u16-vsnprintf.c: New file.
41261         * lib/unistdio/u16-u16-vsprintf.c: New file.
41262         * lib/unistdio/u32-asnprintf.c: New file.
41263         * lib/unistdio/u32-asprintf.c: New file.
41264         * lib/unistdio/u32-printf-parse.c: New file.
41265         * lib/unistdio/u32-snprintf.c: New file.
41266         * lib/unistdio/u32-sprintf.c: New file.
41267         * lib/unistdio/u32-vasnprintf.c: New file.
41268         * lib/unistdio/u32-vasprintf.c: New file.
41269         * lib/unistdio/u32-vsnprintf.c: New file.
41270         * lib/unistdio/u32-vsprintf.c: New file.
41271         * lib/unistdio/u32-u32-asnprintf.c: New file.
41272         * lib/unistdio/u32-u32-asprintf.c: New file.
41273         * lib/unistdio/u32-u32-snprintf.c: New file.
41274         * lib/unistdio/u32-u32-sprintf.c: New file.
41275         * lib/unistdio/u32-u32-vasnprintf.c: New file.
41276         * lib/unistdio/u32-u32-vasprintf.c: New file.
41277         * lib/unistdio/u32-u32-vsnprintf.c: New file.
41278         * lib/unistdio/u32-u32-vsprintf.c: New file.
41279         * tests/unistdio/test-ulc-asnprintf1.c: New file.
41280         * tests/unistdio/test-ulc-asnprintf1.h: New file.
41281         * tests/unistdio/test-ulc-printf1.h: New file.
41282         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
41283         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
41284         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
41285         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
41286         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
41287         * tests/unistdio/test-ulc-vasprintf1.c: New file.
41288         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
41289         * tests/unistdio/test-ulc-vsprintf1.c: New file.
41290         * tests/unistdio/test-u8-asnprintf1.c: New file.
41291         * tests/unistdio/test-u8-asnprintf1.h: New file.
41292         * tests/unistdio/test-u8-printf1.h: New file.
41293         * tests/unistdio/test-u8-vasnprintf1.c: New file.
41294         * tests/unistdio/test-u8-vasnprintf2.c: New file.
41295         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
41296         * tests/unistdio/test-u8-vasnprintf3.c: New file.
41297         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
41298         * tests/unistdio/test-u8-vasprintf1.c: New file.
41299         * tests/unistdio/test-u8-vsnprintf1.c: New file.
41300         * tests/unistdio/test-u8-vsprintf1.c: New file.
41301         * tests/unistdio/test-u16-asnprintf1.c: New file.
41302         * tests/unistdio/test-u16-asnprintf1.h: New file.
41303         * tests/unistdio/test-u16-printf1.h: New file.
41304         * tests/unistdio/test-u16-vasnprintf1.c: New file.
41305         * tests/unistdio/test-u16-vasnprintf2.c: New file.
41306         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
41307         * tests/unistdio/test-u16-vasnprintf3.c: New file.
41308         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
41309         * tests/unistdio/test-u16-vasprintf1.c: New file.
41310         * tests/unistdio/test-u16-vsnprintf1.c: New file.
41311         * tests/unistdio/test-u16-vsprintf1.c: New file.
41312         * tests/unistdio/test-u32-asnprintf1.c: New file.
41313         * tests/unistdio/test-u32-asnprintf1.h: New file.
41314         * tests/unistdio/test-u32-printf1.h: New file.
41315         * tests/unistdio/test-u32-vasnprintf1.c: New file.
41316         * tests/unistdio/test-u32-vasnprintf2.c: New file.
41317         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
41318         * tests/unistdio/test-u32-vasnprintf3.c: New file.
41319         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
41320         * tests/unistdio/test-u32-vasprintf1.c: New file.
41321         * tests/unistdio/test-u32-vsnprintf1.c: New file.
41322         * tests/unistdio/test-u32-vsprintf1.c: New file.
41323         * modules/unistdio/base: New file.
41324         * modules/unistdio/u-printf-args: New file.
41325         * modules/unistdio/ulc-asnprintf: New file.
41326         * modules/unistdio/ulc-asprintf: New file.
41327         * modules/unistdio/ulc-fprintf: New file.
41328         * modules/unistdio/ulc-printf-parse: New file.
41329         * modules/unistdio/ulc-snprintf: New file.
41330         * modules/unistdio/ulc-sprintf: New file.
41331         * modules/unistdio/ulc-vasnprintf: New file.
41332         * modules/unistdio/ulc-vasprintf: New file.
41333         * modules/unistdio/ulc-vfprintf: New file.
41334         * modules/unistdio/ulc-vsnprintf: New file.
41335         * modules/unistdio/ulc-vsprintf: New file.
41336         * modules/unistdio/u8-asnprintf: New file.
41337         * modules/unistdio/u8-asprintf: New file.
41338         * modules/unistdio/u8-printf-parse: New file.
41339         * modules/unistdio/u8-snprintf: New file.
41340         * modules/unistdio/u8-sprintf: New file.
41341         * modules/unistdio/u8-vasnprintf: New file.
41342         * modules/unistdio/u8-vasprintf: New file.
41343         * modules/unistdio/u8-vsnprintf: New file.
41344         * modules/unistdio/u8-vsprintf: New file.
41345         * modules/unistdio/u8-u8-asnprintf: New file.
41346         * modules/unistdio/u8-u8-asprintf: New file.
41347         * modules/unistdio/u8-u8-snprintf: New file.
41348         * modules/unistdio/u8-u8-sprintf: New file.
41349         * modules/unistdio/u8-u8-vasnprintf: New file.
41350         * modules/unistdio/u8-u8-vasprintf: New file.
41351         * modules/unistdio/u8-u8-vsnprintf: New file.
41352         * modules/unistdio/u8-u8-vsprintf: New file.
41353         * modules/unistdio/u16-asnprintf: New file.
41354         * modules/unistdio/u16-asprintf: New file.
41355         * modules/unistdio/u16-printf-parse: New file.
41356         * modules/unistdio/u16-snprintf: New file.
41357         * modules/unistdio/u16-sprintf: New file.
41358         * modules/unistdio/u16-vasnprintf: New file.
41359         * modules/unistdio/u16-vasprintf: New file.
41360         * modules/unistdio/u16-vsnprintf: New file.
41361         * modules/unistdio/u16-vsprintf: New file.
41362         * modules/unistdio/u16-u16-asnprintf: New file.
41363         * modules/unistdio/u16-u16-asprintf: New file.
41364         * modules/unistdio/u16-u16-snprintf: New file.
41365         * modules/unistdio/u16-u16-sprintf: New file.
41366         * modules/unistdio/u16-u16-vasnprintf: New file.
41367         * modules/unistdio/u16-u16-vasprintf: New file.
41368         * modules/unistdio/u16-u16-vsnprintf: New file.
41369         * modules/unistdio/u16-u16-vsprintf: New file.
41370         * modules/unistdio/u32-asnprintf: New file.
41371         * modules/unistdio/u32-asprintf: New file.
41372         * modules/unistdio/u32-printf-parse: New file.
41373         * modules/unistdio/u32-snprintf: New file.
41374         * modules/unistdio/u32-sprintf: New file.
41375         * modules/unistdio/u32-vasnprintf: New file.
41376         * modules/unistdio/u32-vasprintf: New file.
41377         * modules/unistdio/u32-vsnprintf: New file.
41378         * modules/unistdio/u32-vsprintf: New file.
41379         * modules/unistdio/u32-u32-asnprintf: New file.
41380         * modules/unistdio/u32-u32-asprintf: New file.
41381         * modules/unistdio/u32-u32-snprintf: New file.
41382         * modules/unistdio/u32-u32-sprintf: New file.
41383         * modules/unistdio/u32-u32-vasnprintf: New file.
41384         * modules/unistdio/u32-u32-vasprintf: New file.
41385         * modules/unistdio/u32-u32-vsnprintf: New file.
41386         * modules/unistdio/u32-u32-vsprintf: New file.
41387         * modules/unistdio/ulc-asnprintf-tests: New file.
41388         * modules/unistdio/ulc-vasnprintf-tests: New file.
41389         * modules/unistdio/ulc-vasprintf-tests: New file.
41390         * modules/unistdio/ulc-vsnprintf-tests: New file.
41391         * modules/unistdio/ulc-vsprintf-tests: New file.
41392         * modules/unistdio/u8-asnprintf-tests: New file.
41393         * modules/unistdio/u8-vasnprintf-tests: New file.
41394         * modules/unistdio/u8-vasprintf-tests: New file.
41395         * modules/unistdio/u8-vsnprintf-tests: New file.
41396         * modules/unistdio/u8-vsprintf-tests: New file.
41397         * modules/unistdio/u16-asnprintf-tests: New file.
41398         * modules/unistdio/u16-vasnprintf-tests: New file.
41399         * modules/unistdio/u16-vasprintf-tests: New file.
41400         * modules/unistdio/u16-vsnprintf-tests: New file.
41401         * modules/unistdio/u16-vsprintf-tests: New file.
41402         * modules/unistdio/u32-asnprintf-tests: New file.
41403         * modules/unistdio/u32-vasnprintf-tests: New file.
41404         * modules/unistdio/u32-vasprintf-tests: New file.
41405         * modules/unistdio/u32-vsnprintf-tests: New file.
41406         * modules/unistdio/u32-vsprintf-tests: New file.
41407         * MODULES.html.sh (Unicode string functions): Add the new modules.
41408
41409 2007-07-01  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/sprintf.c (sprintf): Limit the available length estimation,
41412         to avoid address wraparound.
41413         * lib/vsprintf.c (vsprintf): Likewise.
41414         * modules/sprintf-posix (Dependencies): Add stdint.
41415         * modules/vsprintf-posix (Dependencies): Likewise.
41416
41417 2007-07-01  Bruno Haible  <bruno@clisp.org>
41418
41419         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41420         Windows PATH as well. Conservative double-quoting. Comments.
41421
41422 2007-07-01  Bruno Haible  <bruno@clisp.org>
41423             Eric Blake  <ebb9@byu.net>
41424             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41425
41426         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41427         empty components in $PATH, denoting '.'.
41428
41429 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41430
41431         * gnulib-tool: Fix indentation.
41432         (func_create_megatestdir): Likewise.
41433         Report by Bruno Haible.
41434
41435 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41436
41437         Sync from Automake.
41438         * build-aux/gnupload: Fix shell portability issues with for loops.
41439         Report by Karl Berry.
41440
41441 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41442
41443         * build-aux/maint.mk (POURL): Use translationproject.org.
41444
41445 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41446             Bruno Haible  <bruno@clisp.org>
41447
41448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41449         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41450         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41451         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41452         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41453
41454 2007-06-27  Bruno Haible  <bruno@clisp.org>
41455
41456         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41457         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41458
41459 2007-06-26  Karl Berry  <karl@gnu.org>
41460
41461         * MODULES.html.sh: remove xreadlink-with-size.
41462
41463 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41464
41465         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41466         method that I hope also handles the double-include problem noted
41467         by Bruno Haible in
41468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41469
41470 2007-06-23  Bruno Haible  <bruno@clisp.org>
41471
41472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41473         Don't let the 'mostlyclean' target fail if the last subdirectory could
41474         not be removed.
41475         Reported by Karl Berry.
41476
41477 2007-06-23  Bruno Haible  <bruno@clisp.org>
41478
41479         * gnulib-tool (echo): Add a speedier workaround for ksh.
41480         * tests/test-echo.sh: Likewise.
41481
41482 2007-06-23  Bruno Haible  <bruno@clisp.org>
41483
41484         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41485         * tests/test-echo.sh: Likewise.
41486
41487 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41488
41489         * gnulib-tool (IFS): Initialize early, so we don't set it to
41490         empty later.
41491         (self_abspathname): Rewrite algorithm to set it, reindent.
41492         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41493         (func_create_megatestdir): Merge some sed scripts.
41494
41495 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41496
41497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41498         exposed by Sun Studio 11 cc on Solaris 8.
41499
41500 2007-06-22  Bruno Haible  <bruno@clisp.org>
41501
41502         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41503         backslashes.
41504         * tests/test-echo.sh: New file.
41505
41506 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41507
41508         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41509         simplify `sed_replace_build_aux' scripts, they are portable but
41510         echoing them with `echo' is not.
41511         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41512
41513 2007-06-21  Karl Berry  <karl@gnu.org>
41514
41515         * config/srclist.txt: guess we can't handle the licenses via
41516         srclist at the moment.
41517
41518 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41519
41520         * MODULES.html.sh: Add include_next.
41521         * modules/include_next: New file.
41522
41523 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41524
41525         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41526         INCLUDE_NEXT.
41527         (gl_CHECK_NEXT_HEADERS): New macro.
41528         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41529         the obsolescent gl_ABSOLUTE_HEADER.
41530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41531         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41532         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41533         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41534         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41535         * m4/math_h.m4 (gl_MATH_H): Likewise.
41536         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41537         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41538         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41539         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41540         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41541         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41542         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41545         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41546         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41547         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41548         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41549         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41550         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41551         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41552         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41553         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41554         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41555         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41556         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41557         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41558         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41559         * lib/float_.h: Likewise.
41560         * lib/inttypes_.h: Likewise.
41561         * lib/math_.h: Likewise.
41562         * lib/search_.h: Likewise.
41563         * lib/signal_.h: Likewise.
41564         * lib/stdint_.h: Likewise.
41565         * lib/stdio_.h: Likewise.
41566         * lib/stdlib_.h: Likewise.
41567         * lib/string_.h: Likewise.
41568         * lib/sys_stat_.h: Likewise.
41569         * lib/sys_time_.h: Likewise.
41570         * lib/time_.h: Likewise.
41571         * lib/unistd_.h: Likewise.
41572         * lib/wchar_.h: Likewise.
41573         * lib/wctype_.h: Likewise.
41574         * lib/dirent_.h: Likewise.
41575         * lib/iconv_.h: Likewise.
41576         * lib/locale_.h: Likewise.
41577         * lib/netinet_in_.h: Likewise.
41578         * lib/sys_select_.h: Likewise.
41579         * lib/sys_socket_.h: Likewise.
41580         * lib/sysexits_.h: Likewise.
41581         * modules/fcntl (Depends-on): Depend on include_next, not
41582         absolute_header.
41583         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41584         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41585         * modules/fchdir: Likewise.
41586         * modules/float: Likewise.
41587         * modules/iconv_open: Likewise.
41588         * modules/inttypes: Likewise.
41589         * modules/locale: Likewise.
41590         * modules/math: Likewise.
41591         * modules/netinet_in: Likewise.
41592         * modules/search: Likewise.
41593         * modules/signal: Likewise.
41594         * modules/stdint: Likewise.
41595         * modules/stdio: Likewise.
41596         * modules/stdlib: Likewise.
41597         * modules/string: Likewise.
41598         * modules/sys_select: Likewise.
41599         * modules/sys_socket: Likewise.
41600         * modules/sys_stat: Likewise.
41601         * modules/sys_time: Likewise.
41602         * modules/sysexits: Likewise.
41603         * modules/time: Likewise.
41604         * modules/unistd: Likewise.
41605         * modules/wchar: Likewise.
41606         * modules/wctype: Likewise.
41607         * modules/sys_stat: Change maintainer to "all".
41608         * modules/unistd: Likewise.
41609
41610 2007-06-20  Karl Berry  <karl@gnu.org>
41611
41612         * config/srclist.txt: track www changes in license files.
41613
41614 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41615
41616         * build-aux/bootstrap: Remove stray dot.
41617         Make sure build_aux settings are honored when linking
41618         gnulib_extra_files.
41619
41620 2007-06-19  Eric Blake  <ebb9@byu.net>
41621
41622         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41623         Allow compilation on cygwin.
41624
41625 2007-06-19  Jim Meyering  <jim@meyering.net>
41626
41627         xreadlink-with-size: Remove module.  No longer used.
41628         Ex-callers now use xreadlink or mreadlink-with-size.
41629         * modules/xreadlink-with-size: Remove module.
41630         * lib/xreadlink-with-size.c: Remove file.
41631         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41632         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41633         just before the function definition *is* accurate.
41634
41635         Eliminate one way canonicalize_filename_mode could exit.
41636         * lib/canonicalize.c (canonicalize_filename_mode):
41637         Use mreadlink_with_size, not xreadlink_with_size.
41638
41639 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41640
41641         Detect porting problems to FreeBSD/arm, which has time_t wider than
41642         long int.  Original problem reported for GNU diff by Xin Li in
41643         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41644         * modules/getdate (Depends-on): Add intprops, verify.
41645         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41646         is an integer type no wider than long int.
41647
41648 2007-06-18  Jim Meyering  <jim@meyering.net>
41649
41650         New module: mreadlink-with-size.
41651         * MODULES.html.sh: Add mreadlink-with-size.
41652         * modules/mreadlink-with-size: New module
41653         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41654         not xreadlink-with-size.
41655         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
41656
41657 2007-06-16  Bruno Haible  <bruno@clisp.org>
41658
41659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
41660         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
41661         Reported by Gary V. Vaughan <gary@gnu.org>.
41662
41663 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
41664
41665         Revamp lchown so that it lives in unistd.h where it belongs.
41666         * lib/lchown.h: Remove.
41667         * lib/dirchownmod.c: Don't include lib/lchown.h.
41668         * lib/fchownat.c: Likewise.
41669         * lib/openat.c: Likewise.
41670         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
41671         does not follow symlinks.
41672         (EOPNOTSUPP): Define if not defined.
41673         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
41674         is defined to 0.
41675         (lchown): New decl.
41676         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
41677         Do not check for lchown decl.
41678         Set REPLACE_LCHOWN.
41679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
41680         REPLACE_LCHOWN.
41681         * modules/chown: Make it clear it follows symlinks.
41682         * modules/lchown: Make it clear it doesn't follow symlinks.
41683         (Files): Remove lib/lchown.h
41684         (Depends-on): Add unistd.
41685         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
41686         (Include): Include <unistd.h>, not "lchown.h".
41687         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
41688         REPLACE_LCHOWN.
41689
41690 2007-06-15  Jim Meyering  <jim@meyering.net>
41691
41692         Change license (GPL to LGPL) of fsusage and dependents.
41693         * modules/fsusage (License): Change to LGPL.
41694         * modules/full-read (License): Likewise.
41695         * modules/full-write (License): Likewise.
41696         * modules/safe-read (License): Likewise.
41697         * modules/safe-write (License): Likewise.
41698
41699 2007-06-14  Ben Pfaff  <blp@gnu.org>
41700
41701         Missing part of allocsa -> malloca transition.
41702         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
41703         gl_MALLOCA.
41704
41705 2007-06-12  Bruno Haible  <bruno@clisp.org>
41706
41707         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
41708         to ia64, x86_64, i386.
41709         Reported by Eric Blake.
41710
41711 2007-06-12  Bruno Haible  <bruno@clisp.org>
41712
41713         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
41714         cross-compiling to x86_64.
41715
41716 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
41717
41718         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
41719         glitch reported by Ralf Wildenhues in
41720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
41721
41722         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
41723         Vin Shelton.
41724
41725 2007-06-11  Bruno Haible  <bruno@clisp.org>
41726
41727         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
41728         replacement string.
41729         Reported by Eric Blake.
41730
41731 2007-06-10  Bruno Haible  <bruno@clisp.org>
41732
41733         Prepare vasnprintf code for use with Unicode strings.
41734         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
41735         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
41736         TYPE_U32_STRING.
41737         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
41738         a_u32_string variants.
41739         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41740         * lib/printf-args.c: Don't include config.h and the specification
41741         header if PRINTF_FETCHARGS is already defined.
41742         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41743         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
41744         TYPE_U16_STRING, TYPE_U32_STRING.
41745         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
41746         u16_directive, u16_directives, u32_directive, u32_directives): New
41747         types.
41748         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
41749         New declarations.
41750         * lib/printf-parse.c: Don't include config.h and the specification
41751         header if PRINTF_PARSE is already defined. Eliminate the set of
41752         parameters for WIDE_CHAR_VERSION; the user of this file must provide
41753         them now. Include c-ctype.h.
41754         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
41755         directive and CHAR_T_ONLY_ASCII.
41756         * lib/vasnprintf.c: Don't include config.h and the specification header
41757         if VASNPRINTF is already defined.
41758         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
41759         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41760         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
41761         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
41762         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
41763         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
41764         code accordingly.
41765         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
41766         pad_ourselves also in this case, with the 'c' and 's' directives, and
41767         with a different notion of "width".
41768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
41769
41770 2007-06-10  Bruno Haible  <bruno@clisp.org>
41771
41772         * modules/unistr/u32-mbsnlen: New file.
41773         * lib/unistr/u32-mbsnlen.c: New file.
41774
41775         * modules/unistr/u16-mbsnlen: New file.
41776         * lib/unistr/u16-mbsnlen.c: New file.
41777
41778         * modules/unistr/u8-mbsnlen: New file.
41779         * lib/unistr/u8-mbsnlen.c: New file.
41780
41781         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
41782         declarations.
41783
41784 2007-06-10  Bruno Haible  <bruno@clisp.org>
41785
41786         * lib/string_.h (mbsnlen): New declaration.
41787         * lib/mbsnlen.c: New file.
41788         * m4/mbsnlen.m4: New file.
41789         * modules/mbsnlen: New file.
41790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
41791         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
41792         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
41793
41794 2007-06-10  Bruno Haible  <bruno@clisp.org>
41795
41796         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
41797
41798 2007-06-10  Bruno Haible  <bruno@clisp.org>
41799
41800         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
41801         * lib/mbuiter.h: Likewise.
41802
41803 2007-06-10  Bruno Haible  <bruno@clisp.org>
41804
41805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
41806         declaration.
41807
41808 2007-06-10  Karl Berry  <karl@gnu.org>
41809
41810         * config/srclist.txt: remove gettext entries, Bruno prefers
41811         to update individually.
41812
41813 2007-06-10  Bruno Haible  <bruno@clisp.org>
41814
41815         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41816         'maxlen'. Ensure only length + width bytes are allocated, not
41817         length + 1 + width.
41818
41819 2007-06-09  Bruno Haible  <bruno@clisp.org>
41820
41821         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41822         (CHAR_T): Remove macro.
41823         (VASNPRINTF): Update.
41824
41825 2007-06-09  Bruno Haible  <bruno@clisp.org>
41826
41827         * MODULES.html.sh (Unicode string functions): Add the new modules.
41828
41829         * modules/uniconv/u32-conv-to-enc: New file.
41830         * lib/uniconv/u32-conv-to-enc.c: New file.
41831         * modules/uniconv/u32-conv-to-enc-tests: New file.
41832         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41833
41834         * modules/uniconv/u16-conv-to-enc: New file.
41835         * lib/uniconv/u16-conv-to-enc.c: New file.
41836         * lib/uniconv/u-conv-to-enc.h: New file.
41837         * modules/uniconv/u16-conv-to-enc-tests: New file.
41838         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41839
41840         * modules/uniconv/u8-conv-to-enc: New file.
41841         * lib/uniconv/u8-conv-to-enc.c: New file.
41842         * modules/uniconv/u8-conv-to-enc-tests: New file.
41843         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41844
41845         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41846         u32_conv_to_encoding): New declarations.
41847
41848 2007-06-09  Bruno Haible  <bruno@clisp.org>
41849
41850         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41851
41852 2007-06-09  Bruno Haible  <bruno@clisp.org>
41853
41854         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41855         * modules/malloca: Renamed from modules/allocsa, updated.
41856         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41857         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41858         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41859         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41860         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41861         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41862         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41863         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41864         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41865         * modules/c-strcasestr (Depends-on): Update.
41866         * lib/c-strcasestr.c: Update.
41867         * modules/c-strstr (Depends-on): Update.
41868         * lib/c-strstr.c: Update.
41869         * modules/canonicalize-lgpl (Depends-on): Update.
41870         * lib/canonicalize-lgpl.c: Update.
41871         * modules/clean-temp (Depends-on): Update.
41872         * lib/clean-temp.c: Update.
41873         * modules/csharpcomp (Depends-on): Update.
41874         * lib/csharpcomp.c: Update.
41875         * modules/csharpexec (Depends-on): Update.
41876         * lib/csharpexec.c: Update.
41877         * modules/javacomp (Depends-on): Update.
41878         * lib/javacomp.c: Update.
41879         * modules/javaexec (Depends-on): Update.
41880         * lib/javaexec.c: Update.
41881         * modules/mbscasestr (Depends-on): Update.
41882         * lib/mbscasestr.c: Update.
41883         * modules/mbsstr (Depends-on): Update.
41884         * lib/mbsstr.c: Update.
41885         * modules/setenv (Depends-on): Update.
41886         * lib/setenv.c: Update.
41887         * modules/strcasestr (Depends-on): Update.
41888         * lib/strcasestr.c: Update.
41889         * modules/striconveha (Depends-on): Update.
41890         * lib/striconveha.c: Update.
41891         * modules/relocatable-prog-wrapper (Files): Update.
41892         * lib/relocwrapper.c: Update.
41893         * build-aux/install-reloc: Update.
41894         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41895
41896 2007-06-08  Bruno Haible  <bruno@clisp.org>
41897
41898         Port to uClibc.
41899         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41900         * lib/fpurge.c (fpurge): Likewise.
41901         * lib/freading.c (freading): Likewise.
41902         * lib/fseeko.c (rpl_fseeko): Likewise.
41903         * lib/fseterr.c (fseterr): Likewise.
41904         * lib/fwriting.c (fwriting): Likewise.
41905         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41906
41907 2007-06-08  Bruno Haible  <bruno@clisp.org>
41908
41909         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41910         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41911         * modules/gettext (Files): Add m4/intlmacosx.m4.
41912
41913 2007-06-07  Bruno Haible  <bruno@clisp.org>
41914
41915         * modules/localename-tests: New file.
41916         * tests/test-localename.c: New file.
41917
41918         New module 'localename'.
41919         * lib/localename.h: New file.
41920         * lib/localename.c: New file, from GNU gettext.
41921         * m4/localename.m4: New file.
41922         * modules/localename: New file.
41923
41924 2007-06-07  Bruno Haible  <bruno@clisp.org>
41925
41926         Work around the lack of <wchar.h> on some builds of uClibc.
41927         * doc/headers/wchar.texi: Update.
41928         * lib/wchar_.h: Include <wchar.h> only if it exists.
41929         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41930         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41931         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41932         doesn't exist.
41933         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41934         * modules/mbfile (Depends-on): Add wchar.
41935         * modules/mbiter (Depends-on): Likewise.
41936         * modules/mbuiter (Depends-on): Likewise.
41937         Reported by Simon Josefsson.
41938
41939 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41940
41941         Work around problem reported by Steven M. Schweda in
41942         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41943         Tru64 5.1B with the Compaq compiler environment installed declares
41944         an 'isblank' function but does not define it in the C library.
41945         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41946         * lib/regex_internal.h (isblank): Likewise.
41947         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41948         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41949
41950 2007-06-05  Bruno Haible  <bruno@clisp.org>
41951
41952         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41953         ia64.
41954         * modules/printf-safe: New file.
41955         * modules/fprintf-posix (Depends-on): Add printf-safe.
41956         * modules/printf-posix (Depends-on): Likewise.
41957         * modules/snprintf-posix (Depends-on): Likewise.
41958         * modules/sprintf-posix (Depends-on): Likewise.
41959         * modules/vasnprintf-posix (Depends-on): Likewise.
41960         * modules/vasprintf-posix (Depends-on): Likewise.
41961         * modules/vfprintf-posix (Depends-on): Likewise.
41962         * modules/vprintf-posix (Depends-on): Likewise.
41963         * modules/vsnprintf-posix (Depends-on): Likewise.
41964         * modules/vsprintf-posix (Depends-on): Likewise.
41965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41966         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41967         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41968         "no" on i386, x86_64, ia64.
41969         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41970         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41971         on i386, x86_64, ia64.
41972         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41973         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41974         on i386, x86_64, ia64.
41975         * tests/test-vasnprintf-posix.c: Include float.h.
41976         (LDBL80_WORDS): New macro.
41977         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41978         on i386, x86_64, ia64.
41979         * tests/test-vasprintf-posix.c: Include float.h.
41980         (LDBL80_WORDS): New macro.
41981         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41982         on i386, x86_64, ia64.
41983         * tests/test-snprintf-posix.c: Include float.h.
41984         * tests/test-sprintf-posix.c: Likewise.
41985         * tests/test-vsnprintf-posix.c: Likewise.
41986         * tests/test-vsprintf-posix.c: Likewise.
41987
41988 2007-06-05  Bruno Haible  <bruno@clisp.org>
41989
41990         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41991         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41992         non-IEEE numbers on i386, x86_64, ia64.
41993         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41994         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41995         * tests/test-isnanl.h: Include float.h.
41996         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41997
41998 2007-06-05  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
42001         also the %a / %A. Handle the %a / %A code before this extra handling.
42002
42003 2007-06-05  Bruno Haible  <bruno@clisp.org>
42004
42005         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
42006         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
42007
42008 2007-06-05  Bruno Haible  <bruno@clisp.org>
42009
42010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
42011         typo in variable name.
42012
42013 2007-06-05  Eric Blake  <ebb9@byu.net>
42014
42015         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
42016         Reported by Simon Josefsson.
42017
42018 2007-06-04  Bruno Haible  <bruno@clisp.org>
42019
42020         Avoid test failures on some PowerPC platforms.
42021         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
42022         Define differently for PowerPC.
42023         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
42024         Reported by Gary V. Vaughan <gary@gnu.org>.
42025
42026 2007-06-02  Bruno Haible  <bruno@clisp.org>
42027
42028         Fix test-stdint failure on FreeBSD/ia64.
42029         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
42030         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
42031         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
42032         * doc/headers/stdint.texi: Update.
42033
42034 2007-06-01  Bruno Haible  <bruno@clisp.org>
42035
42036         * tests/test-binary-io.c (main): Pass a third argument to open().
42037         Reported by Gary V. Vaughan <gary@gnu.org>.
42038
42039 2007-06-01  Bruno Haible  <bruno@clisp.org>
42040
42041         * doc/functions/frexpl.texi: Update for mingw.
42042
42043 2007-06-01  Bruno Haible  <bruno@clisp.org>
42044
42045         * tests/test-lseek.c (main): Disable test of errno for invalid third
42046         argument.
42047         * doc/functions/lseek.texi: Update.
42048         Reported by Gary V. Vaughan <gary@gnu.org>.
42049
42050 2007-05-28  Bruno Haible  <bruno@clisp.org>
42051
42052         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
42053
42054 2007-05-31  Eric Blake  <ebb9@byu.net>
42055
42056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
42057         cross compiling.
42058
42059 2007-05-30  Eric Blake  <ebb9@byu.net>
42060         and Bruno Haible  <bruno@clisp.org>
42061
42062         Work around mingw test failures exposed by m4-1.4.9b.
42063         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
42064         * tests/test-unistd.c: Disable uid_t and git_t tests for the
42065         moment.
42066
42067 2007-05-30  Bruno Haible  <bruno@clisp.org>
42068
42069         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
42070         assuming that they are closed. Needed on HP-UX 11.
42071
42072 2007-05-29  Bruno Haible  <bruno@clisp.org>
42073
42074         Fix a problem with #include_next.
42075         * lib/dirent_.h: Split the double-inclusion guard.
42076         * lib/fcntl_.h: Likewise.
42077         * lib/float_.h: Likewise.
42078         * lib/iconv_.h: Likewise.
42079         * lib/inttypes_.h: Likewise.
42080         * lib/locale_.h: Likewise.
42081         * lib/math_.h: Likewise.
42082         * lib/netinet_in_.h: Likewise.
42083         * lib/search_.h: Likewise.
42084         * lib/signal_.h: Likewise.
42085         * lib/stdint_.h: Likewise.
42086         * lib/stdio_.h: Likewise.
42087         * lib/stdlib_.h: Likewise.
42088         * lib/string_.h: Likewise.
42089         * lib/sys_select_.h: Likewise.
42090         * lib/sys_socket_.h: Likewise.
42091         * lib/sys_stat_.h: Likewise.
42092         * lib/sys_time_.h: Likewise.
42093         * lib/sysexits_.h: Likewise.
42094         * lib/time_.h: Likewise.
42095         * lib/unistd_.h: Likewise.
42096         * lib/wchar_.h: Likewise.
42097         * lib/wctype_.h: Likewise.
42098
42099 2007-05-29  Bruno Haible  <bruno@clisp.org>
42100
42101         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
42102         for the moment.
42103
42104 2007-05-29  Bruno Haible  <bruno@clisp.org>
42105
42106         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
42107         invocation.
42108         Reported by Eric Blake.
42109
42110 2007-05-29  Bruno Haible  <bruno@clisp.org>
42111
42112         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
42113         compiling case.
42114
42115 2007-05-29  Eric Blake  <ebb9@byu.net>
42116             Bruno Haible  <bruno@clisp.org>
42117
42118         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
42119         cross compiles.
42120
42121 2007-05-28  Eric Blake  <ebb9@byu.net>
42122
42123         * modules/closein-tests (test_closein_LDADD): Support test on
42124         cygwin with libtool.
42125
42126 2007-05-28  Bruno Haible  <bruno@clisp.org>
42127
42128         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
42129         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42130         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42131         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42132         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42133         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42134         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42135         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42136         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42137
42138 2007-05-28  Eric Blake  <ebb9@byu.net>
42139
42140         Unconditionally include <config.h> in unit tests.
42141         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
42142         * tests/test-allocsa.c, tests/test-arcfour.c,
42143         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
42144         tests/test-array_list.c, tests/test-array_oset.c,
42145         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
42146         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
42147         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
42148         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
42149         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
42150         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
42151         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
42152         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
42153         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
42154         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
42155         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
42156         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
42157         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
42158         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
42159         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
42160         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
42161         test-md5.c, test-memmem.c, test-printf-posix.c,
42162         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
42163         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
42164         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
42165         test-strcasestr.c, test-striconv.c, test-striconveh.c,
42166         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
42167         test-vasnprintf-posix2.c, test-vasnprintf.c,
42168         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
42169         test-vfprintf-posix.c, test-vprintf-posix.c,
42170         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
42171         test-xvasprintf.c: Likewise.
42172
42173 2007-05-28  Bruno Haible  <bruno@clisp.org>
42174
42175         * gnulib-tool (func_import): Remember the --with-tests command-line
42176         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
42177         Reported by Eric Blake.
42178
42179 2007-05-28  Bruno Haible  <bruno@clisp.org>
42180
42181         * modules/ftell-tests: New file.
42182         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
42183         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
42184
42185         * lib/ftell.c: New file.
42186         * modules/ftell: New file.
42187         * m4/ftell.m4: New file.
42188         * doc/functions/ftell.texi: Update.
42189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
42190         REPLACE_FTELL.
42191         * lib/stdio_.h (rpl_ftell): New declaration.
42192         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
42193         REPLACE_FTELL.
42194
42195 2007-05-28  Eric Blake  <ebb9@byu.net>
42196
42197         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
42198
42199 2007-05-28  Bruno Haible  <bruno@clisp.org>
42200
42201         * modules/fseek-tests: New file.
42202         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
42203         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
42204
42205         * lib/fseek.c: New file.
42206         * modules/fseek: New file.
42207         * m4/fseek.m4: New file.
42208         * doc/functions/fseek.texi: Update.
42209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
42210         REPLACE_FSEEK.
42211         * lib/stdio_.h (rpl_fseek): New declaration.
42212         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
42213         REPLACE_FSEEK.
42214
42215 2007-05-28  Bruno Haible  <bruno@clisp.org>
42216
42217         * lib/stdio_.h (fflush): More comments.
42218
42219 2007-05-28  Bruno Haible  <bruno@clisp.org>
42220
42221         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
42222         runtime test.
42223
42224 2007-05-28  Eric Blake  <ebb9@byu.net>
42225
42226         Improve lseek module.
42227         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
42228         * lib/unistd_.h (lseek): Scale back link warning message.
42229         * tests/test-lseek.c: Beef up test.
42230         * tests/test-lseek.sh: Exercise more facets of lseek.
42231         Reported by Bruno Haible.
42232
42233 2007-05-28  Bruno Haible  <bruno@clisp.org>
42234
42235         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
42236         to define.
42237
42238 2007-05-27  Bruno Haible  <bruno@clisp.org>
42239
42240         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
42241
42242 2007-05-27  Bruno Haible  <bruno@clisp.org>
42243
42244         * modules/openmp: New file.
42245         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
42246         Noah Misch.
42247
42248 2007-05-26  Bruno Haible  <bruno@clisp.org>
42249
42250         * modules/chdir-long (Depends-on): Add fchdir.
42251         * modules/chdir-safer (Depends-on): Likewise.
42252         * modules/fts (Depends-on): Likewise.
42253         * modules/fts-lgpl (Depends-on): Likewise.
42254         * modules/openat (Depends-on): Likewise.
42255         * modules/savewd (Depends-on): Likewise.
42256
42257 2007-05-24  Eric Blake  <ebb9@byu.net>
42258
42259         Fix lseek on mingw.
42260         * modules/lseek: New module.
42261         * m4/lseek.m4: New file.
42262         * lib/lseek.c: New file.
42263         * modules/lseek-tests: New file.
42264         * tests/test-lseek.c: New file.
42265         * tests/test-lseek.sh: New file.
42266         * MODULES.html.sh: Document lseek module.
42267         * modules/fflush (Depends-on): Add lseek, fseeko.
42268         * modules/fseeko (Depends-on): Likewise.
42269         * modules/ftello (Depends-on): Likewise.
42270         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
42271         broken.
42272         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
42273         broken.
42274         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
42275         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
42276         * lib/ftello.c (rpl_ftello): Likewise.
42277         * tests/test-fseeko.c (main): Test this.
42278         * tests/test-fseeko.sh: Likewise.
42279         * tests/test-ftello.c (main): Likewise.
42280         * tests/test-ftello.sh: Likewise.
42281         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
42282         implies replacing fseek.
42283         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
42284         HAVE_FTELLO.
42285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
42286         * modules/unistd (Makefile.am): Likewise.
42287         * lib/unistd_.h (lseek): Declare a replacement.
42288         * doc/functions/lseek.texi (lseek): Document this fix.
42289         * doc/functions/fseek.texi (fseek): Likewise.
42290         * doc/functions/ftell.texi (ftell): Likewise.
42291
42292 2007-05-24  Bruno Haible  <bruno@clisp.org>
42293
42294         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
42295         in the printed representation of a NaN.
42296         * tests/test-vasprintf-posix.c (test_function): Likewise.
42297         * tests/test-snprintf-posix.h (test_function): Likewise.
42298         * tests/test-sprintf-posix.h (test_function): Likewise.
42299         Reported by Eric Blake.
42300
42301 2007-05-23  Eric Blake  <ebb9@byu.net>
42302
42303         Fix fseeko/ftello on cygwin 1.5.24.
42304         * doc/functions/fseeko.texi (fseeko): Document the fix.
42305         * doc/functions/ftello.texi (ftello): Document the fix.
42306         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
42307         * doc/functions/stdout.text (stdout): New file.
42308         * doc/functions/stderr.text (stderr): New file.
42309         * doc/gnulib.texi (Function Substitutes): Use new files.
42310         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
42311         prior to 1.7.0.
42312         * tests/test-ftello.c (main): Likewise for ftello.
42313         * tests/test-fseeko.sh: New file.
42314         * tests/test-ftello.sh: New file.
42315         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
42316         with seekable stdin.
42317         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
42318         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
42319         (gl_REPLACE_FSEEKO): New macro.
42320         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
42321         * modules/fseeko (Files): Distribute fseeko.c.
42322         * modules/ftello (Files): Distribute ftello.c.
42323         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
42324         mode.
42325         * lib/ftello.c (rpl_ftello): New file.
42326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
42327         fseeko, ftello.
42328         (gl_STDIN_LARGE_OFFSET): New macro.
42329         * modules/stdio (Makefile.am): Perform the replacement.
42330         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
42331
42332 2007-05-23  Bruno Haible  <bruno@clisp.org>
42333
42334         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
42335         GNULIB_POSIXCHECK is defined.
42336
42337 2007-05-21  Bruno Haible  <bruno@clisp.org>
42338
42339         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
42340         Check also the output for NaN arguments. When cross-compiling, guess
42341         no on IRIX.
42342         * lib/vasnprintf.c: Update comments.
42343         * tests/test-vasnprintf-posix.c (strisnan): New function.
42344         (test_function): Use it.
42345         * tests/test-vasprintf-posix.c (strisnan): New function.
42346         (test_function): Use it.
42347         * tests/test-snprintf-posix.h (strisnan): New function.
42348         (test_function): Use it.
42349         * tests/test-sprintf-posix.h (strisnan): New function.
42350         (test_function): Use it.
42351         Reported by Eric Blake.
42352
42353 2007-05-20  Bruno Haible  <bruno@clisp.org>
42354
42355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
42356         numbers that fails on BeOS.
42357         * doc/functions/frexpl.texi: Update.
42358
42359 2007-05-20  Jim Meyering  <jim@meyering.net>
42360
42361         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
42362         forced upon us by glibc-2.6.
42363
42364 2007-05-20  Bruno Haible  <bruno@clisp.org>
42365
42366         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42367         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42368         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42369         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42370         NEED_PRINTF_INFINITE.
42371         (is_infinitel): New function.
42372         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42374         gl_PREREQ_VASNPRINTF_INFINITE.
42375         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42377         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42378         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42379         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42380         gl_PREREQ_VASNPRINTF_INFINITE.
42381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42388         * doc/functions/fprintf.texi: Update.
42389         * doc/functions/printf.texi: Update.
42390         * doc/functions/snprintf.texi: Update.
42391         * doc/functions/sprintf.texi: Update.
42392         * doc/functions/vfprintf.texi: Update.
42393         * doc/functions/vprintf.texi: Update.
42394         * doc/functions/vsnprintf.texi: Update.
42395         * doc/functions/vsprintf.texi: Update.
42396
42397 2007-05-20  Bruno Haible  <bruno@clisp.org>
42398
42399         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42400         was not found in libc.
42401         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42402
42403 2007-05-20  Bruno Haible  <bruno@clisp.org>
42404
42405         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42406         printed as "-nan" instead of "nan".
42407         * tests/test-vasprintf-posix.c (test_function): Likewise.
42408         * tests/test-snprintf-posix.h (test_function): Likewise.
42409         * tests/test-sprintf-posix.h (test_function): Likewise.
42410         Needed for HP-UX 11.
42411
42412 2007-05-20  Jim Meyering  <jim@meyering.net>
42413
42414         Fix buggy test for the fchownat-deref bug.
42415         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42416         symlink required for the run-test.  Without it, this test would
42417         always declare that fchownat doesn't work, and client code would
42418         unnecessarily use the replacement function with fixed libc.
42419         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42420         Reported by Greg Schafer.
42421
42422 2007-05-19  Bruno Haible  <bruno@clisp.org>
42423
42424         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42425         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42426         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42427         Needed for IRIX 6.5 and Solaris 2.5.1.
42428
42429 2007-05-19  Bruno Haible  <bruno@clisp.org>
42430
42431         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42432         (test_function): Skip tests involving -0.0 on platforms where
42433         -0.0 = 0.0.
42434         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42435         (test_function): Skip tests involving -0.0 on platforms where
42436         -0.0 = 0.0.
42437         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42438         (test_function): Skip tests involving -0.0 on platforms where
42439         -0.0 = 0.0.
42440         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42441         (test_function): Skip tests involving -0.0 on platforms where
42442         -0.0 = 0.0.
42443         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42444         tests.
42445         * tests/test-printf-posix.h (test_function): Likewise.
42446         * tests/test-printf-posix.output: Remove all -0.0 related results.
42447         Needed for IRIX 6.5.
42448
42449 2007-05-19  Bruno Haible  <bruno@clisp.org>
42450
42451         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42452         printed as "nan0x7fffffff" instead of "nan".
42453         * tests/test-vasprintf-posix.c (test_function): Likewise.
42454         * tests/test-snprintf-posix.h (test_function): Likewise.
42455         * tests/test-sprintf-posix.h (test_function): Likewise.
42456         * tests/test-fprintf-posix.h (NaN): Remove macro.
42457         (test_function): Remove all NaN related tests.
42458         * tests/test-printf-posix.h (NaN): Remove macro.
42459         (test_function): Remove all NaN related tests.
42460         * tests/test-printf-posix.output: Remove all NaN related results.
42461         Needed for IRIX 6.5.
42462
42463 2007-05-19  Bruno Haible  <bruno@clisp.org>
42464
42465         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42466         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42467
42468 2007-05-19  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/float_.h: New file.
42471         * m4/float_h.m4: New file.
42472         * modules/float: New file.
42473         * modules/isnanl (Dependencies): Add float.
42474         * modules/isnanl-nolibm (Dependencies): Likewise.
42475         * modules/mathl (Dependencies): Likewise.
42476         * modules/printf-frexpl (Dependencies): Likewise.
42477         * modules/signbit (Dependencies): Likewise.
42478         * modules/vasnprintf (Dependencies): Likewise.
42479         * doc/headers/float.texi: Update.
42480
42481 2007-05-19  Jim Meyering  <jim@meyering.net>
42482
42483         * lib/utimens.c (gl_futimens): Rename from futimens,
42484         now that glibc-2.6 declares futimens.
42485         * lib/utimens.h: Likewise.
42486
42487 2007-05-19  Bruno Haible  <bruno@clisp.org>
42488
42489         Avoid test failures on mingw.
42490         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42491         * tests/test-printf-posix.sh: Likewise.
42492         * tests/test-vfprintf-posix.sh: Likewise.
42493         * tests/test-vprintf-posix.sh: Likewise.
42494
42495 2007-05-19  Bruno Haible  <bruno@clisp.org>
42496
42497         Fix *printf result for NaN, Inf, -0.0 on mingw.
42498         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42499         * lib/vasnprintf.c: Include math.h and isnan.h.
42500         (is_infinite_or_zero): New function.
42501         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42502         values in the %f, %F, %e, %E, %g, %G directives.
42503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42505         gl_PRINTF_INFINITE and test its result. Invoke
42506         gl_PREREQ_VASNPRINTF_INFINITE.
42507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42508         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42509         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42510         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42511         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42512         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42513         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42514         * doc/functions/fprintf.texi: Update.
42515         * doc/functions/printf.texi: Update.
42516         * doc/functions/snprintf.texi: Update.
42517         * doc/functions/sprintf.texi: Update.
42518         * doc/functions/vfprintf.texi: Update.
42519         * doc/functions/vprintf.texi: Update.
42520         * doc/functions/vsnprintf.texi: Update.
42521         * doc/functions/vsprintf.texi: Update.
42522
42523 2007-05-19  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42526         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42527         Instead of multiplying with 10^k, set extra_zeroes to k.
42528         (scale10_round_long_double): Remove function.
42529
42530 2007-05-18  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42533         introduced on 2007-05-06.
42534
42535 2007-05-18  Bruno Haible  <bruno@clisp.org>
42536
42537         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42538         %g directives.
42539         * tests/test-vasprintf-posix.c (test_function): Likewise.
42540         * tests/test-snprintf-posix.h (test_function): Likewise.
42541         * tests/test-sprintf-posix.h (test_function): Likewise.
42542
42543 2007-05-18  Bruno Haible  <bruno@clisp.org>
42544
42545         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42546         (strmatch): New function.
42547         (test_function): Test the %f directive on numbers of various exponents.
42548         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42549         (strmatch): New function.
42550         (test_function): Test the %f directive on numbers of various exponents.
42551         * tests/test-snprintf-posix.h (strmatch): New function.
42552         (test_function): Test the %f directive on numbers of various exponents.
42553         * tests/test-sprintf-posix.h (strmatch): New function.
42554         (test_function): Test the %f directive on numbers of various exponents.
42555         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42556         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42557         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42558         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42559
42560 2007-05-18  Bruno Haible  <bruno@clisp.org>
42561
42562         Add support for 'long double' number output.
42563         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42564         * lib/vasnprintf.c: Include math.h and float+.h.
42565         (mp_limb_t): New type.
42566         (GMP_LIMB_BITS): New macro.
42567         (mp_twolimb_t): New type.
42568         (GMP_TWOLIMB_BITS): New macro.
42569         (mpn_t): New type.
42570         (multiply, divide, convert_to_decimal, decode_long_double,
42571         scale10_round_long_double, scale10_round_decimal_long_double,
42572         floorlog10l): New functions.
42573         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42574         for the %f, %F, %e, %E, %g, %G directives.
42575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42576         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42577         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42578         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42586         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42587         * modules/snprintf-posix (Depends-on): Likewise.
42588         * modules/sprintf-posix (Depends-on): Likewise.
42589         * modules/vasnprintf-posix (Depends-on): Likewise.
42590         * modules/vasprintf-posix (Depends-on): Likewise.
42591         * modules/vfprintf-posix (Depends-on): Likewise.
42592         * modules/vsnprintf-posix (Depends-on): Likewise.
42593         * modules/vsprintf-posix (Depends-on): Likewise.
42594         * modules/vasnprintf (Files): Add lib/float+.h.
42595         * doc/functions/fprintf.texi: Update.
42596         * doc/functions/printf.texi: Update.
42597         * doc/functions/snprintf.texi: Update.
42598         * doc/functions/sprintf.texi: Update.
42599         * doc/functions/vfprintf.texi: Update.
42600         * doc/functions/vprintf.texi: Update.
42601         * doc/functions/vsnprintf.texi: Update.
42602         * doc/functions/vsprintf.texi: Update.
42603
42604 2007-05-18  Bruno Haible  <bruno@clisp.org>
42605
42606         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42607
42608 2007-05-18  Bruno Haible  <bruno@clisp.org>
42609
42610         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42611         for printing 64-bit integers. Needed for mingw.
42612
42613 2007-05-18  Bruno Haible  <bruno@clisp.org>
42614
42615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42616         gl_FUNC_FREXPL_WORKS.
42617         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42618
42619 2007-05-18  Bruno Haible  <bruno@clisp.org>
42620
42621         * modules/frexpl-nolibm-tests: New file.
42622
42623         * modules/frexpl-nolibm: New file.
42624         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42625
42626 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42627
42628         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42629         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42630         GCC 4.2, which otherwise issues a lot of warnings.
42631         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42632         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42633         Likewise.
42634         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42635         * modules/iconv_open (iconv.h): Likewise.
42636         * modules/locale (locale.h): Likewise.
42637         * modules/netinet_in (netinet/in.h): Likewise.
42638         * modules/sys_select (sys_select.h): Likewise.
42639         * modules/sys_socket (sys/socket.h): Likewise.
42640         * modules/sys_stat (sys/stat.h): Likewise.
42641         * modules/sysexits (sysexits.h): Likewise.
42642         * modules/unistd (unistd.h): Likewise.
42643
42644 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42645
42646         * modules/closein-tests (Makefile.am): Distribute
42647         `test-closein.sh'.
42648
42649 2007-05-17  Bruno Haible  <bruno@clisp.org>
42650
42651         * tests/test-printf-posix.output: Renamed from
42652         tests/test-fprintf-posix.out.
42653         * modules/fprintf-posix-tests: Update.
42654         * modules/printf-posix-tests: Update.
42655         * modules/vfprintf-posix-tests: Update.
42656         * modules/vprintf-posix-tests: Update.
42657         * tests/test-fprintf-posix.sh: Update.
42658         * tests/test-printf-posix.sh: Update.
42659         * tests/test-vfprintf-posix.sh: Update.
42660         * tests/test-vprintf-posix.sh: Update.
42661         Reported by Ralf Wildenhues.
42662
42663 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42664
42665         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
42666         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42667         GCC 4.2, which otherwise issues a lot of warnings.
42668         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
42669         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
42670         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
42671         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
42672         it should no longer be needed.
42673         * lib/string_.h: Likewise.
42674         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
42675         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
42676         * modules/inttypes (inttypes.h): Likewise.
42677         * modules/math (math.h): Likewise.
42678         * modules/search (search.h): Likewise.
42679         * modules/signal (signal.h): Likewise.
42680         * modules/stdint (stdint.h): Likewise.
42681         * modules/stdio (stdio.h): Likewise.
42682         * modules/stdlib (stdlib.h): Likewise.
42683         * modules/string (string.h): Likewise.
42684         * modules/sys_time (sys/time.h): Likewise.
42685         * modules/time (time.h): Likewise.
42686         * modules/wchar (wchar.h): Likewise.
42687         * modules/wctype (wtype.h): Likewise.
42688
42689 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42690
42691         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
42692
42693 2007-05-13  Bruno Haible  <bruno@clisp.org>
42694
42695         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
42696         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42697         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
42698         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42699         (gl_PREREQ_STRTOK_R): Don't require it here.
42700
42701 2007-05-13  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
42704         when used in C++ mode.
42705
42706 2007-05-12  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/linebuffer.h: Tweak doc.
42709         * lib/linebuffer.c: Likewise.
42710
42711 2007-05-12  James Youngman  <jay@gnu.org>
42712
42713         * lib/linebuffer.c (readlinebuffer_delim): New function,
42714         like readlinebuffer, but use a caller-specified delimiter.
42715         (readlinebuffer): Just call readlinebuffer_delim with '\n'
42716         as the delimiter.
42717         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
42718
42719 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42720
42721         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
42722         * modules/openat (Files): Remove openat-die.c.
42723         (Depends-on): Add openat-die.
42724         * modules/openat-die: New module.
42725
42726 2007-05-06  Bruno Haible  <bruno@clisp.org>
42727
42728         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
42729         Update with info about Cygwin.
42730         * doc/functions/fprintf.texi: Update.
42731         * doc/functions/printf.texi: Update.
42732         * doc/functions/snprintf.texi: Update.
42733         * doc/functions/sprintf.texi: Update.
42734         * doc/functions/vfprintf.texi: Update.
42735         * doc/functions/vprintf.texi: Update.
42736         * doc/functions/vsnprintf.texi: Update.
42737         * doc/functions/vsprintf.texi: Update.
42738         Reported by Eric Blake.
42739
42740 2007-05-06  Bruno Haible  <bruno@clisp.org>
42741
42742         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
42743         padding ourselves for the floating-point directives.
42744         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
42745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
42746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42747         gl_PRINTF_FLAG_ZERO and test its result. Invoke
42748         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
42749         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42755         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42756         * tests/test-snprintf-posix.h (test_function): Also check the width
42757         and some flags in the %f directive.
42758         * tests/test-sprintf-posix.h (test_function): Likewise.
42759         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42760         * tests/test-vasprintf-posix.c (test_function): Likewise.
42761         * doc/functions/fprintf.texi: Update.
42762         * doc/functions/printf.texi: Update.
42763         * doc/functions/snprintf.texi: Update.
42764         * doc/functions/sprintf.texi: Update.
42765         * doc/functions/vfprintf.texi: Update.
42766         * doc/functions/vprintf.texi: Update.
42767         * doc/functions/vsnprintf.texi: Update.
42768         * doc/functions/vsprintf.texi: Update.
42769
42770 2007-05-06  Bruno Haible  <bruno@clisp.org>
42771
42772         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
42773         pass the ' flag character to sprintf or snprintf.
42774         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
42775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
42776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42777         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
42778         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
42779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42780         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42782         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42785         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42786         * tests/test-snprintf-posix.h (test_function): Also check the grouping
42787         flag.
42788         * tests/test-sprintf-posix.h (test_function): Likewise.
42789         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42790         * tests/test-vasprintf-posix.c (test_function): Likewise.
42791         * doc/functions/fprintf.texi: Update.
42792         * doc/functions/printf.texi: Update.
42793         * doc/functions/snprintf.texi: Update.
42794         * doc/functions/sprintf.texi: Update.
42795         * doc/functions/vfprintf.texi: Update.
42796         * doc/functions/vprintf.texi: Update.
42797         * doc/functions/vsnprintf.texi: Update.
42798         * doc/functions/vsprintf.texi: Update.
42799
42800 2007-05-01  Bruno Haible  <bruno@clisp.org>
42801
42802         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
42803
42804 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
42805
42806         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
42807         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
42808
42809 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42810
42811         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42812         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42814
42815 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42816
42817         * lib/argp-help.c (struct hol_entry): New member `ord'.
42818         (HOL_ENTRY_PTRCMP): Use ord for comparison
42819         (hol_sort): Initialize ord.
42820
42821 2007-05-01  Bruno Haible  <bruno@clisp.org>
42822
42823         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42824         Reported by Eric Blake.
42825         * doc/gnulib.texi (Function Substitutes): Update.
42826
42827 2007-05-01  Bruno Haible  <bruno@clisp.org>
42828
42829         * doc/functions.texi: Remove file, now redundant through
42830         doc/functions/*.texi.
42831
42832 2007-05-01  Bruno Haible  <bruno@clisp.org>
42833
42834         * modules/argp (Depends-on): Add sleep.
42835
42836 2007-05-01  Bruno Haible  <bruno@clisp.org>
42837
42838         * modules/sleep-tests: New file.
42839         * tests/test-sleep.c: New file.
42840
42841         * modules/sleep: New file.
42842         * lib/sleep.c: New file.
42843         * m4/sleep.m4: New file.
42844         * lib/unistd_.h (sleep): New declaration.
42845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42846         HAVE_SLEEP.
42847         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42848         * doc/functions/sleep.texi: Document the sleep module.
42849
42850 2007-05-01  Bruno Haible  <bruno@clisp.org>
42851
42852         * lib/sigprocmask.h: Remove file.
42853         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42854         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42855         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42856         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42857         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42858         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42859         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42860         HAVE_SIGSET_T as a shell variable.
42861         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42862         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42863         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42864         (Depends-on): Add signal. Remove verify.
42865         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42866         (Include): Mention <signal.h> instead of sigprocmask.h.
42867         * NEWS: Mention the change.
42868         * lib/fatal-signal.c: Don't include sigprocmask.h.
42869
42870 2007-05-01  Bruno Haible  <bruno@clisp.org>
42871
42872         * modules/signal: New file.
42873         * lib/signal_.h: New file.
42874         * m4/signal_h.m4: New file.
42875
42876 2007-05-01  Bruno Haible  <bruno@clisp.org>
42877
42878         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42879         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42880         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42881         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42882
42883 2007-05-01  Bruno Haible  <bruno@clisp.org>
42884
42885         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42886         configure time.
42887         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42888         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42889         * modules/sys_stat (Makefile.am): Substitute their values into
42890         sys/stat.h.
42891
42892 2007-05-01  Bruno Haible  <bruno@clisp.org>
42893
42894         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42895         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42896         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42897
42898 2007-05-01  Bruno Haible  <bruno@clisp.org>
42899
42900         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42901         'assert' module here.
42902
42903 2007-05-01  Bruno Haible  <bruno@clisp.org>
42904
42905         * doc/functions/*.texi: New files.
42906         * doc/functions/google-ranking.txt: New file.
42907         * doc/gnulib.texi (Function Substitutes): New chapter.
42908         (ctime, inet_ntoa): Remove sections.
42909         * doc/ctime.texi: Remove file.
42910         * doc/inet_ntoa.texi: Remove file.
42911         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42912         dependencies.
42913         (%.info): New rule, specifying a --reference-limit.
42914
42915 2007-05-01  Bruno Haible  <bruno@clisp.org>
42916
42917         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42918
42919 2007-05-01  Bruno Haible  <bruno@clisp.org>
42920
42921         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42922         the portability of 'mkdir' to mingw systems.
42923
42924 2007-05-01  Bruno Haible  <bruno@clisp.org>
42925
42926         * doc/headers/google-ranking.txt: New file.
42927
42928 2007-04-30  Eric Blake  <ebb9@byu.net>
42929
42930         Prefer fseeko to fseek.
42931         * modules/getpass (Depends-on): Add fseeko.
42932         * lib/getpass.c (getpass): Use fseeko, not fseek.
42933
42934 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42935
42936         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42937         assumes the sorting is stable, while most qsort implementations
42938         are not.  Use argument addresses to ensure they never compare as
42939         equal.
42940
42941         * tests/test-argp-2.sh (usage-indent test): Fix output
42942         (func_compare): Restore diff options
42943         * tests/test-argp.c: Restore #include "progname.h"
42944
42945 2007-04-29  Bruno Haible  <bruno@clisp.org>
42946
42947         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42948         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42949         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42951         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42952         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42953         (TESTS, check_PROGRAMS): Add test-snprintf.
42954         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42955         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42956         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42957         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42958         assertions that fail on HP-UX, OSF/1, or IRIX.
42959         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42960
42961 2007-04-29  Bruno Haible  <bruno@clisp.org>
42962
42963         * MODULES.html.sh (posix_functions): Remove 'contents'.
42964
42965 2007-04-29  Karl Berry  <karl@gnu.org>
42966
42967         * config/srclist.txt (gendocs_template_min): new entry.
42968
42969 2007-04-29  Bruno Haible  <bruno@clisp.org>
42970
42971         Work around fpurge bug on BSD systems.
42972         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42974         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42975         fpurge to rpl_fpurge if the system already has this function.
42976         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42977         the case where the system already has this function. Correct invariants
42978         on BSD systems.
42979         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42980         BSD systems.
42981
42982 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42983
42984         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42985         proposed by Sven Verdoolaege.
42986
42987         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42988         options.
42989         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42990         (usage and help tests): Update
42991
42992 2007-04-29  Bruno Haible  <bruno@clisp.org>
42993
42994         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42995         Print more information in case of failure. Disable a test on BeOS.
42996
42997 2007-04-29  Bruno Haible  <bruno@clisp.org>
42998
42999         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
43000         This helps debugging on systems on which no gdb is available.
43001
43002 2007-04-29  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/freading.h: Improve comments.
43005         * lib/fwriting.h: Likewise.
43006         * tests/test-freading.c (main): Don't check freading immediately after
43007         repositioning. Needed for glibc.
43008
43009 2007-04-29  Bruno Haible  <bruno@clisp.org>
43010
43011         * lib/freading.c (freading): Trivial simplification.
43012
43013 2007-04-28  Bruno Haible  <bruno@clisp.org>
43014
43015         * tests/test-fwriting.c (main): Also test the interaction between
43016         fflush and fwriting.
43017         * modules/fwriting-tests (Depends-on): Add fflush.
43018
43019         * tests/test-freading.c (main): Also test the interaction between
43020         fflush and freading.
43021         * modules/freading-tests (Depends-on): Add fflush.
43022
43023 2007-04-28  Bruno Haible  <bruno@clisp.org>
43024
43025         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
43026         fseeko and ftello.
43027         Suggested by Eric Blake.
43028
43029 2007-04-28  Jim Meyering  <jim@meyering.net>
43030
43031         Avoid false-negative in gl_STDINT_H's C99 conformance test.
43032         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
43033         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
43034
43035 2007-04-27  Eric Blake  <ebb9@byu.net>
43036
43037         * doc/headers/assert.texi (assert.h): Document assert module use.
43038
43039 2007-04-27  Bruno Haible  <bruno@clisp.org>
43040
43041         * doc/headers/*.texi: New files.
43042         * doc/gnulib.texi (Header File Substitutes): New chapter.
43043         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
43044         dependencies.
43045         (standards.info ,standards.html, standards.dvi): Update dependencies.
43046         (mostlyclean, clean): New targets.
43047
43048 2007-04-27  Bruno Haible  <bruno@clisp.org>
43049
43050         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
43051         * modules/sysexits (Files, Makefile.am): Update.
43052
43053         * lib/sys_socket_.h: Renamed from lib/socket_.h.
43054         * modules/sys_socket (Files, Makefile.am): Update.
43055
43056         * lib/sys_stat_.h: Renamed from lib/stat_.h.
43057         * modules/sys_stat (Files, Makefile.am): Update.
43058
43059 2007-04-27  Eric Blake  <ebb9@byu.net>
43060
43061         * lib/freading.h: Improve comments.
43062         * lib/fwriting.h: Likewise.
43063         * lib/fflush.c: Likewise.
43064
43065         Fix closein for mingw.
43066         * modules/closein-tests: Add tests for closein.
43067         * tests/test-closein.c: New file.
43068         * tests/test-closein.sh: Likewise.
43069         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
43070         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
43071
43072 2007-04-27  Bruno Haible  <bruno@clisp.org>
43073
43074         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
43075         version is < 6.
43076         * lib/math_.h [__DECC]: Likewise.
43077         * lib/stdio_.h [__DECC]: Likewise.
43078         * lib/stdlib_.h [__DECC]: Likewise.
43079         * lib/string_.h [__DECC]: Likewise.
43080         * lib/time_.h [__DECC]: Likewise.
43081         * lib/wchar_.h [__DECC]: Likewise.
43082         * lib/wctype_.h [__DECC]: Likewise.
43083
43084 2007-04-27  Bruno Haible  <bruno@clisp.org>
43085
43086         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
43087
43088 2007-04-27  Bruno Haible  <bruno@clisp.org>
43089
43090         * lib/fflush.c: Add comments.
43091         * modules/fpurge-tests (Depends-on): Add fflush.
43092         * modules/freadable-tests (Depends-on): Likewise.
43093         * modules/fwritable-tests (Depends-on): Likewise.
43094
43095 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
43096
43097         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
43098         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
43099         Report by Bruno Haible <bruno@clisp.org>.
43100
43101 2007-04-26  Eric Blake  <ebb9@byu.net>
43102
43103         Fix fflush on mingw.
43104         * modules/fflush (Depends-on): Add freading.
43105         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
43106         but unread data.
43107
43108 2007-04-26  Eric Blake  <ebb9@byu.net>
43109         and Bruno Haible  <bruno@clisp.org>
43110
43111         Implement freading and fwriting.
43112         * lib/freading.c: New file.
43113         * lib/freading.h: Likewise.
43114         * m4/freading.m4: Likewise.
43115         * modules/freading: Likewise.
43116         * modules/freading-tests: Likewise.
43117         * tests/test-freading.c: Likewise.
43118         * lib/fwriting.c: New file.
43119         * lib/fwriting.h: Likewise.
43120         * m4/fwriting.m4: Likewise.
43121         * modules/fwriting: Likewise.
43122         * modules/fwriting-tests: Likewise.
43123         * tests/test-fwriting.c: Likewise.
43124         * MODULES.html.sh (File stream based Input/Output): Mention them.
43125
43126 2007-04-26  Bruno Haible  <bruno@clisp.org>
43127
43128         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
43129         'long' when we assume it.
43130         Suggested by Eric Blake.
43131
43132 2007-04-26  Bruno Haible  <bruno@clisp.org>
43133
43134         Ensure fseeko, ftello are declared on glibc systems.
43135         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
43136         * modules/fseeko (configure.ac-early): Likewise.
43137         * modules/ftello (configure.ac-early): Likewise.
43138         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
43139         AC_FUNC_FSEEKO for this.
43140         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
43141         (gl_CHECK_FSEEKO): Remove macro.
43142
43143 2007-04-26  Bruno Haible  <bruno@clisp.org>
43144
43145         * tests/test-fflush.c (main): Also check the ftell result after
43146         fflush and fseek/fseeko.
43147         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
43148         file descriptor position cache in the stream.
43149         * lib/fseeko.c (rpl_fseeko): Likewise.
43150
43151 2007-04-26  Bruno Haible  <bruno@clisp.org>
43152
43153         * modules/fflush-tests (Depends-on): Add fseeko.
43154
43155 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
43156             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43157
43158         * lib/argz_.h: ensure error_t definition is obtained in same
43159         mechanism system argz.h would have.
43160         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
43161         argz facilities are known bad.  Err on the side of caution if
43162         cross-compiling.
43163
43164 2007-04-25  Eric Blake  <ebb9@byu.net>
43165
43166         * lib/fpurge.c (includes): Use stdlib.h for free.
43167         * tests/test-fflush.c (main): Also test fflush-fseeko.
43168
43169 2007-04-25  Bruno Haible  <bruno@clisp.org>
43170
43171         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
43172         * lib/fseeko.c: New file.
43173         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
43174         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
43175         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
43176         gl_FUNC_FSEEKO.
43177         (gl_FUNC_FSEEKO): Invoke it.
43178         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
43179         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
43180         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
43181
43182 2007-04-25  Bruno Haible  <bruno@clisp.org>
43183
43184         * modules/fflush (Depends-on): Add ftello.
43185
43186 2007-04-25  Bruno Haible  <bruno@clisp.org>
43187
43188         * modules/ftello-tests: New file.
43189         * tests/test-ftello.c: New file.
43190
43191         * modules/ftello: New file.
43192         * m4/ftello.m4: New file.
43193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
43194         HAVE_FTELLO.
43195         * lib/stdio_.h (ftello): New declaration.
43196         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
43197         HAVE_FTELLO.
43198
43199 2007-04-25  Bruno Haible  <bruno@clisp.org>
43200
43201         * modules/fseeko-tests: New file.
43202         * tests/test-fseeko.c: New file.
43203
43204         * modules/fseeko: New file.
43205         * m4/fseeko.m4: New file.
43206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
43207         HAVE_FSEEKO.
43208         * lib/stdio_.h (fseeko): New declaration.
43209         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
43210         HAVE_FSEEKO.
43211
43212 2007-04-25  Bruno Haible  <bruno@clisp.org>
43213
43214         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
43215
43216 2007-04-25  Bruno Haible  <bruno@clisp.org>
43217
43218         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
43219         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
43220         * tests/test-unistd.c: Likewise.
43221         * tests/test-fcntl.c: Likewise.
43222
43223 2007-04-23  Eric Blake  <ebb9@byu.net>
43224
43225         * lib/fflush.c: Fix missing include.
43226         Reported by Bruno Haible.
43227
43228 2007-04-23  Bruno Haible  <bruno@clisp.org>
43229
43230         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
43231         Reported by Eric Blake.
43232
43233 2007-04-23  Bruno Haible  <bruno@clisp.org>
43234
43235         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
43236
43237 2007-04-23  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
43240
43241 2007-04-23  Bruno Haible  <bruno@clisp.org>
43242
43243         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
43244         Needed on HP-UX 11.
43245
43246 2007-04-16  Eric Blake  <ebb9@byu.net>
43247
43248         Make fflush rely on fpurge.
43249         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
43250         open coding all variants.
43251         * modules/fflush (Depends-on): Add fpurge and unistd.
43252         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
43253         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
43254
43255         Fix --with-tests compilation on cygwin.
43256         * modules/argmatch-tests (Makefile.am): List gnulib library first
43257         in LDADD.
43258         * modules/argp-tests (Makefile.am): Likewise.
43259         * modules/array-list-tests (Makefile.am): Likewise.
43260         * modules/array-oset-tests (Makefile.am): Likewise.
43261         * modules/avltree-list-tests (Makefile.am): Likewise.
43262         * modules/avltree-oset-tests (Makefile.am): Likewise.
43263         * modules/avltreehash-list-tests (Makefile.am): Likewise.
43264         * modules/carray-list-tests (Makefile.am): Likewise.
43265         * modules/dirname-tests (Makefile.am): Likewise.
43266         * modules/frexp-tests (Makefile.am): Likewise.
43267         * modules/isnanl-tests (Makefile.am): Likewise.
43268         * modules/linked-list-tests (Makefile.am): Likewise.
43269         * modules/linkedhash-list-tests (Makefile.am): Likewise.
43270         * modules/lock-tests (Makefile.am): Likewise.
43271         * modules/rbtree-list-tests (Makefile.am): Likewise.
43272         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43273         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
43274         * modules/tls-tests (Makefile.am): Likewise.
43275         * modules/tsearch-tests (Makefile.am): Likewise.
43276         * modules/xvasprintf-tests (Makefile.am): Likewise.
43277
43278         Fix fpurge for cygwin.
43279         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
43280         value.
43281         * modules/fpurge-tests (Depends-on): Clean up trash.
43282
43283 2007-04-16  Simon Josefsson  <simon@josefsson.org>
43284
43285         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
43286
43287         * m4/autobuild.m4: Re-indent.
43288
43289 2007-04-13  Bruno Haible  <bruno@clisp.org>
43290
43291         * modules/fpurge-tests: New file.
43292         * tests/test-fpurge.c: New file.
43293
43294         * modules/fpurge: New file.
43295         * lib/fpurge.h: New file.
43296         * lib/fpurge.c: New file.
43297         * m4/fpurge.m4: New file.
43298
43299 2007-04-13  Bruno Haible  <bruno@clisp.org>
43300
43301         * modules/fbufmode-tests: New file.
43302         * tests/test-fbufmode.c: New file.
43303
43304         * modules/fbufmode: New file.
43305         * lib/fbufmode.h: New file.
43306         * lib/fbufmode.c: New file.
43307         * m4/fbufmode.m4: New file.
43308
43309 2007-04-13  Bruno Haible  <bruno@clisp.org>
43310
43311         * modules/fwritable-tests: New file.
43312         * tests/test-fwritable.c: New file.
43313
43314         * modules/fwritable: New file.
43315         * lib/fwritable.h: New file.
43316         * lib/fwritable.c: New file.
43317         * m4/fwritable.m4: New file.
43318
43319 2007-04-13  Bruno Haible  <bruno@clisp.org>
43320
43321         * modules/freadable-tests: New file.
43322         * tests/test-freadable.c: New file.
43323
43324         * modules/freadable: New file.
43325         * lib/freadable.h: New file.
43326         * lib/freadable.c: New file.
43327         * m4/freadable.m4: New file.
43328
43329 2007-04-13  Bruno Haible  <bruno@clisp.org>
43330
43331         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
43332         MOSTLYCLEANFILES.
43333
43334 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43335
43336         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
43337         gzip bootstrap.conf to avoid dragging in i18n machinery.
43338         (gnulib_tool_option): Use it.
43339
43340 2007-04-13  Bruno Haible  <bruno@clisp.org>
43341
43342         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
43343         %F directives.
43344         * tests/test-vasprintf-posix.c (test_function): Likewise.
43345         * tests/test-snprintf-posix.h (test_function): Likewise.
43346         * tests/test-sprintf-posix.h (test_function): Likewise.
43347         * tests/test-fprintf-posix.h (test_function): Likewise.
43348         * tests/test-printf-posix.h (test_function): Likewise.
43349         * tests/test-fprintf-posix.out: Likewise.
43350
43351 2007-04-13  Bruno Haible  <bruno@clisp.org>
43352
43353         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
43354         * modules/tls-tests (configure.ac): Likewise.
43355         Reported by Arto C. Nirkko <anirkko@insel.ch>.
43356
43357 2007-04-13  Bruno Haible  <bruno@clisp.org>
43358
43359         * lib/tls.c (glthread_tls_get): Fix return type.
43360         Patch by Arto C. Nirkko <anirkko@insel.ch>.
43361
43362 2007-04-12  Eric Blake  <ebb9@byu.net>
43363
43364         * modules/gettime (Depends-on): Remove gettime.
43365         Reported by Dmitry V. Levin.
43366
43367 2007-04-12  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/fflush (Include): Mention <stdio.h>.
43370         * modules/strtoimax (Include): Mention <inttypes.h>.
43371         * modules/strtoumax (Include): Likewise.
43372
43373 2007-04-12  Eric Blake  <ebb9@byu.net>
43374
43375         * .cvsignore: New file.
43376         * .gitignore: Likewise.
43377
43378 2007-04-12  Bruno Haible  <bruno@clisp.org>
43379
43380         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43381         not before, since $(LDADD) often contains libgnu.a.
43382         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43383         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43384         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43385         Needed on Cygwin.
43386
43387 2007-04-12  Eric Blake  <ebb9@byu.net>
43388
43389         Work around glibc's failure to flush stdin on fclose.
43390         * lib/closein.c (close_stdin): Flush stdin before closing.
43391
43392         Work around glibc's failure to reset seekable stdin on exit.
43393         * modules/closein: New module.
43394         * lib/closein.c: New file.
43395         * lib/closein.h: Likewise.
43396         * m4/closein.m4: Likewise.
43397         * MODULES.html.sh (File stream based Input/Output): Document it.
43398
43399 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43400
43401         * gnulib-tool: Rename generated 'autobuild' script to
43402         'do-autobuild' in --create-megatestdir output.
43403
43404         * doc/gnulib.texi (Build robot for gnulib): Fix.
43405
43406 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43407
43408         * modules/sysexits (Depends-on): Add absolute-header.
43409
43410 2007-04-12  Eric Blake  <ebb9@byu.net>
43411
43412         No need to preserve errno on success.
43413         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43414         Reported by Bruno Haible.
43415
43416 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43417
43418         * MODULES.html.sh (Support for maintaining and releasing
43419         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43420
43421 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43422
43423         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43424
43425 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43426
43427         * modules/autobuild: New module.
43428
43429         * m4/autobuild.m4: New file.
43430
43431 2007-04-11  Bruno Haible  <bruno@clisp.org>
43432
43433         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43434         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43444         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43445         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43458         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43461         Reported by Eric Blake.
43462
43463 2007-04-11  Bruno Haible  <bruno@clisp.org>
43464
43465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43466
43467 2007-04-10  Bruno Haible  <bruno@clisp.org>
43468
43469         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43470         for NaN and Infinity. Needed on FreeBSD 6.1.
43471         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43472         regarding results for "%010a" of Infinity and NaN.
43473         * tests/test-vasprintf-posix.c (test_function): Likewise.
43474         * tests/test-snprintf-posix.h (test_function): Likewise.
43475         * tests/test-sprintf-posix.h (test_function): Likewise.
43476         * tests/test-fprintf-posix.h (test_function): Likewise.
43477         * tests/test-printf-posix.h (test_function): Likewise.
43478         * tests/test-fprintf-posix.out: Likewise.
43479
43480 2007-04-10  Bruno Haible  <bruno@clisp.org>
43481
43482         * modules/locale-tests: New file.
43483         * tests/test-locale.c: New file.
43484
43485         * modules/locale: New file.
43486         * lib/locale_.h: New file.
43487         * m4/locale_h.m4: New file.
43488
43489 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43490             Bruno Haible  <bruno@clisp.org>
43491
43492         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43493         be determined, test for availability of the copysignf, copysign,
43494         copysignl functions.
43495         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43496         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43497         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43498
43499 2007-04-09  Eric Blake  <ebb9@byu.net>
43500
43501         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43502         * modules/stdio (Makefile.am): Support fflush.
43503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43504         * modules/fflush: New file.
43505         * lib/fflush.c: Likewise.
43506         * m4/fflush.m4: Likewise.
43507         * modules/fflush-tests: New test.
43508         * tests/test-fflush.c: Likewise.
43509         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43510
43511 2007-04-06  Bruno Haible  <bruno@clisp.org>
43512
43513         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43514         (VASNPRINTF): Use signbit for faster determination whether to print a
43515         minus sign.
43516         * modules/vasnprintf (Files): Remove lib/float+.h.
43517         * modules/fprintf-posix (Depends-on): Add signbit.
43518         * modules/snprintf-posix (Depends-on): Likewise.
43519         * modules/sprintf-posix (Depends-on): Likewise.
43520         * modules/vasnprintf-posix (Depends-on): Likewise.
43521         * modules/vasprintf-posix (Depends-on): Likewise.
43522         * modules/vfprintf-posix (Depends-on): Likewise.
43523         * modules/vsnprintf-posix (Depends-on): Likewise.
43524         * modules/vsprintf-posix (Depends-on): Likewise.
43525
43526 2007-04-06  Bruno Haible  <bruno@clisp.org>
43527
43528         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43529         * tests/test-frexpl.c (main): Likewise.
43530         * tests/test-ldexpl.c (main): Likewise.
43531         * modules/frexp-tests (Depends-on): Add signbit.
43532         * modules/frexpl-tests (Depdends-on): Likewise.
43533         * modules/ldexpl-tests (Depdends-on): Likewise.
43534
43535 2007-04-06  Bruno Haible  <bruno@clisp.org>
43536
43537         * modules/signbit-tests: New file.
43538         * tests/test-signbit.c: New file.
43539
43540         * modules/signbit: New file.
43541         * lib/signbitf.c: New file.
43542         * lib/signbitd.c: New file.
43543         * lib/signbitl.c: New file.
43544         * m4/signbit.m4: New file.
43545         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43546         (signbit): New macro.
43547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43548         REPLACE_SIGNBIT.
43549         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43550         REPLACE_FREXPL into math.h.
43551
43552 2007-04-06  Bruno Haible  <bruno@clisp.org>
43553
43554         * modules/isnanf-nolibm-tests: New file.
43555         * tests/test-isnanf.c: New file.
43556
43557         * modules/isnanf-nolibm: New file.
43558         * lib/isnanf.h: New file.
43559         * lib/isnanf.c: New file.
43560         * lib/isnan.c: Consider the USE_FLOAT macro.
43561         * m4/isnanf.m4: New file.
43562
43563 2007-04-06  Bruno Haible  <bruno@clisp.org>
43564
43565         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43566         (Link): New section.
43567
43568         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43569
43570 2007-04-06  Bruno Haible  <bruno@clisp.org>
43571
43572         Assume the 'long double' type.
43573         * m4/longdouble.m4: Remove file.
43574         * config/srclist.txt: Don't mention longdouble.m4.
43575         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43576         * lib/float+.h: Likewise.
43577         * lib/frexp.c: Likewise.
43578         * lib/printf-args.h: Likewise.
43579         * lib/printf-args.c: Likewise.
43580         * lib/printf-frexp.c: Likewise.
43581         * lib/printf-parse.c: Likewise.
43582         * lib/vasnprintf.c: Likewise.
43583         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43584         * m4/intl.m4: Likewise.
43585         * m4/isnanl.m4: Likewise.
43586         * m4/printf.m4: Likewise.
43587         * m4/printf-frexpl.m4: Likewise.
43588         * m4/vasnprintf.m4: Likewise.
43589         * modules/allocsa (Files): Remove m4/longdouble.m4.
43590         * modules/gettext (Files): Likewise.
43591         * modules/relocatable-prog-wrapper (Files): Likewise.
43592         * modules/vasnprintf (Files): Likewise.
43593         * modules/isnanl (Files): Likewise.
43594         (Include): Simplify.
43595         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43596         (Include): Simplify.
43597         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43598         (Include): Simplify.
43599         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43600         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43601         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43602         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43603         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43604         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43605         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43606         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43607         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43608         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43609         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43610         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43611         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43612         * tests/test-isnanl.c: Likewise.
43613         * tests/test-snprintf-posix.h: Likewise.
43614         * tests/test-sprintf-posix.h: Likewise.
43615         * tests/test-vasnprintf-posix.c: Likewise.
43616         * tests/test-vasnprintf-posix2.c: Likewise.
43617         * tests/test-vasprintf-posix.c: Likewise.
43618
43619 2007-04-06  Bruno Haible  <bruno@clisp.org>
43620
43621         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43622         * lib/math_.h [__DECC]: Include the overridden include file through
43623         #include_next, outside the double-inclusion guard.
43624         * lib/stdio_.h [__DECC]: Likewise.
43625         * lib/stdlib_.h [__DECC]: Likewise.
43626         * lib/string_.h [__DECC]: Likewise.
43627         * lib/time_.h [__DECC]: Likewise.
43628         * lib/wchar_.h [__DECC]: Likewise.
43629         * lib/wctype_.h [__DECC]: Likewise.
43630         * lib/inttypes_.h [__DECC]: Likewise.
43631         Reported by Albert Chin <china@thewrittenword.com> in
43632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43633
43634 2007-04-04  Eric Blake  <ebb9@byu.net>
43635
43636         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43637         1.5.x.
43638
43639 2007-04-04  Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43642         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43643
43644 2007-04-04  Bruno Haible  <bruno@clisp.org>
43645
43646         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
43647         results for "%010a" of Infinity and NaN.
43648         * tests/test-vasprintf-posix.c (test_function): Likewise.
43649         * tests/test-snprintf-posix.h (test_function): Likewise.
43650         * tests/test-sprintf-posix.h (test_function): Likewise.
43651         * tests/test-fprintf-posix.h (test_function): Remove these tests.
43652         * tests/test-printf-posix.h (test_function): Likewise.
43653         * tests/test-fprintf-posix.out: Update.
43654         Needed for FreeBSD 6.1.
43655
43656 2007-04-04  Bruno Haible  <bruno@clisp.org>
43657
43658         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
43659         directly used by the gnulib modules nor by gnulib-tool.
43660
43661 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43662
43663         * DEPENDENCIES: Give overall description of version dependency
43664         desirability.  Use more-typical names for apps.
43665         Add shell, coreutils, diffutils, grep, tar, gzip.
43666
43667 2007-04-04  Simon Josefsson  <simon@josefsson.org>
43668
43669         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
43670
43671 2007-04-04  Karl Berry  <karl@gnu.org>
43672
43673         * MODULES.html.sh (func_module): missing '.
43674
43675 2007-04-03  Bruno Haible  <bruno@clisp.org>
43676
43677         * modules/argmatch-tests (Makefile.am): New variable
43678         test_argmatch_LDADD.
43679         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
43680         * modules/array-list-tests (Makefile.am): New variable
43681         test_array_list_LDADD.
43682         * modules/array-oset-tests (Makefile.am): New variable
43683         test_array_oset_LDADD.
43684         * modules/avltree-list-tests (Makefile.am): New variable
43685         test_avltree_list_LDADD.
43686         * modules/avltree-oset-tests (Makefile.am): New variable
43687         test_avltree_oset_LDADD.
43688         * modules/avltreehash-list-tests (Makefile.am): New variable
43689         test_avltreehash_list_LDADD.
43690         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
43691         test_canonicalize_lgpl_LDADD.
43692         * modules/carray-list-tests (Makefile.am): New variable
43693         test_carray_list_LDADD.
43694         * modules/dirname-tests (Makefile.am): New variable
43695         test_dirname_LDADD.
43696         * modules/linked-list-tests (Makefile.am): New variable
43697         test_linked_list_LDADD.
43698         * modules/linkedhash-list-tests (Makefile.am): New variable
43699         test_linkedhash_list_LDADD.
43700         * modules/rbtree-list-tests (Makefile.am): New variable
43701         test_rbtree_list_LDADD.
43702         * modules/rbtree-oset-tests (Makefile.am): New variable
43703         test_rbtree_oset_LDADD.
43704         * modules/rbtreehash-list-tests (Makefile.am): New variable
43705         test_rbtreehash_list_LDADD.
43706         * modules/xvasprintf-tests (Makefile.am): New variable
43707         test_xvasprintf_LDADD.
43708         Reported by Eric Blake.
43709
43710 2007-04-03  Eric Blake  <ebb9@byu.net>
43711
43712         * DEPENDENCIES: Weaken m4 requirements.
43713
43714 2007-04-03  Bruno Haible  <bruno@clisp.org>
43715
43716         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
43717         * modules/isnanl-tests (configure.ac): Likewise.
43718
43719 2007-04-03  Ben Pfaff  <blp@gnu.org>
43720
43721         * modules/iconv_open: Add $(srcdir)/ to source directory
43722         references in Makefile fragments that call gperf, to fix VPATH
43723         builds.
43724
43725 2007-04-03  Bruno Haible  <bruno@clisp.org>
43726
43727         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
43728         * lib/ldexpl.c: Undo last change.
43729
43730 2007-04-03  Bruno Haible  <bruno@clisp.org>
43731
43732         * modules/printf-frexpl (Depends-on): Undo last change.
43733         (Files): Add m4/ldexpl.m4.
43734
43735 2007-04-03  Bruno Haible  <bruno@clisp.org>
43736
43737         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
43738         * modules/isnanl (Link): New section.
43739
43740         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
43741         * modules/frexp (Link): New section.
43742
43743         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
43744         * modules/frexpl (Link): New section.
43745
43746         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
43747         * modules/ldexpl (Link): New section.
43748
43749 2007-04-03  Bruno Haible  <bruno@clisp.org>
43750
43751         * modules/TEMPLATE-EXTENDED: New file.
43752         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
43753
43754 2007-04-03  Bruno Haible  <bruno@clisp.org>
43755
43756         * DEPENDENCIES: New file.
43757         Suggested by Simon Josefsson.
43758
43759 2007-04-03  Bruno Haible  <bruno@clisp.org>
43760
43761         * doc/gnulib.texi: Escape @.
43762
43763 2007-04-03  James Youngman  <jay@gnu.org>
43764         and Paul Eggert  <eggert@cs.ucla.edu>
43765
43766         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
43767         birthtime on all systems that have birthtime, not just those which
43768         use st_birthtimensec rather than st_birthtim.  Putting zero in
43769         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
43770         that the birth time is not available for files on an NFS mount.
43771
43772 2007-04-03  Simon Josefsson  <simon@josefsson.org>
43773
43774         * modules/memxor: Move back from crypto/, suggested by Bruno.
43775         * modules/crypto/hmac-sha1: Fix memxor dependency.
43776
43777         * modules/crypto/gc: Moved from ../.
43778
43779 2007-04-02  Eric Blake  <ebb9@byu.net>
43780
43781         * lib/ldexpl.c (includes): Avoid libm.
43782
43783         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
43784
43785 2007-04-02  Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
43788         on IRIX.
43789
43790 2007-04-02  Bruno Haible  <bruno@clisp.org>
43791
43792         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
43793         x86 or x86_64 platforms running MacOS X.
43794         Reported by Ryan Schmidt <@ryandesign.com>.
43795
43796 2007-04-02  Bruno Haible  <bruno@clisp.org>
43797
43798         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
43799         i386.
43800
43801 2007-04-01  Simon Josefsson  <simon@josefsson.org>
43802
43803         * modules/crypto/arcfour: Moved from ../.
43804         * modules/crypto/arcfour-tests: Moved from ../.
43805         * modules/crypto/arctwo: Moved from ../.
43806         * modules/crypto/arctwo-tests: Moved from ../.
43807         * modules/crypto/des: Moved from ../.
43808         * modules/crypto/des-tests: Moved from ../.
43809         * modules/crypto/gc-arcfour: Moved from ../.
43810         * modules/crypto/gc-arcfour-tests: Moved from ../.
43811         * modules/crypto/gc-arctwo: Moved from ../.
43812         * modules/crypto/gc-arctwo-tests: Moved from ../.
43813         * modules/crypto/gc-des: Moved from ../.
43814         * modules/crypto/gc-des-tests: Moved from ../.
43815         * modules/crypto/gc-hmac-md5: Moved from ../.
43816         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43817         * modules/crypto/gc-hmac-sha1: Moved from ../.
43818         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43819         * modules/crypto/gc-md2: Moved from ../.
43820         * modules/crypto/gc-md2-tests: Moved from ../.
43821         * modules/crypto/gc-md4: Moved from ../.
43822         * modules/crypto/gc-md4-tests: Moved from ../.
43823         * modules/crypto/gc-md5: Moved from ../.
43824         * modules/crypto/gc-md5-tests: Moved from ../.
43825         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43826         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43827         * modules/crypto/gc-random: Moved from ../.
43828         * modules/crypto/gc-rijndael: Moved from ../.
43829         * modules/crypto/gc-rijndael-tests: Moved from ../.
43830         * modules/crypto/gc-sha1: Moved from ../.
43831         * modules/crypto/gc-sha1-tests: Moved from ../.
43832         * modules/crypto/gc-tests: Moved from ../.
43833         * modules/crypto/hmac-md5: Moved from ../.
43834         * modules/crypto/hmac-md5-tests: Moved from ../.
43835         * modules/crypto/hmac-sha1: Moved from ../.
43836         * modules/crypto/hmac-sha1-tests: Moved from ../.
43837         * modules/crypto/md2: Moved from ../.
43838         * modules/crypto/md2-tests: Moved from ../.
43839         * modules/crypto/md4: Moved from ../.
43840         * modules/crypto/md4-tests: Moved from ../.
43841         * modules/crypto/md5: Moved from ../.
43842         * modules/crypto/md5-tests: Moved from ../.
43843         * modules/crypto/memxor: Moved from ../.
43844         * modules/crypto/rijndael: Moved from ../.
43845         * modules/crypto/rijndael-tests: Moved from ../.
43846         * modules/crypto/sha1: Moved from ../.
43847
43848 2007-03-30  James Youngman  <jay@gnu.org>
43849
43850         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43851         rename() to change the ctime of a file (because ctime is unaffected
43852         by rename on jfs2 on AIX 5.1).
43853         (main): Start by doing cleanup, in case a previous run failed leaving
43854         test files behind.
43855
43856 2007-03-31  Bruno Haible  <bruno@clisp.org>
43857
43858         Support old proprietary implementations of iconv.
43859         * modules/iconv_open: New file.
43860         * lib/iconv_.h: New file.
43861         * m4/iconv_h.m4: New file.
43862         * lib/iconv_open.c: New file.
43863         * lib/iconv_open-aix.gperf: New file.
43864         * lib/iconv_open-hpux.gperf: New file.
43865         * lib/iconv_open-irix.gperf: New file.
43866         * lib/iconv_open-osf.gperf: New file.
43867         * m4/iconv_open.m4: New file.
43868         * modules/linebreak (Depends-on): Add iconv_open.
43869         * modules/striconv (Depends-on): Likewise.
43870         * modules/striconveh (Depends-on): Likewise.
43871         * modules/unicodeio (Depends-on): Likewise.
43872         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43873         (iconv_t)(-1).
43874         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43875         conversion if cd is (iconv_t)(-1).
43876         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43877         is not possible.
43878
43879 2007-03-31  Bruno Haible  <bruno@clisp.org>
43880
43881         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43882         work on Solaris either. Protect also second use of "autodetect_jp".
43883
43884 2007-03-31  Bruno Haible  <bruno@clisp.org>
43885
43886         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43887         the function is not present.
43888
43889 2007-03-31  Bruno Haible  <bruno@clisp.org>
43890
43891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43892         the function is not present.
43893
43894 2007-03-31  Bruno Haible  <bruno@clisp.org>
43895
43896         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43897         a bug in HP-UX iconv_open().
43898
43899 2007-03-31  Bruno Haible  <bruno@clisp.org>
43900
43901         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43902         (Mathematics <math.h>): New section, add fpieee.
43903         (Input/output <stdio.h>): Add fseterr.
43904         (Mathematics <math.h>): New section, add printf-frexp.
43905         (Container data structures): Add sublist.
43906         (Core language properties): Add fpucw, inline.
43907         (Functions for greatest-width integer types <inttypes.h>): Add
43908         imaxabs, imaxdiv, inttypes.
43909         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43910         isnanl-nolibm, ldexp.
43911         (Mathematics <math.h>): New section, add printf-frexpl.
43912         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43913         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43914         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43915         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43916         (Unicode string functions): Add unistr/u*-mbtoucr.
43917         (Java): Add javacomp-script, javaexec-script.
43918         (C#): Add csharpcomp-script, csharpexec-script.
43919         (Support for building libraries and executables): Add havelib,
43920         relocatable-*.
43921         (Support for maintaining and releasing projects): Renamed from
43922         'Support for maintaining and release projects'. Add announce-gen.
43923
43924 2007-03-31  Bruno Haible  <bruno@clisp.org>
43925
43926         * README: Talk primarily about git.
43927         (git and CVS): Renamed from CVS.
43928         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43929         gnulib is available through git.
43930         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43931
43932 2007-03-30  Bruno Haible  <bruno@clisp.org>
43933
43934         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43935         * lib/poll_.h: Likewise.
43936         * lib/stat_.h: Likewise.
43937         * lib/sys_time_.h: Likewise.
43938         * lib/sysexit_.h: Likewise.
43939         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43940         * lib/stdbool_.h: Likewise.
43941         * lib/byteswap_.h: Add double-inclusion guard.
43942
43943 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43944
43945         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43946
43947 2007-03-30  Karl Berry  <karl@gnu.org>
43948
43949         * config/srclist-update: double space after USA in the license
43950         substitution, since that's how it's usually (?) written.
43951
43952 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43953
43954         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43955         reported by Bruno Haible.
43956
43957 2007-03-29  Bruno Haible  <bruno@clisp.org>
43958
43959         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43960         a bug in AIX iconv().
43961
43962 2007-03-29  Bruno Haible  <bruno@clisp.org>
43963
43964         * modules/ldexpl-tests: New file.
43965         * tests/test-ldexpl.c: New file.
43966
43967 2007-03-29  Bruno Haible  <bruno@clisp.org>
43968
43969         * lib/ldexpl.c: Include fpucw.h.
43970         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43971         multiplication.
43972         * modules/ldexpl (Depends-on): Add fpucw.
43973
43974 2007-03-29  Bruno Haible  <bruno@clisp.org>
43975
43976         * modules/ldexpl: New file.
43977         * m4/ldexpl.m4: New file.
43978         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43979         set.
43980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43981         REPLACE_LDEXPL.
43982         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43983         REPLACE_LDEXPL.
43984         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43985         gl_FUNC_LDEXPL_WORKS.
43986         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43987         * modules/mathl (Files): Remove lib/ldexpl.c.
43988         (Depends-on): Add ldexpl.
43989
43990 2007-03-29  Bruno Haible  <bruno@clisp.org>
43991
43992         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43993
43994 2007-03-29  Bruno Haible  <bruno@clisp.org>
43995
43996         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43997         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43998         and possibly also HP-UX.
43999         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
44000         work on AIX, IRIX, HP-UX, OSF/1.
44001         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44002         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44003         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44004         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44005         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
44006         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44007
44008 2007-03-29  Bruno Haible  <bruno@clisp.org>
44009
44010         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
44011
44012 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44013
44014         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
44015         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
44016
44017 2007-03-29  Eric Blake  <ebb9@byu.net>
44018
44019         * lib/acl-internal.h: Remove redundant include.
44020         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
44021         Cygwin when a file is locked.
44022
44023 2007-03-29  Bruno Haible  <bruno@clisp.org>
44024
44025         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
44026         file.
44027         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
44028
44029 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44030
44031         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
44032         try to remove a parent directory if the child couldn't be removed
44033         (except for the first rmdir, which could fail because the child
44034         doesn't exist).  Problem reported by Jeff Blaine in
44035         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
44036
44037 2007-03-28  Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/striconveh.c (utf8conv_carefully): New function.
44040         (mem_cd_iconveh_internal): Invoke it.
44041
44042 2007-03-28  Bruno Haible  <bruno@clisp.org>
44043
44044         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
44045         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
44046         input.
44047         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
44048         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
44049         unistr/u8-uctomb.
44050
44051 2007-03-28  Bruno Haible  <bruno@clisp.org>
44052
44053         * modules/unistr/u8-mbtoucr: New file.
44054         * lib/unistr/u8-mbtoucr.c: New file.
44055         * modules/unistr/u16-mbtoucr: New file.
44056         * lib/unistr/u16-mbtoucr.c: New file.
44057         * modules/unistr/u16-mbtoucr: New file.
44058         * lib/unistr/u16-mbtoucr.c: New file.
44059         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
44060
44061 2007-03-27  Simon Josefsson  <simon@josefsson.org>
44062             Bruno Haible  <bruno@clisp.org>
44063
44064         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
44065         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
44066         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
44067
44068         * m4/stdio_h.m4: Add stubs for vasprintf too.
44069
44070         * modules/stdio: Support vasprintf in sed command.
44071
44072         * modules/vasprintf: Depend on stdio for prototypes.  Remove
44073         vasprintf.h.  Add stdio module indicator.
44074
44075         * lib/stdio_.h: Declare asprintf and vasprintf, based on
44076         vasprintf.h.
44077
44078         * lib/vasprintf.h: File removed.
44079
44080         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
44081         * lib/vasprintf.c: Ditto.
44082         * lib/xvasprintf.c: Ditto.
44083         * tests/test-vasprintf-posix.c: Ditto.
44084         * tests/test-vasprintf.c: Ditto.
44085
44086 2007-03-27  Bruno Haible  <bruno@clisp.org>
44087
44088         Make vasnprintf multithread-safe.
44089         * lib/vasnprintf.c (decimal_point_char): New function.
44090         (VASNPRINTF): Use it.
44091         Suggested by Simon Josefsson.
44092
44093 2007-03-27  Eric Blake  <ebb9@byu.net>
44094
44095         Support sub-second birthtime on cygwin.
44096         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
44097         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
44098         (get_stat_birthtime): Also work with st_birthtim.
44099
44100 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
44101
44102         * lib/stat-time.h (USE_BIRTHTIME): Remove.
44103         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
44104         (get_stat_birthtime_ns): Do not try to use "spare" fields.
44105         (get_stat_birthtime_ns): Simplify compile-time tests.
44106         (get_stat_birthtime): Change the API to look like
44107         get_stat_mtime etc., except return a negative tv_nsec on error.
44108         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
44109         Don't check for "spare" fields.
44110         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
44111         or for struct stat.st_birthtime, as these tests aren't used.
44112         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
44113
44114 2007-03-27  Bruno Haible  <bruno@clisp.org>
44115
44116         * lib/stat-time.h: Include <sys/stat.h>.
44117
44118 2007-03-27  James Youngman  <jay@gnu.org>
44119
44120         * lib/stat-time.h (get_stat_birthtime): New function for
44121           retrieving st_birthtime as provided by UFS2 (hence *BSD).
44122         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
44123           and its variants.
44124         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
44125         * modules/stat-time-test: New file.
44126         * tests/test-stat-time.c: New test, devised by Bruno Haible.
44127
44128 2007-03-26  Bruno Haible  <bruno@clisp.org>
44129
44130         Better support of signalling NaNs.
44131         * lib/atanl.c: Include isnanl.h.
44132         (atanl): Perform test for NaN at the beginning of the function and
44133         through a call to isnanl.
44134         * lib/cosl.c: Include isnanl.h.
44135         (cosl): Perform test for NaN at the beginning of the function and
44136         through a call to isnanl.
44137         * lib/ldexpl.c: Include isnanl.h.
44138         (ldexpl): Perform test for NaN through a call to isnanl.
44139         * lib/logl.c: Include isnanl.h.
44140         (logl): Perform test for NaN at the beginning of the function and
44141         through a call to isnanl.
44142         * lib/sinl.c: Include isnanl.h.
44143         (sinl): Perform test for NaN at the beginning of the function and
44144         through a call to isnanl.
44145         * lib/sqrtl.c: Include isnanl.h.
44146         (sqrtl): Perform test for NaN at the beginning of the function and
44147         through a call to isnanl.
44148         * lib/tanl.c: Include isnanl.h.
44149         (tanl): Perform test for NaN at the beginning of the function and
44150         through a call to isnanl.
44151         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
44152         * modules/mathl (Depends-on): Add isnanl.
44153
44154 2007-03-26  Eric Blake  <ebb9@byu.net>
44155
44156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
44157         regression in logic sense of previous patch.
44158
44159 2007-03-26  Bruno Haible  <bruno@clisp.org>
44160
44161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
44162         unportable shell command "if ! ...".
44163         Reported by Ralf Wildenhues.
44164
44165 2007-03-25  Bruno Haible  <bruno@clisp.org>
44166
44167         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
44168         <sysexits.h> file, and only add EX_CONFIG.
44169         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
44170         absolute file name and whether it is sufficient. Substitute also
44171         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
44172         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
44173         ABSOLUTE_SYSEXITS_H into sysexits.h.
44174
44175 2007-03-25  Bruno Haible  <bruno@clisp.org>
44176
44177         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
44178         hints is NULL.
44179
44180 2007-03-25  Bruno Haible  <bruno@clisp.org>
44181
44182         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
44183         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
44184
44185 2007-03-25  Bruno Haible  <bruno@clisp.org>
44186
44187         * lib/vasnprintf.c: Include langinfo.h.
44188         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
44189         multithread-safe.
44190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
44191         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
44192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44197         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
44198         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44199         Reported by Simon Josefsson.
44200
44201 2007-03-25  Bruno Haible  <bruno@clisp.org>
44202
44203         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
44204         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
44205         * modules/vasnprintf (Depends-on): Add stdint.
44206
44207 2007-03-25  Bruno Haible  <bruno@clisp.org>
44208
44209         * modules/fpieee: New file.
44210         * m4/fpieee.m4: New file.
44211         * modules/isnan-nolibm (Depends-on): Add fpieee.
44212         * modules/isnanl-nolibm (Depends-on): Add fpieee.
44213         * modules/isnanl (Depends-on): Add fpieee.
44214
44215 2007-03-25  Bruno Haible  <bruno@clisp.org>
44216
44217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
44218
44219 2007-03-25  Bruno Haible  <bruno@clisp.org>
44220
44221         Avoid test failures on IRIX 6.5.
44222         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
44223         (main): Use it.
44224         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
44225         macros.
44226         (main): Use them.
44227
44228 2007-03-25  Bruno Haible  <bruno@clisp.org>
44229
44230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
44231         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
44232         exists but doesn't work.
44233         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
44234         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
44235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
44236         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
44237
44238 2007-03-25  Bruno Haible  <bruno@clisp.org>
44239
44240         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
44241         returns inf. Needed on IRIX 6.5.
44242
44243 2007-03-25  Bruno Haible  <bruno@clisp.org>
44244
44245         * tests/test-frexpl.c: Include isnanl-nolibm.h.
44246         (main): Use isnanl instead of x != x idiom.
44247         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
44248
44249         * tests/test-frexp.c: Include isnan.h.
44250         (main): Use isnan instead of x != x idiom.
44251         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
44252
44253 2007-03-25  Bruno Haible  <bruno@clisp.org>
44254
44255         * tests/test-frexp.c (NaN): New function/macro.
44256         (main): Use it instead of 0.0 / 0.0.
44257         * tests/test-isnan.c (NaN): New function/macro.
44258         (main): Use it instead of 0.0 / 0.0.
44259         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
44260         (test_function): Use it instead of 0.0 / 0.0.
44261         * tests/test-vasprintf-posix.c (NaN): New function/macro.
44262         (test_function): Use it instead of 0.0 / 0.0.
44263         * tests/test-snprintf-posix.h (NaN): New function/macro.
44264         (test_function): Use it instead of 0.0 / 0.0.
44265         * tests/test-sprintf-posix.h (NaN): New function/macro.
44266         (test_function): Use it instead of 0.0 / 0.0.
44267         * tests/test-fprintf-posix.h (NaN): New function/macro.
44268         (test_function): Use it instead of 0.0 / 0.0.
44269         * tests/test-printf-posix.h (NaN): New function/macro.
44270         (test_function): Use it instead of 0.0 / 0.0.
44271
44272         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
44273
44274 2007-03-25  Bruno Haible  <bruno@clisp.org>
44275
44276         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
44277
44278 2007-03-25  Bruno Haible  <bruno@clisp.org>
44279
44280         * lib/regexec.c (merge_state_with_log): Make static.
44281
44282 2007-03-25  Bruno Haible  <bruno@clisp.org>
44283
44284         * lib/trigl.c (kernel_rem_pio2): Make static.
44285
44286 2007-03-25  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/sincosl.c (sincosl_table): Make static.
44289
44290 2007-03-25  Bruno Haible  <bruno@clisp.org>
44291
44292         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
44293         if the compiler does not support C99.
44294
44295 2007-03-25  Bruno Haible  <bruno@clisp.org>
44296
44297         * modules/time (Makefile.am): Ensure all rule action lines start with a
44298         tab.
44299
44300 2007-03-24  Bruno Haible  <bruno@clisp.org>
44301
44302         * modules/tsearch-tests: New file.
44303         * tests/test-tsearch.sh: New file.
44304         * tests/test-tsearch.c: New file, mostly copied from glibc.
44305
44306         * modules/search-tests: New file.
44307         * tests/test-search.c: New file.
44308
44309         * modules/search: New file.
44310         * lib/search_.h: New file, incorporating lib/tsearch.h.
44311         * m4/search_h.m4: New file.
44312         * lib/tsearch.h: Remove file.
44313         * lib/tsearch.c: Include search.h instead of tsearch.h.
44314         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
44315         HAVE_TSEARCH.
44316         * modules/tsearch (Files): Remove lib/tsearch.h.
44317         (Depends-on): Add search.
44318         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
44319         (Include): Change tsearch.h into search.h.
44320
44321 2007-03-24  Bruno Haible  <bruno@clisp.org>
44322
44323         * modules/fpucw: New file.
44324         * lib/fpucw.h: New file.
44325         * lib/frexp.c: Include fpucw.h.
44326         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44327         (FUNC): Use them.
44328         * lib/printf-frexp.c: Include fpucw.h.
44329         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44330         (FUNC): Use them.
44331         * lib/vasnprintf.c: Include fpucw.h.
44332         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
44333         'long double' calculations.
44334         * tests/test-frexpl.c: Include fpucw.h.
44335         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44336         * tests/test-printf-frexpl.c: Include fpucw.h.
44337         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44338         * modules/frexpl (Depends-on): Add fpucw.
44339         * modules/printf-frexpl (Depends-on): Likewise.
44340         * modules/fprintf-posix (Depends-on): Likewise.
44341         * modules/snprintf-posix (Depends-on): Likewise.
44342         * modules/sprintf-posix (Depends-on): Likewise.
44343         * modules/vasnprintf-posix (Depends-on): Likewise.
44344         * modules/vasprintf-posix (Depends-on): Likewise.
44345         * modules/vfprintf-posix (Depends-on): Likewise.
44346         * modules/vsnprintf-posix (Depends-on): Likewise.
44347         * modules/vsprintf-posix (Depends-on): Likewise.
44348         * modules/frexpl-tests (Depends-on): Likewise.
44349         * modules/printf-frexpl-tests (Depends-on): Likewise.
44350
44351 2007-03-24  Bruno Haible  <bruno@clisp.org>
44352
44353         * lib/float+.h: New file.
44354         * lib/isnan.c: Include float+.h.
44355         (SIZE): New macro.
44356         (FUNC): Compare only SIZE bytes of the value.
44357         * lib/vasnprintf.c: Include float+.h.
44358         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
44359         SIZEOF_LDBL or SIZEOF_DBL bytes.
44360         * modules/isnan-nolibm (Files): Add lib/float+.h.
44361         * modules/isnanl-nolibm (Files): Add lib/float+.h.
44362         * modules/isnanl (Files): Add lib/float+.h.
44363         * modules/vasnprintf (Files): Add lib/float+.h.
44364
44365 2007-03-24  Bruno Haible  <bruno@clisp.org>
44366
44367         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44368         include isnanl-nolibm.h.
44369
44370 2007-03-24  Bruno Haible  <bruno@clisp.org>
44371
44372         * tests/test-read-file.c (main): Don't produce spurious output for
44373         expected situations. Make the test fail if it encountered unexpected
44374         results.
44375
44376 2007-03-24  Bruno Haible  <bruno@clisp.org>
44377
44378         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44379         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44380
44381 2007-03-24  Bruno Haible  <bruno@clisp.org>
44382
44383         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44384
44385 2007-03-24  Bruno Haible  <bruno@clisp.org>
44386
44387         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44388         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44389
44390         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44391         * modules/utf8-ucs4: Turn into a symbolic link to module
44392         unistr/u8-mbtouc.
44393
44394         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44395         utf8-ucs4-unsafe.
44396         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44397         unistr/u8-mbtouc-unsafe.
44398
44399         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44400         * modules/utf16-ucs4: Turn into a symbolic link to module
44401         unistr/u16-mbtouc.
44402
44403         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44404         utf16-ucs4-unsafe.
44405         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44406         unistr/u16-mbtouc-unsafe.
44407
44408         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44409         * modules/ucs4-utf8: Turn into a symbolic link to module
44410         unistr/u8-ubtomb.
44411
44412         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44413         * modules/ucs4-utf16: Turn into a symbolic link to module
44414         unistr/u16-ubtomb.
44415
44416 2007-03-24  Bruno Haible  <bruno@clisp.org>
44417
44418         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44419         Enable the function only if HAVE_INLINE.
44420         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44421         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44422         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44423         Enable the function only if HAVE_INLINE.
44424         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44425         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44426         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44427         Enable the function only if HAVE_INLINE.
44428         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44429         Enable the function only if HAVE_INLINE.
44430         * modules/utf8-ucs4: Update.
44431         * modules/utf8-ucs4-unsafe: Update.
44432         * modules/utf16-ucs4: Update.
44433         * modules/utf16-ucs4-unsafe: Update.
44434         * modules/ucs4-utf8: Update.
44435         * modules/ucs4-utf16: Update.
44436
44437 2007-03-24  Bruno Haible  <bruno@clisp.org>
44438
44439         * lib/utf8-ucs4.h: Remove file.
44440         * lib/utf8-ucs4-unsafe.h: Remove file.
44441         * lib/utf16-ucs4.h: Remove file.
44442         * lib/utf16-ucs4-unsafe.h: Remove file.
44443         * lib/ucs4-utf8.h: Remove file.
44444         * lib/ucs4-utf16.h: Remove file.
44445         * lib/unistr.h: Include their previous contents.
44446         * m4/utf-ucs4.m4: Remove file.
44447         * m4/ucs4-utf.m4: Remove file.
44448         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44449         (Depends-on): Add unistr/base.
44450         (configure.ac): Remove gl_UTF_UCS4.
44451         (Makefile.am): Update.
44452         (Include): Change to unistr.h.
44453         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44454         (Depends-on): Add unistr/base.
44455         (configure.ac): Remove gl_UTF_UCS4.
44456         (Makefile.am): Update.
44457         (Include): Change to unistr.h.
44458         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44459         (Depends-on): Add unistr/base.
44460         (configure.ac): Remove gl_UTF_UCS4.
44461         (Makefile.am): Update.
44462         (Include): Change to unistr.h.
44463         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44464         (Depends-on): Add unistr/base.
44465         (configure.ac): Remove gl_UTF_UCS4.
44466         (Makefile.am): Update.
44467         (Include): Change to unistr.h.
44468         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44469         (Depends-on): Add unistr/base.
44470         (configure.ac): Remove gl_UCS4_UTF.
44471         (Makefile.am): Update.
44472         (Include): Change to unistr.h.
44473         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44474         (Depends-on): Add unistr/base.
44475         (configure.ac): Remove gl_UCS4_UTF.
44476         (Makefile.am): Update.
44477         (Include): Change to unistr.h.
44478         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44479         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44480         utf8-ucs4-unsafe.h.
44481         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44482         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44483         utf16-ucs4-unsafe.h.
44484         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44485         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44486         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44487         * lib/unistr/u8-strchr.c: Likewise.
44488         * lib/unistr/u8-strrchr.c: Likewise.
44489         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44490         * lib/unistr/u16-strchr.c: Likewise.
44491         * lib/unistr/u16-strrchr.c: Likewise.
44492         * lib/striconveh.c: Update.
44493         * lib/linebreak.c: Update.
44494
44495 2007-03-24  Bruno Haible  <bruno@clisp.org>
44496
44497         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44498         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44499
44500 2007-03-22  Bruno Haible  <bruno@clisp.org>
44501
44502         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44503
44504 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44505
44506         * MODULES.html.sh (File system functions): New module write-any-file.
44507         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44508         * m4/write-any-file.m4: New files.
44509
44510 2007-03-23  Eric Blake  <ebb9@byu.net>
44511
44512         * gnulib-tool: Rearrange space-tab sequences, since some editors
44513         like to eat them.
44514
44515 2007-03-23  Eric Blake  <ebb9@byu.net>
44516
44517         * lib/version-etc.c (version_etc_va): Update license wording to
44518         be more concise.  Recommended by Richard Stallman.
44519
44520 2007-03-22  Bruno Haible  <bruno@clisp.org>
44521
44522         * lib/poll.c (MSG_PEEK): New fallback definition.
44523
44524 2007-03-22  Bruno Haible  <bruno@clisp.org>
44525
44526         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44527         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44528         (main): Update.
44529         Fixes a compilation error on BeOS.
44530
44531 2007-03-22  Bruno Haible  <bruno@clisp.org>
44532
44533         * modules/frexpl-tests: New file.
44534         * tests/test-frexpl.c: New file.
44535
44536         * modules/frexpl: New file.
44537         * m4/frexpl.m4: New file.
44538         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44539         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44541         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44542         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44543         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44544
44545 2007-03-22  Bruno Haible  <bruno@clisp.org>
44546
44547         * lib/frexpl.c: Share code with lib/frexp.c.
44548         * modules/mathl (Files): Add lib/frexp.c.
44549         (Depends-on): Add isnanl-nolibm.
44550
44551 2007-03-22  Bruno Haible  <bruno@clisp.org>
44552
44553         * modules/printf-frexp (Files): Add m4/frexp.m4.
44554         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44555         only if the found frexp function actually works.
44556
44557 2007-03-22  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/frexp.c: Remove older implementation that uses divisions.
44560
44561 2007-03-21  Bruno Haible  <bruno@clisp.org>
44562
44563         * modules/frexp-tests: New file.
44564         * tests/test-frexp.c: New file.
44565
44566         * modules/frexp: New file.
44567         * lib/frexp.c: New file.
44568         * m4/frexp.m4: New file.
44569         * lib/math_.h (frexp): New declaration.
44570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44571         REPLACE_FREXP.
44572         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44573
44574 2007-03-21  Bruno Haible  <bruno@clisp.org>
44575
44576         * modules/isnanl-tests: New file.
44577         * tests/test-isnanl.c: New file.
44578
44579         * modules/isnanl: New file.
44580         * lib/isnanl.h: New file.
44581         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44582         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44583         gl_FUNC_ISNANL_WORKS.
44584         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44585         New macros.
44586
44587 2007-03-21  Bruno Haible  <bruno@clisp.org>
44588
44589         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44590         lib/isnanl.h.
44591         (Include): Update.
44592         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44593         * lib/vasnprintf.c: Update.
44594         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44595         tests/test-isnanl.h, remove tests/test-isnanl.c.
44596         (Makefile.am): Update.
44597         * tests/test-isnanl-nolibm.c: New file.
44598         * tests/test-isnanl.h: New file.
44599         * tests/test-isnanl.c: Remove file.
44600
44601 2007-03-21  Jim Meyering  <jim@meyering.net>
44602
44603         When trying to open ".", treat ESTALE like EACCES.
44604         * lib/savewd.c (savewd_save): Resort to forking not just upon
44605         failure with EACCES, but also when errno is ESTALE.
44606
44607 2007-03-20  Bruno Haible  <bruno@clisp.org>
44608
44609         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44610         Needed on AIX 5.1. Reported by Matthew Woehlke.
44611
44612 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44613
44614         Suggestions by Bruno Haible:
44615         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44616         our own.
44617         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44618         * modules/acl (Depends-on): Add gettext.
44619
44620 2007-03-19  Bruno Haible  <bruno@clisp.org>
44621
44622         * modules/iconvme: Remove file.
44623         * lib/iconvme.h: Remove file.
44624         * lib/iconvme.c: Remove file.
44625         * m4/iconvme.m4: Remove file.
44626
44627 2007-03-19  Bruno Haible  <bruno@clisp.org>
44628
44629         * doc/relocatable-maint.texi: Break long shell script line.
44630         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44631
44632 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44633
44634         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44635         handle file_has_acl.
44636         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44637         * lib/acl.c: Move header inclusions and related macro defns into
44638         lib/acl-internal.h.
44639         (S_ISLNK): Remove defn, since that's now done for us.
44640         (file_has_acl): Move to lib/file-has-acl.c.
44641         Call acl_trivial if available.  This is the crucial part of the fix.
44642         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44643         shared within the library.  Rewrite a bit, partly to make it compatible
44644         with the GNU coding style.
44645         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44646         Remove unnecessary double-quotes.
44647         Don't test for acl_to_text; the build will catch that.
44648         Replace acl_entries if it doesn't exist and it is needed.
44649         Check for -lsec and acl_trivial (as used on Solaris 10).
44650         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
44651         lib/file-has-acl.c.
44652         (Depends-on): Add sys_stat, for S_ISLNK.
44653
44654 2007-03-19  Ben Pfaff  <blp@gnu.org>
44655
44656         * doc/gnulib.texi: Fix typos.
44657         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44658
44659 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44660
44661         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
44662         If size is zero here, buf must be zero.
44663
44664 2007-03-19  Simon Josefsson  <simon@josefsson.org>
44665
44666         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
44667         <bruno@clisp.org>.
44668
44669 2007-03-18  Bruno Haible  <bruno@clisp.org>
44670
44671         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
44672         Suggested by Eric Blake.
44673
44674 2007-03-18  Ben Pfaff  <blp@gnu.org>
44675
44676         * doc/relocatable.texi: Recommend using as prefix a directory
44677         that does not exist and will never be created.  Based on
44678         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
44679         and others.
44680
44681 2007-03-17  Bruno Haible  <bruno@clisp.org>
44682
44683         * lib/fchownat.c: Include lchown.h.
44684
44685 2007-03-17  Bruno Haible  <bruno@clisp.org>
44686
44687         Fix endless loop when the given allocated size was > INT_MAX.
44688         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
44689         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
44690         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
44691         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
44692         * lib/sprintf.c (sprintf): Likewise.
44693
44694 2007-03-17  Bruno Haible  <bruno@clisp.org>
44695
44696         * tests/test-argp-2.sh (func_compare): Output a context diff.
44697
44698 2007-03-17  Bruno Haible  <bruno@clisp.org>
44699
44700         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
44701         locale's decimal-point character.
44702
44703 2007-03-17  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
44706         before comparing it. Needed because on some platforms (e.g. x86) a
44707         'long double' occupies less bytes than sizeof (long double).
44708
44709 2007-03-17  Bruno Haible  <bruno@clisp.org>
44710
44711         * tests/test-crc.c (main): Make printf statements 64-bit clean.
44712         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
44713         * tests/test-getaddrinfo.c (simple): Likewise.
44714         * tests/test-read-file.c (main): Likewise.
44715
44716 2007-03-17  Bruno Haible  <bruno@clisp.org>
44717
44718         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
44719
44720 2007-03-17  Bruno Haible  <bruno@clisp.org>
44721
44722         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
44723         unused variable.
44724
44725 2007-03-17  Bruno Haible  <bruno@clisp.org>
44726
44727         * tests/test-c-strcasecmp.c: Include c-strcase.h.
44728         * tests/test-c-strncasecmp.c: Likewise.
44729
44730 2007-03-17  Bruno Haible  <bruno@clisp.org>
44731
44732         * modules/stdlib (Depends-on): Add unistd.
44733         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
44734         Needed for MacOS X 10.3.
44735
44736 2007-03-17  Bruno Haible  <bruno@clisp.org>
44737
44738         * lib/unistr/u-strdup.h: Include <stdlib.h>.
44739
44740 2007-03-17  Bruno Haible  <bruno@clisp.org>
44741
44742         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
44743
44744 2007-03-17  Bruno Haible  <bruno@clisp.org>
44745
44746         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
44747         to reflect files copied from gnulib (with or without modifications).
44748         Suggested by Jim Meyering.
44749
44750 2007-03-17  Eric Blake  <ebb9@byu.net>
44751
44752         * NEWS: Document stdlib change from 2007-02-18.
44753
44754 2007-03-17  Jim Meyering  <jim@meyering.net>
44755
44756         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
44757         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
44758         someone uses a name containing shell meta-characters.
44759         Reported by Alfred M. Szmidt.
44760
44761         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
44762
44763 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44764
44765         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
44766         and copy gettext configuration files only if configure.ac contains
44767         a use of AM_GNU_GETTEXT_VERSION.
44768
44769 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44770
44771         * build-aux/bootstrap (gnulib_name): New variable.
44772         (gnulib_tool_options): Use it.
44773
44774 2007-03-13  Simon Josefsson  <simon@josefsson.org>
44775
44776         * tests/test-des.c: Use new namespace.
44777
44778 2007-03-15  Bruno Haible  <bruno@clisp.org>
44779
44780         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
44781         Reported by James Youngman <jay@gnu.org>.
44782
44783 2007-03-15  Bruno Haible  <bruno@clisp.org>
44784
44785         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
44786         declared prototype. Needed with cc on OSF/1 5.1.
44787
44788 2007-03-15  Bruno Haible  <bruno@clisp.org>
44789
44790         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
44791         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
44792         (struct gl_list_implementation): Add dispose_fn argument to the
44793         'create_empty', 'create' methods.
44794         (struct gl_list_impl_base): Add field 'dispose_fn'.
44795         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
44796         argument.
44797         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
44798         dispose_fn argument.
44799         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
44800         dispose_fn on the dropped values.
44801         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
44802         dispose_fn argument.
44803         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
44804         dropped values.
44805         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
44806         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44807         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
44808         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44809         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
44810         argument.
44811         (gl_tree_list_free): Call dispose_fn on the dropped values.
44812         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44813         the dropped values.
44814         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44815         Add dispose_fn argument.
44816         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44817         Call dispose_fn on the dropped values.
44818         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44819         Add dispose_fn argument.
44820         (gl_sublist_create): Initialize the 'dispose_fn' field.
44821         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44822         * tests/test-array_list.c (main): Update.
44823         * tests/test-carray_list.c (main): Update.
44824         * tests/test-avltree_list.c (main): Update.
44825         * tests/test-rbtree_list.c (main): Update.
44826         * tests/test-avltreehash_list.c (main): Update.
44827         * tests/test-rbtreehash_list.c (main): Update.
44828         * tests/test-linked_list.c (main): Update.
44829         * tests/test-linkedhash_list.c (main): Update.
44830         * tests/test-array_oset.c (main): Update.
44831
44832 2007-03-15  Bruno Haible  <bruno@clisp.org>
44833
44834         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44835         (gl_oset_create_empty): Add dispose_fn argument.
44836         (struct gl_oset_implementation): Add dispose_fn argument to
44837         'create_empty' method.
44838         (struct gl_oset_impl_base): Add dispose_fn field.
44839         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44840         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44841         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44842         values.
44843         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44844         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44845         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44846         dropped value.
44847         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44848         dropped value.
44849         * tests/test-array_oset.c (main): Update.
44850         * tests/test-avltree_oset.c (main): Update.
44851         * tests/test-rbtree_oset.c (main): Update.
44852         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44853
44854 2007-03-13  Bruno Haible  <bruno@clisp.org>
44855
44856         * tests/test-stdbool.c (i): Update after last patch.
44857
44858 2007-03-12  Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44861         the iswprint macro. Needed on Solaris 2.5.1.
44862
44863 2007-03-12  Bruno Haible  <bruno@clisp.org>
44864
44865         * tests/test-printf-frexp.c (main): Declare x as volatile.
44866
44867 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44868
44869         * doc/gnulib.texi (Build robot for gnulib): New section.
44870
44871 2007-03-12  Jim Meyering  <jim@meyering.net>
44872
44873         * build-aux/bootstrap: New file.
44874         * build-aux/bootstrap.conf: New file, from coreutils.
44875
44876 2007-03-11  Bruno Haible  <bruno@clisp.org>
44877
44878         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44879
44880 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44881
44882         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44883         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44884         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44885
44886 2007-03-11  Bruno Haible  <bruno@clisp.org>
44887
44888         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44889         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44890
44891 2007-03-11  Bruno Haible  <bruno@clisp.org>
44892
44893         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44894         formula. Needed for SunPRO C 5.0.
44895
44896 2007-03-11  Bruno Haible  <bruno@clisp.org>
44897
44898         * modules/long-options (Depends-on): Add getopt.
44899
44900 2007-03-11  Bruno Haible  <bruno@clisp.org>
44901
44902         * modules/modechange (Depends-on): Add stdbool.
44903
44904 2007-03-11  Bruno Haible  <bruno@clisp.org>
44905
44906         * modules/i-ring (Depends-on): Add stdbool.
44907
44908 2007-03-11  Bruno Haible  <bruno@clisp.org>
44909
44910         * modules/gc-des (Depends-on): Add stdbool.
44911
44912 2007-03-11  Bruno Haible  <bruno@clisp.org>
44913
44914         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44915
44916 2007-03-11  Bruno Haible  <bruno@clisp.org>
44917
44918         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44919
44920 2007-03-11  Bruno Haible  <bruno@clisp.org>
44921
44922         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44923
44924 2007-03-11  Bruno Haible  <bruno@clisp.org>
44925
44926         * lib/vasnprintf.c (sprintf): Undefine.
44927
44928 2007-03-11  Bruno Haible  <bruno@clisp.org>
44929
44930         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44931         initializers in SunPRO C and Compaq C compilers.
44932
44933 2007-03-11  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44936         decrementing code ANSI C compliant.
44937
44938 2007-03-11  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44941         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44942
44943 2007-03-11  Bruno Haible  <bruno@clisp.org>
44944
44945         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44946         <stdbool.h> substitute doesn't pass.
44947
44948 2007-03-11  Bruno Haible  <bruno@clisp.org>
44949
44950         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44951
44952 2007-03-11  Bruno Haible  <bruno@clisp.org>
44953
44954         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44955         script, for submission to autobuild.josefsson.org.
44956
44957 2007-03-10  Bruno Haible  <bruno@clisp.org>
44958
44959         * modules/canonicalize-lgpl-tests: New file.
44960         * tests/test-canonicalize-lgpl.sh: New file.
44961         * tests/test-canonicalize-lgpl.c: New file.
44962
44963         * modules/c-strcase-tests: New file.
44964         * tests/test-c-strcase.sh: New file.
44965         * tests/test-c-strcasecmp.c: New file.
44966         * tests/test-c-strncasecmp.c: New file.
44967
44968         * modules/atexit-tests: New file.
44969         * tests/test-atexit.sh: New file.
44970         * tests/test-atexit.c: New file.
44971
44972 2007-03-10  Bruno Haible  <bruno@clisp.org>
44973
44974         * tests/test-binary-io.sh: Use temporary filenames that are not so
44975         likely to clash with those of other tests (in a parallel make).
44976         * tests/test-binary-io.c: Likewise.
44977
44978 2007-03-10  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44981         fallback; use #error instead.
44982         Suggested by Simon Josefsson.
44983
44984 2007-03-10  Bruno Haible  <bruno@clisp.org>
44985
44986         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44987         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44988         first and the last.
44989
44990 2007-03-10  Bruno Haible  <bruno@clisp.org>
44991
44992         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44993
44994 2007-03-10  Bruno Haible  <bruno@clisp.org>
44995
44996         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44997         "make distcheck".
44998         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44999         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
45000         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
45001
45002 2007-03-10  Bruno Haible  <bruno@clisp.org>
45003
45004         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
45005         variable.
45006         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
45007         variable.
45008
45009 2007-03-09  Eric Blake  <ebb9@byu.net>
45010         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
45011
45012         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
45013         types are not being provided by gnulib.
45014         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
45015         types are supported.
45016
45017 2007-03-10  Bruno Haible  <bruno@clisp.org>
45018
45019         * lib/stdio_.h (__attribute__): New macro.
45020         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
45021         vsprintf): Specify __attribute__ __format__ for GCC.
45022         Suggested by Eric Blake.
45023
45024 2007-03-09  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/printf-posix-tests: New file.
45027         * tests/test-printf-posix.sh: New file.
45028         * tests/test-printf-posix.c: New file.
45029
45030         * modules/printf-posix: New file.
45031         * lib/printf.c: New file.
45032         * m4/printf-posix-rpl.m4: New file.
45033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
45034         REPLACE_PRINTF.
45035         * lib/stdio_.h (printf): New declaration.
45036         (format, __format__, ____printf____, ____scanf____, ____strftime____,
45037         ____strfmon____): New macros.
45038         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
45039         REPLACE_PRINTF.
45040
45041 2007-03-09  Bruno Haible  <bruno@clisp.org>
45042
45043         * tests/test-vasnprintf-posix2.sh: New file.
45044         * tests/test-vasnprintf-posix2.c: New file.
45045         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
45046         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45047         (Makefile.am): Activate test-vasnprintf-posix2.sh.
45048
45049         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
45050         a locale dependent decimal point, rather than always '.'.
45051
45052 2007-03-09  Eric Blake  <ebb9@byu.net>
45053
45054         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
45055         spite of platforms like Tandem/NSK that define it to -1.
45056
45057 2007-03-08  Bruno Haible  <bruno@clisp.org>
45058
45059         * modules/vprintf-posix-tests: New file.
45060         * tests/test-vprintf-posix.sh: New file.
45061         * tests/test-vprintf-posix.c: New file.
45062         * tests/test-printf-posix.h: New file.
45063
45064         * modules/vprintf-posix: New file.
45065         * lib/vprintf.c: New file.
45066         * m4/vprintf-posix.m4: New file.
45067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
45068         REPLACE_VPRINTF.
45069         * lib/stdio_.h (vprintf): New declaration.
45070         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
45071         REPLACE_VPRINTF.
45072
45073 2007-03-08  Bruno Haible  <bruno@clisp.org>
45074
45075         * modules/fprintf-posix-tests: New file.
45076         * tests/test-fprintf-posix.sh: New file.
45077         * tests/test-fprintf-posix.c: New file.
45078
45079         * modules/fprintf-posix: New file.
45080         * lib/fprintf.c: New file.
45081         * m4/fprintf-posix.m4: New file.
45082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
45083         REPLACE_FPRINTF.
45084         * lib/stdio_.h (fprintf): New declaration.
45085         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
45086         REPLACE_FPRINTF.
45087
45088 2007-03-08  Bruno Haible  <bruno@clisp.org>
45089
45090         * modules/vfprintf-posix-tests: New file.
45091         * tests/test-vfprintf-posix.sh: New file.
45092         * tests/test-vfprintf-posix.c: New file.
45093         * tests/test-fprintf-posix.h: New file.
45094         * tests/test-fprintf-posix.out: New file.
45095
45096         * modules/vfprintf-posix: New file.
45097         * lib/vfprintf.c: New file.
45098         * m4/vfprintf-posix.m4: New file.
45099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
45100         REPLACE_VFPRINTF.
45101         * lib/stdio_.h (vfprintf): New declaration.
45102         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
45103         REPLACE_VFPRINTF.
45104
45105 2007-03-08  Bruno Haible  <bruno@clisp.org>
45106
45107         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
45108
45109 2007-03-08  Bruno Haible  <bruno@clisp.org>
45110
45111         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
45112         instead of 'expr' invocations.
45113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45114         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45116         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45117         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45118         Suggested by Paul Eggert.
45119
45120 2007-03-08  Bruno Haible  <bruno@clisp.org>
45121
45122         * modules/fseterr-tests: New file.
45123         * tests/test-fseterr.c: New file.
45124
45125         * modules/fseterr: New file.
45126         * lib/fseterr.h: New file.
45127         * lib/fseterr.c: New file.
45128
45129 2007-03-08  Bruno Haible  <bruno@clisp.org>
45130
45131         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
45132         * lib/getopt_.h: Likewise.
45133         * lib/mbswidth.h: Likewise.
45134         * lib/setenv.h: Likewise.
45135         * lib/vasnprintf.h: Likewise.
45136         * lib/vasprintf.h: Likewise.
45137         * lib/verror.h: Likewise.
45138         * lib/xsetenv.h: Likewise.
45139         * lib/xvasprintf.h: Likewise.
45140
45141 2007-03-08  Jim Meyering  <jim@meyering.net>
45142
45143         * users.txt: Add parted.
45144
45145         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
45146
45147 2007-03-07  Bruno Haible  <bruno@clisp.org>
45148
45149         * m4/printf.m4: Make the shell script snippets copy&pastable.
45150
45151 2007-03-02  Bruno Haible  <bruno@clisp.org>
45152
45153         * lib/netinet_in_.h: New file.
45154         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
45155         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
45156         * modules/netinet_in (Files): Add lib/netinet_in_.h.
45157         (Depends-on): Add absolute-header.
45158         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
45159         into netinet/in.h.
45160
45161 2007-03-03  Bruno Haible  <bruno@clisp.org>
45162
45163         * lib/sys_select_.h: New file.
45164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
45165         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
45166         * modules/sys_select (Files): Add lib/sys_select_.h.
45167         (Depends-on): Add absolute-header.
45168         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
45169         into sys/select.h.
45170
45171 2007-03-02  Bruno Haible  <bruno@clisp.org>
45172
45173         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
45174         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
45175         values.
45176         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
45177         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
45178         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
45179         * modules/sys_socket (Depends-on): Add absolute-header.
45180         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
45181         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
45182         (Include): Remove requirement of inclusion of <sys/types.h>.
45183
45184 2007-03-02  Bruno Haible  <bruno@clisp.org>
45185
45186         * lib/byteswap_.h (bswap_32): Fix formula.
45187
45188 2007-03-06  Bruno Haible  <bruno@clisp.org>
45189
45190         * modules/sprintf-posix-tests: New file.
45191         * tests/test-sprintf-posix.c: New file.
45192
45193         * modules/sprintf-posix: New file.
45194         * lib/sprintf.c: New file.
45195         * m4/sprintf-posix.m4: New file.
45196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
45197         REPLACE_SPRINTF.
45198         * lib/stdio_.h (sprintf): New declaration.
45199         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
45200         REPLACE_SPRINTF.
45201
45202 2007-03-06  Bruno Haible  <bruno@clisp.org>
45203
45204         * modules/vsprintf-posix-tests: New file.
45205         * tests/test-vsprintf-posix.c: New file.
45206         * tests/test-sprintf-posix.h: New file.
45207
45208         * modules/vsprintf-posix: New file.
45209         * lib/vsprintf.c: New file.
45210         * m4/vsprintf-posix.m4: New file.
45211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
45212         REPLACE_VSPRINTF.
45213         * lib/stdio_.h (vsprintf): New declaration.
45214         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
45215         REPLACE_VSPRINTF.
45216
45217 2007-03-06  Bruno Haible  <bruno@clisp.org>
45218
45219         * modules/vsnprintf (Depend-on): Remove minmax.
45220
45221 2007-03-06  Bruno Haible  <bruno@clisp.org>
45222
45223         * modules/snprintf-posix-tests: New file.
45224         * tests/test-snprintf-posix.c: New file.
45225
45226         * modules/snprintf-posix: New file.
45227         * m4/snprintf-posix.m4: New file.
45228         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
45229         gl_FUNC_SNPRINTF.
45230         (gl_FUNC_SNPRINTF): Invoke it.
45231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
45232         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
45233         is set.
45234         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
45235
45236 2007-03-06  Bruno Haible  <bruno@clisp.org>
45237
45238         * modules/vsnprintf-posix-tests: New file.
45239         * tests/test-vsnprintf-posix.c: New file.
45240         * tests/test-snprintf-posix.h: New file.
45241
45242         * modules/vsnprintf-posix: New file.
45243         * m4/vsnprintf-posix.m4: New file.
45244         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
45245         gl_FUNC_VSNPRINTF.
45246         (gl_FUNC_VSNPRINTF): Invoke it.
45247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
45248         * lib/stdio_.h (vsnprintf): Define as a replacement if
45249         REPLACE_VSNPRINTF is set.
45250         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
45251
45252 2007-03-06  Bruno Haible  <bruno@clisp.org>
45253
45254         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
45255         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
45256
45257 2007-03-06  Bruno Haible  <bruno@clisp.org>
45258
45259         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
45260         (asinl): Declare also if HAVE_DECL_ASINL is set.
45261         (atanl): Declare also if HAVE_DECL_ATANL is set.
45262         (ceill): Declare also if HAVE_DECL_CEILL is set.
45263         (cosl): Declare also if HAVE_DECL_COSL is set.
45264         (expl): Declare also if HAVE_DECL_EXPL is set.
45265         (floorl): Declare also if HAVE_DECL_FLOORL is set.
45266         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
45267         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
45268         (logl): Declare also if HAVE_DECL_LOGL is set.
45269         (sinl): Declare also if HAVE_DECL_SINL is set.
45270         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
45271         (tanl): Declare also if HAVE_DECL_TANL is set.
45272         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
45273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
45274         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
45275         declaration of frexpl, ldexpl.
45276         * modules/printf-frexpl (Depends-on): Add math.
45277         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
45278
45279 2007-03-05  Bruno Haible  <bruno@clisp.org>
45280
45281         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
45282         frexpl and ldexpl are declared.
45283         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
45284
45285 2007-03-05  Bruno Haible  <bruno@clisp.org>
45286
45287         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
45288         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
45289
45290 2007-03-05  Bruno Haible  <bruno@clisp.org>
45291
45292         * lib/stdio_.h: Include <stddef.h>.
45293
45294 2007-03-05  Bruno Haible  <bruno@clisp.org>
45295
45296         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
45297
45298 2007-03-05  Bruno Haible  <bruno@clisp.org>
45299
45300         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
45301         NetBSD 4, from Ralf Wildenhues.
45302
45303 2007-03-04  Bruno Haible  <bruno@clisp.org>
45304
45305         * lib/vasprintf.h: Update #if logic for the case when the functions
45306         exist but are overridden.
45307
45308 2007-03-04  Bruno Haible  <bruno@clisp.org>
45309
45310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
45311         implementations: glibc-2.4 and MacOS X 10.3.
45312         * tests/test-vasnprintf-posix.c (test_function): Test also the case
45313         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
45314         * tests/test-vasprintf-posix.c (test_function): Likewise.
45315
45316 2007-03-04  Bruno Haible  <bruno@clisp.org>
45317
45318         * modules/vasprintf-posix-tests: New file.
45319         * tests/test-vasprintf-posix.c: New file.
45320
45321         * modules/vasprintf-posix: New file.
45322         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
45323         defined.
45324         * m4/vasprintf-posix.m4: New file.
45325         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
45326         gl_FUNC_VASPRINTF.
45327         (gl_FUNC_VASPRINTF): Invoke it.
45328         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
45329         here.
45330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
45331
45332 2007-03-04  Bruno Haible  <bruno@clisp.org>
45333
45334         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
45335         REPLACE_GETTIMEOFDAY.
45336         * modules/sys_time (Makefile.am): Likewise.
45337         * m4/sys_time_h.m4: Likewise.
45338         * m4/gettimeofday.m4: Likewise.
45339
45340 2007-03-04  Bruno Haible  <bruno@clisp.org>
45341
45342         * modules/vasnprintf-posix-tests: New file.
45343         * tests/test-vasnprintf-posix.c: New file.
45344
45345         * modules/vasnprintf-posix: New file.
45346         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
45347         printf-frexpl.h.
45348         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
45349         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
45350         REPLACE_VASNPRINTF is defined.
45351         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
45352         gl_FUNC_VASNPRINTF.
45353         (gl_FUNC_VASNPRINTF): Invoke it.
45354         * m4/vasnprintf-posix.m4: New file.
45355         * m4/printf.m4: New file.
45356
45357 2007-03-04  Bruno Haible  <bruno@clisp.org>
45358
45359         Compile progreloc.c only if --enable-relocatable is specified.
45360         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
45361         if --enable-relocatable was specified.
45362         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
45363         lib_SOURCES.
45364
45365 2007-03-04  Jim Meyering  <jim@meyering.net>
45366
45367         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45368         Use it consistently, rather than enumerating errno constants.
45369
45370 2007-03-04  Bruno Haible  <bruno@clisp.org>
45371
45372         * modules/xvasprintf-tests: New file.
45373         * tests/test-xvasprintf.c: New file.
45374
45375         * modules/vasprintf-tests: New file.
45376         * tests/test-vasprintf.c: New file.
45377
45378         * modules/vasnprintf-tests: New file.
45379         * tests/test-vasnprintf.c: New file.
45380
45381         * modules/vsnprintf-tests: New file.
45382         * tests/test-vsnprintf.c: New file.
45383
45384         * modules/snprintf-tests: New file.
45385         * tests/test-snprintf.c: New file.
45386
45387 2007-03-04  Bruno Haible  <bruno@clisp.org>
45388
45389         Compile relocatable.c only if --enable-relocatable is specified.
45390         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45391         gl_RELOCATABLE_LIBRARY.
45392         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45393         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45394         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45395         gl_RELOCATABLE_LIBRARY.
45396         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45397         (Makefile.am): Remove lib_SOURCES.
45398         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45399         gl_RELOCATABLE_LIBRARY.
45400         (Makefile.am): Remove lib_SOURCES.
45401         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45402         always.
45403         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45404         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45405
45406 2007-03-04  Bruno Haible  <bruno@clisp.org>
45407
45408         * modules/argmatch-tests: New file.
45409         * tests/test-argmatch.c: New file.
45410
45411         * tests/test-allocsa.c (main): Halve the number of loop runs.
45412
45413         * modules/alloca-opt-tests: New file.
45414         * tests/test-alloca-opt.c: New file.
45415
45416 2007-03-04  Jim Meyering  <jim@meyering.net>
45417
45418         Work around difference between Linux ACLs and Solaris 10 ZFS.
45419         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45420         for EINVAL.
45421
45422 2007-03-03  Bruno Haible  <bruno@clisp.org>
45423
45424         * modules/relocatable-prog (Depends-on): Add back progreloc's
45425         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45426
45427 2007-03-03  Bruno Haible  <bruno@clisp.org>
45428
45429         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45430         * modules/relocatable-lib: New file.
45431
45432 2007-03-03  Bruno Haible  <bruno@clisp.org>
45433
45434         * modules/relocatable-prog: Renamed from modules/relocatable.
45435         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45436
45437 2007-03-03  Bruno Haible  <bruno@clisp.org>
45438
45439         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45440         m4/relocatable-lib.m4.
45441         (Depends-on): Remove 'relocatable'.
45442         (configure.ac): Add gl_RELOCATABLE_NOP.
45443
45444 2007-03-03  Bruno Haible  <bruno@clisp.org>
45445
45446         * modules/relocatable-prog-wrapper: New file.
45447         * modules/relocatable (Depends-on): Add it. Remove all other
45448         dependencies except progname.
45449         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45450
45451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45452         (gl_FUNC_STRERROR): Nop.
45453         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45454
45455         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45456         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45457
45458         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45459         (gl_FUNC_READLINK): Update.
45460
45461         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45462
45463 2007-03-03  Bruno Haible  <bruno@clisp.org>
45464
45465         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45466         * modules/xreadlink (Depends-on): Add unistd.
45467         * modules/xreadlink-with-size (Depends-on): Likewise.
45468
45469 2007-03-03  Bruno Haible  <bruno@clisp.org>
45470
45471         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45472         extracted from gt_FUNC_SETENV.
45473         (gt_FUNC_SETENV): Remove macro.
45474         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45475         remove gt_FUNC_SETENV.
45476
45477 2007-03-03  Bruno Haible  <bruno@clisp.org>
45478
45479         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45480         ENABLE_RELOCATABLE here.
45481         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45482
45483 2007-03-03  Bruno Haible  <bruno@clisp.org>
45484
45485         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45486         * tests/test-rbtreehash_list.c: Include progname.h.
45487         (main): Call set_program_name.
45488
45489         * modules/rbtree-oset-tests (Depends-on): Add progname.
45490         * tests/test-rbtree_oset.c: Include progname.h.
45491         (main): Call set_program_name.
45492
45493         * modules/rbtree-list-tests (Depends-on): Add progname.
45494         * tests/test-rbtree_list.c: Include progname.h.
45495         (main): Call set_program_name.
45496
45497         * modules/linked-list-tests (Depends-on): Add progname.
45498         * tests/test-linked_list.c: Include progname.h.
45499         (main): Call set_program_name.
45500
45501 2007-03-03  Bruno Haible  <bruno@clisp.org>
45502
45503         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45504         All uses of __restrict changed to _Restrict_.
45505         * lib/glob_.h (__restrict): Remove macro.
45506
45507 2007-03-02  Bruno Haible  <bruno@clisp.org>
45508
45509         * modules/gettext (configure.ac): Require gettext infrastructure
45510         from version 0.16.1.
45511
45512 2007-03-02  Bruno Haible  <bruno@clisp.org>
45513
45514         * modules/linkedhash-list-tests (Depends-on): Add progname.
45515         * tests/test-linkedhash_list.c: Include progname.h.
45516         (main): Call set_program_name.
45517
45518         * modules/carray-list-tests (Depends-on): Add progname.
45519         * tests/test-carray_list.c: Include progname.h.
45520         (main): Call set_program_name.
45521
45522         * modules/avltreehash-list-tests (Depends-on): Add progname.
45523         * tests/test-avltreehash_list.c: Include progname.h.
45524         (main): Call set_program_name.
45525
45526         * modules/avltree-oset-tests (Depends-on): Add progname.
45527         * tests/test-avltree_oset.c: Include progname.h.
45528         (main): Call set_program_name.
45529
45530         * modules/avltree-list-tests (Depends-on): Add progname.
45531         * tests/test-avltree_list.c: Include progname.h.
45532         (main): Call set_program_name.
45533
45534         * modules/array-oset-tests (Depends-on): Add progname.
45535         * tests/test-array_oset.c: Include progname.h.
45536         (main): Call set_program_name.
45537
45538         * modules/array-list-tests (Depends-on): Add progname.
45539         * tests/test-array_list.c: Include progname.h.
45540         (main): Call set_program_name.
45541
45542         * modules/argp-tests (Depends-on): Add progname.
45543         * tests/test-argp.c: Include argp.h first. Include progname.h.
45544         (main): Call set_program_name.
45545
45546 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45547
45548         * doc/gnulib-tool.texi (Initial import): Reword description of
45549         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45550         limited effect even if defined after the first system include.
45551
45552 2007-03-01  Bruno Haible  <bruno@clisp.org>
45553
45554         * build-aux/config.libpath: Update to libtool-1.5.22.
45555         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45556
45557 2007-03-01  Bruno Haible  <bruno@clisp.org>
45558
45559         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45560         foo_CFLAGS.
45561         Reported by Ralf Wildenhues.
45562
45563 2007-03-01  Bruno Haible  <bruno@clisp.org>
45564
45565         * build-aux/install-reloc: Remove object files left over by some
45566         compilers.
45567         Reported by Ralf Wildenhues.
45568
45569 2007-03-01  Bruno Haible  <bruno@clisp.org>
45570
45571         * build-aux/install-reloc: Break long lines.
45572
45573 2007-03-01  Bruno Haible  <bruno@clisp.org>
45574
45575         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45576         Reported by Ralf Wildenhues.
45577
45578 2007-03-01  Bruno Haible  <bruno@clisp.org>
45579
45580         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45581         include ordering constraints.
45582
45583 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45584
45585         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45587         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45588         as another example.
45589         * lib/time_.h: Fix misspelling.
45590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45591         Require gl_HEADER_TIME_H_DEFAULTS.
45592         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45593         * m4/time_r.m4 (gl_TIME_R): Likewise.
45594         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45595
45596 2007-03-01  Bruno Haible  <bruno@clisp.org>
45597
45598         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45599         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45600
45601 2007-03-01  Jim Meyering  <jim@meyering.net>
45602
45603         * modules/xreadlink (Maintainer): Add my name.
45604         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45605
45606 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45607             Bruno Haible  <bruno@clisp.org>
45608
45609         * build-aux/install-reloc: Compile also c-ctype.c.
45610         * build-aux/relocatable.sh.in: New file.
45611         * doc/relocatable.texi: New file.
45612         * doc/relocatable-maint.texi: New file.
45613         * doc/gnulib.texi: Include relocatable-maint.texi.
45614         * lib/progreloc.c: Include unistd.h unconditionally.
45615         * lib/relocwrapper.c: Include unistd.h unconditionally.
45616         Include c-ctype.h.
45617         (add_dotbin): Use c_tolower.
45618         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45619         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45620         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45621         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45622         to m4/relocatable-lib.m4.
45623         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45624         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45625         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45626         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45627         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45628         * modules/relocatable: New file.
45629         * modules/relocatable-lib: New file.
45630         * modules/relocatable-script: New file.
45631
45632 2007-02-28  Bruno Haible  <bruno@clisp.org>
45633
45634         Import --enable-relocatable infrastructure.
45635         * build-aux/config.libpath: New file, from GNU gettext.
45636         * build-aux/install-reloc: New file, from GNU gettext.
45637         * build-aux/reloc-ldflags: New file, from GNU gettext.
45638         * lib/relocatable.h: New file, from GNU gettext.
45639         * lib/relocatable.c: New file, from GNU gettext.
45640         * lib/relocwrapper.c: New file, from GNU gettext.
45641         * m4/relocatable.m4: New file, from GNU gettext.
45642
45643 2007-02-28  Bruno Haible  <bruno@clisp.org>
45644
45645         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45646
45647         * modules/xreadlink: New file, from GNU gettext with modifications.
45648         * lib/xreadlink.c: New file, from GNU gettext.
45649         * lib/xreadlink.h: Add comments.
45650         (xreadlink): New declaration.
45651
45652         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
45653         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
45654         lib/xreadlink-with-size.c.
45655         (configure.ac): Remove gl_XREADLINK invocation.
45656         (Makefile.am): Augment lib_SOURCES.
45657         * m4/xreadlink.m4: Remove file.
45658         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
45659         (xreadlink_with_size): Renamed from xreadink.
45660         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
45661         * modules/canonicalize (Depends-on): Replace xreadlink with
45662         xreadlink-with-size.
45663         * lib/canonicalize.c (canonicalize_filename_mode): Update.
45664
45665 2007-02-25  Jim Meyering  <jim@meyering.net>
45666
45667         * build-aux/announce-gen: When complaining about excess arguments,
45668         list them.
45669
45670 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45671
45672         * README: Document signed integer overflow situation more
45673         accurately.
45674
45675 2007-02-25  Bruno Haible  <bruno@clisp.org>
45676
45677         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
45678         'a' or 'A' conversion.
45679
45680 2007-02-25  Bruno Haible  <bruno@clisp.org>
45681
45682         * modules/filename: Renamed from modules/pathname.
45683         (Files): Replace lib/pathname.h with lib/filename.h. Replace
45684         lib/concatpath.c with lib/concat-filename.c.
45685         (Makefile.am): Update.
45686         (Include): Replace pathname.h with filename.h.
45687         * lib/filename.h: Renamed from lib/pathname.h.
45688         (concatenated_filename): Renamed from concatenated_pathname.
45689         * lib/concat-filename.c: Renamed from lib/concatpath.c.
45690         (concatenated_filename): Renamed from concatenated_pathname.
45691         * lib/findprog.c: Include filename.h instead of pathname.h.
45692         (find_in_path): Update.
45693         * lib/javacomp.c: Include filename.h instead of pathname.h.
45694         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45695         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45696         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45697         is_oldgcj_14_13_usable, is_javac_usable): Update.
45698         * lib/javaexec.c: Include filename.h instead of pathname.h.
45699         (execute_java_class): Update.
45700         * modules/findprog: Update.
45701         * modules/javacomp: Update.
45702         * modules/javaexec: Update.
45703         * MODULES.html.sh (File system functions): Add 'filename', remove
45704         'pathname'.
45705
45706 2007-02-25  Bruno Haible  <bruno@clisp.org>
45707
45708         * modules/printf-frexpl-tests: New file.
45709         * tests/test-printf-frexpl.c: New file.
45710
45711         * modules/printf-frexpl: New file.
45712         * lib/printf-frexpl.h: New file.
45713         * lib/printf-frexpl.c: New file.
45714         * m4/printf-frexpl.m4: New file.
45715
45716 2007-02-25  Bruno Haible  <bruno@clisp.org>
45717
45718         * modules/printf-frexp-tests: New file.
45719         * tests/test-printf-frexp.c: New file.
45720
45721         * modules/printf-frexp: New file.
45722         * lib/printf-frexp.h: New file.
45723         * lib/printf-frexp.c: New file.
45724         * m4/printf-frexp.m4: New file.
45725
45726 2007-02-25  Bruno Haible  <bruno@clisp.org>
45727
45728         Assume automake >= 1.10 for the tests.
45729         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
45730         * modules/arctwo-tests: Likewise.
45731         * modules/argp-tests: Likewise.
45732         * modules/avltree-list-tests: Likewise.
45733         * modules/avltree-oset-tests: Likewise.
45734         * modules/avltreehash-list-tests: Likewise.
45735         * modules/carray-list-tests: Likewise.
45736         * modules/crc-tests: Likewise.
45737         * modules/des-tests: Likewise.
45738         * modules/gc-arcfour-tests: Likewise.
45739         * modules/gc-arctwo-tests: Likewise.
45740         * modules/gc-des-tests: Likewise.
45741         * modules/gc-hmac-md5-tests: Likewise.
45742         * modules/gc-hmac-sha1-tests: Likewise.
45743         * modules/gc-md2-tests: Likewise.
45744         * modules/gc-md4-tests: Likewise.
45745         * modules/gc-md5-tests: Likewise.
45746         * modules/gc-pbkdf2-sha1-tests: Likewise.
45747         * modules/gc-rijndael-tests: Likewise.
45748         * modules/gc-sha1-tests: Likewise.
45749         * modules/gc-tests: Likewise.
45750         * modules/getaddrinfo-tests: Likewise.
45751         * modules/hmac-md5-tests: Likewise.
45752         * modules/hmac-sha1-tests: Likewise.
45753         * modules/linked-list-tests: Likewise.
45754         * modules/linkedhash-list-tests: Likewise.
45755         * modules/lock-tests: Likewise.
45756         * modules/md2-tests: Likewise.
45757         * modules/md4-tests: Likewise.
45758         * modules/md5-tests: Likewise.
45759         * modules/rbtree-list-tests: Likewise.
45760         * modules/rbtree-oset-tests: Likewise.
45761         * modules/rbtreehash-list-tests: Likewise.
45762         * modules/read-file-tests: Likewise.
45763         * modules/rijndael-tests: Likewise.
45764         * modules/stdint-tests: Likewise.
45765         * modules/tls-tests: Likewise.
45766
45767 2007-02-24  Bruno Haible  <bruno@clisp.org>
45768
45769         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
45770         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
45771         function; instead check whether isnan with a double argument links.
45772         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
45773         function; instead check whether isnan with a 'long double' argument
45774         links.
45775         Reported by Eric Blake <ebb9@byu.net>.
45776
45777 2007-02-24  Bruno Haible  <bruno@clisp.org>
45778
45779         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
45780         defined.
45781         * lib/isnanl.c: Remove all code. Just include isnan.c.
45782         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
45783
45784 2007-02-25  Jim Meyering  <jim@meyering.net>
45785
45786         Avoid conflicting types for 'unsetenv' on FreeBSD.
45787         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
45788         conflicting with FreeBSD's (5.0 and 6.1) function declaration
45789         in stdlib.h.
45790
45791 2007-02-24  Bruno Haible  <bruno@clisp.org>
45792
45793         * modules/isnanl-nolibm-tests: New file.
45794         * tests/test-isnanl.c: New file.
45795
45796         * modules/isnanl-nolibm: New file.
45797         * lib/isnanl.h: New file.
45798         * lib/isnanl.c: New file.
45799         * m4/isnanl.m4: New file.
45800
45801 2007-02-24  Bruno Haible  <bruno@clisp.org>
45802
45803         * modules/isnan-nolibm-tests: New file.
45804         * tests/test-isnan.c: New file.
45805
45806         * modules/isnan-nolibm: New file.
45807         * lib/isnan.h: New file.
45808         * lib/isnan.c: New file.
45809         * m4/isnan.m4: New file.
45810
45811 2007-02-24  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45814         assume that an exponent fits in 20 bits.
45815
45816 2007-02-24  Jim Meyering  <jim@meyering.net>
45817
45818         * m4/regex.m4: Update the description of the configure-time option,
45819         --without-included-regex, to state accurately what the defaults are,
45820         and perhaps to give people an idea why using this option is risky.
45821
45822 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45823
45824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45825         loops on small arguments.  This attempts to avoid the problem
45826         Bruno Haible reported for AIX 4.3.2 in
45827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45828
45829 2007-02-23  Bruno Haible  <bruno@clisp.org>
45830
45831         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45832         Needed for help2man.
45833
45834 2007-02-23  Karl Berry  <karl@gnu.org>
45835
45836         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45837         exists, foo.h should be cvs-ignored, not committed.
45838
45839 2007-02-23  Eric Blake  <ebb9@byu.net>
45840
45841         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45842         * lib/stat-time.h (includes): Likewise.
45843         * lib/utimecmp.c (includes): Likewise.
45844         * lib/utimens.h (includes): Likewise.
45845         * lib/getdate.y (includes): Also include "timespec.h" for use
45846         internal to the module.
45847         * modules/utimens (Depends-on): Revert yesterday's patch.
45848         * modules/nanosleep (Depends-on): Add missing dependency.
45849
45850 2007-02-22  Bruno Haible  <bruno@clisp.org>
45851
45852         * lib/glob.c: Don't include getlogin_r.h.
45853
45854 2007-02-22  Jim Meyering  <jim@meyering.net>
45855
45856         * modules/utimens (Depends-on): Add timespec, required for
45857         utimens.h's inclusion of timespec.h.
45858
45859 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45860
45861         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45862         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45863         Schwab in
45864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45865         I'll try to think of a better way to fix the Solaris problem.
45866
45867         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45868         like glibc; on Solaris 10, it fails with errno == EINVAL.
45869         POSIX says the behavior is unspecified if the first argument is NULL,
45870         so play it safe and never pass NULL to the system getcwd.
45871
45872 2007-02-21  Jim Meyering  <jim@meyering.net>
45873
45874         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45875         of gettimeofday.  It would conflict with the one now always
45876         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45877         an IRIX 6.5 build failure.
45878
45879 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45880
45881         Minor fixups to port to Solaris 10 with Sun C 5.8.
45882         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45883         * modules/getcwd (Depends-on): Add dirfd.
45884         * lib/putenv.c (putenv): #undef it.
45885         (rpl_putenv): New decl.
45886         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45887
45888 2007-02-20  Bruno Haible  <bruno@clisp.org>
45889
45890         * modules/stdio-tests: New file.
45891         * tests/test-stdio.c: New file.
45892
45893         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45894         (Depends-on): Add stdio.
45895         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45896         (Include): Use <stdio.h> instead of vsnprintf.h.
45897         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45898         HAVE_DECL_VSNPRINTF.
45899         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45900
45901         * modules/snprintf (Files): Remove lib/snprintf.h.
45902         (Depends-on): Add stdio.
45903         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45904         (Include): Use <stdio.h> instead of snprintf.h.
45905         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45906         HAVE_DECL_SNPRINTF.
45907         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45908         * lib/getaddrinfo.c: Likewise.
45909
45910         * modules/stdio: New file.
45911         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45912         * lib/snprintf.h: Remove file.
45913         * lib/vsnprintf.h: Remove file.
45914         * lib/.cppi-disable: Remove snprintf.h.
45915         * m4/stdio_h.m4: New file.
45916         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45917
45918 2007-02-20  Jim Meyering  <jim@meyering.net>
45919
45920         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45921         used by e.g., mingw.  From Bruno Haible.
45922
45923 2007-02-19  Bruno Haible  <bruno@clisp.org>
45924
45925         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45926         warnings.
45927         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45928
45929 2007-02-19  Bruno Haible  <bruno@clisp.org>
45930
45931         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45932         from mingw users.
45933
45934 2007-02-19  Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45937         warnings.
45938         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45939
45940 2007-02-19  Jim Meyering  <jim@meyering.net>
45941
45942         Don't use FD after a successful "fdopendir (fd)".
45943         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45944         Reset it by calling dirfd on the just-obtained DIR*.
45945
45946         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45947         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45948
45949 2007-02-18  Bruno Haible  <bruno@clisp.org>
45950
45951         * lib/readlink.c: Include <unistd.h>.
45952         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45953         HAVE_READLINK.
45954         * modules/readlink (Depends-on): Add unistd.
45955         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45956         (Include): Add <unistd.h>.
45957
45958         * lib/getlogin_r.h: Remove file.
45959         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45960         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45961         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45962         HAVE_DECL_GETLOGIN_R.
45963         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45965         (Include): Use <unistd.h> instead of getlogin_r.h.
45966
45967         * lib/getcwd.h: Remove file.
45968         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45969         * lib/xgetcwd.c: Likewise.
45970         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45971         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45972         * modules/getcwd (Files): Remove lib/getcwd.h.
45973         (Depends-on): Add unistd.
45974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45975         (Include): Use <unistd.h> instad of getcwd.h.
45976
45977         * lib/ftruncate.c: Include <unistd.h> first.
45978         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45979         Set HAVE_FTRUNCATE.
45980         * modules/ftruncate (Depends-on): Add unistd.
45981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45982
45983         * lib/fchdir.c: Include <unistd.h> first.
45984         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45986         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45987         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45988         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45989
45990         * lib/dup2.c: Include <unistd.h> first.
45991         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45992         HAVE_DUP2.
45993         * modules/dup2 (Depends-on): Add unistd.
45994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45995
45996         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45997         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45998         REPLACE_CHOWN. Don't define chown as a macro here.
45999         * modules/chown (Depends-on): Add unistd.
46000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46001
46002         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
46003         Add definition for GL_LINK_WARNING.
46004         (chown, dup2): New declarations.
46005         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
46006         link warning.
46007         (ftruncate): New declaration.
46008         (getcwd): New declaration, taken from old getcwd.h.
46009         (getlogin_r): New declaration, taken from old getlogin_r.h.
46010         (readlink): New declaration.
46011         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
46012         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
46013         (gl_PREREQ_UNISTD): Remove macro.
46014         (gl_UNISTD_MODULE_INDICATOR): New macro.
46015         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
46016         many new variables. Don't set UNISTD_H.
46017         * modules/unistd (Description): Change.
46018         (Depends-on): Add link-warning.
46019         (configure.ac): Update.
46020         (Makefile.am): Create unistd.h always. Substitute many new variables
46021         into it.
46022
46023 2007-02-18  Bruno Haible  <bruno@clisp.org>
46024
46025         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
46026         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
46027         HAVE_GETSUBOPT.
46028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
46029         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
46030         * lib/getsubopt.h: Remove file.
46031         * modules/getsubopt (Files): Remove lib/getsubopt.h.
46032         (Depends-on): Add stdlib.
46033         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46034         (Includes): Use <stdlib.h> instead of getsubopt.h.
46035         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
46036         Set HAVE_GETSUBOPT.
46037         * lib/getsubopt.c: Don't include getsubopt.h.
46038
46039 2007-02-18  Bruno Haible  <bruno@clisp.org>
46040
46041         * modules/fchdir (Depends-on): Add dup2.
46042
46043 2007-02-18  Bruno Haible  <bruno@clisp.org>
46044
46045         * lib/stdlib_.h: Handle glibc's special invocation convention
46046         specially.
46047
46048 2007-02-18  Bruno Haible  <bruno@clisp.org>
46049
46050         * modules/stdlib-tests: New file.
46051         * tests/test-stdlib.c: New file.
46052
46053         * modules/mkstemp (Files): Remove lib/mkstemp.h.
46054         (Depends-on): Add stdlib.
46055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46056         (Includes): Use <stdlib.h> instead of mkstemp.h.
46057         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46058         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
46059         * lib/mkstemp.c: Don't include mkstemp.h.
46060         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
46061         * lib/stdlib--.h: Don't include mkstemp.h.
46062
46063         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
46064         (Depends-on): Add stdlib.
46065         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46066         (Includes): Use <stdlib.h> instead of mkdtemp.h.
46067         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46068         HAVE_MKDTEMP.
46069         * lib/mkdtemp.c: Don't include mkdtemp.h.
46070         * lib/clean-temp.c: Don't include mkdtemp.h.
46071
46072         * modules/exit (Files): Remove lib/exit.h.
46073         (Depends-on): Add stdlib.
46074         (Makefile.am): Remove lib_SOURCES.
46075         (Include): Use <stdlib.h> instead of exit.h.
46076         * lib/argmatch.c: Don't include exit.h.
46077         * lib/execute.c: Likewise.
46078         * lib/pagealign_alloc.c: Likewise.
46079         * lib/pipe.c: Likewise.
46080         * lib/wait-process.c: Likewise.
46081         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
46082         * lib/exitfail.c: Likewise.
46083         * lib/savewd.c: Likewise.
46084         * lib/xsetenv.c: Likewise.
46085
46086         * modules/stdlib: New file.
46087         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
46088         and extra comments about mkstemp().
46089         * lib/exit.h: Remove file.
46090         * lib/mkdtemp.h: Remove file.
46091         * lib/mkstemp.h: Remove file.
46092         * m4/stdlib_h.m4: New file.
46093         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
46094
46095 2007-02-18  Bruno Haible  <bruno@clisp.org>
46096
46097         * modules/math-tests: New file.
46098         * tests/test-math.c: New file.
46099
46100         * modules/math: New file.
46101         * modules/mathl (Files): Remove lib/mathl.h.
46102         (Depends-on): Add math.
46103         (Makefile.am): Don't mention mathl.h.
46104         (Include): Use <math.h> instead of mathl.h.
46105         * lib/math_.h: New file.
46106         * lib/mathl.h: Remove file.
46107         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
46108         mathl.h.
46109         * lib/asinl.c: Likewise.
46110         * lib/atanl.c: Likewise.
46111         * lib/ceill.c: Likewise.
46112         * lib/cosl.c: Likewise.
46113         * lib/expl.c: Likewise.
46114         * lib/floorl.c: Likewise.
46115         * lib/frexpl.c: Likewise.
46116         * lib/ldexpl.c: Likewise.
46117         * lib/logl.c: Likewise.
46118         * lib/sincosl.c: Likewise.
46119         * lib/sinl.c: Likewise.
46120         * lib/sqrtl.c: Likewise.
46121         * lib/tanl.c: Likewise.
46122         * lib/trigl.c: Likewise.
46123         * m4/math_h.m4: New file.
46124         * MODULES.html.sh (Mathematics): Add math.
46125
46126 2007-02-17  Bruno Haible  <bruno@clisp.org>
46127
46128         * modules/wctype-tests: New file.
46129         * tests/test-wctype.c: New file.
46130
46131         * modules/wchar-tests: New file.
46132         * tests/test-wchar.c: New file.
46133
46134         * modules/unistd-tests: New file.
46135         * tests/test-unistd.c: New file.
46136
46137         * modules/time-tests: New file.
46138         * tests/test-time.c: New file.
46139
46140         * modules/sysexits-tests: New file.
46141         * tests/test-sysexits.c: New file.
46142
46143         * modules/sys_time-tests: New file.
46144         * tests/test-sys_time.c: New file.
46145
46146         * modules/sys_stat-tests: New file.
46147         * tests/test-sys_stat.c: New file.
46148
46149         * modules/sys_socket-tests: New file.
46150         * tests/test-sys_socket.c: New file.
46151
46152         * modules/sys_select-tests: New file.
46153         * tests/test-sys_select.c: New file.
46154
46155         * modules/string-tests: New file.
46156         * tests/test-string.c: New file.
46157
46158         * modules/stdbool-tests: New file.
46159         * tests/test-stdbool.c: New file.
46160
46161         * modules/netinet_in-tests: New file.
46162         * tests/test-netinet_in.c: New file.
46163
46164         * modules/inttypes-tests: New file.
46165         * tests/test-inttypes.c: New file.
46166
46167         * modules/fcntl-tests: New file.
46168         * tests/test-fcntl.c: New file.
46169
46170         * modules/byteswap-tests: New file.
46171         * tests/test-byteswap.c: New file.
46172
46173         * modules/arpa_inet-tests: New file.
46174         * tests/test-arpa_inet.c: New file.
46175
46176 2007-02-17  Bruno Haible  <bruno@clisp.org>
46177
46178         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
46179         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
46180         if the corresponding module is not enabled. Emit link warnings if
46181         the function is used nevertheless.
46182         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
46183         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
46184         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
46185         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
46186         * modules/inttypes (Depends-on): Add link-warning.
46187         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46188         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
46189         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
46190         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
46191         * modules/imaxdiv (configure.ac): Likewise.
46192         * modules/strtoimax (configure.ac): Likewise.
46193         * modules/strtoumax (configure.ac): Likewise.
46194
46195 2007-02-17  Bruno Haible  <bruno@clisp.org>
46196
46197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
46198         gl_STRING_MODULE_INDICATOR_DEFAULTS.
46199         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
46200         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
46201
46202 2007-02-17  Bruno Haible  <bruno@clisp.org>
46203
46204         * modules/link-warning: New file.
46205         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
46206         * lib/string_.h (GL_LINK_WARNING): Remove definition.
46207         * modules/string (Depends-on): Add link-warning.
46208         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46209         string.h.
46210         * MODULES.html.sh (Support for building libraries and executables): Add
46211         link-warning.
46212
46213 2007-02-17  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
46216         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
46217         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
46218         long lines.
46219
46220 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
46221             Bruno Haible  <bruno@clisp.org>
46222
46223         * modules/tmpfile: New file.
46224         * lib/tmpfile.c: New file.
46225         * m4/tmpfile.m4: New file.
46226         * MODULES.html.sh (func_all_modules): New section "Input/output".
46227
46228 2007-02-15  Bruno Haible  <bruno@clisp.org>
46229
46230         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
46231         (supports_delete_on_close): New function.
46232         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
46233
46234 2007-02-14  Bruno Haible  <bruno@clisp.org>
46235
46236         * modules/mbspcasecmp-tests: New file.
46237         * tests/test-mbspcasecmp.sh: New file.
46238         * tests/test-mbspcasecmp.c: New file.
46239
46240         New module mbspcasecmp.
46241         * modules/mbspcasecmp: New file.
46242         * lib/mbspcasecmp.c: New file.
46243         * lib/string_.h (strncasecmp): Change warning message.
46244         (mbspcasecmp): New declaration.
46245         * m4/mbspcasecmp.m4: New file.
46246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46247         GNULIB_MBSPCASECMP.
46248         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
46249         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
46250
46251 2007-02-14  Bruno Haible  <bruno@clisp.org>
46252
46253         * modules/mbsncasecmp-tests: New file.
46254         * tests/test-mbsncasecmp.sh: New file.
46255         * tests/test-mbsncasecmp.c: New file.
46256
46257         New module mbsncasecmp.
46258         * modules/mbsncasecmp: New file.
46259         * lib/mbsncasecmp.c: New file.
46260         * lib/string_.h (mbsncasecmp): New declaration.
46261         * m4/mbsncasecmp.m4: New file.
46262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46263         GNULIB_MBSNCASECMP.
46264         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
46265         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
46266
46267 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46268
46269         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
46270         Verify that it doesn't overlap with our flags.
46271         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
46272         do not have the desired effect in multibyte locales; instead, use
46273         mbscasecmp.
46274         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
46275         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
46276         we don't require GNU fnmatch ourselves (if our users require it, they
46277         should do so explicitly).
46278
46279         Fix regex code so it doesn't rely on strcasecmp.
46280         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
46281         Otherwise, include gnulib's langinfo.h.
46282         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
46283         undesirable behavior in non-C locales.  Instead, rely on localecharset.
46284         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
46285         * modules/regex (FILES): Remove m4/codeset.m4.
46286         (Depends-on): Add localcharset.  Remove strcase.
46287
46288 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46289
46290         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
46291         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46292
46293 2007-02-13  Bruno Haible  <bruno@clisp.org>
46294
46295         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
46296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46297
46298 2007-02-12  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46301         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
46302         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
46303         time warning rather than a link error.
46304
46305 2007-02-12  Bruno Haible  <bruno@clisp.org>
46306
46307         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
46308         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46309         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46310
46311 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46312
46313         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
46314         args, not 2.
46315
46316 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46317
46318         New module 'time', so that apps can include <time.h> as per
46319         POSIX and GNU instead of separate include files like time_r.h
46320         and timegm.h.  This implementation tries out a simpler approach
46321         for replacing decls in standard include files (as compared to
46322         the string module), somewhat as an experiment.
46323
46324         * config/srclist.txt: Comment out mktime.c for now.
46325         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
46326         since it doesn't apply any more.  Use generic wording instead.
46327         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
46328         'time'.
46329         * lib/time_.h, m4/time_h.m4, modules/time: New files.
46330         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
46331         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
46332         Don't include <sys/types.h>; no longer needed since we assume C89.
46333         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
46334         * lib/strftime.c: Likewise.
46335         * lib/time_r.c: Likewise.
46336         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
46337         * lib/nanosleep.c: Include <time.h> first, to check interface.
46338         * lib/strptime.c: Likewise.
46339         * lib/time_r.c: Likewise.
46340         * lib/timegm.c: Likewise.
46341         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
46342         needed.
46343         * lib/timegm.c: Don't include timegm.h; no longer needed.
46344         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
46345         time.h now handles any problems in that area.
46346         (struct timespec, nanosleep): Remove; time.h now arranges for these.
46347         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
46348         that time.h defines struct timespec.
46349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
46350         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
46351         handles that.
46352         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
46353         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
46354         needed.  Set REPLACE_LOCALTIME.
46355         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
46356         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
46357         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
46358         nanosleep; time_h.m4 now does that.  Don't require
46359         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
46360         module handles this now.
46361         * modules/getdate (Depends-on): Remove timespec.  Add time.
46362         * modules/nanosleep (Depends-on): Likewise.
46363         * modules/stat-time (Depends-on): Likewise.
46364         * modules/nanosleep (Include): Include time.h, not timespec.h.
46365         * modules/strptime (Files): Remove lib/strptime.h.
46366         (Depends-on): Add extensions, time.
46367         (Include): Include time.h, not strptime.h.
46368         * modules/time_r (Files): Remove lib/time_r.h.
46369         (Depends-on): Add time.
46370         (Include): Include time.h, not time_r.h.
46371         * modules/timegm: Likewise.
46372         * modules/timespec (Description): Now does timespec-related decls
46373         of our own, instead of struct timespec itself.
46374         (Depends-on): Add time; remove extensions.
46375         (Maintainer): Add self.
46376         * modules/utimecmp (Depends-on): Add time; remove timespec.
46377         * modules/utimens (Depends-on): Likewise.
46378         * modules/xnanosleep (Depends-on): Likewise.
46379
46380 2007-02-11  Bruno Haible  <bruno@clisp.org>
46381
46382         * lib/c-strstr.c: Include allocsa.h.
46383         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46384         * lib/c-strcasestr.c: Include allocsa.h.
46385         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46386         * lib/strcasestr.c: Include allocsa.h.
46387         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46388         * lib/mbsstr.c: Include allocsa.h.
46389         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46390         allocsa/freesa instead of malloc/free.
46391         * lib/mbscasestr.c: Include allocsa.h.
46392         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46393         allocsa/freesa instead of malloc/free.
46394         * modules/c-strstr (Depends-on): Add allocsa.
46395         * modules/c-strcasestr (Depends-on): Likewise.
46396         * modules/strcasestr (Depends-on): Likewise.
46397         * modules/mbsstr (Depends-on): Likewise.
46398         * modules/mbscasestr (Depends-on): Likewise.
46399
46400 2007-02-11  Bruno Haible  <bruno@clisp.org>
46401
46402         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46403
46404         * modules/mbsspn-tests: New file.
46405         * tests/test-mbsspn.sh: New file.
46406         * tests/test-mbsspn.c: New file.
46407
46408 2007-02-11  Bruno Haible  <bruno@clisp.org>
46409
46410         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46411
46412         * modules/mbspbrk-tests: New file.
46413         * tests/test-mbspbrk.sh: New file.
46414         * tests/test-mbspbrk.c: New file.
46415
46416 2007-02-11  Bruno Haible  <bruno@clisp.org>
46417
46418         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46419         unneeded cast.
46420
46421         * modules/mbscspn-tests: New file.
46422         * tests/test-mbscspn.sh: New file.
46423         * tests/test-mbscspn.c: New file.
46424
46425 2007-02-11  Bruno Haible  <bruno@clisp.org>
46426
46427         * modules/mbscasecmp-tests: New file.
46428         * tests/test-mbscasecmp.sh: New file.
46429         * tests/test-mbscasecmp.c: New file.
46430
46431 2007-02-11  Bruno Haible  <bruno@clisp.org>
46432
46433         Ensure O(n) worst-case complexity of mbscasestr.
46434         * lib/mbscasestr.c: Include stdbool.h.
46435         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46436         functions.
46437         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46438         the bookkeeping indicates that it's worth it.
46439         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46440
46441         * modules/mbscasestr-tests: New file.
46442         * tests/test-mbscasestr1.c: New file.
46443         * tests/test-mbscasestr2.sh: New file.
46444         * tests/test-mbscasestr2.c: New file.
46445         * tests/test-mbscasestr3.sh: New file.
46446         * tests/test-mbscasestr3.c: New file.
46447         * tests/test-mbscasestr4.sh: New file.
46448         * tests/test-mbscasestr4.c: New file.
46449         * m4/locale-tr.m4: New file.
46450
46451 2007-02-11  Bruno Haible  <bruno@clisp.org>
46452
46453         Ensure O(n) worst-case complexity of mbsstr.
46454         * lib/mbsstr.c: Include stdbool.h.
46455         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46456         functions.
46457         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46458         bookkeeping indicates that it's worth it.
46459         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46460
46461         * modules/mbsstr-tests: New file.
46462         * tests/test-mbsstr1.c: New file.
46463         * tests/test-mbsstr2.sh: New file.
46464         * tests/test-mbsstr2.c: New file.
46465         * tests/test-mbsstr3.sh: New file.
46466         * tests/test-mbsstr3.c: New file.
46467         * m4/locale-fr.m4: New file.
46468
46469 2007-02-11  Bruno Haible  <bruno@clisp.org>
46470
46471         * lib/mbsrchr.c (mbsrchr): Fix bug.
46472
46473         * modules/mbsrchr-tests: New file.
46474         * tests/test-mbsrchr.sh: New file.
46475         * tests/test-mbsrchr.c: New file.
46476
46477 2007-02-11  Bruno Haible  <bruno@clisp.org>
46478
46479         * lib/mbschr.c (mbschr): Fix bug.
46480
46481         * modules/mbschr-tests: New file.
46482         * tests/test-mbschr.sh: New file.
46483         * tests/test-mbschr.c: New file.
46484         * m4/locale-zh.m4: New file.
46485
46486 2007-02-11  Bruno Haible  <bruno@clisp.org>
46487
46488         Support for copying multibyte string iterators.
46489         * lib/mbiter.h: Include <string.h>.
46490         (mbiter_multi_copy): New function.
46491         (mbi_copy): New macro.
46492         * lib/mbuiter.h: Include <string.h>.
46493         (mbuiter_multi_copy): New function.
46494         (mbui_copy): New macro.
46495
46496 2007-02-11  Bruno Haible  <bruno@clisp.org>
46497
46498         New module mbslen.
46499         * modules/mbslen: New file.
46500         * lib/mbslen.c: New file.
46501         * lib/string_.h (mbslen): New declaration.
46502         * m4/mbslen.m4: New file.
46503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46504         GNULIB_MBSLEN.
46505         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46506         * MODULES.html.sh (Internationalization functions): Add mbslen.
46507
46508 2007-02-11  Bruno Haible  <bruno@clisp.org>
46509
46510         Ensure O(n) worst-case complexity of strcasestr substitute.
46511         * lib/strcasestr.c: Include stdbool.h.
46512         (knuth_morris_pratt): New function.
46513         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46514         bookkeeping indicates that it's worth it.
46515         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46516
46517         * modules/strcasestr-tests: New file.
46518         * tests/test-strcasestr.c: New file.
46519
46520 2007-02-11  Bruno Haible  <bruno@clisp.org>
46521
46522         Ensure O(n) worst-case complexity of c_strcasestr.
46523         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46524         (knuth_morris_pratt): New function.
46525         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46526         the bookkeeping indicates that it's worth it.
46527         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46528
46529         * modules/c-strcasestr-tests: New file.
46530         * tests/test-c-strcasestr.c: New file.
46531
46532 2007-02-11  Bruno Haible  <bruno@clisp.org>
46533
46534         Ensure O(n) worst-case complexity of c_strstr.
46535         * lib/c-strstr.c: Include stdbool.h, string.h.
46536         (knuth_morris_pratt): New function.
46537         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46538         bookkeeping indicates that it's worth it.
46539         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46540
46541         * lib/c-strstr.c: Complete rewrite for maintainability.
46542
46543         * modules/c-strstr-tests: New file.
46544         * tests/test-c-strstr.c: New file.
46545
46546 2007-02-11  Bruno Haible  <bruno@clisp.org>
46547
46548         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46549         5.2.1 and earlier, whereby \055 was treated just like the range
46550         delimiter '-'.
46551         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46552
46553 2007-02-08  Bruno Haible  <bruno@clisp.org>
46554
46555         * modules/regex (Depends-on): Add stdbool.
46556         Reported by Dalibor Topic <robilad@kaffe.org>.
46557
46558 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46559
46560         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46561         Prefer returning from main to exiting from it.
46562         Remove unnecessary parens after sizeof.
46563
46564 2007-02-05  Bruno Haible  <bruno@clisp.org>
46565
46566         New module mbssep.
46567         * modules/mbssep: New file.
46568         * lib/mbssep.c: New file.
46569         * lib/string_.h (strsep): Add a conditional link warning.
46570         (mbssep): New declaration.
46571         * m4/mbssep.m4: New file.
46572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46573         GNULIB_MBSSEP.
46574         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46575         * MODULES.html.sh (Internationalization functions): Add mbssep.
46576
46577 2007-02-05  Bruno Haible  <bruno@clisp.org>
46578
46579         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46580         Optimize search in case of 1 delimiter.
46581
46582 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46583
46584         * lib/acl.h: Include sys/types.h before sys/acl.h.
46585
46586 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46587
46588         Merge upstream fix for glibc bugzilla #3957:
46589
46590         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46591
46592         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46593         bit for RE_HAT_LISTS_NOT_NEWLINE.
46594         (build_charclass_op): Remove bogus comment.
46595
46596 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46597
46598         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46599
46600 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46601
46602         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46603         * lib/memmem.c [!defined _LIBC]: Include config.h.
46604
46605 2007-02-04  Bruno Haible  <bruno@clisp.org>
46606
46607         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46608         warning message.
46609
46610 2007-02-04  Bruno Haible  <bruno@clisp.org>
46611
46612         New module mbstok_r.
46613         * modules/mbstok_r: New file.
46614         * lib/mbstok_r.c: New file.
46615         * lib/string_.h (strtok_r): Change argument names to match the
46616         comments. Add a conditional link warning.
46617         (mbstok_r): New declaration.
46618         * m4/mbstok_r.m4: New file.
46619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46620         GNULIB_MBSTOK_R.
46621         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46622         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46623
46624 2007-02-04  Bruno Haible  <bruno@clisp.org>
46625
46626         New module mbsspn.
46627         * modules/mbsspn: New file.
46628         * lib/mbsspn.c: New file.
46629         * lib/string_.h (strspn): Add a conditional link warning.
46630         (mbsspn): New declaration.
46631         * m4/mbsspn.m4: New file.
46632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46633         GNULIB_MBSSPN.
46634         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46635         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46636
46637 2007-02-04  Bruno Haible  <bruno@clisp.org>
46638
46639         New module mbspbrk.
46640         * modules/mbspbrk: New file.
46641         * lib/mbspbrk.c: New file.
46642         * lib/string_.h (strpbrk): Add a conditional link warning.
46643         (mbspbrk): New declaration.
46644         * m4/mbspbrk.m4: New file.
46645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46646         GNULIB_MBSPBRK.
46647         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
46648         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
46649
46650 2007-02-04  Bruno Haible  <bruno@clisp.org>
46651
46652         New module mbscspn.
46653         * modules/mbscspn: New file.
46654         * lib/mbscspn.c: New file.
46655         * lib/string_.h (strcspn): Add a conditional link warning.
46656         (mbscspn): New declaration.
46657         * m4/mbscspn.m4: New file.
46658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46659         GNULIB_MBSCSPN.
46660         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
46661         * MODULES.html.sh (Internationalization functions): Add mbscspn.
46662
46663 2007-02-04  Bruno Haible  <bruno@clisp.org>
46664
46665         New module mbscasestr, reduced goal of strcasestr.
46666         * modules/mbscasestr: New file.
46667         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
46668         (mbscasestr): Renamed from strcasestr.
46669         * lib/strcasestr.c: Don't include mbuiter.h.
46670         (strcasestr): Remove support for multibyte locales.
46671         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
46672         Change the conditional link warning.
46673         (mbscasestr): New declaration.
46674         * m4/mbscasestr.m4: New file.
46675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
46676         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
46677         REPLACE_STRCASESTR.
46678         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
46679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46680         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46681         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
46682         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
46683         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46684         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
46685         (Depends-on): Remove mbuiter.
46686         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
46687
46688 2007-02-04  Bruno Haible  <bruno@clisp.org>
46689
46690         Simplify handling of strncasecmp.
46691         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
46692         the conditional link warning.
46693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46694         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
46695         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
46696         * modules/strcase (configure.ac): Don't invoke
46697         gl_STRING_MODULE_INDICATOR.
46698         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
46699
46700 2007-02-04  Bruno Haible  <bruno@clisp.org>
46701
46702         New module mbscasecmp, reduced goal of strcasecmp.
46703         * modules/mbscasecmp: New file.
46704         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
46705         (mbscasecmp): Renamed from strcasecmp.
46706         * lib/strcasecmp.c: Don't include mbuiter.h.
46707         (strcasecmp): Remove support for multibyte locales.
46708         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
46709         Change the conditional link warning.
46710         (mbscasecmp): New declaration.
46711         * m4/mbscasecmp.m4: New file.
46712         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
46713         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
46714         REPLACE_STRCASECMP.
46715         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
46716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46717         GNULIB_MBSCASECMP.
46718         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
46719         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
46720         * modules/strcase (Files): Remove m4/mbrtowc.m4.
46721         (Depends-on): Remove mbuiter.
46722         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
46723
46724 2007-02-04  Bruno Haible  <bruno@clisp.org>
46725
46726         New module mbsstr. Remove module strstr.
46727         * modules/mbsstr: New file.
46728         * modules/strstr: Remove file.
46729         * lib/mbsstr.c: Renamed from lib/strstr.c.
46730         (mbsstr): Renamed from strstr.
46731         * lib/string_.h (strstr): Remove declaration. Change the conditional
46732         link warning.
46733         (mbsstr): New declaration.
46734         * m4/mbsstr.m4: New file.
46735         * m4/strstr.m4: Remove file.
46736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46737         REPLACE_STRSTR.
46738         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
46739         Don't initialize GNULIB_STRSTR.
46740         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
46741         substitute GNULIB_STRSTR and REPLACE_STRSTR.
46742         * MODULES.html.sh (Internationalization functions): Add mbsstr.
46743         (Support for systems lacking ANSI C 89): Remove strstr.
46744
46745 2007-02-04  Bruno Haible  <bruno@clisp.org>
46746
46747         New module mbsrchr.
46748         * modules/mbsrchr: New file.
46749         * lib/mbsrchr.c: New file.
46750         * lib/string_.h (strrchr): Add a conditional link warning.
46751         (mbsrchr): New declaration.
46752         * m4/mbsrchr.m4: New file.
46753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46754         GNULIB_MBSRCHR.
46755         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
46756         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
46757
46758 2007-02-04  Bruno Haible  <bruno@clisp.org>
46759
46760         New module mbschr.
46761         * modules/mbschr: New file.
46762         * lib/mbschr.c: New file.
46763         * lib/string_.h (strchr): Add a conditional link warning.
46764         (mbschr): New declaration.
46765         * m4/mbschr.m4: New file.
46766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46767         GNULIB_MBSCHR.
46768         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
46769         * MODULES.html.sh (Internationalization functions): Add mbschr.
46770
46771 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46772
46773         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
46774
46775         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
46776
46777 2007-02-04  Bruno Haible  <bruno@clisp.org>
46778
46779         New module description section 'configure.ac-early'.
46780         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
46781         (func_get_autoconf_early_snippet): New function.
46782         (func_import, func_create_testdir): Use it. Remove special cases for
46783         modules 'extensions' and 'lock'.
46784         * modules/extensions (configure.ac-early): Require
46785         gl_USE_SYSTEM_EXTENSIONS.
46786         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
46787
46788 2007-02-04  Bruno Haible  <bruno@clisp.org>
46789
46790         Make use of gcj-4.3's -fsource and -ftarget option.
46791         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
46792         and if so try the options -fsource and -ftarget.
46793         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
46794         source_version, ftarget_option, target_version arguments.
46795         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
46796         (is_envjavac_oldgcj_14_14_usable): Renamed from
46797         is_envjavac_gcj_14_14_usable.
46798         (is_envjavac_oldgcj_14_13_usable): Renamed from
46799         is_envjavac_gcj_14_13_usable.
46800         (is_gcj_present): Update.
46801         (is_gcj_43, is_gcj43_usable): New functions.
46802         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
46803         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
46804         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
46805         try the options -fsource and -ftarget.
46806
46807 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46808
46809         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
46810         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46811         larger value.
46812
46813 2007-02-03  Jim Meyering  <jim@meyering.net>
46814
46815         Give tools a better chance to allocate space for very large buffers.
46816         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46817
46818         Make pwd and readlink work also when run with an unreadable parent dir
46819         on systems with openat support.
46820         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46821         provided getcwd function, even when we have openat support.
46822         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46823
46824 2007-02-02  Bruno Haible  <bruno@clisp.org>
46825
46826         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46827         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46828         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46829         portability problems if one of these functions is only used on specific
46830         platforms.
46831         Reported by Paul Eggert.
46832
46833 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46834
46835         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46836         is causing more trouble than it's curing.
46837         * lib/regex_internal.h (__mempcpy): Remove.
46838         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46839         (and make the code a tad smaller to boot).
46840         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46841
46842 2007-02-02  Jim Meyering  <jim@meyering.net>
46843
46844         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46845         section, not in the Makefile.am: one.
46846
46847 2007-02-02  Eric Blake  <ebb9@byu.net>
46848
46849         * lib/strchrnul.c: Always include config.h first.
46850
46851         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46852         gnulib strstr is not necessary here.
46853
46854 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46855
46856         * m4/socklen.m4: Fix typo.
46857
46858 2007-02-02  Eric Blake  <ebb9@byu.net>
46859
46860         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46861         * modules/netinet_in (Makefile.am): Likewise.
46862
46863 2007-02-01  Bruno Haible  <bruno@clisp.org>
46864
46865         * lib/string_.h (GL_LINK_WARNING): New macro.
46866         (strcasecmp, strstr, strcasestr): If provided by the system,
46867         conditionally define as a macro that leads to a warning instead of to
46868         an error.
46869         (strncasecmp): Conditionally define as a macro that leads to a warning.
46870
46871 2007-02-01  Karl Berry  <karl@gnu.org>
46872
46873         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46874
46875 2007-02-01  Bruno Haible  <bruno@clisp.org>
46876
46877         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46878         renamings.
46879
46880 2007-02-01  Eric Blake  <ebb9@byu.net>
46881
46882         * modules/regex (Depends-on): Revert dependence on mempcpy.
46883         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46884         module's definition of mempcpy.
46885         Reported by Paul Eggert.
46886
46887 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46888
46889         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46890         the symbol XYZ before redefining it.  This fixes a problem with
46891         programs that don't use XYZ, when compiled on systems that define
46892         XYZ to something else.
46893
46894 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46897         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46898         writeable to group or other and (2) is intended to have a special
46899         mode bit that is set or cleared.  In such a case, the directory
46900         should be neither group- nor other-writeable until the special
46901         mode bits are right.
46902
46903 2007-01-31  Eric Blake  <ebb9@byu.net>
46904
46905         * modules/mountlist (Depends-on): Add strstr.
46906
46907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46908         bug.
46909         * modules/string (Makefile.am): Remove redundant replacement.
46910         * modules/regex (Depends-on): Add mempcpy.
46911
46912 2007-01-31  Bruno Haible  <bruno@clisp.org>
46913
46914         New module description field 'Link'.
46915         * gnulib-tool (func_usage): Document --extract-link-directive.
46916         (sed_extract_prog): Recognize 'Link' directive.
46917         (func_get_link_directive): New function.
46918         (func_import): Show summary of link directives.
46919         Handle --extract-link-directive option.
46920         * modules/acl (Link): New section.
46921         * modules/clock-time (Link): New section.
46922         * modules/euidaccess (Link): New section.
46923         * modules/gettext (Link): New section.
46924         * modules/iconv (Link): New section.
46925         * modules/lock (Link): New section.
46926         * modules/nanosleep (Link): New section.
46927         * modules/readline (Link): New section.
46928
46929 2007-01-27  Bruno Haible  <bruno@clisp.org>
46930
46931         Enforce the use of gnulib modules for unportable <string.h> functions.
46932         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46933         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46934         (gl_HEADER_STRING_H_BODY): Require it.
46935         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46936         the symbol XYZ to one that gives a link error.
46937         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46938         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46939         * modules/mempcpy (configure.ac): Likewise.
46940         * modules/memrchr (configure.ac): Likewise.
46941         * modules/stpcpy (configure.ac): Likewise.
46942         * modules/stpncpy (configure.ac): Likewise.
46943         * modules/strcase (configure.ac): Likewise.
46944         * modules/strcasestr (configure.ac): Likewise.
46945         * modules/strchrnul (configure.ac): Likewise.
46946         * modules/strdup (configure.ac): Likewise.
46947         * modules/strndup (configure.ac): Likewise.
46948         * modules/strnlen (configure.ac): Likewise.
46949         * modules/strpbrk (configure.ac): Likewise.
46950         * modules/strsep (configure.ac): Likewise.
46951         * modules/strstr (configure.ac): Likewise.
46952         * modules/strtok_r (configure.ac): Likewise.
46953
46954 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46955
46956         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46957
46958 2007-01-30  Jim Meyering  <jim@meyering.net>
46959
46960         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46961
46962 2007-01-29  Bruno Haible  <bruno@clisp.org>
46963
46964         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46965         * lib/execute.c: Likewise.
46966         * lib/pipe.c: Likewise.
46967         * lib/printf-args.h: Likewise.
46968         * lib/printf-args.c: Likewise.
46969         * lib/printf-parse.c: Likewise.
46970         * lib/vasnprintf.c: Likewise.
46971
46972 2007-01-29  Eric Blake  <ebb9@byu.net>
46973
46974         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46975         declaration.
46976
46977 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46978
46979         * lib/strptime.h (strptime): Use 'restrict' for args where
46980         POSIX requires this.
46981         * lib/strptime.c (strptime): Likewise.
46982         Change license notice from LGPL to GPL, since gnulib-tool will
46983         change this as needed.
46984         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46985         defined.
46986         Include "strptime.h" first, to check interface.
46987         Do not #undef _LIBC and _NL_CURRENT.
46988         Do not include <stdlib.h>; no longer needed.
46989         Include "time_r.h" and declare ptime_locale_status
46990         only if _LIBC is not defined.
46991         (__P): Remove unused macro.
46992         (match_string): Bring back glibc version, but use it only if _LIBC
46993         is defined.
46994         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46995         Remove unnecessary assertion and abort() call.
46996         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46997         * m4/strptime.m4: Fix serial number comment.
46998         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46999         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
47000         (Depends-on): Add time_r.
47001
47002 2007-01-29  Bruno Haible  <bruno@clisp.org>
47003
47004         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47005         strptime.
47006         * modules/strptime (Depends-on): Add stdbool.
47007         * lib/strptime.h: Include <time.h> always. Add comments.
47008
47009 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47010
47011         * modules/strptime: New file.
47012         * lib/strptime.h: New file.
47013         * lib/strptime.c: New file.
47014         * m4/strptime.m4: New file.
47015
47016 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
47017
47018         * MODULES.html.sh: New module mpsort.
47019         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
47020
47021         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
47022         a circularity problem with HP-UX ia64 reported by Bob Proulx in
47023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
47024         All uses changed.
47025         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
47026         All uses changed.
47027         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
47028         to _Restrict_.
47029         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
47030         the parameter matches the prototype.
47031
47032 2007-01-28  Jim Meyering  <jim@meyering.net>
47033
47034         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
47035         sys/time.h here, reverting that part of the previous patch:
47036         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
47037
47038 2007-01-28  Bruno Haible  <bruno@clisp.org>
47039
47040         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
47041         value of $(SYS_TIME_H).
47042         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
47043         remove it conditionally, too. [added by Jim Meyering]
47044         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
47045         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47046         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
47047         GETTIMEOFDAY_REPLACEMENT to 1.
47048
47049 2007-01-28  Bruno Haible  <bruno@clisp.org>
47050
47051         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
47052         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
47053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
47054         Set UNISTD_H instead of UNISTD_H2.
47055         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
47056
47057 2007-01-28  Bruno Haible  <bruno@clisp.org>
47058
47059         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
47060         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
47061
47062 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47063
47064         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
47065         (func_create_testdir): Ensure C locale for `grep' and `tr'
47066         character ranges.
47067         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
47068         ACLOCAL_AMFLAGS parsing state machine.
47069
47070 2007-01-27  Bruno Haible  <bruno@clisp.org>
47071
47072         * modules/unistr/base: Update.
47073
47074 2007-01-27  Bruno Haible  <bruno@clisp.org>
47075
47076         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
47077         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
47078         * modules/unistr/u32-mbtouc-unsafe: Renamed from
47079         modules/unistr/u32-mbtouc.
47080         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
47081         * lib/unistr.h: Update.
47082         * lib/linebreak.c: Update.
47083         * modules/unistr/u32-mbtouc: Renamed from
47084         modules/unistr/u32-mbtouc-safe.
47085         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
47086         * lib/unistr.h: Update.
47087         * lib/unistr/u32-to-u8.c: Update.
47088         * lib/unistr/u32-to-u16.c: Update.
47089
47090 2007-01-27  Bruno Haible  <bruno@clisp.org>
47091
47092         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
47093         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
47094         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
47095         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
47096         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
47097         * modules/unistr/u16-mbtouc-unsafe: Renamed from
47098         modules/unistr/u16-mbtouc.
47099         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
47100         * lib/unistr.h: Update.
47101         * lib/linebreak.c: Update.
47102         * modules/linebreak: Update.
47103         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
47104         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
47105         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
47106         * modules/unistr/u16-mbtouc: Renamed from
47107         modules/unistr/u16-mbtouc-safe.
47108         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
47109         * lib/unistr.h: Update.
47110         * lib/unistr/u16-to-u8.c: Update.
47111         * modules/unistr/u16-to-u8: Update.
47112         * lib/unistr/u16-to-u32.c: Update.
47113         * modules/unistr/u16-to-u32: Update.
47114
47115 2007-01-27  Bruno Haible  <bruno@clisp.org>
47116
47117         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
47118         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
47119         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
47120         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
47121         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
47122         * modules/unistr/u8-mbtouc-unsafe: Renamed from
47123         modules/unistr/u8-mbtouc.
47124         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
47125         * lib/unistr.h: Update.
47126         * lib/striconveh.c: Update.
47127         * modules/striconveh: Update.
47128         * lib/linebreak.c: Update.
47129         * modules/linebreak: Update.
47130         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
47131         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
47132         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
47133         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
47134         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
47135         * lib/unistr.h: Update.
47136         * lib/striconveh.c: Update.
47137         * modules/striconveh: Update.
47138         * lib/unistr/u8-to-u16.c: Update.
47139         * modules/unistr/u8-to-u16: Update.
47140         * lib/unistr/u8-to-u32.c: Update.
47141         * modules/unistr/u8-to-u32: Update.
47142
47143 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47144
47145         Sync from Libtool.
47146         * lib/argz.c: Do not include strings.h nor memory.h, include
47147         string.h unconditionally.  Patch by Simon Josefsson.
47148
47149 2007-01-27  Bruno Haible  <bruno@clisp.org>
47150
47151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
47152         from gl_HEADER_STRING_H_BODY.
47153         (gl_HEADER_STRING_H_BODY): Require it.
47154         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
47155         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47157         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47158         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47159         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
47160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47161         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47162         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
47163         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47164         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47165         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
47166         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47167         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47168         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47169
47170 2007-01-27  Bruno Haible  <bruno@clisp.org>
47171
47172         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
47173         check_PROGRAMS into noinst_PROGRAMS.
47174         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
47175         check_PROGRAMS in this case.
47176         (func_import): Set for_test to false.
47177         (func_create_testdir): Set for_test to true.
47178
47179 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47180             Bruno Haible  <bruno@clisp.org>
47181
47182         * modules/strcasestr (Files): Remove lib/strcasestr.h.
47183         (Depends-on): Add string.
47184         (Includes): Use <string.h> instead of strcasestr.h.
47185         * modules/string (Makefile.am): Also substitute the value of
47186         REPLACE_STRCASESTR.
47187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
47188         assume strcasestr is declared in <string.h> not <strings.h>. Also
47189         set REPLACE_STRCASESTR.
47190         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
47191         REPLACE_STRCASESTR.
47192         * lib/strcasestr.h: Remove file.
47193         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
47194         * lib/string_.h (strcasestr): New declaration.
47195
47196 2007-01-27  Bruno Haible  <bruno@clisp.org>
47197
47198         * lib/string_.h: Use 'extern'.
47199
47200 2007-01-27  Jim Meyering  <jim@meyering.net>
47201
47202         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
47203         of set-but-not-used local, "q".
47204
47205         * lib/mempcpy.c: Include <config.h> before <string.h>.
47206         This fixes a compilation error on HP-UX, due to the system's
47207         "restrict"-using mempcpy prototype.
47208
47209 2007-01-26  Bruno Haible  <bruno@clisp.org>
47210
47211         Small optimization.
47212         * lib/javacomp.c: Include c-strstr.h.
47213          (is_envjavac_gcj): Use c_strstr instead of strstr.
47214         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
47215
47216 2007-01-26  Bruno Haible  <bruno@clisp.org>
47217
47218         * MODULES.html.sh (Unicode string functions): Add the new modules.
47219
47220         * modules/uniconv/u32-strconv-to-locale: New file.
47221         * lib/uniconv/u32-strconv-to-locale.c: New file.
47222
47223         * modules/uniconv/u16-strconv-to-locale: New file.
47224         * lib/uniconv/u16-strconv-to-locale.c: New file.
47225
47226         * modules/uniconv/u8-strconv-to-locale: New file.
47227         * lib/uniconv/u8-strconv-to-locale.c: New file.
47228
47229         * modules/uniconv/u32-strconv-from-locale: New file.
47230         * lib/uniconv/u32-strconv-from-locale.c: New file.
47231
47232         * modules/uniconv/u16-strconv-from-locale: New file.
47233         * lib/uniconv/u16-strconv-from-locale.c: New file.
47234
47235         * modules/uniconv/u8-strconv-from-locale: New file.
47236         * lib/uniconv/u8-strconv-from-locale.c: New file.
47237
47238         * modules/uniconv/u32-strconv-to-enc: New file.
47239         * lib/uniconv/u32-strconv-to-enc.c: New file.
47240         * modules/uniconv/u32-strconv-to-enc-tests: New file.
47241         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
47242
47243         * modules/uniconv/u16-strconv-to-enc: New file.
47244         * lib/uniconv/u16-strconv-to-enc.c: New file.
47245         * lib/uniconv/u-strconv-to-enc.h: New file.
47246         * modules/uniconv/u16-strconv-to-enc-tests: New file.
47247         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
47248
47249         * modules/uniconv/u8-strconv-to-enc: New file.
47250         * lib/uniconv/u8-strconv-to-enc.c: New file.
47251         * modules/uniconv/u8-strconv-to-enc-tests: New file.
47252         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
47253
47254         * modules/uniconv/u32-strconv-from-enc: New file.
47255         * lib/uniconv/u32-strconv-from-enc.c: New file.
47256         * modules/uniconv/u32-strconv-from-enc-tests: New file.
47257         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
47258
47259         * modules/uniconv/u16-strconv-from-enc: New file.
47260         * lib/uniconv/u16-strconv-from-enc.c: New file.
47261         * modules/uniconv/u16-strconv-from-enc-tests: New file.
47262         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
47263
47264         * modules/uniconv/u8-strconv-from-enc: New file.
47265         * lib/uniconv/u8-strconv-from-enc.c: New file.
47266         * lib/uniconv/u-strconv-from-enc.h: New file.
47267         * modules/uniconv/u8-strconv-from-enc-tests: New file.
47268         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
47269
47270         * modules/uniconv/u32-conv-from-enc: New file.
47271         * lib/uniconv/u32-conv-from-enc.c: New file.
47272         * modules/uniconv/u32-conv-from-enc-tests: New file.
47273         * tests/uniconv/test-u32-conv-from-enc.c: New file.
47274
47275         * modules/uniconv/u16-conv-from-enc: New file.
47276         * lib/uniconv/u16-conv-from-enc.c: New file.
47277         * lib/uniconv/u-conv-from-enc.h: New file.
47278         * modules/uniconv/u16-conv-from-enc-tests: New file.
47279         * tests/uniconv/test-u16-conv-from-enc.c: New file.
47280
47281         * modules/uniconv/u8-conv-from-enc: New file.
47282         * lib/uniconv/u8-conv-from-enc.c: New file.
47283         * modules/uniconv/u8-conv-from-enc-tests: New file.
47284         * tests/uniconv/test-u8-conv-from-enc.c: New file.
47285
47286         * modules/uniconv/base: New file.
47287         * lib/uniconv.h: New file.
47288
47289 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47290
47291         * doc/gnulib-tool.texi (Initial import): Update to match current
47292         behavior with strdup module.
47293         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
47294         * lib/memmem.h: Remove; all uses removed.  This is now done
47295         by <string.h>.
47296         * lib/mempcpy.h: Likewise.
47297         * lib/memrchr.h: Likewise.
47298         * lib/stpcpy.h: Likewise.
47299         * lib/stpncpy.h: Likewise.
47300         * lib/strcase.h: Likewise.
47301         * lib/strchrnul.h: Likewise.
47302         * lib/strdup.h: Likewise.
47303         * lib/strndup.h: Likewise.
47304         * lib/strnlen.h: Likewise.
47305         * lib/strpbrk.h: Likewise.
47306         * lib/strsep.h: Likewise.
47307         * lib/strstr.h: Likewise.
47308         * lib/strtok_r.h: Likewise.
47309         * lib/string_.h: New file.
47310         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
47311         Rely on <string.h> instead.
47312         * lib/canon-host.c: Likewise.
47313         * lib/chdir-long.c: Likewise.
47314         * lib/concatpath.c: Likewise.
47315         * lib/exclude.c: Likewise.
47316         * lib/fchdir.c: Likewise.
47317         * lib/getaddrinfo.c: Likewise.
47318         * lib/getcwd.c: Likewise.
47319         * lib/getsubopt.c: Likewise.
47320         * lib/glob.c: Likewise.
47321         * lib/hard-locale.c: Likewise.
47322         * lib/iconvme.c: Likewise.
47323         * lib/javacomp.c: Likewise.
47324         * lib/mempcpy.c: Likewise.
47325         * lib/memrchr.c: Likewise.
47326         * lib/regex_internal.h: Likewise.
47327         * lib/stpncpy.c: Likewise.
47328         * lib/strcasecmp.c: Likewise.
47329         * lib/strchrnul.c: Likewise.
47330         * lib/strdup.c: Likewise.
47331         * lib/striconv.c: Likewise.
47332         * lib/striconveh.c: Likewise.
47333         * lib/striconveha.c: Likewise.
47334         * lib/strncasecmp.c: Likewise.
47335         * lib/strndup.c: Likewise.
47336         * lib/strnlen.c: Likewise.
47337         * lib/strsep.c: Likewise.
47338         * lib/strstr.c: Likewise.
47339         * lib/strtok_r.c: Likewise.
47340         * lib/userspec.c: Likewise.
47341         * lib/w32spawn.h: Likewise.
47342         * lib/xstrndup.c: Likewise.
47343         * lib/mountlist.c (strstr): Remove decl.
47344         * m4/string_h.m4: New file.
47345         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
47346         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
47347         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
47348         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
47349         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
47350         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
47351         Set REPLACE_STRCASECMP if necessary.
47352         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
47353         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
47354         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
47355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
47356         HAVE_DECL_STRDUP if necessary.
47357         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
47358         since gl_FUNC_STRNDUP does that now.
47359         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
47360         Check for decl here...
47361         (gl_PREREQ_STRNLEN): ... not here.
47362         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
47363         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
47364         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
47365         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
47366         necessary.
47367         * modules/string: New file.
47368         * modules/memmem (Files): Remove special-purpose include file.
47369         (Depends-on): Add string.
47370         (Include): Include <string.h>, not the removed file.
47371         * modules/mempcpy: Likewise.
47372         * modules/memrchr: Likewise.
47373         * modules/stpcpy: Likewise.
47374         * modules/stpncpy: Likewise.
47375         * modules/strcase: Likewise.
47376         * modules/strchrnul: Likewise.
47377         * modules/strdup: Likewise.
47378         * modules/strndup: Likewise.
47379         * modules/strnlen: Likewise.
47380         * modules/strpbrk: Likewise.
47381         * modules/strsep: Likewise.
47382         * modules/strstr: Likewise.
47383         * modules/strtok_r: Likewise.
47384         * tests/test-dirname.c: Don't include "strdup.h", since
47385         <string.h> now suffices.
47386         * tests/test-memmem.c: Don't include "memmem.h", since
47387         <string.h> now suffices.
47388
47389 2007-01-25  Bruno Haible  <bruno@clisp.org>
47390
47391         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47392         *resultp is 0.
47393
47394         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47395         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47396         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47397         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47398
47399         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47400         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47401         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47402         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47403         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47404         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47405
47406 2007-01-24  Bruno Haible  <bruno@clisp.org>
47407
47408         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47409         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47410         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47411         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47412         gl_FUNC_FTS_CORE.
47413         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47414         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47415         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47416         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47417         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47418         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47419         gl_FUNC_FCHOWNAT.
47420         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47421         gl_FUNC_STRFTIME.
47422         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47423         Reported by Ralf Wildenhues.
47424
47425 2007-01-24  Bruno Haible  <bruno@clisp.org>
47426
47427         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47428         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47429         gl_GETADDRINFO.
47430         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47431         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47432         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47433
47434 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47435
47436         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47437         Don't use 'exit'; just return from 'main'.
47438         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47439
47440         * lib/fnmatch_.h: Readjust white space and comments to match
47441         glibc, to avoid spurious diffs.
47442
47443 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47444
47445         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47446         2004-12-01 change by Jakub Jelinek, since this code won't compile
47447         if !LIBC.  Problem reported by Bob Proulx.
47448
47449 2007-01-23  Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/striconveh.c: Include c-strcaseeq.h.
47452         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47453         * modules/striconveh (Depends-on): Add c-strcaseeq.
47454
47455 2007-01-23  Bruno Haible  <bruno@clisp.org>
47456
47457         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47458
47459         * modules/c-strcaseeq: New file.
47460         * lib/c-strcaseeq.h: New file.
47461
47462         * modules/streq: New file.
47463         * lib/streq.h: New file.
47464
47465 2007-01-23  Bruno Haible  <bruno@clisp.org>
47466
47467         * modules/striconveha-tests: New file.
47468         * tests/test-striconveha.c: New file.
47469
47470         * lib/striconveha.h: Include <stdbool.h>.
47471         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47472         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47473         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47474         (mem_iconveha): New function.
47475         (str_iconveha_notranslit): Renamed from str_iconveha.
47476         (str_iconveha): New function.
47477         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47478         c-strcase.
47479
47480 2007-01-23  Bruno Haible  <bruno@clisp.org>
47481
47482         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47483         encodings without forgiving before trying any encoding with handler.
47484         (str_iconveha): Try all encodings without forgiving before trying any
47485         encoding with handler.
47486
47487 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47488
47489         Import the following changes from libc.
47490
47491         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47492
47493         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47494
47495         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47496
47497         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47498         normal_bracket label.
47499
47500         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47501
47502         [BZ #361]
47503         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47504         to normal_bracket after fetching the next character.
47505
47506 2007-01-22  Bruno Haible  <bruno@clisp.org>
47507
47508         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47509         argument.
47510         * lib/striconveh.c (iconv_carefully_1): New function.
47511         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47512         argument.
47513         (str_cd_iconveh): Update.
47514         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47515         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47516         * tests/test-striconveh.c (MAGIC): New macro.
47517         (new_offsets): New function.
47518         (main): Test call with and without offsets.
47519
47520 2007-01-22  Bruno Haible  <bruno@clisp.org>
47521
47522         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47523         * modules/sys_select (Makefile.am): Likewise.
47524         * modules/sys_socket (Makefile.am): Likewise.
47525         * modules/sys_time (Makefile.am): Likewise.
47526
47527 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47528
47529         * modules/gettimeofday (License): Change from GPL to LGPL, since
47530         gettimeofday is a library function.
47531
47532 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47533
47534         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47535
47536 2007-01-21  Bruno Haible  <bruno@clisp.org>
47537
47538         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47539
47540 2007-01-21  Bruno Haible  <bruno@clisp.org>
47541
47542         * modules/striconveha: New file.
47543         * lib/striconveha.h: New file.
47544         * lib/striconveha.c: New file.
47545         * MODULES.html.sh (Internationalization functions): Add striconveha.
47546         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47547         string.
47548         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47549
47550 2007-01-21  Bruno Haible  <bruno@clisp.org>
47551
47552         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47553         * lib/striconveh.c (str_iconveh): Likewise.
47554
47555 2007-01-21  Bruno Haible  <bruno@clisp.org>
47556
47557         * lib/striconveh.h (mem_iconveh): New declaration.
47558         * lib/striconveh.c (mem_iconveh): New function.
47559         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47560
47561 2007-01-21  Bruno Haible  <bruno@clisp.org>
47562
47563         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47564
47565         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47566         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47567         original result buffer.
47568         (str_cd_iconveh): Update.
47569         * tests/test-striconveh.c (main): Update.
47570
47571         * lib/striconv.h (mem_cd_iconv): Change specification.
47572         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47573         result buffer.
47574         (str_cd_iconv): Update.
47575         * tests/test-striconv.c (main): Update.
47576
47577 2007-01-21  Bruno Haible  <bruno@clisp.org>
47578
47579         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47580
47581 2007-01-20  Jim Meyering  <jim@meyering.net>
47582
47583         * lib/userspec.c (parse_with_separator): If a user or group string
47584         starts with "+", skip the corresponding name-to-ID look-up, since
47585         such a look-up must fail: user and group names may not include "+".
47586
47587 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47588
47589         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47590         since we now assume the sys_time module.
47591         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47592         check for sys/time.h; no longer needed.
47593         * modules/poll (Depends-on): Depend on sys_time.
47594
47595 2007-01-18  Bruno Haible  <bruno@clisp.org>
47596
47597         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47598         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47599
47600         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47601         gettimeofday.
47602
47603         * tests/test-gettimeofday.c: Include <time.h>.
47604         (dummy): Remove variable.
47605
47606         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47607         gl_HEADER_SYS_TIME_H.
47608         (gl_HEADER_SYS_TIME_H): New macro.
47609
47610         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47611         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47612         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47613         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47614         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47615         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47616         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47617         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47618         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47619         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47620         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47621
47622         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47623         last change; it caused a compilation error when cross-compiling to
47624         Cygwin.
47625
47626 2007-01-18  Jim Meyering  <jim@meyering.net>
47627
47628         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47629         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47630         than the race-prone "test -d sys || mkdir sys".
47631         (configure.ac): Use AC_PROG_MKDIR_P.
47632         * modules/sys_select: Likewise.
47633         * modules/sys_socket: Likewise.
47634         * modules/sys_time: Likewise.
47635
47636 2007-01-18  Eric Blake  <ebb9@byu.net>
47637
47638         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47639         replace gettimeofday.
47640         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47641         name, to avoid infinite recursion.
47642
47643 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47644
47645         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47646         module sys_time.
47647         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
47648         assume timespec.h defines struct timeval.
47649         * lib/settime.c: Likewise.
47650         * lib/utimens.c: Likewise.
47651         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
47652         since we now assume the gettimeofday module.
47653         * lib/tempname.c (__gen_tempname): Likewise.
47654         * lib/gettimeofday.h: Remove.
47655         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
47656         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
47657         Include <time.h>, for 'time()'.
47658         (localtime_buffer_addr): Also use this workaround if
47659         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
47660         to simplify the uses.  All uses changed.
47661         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
47662         that #undef is inside {}, and 'const' follows type name consistently.
47663         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
47664         (gettimeofday): Do not use the maximum possible value for
47665         tv->tv_usec, since that might break usages other than ls.c.
47666         Instead, we'll leave ls.c alone.  This undoes today's patch
47667         by Bruno.  Add a compile-time warning for 1s-clock resolution;
47668         we've never observed the problem but might as well keep the
47669         canary.
47670         * lib/nanosleep.c: Include timespec.h first, for interface check.
47671         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
47672         now assume the sys_time module.
47673         * lib/tempname.c: Likewise.
47674         * lib/timespec.h: Likewise.
47675         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
47676         needed.
47677         * lib/strftime.c: Likewise.
47678         * lib/timespec.h: Likewise.
47679         * lib/posixtm.c: Include posixtm.h first, for interface check.
47680         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
47681         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
47682         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
47683         * lib/sys_time_.h: New file.
47684         * lib/timespec.h (struct timespec): Use long int, not long.
47685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47686         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
47687         Remove obsolescent call to AC_HEADER_TIME.
47688         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47690         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47691         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
47692         Likewise.
47693         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
47694         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
47695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
47696         into the sys_time module.  Check for gettimeofday just once.
47697         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
47698         for gettimeofday signature to just check the signature.  Merely
47699         compile it, since linking doesn't test signature.  Improve test for
47700         whether gettimeofday.o is actually needed.
47701         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
47702         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
47703         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
47704         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47705         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
47706         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
47707         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
47708         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
47709         than worrying about sys/time.h.
47710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47711         Don't bother worrying about TIME_WITH_SYS_TIME.
47712         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47713         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
47714         * m4/sys_time_h.m4: New file.
47715         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
47716         Don't include sys/time.h.  Return from main rather than exiting.
47717         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
47718         all uses changed.
47719         * modules/gethrxtime (Depends-on): Add sys_time.
47720         * modules/gettime (Depends-on): Likewise.
47721         * modules/gettimeofday (Depends-on): Likewise.
47722         * modules/nanosleep (Depends-on): Likewise.
47723         * modules/settime (Depends-on): Likewise.
47724         * modules/tempname (Depends-on): Likewise.
47725         * modules/utimens (Depends-on): Likewise.
47726         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
47727         (Include:) Change back to <sys/time.h>.
47728         (Maintainer:) Add self.
47729         * modules/sys_time: New file.
47730         * modules/tempname (Depends-on): Add gettimeofday.
47731         * tests/test-gettimeofday.c: Include <sys/time.h>
47732         rather than gettimeofday.h.
47733
47734 2007-01-17  Bruno Haible  <bruno@clisp.org>
47735
47736         * gnulib-tool (func_get_license): Revert last patch. Instead, let
47737         the license default to GPL.
47738         (func_create_testdir): Don't complain if a module is LGPL and its
47739         tests module depends on GPLed modules.
47740
47741 2007-01-17  Bruno Haible  <bruno@clisp.org>
47742
47743         * lib/gettimeofday.c (gettimeofday): Add code for the case
47744         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
47745         maximum possible value for tv->tv_usec, rather than the minimum one.
47746
47747 2005-10-08  Martin Lambers  <marlam@marlam.de>
47748 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47749 2007-01-16  Bruno Haible  <bruno@clisp.org>
47750
47751         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
47752         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
47753         gl_FUNC_GETTIMEOFDAY.
47754         (Include): Add gettimeofday.h.
47755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
47756         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
47757         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
47758         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
47759         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
47760         * lib/gettimeofday.h: New file.
47761         * lib/gettimeofday.c: Include <sys/timeb.h>.
47762         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
47763         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47764         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
47765         fall back on time().
47766
47767         * tests/test-gettimeofday.c: New file.
47768         * modules/gettimeofday-tests: New file.
47769
47770 2007-01-16  Eric Blake  <ebb9@byu.net>
47771
47772         * modules/fnmatch (Depends-on): Depend on wchar.
47773         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
47774         * m4/fnmatch.m4: Likewise.
47775         * modules/mbchar (Makefile.am): Assume <wchar.h>.
47776         * m4/mbchar.m4: Likewise.
47777         * modules/mbswidth (Depends-on): Depend on wchar.
47778         * lib/mbswidth.c: Assume <wchar.h>.
47779         * m4/mbswidth.m4: Likewise.
47780         * modules/quotearg (Depends-on): Depend on wchar.
47781         * lib/quotearg.c: Assume <wchar.h>.
47782         * m4/quotearg.m4: Likewise.
47783         * modules/regex (Depends-on): Depend on wchar.
47784         * lib/regex_internal.h: Assume <wchar.h>.
47785         * m4/regex.m4: Likewise.
47786         * modules/stdint (Depends-on): Depend on wchar.
47787         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
47788         * m4/stdint.m4: Likewise.
47789         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
47790         * modules/strftime (Depends-on): Depend on wchar.
47791         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
47792         * modules/strtol (Depends-on): Depend on wchar.
47793         * lib/strtol.c: Assume <wchar.h>.
47794         * modules/wcwidth (Depends-on): Depend on wchar.
47795         * lib/wcwidth.h: Assume <wchar.h>.
47796         * m4/wcwidth.m4: Likewise.
47797
47798 2007-01-16  Bruno Haible  <bruno@clisp.org>
47799
47800         * modules/csharpexec-script: New, created from...
47801         * modules/csharpexec: ... this.
47802
47803 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47804
47805         * modules/javaexec-script: New, created from...
47806         * modules/javaexec: ... this.
47807
47808 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47809
47810         * modules/poll (Dependencies): Add sys_select.
47811
47812 2007-01-15  Jim Meyering  <jim@meyering.net>
47813
47814         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47815         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47816         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47817         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47818
47819 2007-01-15  Bruno Haible  <bruno@clisp.org>
47820
47821         * modules/striconveh: New file.
47822         * lib/striconveh.h: New file.
47823         * lib/striconveh.c: New file.
47824         * MODULES.html.sh (Internationalization functions): Add striconveh.
47825
47826         * modules/striconveh-tests: New file.
47827         * tests/test-striconveh.c: New file.
47828
47829 2007-01-15  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47832         not from GNU libiconv or GNU libc.
47833
47834 2007-01-15  Bruno Haible  <bruno@clisp.org>
47835
47836         * doc/gnulib-intro.texi (Copyright): Explain the different license
47837         terms for module descriptions, autoconf macros, tests, documentation.
47838
47839 2007-01-14  Bruno Haible  <bruno@clisp.org>
47840
47841         * modules/striconv-tests: New file.
47842         * tests/test-striconv.c: New file.
47843
47844 2007-01-14  Bruno Haible  <bruno@clisp.org>
47845
47846         * modules/iconv-tests: New file.
47847         * tests/test-iconv.c: New file.
47848
47849 2007-01-14  Bruno Haible  <bruno@clisp.org>
47850
47851         * gnulib-tool (func_get_license): For test modules, use the license of
47852         the main module.
47853
47854 2007-01-14  Bruno Haible  <bruno@clisp.org>
47855
47856         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47857         if iconv is found to exist.
47858
47859 2007-01-14  Bruno Haible  <bruno@clisp.org>
47860
47861         * modules/c-ctype-tests: New file.
47862         * tests/test-c-ctype.c: New file.
47863
47864 2007-01-14  Bruno Haible  <bruno@clisp.org>
47865
47866         * modules/binary-io-tests: New file.
47867         * tests/test-binary-io.sh: New file.
47868         * tests/test-binary-io.c: New file.
47869
47870 2007-01-14  Bruno Haible  <bruno@clisp.org>
47871
47872         * modules/array-oset-tests: New file.
47873         * tests/test-array_oset.c: New file.
47874
47875 2007-01-14  Bruno Haible  <bruno@clisp.org>
47876
47877         * modules/array-list-tests: New file.
47878         * tests/test-array_list.c: New file.
47879
47880 2007-01-14  Bruno Haible  <bruno@clisp.org>
47881
47882         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47883         and make.
47884         Reported by Simon Josefsson in
47885         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47886
47887 2007-01-14  Bruno Haible  <bruno@clisp.org>
47888
47889         * modules/allocsa-tests: New file.
47890         * tests/test-allocsa.c: New file.
47891
47892 2007-01-14  Bruno Haible  <bruno@clisp.org>
47893
47894         * modules/fchdir (Depends-on): Add absolute-header.
47895         * modules/unistd (Depends-on): Likewise.
47896
47897 2006-12-30  Bruno Haible  <bruno@clisp.org>
47898
47899         * modules/fchdir: New file.
47900         * modules/unistd (Files): Add lib/unistd_.h.
47901         (Makefile.am): Generate unistd.h from unistd_.h.
47902         * lib/fchdir.c: New file.
47903         * lib/dirent_.h: New file.
47904         * lib/unistd_.h: New file.
47905         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47906         * m4/fchdir.m4: New file.
47907         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47908         (gl_HEADER_UNISTD): Invoke it.
47909         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47910         function.
47911         * lib/backupfile.c (opendir, closedir): Undefine.
47912         * lib/chown.c (open, close): Undefine.
47913         * lib/clean-temp.c (open, close): Undefine.
47914         * lib/copy-file.c (open, close): Undefine.
47915         * lib/execute.c (open, close): Undefine.
47916         * lib/fsusage.c (open, close): Undefine.
47917         * lib/gc-gnulib.c (open, close): Undefine.
47918         * lib/getcwd.c (opendir, closedir): Undefine.
47919         * lib/glob.c (opendir, closedir): Undefine.
47920         * lib/javacomp.c (open, close): Undefine.
47921         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47922         * lib/openat-proc.c (open, close): Undefine.
47923         * lib/pagealign_alloc.c (open, close): Undefine.
47924         * lib/pipe.c (open, close): Undefine.
47925         * lib/progreloc.c (open, close): Undefine.
47926         * lib/savedir.c (opendir, closedir): Undefine.
47927         * lib/utime.c (open, close): Undefine.
47928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47929
47930 2007-01-10  Bruno Haible  <bruno@clisp.org>
47931
47932         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47933
47934 2007-01-12  Eric Blake  <ebb9@byu.net>
47935
47936         Provide a robust <wchar.h>.  Further simplifications are now
47937         possible in other modules, but not included here.
47938         * modules/wchar: New module.
47939         * m4/wchar.m4: New file.
47940         * lib/wchar_.h: Likewise.
47941         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47942         of the new module.
47943         * MODULES.html.sh (Extended multibyte and wide character utilities):
47944         New section.
47945
47946 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47947
47948         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47949         to a reasonable default for memory allocation.
47950         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47951         file system that reports garbage st_size values for symlinks.
47952         Problem reported by Liyang Hu.
47953
47954 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47955
47956         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47957         Emacs .#* auto-save files).
47958
47959 2007-01-11  Bruno Haible  <bruno@clisp.org>
47960
47961         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47962         directory.
47963
47964 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47965
47966         Use @...@ consistently in lib/wctype_.h.
47967         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47968         on it being set to 1 or 0.
47969         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47970         go back to AC_SUBSTing it.
47971         * modules/wctype (Makefile.am): Undo previous change.
47972
47973 2007-01-10  Eric Blake  <ebb9@byu.net>
47974
47975         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47976         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47977         * modules/wctype (Makefile.am): Likewise.
47978         Reported by Chris McGuire.
47979
47980 2007-01-10  Jim Meyering  <jim@meyering.net>
47981
47982         fts.c: a small readability/maintainability improvement
47983         * lib/fts.c (fts_read): Make this code slightly more readable and
47984         maintainable by hoisting the "sp->fts_cur = p" assignments to
47985         immediately follow the statements that set P.  Derived from
47986         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47987
47988 2007-01-10  Eric Blake  <ebb9@byu.net>
47989
47990         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47991         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47993         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47994         Reported by Chris McGuire.
47995
47996 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47997
47998         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47999         in sed script.
48000
48001 2007-01-09  Bruno Haible  <bruno@clisp.org>
48002
48003         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
48004         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
48005         variables.
48006         (func_module): Use them.
48007
48008 2007-01-09  Bruno Haible  <bruno@clisp.org>
48009
48010         * modules/unistr/base: New file.
48011         * lib/unistr.h: New file.
48012
48013         * modules/unistr/u8-to-u16: New file.
48014         * lib/unistr/u8-to-u16.c: New file.
48015
48016         * modules/unistr/u8-to-u32: New file.
48017         * lib/unistr/u8-to-u32.c: New file.
48018
48019         * modules/unistr/u16-to-u8: New file.
48020         * lib/unistr/u16-to-u8.c: New file.
48021
48022         * modules/unistr/u16-to-u32: New file.
48023         * lib/unistr/u16-to-u32.c: New file.
48024
48025         * modules/unistr/u32-to-u8: New file.
48026         * lib/unistr/u32-to-u8.c: New file.
48027
48028         * modules/unistr/u32-to-u16: New file.
48029         * lib/unistr/u32-to-u16.c: New file.
48030
48031         * modules/unistr/u8-check: New file.
48032         * modules/unistr/u16-check: New file.
48033         * modules/unistr/u32-check: New file.
48034         * lib/unistr/u8-check.c: New file.
48035         * lib/unistr/u16-check.c: New file.
48036         * lib/unistr/u32-check.c: New file.
48037
48038         * modules/unistr/u8-chr: New file.
48039         * modules/unistr/u16-chr: New file.
48040         * modules/unistr/u32-chr: New file.
48041         * lib/unistr/u8-chr.c: New file.
48042         * lib/unistr/u16-chr.c: New file.
48043         * lib/unistr/u32-chr.c: New file.
48044
48045         * modules/unistr/u8-cmp: New file.
48046         * modules/unistr/u16-cmp: New file.
48047         * modules/unistr/u32-cmp: New file.
48048         * lib/unistr/u8-cmp.c: New file.
48049         * lib/unistr/u16-cmp.c: New file.
48050         * lib/unistr/u32-cmp.c: New file.
48051
48052         * modules/unistr/u8-cpy: New file.
48053         * modules/unistr/u16-cpy: New file.
48054         * modules/unistr/u32-cpy: New file.
48055         * lib/unistr/u8-cpy.c: New file.
48056         * lib/unistr/u16-cpy.c: New file.
48057         * lib/unistr/u32-cpy.c: New file.
48058         * lib/unistr/u-cpy.h: New file.
48059
48060         * modules/unistr/u8-cpy-alloc: New file.
48061         * modules/unistr/u16-cpy-alloc: New file.
48062         * modules/unistr/u32-cpy-alloc: New file.
48063         * lib/unistr/u8-cpy-alloc.c: New file.
48064         * lib/unistr/u16-cpy-alloc.c: New file.
48065         * lib/unistr/u32-cpy-alloc.c: New file.
48066         * lib/unistr/u-cpy-alloc.h: New file.
48067
48068         * modules/unistr/u8-endswith: New file.
48069         * modules/unistr/u16-endswith: New file.
48070         * modules/unistr/u32-endswith: New file.
48071         * lib/unistr/u8-endswith.c: New file.
48072         * lib/unistr/u16-endswith.c: New file.
48073         * lib/unistr/u32-endswith.c: New file.
48074         * lib/unistr/u-endswith.h: New file.
48075
48076         * modules/unistr/u8-mblen: New file.
48077         * modules/unistr/u16-mblen: New file.
48078         * modules/unistr/u32-mblen: New file.
48079         * lib/unistr/u8-mblen.c: New file.
48080         * lib/unistr/u16-mblen.c: New file.
48081         * lib/unistr/u32-mblen.c: New file.
48082
48083         * modules/unistr/u8-mbtouc: New file.
48084         * modules/unistr/u16-mbtouc: New file.
48085         * modules/unistr/u32-mbtouc: New file.
48086         * lib/unistr/u8-mbtouc.c: New file.
48087         * lib/unistr/u16-mbtouc.c: New file.
48088         * lib/unistr/u32-mbtouc.c: New file.
48089
48090         * modules/unistr/u8-mbtouc-safe: New file.
48091         * modules/unistr/u16-mbtouc-safe: New file.
48092         * modules/unistr/u32-mbtouc-safe: New file.
48093         * lib/unistr/u8-mbtouc-safe.c: New file.
48094         * lib/unistr/u16-mbtouc-safe.c: New file.
48095         * lib/unistr/u32-mbtouc-safe.c: New file.
48096
48097         * modules/unistr/u8-move: New file.
48098         * modules/unistr/u16-move: New file.
48099         * modules/unistr/u32-move: New file.
48100         * lib/unistr/u8-move.c: New file.
48101         * lib/unistr/u16-move.c: New file.
48102         * lib/unistr/u32-move.c: New file.
48103         * lib/unistr/u-move.h: New file.
48104
48105         * modules/unistr/u8-next: New file.
48106         * modules/unistr/u16-next: New file.
48107         * modules/unistr/u32-next: New file.
48108         * lib/unistr/u8-next.c: New file.
48109         * lib/unistr/u16-next.c: New file.
48110         * lib/unistr/u32-next.c: New file.
48111
48112         * modules/unistr/u8-prev: New file.
48113         * modules/unistr/u16-prev: New file.
48114         * modules/unistr/u32-prev: New file.
48115         * lib/unistr/u8-prev.c: New file.
48116         * lib/unistr/u16-prev.c: New file.
48117         * lib/unistr/u32-prev.c: New file.
48118
48119         * modules/unistr/u8-set: New file.
48120         * modules/unistr/u16-set: New file.
48121         * modules/unistr/u32-set: New file.
48122         * lib/unistr/u8-set.c: New file.
48123         * lib/unistr/u16-set.c: New file.
48124         * lib/unistr/u32-set.c: New file.
48125         * lib/unistr/u-set.h: New file.
48126
48127         * modules/unistr/u8-startswith: New file.
48128         * modules/unistr/u16-startswith: New file.
48129         * modules/unistr/u32-startswith: New file.
48130         * lib/unistr/u8-startswith.c: New file.
48131         * lib/unistr/u16-startswith.c: New file.
48132         * lib/unistr/u32-startswith.c: New file.
48133         * lib/unistr/u-startswith.h: New file.
48134
48135         * modules/unistr/u8-stpcpy: New file.
48136         * modules/unistr/u16-stpcpy: New file.
48137         * modules/unistr/u32-stpcpy: New file.
48138         * lib/unistr/u8-stpcpy.c: New file.
48139         * lib/unistr/u16-stpcpy.c: New file.
48140         * lib/unistr/u32-stpcpy.c: New file.
48141         * lib/unistr/u-stpcpy.h: New file.
48142
48143         * modules/unistr/u8-stpncpy: New file.
48144         * modules/unistr/u16-stpncpy: New file.
48145         * modules/unistr/u32-stpncpy: New file.
48146         * lib/unistr/u8-stpncpy.c: New file.
48147         * lib/unistr/u16-stpncpy.c: New file.
48148         * lib/unistr/u32-stpncpy.c: New file.
48149         * lib/unistr/u-stpncpy.h: New file.
48150
48151         * modules/unistr/u8-strcat: New file.
48152         * modules/unistr/u16-strcat: New file.
48153         * modules/unistr/u32-strcat: New file.
48154         * lib/unistr/u8-strcat.c: New file.
48155         * lib/unistr/u16-strcat.c: New file.
48156         * lib/unistr/u32-strcat.c: New file.
48157         * lib/unistr/u-strcat.h: New file.
48158
48159         * modules/unistr/u8-strchr: New file.
48160         * modules/unistr/u16-strchr: New file.
48161         * modules/unistr/u32-strchr: New file.
48162         * lib/unistr/u8-strchr.c: New file.
48163         * lib/unistr/u16-strchr.c: New file.
48164         * lib/unistr/u32-strchr.c: New file.
48165
48166         * modules/unistr/u8-strcmp: New file.
48167         * modules/unistr/u16-strcmp: New file.
48168         * modules/unistr/u32-strcmp: New file.
48169         * lib/unistr/u8-strcmp.c: New file.
48170         * lib/unistr/u16-strcmp.c: New file.
48171         * lib/unistr/u32-strcmp.c: New file.
48172
48173         * modules/unistr/u8-strcpy: New file.
48174         * modules/unistr/u16-strcpy: New file.
48175         * modules/unistr/u32-strcpy: New file.
48176         * lib/unistr/u8-strcpy.c: New file.
48177         * lib/unistr/u16-strcpy.c: New file.
48178         * lib/unistr/u32-strcpy.c: New file.
48179         * lib/unistr/u-strcpy.h: New file.
48180
48181         * modules/unistr/u8-strcspn: New file.
48182         * modules/unistr/u16-strcspn: New file.
48183         * modules/unistr/u32-strcspn: New file.
48184         * lib/unistr/u8-strcspn.c: New file.
48185         * lib/unistr/u16-strcspn.c: New file.
48186         * lib/unistr/u32-strcspn.c: New file.
48187         * lib/unistr/u-strcspn.h: New file.
48188
48189         * modules/unistr/u8-strdup: New file.
48190         * modules/unistr/u16-strdup: New file.
48191         * modules/unistr/u32-strdup: New file.
48192         * lib/unistr/u8-strdup.c: New file.
48193         * lib/unistr/u16-strdup.c: New file.
48194         * lib/unistr/u32-strdup.c: New file.
48195         * lib/unistr/u-strdup.h: New file.
48196
48197         * modules/unistr/u8-strlen: New file.
48198         * modules/unistr/u16-strlen: New file.
48199         * modules/unistr/u32-strlen: New file.
48200         * lib/unistr/u8-strlen.c: New file.
48201         * lib/unistr/u16-strlen.c: New file.
48202         * lib/unistr/u32-strlen.c: New file.
48203         * lib/unistr/u-strlen.h: New file.
48204
48205         * modules/unistr/u8-strmblen: New file.
48206         * modules/unistr/u16-strmblen: New file.
48207         * modules/unistr/u32-strmblen: New file.
48208         * lib/unistr/u8-strmblen.c: New file.
48209         * lib/unistr/u16-strmblen.c: New file.
48210         * lib/unistr/u32-strmblen.c: New file.
48211
48212         * modules/unistr/u8-strmbtouc: New file.
48213         * modules/unistr/u16-strmbtouc: New file.
48214         * modules/unistr/u32-strmbtouc: New file.
48215         * lib/unistr/u8-strmbtouc.c: New file.
48216         * lib/unistr/u16-strmbtouc.c: New file.
48217         * lib/unistr/u32-strmbtouc.c: New file.
48218
48219         * modules/unistr/u8-strncat: New file.
48220         * modules/unistr/u16-strncat: New file.
48221         * modules/unistr/u32-strncat: New file.
48222         * lib/unistr/u8-strncat.c: New file.
48223         * lib/unistr/u16-strncat.c: New file.
48224         * lib/unistr/u32-strncat.c: New file.
48225         * lib/unistr/u-strncat.h: New file.
48226
48227         * modules/unistr/u8-strncmp: New file.
48228         * modules/unistr/u16-strncmp: New file.
48229         * modules/unistr/u32-strncmp: New file.
48230         * lib/unistr/u8-strncmp.c: New file.
48231         * lib/unistr/u16-strncmp.c: New file.
48232         * lib/unistr/u32-strncmp.c: New file.
48233
48234         * modules/unistr/u8-strncpy: New file.
48235         * modules/unistr/u16-strncpy: New file.
48236         * modules/unistr/u32-strncpy: New file.
48237         * lib/unistr/u8-strncpy.c: New file.
48238         * lib/unistr/u16-strncpy.c: New file.
48239         * lib/unistr/u32-strncpy.c: New file.
48240         * lib/unistr/u-strncpy.h: New file.
48241
48242         * modules/unistr/u8-strnlen: New file.
48243         * modules/unistr/u16-strnlen: New file.
48244         * modules/unistr/u32-strnlen: New file.
48245         * lib/unistr/u8-strnlen.c: New file.
48246         * lib/unistr/u16-strnlen.c: New file.
48247         * lib/unistr/u32-strnlen.c: New file.
48248         * lib/unistr/u-strnlen.h: New file.
48249
48250         * modules/unistr/u8-strpbrk: New file.
48251         * modules/unistr/u16-strpbrk: New file.
48252         * modules/unistr/u32-strpbrk: New file.
48253         * lib/unistr/u8-strpbrk.c: New file.
48254         * lib/unistr/u16-strpbrk.c: New file.
48255         * lib/unistr/u32-strpbrk.c: New file.
48256         * lib/unistr/u-strpbrk.h: New file.
48257
48258         * modules/unistr/u8-strrchr: New file.
48259         * modules/unistr/u16-strrchr: New file.
48260         * modules/unistr/u32-strrchr: New file.
48261         * lib/unistr/u8-strrchr.c: New file.
48262         * lib/unistr/u16-strrchr.c: New file.
48263         * lib/unistr/u32-strrchr.c: New file.
48264
48265         * modules/unistr/u8-strspn: New file.
48266         * modules/unistr/u16-strspn: New file.
48267         * modules/unistr/u32-strspn: New file.
48268         * lib/unistr/u8-strspn.c: New file.
48269         * lib/unistr/u16-strspn.c: New file.
48270         * lib/unistr/u32-strspn.c: New file.
48271         * lib/unistr/u-strspn.h: New file.
48272
48273         * modules/unistr/u8-strstr: New file.
48274         * modules/unistr/u16-strstr: New file.
48275         * modules/unistr/u32-strstr: New file.
48276         * lib/unistr/u8-strstr.c: New file.
48277         * lib/unistr/u16-strstr.c: New file.
48278         * lib/unistr/u32-strstr.c: New file.
48279         * lib/unistr/u-strstr.h: New file.
48280
48281         * modules/unistr/u8-strtok: New file.
48282         * modules/unistr/u16-strtok: New file.
48283         * modules/unistr/u32-strtok: New file.
48284         * lib/unistr/u8-strtok.c: New file.
48285         * lib/unistr/u16-strtok.c: New file.
48286         * lib/unistr/u32-strtok.c: New file.
48287         * lib/unistr/u-strtok.h: New file.
48288
48289         * modules/unistr/u8-uctomb: New file.
48290         * modules/unistr/u16-uctomb: New file.
48291         * modules/unistr/u32-uctomb: New file.
48292         * lib/unistr/u8-uctomb.c: New file.
48293         * lib/unistr/u16-uctomb.c: New file.
48294         * lib/unistr/u32-uctomb.c: New file.
48295
48296         * MODULES.html.sh (Unicode string functions): Add the new modules.
48297
48298 2007-01-08  Bruno Haible  <bruno@clisp.org>
48299
48300         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
48301         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
48302         subdirectories.
48303
48304 2007-01-08  Karl Berry  <karl@gnu.org>
48305
48306         * doc/error.texi: mention that main() fns must set program_name
48307         when progname is used.
48308
48309 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
48310
48311         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
48312         WCTYPE_H is empty, for the benefit of builds from non-distclean
48313         directories.  Problem reported by Eric Blake in
48314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
48315
48316 2007-01-08  Bruno Haible  <bruno@clisp.org>
48317
48318         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
48319         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
48320         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
48321         PROVIDE_CANONICALIZE_FILENAME_MODE.
48322         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
48323
48324 2007-01-08  Bruno Haible  <bruno@clisp.org>
48325
48326         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
48327         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
48328         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
48329         * lib/fts.c: Likewise.
48330         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
48331
48332 2006-12-25  Bruno Haible  <bruno@clisp.org>
48333
48334         * modules/utf8-ucs4-safe: New file.
48335         * lib/utf8-ucs4-safe.h: New file.
48336         * lib/unistr/utf8-ucs4-safe.c: New file.
48337
48338         * modules/utf16-ucs4-safe: New file.
48339         * lib/utf16-ucs4-safe.h: New file.
48340         * lib/unistr/utf16-ucs4-safe.c: New file.
48341
48342         * MODULES.html.sh (Unicode string functions): Add the new modules.
48343
48344 2007-01-08  Bruno Haible  <bruno@clisp.org>
48345
48346         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
48347         (Depends-on): Add unitypes.
48348         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48349         (u8_mbtouc_aux): Move out to separate file.
48350         (u8_mbtouc): Use ucs4_t, uint8_t types.
48351         * lib/unistr/utf8-ucs4.c: New file.
48352
48353         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
48354         (Depends-on): Add unitypes.
48355         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48356         (u16_mbtouc_aux): Move out to separate file.
48357         (u16_mbtouc): Use ucs4_t, uint16_t types.
48358         * lib/unistr/utf16-ucs4.c: New file.
48359
48360         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
48361         (Depends-on): Add unitypes.
48362         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
48363         (u8_uctomb_aux): Move out to separate file.
48364         (u8_uctomb): Use ucs4_t, uint8_t types.
48365         * lib/unistr/ucs4-utf8.c: New file.
48366
48367         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48368         (Depends-on): Add unitypes.
48369         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48370         (u16_uctomb_aux): Move out to separate file.
48371         (u16_uctomb): Use ucs4_t, uint16_t types.
48372         * lib/unistr/ucs4-utf16.c: New file.
48373
48374 2006-12-25  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/unitypes: New file.
48377         * lib/unitypes.h: New file.
48378         * MODULES.html.sh (func_all_modules): New section "Unicode string
48379         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48380         this section. Add unitypes.
48381
48382 2007-01-08  Bruno Haible  <bruno@clisp.org>
48383
48384         Avoid variable names that conflict with those from libtool.
48385         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48386         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48387         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48388         library_names_spec to acl_library_names_spec, hardcode_* to
48389         acl_hardcode_*.
48390         Reported by Ralf Wildenhues.
48391
48392 2007-01-08  Bruno Haible  <bruno@clisp.org>
48393
48394         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48395         definition.
48396         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48397         definition.
48398         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48399         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48400         definition.
48401         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48402         definition.
48403         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48404         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48405         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48406         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48407         definition.
48408         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48409         definition.
48410         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48411         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48412         GC_USE_<algorithm>.
48413         * lib/gc-libgcrypt.c: Likewise.
48414         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48415         * modules/gc-arctwo (configure.ac): Likewise.
48416         * modules/gc-des (configure.ac): Likewise.
48417         * modules/gc-hmac-md5 (configure.ac): Likewise.
48418         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48419         * modules/gc-md2 (configure.ac): Likewise.
48420         * modules/gc-md4 (configure.ac): Likewise.
48421         * modules/gc-md5 (configure.ac): Likewise.
48422         * modules/gc-random (configure.ac): Likewise.
48423         * modules/gc-rijndael (configure.ac): Likewise.
48424         * modules/gc-sha1 (configure.ac): Likewise.
48425
48426 2007-01-08  Bruno Haible  <bruno@clisp.org>
48427
48428         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48429         macro definition.
48430         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48431         definition.
48432         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48433         definition.
48434         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48435         * modules/fcntl-safer (configure.ac): Likewise.
48436         * modules/fopen-safer (configure.ac): Likewise.
48437         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48438         GNULIB_FWRITEERROR macro definition.
48439
48440 2007-01-08  Bruno Haible  <bruno@clisp.org>
48441
48442         * m4/gnulib-common.m4: New file.
48443         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48444         (func_get_filelist): Add m4/gnulib-common.m4.
48445
48446 2007-01-08  Bruno Haible  <bruno@clisp.org>
48447
48448         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48449         command.
48450
48451 2007-01-08  Jim Meyering  <jim@meyering.net>
48452
48453         Use a more robust test for a "can't happen" condition.
48454         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48455         narrowed the st_size value.  Presuming the "can't happen" condition
48456         is true, that narrowing could conceivably convert an invalid st_size
48457         value into a valid one.  Instead, use a change based on Matthew
48458         Woehlke's original patch.
48459
48460         Slight readability improvement: use an assert-like macro
48461         in place of literal "abort ()" uses.
48462         * lib/fts.c (fts_assert): Define.
48463         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48464         Use this macro instead of a bare 'abort'.
48465
48466 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48467
48468         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48469         simply work around them.
48470         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48471         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48472         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48473         declaring.
48474         Don't bother to define as macros, since the standard doesn't require it.
48475         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48476         longer worry about IRIX 5.3.
48477         (HAVE_WCTYPE_CTMP_BUG): Remove.
48478
48479 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48480
48481         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48482         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48483         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48484         Problems reported by Georg Schwarz for IRIX 5.3.
48485
48486         * gnulib-tool (autoconf_minversion): Take the maximum version number
48487         found, not the minimum.  Problem reported by James Youngman.
48488
48489 2007-01-03  Karl Berry  <karl@gnu.org>
48490
48491         * doc/error.texi: new file, explaining interaction with progname.
48492         * doc/gnulib.texi: include it.  Update copyright.
48493
48494 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48495
48496         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48497         AC_CANONICAL_HOST, to improve autobuild outputs.
48498
48499 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48500             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48501
48502         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48503         sockets, server sockets, and other file descriptors.  Count errors
48504         to compute the return value.  Reorder the code a bit to be easier
48505         to follow.  Don't set event bits that were not requested (except
48506         POLLERR and POLLHUP).
48507
48508 2007-01-01  Bruno Haible  <bruno@clisp.org>
48509
48510         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48511
48512 2007-01-03  Jim Meyering  <jim@meyering.net>
48513
48514         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48515
48516 2007-01-02  Bruno Haible  <bruno@clisp.org>
48517
48518         * modules/settime (Include): Require timespec.h.
48519         * modules/nanosleep (Include): Likewise.
48520
48521 2007-01-01  Bruno Haible  <bruno@clisp.org>
48522
48523         * gnulib-tool (func_emit_copyright_notice): Bump year.
48524         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48525
48526 2007-01-01  Bruno Haible  <bruno@clisp.org>
48527
48528         Improve support for OpenBSD.
48529         * build-aux/config.rpath (libname_spec): Export.
48530         (library_names_spec): New variable. Export.
48531         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48532         library_names_spec from the config.rpath output. Locate shared library
48533         through the name pattern in library_names_spec.
48534
48535 2007-01-01  Eric Blake  <ebb9@byu.net>
48536
48537         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48538
48539 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48540
48541         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48542         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48543         assume the C locale, and avoid an "eval" that could cause trouble.
48544         Problem with SORT reported by Bob Proulx.
48545
48546         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48547         Define.  Trivial patch from Henning Nielsen Lund, originally
48548         sent to bug-grep@gnu.org today.
48549
48550 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48551
48552         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48553         struct stat.  Problem reported by Henning Nielsen Lund.
48554         * lib/acl.c: Include acl.h first, to check interface.  Don't
48555         bother to include sys/types.h and sys/stat.h again.
48556
48557 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48558
48559         Import the following change from libc; problem reported by
48560         Sven Verdoolaege.
48561
48562         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48563
48564         [BZ #1373]
48565         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48566
48567 2006-12-28  Jim Meyering  <jim@meyering.net>
48568
48569         * build-aux/announce-gen: Do not assume that the package
48570         builds any of tar.gz, tar.bz2, and .xdelta files.
48571         Suggestion from Simon Josefsson.
48572
48573 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48574
48575         * modules/announce-gen: New file.
48576
48577 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48578
48579         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48580         handles its gotchas now.
48581         * lib/mbswidth.c: Likewise.
48582         * lib/wcwidth.h: Likewise.
48583         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48584         and iswcntrl; the wctype module does this stuff now.
48585         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48587         * modules/mbchar (Depends-on): Add wctype.
48588         * modules/mbswidth (Depends-on): Likewise.
48589         * modules/wcwidth (Depends-on): Likewise.
48590
48591 2006-12-27  Eric Blake  <ebb9@byu.net>
48592
48593         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48594         module uses more than what <wctype.h> is required to provide.
48595
48596 2006-12-26  Eric Blake  <ebb9@byu.net>
48597
48598         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48599
48600 2006-12-26  Eric Blake  <ebb9@byu.net>
48601
48602         * modules/absolute-header: New module.
48603         * modules/fcntl (Depends-on): Depend on it.
48604         * modules/inttypes (Depends-on): Likewise.
48605         * modules/stdint (Depends-on): Likewise.
48606         * modules/sys_stat (Depends-on): Likewise.
48607         * modules/wctype (Depends-on): Likewise.
48608         * MODULES.html.sh (Support for building libraries and
48609         executables): Document it.
48610
48611 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48612
48613         * gnulib-tool (SED): Remove, undoing previous change.
48614         The problem was that it broke coreutils on Solaris, because
48615         "sed --posix" leaked into a makefile.
48616         (sed): New alias, if 'alias' and GNU sed.
48617
48618 2006-12-24  Jim Meyering  <jim@meyering.net>
48619
48620         Work around an fchownat bug in glibc-2.4:
48621         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48622         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48623         in spite of the -P option.
48624         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48625         New macros.
48626         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48627         * modules/openat (Files): Add lib/fchownat.c.
48628         * lib/openat.c (fchownat): Don't define here.  Move to...
48629         * lib/fchownat.c: ...this new file.
48630
48631 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48632
48633         Fix bug reported by Bruno Haible in
48634         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48635         where quotearg.c didn't compile on Mac OS X 10.2 because it
48636         lacks <wchar.h> and wint_t.
48637         * lib/wctype_.h (__wctype_wint_t): New type.
48638         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48639         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48640         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48641         Arg is now of type __wctype_wint_t, not wint_t.
48642         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48643         substitute HAVE_WINT_T.
48644         * modules/wctype (Files): Add m4/wint_t.m4.
48645         (wctype.h): Substitute HAVE_WINT_T.
48646
48647 2006-12-23  Bruno Haible  <bruno@clisp.org>
48648
48649         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
48650
48651 2006-12-23  Bruno Haible  <bruno@clisp.org>
48652
48653         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
48654         S_ISLNK.
48655         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
48656         mingw.
48657
48658 2006-12-22  Bruno Haible  <bruno@clisp.org>
48659
48660         * lib/copy-file.c: Include acl.h.
48661         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
48662         Close the file descriptors only after being done with copy_acl.
48663         * modules/copy-file (Depends-on): Add acl.
48664
48665 2006-12-22  Bruno Haible  <bruno@clisp.org>
48666
48667         * gnulib-tool (SED): New variable.
48668         Use $SED instead of sed everywhere.
48669
48670 2006-12-22  Bruno Haible  <bruno@clisp.org>
48671
48672         * modules/no-c++: New file.
48673         * m4/no-c++.m4: New file.
48674         * MODULES.html.sh (Support for building libraries and executables):
48675         Add no-c++.
48676
48677 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48678
48679         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48680         Include <limits.h>, and use its INT_MAX to rewrite the
48681         j loop so that it does not overflow 'int'.  Problem reported by
48682         Ralf Wildenhues in
48683         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
48684         Play it safe by shifting left by 1 rather than multiplying by 2,
48685         as GCC is less likely to optimize this away when the value
48686         is signed (when it assumes overflow leads to undefined behavior).
48687         Also, don't assume time_t uses two's complement.
48688
48689 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
48690
48691         * MODULES.html.sh: New module wctype.
48692         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
48693         * lib/fnmatch.c: Don't bother to include <wchar.h> before
48694         <wctype.h>, since the new wctype module should fix this.
48695         * lib/quotearg.c: Include <wctype.h> unconditionally, since
48696         the wctype module should arrange for it.
48697         * lib/regex_internal.h: Likewise.
48698         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
48699         since the wctype module should handle this now.
48700         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
48701         * modules/fnmatch (Depends-on): Add wctype.
48702         * modules/quotearg (Depends-on): Likewise.
48703         * modules/regex (Depends-on): Likewise.
48704
48705 2006-12-19  Bruno Haible  <bruno@clisp.org>
48706
48707         * lib/strdup.h [C++]: Wrap definitions in extern "C".
48708         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
48709
48710 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48711
48712         * modules/savewd (Depends-on): Fix dependency on fcntl.
48713
48714 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48715
48716         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
48717         conforms to C99, rather than relying on the user's environment
48718         setting of STDINT_H.
48719
48720 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48721         and Eric Blake  <ebb9@byu.net>
48722
48723         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
48724         This is more consistent with the other defines here.
48725         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
48726         Port to z/OS.  Problem reported by Paul Gilmartin.
48727         Change local vars to use gl_ prefix rather than ac_.
48728         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
48729         with other defines.
48730         * modules/double-slash-root: New module.
48731         * modules/dirname (Files): Remove m4/double-slash-root.m4.
48732         (Depends-on): Add double-slash-root.
48733         * MODULES.html.sh (File system functions): Mention new module.
48734
48735 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
48736
48737         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
48738         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
48739         This is for the benefit of gzip, which doesn't do i18n.
48740
48741 2006-12-12  Jim Meyering  <jim@meyering.net>
48742
48743         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
48744         Reported by Andreas Schwab <schwab@suse.de>.
48745
48746 2006-12-12  Bruno Haible  <bruno@clisp.org>
48747
48748         Merge these changes.
48749         2006-09-05  Bruno Haible  <bruno@clisp.org>
48750         * lib/iconvme.c (iconv_string): No need to save and restore errno when
48751         iconv_alloc succeeded.
48752         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
48753         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
48754         test for " && dest " at the end - dest is always != NULL there. Call
48755         iconv with 4xNULL arguments initially, to reset the state. Call iconv
48756         with 2xNULL arguments, also to flush the state storage. Handle the
48757         IRIX iconv behaviour. Realloc the final result, to throw away unused
48758         memory.
48759
48760 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
48761
48762         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
48763         and fchmodat unconditionally, since glibc 2.4 has them.
48764         Problem reported by Arkadiusz Miskiewicz.
48765
48766 2006-12-10  Bruno Haible  <bruno@clisp.org>
48767
48768         * gnulib-tool (func_import): Show the include files only for those
48769         modules that are copied and specified.
48770         Reported by Karl Berry.
48771
48772 2006-12-08  Jim Meyering  <jim@meyering.net>
48773
48774         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
48775         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
48776
48777         * build-aux/announce-gen: Add two new options, both optional:
48778         --bootstrap-tools=TOOL_LIST
48779               a comma-separated list of tools, e.g.,
48780               autoconf,automake,bison,gnulib
48781         --gnulib-snapshot-date=DATE
48782               if gnulib is in the bootstrap tool list,
48783               then report this as the snapshot date.
48784               If not specified, use the current date/time.
48785               If you specify a date here, be sure it's UTC.
48786
48787 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48788
48789         * tests/test-argp-2.sh: Fix test to match actual output.
48790         (func_compare): Fix sed script to be portable.
48791
48792 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
48793
48794         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
48795         workaround for this case.  It is not autoconfigured now; offhand
48796         it's hard to see how to autoconfigure it.
48797
48798 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48799
48800         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
48801         a directory that is about to be chowned.  Such a directory's
48802         initial file permissions should permit the owner only and this
48803         should not be changed until after the chown, since the group and
48804         other bits would be incorrect if they granted permission before
48805         the chown.
48806
48807         Fix porting problem for iswctype reported by Georg Schwarz in:
48808         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
48809         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
48810         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48811         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48812         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48813
48814 2006-12-03  Jim Meyering  <jim@meyering.net>
48815
48816         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48817         p->fts_statp may not yet be defined.
48818         (fts_read): Instead, set it in the caller, once p->fts_statp is
48819         sure to be defined, and corresponds to a top-level directory.
48820         This bug made du -x fail.  Here's the coreutils test case:
48821         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48822         Reported by Mike Frysinger.
48823
48824 2006-12-01  Jim Meyering  <jim@meyering.net>
48825
48826         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48827         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48828         Reported by Simon Josefsson.
48829
48830 2006-11-30  Jim Meyering  <jim@meyering.net>
48831
48832         * m4/warning.m4: Use the all-permissive copyright notice
48833         recommended by RMS (rather than LGPL).
48834         * m4/vararrays.m4: Likewise.
48835         * m4/flexmember.m4: Likewise.
48836
48837 2006-11-29  Bruno Haible  <bruno@clisp.org>
48838
48839         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48840         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48841         using +=.
48842         Reported by Simon Josefsson <simon@josefsson.org>.
48843
48844 2006-11-28  James Youngman <jay@gnu.org>
48845
48846         * README: Advise users that they might find the bug-gnulib@gnu.org
48847         and autotools-announce@gnu.org mailing lists useful.
48848
48849 2006-11-28  Bruno Haible  <bruno@clisp.org>
48850
48851         * m4/ptrdiff_max.m4: Remove file.
48852
48853 2006-11-21  Bruno Haible  <bruno@clisp.org>
48854
48855         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48856         _AC_COMPUTE_INT.
48857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48858         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48859         _AC_COMPUTE_INT.
48860         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48861         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48862         _AC_COMPUTE_INT.
48863         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48864
48865 2006-11-28  Jim Meyering  <jim@meyering.net>
48866
48867         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48868         warning from "gcc -Wshadow" about shadowing the builtin.
48869
48870 2006-11-27  Bruno Haible  <bruno@clisp.org>
48871
48872         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48873         _AC_COMPUTE_INT.
48874         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48875
48876 2006-11-27  Bruno Haible  <bruno@clisp.org>
48877             Paul Eggert  <eggert@cs.ucla.edu>
48878
48879         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48880
48881 2006-11-26  Bruno Haible  <bruno@clisp.org>
48882
48883         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48884         noinst_LTLIBRARIES.
48885
48886 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48887             Bruno Haible  <bruno@clisp.org>
48888
48889         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48890         if compiling with "gcc -ansi".
48891
48892 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48893
48894         Fix some incompatibilities with gcc -ansi -pedantic.
48895         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48896         if compiling pedantically with GCC, unless it's C99 or later.
48897         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48898         it mishandles gcc -ansi -pedantic as well.
48899         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48900         if gcc -pedantic.
48901         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48902         initializers for struct if -pedantic, unless it's C99 or later.
48903
48904 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48905
48906         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48907         Don't close an fd more than once. Identical atimes indicate
48908         success, not failure.
48909
48910 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48911
48912         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48913
48914 2006-11-23  Jim Meyering  <jim@meyering.net>
48915
48916         * build-aux/announce-gen: New file.  From coreutils.
48917
48918 2006-11-22  Jim Meyering  <jim@meyering.net>
48919
48920         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48921         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48922         (fts_read): Use a temporary to narrow the overused st_size member
48923         before using it in a switch statement.  Reported by Matthew Woehlke.
48924
48925         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48926         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48927
48928 2006-11-20  Bruno Haible  <bruno@clisp.org>
48929
48930         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48931         changequote instead of pairs of brackets.
48932         Reported by Andreas Schwab <schwab@suse.de>.
48933
48934 2006-11-21  Jim Meyering  <jim@meyering.net>
48935
48936         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48937         so as to remain compatible with older compilers.
48938         Patch from Michael Deutschmann.
48939
48940 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48941
48942         * MODULES.html.sh (File system functions): Add openat.
48943
48944         * lib/openat.h (rpl_fstatat): New macro, if
48945         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48946         (fstatat): Define to rpl_fstatat under the same conditions,
48947         unless COMPILING_FSTATAT.
48948         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48949         seems to have the bug.
48950         * lib/fstatat.c: New file.
48951         * modules/openat (Files): Add it.
48952
48953 2006-11-20  Bruno Haible  <bruno@clisp.org>
48954
48955         * Makefile: New file.
48956
48957 2006-11-20  Jim Meyering  <jim@meyering.net>
48958
48959         The beginnings of syntax-related checks for gnulib.
48960         * lib/Makefile: New file.
48961         * lib/t-idcache: New script.  Ensure that the two halves of
48962         idcache.c stay in sync.
48963
48964         * lib/idcache.c: Adjust comments in user- and group- portions to
48965         be more accurate, and to be consistent with one another.
48966
48967 2006-11-20  Jim Meyering  <jim@meyering.net>
48968
48969         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48970         continue using the flexible array member (thus, this module performs
48971         half as many malloc calls), with the addition that...
48972         (getgroup, getuser): Consistently record a non-match via an empty
48973         "name" string, and map an empty string match to a NULL return value.
48974         * modules/idcache (Depends-on): Re-add flexmember.
48975
48976         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48977         (getuidbyname, getgroup, getgidbyname): Likewise.
48978
48979         Use cleaner syntax: NULL rather than 0.
48980         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48981
48982 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48983
48984         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48985         It mishandled the case where the group was missing.
48986         Problem reported by Greg Schafer.
48987         * modules/idcache: Likewise.
48988
48989 2006-11-18  Jim Meyering  <jim@meyering.net>
48990
48991         * check-module (%exempt_header): Add exception for some
48992         conditionally-included headers.
48993
48994         * modules/i-ring (Depends-on): Add verify.
48995         (License): Change to LGPL.
48996
48997 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48998
48999         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
49000         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
49001         and inttostr.h.  Use snprintf rather than uinttostr, so that
49002         LGPLed code doesn't depend on GPLed.
49003
49004 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
49005
49006         * modules/inline (License): Change from GPL to LGPL.
49007
49008 2006-11-17  Jim Meyering  <jim@meyering.net>
49009
49010         * modules/d-type (License): Switch to LGPL.
49011
49012 2006-11-15  Bruno Haible  <bruno@clisp.org>
49013
49014         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
49015
49016 2006-11-15  Eric Blake  <ebb9@byu.net>
49017
49018         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
49019         the module dependency.
49020
49021 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49022             Bruno Haible  <bruno@clisp.org>
49023
49024         * gnulib-tool (func_create_testdir): Add license consistency check.
49025
49026 2006-11-15  Eric Blake  <ebb9@byu.net>
49027
49028         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
49029         random "(cached)" in configure output.
49030
49031 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49032
49033         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
49034         test for conforming inttypes.h is both announced and cached.
49035
49036         * MODULES.html.sh (seen_modules, seen_files): New variables.
49037         (func_module): Rewrite to use a few less gnulib-tool and sed
49038         invocations.  Avoid a couple of quadratic algorithms for ...
49039         (missed_modules, missed_files): ... these, with ...
49040         (func_append, func_tmpdir): ... these new functions, from
49041         gnulib-tool.  Analogously, install traps for cleanup.
49042
49043         * tests/test-gc.c (main): Remove unused variables.
49044         * tests/test-read-file.c: Include stdlib.h, for 'free'.
49045
49046 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
49047
49048         * modules/inttostr (License): Change to LGPL.
49049
49050 2006-11-14  Eric Blake  <ebb9@byu.net>
49051
49052         * modules/tempname (License): Change to LGPL.
49053
49054 2006-11-14  Eric Blake  <ebb9@byu.net>
49055
49056         * doc/functions.texi (Function Portability): *printf functions on
49057         Cygwin now understand all POSIX size specifiers.
49058
49059 2006-11-14  Bruno Haible  <bruno@clisp.org>
49060
49061         * modules/c-ctype (License): Change to LGPL.
49062
49063 2006-11-12  Bruno Haible  <bruno@clisp.org>
49064
49065         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49066         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
49067         for GNOME libraries, for which the include files are installed in
49068         subdirectories of $prefix/include.
49069
49070 2006-11-12  Bruno Haible  <bruno@clisp.org>
49071
49072         * m4/lib-link.m4: Require at least autoconf-2.54.
49073         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
49074         name to underscores for the --with option.
49075
49076 2006-11-13  Bruno Haible  <bruno@clisp.org>
49077
49078         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
49079         the tests directory.
49080         Reported by Ralf Wildenhues.
49081
49082 2006-11-13  Bruno Haible  <bruno@clisp.org>
49083
49084         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
49085         (func_emit_initmacro_end): Undo the override here.
49086         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
49087         Works around the famous automake error in coreutils.
49088
49089 2006-11-13  Eric Blake  <ebb9@byu.net>
49090
49091         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
49092         element, not its node.
49093
49094 2006-11-12  Bruno Haible  <bruno@clisp.org>
49095
49096         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
49097         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
49098
49099 2006-11-12  Bruno Haible  <bruno@clisp.org>
49100
49101         * gnulib-tool: New option --local-symlink.
49102         (func_usage): Document it.
49103         (lsymbolic): New variable.
49104         (func_import, func_create_testdir): If --symlink was not specified,
49105         test whether --local-symlink was specified and the file comes from
49106         the local_gnulib_dir.
49107
49108 2006-11-12  Bruno Haible  <bruno@clisp.org>
49109
49110         * gnulib-tool (func_ln): New function.
49111         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
49112
49113 2006-11-12  Bruno Haible  <bruno@clisp.org>
49114
49115         Finish support for source files in subdirectories.
49116         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
49117         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
49118         AUTOMAKE_OPTIONS.
49119         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
49120
49121 2006-11-12  Bruno Haible  <bruno@clisp.org>
49122
49123         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49124         EXTRA_lib_SOURCES augmentation.
49125         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
49126
49127 2006-11-12  Jim Meyering  <jim@meyering.net>
49128
49129         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
49130         file descriptors.  This also averts a failure on systems with
49131         native openat support when a traversed directory lacks "x" access.
49132         * lib/fts_.h: Include "i-ring.h"
49133         (struct FTS) [fts_fd_ring]: New member.
49134         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
49135         (FCHDIR): Add parentheses.
49136         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
49137         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
49138         When descending, rather than simply closing the previous
49139         fts_cwd_fd value, push that file descriptor onto the ring.
49140         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
49141         (fts_open): Initialize the new fd_ring member.
49142         (fts_close): Clear the ring.
49143         (fts_safe_changedir): When possible, use our new fd_ring to skip
49144         the diropen and fstat and dev/ino comparison that would normally
49145         accompany a virtual `chdir ("..")'.
49146
49147         * modules/fts (Depends-on): Add i-ring.
49148         * modules/i-ring: New module.
49149         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
49150         * m4/i-ring.m4: New file.
49151
49152 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49153
49154         * gnulib-tool (func_create_testdir): Fix replacement of
49155         `build-aux' in configure.ac.  Run autotools in gltests
49156         subdirectory.
49157         (func_create_testdir, func_create_megatestdir, test): There is
49158         no need for '--force' in most autotool invocations in a new
49159         tree.  Actually fail the whole test if any of the tools, or the
49160         configure or make stages fail.
49161
49162         Sync from Automake.
49163         * build-aux/gnupload: Revert last change.  Add pointer to upload
49164         instructions of the GNU Maintenance Instructions.
49165         Suggestion by Karl Berry.
49166
49167 2006-11-10  Jim Meyering  <jim@meyering.net>
49168
49169         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
49170
49171 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49172
49173         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
49174         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
49175         (bind_textdomain_codeset) [! ENABLE_NLS]:
49176         Evaluate all the arguments.  That way, callers get compatible behavior
49177         if the arguments have side effects.  Also, it avoids some GCC
49178         diagnostics in some cases; Joel E. Denny reported problems when Bison
49179         was configured with --enable-gcc-warnigs.
49180
49181 2006-11-10  Jim Meyering  <jim@meyering.net>
49182
49183         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
49184         relevant options in CFLAGS (like -O, -fno-inline) are taken into
49185         account.
49186
49187 2006-11-10  Jim Meyering  <jim@meyering.net>
49188
49189         * modules/inline: New file/module.
49190         * modules/xalloc (Files): Remove m4/inline.m4.
49191         (Depends-on): Add inline, instead.
49192         * modules/oset: Likewise.
49193         * modules/list: Likewise.
49194
49195 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49196
49197         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
49198         Problem reported by Matthew Woehlke.
49199
49200 2006-11-09  Bruno Haible  <bruno@clisp.org>
49201
49202         * lib/tempname.c (gen_tempname): Remove variant that invokes
49203         __gen_tempname.
49204         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
49205         __gen_tempname.
49206
49207 2006-11-08  Bruno Haible  <bruno@clisp.org>
49208
49209         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
49210         to 'yes' instead of 'cross-compiling'.
49211
49212 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
49213
49214         * lib/quotearg.h (quotearg_free): New decl.
49215         * lib/quotearg.c (quotearg_free): New function.
49216         (slot0, nslots, slotvec0, slotvec):
49217         Now file-scope so that quotearg_free can get at them.
49218
49219 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49220
49221         Sync from Automake.
49222         * build-aux/gnupload: Add missing 'gnu' to example URL.
49223         Report by Karl Berry.
49224
49225 2006-11-08  Bruno Haible  <bruno@clisp.org>
49226
49227         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
49228         Suggested by Paul Eggert.
49229
49230 2006-11-08  Jim Meyering  <jim@meyering.net>
49231
49232         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
49233         It's already included if !_LIBC.
49234         (fts_safe_changedir): Add a comment.
49235
49236 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49237
49238         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
49239         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
49240         Matthew Woehlke.
49241
49242         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
49243         definitions up, to avoid colliding with change below.
49244         (static_inline) [HAVE_INLINE]: New macro.
49245         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
49246         Provide extern decls when !HAVE_INLINE.  Do not define unless
49247         static_inline is defined, either by us or by xmalloc.c.  Use
49248         static_inline rather than static inline.
49249         (XCALLOC): Optimize sizeof(T) = 1 case.
49250         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
49251
49252 2006-11-07  Bruno Haible  <bruno@clisp.org>
49253
49254         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
49255         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
49256         AC_C_INLINE.
49257         * modules/xalloc (Files): Add m4/inline.m4.
49258
49259 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49260
49261         * README: Fix typo.
49262         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
49263         (Miscellanous Notes): ...from this.
49264
49265 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49266
49267         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
49268         Mention that offsetof should be used instead of sizeof.
49269         From Bruno Haible.
49270
49271 2006-11-07  Bruno Haible  <bruno@clisp.org>
49272
49273         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
49274
49275 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49276
49277         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49278         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
49279         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49280         (gl_tree_add_before, gl_tree_add_after):
49281         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
49282         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
49283         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49284         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
49285         (gl_linked_add_after, gl_linked_add_at): Likewise.
49286         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
49287         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49288         (gl_tree_add_before, gl_tree_add_after): Likewise.
49289         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
49290         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
49291         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
49292
49293 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49294
49295         * lib/gl_oset.h: Use C comment style, not C++ comment style.
49296
49297 2006-11-06  Bruno Haible  <bruno@clisp.org>
49298
49299         * m4/inline.m4: New file.
49300         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
49301         * modules/list (Files): Add m4/inline.m4.
49302         * modules/oset (Files): Likewise.
49303
49304 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49305
49306         * lib/idcache.c: Include <stddef.h>, for offsetof.
49307         (struct userid.name): Change from char * to a flexible array member.
49308         All uses changed.
49309         * modules/idcache (Depends-on): Add flexmember.
49310
49311         * MODULES.html.sh (Core language properties): New module flexmember.
49312         * modules/flexmember, m4/flexmember.m4: New files.
49313
49314         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
49315         inline functions that are identical with the old xnmalloc_inline,
49316         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
49317         that we can avoid some unnecessary integer multiplications and
49318         divisions in the common case where the element size is known at
49319         compile time.
49320         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
49321         needed.
49322         (xnboundedmalloc): Remove.
49323         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
49324         arguments, for consistency with rest of this header.
49325         (xcharalloc): Rewrite using XNMALLOC.
49326         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
49327         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
49328         versions have been moved to lib/xalloc.h and renamed to be the
49329         non-*_inline versions.
49330         (xmalloc, xrealloc): Implement without reference to the xnmalloc
49331         and xnrealloc functions, since those functions are now inline and
49332         now call us.
49333         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
49334         renaming described above.
49335         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
49336         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
49337         captures the dependency in AC_C_INLINE.
49338
49339         New module canonicalize-lgpl, proposed by Charles Wilson in
49340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
49341         with a few small changes afterwards.
49342         * MODULES.html.sh (File system functions): New module
49343         canonicalize-lgpl.
49344         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
49345         and canonicalize_file_name.
49346         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
49347         * modules/canonicalize-lgpl: New files.
49348
49349 2006-11-05  Bruno Haible  <bruno@clisp.org>
49350
49351         * gnulib-tool (func_import, func_create_testdir): Create directories
49352         also for files in subdirectories of lib/.
49353
49354 2006-11-05  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
49357         ANSI C compliant.
49358
49359 2006-11-03  Bruno Haible  <bruno@clisp.org>
49360
49361         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49362         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
49363         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
49364         (xnboundedmalloc): New inline function.
49365         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
49366         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49367         xmalloc.
49368         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49369         xmalloc.
49370         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49371         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49372         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49373         xmalloc.
49374         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49375         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49376         xmalloc.
49377         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49378         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49379         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49380         xmalloc.
49381         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49382         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49383         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49384         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49385         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49386         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49387         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49388
49389 2006-11-03  Bruno Haible  <bruno@clisp.org>
49390
49391         * lib/c-ctype.h [C++]: Define functions without name mangling.
49392         * lib/fwriteerror.h [C++]: Likewise.
49393         * lib/gcd.h [C++]: Likewise.
49394         * lib/linebreak.h [C++]: Likewise.
49395
49396 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49397
49398         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49399         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49400         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49401         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49402         Check for functions and headers just once.
49403         Check for declaration of canonicalize_file_name.
49404         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49405
49406 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49407
49408         * gnulib-tool (func_import): Fix typo in actioncmd.
49409
49410 2006-11-02  Bruno Haible  <bruno@clisp.org>
49411
49412         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49413         newline sequence in the Makefile.am snippet as a space, like "make"
49414         does.
49415         Reported by Roger Persson <perrog@gmail.com>.
49416
49417 2006-11-01  Bruno Haible  <bruno@clisp.org>
49418
49419         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49420         already declared in <string.h>.
49421         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49422
49423 2006-11-01  Bruno Haible  <bruno@clisp.org>
49424
49425         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49426         * lib/strcase.h: Include <string.h>.
49427         (strcasecmp): Define to rpl_strcasecmp here.
49428
49429 2006-11-01  Bruno Haible  <bruno@clisp.org>
49430
49431         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49432
49433 2006-11-01  Eric Blake  <ebb9@byu.net>
49434
49435         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49436
49437         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49438
49439 2006-10-29  Bruno Haible  <bruno@clisp.org>
49440
49441         Make it compile in C++ mode.
49442         * lib/full-write.c (full_rw): Add a cast.
49443
49444 2006-11-01  Bruno Haible  <bruno@clisp.org>
49445
49446         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49447         be POSIX compliant.
49448         Reported by Roger Persson <perrog@gmail.com>.
49449
49450 2006-11-01  Eric Blake  <ebb9@byu.net>
49451
49452         * lib/getopt_.h: Fix comments.
49453
49454 2006-10-31  Eric Blake  <ebb9@byu.net>
49455
49456         * modules/tmpdir (Depends-on): Add sys_stat.
49457         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49458         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49459         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49460         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49461         tempname.
49462
49463 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49464
49465         Avoid some C++ diagnostics reported by Bruno Haible.
49466         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49467         xmalloc.
49468         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49469         (struct slotvec): Move to top level.
49470         (quotearg_n_options): Rewrite to avoid xmalloc.
49471         * lib/xalloc.h (xcharalloc): New function.
49472         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49473         [defined __cplusplus]: Add function template that provides result
49474         type propagation.  This part of the change is from Bruno Haible.
49475
49476 2006-10-29  Bruno Haible  <bruno@clisp.org>
49477
49478         Make it compile in C++ mode.
49479         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49480         * lib/strnlen1.c (strnlen1): Cast memchr result.
49481         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49482         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49483         (create_temp_dir): Rename local variable 'template'.
49484         (compile_csharp_using_sscli): Add cast.
49485         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49486         * lib/findprog.c (find_in_path): Likewise.
49487         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49488         * lib/wait-process.c (register_slave_subprocess): Likewise.
49489
49490 2006-10-22  Bruno Haible  <bruno@clisp.org>
49491
49492         * modules/tsearch: New file.
49493         * lib/tsearch.h: New file.
49494         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49495         * m4/tsearch.m4: New file.
49496         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49497
49498 2006-10-29  Eric Blake  <ebb9@byu.net>
49499
49500         * lib/arcfour.c: Assume config.h.
49501         * lib/arctwo.c: Likewise.
49502         * lib/base64.c: Likewise.
49503         * lib/check-version.c: Likewise.
49504         * lib/crc.c: Likewise.
49505         * lib/des.c: Likewise.
49506         * lib/gc-gnulib.c: Likewise.
49507         * lib/gc-libgcrypt.c: Likewise.
49508         * lib/gc-pbkdf2-sha1.c: Likewise.
49509         * lib/getaddrinfo.c: Likewise.
49510         * lib/getdelim.c: Likewise.
49511         * lib/getline.c: Likewise.
49512         * lib/hmac-md5.c: Likewise.
49513         * lib/hmac-sha1.c: Likewise.
49514         * lib/iconvme.c: Likewise.
49515         * lib/md2.c: Likewise.
49516         * lib/md4.c: Likewise.
49517         * lib/memxor.c: Likewise.
49518         * lib/read-file.c: Likewise.
49519         * lib/readline.c: Likewise.
49520         * lib/rijndael-alg-fst.c: Likewise.
49521         * lib/rijndael-api-fst.c: Likewise.
49522         * lib/xgetdomainname.c: Likewise.
49523
49524 2006-10-28  Eric Blake  <ebb9@byu.net>
49525
49526         * lib/xstrndup.c: Assume config.h.
49527
49528 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49529
49530         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49531         stat-macros.h is now for our own macros, whereas stat_h is for
49532         macros in the <sys/stat.h> name space.
49533         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49534         (STAT_MACROS_H): Remove.
49535         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49536         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49537         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49538         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49539         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49540         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49541         Move these macros to ...
49542         * lib/stat_.h: here.  Don't include stat-macros.h.
49543         * lib/canonicalize.c: Don't include stat-macros.h.
49544         * lib/chown.c: Likewise.
49545         * lib/euidaccess.c: Likewise.
49546         * lib/file-type.c: Likewise.
49547         * lib/filemode.c: Likewise.
49548         * lib/glob.c: Likewise.
49549         * lib/isapipe.c: Likewise.
49550         * lib/lchown.c: Likewise.
49551         * lib/lstat.c: Likewise.
49552         * lib/mkdir-p.c: Likewise.
49553         * lib/rmdir.c: Likewise.
49554         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49556         unless mkdir isn't declared, to speed up 'configure'.
49557         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49558         would define all the S_* symbols.
49559         * modules/canonicalize (Depends-on):
49560         Depend on sys_stat, not stat-macros.
49561         * modules/chown: Likewise.
49562         * modules/euidaccess: Likewise.
49563         * modules/filemode: Likewise.
49564         * modules/file-type: Likewise.
49565         * modules/glob: Likewise.
49566         * modules/isapipe: Likewise.
49567         * modules/lchown: Likewise.
49568         * modules/lstat: Likewise.
49569         * modules/mkancesdirs: Likewise.
49570         * modules/rmdir: Likewise.
49571         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49572         * modules/modechange: Likewise.
49573         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49574         (configure.ac): Remove gl_STAT_MACROS.
49575         * modules/sys_stat (Depends-on): Remove stat-macros.
49576
49577 2006-10-27  Bruno Haible  <bruno@clisp.org>
49578
49579         * m4/signed.m4: Remove file.
49580         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49581         invocation.
49582         * modules/vasnprintf (Files): Remove m4/signed.m4.
49583
49584 2006-10-27  Bruno Haible  <bruno@clisp.org>
49585
49586         Update to GNU gettext 0.16.
49587         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49588         m4/inttypes-h.m4, m4/signed.m4.
49589         * m4/gettext.m4: Update to GNU gettext 0.16.
49590         * m4/intl.m4: New file, from GNU gettext.
49591         * m4/intldir.m4: New file, from GNU gettext.
49592         * config/srclist.txt: Update
49593
49594 2006-10-27  Eric Blake  <ebb9@byu.net>
49595
49596         * MODULES.html.sh: Document tempname.
49597         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49598         dependencies.
49599         (Files): Move lib/tempname.c...
49600         * modules/tempname: ...to this new module.
49601         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49602         (gl_PREREQ_TEMPNAME): Move...
49603         * m4/tempname.m4: ...to this new file.
49604         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49605         * modules/sys_stat (Depends-on): Add stat-macros.
49606         * lib/stat_.h (includes): Pick up stat macros.
49607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49608         if stat macros are broken.
49609         * lib/tempname.c (includes): No need to include "stat-macros.h".
49610         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49611         (direxists, __path_search) [!_LIBC]: Don't compile these in
49612         gnulib; the tmpdir module covers that.
49613         * lib/tempname.h: New file.
49614
49615 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49616
49617         * COPYING: Explain how gnulib-tool converts licence headers.
49618         Almost all wording by Eric Blake.
49619
49620 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49621
49622         * lib/mbchar.h (is_basic_table): Make read-only.
49623         * lib/mbchar.c (is_basic_table): Likewise.
49624         Reported by John Darrington.
49625
49626 2006-10-25  Bruno Haible  <bruno@clisp.org>
49627
49628         * lib/progname.h (set_program_name): Undefine before defining.
49629
49630 2006-10-25  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49633         false for non-gcc C++ compilers.
49634         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49635
49636 2006-10-24  Bruno Haible  <bruno@clisp.org>
49637
49638         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49639         iconv implementations like Irix iconv.
49640
49641 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49642
49643         * modules/vararrays: New file.
49644         * m4/vararrays.m4: New file, taken from diffutils.
49645         * MODULES.html.sh: New module vararrays.
49646
49647 2006-10-24  Karl Berry  <karl@gnu.org>
49648
49649         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
49650         Don't call GNU Unix.
49651
49652 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49653
49654         * users.txt: Add Libtool.
49655
49656         Sync from Libtool:
49657
49658         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
49661         to gnulib's policy of including config.h unconditionally.
49662
49663 2006-10-24  Bruno Haible  <bruno@clisp.org>
49664
49665         * modules/wcwidth (Files): Add m4/wint_t.m4.
49666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
49667         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
49668
49669 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49670
49671         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
49672         to pacify GCC with some -W flags enabled.  Problem reported by
49673         Bruno Haible.
49674
49675 2006-10-24  Jim Meyering  <jim@meyering.net>
49676
49677         * MODULES.html.sh: Remove uinttostr.  It's not a module.
49678         Reported by Karl Berry.
49679
49680 2006-10-23  Bruno Haible  <bruno@clisp.org>
49681
49682         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
49683
49684 2006-10-24  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/gl_list.h: Use C comment style, not C++ comment style.
49687
49688 2006-10-23  Eric Blake  <ebb9@byu.net>
49689
49690         * lib/getaddrinfo.c (includes): Add missing include.
49691
49692 2006-10-23  Bruno Haible  <bruno@clisp.org>
49693             Paul Eggert  <eggert@cs.ucla.edu>
49694
49695         Ability to rename obstack_free.
49696         * lib/obstack.h (__obstack_free): New macro. Declare instead of
49697         obstack_free.
49698         (obstack_free): Invoke the __obstack_free macro.
49699         * lib/obstack.c (obstack_free): Use __obstack_free macro.
49700
49701 2006-10-23  Bruno Haible  <bruno@clisp.org>
49702             Paul Eggert  <eggert@cs.ucla.edu>
49703
49704         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
49705         __argc, __argv from the declaration. (They are defined as macros on
49706         mingw.)
49707
49708 2006-10-22  Bruno Haible  <bruno@clisp.org>
49709
49710         * doc/gnulib-intro.texi: New file.
49711         * doc/gnulib.texi: Include it.
49712
49713 2006-10-21  Bruno Haible  <bruno@clisp.org>
49714
49715         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
49716         "Introduction", "Miscellanous Notes", "Particular Modules".
49717
49718 2006-10-21  Bruno Haible  <bruno@clisp.org>
49719
49720         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49721         Change mostlyclean-local rule to avoid sh syntax error from bash
49722         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
49723
49724 2006-10-23  Jim Meyering  <jim@meyering.net>
49725
49726         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
49727         in place of snprintf.
49728
49729         * modules/inttostr (Files): Add lib/uinttostr.c.
49730         * lib/uinttostr.c (inttostr): New file/function.
49731         * lib/inttostr.h (uinttostr): Declare.
49732         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
49733         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49734         Add uinttostr.
49735         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
49736
49737 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49738
49739         * lib/canonicalize.c (ELOOP): Define if not already defined.
49740         Problem reported by Bruno Haible in
49741         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
49742
49743 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49744
49745         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
49746         Problem reported by Perry Smith and Ville Laurikari.
49747
49748         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
49749         uses.
49750
49751 2006-10-19  Bruno Haible  <bruno@clisp.org>
49752
49753         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
49754         for mingw.
49755
49756 2006-10-19  Bruno Haible  <bruno@clisp.org>
49757
49758         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
49759         Needed for mingw.
49760
49761 2006-10-19  Bruno Haible  <bruno@clisp.org>
49762
49763         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
49764
49765 2006-10-19  Bruno Haible  <bruno@clisp.org>
49766
49767         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
49768         it.
49769
49770 2006-10-19  Bruno Haible  <bruno@clisp.org>
49771
49772         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
49773         invocation.
49774
49775 2006-10-19  Bruno Haible  <bruno@clisp.org>
49776
49777         * gnulib-tool (func_create_testdir): Don't include ftruncate and
49778         mountlist by default.
49779
49780 2006-10-16  Bruno Haible  <bruno@clisp.org>
49781
49782         * lib/c-strstr.c: Include c-strstr.h.
49783
49784 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49785
49786         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
49787         in a slash.
49788
49789 2006-10-18  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/lock.h [C++]: Wrap definitions in extern "C".
49792
49793 2006-10-18  Bruno Haible  <bruno@clisp.org>
49794
49795         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
49796         gl_LIBOBJS list.
49797
49798 2006-10-18  Bruno Haible  <bruno@clisp.org>
49799
49800         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
49801
49802 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
49803
49804         * lib/xstrtol.h: Include gettext.h.
49805         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
49806         Problem reported by Eric Blake.
49807         * modules/xstrtol (Depends-on): Add gettext-h.
49808
49809 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
49810
49811         * lib/strftime.c (advance): New macro.
49812         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49813         incomplete type, so you can't add 0 to it.  Problem and patch
49814         reported by Eelco Dolstra for dietlibc.
49815
49816 2006-10-18  Jim Meyering  <jim@meyering.net>
49817
49818         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49819         type for a local, and rename it: s/up/user_proc/.
49820
49821 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49822
49823         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49824         READ_UTMP_USER_PROCESS.
49825         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49826
49827 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49828
49829         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49830         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49831
49832 2006-10-17  Eric Blake  <ebb9@byu.net>
49833
49834         * lib/sigprocmask.c (sigprocmask): Fix typo.
49835
49836         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49837
49838         * modules/clean-temp (Makefile.am): Don't add to make output...
49839         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49840         config.h.
49841
49842 2006-10-17  Bruno Haible  <bruno@clisp.org>
49843
49844         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49845         differently if DEFAULT_TEXT_DOMAIN is set.
49846
49847 2006-10-16  Bruno Haible  <bruno@clisp.org>
49848
49849         * lib/clean-temp.c: Include fwriteerror.h.
49850
49851 2006-10-16  Bruno Haible  <bruno@clisp.org>
49852
49853         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49854
49855 2006-10-16  Bruno Haible  <bruno@clisp.org>
49856
49857         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49858         * lib/sigprocmask.h: Include <sys/types.h>.
49859         (sigset_t): Use the system's definition if present.
49860
49861 2006-10-17  Eric Blake  <ebb9@byu.net>
49862
49863         * lib/xvasprintf.c (includes): Assume config.h.
49864         * lib/xasprintf.c (includes): Likewise.
49865
49866 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49869         at least as wide as intmax_t.
49870
49871 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49872
49873         (Imported from Automake.)
49874         * build-aux/gnupload: Update to version 1.1 of directive file.
49875
49876 2006-10-16  Eric Blake  <ebb9@byu.net>
49877
49878         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49879         match Automake 1.10a.
49880
49881 2006-10-14  Bruno Haible  <bruno@clisp.org>
49882
49883         * modules/sigprocmask: New file.
49884         * lib/sigprocmask.h: New file.
49885         * lib/sigprocmask.c: New file.
49886         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49887         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49888         request sigprocmask.o.
49889         (gl_PREREQ_SIGPROCMASK): New macro.
49890         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49891         (Depends-on): Add sigprocmask.
49892         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49893         gt_SIGNALBLOCKING. Test for 'raise' only once.
49894         * lib/fatal-signal.c: Include sigprocmask.h.
49895         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49896         unblock_fatal_signals): Define always.
49897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49898         sigprocmask.
49899
49900 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49901
49902         Sync from Automake.
49903         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49904         which incorrectly sets the mode of an existing destination
49905         directory.  In some cases the unpatched install-sh could do the
49906         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49907         system.  We hope this is rare in practice, but it's clearly worth
49908         fixing.  Problem reported by Alex Unleashed in
49909         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49910         Also, don't bother to check for -m bugs unless we're using -m;
49911         suggested by Stepan Kasal.
49912
49913 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49914
49915         Sync from Automake.
49916         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49917         `-c' flag, so they appear at the same position as in %FASTDEP%
49918         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49919         which ignores unknown options only after the first non-option.
49920         Bug report against M4 by Nelson H. F. Beebe.
49921
49922 2006-10-13  Jim Meyering  <jim@meyering.net>
49923
49924         Fix a bug in yesterday's change.
49925         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49926         p->fts_statp->st_dev would be used uninitialized.
49927         Ensures that we always call fts_stat on the very first entry.
49928         Miklos Szeredi reported that find -xdev stopped working.
49929
49930 2006-10-12  Bruno Haible  <bruno@clisp.org>
49931
49932         * gnulib-tool (func_get_automake_snippet): Append an automatically
49933         computed EXTRA_DIST augmentation.
49934         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49935         * modules/alloca-opt (Makefile.am): Likewise.
49936         * modules/allocsa (Makefile.am): Likewise.
49937         * modules/arcfour (Makefile.am): Likewise.
49938         * modules/arctwo (Makefile.am): Likewise.
49939         * modules/argmatch (Makefile.am): Likewise.
49940         * modules/argz (Makefile.am): Likewise.
49941         * modules/atexit (Makefile.am): Likewise.
49942         * modules/backupfile (Makefile.am): Likewise.
49943         * modules/byteswap (Makefile.am): Likewise.
49944         * modules/c-strtod (Makefile.am): Likewise.
49945         * modules/c-strtold (Makefile.am): Likewise.
49946         * modules/calloc (Makefile.am): Likewise.
49947         * modules/canon-host (Makefile.am): Likewise.
49948         * modules/canonicalize (Makefile.am): Likewise.
49949         * modules/chdir-long (Makefile.am): Likewise.
49950         * modules/chdir-safer (Makefile.am): Likewise.
49951         * modules/check-version (Makefile.am): Likewise.
49952         * modules/chown (Makefile.am): Likewise.
49953         * modules/cloexec (Makefile.am): Likewise.
49954         * modules/close-stream (Makefile.am): Likewise.
49955         * modules/closeout (Makefile.am): Likewise.
49956         * modules/crc (Makefile.am): Likewise.
49957         * modules/csharpexec (Makefile.am): Likewise.
49958         * modules/cycle-check (Makefile.am): Likewise.
49959         * modules/des (Makefile.am): Likewise.
49960         * modules/dev-ino (Makefile.am): Likewise.
49961         * modules/dirfd (Makefile.am): Likewise.
49962         * modules/dirname (Makefile.am): Likewise.
49963         * modules/dup2 (Makefile.am): Likewise.
49964         * modules/eealloc (Makefile.am): Likewise.
49965         * modules/error (Makefile.am): Likewise.
49966         * modules/euidaccess (Makefile.am): Likewise.
49967         * modules/exclude (Makefile.am): Likewise.
49968         * modules/exitfail (Makefile.am): Likewise.
49969         * modules/fcntl-safer (Makefile.am): Likewise.
49970         * modules/fcntl (Makefile.am): Likewise.
49971         * modules/file-type (Makefile.am): Likewise.
49972         * modules/fileblocks (Makefile.am): Likewise.
49973         * modules/filemode (Makefile.am): Likewise.
49974         * modules/filenamecat (Makefile.am): Likewise.
49975         * modules/fnmatch (Makefile.am): Likewise.
49976         * modules/fopen-safer (Makefile.am): Likewise.
49977         * modules/fpending (Makefile.am): Likewise.
49978         * modules/fprintftime (Makefile.am): Likewise.
49979         * modules/free (Makefile.am): Likewise.
49980         * modules/fsusage (Makefile.am): Likewise.
49981         * modules/ftruncate (Makefile.am): Likewise.
49982         * modules/fts (Makefile.am): Likewise.
49983         * modules/gc-arcfour (Makefile.am): Likewise.
49984         * modules/gc-des (Makefile.am): Likewise.
49985         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49986         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49987         * modules/gc-md4 (Makefile.am): Likewise.
49988         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49989         * modules/gc-sha1 (Makefile.am): Likewise.
49990         * modules/gc (Makefile.am): Likewise.
49991         * modules/getaddrinfo (Makefile.am): Likewise.
49992         * modules/getcwd (Makefile.am): Likewise.
49993         * modules/getdelim (Makefile.am): Likewise.
49994         * modules/getdomainname (Makefile.am): Likewise.
49995         * modules/getgroups (Makefile.am): Likewise.
49996         * modules/gethostname (Makefile.am): Likewise.
49997         * modules/gethrxtime (Makefile.am): Likewise.
49998         * modules/getline (Makefile.am): Likewise.
49999         * modules/getloadavg (Makefile.am): Likewise.
50000         * modules/getlogin_r (Makefile.am): Likewise.
50001         * modules/getndelim2 (Makefile.am): Likewise.
50002         * modules/getopt (Makefile.am): Likewise.
50003         * modules/getpagesize (Makefile.am): Likewise.
50004         * modules/getpass-gnu (Makefile.am): Likewise.
50005         * modules/getpass (Makefile.am): Likewise.
50006         * modules/getsubopt (Makefile.am): Likewise.
50007         * modules/gettime (Makefile.am): Likewise.
50008         * modules/gettimeofday (Makefile.am): Likewise.
50009         * modules/getugroups (Makefile.am): Likewise.
50010         * modules/getusershell (Makefile.am): Likewise.
50011         * modules/glob (Makefile.am): Likewise.
50012         * modules/group-member (Makefile.am): Likewise.
50013         * modules/hard-locale (Makefile.am): Likewise.
50014         * modules/hash (Makefile.am): Likewise.
50015         * modules/hmac-md5 (Makefile.am): Likewise.
50016         * modules/hmac-sha1 (Makefile.am): Likewise.
50017         * modules/human (Makefile.am): Likewise.
50018         * modules/idcache (Makefile.am): Likewise.
50019         * modules/imaxabs (Makefile.am): Likewise.
50020         * modules/imaxdiv (Makefile.am): Likewise.
50021         * modules/inet_ntop (Makefile.am): Likewise.
50022         * modules/inet_pton (Makefile.am): Likewise.
50023         * modules/intprops (Makefile.am): Likewise.
50024         * modules/inttostr (Makefile.am): Likewise.
50025         * modules/inttypes (Makefile.am): Likewise.
50026         * modules/isapipe (Makefile.am): Likewise.
50027         * modules/javaversion (Makefile.am): Likewise.
50028         * modules/lchmod (Makefile.am): Likewise.
50029         * modules/lchown (Makefile.am): Likewise.
50030         * modules/localcharset (Makefile.am): Likewise.
50031         * modules/long-options (Makefile.am): Likewise.
50032         * modules/lstat (Makefile.am): Likewise.
50033         * modules/malloc (Makefile.am): Likewise.
50034         * modules/mathl (Makefile.am): Likewise.
50035         * modules/mbchar (Makefile.am): Likewise.
50036         * modules/md2 (Makefile.am): Likewise.
50037         * modules/md4 (Makefile.am): Likewise.
50038         * modules/md5 (Makefile.am): Likewise.
50039         * modules/memcasecmp (Makefile.am): Likewise.
50040         * modules/memchr (Makefile.am): Likewise.
50041         * modules/memcmp (Makefile.am): Likewise.
50042         * modules/memcoll (Makefile.am): Likewise.
50043         * modules/memcpy (Makefile.am): Likewise.
50044         * modules/memmem (Makefile.am): Likewise.
50045         * modules/memmove (Makefile.am): Likewise.
50046         * modules/mempcpy (Makefile.am): Likewise.
50047         * modules/memrchr (Makefile.am): Likewise.
50048         * modules/memset (Makefile.am): Likewise.
50049         * modules/memxor (Makefile.am): Likewise.
50050         * modules/mkancesdirs (Makefile.am): Likewise.
50051         * modules/mkdir-p (Makefile.am): Likewise.
50052         * modules/mkdir (Makefile.am): Likewise.
50053         * modules/mkdtemp (Makefile.am): Likewise.
50054         * modules/mkstemp (Makefile.am): Likewise.
50055         * modules/mktime (Makefile.am): Likewise.
50056         * modules/modechange (Makefile.am): Likewise.
50057         * modules/mountlist (Makefile.am): Likewise.
50058         * modules/nanosleep (Makefile.am): Likewise.
50059         * modules/obstack (Makefile.am): Likewise.
50060         * modules/openat (Makefile.am): Likewise.
50061         * modules/pagealign_alloc (Makefile.am): Likewise.
50062         * modules/pathmax (Makefile.am): Likewise.
50063         * modules/physmem (Makefile.am): Likewise.
50064         * modules/poll (Makefile.am): Likewise.
50065         * modules/posixtm (Makefile.am): Likewise.
50066         * modules/posixver (Makefile.am): Likewise.
50067         * modules/putenv (Makefile.am): Likewise.
50068         * modules/quote (Makefile.am): Likewise.
50069         * modules/quotearg (Makefile.am): Likewise.
50070         * modules/raise (Makefile.am): Likewise.
50071         * modules/read-file (Makefile.am): Likewise.
50072         * modules/readline (Makefile.am): Likewise.
50073         * modules/readlink (Makefile.am): Likewise.
50074         * modules/readtokens (Makefile.am): Likewise.
50075         * modules/readutmp (Makefile.am): Likewise.
50076         * modules/realloc (Makefile.am): Likewise.
50077         * modules/regex (Makefile.am): Likewise.
50078         * modules/rename-dest-slash (Makefile.am): Likewise.
50079         * modules/rename (Makefile.am): Likewise.
50080         * modules/rijndael (Makefile.am): Likewise.
50081         * modules/rmdir (Makefile.am): Likewise.
50082         * modules/rpmatch (Makefile.am): Likewise.
50083         * modules/safe-read (Makefile.am): Likewise.
50084         * modules/safe-write (Makefile.am): Likewise.
50085         * modules/same-inode (Makefile.am): Likewise.
50086         * modules/same (Makefile.am): Likewise.
50087         * modules/save-cwd (Makefile.am): Likewise.
50088         * modules/savedir (Makefile.am): Likewise.
50089         * modules/setenv (Makefile.am): Likewise.
50090         * modules/settime (Makefile.am): Likewise.
50091         * modules/sha1 (Makefile.am): Likewise.
50092         * modules/sig2str (Makefile.am): Likewise.
50093         * modules/snprintf (Makefile.am): Likewise.
50094         * modules/stat-macros (Makefile.am): Likewise.
50095         * modules/stat-time (Makefile.am): Likewise.
50096         * modules/stdbool (Makefile.am): Likewise.
50097         * modules/stdint (Makefile.am): Likewise.
50098         * modules/stdlib-safer (Makefile.am): Likewise.
50099         * modules/stpcpy (Makefile.am): Likewise.
50100         * modules/stpncpy (Makefile.am): Likewise.
50101         * modules/strcase (Makefile.am): Likewise.
50102         * modules/strcasestr (Makefile.am): Likewise.
50103         * modules/strchrnul (Makefile.am): Likewise.
50104         * modules/strcspn (Makefile.am): Likewise.
50105         * modules/strdup (Makefile.am): Likewise.
50106         * modules/strerror (Makefile.am): Likewise.
50107         * modules/strftime (Makefile.am): Likewise.
50108         * modules/strndup (Makefile.am): Likewise.
50109         * modules/strnlen (Makefile.am): Likewise.
50110         * modules/strpbrk (Makefile.am): Likewise.
50111         * modules/strsep (Makefile.am): Likewise.
50112         * modules/strstr (Makefile.am): Likewise.
50113         * modules/strtod (Makefile.am): Likewise.
50114         * modules/strtoimax (Makefile.am): Likewise.
50115         * modules/strtok_r (Makefile.am): Likewise.
50116         * modules/strtol (Makefile.am): Likewise.
50117         * modules/strtoll (Makefile.am): Likewise.
50118         * modules/strtoul (Makefile.am): Likewise.
50119         * modules/strtoull (Makefile.am): Likewise.
50120         * modules/strtoumax (Makefile.am): Likewise.
50121         * modules/strverscmp (Makefile.am): Likewise.
50122         * modules/sys_socket (Makefile.am): Likewise.
50123         * modules/sys_stat (Makefile.am): Likewise.
50124         * modules/sysexits (Makefile.am): Likewise.
50125         * modules/time_r (Makefile.am): Likewise.
50126         * modules/timegm (Makefile.am): Likewise.
50127         * modules/timespec (Makefile.am): Likewise.
50128         * modules/tmpfile-safer (Makefile.am): Likewise.
50129         * modules/trim (Makefile.am): Likewise.
50130         * modules/unistd-safer (Makefile.am): Likewise.
50131         * modules/unlinkdir (Makefile.am): Likewise.
50132         * modules/unlocked-io (Makefile.am): Likewise.
50133         * modules/userspec (Makefile.am): Likewise.
50134         * modules/utime (Makefile.am): Likewise.
50135         * modules/utimecmp (Makefile.am): Likewise.
50136         * modules/utimens (Makefile.am): Likewise.
50137         * modules/vasnprintf (Makefile.am): Likewise.
50138         * modules/vasprintf (Makefile.am): Likewise.
50139         * modules/vsnprintf (Makefile.am): Likewise.
50140         * modules/xalloc (Makefile.am): Likewise.
50141         * modules/xgetcwd (Makefile.am): Likewise.
50142         * modules/xnanosleep (Makefile.am): Likewise.
50143         * modules/xreadlink (Makefile.am): Likewise.
50144         * modules/xstrtod (Makefile.am): Likewise.
50145         * modules/xstrtol (Makefile.am): Likewise.
50146         * modules/xstrtold (Makefile.am): Likewise.
50147         * modules/yesno (Makefile.am): Likewise.
50148         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
50149
50150 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50151
50152         * modules/error (Makefile.am): Distribute files through
50153         EXTRA_DIST, not lib_SOURCES.
50154
50155 2006-10-12  Eric Blake  <ebb9@byu.net>
50156
50157         * modules/error (Makefile.am): Distribute files in /lib.
50158         * modules/obstack (Makefile.am): Likewise.
50159
50160 2006-10-12  Bruno Haible  <bruno@clisp.org>
50161
50162         * modules/acl (Makefile.am): Distribute all files in lib/ through
50163         EXTRA_DIST.
50164         * modules/arcfour (Makefile.am): Likewise.
50165         * modules/arctwo (Makefile.am): Likewise.
50166         * modules/argmatch (Makefile.am): Likewise.
50167         * modules/argz (Makefile.am): Likewise.
50168         * modules/atexit (Makefile.am): Likewise.
50169         * modules/backupfile (Makefile.am): Likewise.
50170         * modules/c-strtod (Makefile.am): Likewise.
50171         * modules/c-strtold (Makefile.am): Likewise.
50172         * modules/calloc (Makefile.am): Likewise.
50173         * modules/canon-host (Makefile.am): Likewise.
50174         * modules/canonicalize (Makefile.am): Likewise.
50175         * modules/chdir-long (Makefile.am): Likewise.
50176         * modules/chdir-safer (Makefile.am): Likewise.
50177         * modules/check-version (Makefile.am): Likewise.
50178         * modules/chown (Makefile.am): Likewise.
50179         * modules/cloexec (Makefile.am): Likewise.
50180         * modules/close-stream (Makefile.am): Likewise.
50181         * modules/closeout (Makefile.am): Likewise.
50182         * modules/crc (Makefile.am): Likewise.
50183         * modules/cycle-check (Makefile.am): Likewise.
50184         * modules/des (Makefile.am): Likewise.
50185         * modules/dirfd (Makefile.am): Likewise.
50186         * modules/dirname (Makefile.am): Likewise.
50187         * modules/dup2 (Makefile.am): Likewise.
50188         * modules/euidaccess (Makefile.am): Likewise.
50189         * modules/exclude (Makefile.am): Likewise.
50190         * modules/exitfail (Makefile.am): Likewise.
50191         * modules/fcntl-safer (Makefile.am): Likewise.
50192         * modules/file-type (Makefile.am): Likewise.
50193         * modules/fileblocks (Makefile.am): Likewise.
50194         * modules/filemode (Makefile.am): Likewise.
50195         * modules/filenamecat (Makefile.am): Likewise.
50196         * modules/fnmatch (Makefile.am): Likewise.
50197         * modules/fopen-safer (Makefile.am): Likewise.
50198         * modules/fpending (Makefile.am): Likewise.
50199         * modules/fprintftime (Makefile.am): Likewise.
50200         * modules/free (Makefile.am): Likewise.
50201         * modules/fsusage (Makefile.am): Likewise.
50202         * modules/ftruncate (Makefile.am): Likewise.
50203         * modules/fts (Makefile.am): Likewise.
50204         * modules/gc (Makefile.am): Likewise.
50205         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50206         * modules/getaddrinfo (Makefile.am): Likewise.
50207         * modules/getcwd (Makefile.am): Likewise.
50208         * modules/getdelim (Makefile.am): Likewise.
50209         * modules/getdomainname (Makefile.am): Likewise.
50210         * modules/getgroups (Makefile.am): Likewise.
50211         * modules/gethostname (Makefile.am): Likewise.
50212         * modules/gethrxtime (Makefile.am): Likewise.
50213         * modules/getline (Makefile.am): Likewise.
50214         * modules/getloadavg (Makefile.am): Likewise.
50215         * modules/getlogin_r (Makefile.am): Likewise.
50216         * modules/getopt (Makefile.am): Likewise.
50217         * modules/getpass (Makefile.am): Likewise.
50218         * modules/getpass-gnu (Makefile.am): Likewise.
50219         * modules/getsubopt (Makefile.am): Likewise.
50220         * modules/gettime (Makefile.am): Likewise.
50221         * modules/gettimeofday (Makefile.am): Likewise.
50222         * modules/getugroups (Makefile.am): Likewise.
50223         * modules/getusershell (Makefile.am): Likewise.
50224         * modules/glob (Makefile.am): Likewise.
50225         * modules/group-member (Makefile.am): Likewise.
50226         * modules/hard-locale (Makefile.am): Likewise.
50227         * modules/hash (Makefile.am): Likewise.
50228         * modules/hmac-md5 (Makefile.am): Likewise.
50229         * modules/hmac-sha1 (Makefile.am): Likewise.
50230         * modules/human (Makefile.am): Likewise.
50231         * modules/idcache (Makefile.am): Likewise.
50232         * modules/imaxabs (Makefile.am): Likewise.
50233         * modules/imaxdiv (Makefile.am): Likewise.
50234         * modules/inet_ntop (Makefile.am): Likewise.
50235         * modules/inet_pton (Makefile.am): Likewise.
50236         * modules/inttostr (Makefile.am): Likewise.
50237         * modules/isapipe (Makefile.am): Likewise.
50238         * modules/lchown (Makefile.am): Likewise.
50239         * modules/long-options (Makefile.am): Likewise.
50240         * modules/lstat (Makefile.am): Likewise.
50241         * modules/malloc (Makefile.am): Likewise.
50242         * modules/mathl (Makefile.am): Likewise.
50243         * modules/mbchar (Makefile.am): Likewise.
50244         * modules/md2 (Makefile.am): Likewise.
50245         * modules/md4 (Makefile.am): Likewise.
50246         * modules/md5 (Makefile.am): Likewise.
50247         * modules/memcasecmp (Makefile.am): Likewise.
50248         * modules/memchr (Makefile.am): Likewise.
50249         * modules/memcmp (Makefile.am): Likewise.
50250         * modules/memcoll (Makefile.am): Likewise.
50251         * modules/memcpy (Makefile.am): Likewise.
50252         * modules/memmem (Makefile.am): Likewise.
50253         * modules/memmove (Makefile.am): Likewise.
50254         * modules/mempcpy (Makefile.am): Likewise.
50255         * modules/memrchr (Makefile.am): Likewise.
50256         * modules/memset (Makefile.am): Likewise.
50257         * modules/memxor (Makefile.am): Likewise.
50258         * modules/mkancesdirs (Makefile.am): Likewise.
50259         * modules/mkdir (Makefile.am): Likewise.
50260         * modules/mkdir-p (Makefile.am): Likewise.
50261         * modules/mkdtemp (Makefile.am): Likewise.
50262         * modules/mkstemp (Makefile.am): Likewise.
50263         * modules/mktime (Makefile.am): Likewise.
50264         * modules/modechange (Makefile.am): Likewise.
50265         * modules/mountlist (Makefile.am): Likewise.
50266         * modules/nanosleep (Makefile.am): Likewise.
50267         * modules/openat (Makefile.am): Likewise.
50268         * modules/pagealign_alloc (Makefile.am): Likewise.
50269         * modules/physmem (Makefile.am): Likewise.
50270         * modules/poll (Makefile.am): Likewise.
50271         * modules/posixtm (Makefile.am): Likewise.
50272         * modules/posixver (Makefile.am): Likewise.
50273         * modules/putenv (Makefile.am): Likewise.
50274         * modules/quote (Makefile.am): Likewise.
50275         * modules/quotearg (Makefile.am): Likewise.
50276         * modules/raise (Makefile.am): Likewise.
50277         * modules/read-file (Makefile.am): Likewise.
50278         * modules/readline (Makefile.am): Likewise.
50279         * modules/readlink (Makefile.am): Likewise.
50280         * modules/readtokens (Makefile.am): Likewise.
50281         * modules/readutmp (Makefile.am): Likewise.
50282         * modules/realloc (Makefile.am): Likewise.
50283         * modules/regex (Makefile.am): Likewise.
50284         * modules/rename (Makefile.am): Likewise.
50285         * modules/rename-dest-slash (Makefile.am): Likewise.
50286         * modules/rijndael (Makefile.am): Likewise.
50287         * modules/rmdir (Makefile.am): Likewise.
50288         * modules/rpmatch (Makefile.am): Likewise.
50289         * modules/safe-read (Makefile.am): Likewise.
50290         * modules/safe-write (Makefile.am): Likewise.
50291         * modules/same (Makefile.am): Likewise.
50292         * modules/save-cwd (Makefile.am): Likewise.
50293         * modules/savedir (Makefile.am): Likewise.
50294         * modules/setenv (Makefile.am): Likewise.
50295         * modules/settime (Makefile.am): Likewise.
50296         * modules/sha1 (Makefile.am): Likewise.
50297         * modules/sig2str (Makefile.am): Likewise.
50298         * modules/snprintf (Makefile.am): Likewise.
50299         * modules/stdlib-safer (Makefile.am): Likewise.
50300         * modules/stpcpy (Makefile.am): Likewise.
50301         * modules/stpncpy (Makefile.am): Likewise.
50302         * modules/strcase (Makefile.am): Likewise.
50303         * modules/strcasestr (Makefile.am): Likewise.
50304         * modules/strchrnul (Makefile.am): Likewise.
50305         * modules/strcspn (Makefile.am): Likewise.
50306         * modules/strdup (Makefile.am): Likewise.
50307         * modules/strerror (Makefile.am): Likewise.
50308         * modules/strftime (Makefile.am): Likewise.
50309         * modules/strndup (Makefile.am): Likewise.
50310         * modules/strnlen (Makefile.am): Likewise.
50311         * modules/strpbrk (Makefile.am): Likewise.
50312         * modules/strsep (Makefile.am): Likewise.
50313         * modules/strstr (Makefile.am): Likewise.
50314         * modules/strtod (Makefile.am): Likewise.
50315         * modules/strtoimax (Makefile.am): Likewise.
50316         * modules/strtok_r (Makefile.am): Likewise.
50317         * modules/strtol (Makefile.am): Likewise.
50318         * modules/strtoll (Makefile.am): Likewise.
50319         * modules/strtoul (Makefile.am): Likewise.
50320         * modules/strtoull (Makefile.am): Likewise.
50321         * modules/strtoumax (Makefile.am): Likewise.
50322         * modules/strverscmp (Makefile.am): Likewise.
50323         * modules/time_r (Makefile.am): Likewise.
50324         * modules/timegm (Makefile.am): Likewise.
50325         * modules/tmpfile-safer (Makefile.am): Likewise.
50326         * modules/unistd-safer (Makefile.am): Likewise.
50327         * modules/unlinkdir (Makefile.am): Likewise.
50328         * modules/userspec (Makefile.am): Likewise.
50329         * modules/utime (Makefile.am): Likewise.
50330         * modules/utimecmp (Makefile.am): Likewise.
50331         * modules/utimens (Makefile.am): Likewise.
50332         * modules/vasnprintf (Makefile.am): Likewise.
50333         * modules/vasprintf (Makefile.am): Likewise.
50334         * modules/vsnprintf (Makefile.am): Likewise.
50335         * modules/xalloc (Makefile.am): Likewise.
50336         * modules/xgetcwd (Makefile.am): Likewise.
50337         * modules/xnanosleep (Makefile.am): Likewise.
50338         * modules/xreadlink (Makefile.am): Likewise.
50339         * modules/xstrtod (Makefile.am): Likewise.
50340         * modules/xstrtol (Makefile.am): Likewise.
50341         * modules/xstrtold (Makefile.am): Likewise.
50342         * modules/yesno (Makefile.am): Likewise.
50343
50344 2006-10-12  Jim Meyering  <jim@meyering.net>
50345
50346         * m4/getloadavg.m4: Revert the change below.
50347
50348         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
50349         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
50350         fail with a symlink, which is what coreutils' ./bootstrap now
50351         creates by default.
50352
50353 2006-10-12  Bruno Haible  <bruno@clisp.org>
50354
50355         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
50356         mingw.
50357         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
50358         MSVC and mingw explicitly.
50359
50360 2006-10-11  Simon Josefsson  <jas@extundo.com>
50361             Bruno Haible  <bruno@clisp.org>
50362
50363         Add support for multiple gnulib-tool invocations in the scope of a
50364         single configure.ac file.
50365         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
50366         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50367         with the same contents as the _LIBADD variable.
50368         (func_emit_initmacro_start, func_emit_initmacro_end,
50369         func_emit_initmacro_done): New functions.
50370         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50371         gl_LIBOBJS and gl_LTLIBOBJS.
50372
50373 2006-10-11  Bruno Haible  <bruno@clisp.org>
50374
50375         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50376         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50377         autoreconf. Instead, invoke autopoint explicitly but move back the
50378         *.m4 files from gnulib.
50379
50380 2006-10-11  Bruno Haible  <bruno@clisp.org>
50381
50382         * gnulib-tool (func_usage): Make module names after --create-testdir
50383         optional.
50384         (func_create_testdir): If no module was specified, use nearly all
50385         modules.
50386
50387 2006-10-12  Jim Meyering  <jim@meyering.net>
50388
50389         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50390         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50391         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50392         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50393         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50394         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50395         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50396         (fts_set_stat_required): New function.
50397         (fts_open): Defer the calls to fts_stat, if possible or requested.
50398         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50399         into fts_stat itself.
50400         (fts_read): Perform any required (deferred) fts_stat call.
50401         (fts_build): Likewise, for the directory we're about to open and read.
50402         In the readdir loop, carefully decide whether each entry will require
50403         an eventual call to fts_stat, using dirent.d_type info if available.
50404         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50405         a command line argument into this function.  Update all callers.
50406         Map a return value of FTS_DOT to FTS_D for a command line argument.
50407         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50408         Thanks to Miklos Szeredi for his tenacity and for the initial
50409         bug report about "find" failing on a FUSE-based file system.
50410
50411         * lib/fts.c (fts_open): Use consistent indentation.
50412
50413 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50414
50415         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50416         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50417         reported by Jim Meyering.  All uses of cache variables renamed
50418         to match Autoconf's.
50419         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50420         the other one.
50421
50422         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50423         Fix misspelling in diagnostic.
50424
50425 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50426
50427         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50428         defined.  Problem reported by Matthew Woehlke.
50429
50430         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50431         Add support for Tandem NonStop R series.
50432         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50433         Use new macro.
50434
50435         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50436         (has_trailing_slash): Omit size arg; all callers changed.
50437         Omit 'inline', since it doesn't help performance and we'd
50438         need to configure it.
50439         Don't count //, ///, etc. as having a trailing slash.
50440         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50441         (rpl_rename_dest_slash): On failure, use rename's errno rather
50442         than (in some cases) an incorrect or junk errno.
50443         Simplify code by removing need to compute length; this does
50444         cause it to make two passes instead of one over the file name,
50445         but it's worth it.
50446
50447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50448         change, since Autoconf's version may no longer be appropriate now
50449         that we are using CVS Autoconf's version.  Add support for Tandem.
50450
50451 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50452             Bruno Haible  <bruno@clisp.org>
50453
50454         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50455         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50456         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50457         gl_AC_TYPE_LONG_LONG.
50458
50459         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50460         instead of HAVE_LONG_LONG.
50461         * lib/printf-args.c (printf_fetchargs): Likewise.
50462         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50463         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50464         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50465         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50466         gl_AC_TYPE_LONG_LONG.
50467
50468 2006-10-11  Bruno Haible  <bruno@clisp.org>
50469
50470         * m4/longlong.m4: Add comments.
50471         * m4/ulonglong.m4: Likewise.
50472
50473 2006-10-10  Bruno Haible  <bruno@clisp.org>
50474
50475         Make it possible to #define stpcpy, strdup to aliases.
50476         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50477         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50478
50479 2006-10-10  Bruno Haible  <bruno@clisp.org>
50480
50481         Make it possible to #define gcd to an alias.
50482         * lib/gcd.c: Include config.h.
50483
50484 2006-10-10  Bruno Haible  <bruno@clisp.org>
50485
50486         Make it possible to #define c_isascii to an alias.
50487         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50488         defined. Undefine the macros before defining them, to avoid gcc
50489         warnings.
50490         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50491         define NO_C_CTYPE_MACROS early.
50492
50493 2006-10-10  Bruno Haible  <bruno@clisp.org>
50494
50495         Make it possible to #define set_program_name to an alias.
50496         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50497         ENABLE_RELOCATABLE early.
50498
50499 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50500
50501         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50502         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50503         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50504         More generally, don't assume that 64-bit signed int is available
50505         if unsigned int is, and vice versa.
50506         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50507         unsigned symbols, not on their signed counterparts.
50508         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50509         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50510         (UINT64_C, UINTMAX_C):
50511         Likewise.
50512         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50513         unsigned counterparts.
50514         (Have_long_long, Unsigned): New macros.
50515         (Int): Renamed from INT.
50516         (strtoimax): Use the new macros.
50517         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50518         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50519         * modules/inttypes (inttypes.h): Substitute
50520         HAVE_UNSIGNED_LONG_LONG_INT.
50521         * modules/stdint (stdint.h): Likewise.
50522         (Files): Add m4/ulonglong.m4.
50523
50524 2006-10-10  Bruno Haible  <bruno@clisp.org>
50525
50526         Fix a gcc -Wshadow warning.
50527         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50528         to 'bucket'.
50529         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50530         gl_linked_indexof_from_to): Likewise.
50531         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50532         Likewise.
50533         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50534         Likewise.
50535         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50536         Reported by Eric Blake.
50537
50538 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50539
50540         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50541         for NetBSD.  Problem reported by Bruno Haible.
50542
50543 2006-10-09  Jim Meyering  <jim@meyering.net>
50544
50545         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50546         Patch from Bruno Haible.
50547
50548 2006-10-09  Jim Meyering  <jim@meyering.net>
50549
50550         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50551         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50552         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50553
50554 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50555
50556         Don't include <config.h> twice; this doesn't work in some cases,
50557         e.g., when config.h has "#define intmax_t long long int" and
50558         we include <config.h>, <inttypes.h>, <config.h> in that order.
50559         Problem reported by Matthew Woehlke in:
50560         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50561         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50562         * lib/fts-cycle.c: Don't include config.h.
50563         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50564         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50565         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50566         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50567         inttypes.h.
50568         * lib/xstrtoumax.c: Likewise.
50569         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50570         __strtol and the like, so that this module is more like its siblings.
50571         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50572         Remove; no longer needed now that we assume gnulib inttypes.h.
50573
50574 2006-10-08  Bruno Haible  <bruno@clisp.org>
50575
50576         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50577         option.
50578
50579 2006-10-07  Jim Meyering  <jim@meyering.net>
50580
50581         * modules/inttypes (inttypes.h): Revert what seems to have been
50582         an inadvertent part of today's change: use "|", not "/" in the
50583         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50584
50585 2006-10-07  Bruno Haible  <bruno@clisp.org>
50586
50587         * modules/sublist: New file.
50588
50589 2006-10-07  Bruno Haible  <bruno@clisp.org>
50590
50591         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50592         * modules/argz (argz.h): Likewise.
50593         * modules/arpa_inet (arpa/inet.h): Likewise.
50594         * modules/byteswap (byteswap.h): Likewise.
50595         * modules/configmake (configmake.h): Likewise.
50596         * modules/fcntl (fcntl.h): Likewise.
50597         * modules/fnmatch (fnmatch.h): Likewise.
50598         * modules/getopt (getopt.h): Likewise.
50599         * modules/glob (glob.h): Likewise.
50600         * modules/inttypes (inttypes.h): Likewise.
50601         * modules/netinet_in (netinet/in.h): Likewise.
50602         * modules/poll (poll.h): Likewise.
50603         * modules/stdbool (stdbool.h): Likewise.
50604         * modules/stdint (stdint.h): Likewise.
50605         * modules/sys_select (sys/select.h): Likewise.
50606         * modules/sys_socket (sys/socket.h): Likewise.
50607         * modules/sys_stat (sys/stat.h): Likewise.
50608         * modules/sysexits (sysexits.h): Likewise.
50609         * modules/unistd (unistd.h): Likewise.
50610         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50611         Add a "DO NOT EDIT" comment to the generated file.
50612         (func_import): Likewise for gnulib-comp.m4.
50613
50614 2006-10-07  Bruno Haible  <bruno@clisp.org>
50615
50616         * lib/gl_sublist.h: New file.
50617         * lib/gl_sublist.c: New file.
50618
50619 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50620
50621         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50622         name (relative to the original working directory) and the file
50623         name component (relative to the temporary working directory).  All
50624         callers changed.
50625         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50626         * lib/mkdir-p.c (make_dir_parents): Likewise.
50627         * lib/mkdir-p.h (make_dir_parents): Likewise.
50628
50629 2006-10-06  Eric Blake  <ebb9@byu.net>
50630
50631         Define several macros for use by the clean-temp module.
50632         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50633         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50634         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50635
50636         * lib/clean-temp.h (close_stream_temp): New declaration.
50637         * lib/clean-temp.c (includes): Pull in headers according to what
50638         other modules are in use.
50639         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50640
50641 2006-10-06  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50644         instead of fopen, fwriteerror.
50645
50646 2006-10-06  Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
50649         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
50650         int.
50651         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
50652         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
50653         Return an error indicator.
50654         Suggested by Eric Blake.
50655
50656 2006-10-06  Bruno Haible  <bruno@clisp.org>
50657
50658         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
50659         Reported by Eric Blake.
50660
50661 2006-10-06  Bruno Haible  <bruno@clisp.org>
50662
50663         * modules/closeout (Description): Mention stderr too.
50664
50665 2006-10-06  Bruno Haible  <bruno@clisp.org>
50666         and Paul Eggert  <eggert@cs.ucla.edu>
50667
50668         * lib/closeout.c (close_stdout): Also close stderr.
50669         * lib/closeout.h: Update comment.
50670
50671 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
50674         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
50675         * lib/dirchownmod.c: Include lchown.h.
50676         * lib/lchown.c: Don't include files that lchown.h now includes.
50677         Don't declare chown, since lchown.h now does that.
50678         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
50679         (lchown): Define to rpl_chown if lchown is declared but
50680         does not exist.  Declare using a prototype if lchown is not
50681         declared.  Add a copyright notice.
50682         * lib/mkstemp.h: Include <unistd.h>.
50683         * lib/openat.c: Include lchown.h.
50684
50685         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
50686         we now test for that separately.
50687         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
50688         rather than O_NOFOLLOW, when testing whether it's possible to
50689         avoid a race condition reliably.
50690         * lib/savewd.c (savewd_chdir): Likewise.
50691
50692         Remove macros that are no longer needed now that stdint.h is
50693         reliable.
50694         * lib/fsusage.c (UINTMAX_MAX): Remove.
50695         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
50696         * lib/utimecmp.c (SIZE_MAX): Remove.
50697
50698         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
50699
50700         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
50701         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
50702         O_NOATIME works.
50703
50704 2006-10-05  Bruno Haible  <bruno@clisp.org>
50705
50706         * lib/gl_list.h (gl_sortedlist_search_from_to,
50707         gl_sortedlist_indexof_from_to): New declarations.
50708         (gl_list_implementation): New fields sortedlist_search_from_to,
50709         sortedlist_indexof_from_to.
50710         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
50711         inline functions.
50712         * lib/gl_list.c (gl_sortedlist_search_from_to,
50713         gl_sortedlist_indexof_from_to): New functions.
50714         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
50715         function.
50716         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
50717         (gl_array_sortedlist_search_from_to): New function.
50718         (gl_array_list_implementation): Update.
50719         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
50720         function.
50721         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
50722         (gl_carray_sortedlist_search_from_to): New function.
50723         (gl_carray_list_implementation): Update.
50724         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
50725         gl_linked_sortedlist_indexof_from_to): New functions.
50726         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50727         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50728         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
50729         gl_tree_sortedlist_indexof_from_to): New functions.
50730         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50731         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50732         Update.
50733         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50734         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
50735         Update.
50736
50737 2006-10-05  Bruno Haible  <bruno@clisp.org>
50738
50739         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
50740         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
50741         (struct gl_list_implementation): Add fields search_from_to,
50742         indexof_from_to. Remove fields search, indexof.
50743         (gl_list_search): Use the search_from_to method.
50744         (gl_list_search_from, gl_list_search_from_to): New functions.
50745         (gl_list_indexof): Use the indexof_from_to method.
50746         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50747         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
50748         (gl_list_search_from, gl_list_search_from_to): New functions.
50749         (gl_list_indexof): Use the indexof_from_to method.
50750         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50751         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
50752         gl_array_indexof. Add start_index, end_index arguments.
50753         (gl_array_search_from_to): Renamed from gl_array_search. Add
50754         start_index, end_index arguments.
50755         (gl_array_remove, gl_array_list_implementation): Update.
50756         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
50757         gl_carray_indexof. Add start_index, end_index arguments.
50758         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
50759         start_index, end_index arguments.
50760         (gl_carray_remove, gl_carray_list_implementation): Update.
50761         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
50762         gl_linked_search. Add start_index, end_index arguments.
50763         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
50764         start_index, end_index arguments.
50765         (gl_linked_remove): Update.
50766         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50767         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50768         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
50769         field to 'size_t'.
50770         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
50771         gl_tree_search. Add start_index, end_index arguments.
50772         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50773         start_index, end_index arguments.
50774         (gl_tree_remove): Update.
50775         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50776         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50777         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
50778         function.
50779         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
50780         gl_tree_search. Add start_index, end_index arguments.
50781         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50782         start_index, end_index arguments.
50783         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50784         Update.
50785         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50786
50787 2006-10-05  Bruno Haible  <bruno@clisp.org>
50788
50789         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
50790
50791         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
50792         fwriteerror_temp): New declarations.
50793         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
50794         (descriptors): New variable.
50795         (cleanup): First, close the descriptors.
50796         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
50797         fclose_temp, fwriteerror_temp): New functions.
50798
50799 2006-10-04  Jim Meyering  <jim@meyering.net>
50800
50801         * lib/fts.c (fts_open): Tiny comment change.
50802
50803 2006-10-04  Bruno Haible  <bruno@clisp.org>
50804
50805         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
50806         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
50807         gl_LOCK_BODY.
50808         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
50809         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
50810         gl_LOCK_EARLY_BODY.
50811         (gl_LOCK): Require gl_LOCK_BODY.
50812
50813 2006-10-04  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50816         (gl_oset_search_atleast): New declaration.
50817         (struct gl_oset_implementation): Add field 'search_atleast'.
50818         (gl_oset_search_atleast): New inline function.
50819         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50820         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50821         (gl_array_oset_implementation): Update.
50822         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50823         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50824         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50825
50826 2006-10-04  Bruno Haible  <bruno@clisp.org>
50827
50828         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50829
50830 2006-10-03  Bruno Haible  <bruno@clisp.org>
50831
50832         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50833         from gl_avltreehash_list_implementation.
50834
50835 2006-10-03  Bruno Haible  <bruno@clisp.org>
50836
50837         * lib/gl_oset.c (gl_oset_add): Fix return type.
50838
50839 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50840
50841         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50842
50843 2006-10-02  Eric Blake  <ebb9@byu.net>
50844
50845         * modules/strnlen (Depends-on): Add extensions.
50846
50847 2006-10-02  Eric Blake  <ebb9@byu.net>
50848
50849         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50850         definition in 2.60+.
50851
50852 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50853
50854         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50855         checks.
50856
50857 2006-10-02  Bruno Haible  <bruno@clisp.org>
50858
50859         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50860         to the AUTOMAKE_OPTIONS.
50861         Reported by Jim Meyering.
50862
50863 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50864
50865         Work around bug in Solaris 10 /proc file system:
50866         /proc/self/fd/NNN/.. isn't the parent directory of
50867         the directory whose file descriptor is NNN.  This needs to
50868         be worked around at run time, not compile time, since a
50869         program might be built on Solaris 8, where things work, and
50870         run on Solaris 10.
50871         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50872         to use the following interface instead:
50873         (OPENAT_BUFFER_SIZE): New macro.
50874         (openat_proc_name): New function.
50875         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50876         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50877         Likewise.
50878         * lib/openat-proc.c: New file.
50879         * modules/openat (Files): Add lib/openat-proc.c.
50880         (Depends-on): Add same-inode, stdbool.
50881         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50882
50883 2006-09-29  Bruno Haible  <bruno@clisp.org>
50884
50885         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50886         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50887         argument. Set stdout_closed before testing for ferror, not after.
50888         (fwriteerror, fwriteerror_no_ebadf): New functions.
50889
50890 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50891
50892         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50893
50894 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50895
50896         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50897         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50898
50899 2006-09-28  Jim Meyering  <jim@meyering.net>
50900
50901         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50902         Include <unistd.h>.
50903
50904 2006-09-28  Bruno Haible  <bruno@clisp.org>
50905
50906         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50907         * modules/linkedhash-list (Depends-on): Likewise.
50908         * modules/rbtreehash-list (Depends-on): Likewise.
50909
50910 2006-09-28  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/strndup.h: Simplify the redefinition of strndup.
50913         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50914         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50915
50916 2006-09-28  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50919         * lib/gl_linkedhash_list.c: Likewise.
50920         * lib/gl_rbtreehash_list.c: Likewise.
50921
50922 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50923
50924         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50925         getaddrinfo.
50926
50927         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50928         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50929         it causes <stdio_ext.h> to cause a compile-time error.
50930         Problem reported by Nelson H. F. Beebe.
50931         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50932         of HAVE_DECL___PENDING.
50933
50934         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50935         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50936         declaration.
50937
50938 2006-09-27  Jim Meyering  <jim@meyering.net>
50939
50940         This file could end up with a definition for a function
50941         named __strndup, rather than rpl_strndup on a system with
50942         incomplete weak_alias support.
50943         * lib/strndup.c (strndup): Rename from __strndup.
50944         Remove #defines that used to map __strndup to strndup.
50945         Don't use K&R prototypes.
50946         Remove LIBC-related code, since this file is not sync'd with glibc.
50947         * lib/strndup.h: Revamp, accordingly.
50948         * m4/strndup.m4: Modernize.
50949
50950 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50951
50952         * modules/savewd (Depends-on): Add 'raise'.
50953         * lib/savewd.c: Include <signal.h>, for 'raise'.
50954
50955 2006-09-26  Jim Meyering  <jim@meyering.net>
50956
50957         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50958         when we detect Darwin 8.7.0's acl_get_file bug.
50959         Rearrange to perform the new (below) run-test while $LIBS
50960         contains any acl-related library.  Set USE_ACL at the end.
50961         (gl_ACL_GET_FILE): New function.
50962
50963 2006-09-26  Eric Blake  <ebb9@byu.net>
50964
50965         * lib/verror.c: Include <config.h> unconditionally.
50966
50967 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50968
50969         * modules/clock-time (Maintainer): Add self.
50970         * modules/getlogin_r (Depends-on): Add extensions.
50971
50972 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50973
50974         * modules/clock-time: New module.
50975         * modules/nanosleep (Depends-on): Add clock-time.
50976         * modules/gethrxtime (Depends-on): Likewise.
50977         * modules/gettime (Depends-on): Likewise.
50978         * modules/settime (Depends-on): Likewise.
50979
50980         * modules/fts-lgpl: Depend on openat.
50981         * modules/mkancesdirs: Depend on savewd.
50982         * modules/mkdir-p: Likewise.
50983
50984 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50985
50986         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50987
50988         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50989         `gl_have_arbitrary_file_name_length_limit' to
50990         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50991         actually works between configure runs.
50992
50993 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50994             Bruno Haible  <bruno@clisp.org>
50995
50996         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50997
50998 2006-09-25  Jim Meyering  <jim@meyering.net>
50999
51000         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
51001         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
51002
51003 2006-09-25  Eric Blake  <ebb9@byu.net>
51004
51005         * gnulib-tool (func_import, func_create_testdir): Fix typos in
51006         exec's in 2006-09-18 patch when shuffling fds.
51007
51008 2006-09-25  Bruno Haible  <bruno@clisp.org>
51009
51010         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
51011         Reported by Jim Meyering.
51012
51013 2006-09-24  Jim Meyering  <jim@meyering.net>
51014
51015         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
51016         compare a pointer against a literal "0".  That caused failures with
51017         at least HP-UX's hpcc.
51018
51019 2006-09-22  Simon Josefsson  <jas@extundo.com>
51020
51021         * modules/gc-sha1:
51022         * modules/gc-md4:
51023         * modules/gc-hmac-sha1:
51024         * modules/gc-hmac-md5:
51025         * modules/gc-des:
51026         * modules/gc-arcfour: Distribute more files.
51027
51028 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51029
51030         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
51031         (gl_linked_iterator_from_to): Initialize struct completely.
51032         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
51033         (gl_tree_iterator_from_to): Likewise
51034         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
51035         * lib/gl_array_list.c [lint] (gl_array_iterator)
51036         (gl_array_iterator_from_to): Likewise.
51037         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
51038         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
51039         (gl_carray_iterator_from_to): Likewise.
51040
51041         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
51042         * lib/md4.c (md4_process_block): Remove unused variable.
51043         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
51044         parentheses for clarity.
51045
51046 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51047
51048         * modules/bison-i18n (Depends-on): Add gettext.
51049
51050 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51051
51052         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
51053         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
51054         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
51055         also add missing comma that caused broken test.
51056         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
51057         stdlib.h, for `abort'.
51058         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
51059         variables.
51060         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
51061         include unistd.h if present, for `rmdir'.
51062         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
51063         variables.
51064         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
51065         in the process include standard headers for prototypes.
51066         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
51067         gets declared on GNU/Linux.
51068         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
51069         unistd.h, for `rmdir'.
51070         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
51071
51072         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
51073         always true.
51074         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
51075
51076         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
51077
51078 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51079
51080         * gnulib-tool (func_version): Create output all at once.  This
51081         may help avoid triggering unnecessary SIGPIPEs, and at any
51082         rate it doesn't hurt.
51083
51084 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51085             Bruno Haible  <bruno@clisp.org>
51086
51087         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
51088         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51089         * m4/signed.m4 (bh_C_SIGNED): Likewise.
51090
51091         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
51092         (gl_FUNC_VASPRINTF): Invoke it.
51093
51094 2006-09-22  Bruno Haible  <bruno@clisp.org>
51095
51096         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
51097         getloadavg.c as first argument.
51098
51099 2006-09-22  Bruno Haible  <bruno@clisp.org>
51100
51101         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
51102         at the beginning of the gl_INIT macro.
51103         * modules/getloadavg (configure.ac): Pass $gl_source_base to
51104         gl_GETLOADAVG.
51105
51106 2006-09-22  Bruno Haible  <bruno@clisp.org>
51107
51108         * gnulib-tool (func_create_megatestdir): Don't include the config-h
51109         module.
51110         Suggested by Ralf Wildenhues.
51111
51112 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51113
51114         Import this patch from libc:
51115
51116         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
51117
51118         * lib/regex_internal.c (re_string_reconstruct): Handle
51119         offset < pstr->valid_raw_len && pstr->offsets_needed case.
51120         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
51121         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
51122         re_string_context_at.
51123
51124         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
51125         now requires it.
51126         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
51127         gl_REGEX now does it for us.
51128         (gl_REGEX): Add test taken from
51129         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
51130
51131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
51132         Check that large offsets work.  Modernize Autoconf usages.
51133         Prefer "yes" to mean a good thing rather than a bad.
51134         Don't put "#define mkstemp" in config.h, as this might interfere
51135         with standard system headers that "#define mkstemp mkstemp64".
51136
51137         * modules/mkstemp (Depends-on): Add extensions, so that
51138         mkstemp is visible on some platforms.
51139         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
51140         (Include): Change to "mkstemp.h" from <stdlib.h>.
51141         (Files): Add mkstemp.h.
51142
51143         * lib/mkstemp.h: New file, since some standard headers
51144         #define mkstemp.
51145         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
51146         Include "mkstemp.h".
51147         Make the _LIBC code resemble glibc original more,
51148         e.g., use K&R style.
51149         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
51150         (mkstemp): Remove, since mkstemp.h does this for us.
51151         * lib/stdlib--.h: Include mkstemp.h.
51152
51153         Import this patch from libc:
51154
51155         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
51156
51157         * lib/tempname.c (__gen_tempname): Change attempts_min
51158         into a macro.  Use preprocessor to decide how to initialize
51159         attempts [Coverity CID 67].
51160
51161 2006-09-20  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/mkdtemp.c: Import from libc.
51164         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
51165                 * sysdeps/posix/tempname.c (__gen_tempname): Change
51166                 attempts_min into a macro.  Use preprocessor to decide how to
51167                 initialize attempts [Coverity CID 67].
51168         2001-11-27  Paul Eggert  <eggert@twinsun.com>
51169                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
51170                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
51171
51172 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51173
51174         * gnulib-tool (func_exit): New function, to allow to pass the
51175         exit status portably through the trap.  Use everywhere.
51176         (--help, --version): Signal a write error.
51177         (trap): catch SIGPIPE, for write errors.
51178         Exit at the end of the trap, with the correct exit status.
51179
51180 2006-09-19  Karl Berry  <karl@gnu.org>
51181
51182         * doc/gnulib.texi: note about the license texinfo files.
51183
51184 2006-09-19  Eric Blake  <ebb9@byu.net>
51185
51186         * gnulib-tool: Avoid space-tab.
51187
51188 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51189
51190         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
51191         that prevented coreutils 6.1 from building.  Problem reported
51192         by Petter Reinholdtsen.
51193
51194 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51195
51196         * gnulib-tool (avoidlist): Fix typo that broke options like
51197         --avoid=lock that are used by coreutils bootstrap.
51198
51199 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
51200
51201         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
51202         more systematically.
51203
51204 2006-09-18  Jim Meyering  <jim@meyering.net>
51205
51206         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
51207
51208 2006-09-18  Bruno Haible  <bruno@clisp.org>
51209
51210         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
51211
51212 2006-09-18  Bruno Haible  <bruno@clisp.org>
51213
51214         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
51215         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
51216         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
51217         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
51218         * m4/gettext.m4: Require autoconf >= 2.52.
51219         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
51220         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
51221         of gl_cv_header_inttypes_h.
51222
51223 2006-09-18  Bruno Haible  <bruno@clisp.org>
51224
51225         * lib/javaversion.c: Include configmake.h.
51226
51227 2006-09-18  Bruno Haible  <bruno@clisp.org>
51228
51229         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
51230         avoid that the while loops be executed in a subshell.
51231
51232 2006-09-18  Bruno Haible  <bruno@clisp.org>
51233
51234         * MODULES.html.sh (func_module): Break long lines.
51235         Suggested by Bruce Korb <bkorb@gnu.org>.
51236
51237 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51238
51239         Speed up by a factor of 1.12.
51240         * gnulib-tool (nl): New variable.
51241         (func_import): Rewrite include directive extraction to only read each
51242         directive once.
51243
51244 2006-09-17  Bruno Haible  <bruno@clisp.org>
51245
51246         * modules/javaversion (Makefile.am): Remove DEFS setting.
51247         (Depends-on): Add configmake, for PKGDATADIR definition.
51248
51249 2006-09-17  Bruno Haible  <bruno@clisp.org>
51250
51251         * gnulib-tool (func_create_testdir): Rewrite all files at once.
51252
51253 2006-09-17  Bruno Haible  <bruno@clisp.org>
51254
51255         * gnulib-tool (func_append): New function, stolen from libtool.m4.
51256         (func_modules_transitive_closure, func_modules_add_dummy,
51257         func_modules_to_filelist, func_import, func_create_testdir,
51258         func_create_megatestdir, ...): Use it wherever possible.
51259         Suggested by Ralf Wildenhues.
51260
51261 2006-09-16  Karl Berry  <karl@gnu.org>
51262
51263         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
51264         to avoid sectioning errors.
51265         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
51266         [ifinfo]: blank line after @center-ed titles.
51267         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
51268         Spell FSF address consistently with others.
51269         (These changes approved by rms.)
51270
51271 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51272
51273         Speed up by a factor of 1.61.
51274         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
51275         already checked module names again.
51276
51277 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51278
51279         Speed up by a factor of 1.13.
51280         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
51281         for new_files, and the input to func_add_or_update.
51282
51283 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51284
51285         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
51286         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
51287
51288 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51289
51290         * modules/mkancesdirs (Depends-on): Add fcntl.
51291         * modules/savewd: New file.
51292         * MODULES.html.sh (File system functions): Add savewd.
51293
51294         * modules/configmake (Makefile.am): Add support for the
51295         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
51296
51297 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51298
51299         * m4/savewd.m4: New file.
51300
51301 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51302
51303         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
51304         (dirchownmod): New arg FD.  All callers changed.
51305         Use FD rather than opening the directory ourself, as opening is
51306         now the caller's responsibility.
51307         * lib/dirchownmod.h: Likewise.
51308         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
51309         hosts that require <sys/types.h> before <sys/stat.h>.  Include
51310         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
51311         (test_dir): Remove.
51312         (mkancesdirs): Return length of prefix of FILE that has already
51313         been made, or -2 if there is a child doing the work.  Redo
51314         algorithm so that it is O(N) rather than O(N**2).  Optimize away
51315         ".", and treat ".." specially since it might stray back into
51316         already-created areas.  Use a subprocess if necessary.  New arg
51317         WD; all users changed.  MAKE_DIR function should now return 1
51318         if it creates a directory that is not readable.  Return -2 if
51319         a child process is spun off.
51320         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
51321         Adjust signature to match code.
51322         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
51323         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
51324         all users changed.
51325         * lib/savewd.c, lib/savewd.h: New files.
51326
51327 2006-09-15  Jim Meyering  <jim@meyering.net>
51328
51329         * modules/rename-dest-slash: New module.
51330         * MODULES.html.sh (posix_compat): Add it here.
51331
51332         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
51333
51334 2006-09-15  Jim Meyering  <jim@meyering.net>
51335
51336         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
51337         file.
51338
51339         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
51340
51341 2006-09-15  Jim Meyering  <jim@meyering.net>
51342
51343         * lib/rename-dest-slash.c (has_trailing_slash): Use
51344         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
51345         (rpl_rename_dest_slash): Perform the cheaper trailing slash
51346         test before testing whether SRC is a directory.
51347         Suggestions from Bruno Haible.
51348
51349         Avoid a warning about an unused variable.
51350         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
51351         into the #ifdef block where it's used.
51352
51353         * lib/rename-dest-slash.c: New file.
51354
51355 2006-09-14  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/allocsa.c: Include <config.h> unconditionally.
51358         * lib/asnprintf.c: Likewise.
51359         * lib/asprintf.c: Likewise.
51360         * lib/c-strcasecmp.c: Likewise.
51361         * lib/c-strcasestr.c: Likewise.
51362         * lib/c-strncasecmp.c: Likewise.
51363         * lib/c-strstr.c: Likewise.
51364         * lib/classpath.c: Likewise.
51365         * lib/clean-temp.c: Likewise.
51366         * lib/concatpath.c: Likewise.
51367         * lib/copy-file.c: Likewise.
51368         * lib/csharpcomp.c: Likewise.
51369         * lib/csharpexec.c: Likewise.
51370         * lib/execute.c: Likewise.
51371         * lib/fatal-signal.c: Likewise.
51372         * lib/findprog.c: Likewise.
51373         * lib/fwriteerror.c: Likewise.
51374         * lib/gl_array_list.c: Likewise.
51375         * lib/gl_array_oset.c: Likewise.
51376         * lib/gl_avltree_list.c: Likewise.
51377         * lib/gl_avltree_oset.c: Likewise.
51378         * lib/gl_avltreehash_list.c: Likewise.
51379         * lib/gl_carray_list.c: Likewise.
51380         * lib/gl_linked_list.c: Likewise.
51381         * lib/gl_linkedhash_list.c: Likewise.
51382         * lib/gl_list.c: Likewise.
51383         * lib/gl_oset.c: Likewise.
51384         * lib/gl_rbtree_list.c: Likewise.
51385         * lib/gl_rbtree_oset.c: Likewise.
51386         * lib/gl_rbtreehash_list.c: Likewise.
51387         * lib/imaxabs.c: Likewise.
51388         * lib/imaxdiv.c: Likewise.
51389         * lib/javacomp.c: Likewise.
51390         * lib/javaexec.c: Likewise.
51391         * lib/javaversion.c: Likewise.
51392         * lib/linebreak.c: Likewise.
51393         * lib/localcharset.c: Likewise.
51394         * lib/lock.c: Likewise.
51395         * lib/mbchar.c: Likewise.
51396         * lib/mbswidth.c: Likewise.
51397         * lib/mkdtemp.c: Likewise.
51398         * lib/pipe.c: Likewise.
51399         * lib/printf-args.c: Likewise.
51400         * lib/printf-parse.c: Likewise.
51401         * lib/progname.c: Likewise.
51402         * lib/progreloc.c: Likewise.
51403         * lib/readlink.c: Likewise.
51404         * lib/sh-quote.c: Likewise.
51405         * lib/stpcpy.c: Likewise.
51406         * lib/stpncpy.c: Likewise.
51407         * lib/strcasecmp.c: Likewise.
51408         * lib/strcasestr.c: Likewise.
51409         * lib/strcspn.c: Likewise.
51410         * lib/striconv.c: Likewise.
51411         * lib/strncasecmp.c: Likewise.
51412         * lib/strnlen1.c: Likewise.
51413         * lib/strstr.c: Likewise.
51414         * lib/strtok_r.c: Likewise.
51415         * lib/tls.c: Likewise.
51416         * lib/tmpdir.c: Likewise.
51417         * lib/unicodeio.c: Likewise.
51418         * lib/unsetenv.c: Likewise.
51419         * lib/vasnprintf.c: Likewise.
51420         * lib/vasprintf.c: Likewise.
51421         * lib/wait-process.c: Likewise.
51422         * lib/xallocsa.c: Likewise.
51423         * lib/xsetenv.c: Likewise.
51424         * lib/xstriconv.c: Likewise.
51425
51426 2006-09-13  Simon Josefsson  <jas@extundo.com>
51427
51428         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51429         that internally, suggested by Ralf Wildenhues
51430         <Ralf.Wildenhues@gmx.de>.
51431
51432 2006-09-13  Simon Josefsson  <jas@extundo.com>
51433
51434         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51435         @LIBOBJS@.
51436         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51437
51438 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51439
51440         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51441         longer worry about uses that don't define HAVE_CONFIG_H.
51442         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51443         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51444         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51445         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51446         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51447         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51448         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51449         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51450         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51451         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51452         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51453         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51454         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51455         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51456         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51457         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51458         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51459         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51460         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51461         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51462         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51463         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51464         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51465         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51466         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51467         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51468         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51469         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51470         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51471         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51472         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51473         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51474         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51475         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51476         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51477         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51478         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51479         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51480         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51481         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51482         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51483         Likewise.
51484
51485 2006-09-13  Eric Blake  <ebb9@byu.net>
51486
51487         * lib/getopt.c: Fix typo in last commit.
51488
51489 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51490
51491         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51492         dgettext.
51493
51494 2006-09-12  Jim Meyering  <jim@meyering.net>
51495
51496         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51497         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51498         Reported by Nelson H. F. Beebe.
51499
51500 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51501
51502         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51503         program_invocation_name and program_invocation_short_name are
51504         initialized.
51505         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51506         and program_invocation_short_name to argp.h, so they are visible
51507         to user programs.
51508         * lib/argp.h: Likewise
51509
51510 2006-09-10  Bruno Haible  <bruno@clisp.org>
51511
51512         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51513         m4/inttypes_h.m4, m4/uintmax_t.m4.
51514
51515 2006-09-10  Bruno Haible  <bruno@clisp.org>
51516
51517         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51518         gl_AC_TYPE_UINTMAX_T.
51519
51520 2006-09-10  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51523
51524 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51525
51526         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51527         convention.  Text proposed by Bruno Haible.
51528         (struct argp_option): Document the use of N_() wrappers.
51529
51530         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51531         '\v', and translate the two parts separately, instead of feeding
51532         the whole string to gettext.  This allows to exclude
51533         '\v' from the strings visible to the translator by writing doc
51534         strings as N_("..") "\v" N_("..").
51535
51536 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51537
51538         * config/srclist.txt: Undo latest change; the bug was fixed.
51539
51540 2006-09-09  Bruno Haible  <bruno@clisp.org>
51541
51542         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51543         assignments if building a library without libtool.
51544         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51545         in func_emit_lib_Makefile_am.
51546         (func_import): When building a static library libfoo.a, arrange to
51547         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51548         (func_create_testdir): Likewise.
51549         * modules/gc (configure.ac, Makefile.am): If building statically,
51550         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51551         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51552         * modules/striconv (configure.ac, Makefile.am): Likewise.
51553         Based on a suggestion by Ralf Wildenhues.
51554
51555 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51556
51557         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51558         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51559         Also:
51560
51561         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51562         Add year_2050_test to catch glibc bug 2821
51563         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51564
51565         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51566         Prefer #ifdef to #if.
51567
51568         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51569         Return from 'main' instead of calling 'exit'.
51570
51571 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51572
51573         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51574         returned the maximum time_t value rather than (time_t) -1.
51575         Problem originally reported by William Bardwell
51576         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51577
51578         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51579         Moved to here ...
51580         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51581         ... from here.
51582
51583 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51584
51585         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51586         2821 is fixed.
51587
51588 2006-09-08  Jim Meyering  <jim@meyering.net>
51589
51590         Don't make generated files read-only.  That would bother too many
51591         people.  However, do retain the ability to work when targets are
51592         read-only: remove the destination and temporary files before writing
51593         them (when generated via sed or echo), or by using the -f option for
51594         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51595         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51596         * modules/byteswap, modules/configmake, modules/fcntl:
51597         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51598         * modules/localcharset, modules/netinet_in, modules/poll:
51599         * modules/stdbool, modules/stdint, modules/sys_select:
51600         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51601
51602 2006-09-08  Jim Meyering  <jim@meyering.net>
51603
51604         Avoid new build failure on FreeBSD 6.0.
51605         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51606         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51607         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51608
51609 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51610
51611         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51612
51613 2006-09-07  Jim Meyering  <jim@meyering.net>
51614
51615         Fix global typo in last change: use chmod u-w, not chmod u-x.
51616         Spotted by Paul Eggert and Bruce Korb.
51617         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51618         * modules/byteswap, modules/configmake, modules/fcntl:
51619         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51620         * modules/localcharset, modules/netinet_in, modules/poll:
51621         * modules/stdbool, modules/stdint, modules/sys_select:
51622         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51623
51624 2006-09-06  Jim Meyering  <jim@meyering.net>
51625
51626         Make generated files be read-only.
51627         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51628         Ensure that each generated file is now read-only.
51629         * modules/argz: Likewise.
51630         * modules/arpa_inet: Likewise.
51631         * modules/byteswap: Likewise.
51632         * modules/configmake: Likewise.
51633         * modules/fcntl: Likewise.
51634         * modules/fnmatch: Likewise.
51635         * modules/getopt: Likewise.
51636         * modules/glob: Likewise.
51637         * modules/inttypes: Likewise.
51638         * modules/netinet_in: Likewise.
51639         * modules/poll: Likewise.
51640         * modules/stdbool: Likewise.
51641         * modules/stdint: Likewise.
51642         * modules/sys_select: Likewise.
51643         * modules/sys_socket: Likewise.
51644         * modules/sys_stat: Likewise.
51645         * modules/sysexits: Likewise.
51646         * modules/localcharset: Same as above, but continue using temporary
51647         file named "t-$@" (why different?) rather than the "$@-t" used
51648         everywhere else.
51649
51650         * modules/sysexits (Makefile.am): Replace literal occurrences
51651         of "sysexit.h" more readable, and more consistent, "$@".
51652
51653 2006-09-06  Bruno Haible  <bruno@clisp.org>
51654
51655         * modules/striconv: New file.
51656         * modules/xstriconv: New file.
51657         * MODULES.html.sh (Internationalization functions): Add striconv,
51658         xstriconv.
51659
51660 2006-09-06  Bruno Haible  <bruno@clisp.org>
51661
51662         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
51663         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
51664         not using libtool correctly.
51665
51666 2006-09-06  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/striconv.h: New file.
51669         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
51670         iconvstring.c.
51671         * lib/xstriconv.h: New file.
51672         * lib/xstriconv.c: New file.
51673
51674 2006-09-06  Bruno Haible  <bruno@clisp.org>
51675
51676         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51677         lib_..._LDFLAGS.
51678
51679 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51680
51681         * lib/argz_.h: Sync from Libtool.
51682
51683         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
51684                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51685
51686         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
51687
51688 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51689
51690         * modules/trim: New file.
51691
51692 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51693
51694         * lib/trim.h: New file.
51695         * lib/trim.c: New file.
51696
51697 2006-09-05  Bruno Haible  <bruno@clisp.org>
51698
51699         * MODULES.html.sh (String handling): Add trim.
51700
51701 2006-09-04  Karl Berry  <karl@gnu.org>
51702
51703         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
51704         until next release.
51705
51706 2006-09-03  Bruno Haible  <bruno@clisp.org>
51707
51708         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
51709         correctly.
51710
51711 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51712
51713         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
51714         not gl_GETLOADAVG.  Omit unneeded semicolons.
51715         Problems reported by Ralf Wildenhues in
51716         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51717         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
51718         at the end, which is the usual gnulib style.
51719
51720         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
51721         of doing all the work ourselves.
51722         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
51723         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
51724
51725 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51726
51727         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
51728         Problem reported by Ralf Wildenhues in
51729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51730
51731         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
51732         HAVE_STRUCT_STATFS_F_FSTYPENAME.
51733
51734 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51735
51736         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
51737         yesterday's patch by changing test -n to test -z.
51738
51739 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51740
51741         * modules/getloadavg (Files): Add m4/getloadavg.m4.
51742         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
51743         the former is now obsolescent.
51744
51745         * modules/chdir-long (Depends-on): Add fcntl.
51746
51747 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
51750         obsolescent, and programs should use gnulib instead.
51751         * m4/getloadavg.m4: New file, with contents taken from Autoconf
51752         but with prefixes changed.
51753
51754 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51755
51756         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
51757         or stdbool.h, because they might not exist while configuring.
51758
51759         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
51760         Don't include unistd.h or limits.h; not needed, since chdir-long.h
51761         does that for us.
51762         (O_DIRECTORY): Remove.
51763
51764 2006-08-31  Eric Blake  <ebb9@byu.net>
51765
51766         * gnulib-tool: Don't let emacs change spaces to TAB.
51767
51768 2006-08-31  Bruno Haible  <bruno@clisp.org>
51769
51770         * gnulib-tool: When calling func_import more than once, do it in a
51771         subshell.
51772         Reported by Eric Blake <ebb9@byu.net>.
51773
51774 2006-08-31  Bruno Haible  <bruno@clisp.org>
51775
51776         * gnulib-tool (nl): Remove variable.
51777         (sed_transform_lib_file): Use more robust test for config-h module.
51778         (func_import): Fix typo in 2006-08-25 patch.
51779
51780 2006-08-31  Bruno Haible  <bruno@clisp.org>
51781
51782         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
51783         specified, augment Makefile.am variables instead of assigning them.
51784
51785 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51786
51787         Work around a bug in both the Linux and SunOS 64-bit kernels:
51788         nanosleep mishandles sleeps for longer than 2**31 seconds.
51789         Problem reported by Frank v Waveren in
51790         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
51792         Check for nanosleep bug.
51793         (LIB_NANOSLEEP): Append clock_gettime library if needed.
51794
51795 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51796
51797         Work around a bug in both the Linux and SunOS 64-bit kernels:
51798         nanosleep mishandles sleeps for longer than 2**31 seconds.
51799         Problem reported by Frank v Waveren in
51800         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51801         * lib/nanosleep.c (BILLION): New constant.
51802         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
51803         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
51804         implementation.
51805
51806 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         * modules/nanosleep (Depends-on): Add gettime.
51809
51810 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51811         and Simon Josefsson  <jas@extundo.com>
51812         and Oskar Liljeblad  <oskar@osk.mine.nu>
51813
51814         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51815         * gnulib-tool (func_import): New license type 'unmodifiable license
51816         text'.
51817         * modules/fdl: Use it.  Longer description.
51818         * module/gpl, module/lgpl: New files.
51819
51820 2006-08-30  Jim Meyering  <jim@meyering.net>
51821
51822         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51823         shadowing the parameter.
51824
51825 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51826
51827         Sync from Libtool:
51828
51829         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51830
51831         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51832         sharing with gnulib.  Report by Eric Blake.
51833
51834 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         * modules/isapipe: New file.
51837         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51838
51839 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         * modules/configmake (Makefile.am): Add a comment, and omit
51842         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51843         by Bruno Haible.
51844
51845 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51846
51847         * m4/isapipe.m4: New file.
51848
51849 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51850
51851         * lib/isapipe.c, lib/isapipe.h: New files.
51852
51853 2006-08-29  Jim Meyering  <jim@meyering.net>
51854
51855         * modules/configmake (Makefile.am): Make configmake.h depend on
51856         Makefile.  Otherwise, a stale configmake.h could hang around.
51857
51858 2006-08-29  Eric Blake  <ebb9@byu.net>
51859
51860         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51861         resolution of upstream bug 3044.
51862
51863 2006-08-29  Bruno Haible  <bruno@clisp.org>
51864
51865         * modules/localcharset (Depends-on): Add configmake.
51866         (Makefile.am): Remove setting of LIBDIR through DEFS.
51867
51868 2006-08-29  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51871         defined.
51872
51873 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51874
51875         * modules/fcntl: New file.
51876         * modules/chdir-safer (Depends-on): Add fcntl.
51877         * modules/fts: Likewise.
51878         * modules/mkdir-p: Likewise.
51879
51880         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51881         This undoes the most recent change, since we're now addressing the
51882         problem in a different way.
51883
51884         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51885         into output, since the output might be called Makefile.am even
51886         if $makefile_name is something different.
51887         (func_import): Use $makefile_am rather than
51888         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51889         empty.
51890
51891         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51892
51893 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51894
51895         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51896         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51897         recent change to stdint.m4, since we're now addressing the problem in a
51898         different way.
51899
51900 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         * m4/fcntl_h.m4: New file.
51903
51904 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         * lib/fcntl_.h: New file.
51907         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51908         the fcntl module.
51909         * lib/dirchownmod.c: Likewise.
51910         * lib/fts.c: Likewise.
51911
51912         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51913         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51914         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51915         just before including <inttypes.h>, to avoid circular inclusion.
51916
51917 2006-08-28  Jim Meyering  <jim@meyering.net>
51918
51919         * doc/visibility.texi: Actually read and correct the grammar of the
51920         sentence affected by yesterday's change.
51921
51922 2006-08-28  Eric Blake  <ebb9@byu.net>
51923
51924         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51925         needs wrapper.
51926
51927 2006-08-28  Eric Blake  <ebb9@byu.net>
51928
51929         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51930
51931 2006-08-28  Eric Blake  <ebb9@byu.net>
51932
51933         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51934
51935 2006-08-28  Bruno Haible  <bruno@clisp.org>
51936
51937         * modules/c-strstr: New file, from GNU gettext.
51938         * MODULES.html.sh (String handling): Add c-strstr.
51939
51940 2006-08-28  Bruno Haible  <bruno@clisp.org>
51941
51942         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51943         macros.
51944         Reported by Eric Blake.
51945
51946 2006-08-28  Bruno Haible  <bruno@clisp.org>
51947
51948         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51949         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51950         * lib/vasprintf.c: Include errno.h, limits.h.
51951         (EOVERFLOW): New fallback definition.
51952         (vasprintf): Test here whether the string length is > INT_MAX.
51953         * lib/vsnprintf.c: Include errno.h, limits.h.
51954         (EOVERFLOW): New fallback definition.
51955         (vsnprintf): Fix bug when generated string was too long for the buffer.
51956         Test here whether the string length is > INT_MAX.
51957
51958 2006-08-28  Bruno Haible  <bruno@clisp.org>
51959
51960         * lib/inttypes_.h (SCNX*): Remove definitions.
51961         Reported by Eric Blake.
51962
51963 2006-08-28  Bruno Haible  <bruno@clisp.org>
51964
51965         * lib/c-strstr.h: New file, from GNU gettext.
51966         * lib/c-strstr.c: New file, from GNU gettext.
51967
51968 2006-08-28  Bruno Haible  <bruno@clisp.org>
51969
51970         * gnulib-tool: Reorder some statements.
51971
51972 2006-08-28  Bruno Haible  <bruno@clisp.org>
51973
51974         * gnulib-tool: New option --makefile-name.
51975         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51976         $makefile_name.
51977         (func_import): Write $makefile_name to the cache file, and read it from
51978         there unless explicitly specified. Use $makefile_name as file name
51979         instead of Makefile.am. Adjust the recommendations accordingly.
51980
51981 2006-08-28  Bruno Haible  <bruno@clisp.org>
51982
51983         * gnulib-tool (func_verify_module): Check against misapplying patch.
51984
51985 2006-08-28  Bruno Haible  <bruno@clisp.org>
51986
51987         * gnulib-tool (func_relativize, func_relconcat): New functions.
51988         Give an error if --local-dir is given with --update.
51989         Remove trailing slashes from $local_gnulib_dir.
51990         (func_import): Store the relativized $local_gnulib_dir in
51991         gnulib-cache.m4, and read it from there if not specified explicitly.
51992
51993 2006-08-28  Bruno Haible  <bruno@clisp.org>
51994
51995         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51996         is the current directory. Respect also $local_gnulib_dir.
51997
51998 2006-08-28  Bruno Haible  <bruno@clisp.org>
51999             Simon Josefsson  <jas@extundo.com>
52000
52001         BeOS portability.
52002         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
52003
52004 2006-08-27  Jim Meyering  <jim@meyering.net>
52005
52006         * doc/visibility.texi: Remove duplicate word: "pointer".
52007
52008 2006-08-26  Bruno Haible  <bruno@clisp.org>
52009
52010         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
52011         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
52012         (Makefile.am): Create inttypes.h from inttypes_.h.
52013         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
52014
52015         * modules/imaxabs: New file.
52016
52017         * modules/imaxdiv: New file.
52018
52019 2006-08-26  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/inttypes.m4: New file.
52022         * m4/_inttypes_h.m4: Remove file.
52023         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
52024         PRI_MACROS_BROKEN.
52025         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
52026
52027         * m4/imaxabs.m4: New file.
52028
52029         * m4/imaxdiv.m4: New file.
52030
52031 2006-08-26  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/inttypes_.h: New file.
52034         * lib/inttypes.h: Remove file.
52035         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
52036
52037         * lib/imaxabs.c: New file.
52038
52039         * lib/imaxdiv.c: New file.
52040
52041 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52042
52043         New config-h module, so that "make" output needn't be cluttered
52044         by -DHAVE_CONFIG_H.
52045         * MODULES.html.sh (Support for building libraries and executables):
52046         Add config-h.
52047         * modules/config-h: New file.
52048         * gnulib-tool (nl, sed_transform_lib_file): New vars.
52049         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
52050         the config-h module is used.
52051
52052         New configmake module, so that "make" output needn't be cluttered
52053         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
52054         * MODULES.html.sh (Support for building libraries and executables):
52055         Add configmake.
52056         * modules/configmake: New file.
52057
52058 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * m4/config-h.m4: New file.
52061
52062 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52063
52064         * config/srclist.txt: Add elisp-comp.
52065
52066 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52067
52068         * MODULES.html.sh (Support for building libraries and executables):
52069         Add elisp-comp.
52070         * build-aux/elisp-comp: New file.
52071         * modules/elisp-comp: New file.
52072
52073 2006-08-24  Bruno Haible  <bruno@clisp.org>
52074
52075         * gnulib-tool (func_create_testdir): Use non-default values of
52076         sourcebase and m4base.
52077
52078 2006-08-24  Bruno Haible  <bruno@clisp.org>
52079
52080         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
52081         HTML structure.
52082
52083 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52084
52085         * modules/openat (Depends-on): Add lchown.
52086
52087 2006-08-23  Bruno Haible  <bruno@clisp.org>
52088
52089         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
52090         of gl_LOCK_EARLY instead of gl_LOCK.
52091
52092 2006-08-23  Bruno Haible  <bruno@clisp.org>
52093
52094         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
52095         on OSF/1 to no.
52096         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
52097
52098 2006-08-23  Bruno Haible  <bruno@clisp.org>
52099
52100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
52101         as unusable.
52102
52103         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
52104         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
52105         (gl_LOCK): New macro.
52106
52107 2006-08-22  Simon Josefsson  <jas@extundo.com>
52108
52109         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
52110         to md5 module.
52111
52112 2006-08-22  Simon Josefsson  <jas@extundo.com>
52113
52114         * MODULES.html.sh: Add "Support for maintaining and release
52115         projects".
52116
52117         * build-aux/gnupload: New file, from coreutils.
52118
52119 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52120
52121         Avoid the need for AC_LIBSOURCES in m4 macros.
52122         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
52123         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
52124         * modules/check-version (EXTRA_DIST): Add check-version.h.
52125         * modules/crc (EXTRA_DIST): Add crc.h.
52126         * modules/des (EXTRA_DIST): Add des.h.
52127         * modules/gc (EXTRA_DIST): Add gc.h.
52128         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
52129         * modules/getline (EXTRA_DIST): Add getline.h.
52130         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
52131         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
52132         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
52133         * modules/md2 (EXTRA_DIST): Add md2.h.
52134         * modules/md4 (EXTRA_DIST): Add md4.h.
52135         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
52136         * modules/read-file (EXTRA_DIST): Add read-file.h.
52137         * modules/readline (EXTRA_DIST): Add readline.h.
52138         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
52139         rijndael-api-fst.h.
52140
52141 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52142
52143         * m4/rijndael.m4 (gl_ARCFOUR):
52144         * m4/arctwo.m4 (gl_ARCTWO):
52145         * m4/check-version.m4 (gl_CHECK_VERSION):
52146         * m4/crc.m4 (gl_CRC):
52147         * m4/des.m4 (gl_DES):
52148         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
52149         * m4/gc.m4 (gl_GC):
52150         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
52151         * m4/getline.m4 (gl_FUNC_GETLINE):
52152         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
52153         * m4/hmac-md5.m4 (gl_HMAC_MD5):
52154         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
52155         * m4/md2.m4 (gl_MD2):
52156         * m4/md4.m4 (gl_MD4):
52157         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
52158         * m4/read-file.m4 (gl_FUNC_READ_FILE):
52159         * m4/readline.m4 (gl_FUNC_READLINE):
52160         * m4/rijndael.m4 (gl_RIJNDAEL):
52161         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52162         to get the necessary .h files and whatnot.
52163
52164 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52165
52166         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
52167         gnulib rather than the other way around.
52168         * config/srclistvars.sh (COREUTILS): Remove.
52169
52170 2006-08-22  Jim Meyering  <jim@meyering.net>
52171
52172         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
52173
52174         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
52175
52176 2006-08-22  Eric Blake  <ebb9@byu.net>
52177
52178         * modules/regexprops-generic: New file.
52179         * MODULES.html.sh (Support for building documentation): List it.
52180
52181 2006-08-22  Eric Blake  <ebb9@byu.net>
52182
52183         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
52184         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52185         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
52186         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
52187
52188 2006-08-22  Bruno Haible  <bruno@clisp.org>
52189
52190         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
52191         and lib_LTLIBRARIES like the other lib_* variables.
52192
52193 2006-08-22  Bruno Haible  <bruno@clisp.org>
52194
52195         * build-aux/x-to-1.in: New file, from GNU gettext.
52196
52197 2006-08-22  Bruno Haible  <bruno@clisp.org>
52198
52199         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
52200         <utmpx.h> exists.
52201
52202 2006-08-22  Bruno Haible  <bruno@clisp.org>
52203
52204         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
52205         <utmpx.h> exists.
52206
52207 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52208
52209         BeOS portability.
52210         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
52211         exist.
52212         Problem reported by Bruno Haible.
52213
52214 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52215
52216         Avoid the need for AC_LIBSOURCES in m4 macros.
52217         * modules/acl (EXTRA_DIST): Add acl.h.
52218         * modules/argmatch (Files): Add m4/argmatch.m4.
52219         (configure.ac): Add gl_ARGMATCH.
52220         (EXTRA_DIST): Renamed from lib_SOURCES, for
52221         consistency with the other modules.  Remove argmatch.c.
52222         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
52223         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
52224         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
52225         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
52226         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
52227         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
52228         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
52229         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
52230         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
52231         * modules/closeout (EXTRA_DIST): Add closeout.h.
52232         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
52233         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
52234         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
52235         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
52236         dirname.h; remove basename.c and stripslash.c.
52237         * modules/exclude (EXTRA_DIST): Add exclude.h.
52238         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
52239         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
52240         * modules/file-type (EXTRA_DIST): Add file-type.h.
52241         * modules/filemode (EXTRA_DIST): Add filemode.h.
52242         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
52243         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52244         * modules/fpending (EXTRA_DIST): Add __fpending.h.
52245         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
52246         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
52247         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
52248         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
52249         * modules/getdate (EXTRA_DIST): Add getdate.c.
52250         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
52251         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
52252         * modules/getpass (EXTRA_DIST): Add getpass.h.
52253         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
52254         * modules/group-member (EXTRA_DIST): Add group-member.h.
52255         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
52256         * modules/hash (EXTRA_DIST): Add hash.h.
52257         * modules/human (EXTRA_DIST): Add human.h.
52258         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
52259         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
52260         * modules/lchown (EXTRA_DIST): Add lchown.h.
52261         * modules/long-options (EXTRA_DIST): Add long-options.h.
52262         * modules/lstat (EXTRA_DIST): Add lstat.h.
52263         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
52264         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
52265         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
52266         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
52267         * modules/memxor (EXTRA_DIST): Add memxor.h.
52268         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
52269         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
52270         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
52271         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
52272         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
52273         * modules/physmem (EXTRA_DIST): Add physmem.h.
52274         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
52275         * modules/posixver (EXTRA_DIST): Add posixver.h.
52276         * modules/quote (EXTRA_DIST): Add quote.h.
52277         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
52278         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
52279         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
52280         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
52281         regex_internal.h regexec.c.
52282         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
52283         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
52284         * modules/same (EXTRA_DIST): Add same.h.
52285         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
52286         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
52287         * modules/savedir (EXTRA_DIST): Add savedir.h.
52288         * modules/sha1 (EXTRA_DIST): Add sha1.h.
52289         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
52290         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
52291         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
52292         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
52293         * modules/strdup (EXTRA_DIST): Add strdup.h.
52294         * modules/strftime (EXTRA_DIST): Add strftime.h.
52295         * modules/strndup (EXTRA_DIST): Add strndup.h.
52296         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
52297         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
52298         * modules/time_r (EXTRA_DIST): Add time_r.h.
52299         * modules/timespec (EXTRA_DIST): Add timespec.h.
52300         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52301         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
52302         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
52303         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
52304         * modules/userspec (EXTRA_DIST): Add userspec.h.
52305         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
52306         * modules/utimens (EXTRA_DIST): Add utimens.h.
52307         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
52308         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
52309         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
52310         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
52311         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
52312         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
52313         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
52314         * modules/yesno (EXTRA_DIST): Add yesno.h.
52315
52316 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
52319
52320         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
52321         * m4/dev-ino.m4, same-inode.m4: Remove.
52322
52323         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
52324         * m4/acl.m4 (AC_FUNC_ACL):
52325         * m4/backupfile.m4 (gl_BACKUPFILE):
52326         * m4/c-strtod.m4 (gl_C99_STRTOLD):
52327         * m4/canon-host.m4 (gl_CANON_HOST):
52328         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52329         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
52330         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
52331         * m4/cloexec.m4 (gl_CLOEXEC):
52332         * m4/close-stream.m4 (gl_CLOSE_STREAM):
52333         * m4/closeout.m4 (gl_CLOSEOUT):
52334         * m4/dirfd.m4 (gl_FUNC_DIRFD):
52335         * m4/dirname.m4 (gl_DIRNAME):
52336         * m4/exclude.m4 (gl_EXCLUDE):
52337         * m4/exitfail.m4 (gl_EXITFAIL):
52338         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
52339         * m4/file-type.m4 (gl_FILE_TYPE):
52340         * m4/filemode.m4 (gl_FILEMODE):
52341         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
52342         * m4/fpending.m4 (gl_FUNC_FPENDING):
52343         * m4/fprintftime.m4 (gl_FPRINTFTIME):
52344         * m4/fts.m4 (gl_FUNC_FTS):
52345         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
52346         * m4/getdate.m4 (gl_GETDATE):
52347         * m4/gethrxtime.m4 (gl_GETHRXTIME):
52348         * m4/getpagesize.m4 (gl_GETPAGESIZE):
52349         * m4/getpass.m4 (gl_FUNC_GETPASS):
52350         * m4/gettime.m4 (gl_GETTIME):
52351         * m4/getugroups.m4 (gl_GETUGROUPS):
52352         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
52353         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
52354         * m4/hard-locale.m4 (gl_HARD_LOCALE):
52355         * m4/hash.m4 (gl_HASH):
52356         * m4/idcache.m4 (gl_IDCACHE):
52357         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
52358         * m4/lchown.m4 (gl_FUNC_LCHOWN):
52359         * m4/long-options.m4 (gl_LONG_OPTIONS):
52360         * m4/lstat.m4 (gl_FUNC_LSTAT):
52361         * m4/md5.m4 (gl_MD5):
52362         * m4/memcasecmp.m4 (gl_MEMCASECMP):
52363         * m4/memcoll.m4 (gl_MEMCOLL):
52364         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
52365         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
52366         * m4/memxor.m4 (gl_MEMXOR):
52367         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52368         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52369         * m4/modechange.m4 (gl_MODECHANGE):
52370         * m4/mountlist.m4 (gl_MOUNTLIST):
52371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52372         * m4/openat.m4 (gl_FUNC_OPENAT):
52373         * m4/pathmax.m4 (gl_PATHMAX):
52374         * m4/physmem.m4 (gl_PHYSMEM):
52375         * m4/posixtm.m4 (gl_POSIXTM):
52376         * m4/posixver.m4 (gl_POSIXVER):
52377         * m4/quote.m4 (gl_QUOTE):
52378         * m4/quotearg.m4 (gl_QUOTEARG):
52379         * m4/readtokens.m4 (gl_READTOKENS):
52380         * m4/readutmp.m4 (gl_READUTMP):
52381         * m4/regex.m4 (gl_REGEX):
52382         * m4/safe-read.m4 (gl_SAFE_READ):
52383         * m4/safe-write.m4 (gl_SAFE_WRITE):
52384         * m4/same.m4 (gl_SAME):
52385         * m4/save-cwd.m4 (gl_SAVE_CWD):
52386         * m4/savedir.m4 (gl_SAVEDIR):
52387         * m4/settime.m4 (gl_SETTIME):
52388         * m4/sha1.m4 (gl_SHA1):
52389         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52390         * m4/stat-macros.m4 (gl_STAT_MACROS):
52391         * m4/stat-time.m4 (gl_STAT_TIME):
52392         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52393         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52394         * m4/strdup.m4 (gl_FUNC_STRDUP):
52395         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52396         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52397         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52398         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52399         * m4/time_r.m4 (gl_TIME_R):
52400         * m4/timespec.m4 (gl_TIMESPEC):
52401         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52402         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52403         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52404         * m4/userspec.m4 (gl_USERSPEC):
52405         * m4/utimecmp.m4 (gl_UTIMECMP):
52406         * m4/utimens.m4 (gl_UTIMENS):
52407         * m4/xalloc.m4 (gl_XALLOC):
52408         * m4/xgetcwd.m4 (gl_XGETCWD):
52409         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52410         * m4/xreadlink.m4 (gl_XREADLINK):
52411         * m4/xstrtod.m4 (gl_XSTRTOD):
52412         * m4/yesno.m4 (gl_YESNO):
52413         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52414         to get the necessary .h files and whatnot.
52415
52416 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52417             Bruno Haible  <bruno@clisp.org>
52418
52419         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52420         /bin/sh understanding of '!' conditional negation.
52421
52422 2006-08-21  Jim Meyering  <jim@meyering.net>
52423
52424         * modules/openat (Depends-on): Really alphabetize.
52425
52426         * modules/acl (Depends-on): Add error and quote.
52427
52428         * check-module (find_included_lib_files): Add at-func.c to the
52429         ok-to-include-more-than-once white list.
52430
52431         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52432
52433 2006-08-21  Bruno Haible  <bruno@clisp.org>
52434
52435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52436         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52437         Reported by Martin Lambers <marlam@marlam.de>.
52438
52439 2006-08-21  Bruno Haible  <bruno@clisp.org>
52440
52441         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52442         specify an installation location, don't emit a noinst_LIBRARIES or
52443         noinst_LTLIBRARIES assignment.
52444
52445 2006-08-21  Bruno Haible  <bruno@clisp.org>
52446
52447         BeOS portability.
52448         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52449         BeOS has mbrtowc() but no <wctype.h>.
52450
52451 2006-08-21  Bruno Haible  <bruno@clisp.org>
52452
52453         BeOS portability.
52454         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52455         exist.
52456
52457 2006-08-21  Bruno Haible  <bruno@clisp.org>
52458
52459         BeOS portability.
52460         * lib/mbchar.h: Include <wctype.h> only if it exists.
52461
52462 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52463
52464         Remove files that are no longer needed by their respective modules.
52465         * m4/obstack.m4: Remove.
52466         * m4/strerror_r.m4: Remove.
52467         * m4/uint32_t.m4: Remove.
52468         * m4/uintptr_t.m4: Remove.
52469         * m4/ullong_max.m4: Remove.
52470         * m4/xstrtoimax.m4: Remove.
52471         * m4/xstrtoumax.m4: Remove.
52472
52473         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52474         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52475         dependencies now capture this.
52476
52477         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52478         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52479         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52480         * m4/human.m4 (gl_HUMAN): Likewise.
52481         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52482         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52483
52484         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52485
52486         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52487         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52488         stdint.
52489         * m4/human.m4 (gl_HUMAN): Likewise.
52490         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52491         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52492         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52493         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52494         * m4/xstrtol (gl_XSTRTOL): Likewise.
52495
52496         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52497         AC_TYPE_LONG_LONG_INT.
52498         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52499         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52500         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52501         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52502
52503         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52504         on stdbool.
52505
52506         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52507         (gl_PREREQ_XSTRTOUL): Remove.
52508
52509         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52510
52511         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52512         mode.
52513
52514 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52515
52516         Add and change modules to make it easier for coreutils to use
52517         gnulib-tool.
52518         * modules/backupfile (Files): Remove m4/d-ino.m4.
52519         (Depends-on): Add d-ino.
52520         * modules/cycle-check (Depends-on): Add stdint.
52521         (lib_SOURCES): Add cycle-check.h.
52522         * modules/d-ino: New module.
52523         * modules/d-type: New module.
52524         * modules/error (Files): Remove m4/strerror_r.m4.
52525         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52526         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52527         m4/inttypes_h.m4, m4/uintmax_t.m4.
52528         (Depends-on): Add stdint.
52529         (lib_SOURCES): Add fsusage.h.
52530         * modules/getcwd (Files): Remove d-ino.m4.
52531         (Depends-on): Add d-ino.
52532         * modules/getndelim2 (Depends-on): Add stdint.
52533         * modules/glob (Files): Remove m4/d-type.m4.
52534         (Depends-on): Add d-type.
52535         * modules/host-os: New module.
52536         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52537         m4/inttypes_h.m4, m4/uintmax_t.m4.
52538         * Depends-on: Add stdint.
52539         (lib_SOURCES): Add human.h.
52540         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52541         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52542         m4/uintmax_t.m4, m4/ulonglong.m4.
52543         (Depends-on): Add stdint.
52544         (EXTRA_DIST): Add inttostr.h.
52545         * modules/lchmod: New module.
52546         * modules/link-follow: New module.
52547         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52548         (Depends-on): Add lchmod.
52549         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52550         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52551         (Depends-on): Add stdint.
52552         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52553         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52554         (Depends-on): Add stdint.
52555         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52556         * modules/perl: New module.
52557         * modules/regex (Depends-on): Add stdint.
52558         * modules/rmdir-errno: New module.
52559         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52560         m4/intmax_t.m4.
52561         (Depends-on): Add stdint.
52562         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52563         m4/uintmax_t.m4.
52564         (Depends-on): Add stdint.
52565         * modules/unlink-busy: New module.
52566         * modules/utimecmp (Depends-on): Add stdint.
52567         * modules/uptime: New module.
52568         * modules/winsz-ioctl: New module.
52569         * modules/winsz-termios: New module.
52570         * modules/xnanosleep (Depends-on): Add nanosleep.
52571         * modules/ullong_max: Remove.
52572         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52573         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52574         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52575         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52576         (Depends-on): Add inttypes.
52577         (lib_SOURCES): Add xstrtol.h.
52578         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52579         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52580         * MODULES.html.sh: Move 'assert' into the assert section.
52581         Move 'dummy' into the linking section.
52582         Remove ullong_max.
52583         Add section for compatibility checks for POSIX:2001 functions,
52584         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52585         winsz-ioctl, and winsz-termios into it.
52586         Add lchmod.
52587         Add top-level Misc section and put host-os, perl, and uptime
52588         into it.
52589
52590 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52591
52592         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52593         now assume the stdint module.  Do not include inttypes.h.
52594         * lib/fsusage.h: Likewise.
52595         * lib/getndelim2.c: Likewise.
52596         * lib/human.h: Likewise.
52597         * lib/inttostr.h: Likewise.
52598         * lib/obstack.c: Likewise.
52599         * lib/regex_internal.h: Likewise.
52600         * lib/tempname.c: Likewise.
52601         * lib/utimecmp.c: Likewise.
52602         * lib/xstrtol.h: Likewise.
52603
52604         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52605
52606         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52607         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52608         * lib/xtime.h: Likewise.
52609
52610 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         * modules/openat (Files): Add lib/fchmodat.c.
52613         Fixes problem reported by Jay Youngman.
52614
52615 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52616
52617         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52618         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52619
52620 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52621             Bruno Haible  <bruno@clisp.org>
52622
52623         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52624         and is a script that invokes bison. Tighten the code. Add comments.
52625
52626 2006-08-18  Jim Meyering  <jim@meyering.net>
52627
52628         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52629         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52630         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52631         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52632
52633 2006-08-18  Bruno Haible  <bruno@clisp.org>
52634
52635         * modules/bison-i18n: New file.
52636         * MODULES.html.sh (Internationalization functions): Add it.
52637
52638 2006-08-18  Bruno Haible  <bruno@clisp.org>
52639
52640         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52641         sys/statvfs.h. When getmntinfo was found, check its declaration and
52642         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52643
52644 2006-08-18  Bruno Haible  <bruno@clisp.org>
52645
52646         * m4/bison-i18n.m4: New file, from bison.
52647
52648 2006-08-18  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
52651         (ME_DUMMY): Treat "kernfs" as a dummy.
52652         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
52653
52654 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52655
52656         Update from coreutils.
52657
52658         2006-08-15  Jim Meyering  <jim@meyering.net>
52659
52660         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
52661
52662         2006-01-17  Jim Meyering  <jim@meyering.net>
52663
52664         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
52665
52666         2006-01-11  Jim Meyering  <jim@meyering.net>
52667
52668         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
52669         Check for the lchmod function.
52670
52671 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52672
52673         Update from coreutils.
52674
52675         * lib/__fpending.h: Add copyright notice.
52676         * lib/fprintftime.h: Likewise.
52677         * lib/savedir.c: Use (C) in copyright notice.
52678         * lib/savedir.h: Likewise.
52679
52680         2006-08-15  Jim Meyering  <jim@meyering.net>
52681
52682         * lib/at-func.c: New file, with the logic of all emulated at-functions.
52683         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
52684         in support of the EXPECTED_ERRNO macro.
52685         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
52686         definitions.  Instead, define the appropriate symbols and include
52687         "at-func.c".
52688         * lib/mkdirat.c (mkdirat): Likewise.
52689         * lib/fchmodat.c (fchmodat): Likewise.
52690         (ENOSYS): Remove definition.
52691         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
52692         it.  Don't include "unistd--.h" -- it wasn't ever used.
52693
52694         2006-01-17  Jim Meyering  <jim@meyering.net>
52695
52696         Rewrite fts.c not to change the current working directory,
52697         by using openat, fstatat, fdopendir, etc..
52698
52699         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
52700         (HAVE_OPENAT_SUPPORT): Define.
52701         [_LIBC] (fchdir): Don't undef or define; no longer used.
52702         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
52703         Now, this `function' always succeeds, and consumes its file descriptor
52704         parameter -- so callers must not close such FDs.  Update callers.
52705         (diropen_fd, opendirat, cwd_advance_fd): New functions.
52706         (diropen): Add parameter, SP.  Adjust all callers.
52707         Implement using diropen_fd, rather than open.
52708         (fts_open): Initialize new member, fts_cwd_fd.
52709         Remove fts_rft-setting code.
52710         (fts_close): Close fts_cwd_fd, if necessary.
52711         (__opendir2): Define in terms of opendir or opendirat,
52712         depending on whether the FST_NOCHDIR flag is set.
52713         (fts_build): Since fts_safe_changedir consumes its FD, and since
52714         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
52715         and close the dup'd file descriptor upon failure.
52716         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
52717         (fts_safe_changedir): Tweak semantics to reflect that this function
52718         now calls cwd_advance_fd and hence consumes its FD argument.
52719         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
52720         [struct FTS] (fts_rft): Remove now-unused member.
52721         [struct FTS] (fts_cycle.state): Improve comment.
52722
52723         * lib/openat.c (openat_needs_fchdir): New function.
52724         * lib/openat.h (openat_needs_fchdir): Declare it.
52725
52726 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52727
52728         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
52729         Problem and fix reported by Pádraig Brady in
52730         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
52731
52732 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52733
52734         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
52735
52736 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * lib/memcoll.c (memcoll): Optimize for the common case where the
52739         arguments are bytewise equal.
52740
52741 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52742
52743         * doc/regexprops-generic.texi: Add a copyright notice.
52744
52745 2006-08-15  Bruno Haible  <bruno@clisp.org>
52746
52747         * modules/tmpdir (License): Change to LGPL.
52748
52749 2006-08-15  Bruno Haible  <bruno@clisp.org>
52750
52751         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
52752         module.
52753
52754 2006-08-14  Simon Josefsson  <jas@extundo.com>
52755
52756         * config/srclist.txt: Add gnupload.
52757
52758 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         Change copyright notice from LGPL 2 to GPL 2, since that's the
52761         standard form used in the gnulib repository.
52762         * tests/test-lock.c: Likewise.
52763         * tests/test-stdint.c: Likewise.
52764         * tests/test-tls.c: Likewise.
52765
52766         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
52767         prelude-manager.  User shorter URLs for GNU projects, without '?'.
52768         Add copyright notice.
52769
52770         * check-module: Add copyright notice.  Output a copyright
52771         notice if "--version" is specified.
52772         * modules/COPYING: New file.
52773         * tests/test-getaddrinfo.c: Add copyright notice.
52774         * tests/test-verify.c: Likewise.
52775
52776 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52777
52778         Change copyright notice from LGPL 2 to GPL 2, since that's the
52779         standard form used in the gnulib repository.
52780         * lib/lock.c: LGPL -> GPL.
52781         * lib/lock.h: Likewise.
52782         * lib/strnlen1.c: Likewise.
52783         * lib/strnlen1.h: Likewise.
52784         * lib/tls.c: Likewise.
52785         * lib/tls.h: Likewise.
52786         * lib/tmpdir.c: Likewise.
52787
52788         * lib/TODO: Remove; this belongs only in coreutils.
52789
52790 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         Add copyright notices to long-enough files that lack them, since
52793         otherwise the files aren't clearly free.  Use the same notice that
52794         getdate.texi already uses.
52795         * doc/alloca-opt.texi: Add copyright notice.
52796         * doc/alloca.texi: Likewise.
52797         * doc/ctime.texi: Likewise.
52798         * doc/functions.texi: Likewise.
52799         * doc/gcd.texi: Likewise.
52800         * doc/gnulib-tool.texi: Likewise.
52801         * doc/inet_ntoa.texi: Likewise.
52802         * doc/visibility.texi: Likewise.
52803
52804         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
52805         * doc/quote.texi: Add copyright notice.
52806
52807         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
52808         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
52809         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
52810         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52811         is now obsolete, and give a pointer to the Sun list.
52812         Add copyright notice.
52813
52814 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52815
52816         * config/srclistvars.sh: Add copyright notice.
52817
52818 2006-08-14  Eric Blake  <ebb9@byu.net>
52819
52820         Import the following change from libc:
52821
52822         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52823
52824         Upstream bug 2997.
52825         * lib/misc/error.c: Add space between program name and message if file
52826         name is missing.
52827
52828 2006-08-12  Karl Berry  <karl@gnu.org>
52829
52830         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52831         remove, these originate in gnulib now.
52832
52833 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52834
52835         * doc/Makefile (standards.info standards.html standards.dvi):
52836         Also depend on make-stds.texi.
52837
52838 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52839
52840         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52841         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52842
52843         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52844         in wchar_t.  Problem reported by Eric Blake.
52845
52846         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52847         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52848         Also, help the compiler to keep LEN in a register.
52849
52850 2006-08-11  Eric Blake  <ebb9@byu.net>
52851
52852         * users.txt: Sort.  Add tar.
52853
52854 2006-08-11  Bruno Haible  <bruno@clisp.org>
52855
52856         * users.txt: New file.
52857
52858 2006-08-11  Bruno Haible  <bruno@clisp.org>
52859
52860         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52861         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52862
52863 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52864
52865         * modules/snprintf (Depends-on): Remove minmax.
52866         (Maintainer): Add self and Bruno.
52867
52868 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52869
52870         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52871         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52872         (EOVERFLOW): Define if the system does not.
52873         Do not include "minmax.h"; it wasn't used.
52874         (snprintf): Don't assume size_t promotes to an unsigned type.
52875         Fix bug when generated string was too long for the buffer: the
52876         buffer's contents are supposed to be the initial prefix of the
52877         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52878         exceeds INT_MAX; do the check ourselves.
52879
52880         Import the following changes from libc:
52881
52882         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52883
52884         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52885         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52886         set wc to the byte which couldn't be converted.
52887         (re_string_reconstruct): Don't clear valid_raw_len before calling
52888         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52889         tip_context using re_string_context_at.
52890
52891         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52892
52893         * lib/posix/regex.h: g++ still cannot handled [restrict].
52894
52895         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52896
52897         * lib/posix/regex.h: Remove special handling for VMS.
52898
52899 2006-08-10  Jim Meyering  <jim@meyering.net>
52900
52901         * modules/same-inode: New module.
52902         * modules/dev-ino: New module.
52903         * modules/cycle-check: Depend on these modules, rather than simply
52904         including their .h files.
52905         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52906         required via m4/cycle-check.m4.
52907         * modules/same: Depend on new same-inode module, rather than
52908         including same-inode.h.
52909         * modules/chdir-safer: New file.
52910
52911         * modules/chown (Depends-on): Add stat-macros.
52912
52913 2006-08-10  Jim Meyering  <jim@meyering.net>
52914
52915         * m4/cycle-check.m4: New file.
52916         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52917         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52918
52919 2006-08-10  Eric Blake  <ebb9@byu.net>
52920
52921         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52922         in from original proposal.
52923
52924 2006-08-10  Eric Blake  <ebb9@byu.net>
52925         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52926
52927         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52928         namespace.
52929
52930 2006-08-10  Bruno Haible  <bruno@clisp.org>
52931
52932         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52933         as well.
52934
52935 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52936
52937         Sync from coreutils.
52938
52939         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52940
52941         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52942         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52943
52944 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52945
52946         * modules/restrict: Remove; no longer needed now that we assume
52947         Autoconf 2.59 or later.
52948         * MODULES.html.sh: Remove 'restrict'.
52949         * modules/argp (Depends-on): Remove 'restrict'.
52950         * modules/base64 (Depends-on): Likewise.
52951         * modules/gc (Depends-on): Likewise.
52952         * modules/getaddrinfo (Depends-on): Likewise.
52953         * modules/glob (Depends-on): Likewise.
52954         * modules/inet_ntop (Depends-on): Likewise.
52955         * modules/inet_pton (Depends-on): Likewise.
52956         * modules/memxor (Depends-on): Likewise.
52957         * modules/regex (Depends-on): Likewise.
52958         * modules/strtok_r (Depends-on): Likewise.
52959         * modules/time_r (Depends-on): Likewise.
52960
52961 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52962
52963         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52964         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52965         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52966         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52967         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52968         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52969         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52970         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52971
52972         Merge from coreutils.
52973         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52974         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52975         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52976         * m4/time_r.m4 (gl_TIME_R): Likewise.
52977
52978 2006-08-09  Karl Berry  <karl@gnu.org>
52979
52980         * config/srclist.txt: no more gettext-tools, per Bruno.
52981
52982 2006-08-08  Eric Blake  <ebb9@byu.net>
52983
52984         * modules/verror: New module.
52985         * MODULES.html.sh: Document it.
52986
52987 2006-08-08  Eric Blake  <ebb9@byu.net>
52988
52989         * lib/verror.h, lib/verror.c: New files.
52990
52991 2006-08-08  Eric Blake  <ebb9@byu.net>
52992
52993         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52994         verror_at_line output complies with GNU Coding Standards even when
52995         file is NULL.
52996
52997 2006-08-07  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
53000         versions of AIX.
53001         Reported by Ralf Wildenhues.
53002
53003 2006-08-07  Bruno Haible  <bruno@clisp.org>
53004
53005         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
53006         in an AC_DEFUN. Needed so that the autoconf snippets can use
53007         AC_REQUIRE.
53008
53009 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53010
53011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53012         Initialize pkgdata_DATA.
53013         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
53014         overriding it.
53015
53016 2006-08-06  Eric Blake  <ebb9@byu.net>
53017
53018         * lib/error.h: Fold in some upstream changes from glibc.
53019         * lib/error.c: Likewise.
53020
53021 2006-08-04  Bruno Haible  <bruno@clisp.org>
53022
53023         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53024         Make the mostlyclean-local rule depend on mostlyclean-generic.
53025         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
53026
53027 2006-07-31  Bruno Haible  <bruno@clisp.org>
53028
53029         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
53030         <stdlib.h>, <string.h>.
53031
53032 2006-07-30  Bruno Haible  <bruno@clisp.org>
53033
53034         * modules/readlink (License): Change to LGPL.
53035
53036 2006-07-30  Bruno Haible  <bruno@clisp.org>
53037
53038         * modules/javaversion (Makefile.am): Distribute javaversion.java and
53039         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
53040         set PKGDATADIR to point to it.
53041
53042 2006-07-30  Bruno Haible  <bruno@clisp.org>
53043
53044         * modules/csharpexec (configure.ac): Comment out macro invocation.
53045         * modules/javaexec (configure.ac): Likewise.
53046         * modules/javacomp-script (configure.ac): Likewise.
53047
53048         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
53049
53050 2006-07-30  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
53053         linked-list.
53054
53055 2006-07-30  Bruno Haible  <bruno@clisp.org>
53056
53057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
53058
53059 2006-07-30  Bruno Haible  <bruno@clisp.org>
53060
53061         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53062         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
53063         get removed.
53064
53065 2006-07-29  Bruno Haible  <bruno@clisp.org>
53066
53067         Make it possible for gnulib-tool to work with locally modified or
53068         augmented gnulib repositories.
53069         * gnulib-tool (func_usage): Document --local-dir option.
53070         (local_gnulib_dir): New variable.
53071         Handle --local-dir option.
53072         (func_lookup_file): New function.
53073         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
53074         (func_get_description, func_get_filelist, func_get_description,
53075         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
53076         func_get_automake_snippet, func_get_include_directive,
53077         func_get_license, func_get_maintainer): Use func_lookup_file.
53078         (func_import, func_create_testdir): Use func_lookup_file.
53079
53080 2006-07-29  Bruno Haible  <bruno@clisp.org>
53081
53082         * modules/setenv (Depends-on): Add unistd.
53083
53084 2006-07-29  Bruno Haible  <bruno@clisp.org>
53085
53086         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
53087
53088 2006-07-29  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
53091
53092 2006-07-29  Bruno Haible  <bruno@clisp.org>
53093
53094         * gnulib-tool (import, update): If there is no Makefile.am, look at
53095         aclocal.m4, instead of bailing out.
53096
53097 2006-07-29  Bruno Haible  <bruno@clisp.org>
53098
53099         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
53100         Categorize the options by when they are useful.
53101
53102 2006-07-29  Bruno Haible  <bruno@clisp.org>
53103
53104         * gnulib-tool (func_usage): Document option --no-libtool.
53105         Handle option --no-libtool.
53106         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
53107         for changed semantics of $libtool variable.
53108         (func_import): Likewise. If libtool is not used, show this through
53109         an option --no-libtool.
53110         (func_create_testdir): Update.
53111
53112 2006-07-29  Bruno Haible  <bruno@clisp.org>
53113
53114         * gnulib-tool (func_import): Extend error message about missing
53115         --doc-base.
53116
53117 2006-07-29  Bruno Haible  <bruno@clisp.org>
53118
53119         * gnulib-tool (func_import): Don't create the $docbase directory if
53120         there is no file to store there.
53121
53122 2006-07-29  Bruno Haible  <bruno@clisp.org>
53123
53124         * gnulib-tool (autoconf_minversion): If a --dir option is given and
53125         relevant, look for configure.ac there, not in the current directory.
53126         Also use a simple search for AC_PREREQ, not "autoconf --trace".
53127
53128 2006-07-29  Bruno Haible  <bruno@clisp.org>
53129
53130         * gnulib-tool (SORT): New variable.
53131         (func_usage): Undocument --assume-autoconf option.
53132         Remove --assume-autoconf option handling.
53133         (autoconf_minversion): Determine from the contents of configure.ac.
53134         (func_import): Remove autoconf_minversion handling.
53135         Suggested by Eric Blake.
53136
53137 2006-07-29  Bruno Haible  <bruno@clisp.org>
53138
53139         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
53140
53141 2006-07-29  Bruno Haible  <bruno@clisp.org>
53142
53143         * config/srclist.txt (*setenv.[ch]): Remove rules.
53144
53145 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53146
53147         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
53148
53149 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53150
53151         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
53152         arpa/inet.h.
53153
53154 2006-07-28  Simon Josefsson  <jas@extundo.com>
53155
53156         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
53157         * modules/inet_pton (Depends-on): Likewise.
53158
53159 2006-07-28  Simon Josefsson  <jas@extundo.com>
53160
53161         * m4/netinet_in_h.m4: New file.
53162
53163 2006-07-28  Simon Josefsson  <jas@extundo.com>
53164
53165         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
53166         #include's.
53167
53168 2006-07-28  Simon Josefsson  <jas@extundo.com>
53169
53170         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
53171         #include's.
53172
53173 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
53174
53175         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
53176         setgid on directories only if they set these bits.
53177         * lib/modechange.h: Remove obsolete comment about masks.
53178
53179 2006-07-28  Eric Blake  <ebb9@byu.net>
53180
53181         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
53182         macro expansion.
53183
53184 2006-07-28  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
53187
53188 2006-07-28  Bruno Haible  <bruno@clisp.org>
53189
53190         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
53191
53192 2006-07-28  Bruno Haible  <bruno@clisp.org>
53193
53194         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53195         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53196         Define fallbacks.
53197         Avoids link error on FreeBSD 4.x.
53198         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53199
53200         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
53201         encoding.
53202         * lib/mbswidth.c (iswcntrl): Likewise.
53203
53204 2006-07-27  Bruno Haible  <bruno@clisp.org>
53205
53206         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
53207         test.
53208
53209 2006-07-27  Bruno Haible  <bruno@clisp.org>
53210
53211         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
53212         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
53213         defined.
53214
53215 2006-07-26  Eric Blake  <ebb9@byu.net>
53216
53217         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
53218
53219 2006-07-26  Eric Blake  <ebb9@byu.net>
53220
53221         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
53222         like mingw that lack mkstemp.
53223         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
53224         avoid compilation warning on mingw.
53225
53226 2006-07-26  Bruno Haible  <bruno@clisp.org>
53227
53228         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
53229         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
53230         INT_FAST*_MIN, INTPTR_MIN.
53231
53232 2006-07-25  Bruno Haible  <bruno@clisp.org>
53233
53234         * modules/version-etc (Depends-on): Add stdarg.
53235
53236 2006-07-25  Bruno Haible  <bruno@clisp.org>
53237
53238         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
53239         complex commands.
53240
53241 2006-07-25  Bruno Haible  <bruno@clisp.org>
53242
53243         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
53244         defined in <stdarg.h> or config.h.
53245
53246 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53247
53248         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
53249         (gl_STDIO_SAFER): Remove.
53250
53251 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53252
53253         * MODULES.html.sh (File stream based Input/Output):
53254         Add fopen-safer, tmpfile-safer; remove stdio-safer.
53255         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
53256         * modules/fopen-safer, modules/tmpfile-safer: New files.
53257         * modules/stdio-safer: Remove.
53258
53259 2006-07-24  Bruno Haible  <bruno@clisp.org>
53260
53261         * modules/tmpdir: New file.
53262         * MODULES.html.sh (File system functions): Add it.
53263
53264 2006-07-24  Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
53267         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
53268
53269 2006-07-24  Bruno Haible  <bruno@clisp.org>
53270
53271         * modules/clean-temp: New file.
53272
53273 2006-07-24  Bruno Haible  <bruno@clisp.org>
53274
53275         * m4/tmpdir.m4: New file, from GNU gettext.
53276
53277 2006-07-24  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/tmpdir.h: New file, from GNU gettext.
53280         * lib/tmpdir.c: New file, from GNU gettext.
53281
53282 2006-07-24  Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/clean-temp.h: New file, from GNU gettext.
53285         * lib/clean-temp.c: New file, from GNU gettext.
53286
53287 2006-07-23  Eric Blake  <ebb9@byu.net>
53288
53289         * modules/stdio-safer (Files): Add tmpfile-safer.c.
53290         (Depends-on): Add binary-io.
53291
53292 2006-07-23  Eric Blake  <ebb9@byu.net>
53293
53294         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
53295
53296 2006-07-23  Eric Blake  <ebb9@byu.net>
53297
53298         * lib/tmpfile-safer.c: New file.
53299         * lib/stdio-safer.h (fopen_safer): Add prototype.
53300         * lib/stdio--.h (tmpfile): Make safer.
53301
53302 2006-07-23  Bruno Haible  <bruno@clisp.org>
53303
53304         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
53305         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
53306         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
53307         gl_linked_remove_at): Use it.
53308
53309 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53310         and Simon Josefsson <jas@extundo.com>
53311
53312         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
53313
53314         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
53315
53316 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53317
53318         * modules/close-stream: New file.
53319         * modules/closeout (Description): Make it clear that it exits
53320         with a diagnostic on error.
53321         (Depends-on): Add close-stream.  Remove fpending, stdbool.
53322         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
53323
53324 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53325
53326         * m4/close-stream.m4: New file.
53327
53328 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53329
53330         * lib/close-stream.c, lib/close-stream.h: New files.
53331
53332 2006-07-22  Bruno Haible  <bruno@clisp.org>
53333
53334         Merge from GNU gettext 0.15.
53335
53336         2006-05-01  Bruno Haible  <bruno@clisp.org>
53337
53338                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
53339
53340         2006-07-22  Bruno Haible  <bruno@clisp.org>
53341
53342                 * modules/javaversion: New file.
53343                 * MODULES.html.sh (Java): Add javaversion.
53344
53345         2006-03-12  Bruno Haible  <bruno@clisp.org>
53346
53347                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
53348
53349         2005-12-04  Bruno Haible  <bruno@clisp.org>
53350
53351                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
53352                 (untested).
53353
53354         2006-06-21  Bruno Haible  <bruno@clisp.org>
53355
53356                 Avoid warnings from recent versions of mcs.
53357                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
53358                 -o, -L, -r any more. Use options documented since mcs-1.0
53359                 instead. Similarly for -g.
53360
53361         2005-12-04  Bruno Haible  <bruno@clisp.org>
53362
53363                 * build-aux/csharpcomp.sh.in: Suffix for resources is
53364                 .resources, not .resource.
53365
53366         2005-07-09  Bruno Haible  <bruno@clisp.org>
53367
53368                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53369                 add a .dll suffix.
53370                 Reported by Mark Junker <mjscod@gmx.de>.
53371
53372         2006-07-22  Bruno Haible  <bruno@clisp.org>
53373
53374                 * modules/gettext: Upgrade to gettext-0.15.
53375                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53376                 m4/visibility.m4.
53377                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53378
53379 2006-07-22  Bruno Haible  <bruno@clisp.org>
53380
53381         Merge from GNU gettext 0.15.
53382
53383         2006-03-25  Bruno Haible  <bruno@clisp.org>
53384
53385                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53386
53387         2006-07-21  Bruno Haible  <bruno@clisp.org>
53388
53389                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53390                 "1.1".
53391
53392         2006-05-09  Bruno Haible  <bruno@clisp.org>
53393
53394                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53395                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53396                 for the conftestver execution.
53397
53398         2006-05-01  Bruno Haible  <bruno@clisp.org>
53399
53400                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53401                 optional target-version argument. Verify that the compiler
53402                 groks source of the specified source-version, or add -source
53403                 option as necessary. Verify that the compiler produces
53404                 bytecode in the specified target-version, or add -target and
53405                 -source options as necessary. Make the result of the test
53406                 available as variable CONF_JAVAC. Also log error output in
53407                 config.log.
53408
53409         2006-03-11  Bruno Haible  <bruno@clisp.org>
53410
53411                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53412
53413         2006-05-09  Bruno Haible  <bruno@clisp.org>
53414
53415                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53416                 CLASSPATH_SEPARATOR to a semicolon.
53417
53418         2006-03-12  Bruno Haible  <bruno@clisp.org>
53419
53420                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53421                 available as variable CONF_JAVA, for subsequent autoconf
53422                 tests. Also log error output in config.log.
53423
53424         2006-07-19  Bruno Haible  <bruno@clisp.org>
53425
53426                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53427                 that getline works on glibc2 systems. Needed to avoid trouble
53428                 in relocatable.c.
53429                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53430
53431         2005-12-04  Bruno Haible  <bruno@clisp.org>
53432
53433                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53434                 launcher (untested).
53435
53436         2005-12-04  Bruno Haible  <bruno@clisp.org>
53437
53438                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53439
53440         2006-07-22  Bruno Haible  <bruno@clisp.org>
53441
53442                 * gettext.m4: Update from GNU gettext-0.15.
53443                 * nls.m4: Likewise.
53444                 * po.m4: Likewise.
53445                 * inttypes-pri.m4: Likewise.
53446                 * inttypes-h.m4: Renamed from inttypes.m4.
53447                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53448
53449 2006-07-22  Bruno Haible  <bruno@clisp.org>
53450
53451         Merge from GNU gettext 0.15.
53452
53453         2005-07-05  Bruno Haible  <bruno@clisp.org>
53454
53455                 * printf-args.c (printf_fetchargs): Work around broken
53456                 definition of wint_t on mingw.
53457
53458         2005-02-12  Bruno Haible  <bruno@clisp.org>
53459
53460                 * xallocsa.h: Add extern "C" for C++.
53461
53462         2006-05-17  Bruno Haible  <bruno@clisp.org>
53463
53464                 Cygwin portability.
53465                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53466
53467         2006-04-30  Bruno Haible  <bruno@clisp.org>
53468
53469                 * progreloc.c: Include <mach-o/dyld.h> if available.
53470                 (find_executable): Use _NSGetExecutablePath when possible.
53471
53472         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53473
53474                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53475                 function.
53476
53477         2005-12-29  Bruno Haible  <bruno@clisp.org>
53478
53479                 * progreloc.c (set_program_name_and_installdir): Fix
53480                 compilation error.
53481
53482         2005-12-04  Bruno Haible  <bruno@clisp.org>
53483
53484                 Cygwin portability.
53485                 * progreloc.c: Include <windows.h> also on Cygwin.
53486                 (find_executable): Add support for Cygwin.
53487                 (set_program_name_and_installdir): Handle also platforms with
53488                 nonempty EXEEXT.
53489
53490         2006-07-11  Bruno Haible  <bruno@clisp.org>
53491
53492                 * javacomp.c: Fix a comment.
53493                 Reported by Jim Meyering.
53494
53495         2006-04-30  Bruno Haible  <bruno@clisp.org>
53496
53497                 * javacomp.h (compile_java_class): Add source_version,
53498                 target_version arguments.
53499                 * javacomp.c: Rewritten to choose only a compiler that
53500                 respects the specified source_version and target_version.
53501
53502         2006-06-27  Bruno Haible  <bruno@clisp.org>
53503
53504                 Assume correct S_ISDIR macro.
53505                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53506
53507         2006-07-22  Bruno Haible  <bruno@clisp.org>
53508
53509                 * javaversion.h: New file, from GNU gettext.
53510                 * javaversion.c: New file, from GNU gettext.
53511                 * javaversion.java: New file, from GNU gettext.
53512                 * javaversion.class: New file, from GNU gettext.
53513
53514         2006-05-17  Bruno Haible  <bruno@clisp.org>
53515
53516                 Cygwin portability.
53517                 * javaexec.c (execute_java_class): Test for jview program
53518                 also on Cygwin.
53519
53520         2006-04-09  Bruno Haible  <bruno@clisp.org>
53521
53522                 * fatal-signal.c: Don't include string.h.
53523                 (at_fatal_signal): Use a copying loop instead of memcpy.
53524
53525         2005-12-04  Bruno Haible  <bruno@clisp.org>
53526
53527                 * csharpexec.c: Add support for 'clix' launcher (untested).
53528                 (execute_csharp_using_sscli): New function.
53529                 (execute_csharp_program): Call it.
53530
53531         2006-06-21  Bruno Haible  <bruno@clisp.org>
53532
53533                 Avoid warnings from recent versions of mcs.
53534                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53535                 -o, -L, -r any more. Use options documented since mcs-1.0
53536                 instead. Similarly for -g.
53537
53538         2005-07-09  Bruno Haible  <bruno@clisp.org>
53539
53540                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53541                 add a .dll suffix.
53542                 Reported by Mark Junker <mjscod@gmx.de>.
53543
53544         2006-06-17  Bruno Haible  <bruno@clisp.org>
53545
53546                 * config.charset: Update for NetBSD 3.0.
53547
53548         2006-05-17  Bruno Haible  <bruno@clisp.org>
53549
53550                 Cygwin portability.
53551                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53552
53553         2006-05-16  Bruno Haible  <bruno@clisp.org>
53554
53555                 * localcharset.c [CYGWIN]: Include <windows.h>.
53556                 (get_charset_aliases): For Cygwin, return the same CPxxx
53557                 aliases list as under WIN32.
53558                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53559                 the environment variables. Fall back to GetACP().
53560
53561         2006-04-05  Bruno Haible  <bruno@clisp.org>
53562
53563                 * config.charset: Update Juan Manuel Guerrero's address.
53564
53565         2005-02-12  Bruno Haible  <bruno@clisp.org>
53566
53567                 * allocsa.h: Add extern "C" for C++.
53568
53569         2005-02-10  Bruno Haible  <bruno@clisp.org>
53570
53571                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53572                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53573
53574         2006-07-22  Bruno Haible  <bruno@clisp.org>
53575
53576                 * gettext.h: Update to GNU gettext-0.15.
53577
53578 2006-07-22  Bruno Haible  <bruno@clisp.org>
53579
53580         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53581         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53582         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53583
53584 2006-07-21  Eric Blake  <ebb9@byu.net>
53585
53586         * modules/stdlib-safer: New file.
53587         * MODULES.html.sh (File stream based Input/Output): Add
53588         stdlib-safer.
53589
53590 2006-07-21  Eric Blake  <ebb9@byu.net>
53591
53592         * lib/stdlib-safer.h: New file from coreutils, required by
53593         stdlib--.h.
53594
53595 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53598
53599 2006-07-20  Bruno Haible  <bruno@clisp.org>
53600
53601         * gnulib-tool: Recognize new option --assume-autoconf.
53602         (autoconf_minversion): New variable.
53603         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53604
53605 2006-07-20  Bruno Haible  <bruno@clisp.org>
53606
53607         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53608
53609 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53610
53611         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53612         Reindent and repaginate.
53613
53614 2006-07-19  Derek Price  <derek@ximbiot.com>
53615
53616         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53617         Correct grammar.
53618
53619 2006-07-17  Bruno Haible  <bruno@clisp.org>
53620
53621         * modules/list: New file.
53622         * modules/array-list: New file.
53623         * modules/carray-list, modules/carray-list-tests: New files.
53624         * modules/linked-list, modules/linked-list-tests: New files.
53625         * modules/avltree-list, modules/avltree-list-tests: New files.
53626         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53627         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53628         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53629         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53630         * modules/oset: New file.
53631         * modules/array-oset: New file.
53632         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53633         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53634         * tests/test-carray_list.c: New file.
53635         * tests/test-linked_list.c: New file.
53636         * tests/test-avltree_list.c: New file.
53637         * tests/test-rbtree_list.c: New file.
53638         * tests/test-linkedhash_list.c: New file.
53639         * tests/test-avltreehash_list.c: New file.
53640         * tests/test-rbtreehash_list.c: New file.
53641         * tests/test-avltree_oset.c: New file.
53642         * tests/test-rbtree_oset.c: New file.
53643         * MODULES.html.sh (Container data structures): New section.
53644
53645 2006-07-17  Bruno Haible  <bruno@clisp.org>
53646
53647         * m4/gl_list.m4: New file.
53648
53649 2006-07-17  Bruno Haible  <bruno@clisp.org>
53650
53651         * lib/gl_list.h: New file.
53652         * lib/gl_list.c: New file.
53653         * lib/gl_array_list.h: New file.
53654         * lib/gl_array_list.c: New file.
53655         * lib/gl_carray_list.h: New file.
53656         * lib/gl_carray_list.c: New file.
53657         * lib/gl_linked_list.h: New file.
53658         * lib/gl_linked_list.c: New file.
53659         * lib/gl_anylinked_list1.h: New file.
53660         * lib/gl_anylinked_list2.h: New file.
53661         * lib/gl_avltree_list.h: New file.
53662         * lib/gl_avltree_list.c: New file.
53663         * lib/gl_anyavltree_list1.h: New file.
53664         * lib/gl_anyavltree_list2.h: New file.
53665         * lib/gl_rbtree_list.h: New file.
53666         * lib/gl_rbtree_list.c: New file.
53667         * lib/gl_anyrbtree_list1.h: New file.
53668         * lib/gl_anyrbtree_list2.h: New file.
53669         * lib/gl_anytree_list1.h: New file.
53670         * lib/gl_anytree_list2.h: New file.
53671         * lib/gl_linkedhash_list.h: New file.
53672         * lib/gl_linkedhash_list.c: New file.
53673         * lib/gl_anyhash_list1.h: New file.
53674         * lib/gl_anyhash_list2.h: New file.
53675         * lib/gl_avltreehash_list.h: New file.
53676         * lib/gl_avltreehash_list.c: New file.
53677         * lib/gl_rbtreehash_list.h: New file.
53678         * lib/gl_rbtreehash_list.c: New file.
53679         * lib/gl_anytreehash_list1.h: New file.
53680         * lib/gl_anytreehash_list2.h: New file.
53681
53682         * lib/gl_oset.h: New file.
53683         * lib/gl_oset.c: New file.
53684         * lib/gl_array_oset.h: New file.
53685         * lib/gl_array_oset.c: New file.
53686         * lib/gl_avltree_oset.h: New file.
53687         * lib/gl_avltree_oset.c: New file.
53688         * lib/gl_rbtree_oset.h: New file.
53689         * lib/gl_rbtree_oset.c: New file.
53690         * lib/gl_anytree_oset.h: New file.
53691
53692 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53693
53694         * m4/mkancesdirs.m4: New file.
53695         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
53696         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
53697         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
53698         it.
53699
53700 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53701
53702         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
53703         * lib/mkancesdirs.h: New files.
53704         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
53705         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
53706         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
53707         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
53708         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
53709         callers changed.  Revamp internals significantly, by not
53710         attempting to create directories that are temporarily more
53711         permissive than the final results.  Do not attempt to use
53712         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
53713         This removes some race conditions, fixes some bugs, and simplifies
53714         things.  Use new dirchownmod function to do owner and mode changes.
53715         * lib/mkdir-p.h: Likewise.
53716         * lib/modechange.c (octal_to_mode): New function.
53717         (struct mode_change): New member mentioned.
53718         (make_node_op_equals): New arg mentioned.  All callers changed.
53719         (mode_compile): Keep track of which mode bits the user has explicitly
53720         mentioned.
53721         (mode_adjust): New arg DIR, so that we implement the X op correctly.
53722         New arg PMODE_BITS, to keep track of which mode bits the user
53723         mentioned; it treats S_ISUID and S_ISGID speciall.
53724         All callers changed.
53725         * lib/modechange.h: Likewise.
53726
53727 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53728
53729         * MODULES.html.sh: Add mkancestors.
53730         * modules/mkancesdirs: New module.
53731         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
53732         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
53733         The chdir-safer and afs files are now orphans; I'll remove them
53734         unless someone speaks up.
53735         Add lib/dirchownmod.c, lib/dirchownmod.h.
53736         (Depends-on): Remove alloca, chown, save-cwd, dirname.
53737         Add lchown, mkancesdirs.
53738         (Maintainer): Add self.
53739
53740 2006-07-15  Karl Berry  <karl@gnu.org>
53741
53742         * gnulib-tool: help message wording/arrangement.
53743
53744 2006-07-14  Simon Josefsson  <jas@extundo.com>
53745
53746         * doc/gnulib.texi (Libtool and Windows): New section.
53747
53748 2006-07-12  Simon Josefsson  <jas@extundo.com>
53749
53750         * modules/gendocs (License): Fix license, approved by Karl.
53751
53752 2006-07-12  Eric Blake  <ebb9@byu.net>
53753
53754         * MODULES.html.sh: Add gendocs.
53755
53756 2006-07-11  Eric Blake  <ebb9@byu.net>
53757
53758         * modules/fdl: New module, to install doc/fdl.texi.
53759         * MODULES.html.sh: Add new section for documentation modules.
53760         * gnulib-tool: Avoid space-tab.
53761         (--doc-base): New option, to manage files from doc.
53762
53763 2006-07-11  Eric Blake  <ebb9@byu.net>
53764
53765         * m4/absolute-header.m4: Fix comments to match recent change.
53766
53767 2006-07-11  Eric Blake  <ebb9@byu.net>
53768
53769         * gnulib-tool: List --doc-base before --tests-base.
53770
53771 2006-07-11  Derek R. Price  <derek@ximbiot.com>
53772
53773         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
53774
53775 2006-07-11  Bruno Haible  <bruno@clisp.org>
53776
53777         * README: Mention where to put documentation.
53778
53779 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53780
53781         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
53782
53783 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
53786         to stdint.m4.
53787
53788 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53789
53790         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
53791         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
53792         "no/such/file/stdint.h" when there is no such file, so that
53793         the resulting C code can be parsed by dodgy compilers.
53794         Problems reported by Bob Proulx.
53795
53796 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53797
53798         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
53799         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53800         macros into the GNU _D_EXACT_NAMLEN.
53801         * lib/savedir.c:  Likewise.
53802         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
53803
53804 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53805         and Paul Eggert  <eggert@cs.ucla.edu>
53806
53807         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
53808         * m4/savedir.m4:
53809         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53810         macros into the GNU _D_EXACT_NAMLEN.
53811
53812 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53813
53814         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53815         around the absolute name, to work around a problem with the HP-UX
53816         11.23 native C compiler, reported by Bob Proulx.
53817
53818 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53819
53820         * doc/maintain.texi, make-stds.texi: Sync from
53821         <http://savannah.gnu.org/projects/gnustandards>.
53822
53823 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53826
53827 2006-07-09  Jim Meyering  <jim@meyering.net>
53828
53829         * m4/glob.m4: Remove a doubled word in a comment.
53830
53831 2006-07-09  Jim Meyering  <jim@meyering.net>
53832
53833         * lib/argp-pv.c: Remove a doubled word in a comment.
53834         * lib/check-version.c (check_version): Likewise.
53835         * lib/javacomp.c (compile_java_class): Likewise.
53836
53837 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53838
53839         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53840         for the benefit of people using Autoconf 2.60.  If you want to
53841         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53842         (or m4/onceonly.m4, if pre-2.57) manually.
53843
53844 2006-07-08  Jim Meyering  <jim@meyering.net>
53845
53846         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53847         comment.
53848         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53849         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53850         comment.
53851
53852 2006-07-08  Jim Meyering  <jim@meyering.net>
53853
53854         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53855
53856 2006-07-07  Simon Josefsson  <jas@extundo.com>
53857
53858         * tests/test-crc.c: Change expected crc value, the test vector
53859         were probably computed using the old broken crc.c?
53860
53861 2006-07-06  Simon Josefsson  <jas@extundo.com>
53862
53863         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53864         now the canonical place for the M4 file).
53865
53866         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53867         from the sys_socket dependency now.
53868
53869         * modules/inet_pton (Files): Ditto.
53870
53871         * modules/inet_ntop (Files): Ditto.
53872
53873 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53874
53875         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53876         not gl_PREREQ_GETUSERSHELL.
53877
53878 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53879
53880         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53881         with only one argument, for Autoconf 2.60.
53882         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53883         expand to nothing, so add a shell command to avoid syntax error.
53884         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53885
53886 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53887
53888         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53889
53890 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53891
53892         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53893         no longer needed.  Check for isblank decl.
53894         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53895         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53896         of existence.
53897
53898 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         * lib/getloadavg.c: Use __VMS, not VMS.
53901         * lib/getopt.c: Likewise.
53902         * lib/getpagesize.h: Likewise.
53903         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53904         and probably does not work.
53905
53906 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * lib/.cppi-disable: Add wcwidth.
53909         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53910         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53911         (ISGRAPH): Remove.  All uses changed to isgraph.
53912         (FOLD) [!defined _LIBC]: Remove special case.
53913         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53914         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53915         HAVE_ISBLANK.
53916         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53917         case.
53918
53919 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53920
53921         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53922         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53923         brackets.  Other minor changes to suppress some compiler
53924         warnings.
53925
53926 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53927         and Paul Eggert  <eggert@cs.ucla.edu>
53928
53929         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53930         of invoking obsolescent AC_HEADER_DIRENT macro.
53931         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53932         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53933         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53934         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53935         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53936         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53937         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53938         * m4/readdir.m4: Remove; no longer needed.
53939
53940 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53941         and Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53944         Don't worry about this obsolete case any more.
53945         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53946         directories.
53947         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53948         worry about this obsolete case any more.
53949         * lib/fts.c: Likewise.
53950         * lib/getcwd.c: Likewise.
53951         * lib/glob.h: Likewise.
53952         * lib/savedir.c: Likewise.
53953
53954 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53955
53956         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53957         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53958         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53959         needed.
53960         All uses removed.
53961         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53962         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53963         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53964         needed.
53965         * m4/getdate.m4 (gl_GETDATE): Likewise.
53966         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53967         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53968         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53969         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53970         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53971         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53972         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53973         needed.
53974
53975 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * lib/memcasecmp.c: Include <limits.h>.
53978         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53979         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53980         Don't assume isdigit succeeds only on '0' through '9'.
53981
53982 2006-07-05  Eric Blake  <ebb9@byu.net>
53983
53984         * modules/getaddrinfo (Depends-on): Add snprintf.
53985
53986 2006-07-05  Eric Blake  <ebb9@byu.net>
53987
53988         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53989         to avoid 'header present but could not be compiled' on cygwin.
53990
53991 2006-07-05  Eric Blake  <ebb9@byu.net>
53992
53993         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53994         missing from netdb.h.
53995         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53996
53997 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53998
53999         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
54000         no longer needed.
54001         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
54002         * m4/getdate.m4 (gl_GETDATE): Likewise.
54003         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
54004         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
54005         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54006         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54007         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54008
54009 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54010
54011         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
54012         All uses of is_space replaced by isspace.
54013         * lib/exit.h: Don't talk about STDC_HEADERS.
54014         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
54015         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
54016         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
54017         replaced by isprint etc.
54018         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
54019         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54020         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
54021         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
54022         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
54023         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54024
54025 2006-07-05  Bruno Haible  <bruno@clisp.org>
54026
54027         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
54028         the function exists, before testing against AIX.
54029         Reported by Martin Lambers <marlam@marlam.de>.
54030
54031 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54032
54033         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
54034         From Mark D. Baushke.
54035
54036 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54037
54038         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
54039         to the absolute name, not just one, to bypass Sun C 5.8's
54040         "warning: #include of /usr/include/... may be non-portable".
54041
54042 2006-07-04  Eric Blake  <ebb9@byu.net>
54043
54044         * modules/dirname-tests: New test module.
54045         * tests/test-dirname.c: New file, replacing dirname.c
54046         TEST_DIRNAME section that was recently deleted.
54047
54048 2006-07-04  Bruno Haible  <bruno@clisp.org>
54049
54050         Assume ANSI C header files and <ctype.h> functions.
54051         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
54052         (mbsnwidth): Use isprint, iscntrl instead.
54053
54054 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54055
54056         Merge from coreutils.
54057         * MODULES.html.sh: Add xstrtold.
54058         * modules/xstrtold: New file.
54059         * modules/cycle-check (Files): Add lib/same-inode.h.
54060         * modules/dirname (Files): Add m4/double-slash-root.m4.
54061         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
54062         * modules/mkdir-p (Files): Add lib/same-inode.h.
54063         * modules/same (Files): Add lib/same-inode.h.
54064
54065 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54066
54067         * m4/absolute-header.m4: Renamed from full-header-path.m4.
54068         This is to keep the terminology clean; POSIX talks about
54069         "absolute pathnames", not "full pathnames", but the GNU
54070         Coding Standards say to use "path" for something else;
54071         so use "absolute" to keep both sides happy.
54072         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
54073         Set gl_absolute_header, not gl_full_header_path.
54074         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
54075         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
54076         All uses changed.
54077
54078         Merge from coreutils.
54079
54080         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
54081
54082         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
54083         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
54084         want to require the building of c-strtod.o.
54085         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
54086         needs -lm directly.
54087         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
54088
54089         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54090
54091         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
54092         --as-needed option if available.  Problem reported by Albert Chin in
54093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
54094         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
54095         cc merely issues a bunch of annoying warnings for --as-needed
54096         (this problem was reported by Bob Proulx).  Also, try linking with
54097         -lm to detect a bug in binutils 2.16 (this problem was reported
54098         by Ralf Wildenhues).
54099
54100         2006-06-18  Jim Meyering  <jim@meyering.net>
54101
54102         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
54103         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
54104         macro.
54105         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
54106         also check for glibc-2.4's abort-inducing bug.
54107
54108         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
54109         Low-probability clean-up should be to use rmdir to get rid of
54110         the just-created directory, not unlink.
54111
54112         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
54113         configure fail, and request a bug report to inform us about it.
54114         Add a comment that, barring reports to the contrary, in 2007 we'll
54115         assume ftruncate is universally available.
54116
54117         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
54118
54119         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
54120
54121         2006-03-12  Jim Meyering  <jim@meyering.net>
54122
54123         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
54124         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
54125         * m4/same.m4 (gl_SAME): Likewise.
54126         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
54127
54128         2006-03-11  Eric Blake  <ebb9@byu.net>
54129
54130         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
54131         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
54132         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
54133         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
54134
54135 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
54138         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
54139         reported by Mark D. Baushke, one in
54140         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
54141
54142         Merge from coreutils.
54143
54144         * lib/.cppi-disable: Add stdint_.h.
54145         * lib/.cvsignore: Add stdint.h.
54146
54147         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
54148
54149         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
54150         both double and long double versions.
54151         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
54152         * lib/xstrtold.c: New file.
54153         * lib/xstrtod.h (xstrtold): New decl.
54154
54155         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54156
54157         * lib/filemode.c (setst): Remove.
54158         (strmode): Rewrite to avoid setst.  This makes the code shorter,
54159         (arguably) clearer, and the generated code is a bit smaller on my
54160         Debian GNU/Linux stable x86 host.
54161
54162         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         * lib/filemode.c: Include "filemode.h" first, to test the interface.
54165         Assume that filemode.h includes sys/types.h and sys/stat.h.
54166         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
54167         (ftypelet): Reorder to put common cases first, for efficiency.
54168         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
54169         to do 'M'.
54170         (strmode): Renamed from mode_string, and now stores 12 bytes instead
54171         of 10, for compatibility with FreeBSD.  All callers changed.
54172         (filemodestring): Now stores 12 bytes instead of 10, and sets file
54173         types that can't be deduced solely from st_mode.  First arg is now a
54174         const pointer.
54175         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
54176         (strmode): Renamed from mode_string.
54177         (filemodestring): New decl.
54178         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
54179         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
54180         needed.
54181         (S_ISPORT, S_ISWHT): New macros, if not already defined.
54182
54183         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
54184
54185         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
54186         fsusage.h now does that.  Include fsusage.h first, to test interface.
54187         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
54188         at most one method (the old code could have generated decls that
54189         didn't conform to C89, not that this was ever exercised).
54190         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
54191
54192         2006-03-19  Jim Meyering  <jim@meyering.net>
54193
54194         Work even in a chroot where d_ino values for entries in "/"
54195         don't match the stat.st_ino values for the same names.
54196         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
54197         number, iterate through all entries again, using lstat instead.
54198         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
54199         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
54200
54201         * lib/getcwd.c (__getcwd): Clarify a comment.
54202         Use memcpy in place of a call to strcpy.
54203
54204         2006-03-12  Jim Meyering  <jim@meyering.net>
54205
54206         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
54207         matches that of the current directory (which we're about to chdir ".."
54208         out of), then save the dev-ino of the parent, instead.
54209
54210         * lib/same-inode.h (SAME_INODE): New file/macro.
54211         * lib/chdir-safer.c (SAME_INODE): Remove definition.
54212         Include "same-inode.h", instead.
54213         * lib/same.c: Likewise.
54214         * lib/cycle-check.h: Include "same-inode.h".
54215         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
54216         * lib/cycle-check.c (SAME_INODE): Remove definition.
54217         * lib/root-dev-ino.h: Include "same-inode.h".
54218
54219         2006-03-11  Eric Blake  <ebb9@byu.net>
54220
54221         * lib/same.c (same_name): s/base_name/last_component/
54222         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
54223         * lib/filenamecat.c (file_name_concat): Likewise.
54224
54225         2006-03-11  Eric Blake  <ebb9@byu.net>,
54226                     Paul Eggert  <eggert@cs.ucla.edu>
54227
54228         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
54229         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
54230         drive prefix.
54231         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
54232         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
54233         (last_component): New method.
54234         * lib/dirname.c (dir_len): Determine when drive letters need a
54235         subsequent slash.  Preserve // when it is special.
54236         (dir_name): Don't append dot when drive letter is absolute.
54237         [TEST_DIRNAME]: Move into a full-blown gnulib test.
54238         * lib/basename.c (base_name): New semantics - malloc the result.
54239         Preserve // when it is special.  Preserve relative files that look
54240         like drive letters.
54241         (base_len): Preserve // when it is special.
54242         (last_component): New method, similar to old base_name semantics.
54243         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
54244         base_name.  Strip redundant slashes from ///.
54245
54246 2006-07-03  Jim Meyering  <jim@meyering.net>
54247
54248         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
54249         macro is used before the first cycle_check call.
54250
54251 2006-07-03  Eric Blake  <ebb9@byu.net>
54252
54253         * modules/dirname (Depends-on): Add xstrndup.
54254
54255 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
54258         test cases, so that config.log is a bit easier to follow.
54259
54260 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54261
54262         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
54263         both are 64 bits, since this seems to be the tradition, and this
54264         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
54265         we ever run into a host that prefers long long to long in this
54266         case, we'll need another configure-time test.  Problem reported by
54267         Jim Meyering.
54268
54269 2006-07-02  Eric Blake  <ebb9@byu.net>
54270
54271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
54272
54273 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54274
54275         * modules/inttypes (Depends-on): No longer depends on stdint.
54276         * modules/stdint (Description): Say more about assumptions.
54277         Say that the fast types might differ.  Say macros are used.
54278         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
54279         (Makefile.am): Revise list of substituted symbols to match
54280         new stdint.m4.
54281         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
54282         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
54283         * tests/test-stdint.c (verify_same_types)
54284         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
54285         the code conforms to C99/C89.
54286         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
54287         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
54288
54289 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54290
54291         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
54292         but fix a bug, by requiring at least 64 bits.
54293         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54294         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
54295         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
54296         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
54297
54298         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
54299         changes.  Make 2.59 a prerequisite.  Check and substitute for
54300         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
54301         inttypes.h.  Do not use special include files; just use the
54302         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
54303         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
54304         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
54305         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
54306         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
54307         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
54308         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
54309         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
54310         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
54311         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
54312         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
54313         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
54314         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
54315         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
54316         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
54317         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
54318         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
54319         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
54320         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
54321         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
54322         WINT_MAX.  Check for C99 conformance more strictly, by detecting
54323         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
54324         not check for things that C99 does not require, e.g., int8_t.  If
54325         a test isn't needed unless <stdint.h> isn't working, and is
54326         unlikely to be needed for any other reason, then don't do it
54327         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
54328         size_t, since we assume C89 freestanding at least.  Do not check
54329         for sig_atomic_t, wchar_t, or wint_t, since the code now does
54330         the right thing even if the types are not defined.  Instead use:
54331         (gl_STDINT_TYPE_PROPERTIES): New macro.
54332         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
54333         testing whether <sys/types.h> clashes, as Autoconf does this for
54334         us now.  All uses removed.
54335         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
54336         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
54337         (gl_CHECK_TYPE_SAME):
54338         Remove; no longer needed.
54339         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
54340         exists, since we'll return 0 anyway in that case.
54341         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
54342
54343 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54344
54345         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
54346         possible collision with system files.
54347         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
54348         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
54349         WCHAR_MIN and WCHAR_MAX in this case.
54350         (<stddef.h>): Do not include; no longer needed.
54351         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
54352         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
54353         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
54354         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
54355         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
54356         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
54357         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
54358         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
54359         !defined(__c99))]: Include in this case too, since it's harmless
54360         now.
54361         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
54362         dangerous to do so.
54363         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
54364         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
54365         (_STDINT_MIN, _STDINT_MAX): New macros.
54366         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54367         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54368         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54369         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54370         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54371         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54372         macros, not typedefs; this simplifies things quite a bit.
54373         Use long int for all types narrower than int64_t.
54374         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54375         Define in terms of long long int or int64_t or long int,
54376         not int64_t or int32_t.  This saves some compile-time testing.
54377         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54378         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54379         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54380         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54381         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54382         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54383         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54384         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54385         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54386         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54387         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54388         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54389         undef any previous version and define our own version, for
54390         simplicity and consistency with the new macros for types.
54391         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54392         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54393         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54394         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54395         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54396         @WINT_T_SUFFIX@ to keep things simple here.
54397         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54398         Simplify by assuming typical 8/16/32/64 host, since we're
54399         already doing that elsewhere anyway.
54400         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54401         and assume long long int is 64 bits if available.  This
54402         speeds up 'configure'.
54403
54404 2006-07-01  Eric Blake  <ebb9@byu.net>
54405
54406         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54407         Reported by Andreas Buening.
54408
54409 2006-07-01  Eric Blake  <ebb9@byu.net>
54410
54411         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54412
54413 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54414
54415         * lib/getaddrinfo.c: fixed typo
54416
54417 2006-06-29  Jim Meyering  <jim@meyering.net>
54418
54419         * modules/strftime (Maintainer): Add my name, since with the
54420         FPRINTFTIME changes strftime.c has forked from glibc.
54421
54422 2006-06-29  Eric Blake  <ebb9@byu.net>
54423
54424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54425
54426 2006-06-29  Eric Blake  <ebb9@byu.net>
54427
54428         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54429
54430 2006-06-29  Eric Blake  <ebb9@byu.net>
54431
54432         * lib/stat_.h: New file.
54433
54434 2006-06-29  Eric Blake  <ebb9@byu.net>
54435
54436         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54437         unused static function.
54438
54439 2006-06-29  Eric Blake  <ebb9@byu.net>
54440
54441         * doc/functions.texi (Function Portability): Document missing lstat
54442         on mingw.
54443
54444 2006-06-29  Eric Blake  <ebb9@byu.net>
54445
54446         * MODULES.html.sh: Add sys_stat.
54447         * modules/sys_stat: New module.
54448         * modules/mkstemp (Depends-on): Add sys_stat.
54449
54450 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54451
54452         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54453
54454 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54455
54456         * m4/c-bs-a.m4: Removed.
54457
54458 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54459
54460         * lib/strftime.c: Assume strftime() exists.
54461
54462 2006-06-29  Derek Price  <derek@ximbiot.com>
54463
54464         * modules/c-bs-a: Removed - \a is C89.
54465         * MODULES.html.sh: Remove c-bs-a.
54466
54467 2006-06-29  Bruno Haible  <bruno@clisp.org>
54468
54469         * modules/wcwidth (License): Change to LGPL.
54470
54471 2006-06-28  Simon Josefsson  <jas@extundo.com>
54472
54473         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54474         on _WIN32.
54475
54476         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54477         getnameinfo.
54478
54479 2006-06-28  Simon Josefsson  <jas@extundo.com>
54480
54481         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54482
54483 2006-06-28  Simon Josefsson  <jas@extundo.com>
54484
54485         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54486         functions there.  It will succeed on Windows XP, but on Windows
54487         2000 and (presumably) earlier, it will fail, and use the internal
54488         re-implementation.
54489         (use_win32_p): New function.
54490         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54491         Support AI_NUMERICSERV to disable getservbyname.
54492         (getnameinfo): New function, only supports
54493         NI_NUMERICHOST|NI_NUMERICSERV for now.
54494
54495         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54496         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54497         getnameinfo.
54498
54499 2006-06-28  Eric Blake  <ebb9@byu.net>
54500
54501         * modules/wcwidth: New file.
54502         * modules/mbchar (Depends-on): Add wcwidth.
54503         * modules/mbswidth (Depends-on): Add wcwidth.
54504         * MODULES.html.sh: Add wcwidth.
54505
54506 2006-06-28  Eric Blake  <ebb9@byu.net>
54507
54508         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54510
54511 2006-06-28  Eric Blake  <ebb9@byu.net>
54512
54513         * lib/xvasprintf.h: Fix comments.
54514
54515 2006-06-28  Eric Blake  <ebb9@byu.net>
54516
54517         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54518         * lib/mbswidth.c (wcwidth): Move from here...
54519         * lib/wcwidth.h: ...to this new file.
54520
54521 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54522
54523         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54524
54525         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54526         it's obsolete.
54527         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54528
54529 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54530
54531         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54532         Autoconf 2.60 says this stuff was obsolete.
54533
54534 2006-06-28  Bruno Haible  <bruno@clisp.org>
54535
54536         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54537
54538 2006-06-28  Bruno Haible  <bruno@clisp.org>
54539
54540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54541         gt_TYPE_WCHAR_T.
54542
54543 2006-06-28  Bruno Haible  <bruno@clisp.org>
54544
54545         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54546         declaration for wcwidth.
54547         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54548
54549 2006-06-28  Bruno Haible  <bruno@clisp.org>
54550
54551         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54552         (mkdir): Define using _mkdir.
54553
54554 2006-06-28  Bruno Haible  <bruno@clisp.org>
54555
54556         * lib/getaddrinfo.h: Fix POSIX URL.
54557         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54558         _WIN32.
54559         (use_win32_p): Make static.
54560         (getaddrinfo): Reject service name if it is empty or does not consist
54561         solely of decimal digits, or if its value is > 65535.
54562         (getnameinfo): Remove useless casts.
54563
54564 2006-06-27  Simon Josefsson  <jas@extundo.com>
54565
54566         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54567         Eggert and Martin Lambers.
54568
54569 2006-06-27  Simon Josefsson  <jas@extundo.com>
54570
54571         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54572         Eggert and Martin Lambers.
54573
54574 2006-06-27  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54577         result to 0, not to empty.
54578         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54579
54580 2006-06-27  Bruno Haible  <bruno@clisp.org>
54581
54582         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54583
54584 2006-06-26  Simon Josefsson  <jas@extundo.com>
54585
54586         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54587         present.
54588
54589 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54590
54591         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54592         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54593         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54594
54595 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54596
54597         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54598
54599 2006-06-26  Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54602
54603 2006-06-26  Bruno Haible  <bruno@clisp.org>
54604
54605         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54606
54607 2006-06-26  Bruno Haible  <bruno@clisp.org>
54608
54609         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54610         SGI C compiler in pre-C99 mode.
54611         Suggested by Mark D. Baushke and Larry Jones.
54612
54613 2006-06-26  Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54616         WCHAR_MAX.
54617         Reported by Mark D. Baushke and Larry Jones.
54618
54619 2006-06-26  Bruno Haible  <bruno@clisp.org>
54620
54621         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54622         in pre-C99 mode.
54623         Suggested by Mark D. Baushke and Larry Jones.
54624
54625 2006-06-23  Simon Josefsson  <jas@extundo.com>
54626             Bruno Haible  <bruno@clisp.org>
54627
54628         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54629         Emit mostlyclean-local rule.
54630         (func_emit_tests_Makefile_am): Likewise.
54631         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54632
54633 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54634
54635         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54636
54637 2006-06-23  Bruno Haible  <bruno@clisp.org>
54638
54639         * tests/test-stdint.c: Update to match ISO C 99 Technical
54640         Corrigendum 1.
54641
54642 2006-06-23  Bruno Haible  <bruno@clisp.org>
54643
54644         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54645
54646 2006-06-23  Bruno Haible  <bruno@clisp.org>
54647
54648         * lib/stdint_.h: Treat IRIX like OpenBSD.
54649
54650 2006-06-23  Bruno Haible  <bruno@clisp.org>
54651
54652         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
54653         ISO C 99 Technical Corrigendum 1.
54654
54655 2006-06-22  Simon Josefsson  <jas@extundo.com>
54656
54657         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
54658         MinGW.
54659
54660 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54661
54662         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
54663         needed.  Some compiler complained about some of them.  Problem reported
54664         by Larry Jones in
54665         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
54666
54667 2006-06-21  Simon Josefsson  <jas@extundo.com>
54668
54669         * tests/test-getaddrinfo.c: New file.
54670
54671         * modules/getaddrinfo-tests: New file.
54672
54673         * MODULES.html.sh: Add inet_pton.
54674
54675         * modules/inet_pton: New file.
54676
54677 2006-06-21  Simon Josefsson  <jas@extundo.com>
54678
54679         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
54680         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
54681         of using the (limited) gnulib implementation on Windows XP.
54682
54683         * m4/inet_pton.m4: New file.
54684
54685 2006-06-21  Simon Josefsson  <jas@extundo.com>
54686
54687         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
54688         variable.
54689
54690         * lib/socket_.h: Don't define WINVER.
54691
54692         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
54693         slightly modified to work in gnulib.
54694
54695 2006-06-21  Simon Josefsson  <jas@extundo.com>
54696
54697         * doc/gnulib.texi (Windows sockets): Add.
54698
54699 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         * lib/read-file.c (fread_file): Start with buffer allocation of
54702         0 bytes rather than 1 byte; this simplifies the code.
54703         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
54704         code to free buffer and save/restore errno.
54705         (internal_read_file): Remove unused local.
54706
54707 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54708
54709         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
54710         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
54711         Problem reported by Denis Excoffier in
54712         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
54713
54714 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54715
54716         * modules/sys_socket, modules/socklen: Include sys/types since
54717         FreeBSD 4.x's sys/socket.h needs it.
54718
54719 2006-06-19  Simon Josefsson  <jas@extundo.com>
54720
54721         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
54722
54723 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54724
54725         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
54726
54727 2006-06-19  Bruno Haible  <bruno@clisp.org>
54728
54729         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
54730         and FULL_PATH_INTTYPES_H in angle brackets.
54731         Reported by Mark D. Baushke <mdb@gnu.org>.
54732
54733 2006-06-17  Eric Blake  <ebb9@byu.net>
54734
54735         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
54736         errno.
54737
54738 2006-06-17  Bruno Haible  <bruno@clisp.org>
54739
54740         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
54741         <sys/inttypes.h>.
54742
54743 2006-06-17  Bruno Haible  <bruno@clisp.org>
54744
54745         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
54746         whether errno is declared. Assume <errno.h> declares errno.
54747
54748 2006-06-17  Bruno Haible  <bruno@clisp.org>
54749
54750         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
54751
54752 2006-06-17  Bruno Haible  <bruno@clisp.org>
54753
54754         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
54755         problem on Solaris 2.5.1.
54756
54757 2006-06-16  Eric Blake  <ebb9@byu.net>
54758
54759         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
54760         * lib/unicodeio.c [!defined errno]: Likewise.
54761         * lib/strtol.c [!defined errno]: Likewise.
54762         * lib/strtod.c [!defined errno]: Likewise.
54763
54764 2006-06-15  Eric Blake  <ebb9@byu.net>
54765
54766         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
54767
54768 2006-06-15  Eric Blake  <ebb9@byu.net>
54769
54770         * config/srclist.txt (ssize_t.m4): Lose sync.
54771
54772 2006-06-15  Bruno Haible  <bruno@clisp.org>
54773
54774         * modules/stdint (Files): Include m4/full-header-path.m4,
54775         m4/size_max.m4, m4/wchar_t.m4.
54776         (Makefile.am): Many more substitutions.
54777         * modules/stdint-tests: New file.
54778         * tests/test-stdint.c: New file.
54779
54780 2006-06-15  Bruno Haible  <bruno@clisp.org>
54781
54782         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
54783         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
54784         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
54785         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
54786         gl_CHECK_TYPE_SAME): New macros.
54787
54788 2006-06-15  Bruno Haible  <bruno@clisp.org>
54789
54790         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
54791
54792 2006-06-15  Bruno Haible  <bruno@clisp.org>
54793
54794         * lib/stdint_.h: Rewritten to be fully auto-configured.
54795         Fixes bug on HP-UX/IA64.
54796
54797 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
54798
54799         * lib/getdate.y (__attribute__): Don't define if already defined.
54800         Problem reported by Larry Jones.
54801         * lib/utimens.c (__attribute__): Likewise.
54802
54803 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
54804
54805         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
54806         reported by Andreas Schwab.
54807
54808 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54809             Bruno Haible  <bruno@clisp.org>
54810
54811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54812         check for the declaration of strnlen and a run test that exposes the
54813         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54814         rpl_strndup.
54815
54816 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54817             Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54820
54821 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54822
54823         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54824         compile test, for Tru64 4.0D.
54825
54826 2006-05-28  Karl Berry  <karl@gnu.org>
54827
54828         * config/srclist.txt (printf-args.c): lose sync.
54829
54830 2006-05-26  Martin Lambers  <marlam@marlam.de>
54831
54832         * lib/getpass.c: Updates the test for the native W32 API, and adds
54833         missing includes, thus fixing compilation warnings.
54834
54835 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54836
54837         * lib/exclude.c (exclude_fnmatch): New function.
54838         (excluded_file_name): Call exclude_fnmatch.
54839         * lib/exclude.h (excluded_file_name): New prototype
54840
54841 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54842
54843         * lib/tempname.c (small_open, large_open): New macros.
54844         (__open, __open64) [!_LIBC]: Remove.
54845         (__gen_tempname): Use small_open and large_open instead of __open
54846         and __open64.  This fixes a portability bug on HP-UX 11.11i
54847         reported by Simon Wing-Tang in
54848         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54849
54850 2006-05-24  Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54853         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54854         Reported by Thorsten Maerz <torte@netztorte.de> via
54855         Aaron Stone <aaron@serendipity.cx>.
54856
54857 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54858
54859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54860         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54861         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54862         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54863         not really conditional on the cache.
54864         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54865
54866 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54869         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54870         (my_usleep): Don't mishandle maximum value.
54871
54872 2006-05-19  Jim Meyering  <jim@meyering.net>
54873
54874         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54875
54876 2006-05-17  Bruno Haible  <bruno@clisp.org>
54877
54878         Cygwin portability.
54879         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54880
54881 2006-05-17  Bruno Haible  <bruno@clisp.org>
54882
54883         * lib/stdint_.h: Fix recognition of Cygwin.
54884
54885 2006-05-15  Bruno Haible  <bruno@clisp.org>
54886
54887         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54888         on libtool patch by Ralf Wildenhues.
54889
54890 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54893         test for C99 conformance; (bool) 0.5 is an integer constant
54894         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54895         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54896
54897 2006-05-11  Simon Josefsson  <jas@extundo.com>
54898
54899         * m4/xvasprintf.m4: Fix obvious typo.
54900
54901 2006-05-11  Jim Meyering  <jim@meyering.net>
54902
54903         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54904         James Lemley.
54905
54906 2006-05-10  Simon Josefsson  <jas@extundo.com>
54907
54908         * lib/md4.c: Typo fix, update copyright years.
54909         (K1, K2): Don't use L because it turn computations into 64-bit on
54910         64-bit platforms.
54911
54912 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54913
54914         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54915         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54916         unwanted sign propagation, e.g., on hosts with 64-bit int.
54917         There still are some problems with reeelly weird theoretical hosts
54918         (e.g., 33-bit int) but it's not worth worrying about now.
54919         * lib/sha1.c (rol): Likewise.
54920         (K1, K2, K3, K4): Remove unnecessary L suffix.
54921
54922 2006-05-10  Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/des.c: Cast to avoid warnings.
54925
54926 2006-05-09  Bruno Haible  <bruno@clisp.org>
54927
54928         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54929         (Depends-on): Depend also on xsize, stdarg.
54930         (configure.ac): Add gl_XVASPRINTF.
54931
54932 2006-05-09  Bruno Haible  <bruno@clisp.org>
54933
54934         * m4/xvasprintf.m4: New file.
54935
54936 2006-05-09  Bruno Haible  <bruno@clisp.org>
54937
54938         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54939         (EOVERFLOW): Define fallback value.
54940         (xstrcat): New function.
54941         (xvasprintf): Recognize the special case of a string concatenation.
54942
54943 2006-05-08  Eric Blake  <ebb9@byu.net>
54944
54945         * gnulib-tool (func_version): Base copyright year on CVS date.
54946         (func_emit_copyright_notice): New function.
54947         (func_emit_lib_Makefile_am): Use it.
54948         (func_emit_tests_Makefile_am): Likewise.
54949         (func_import): Likewise.
54950
54951 2006-05-08  Bruno Haible  <bruno@clisp.org>
54952
54953         * modules/stdarg: New file.
54954         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54955
54956 2006-05-08  Bruno Haible  <bruno@clisp.org>
54957
54958         * m4/stdarg.m4: New file, from GNU gettext.
54959
54960 2006-05-08  Bruno Haible  <bruno@clisp.org>
54961
54962         * config/srclist.txt (build-aux/config.rpath): different from latest
54963         release.
54964
54965 2006-05-08  Bruno Haible  <bruno@clisp.org>
54966
54967         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54968
54969 2006-05-05  Jim Meyering  <jim@meyering.net>
54970
54971         * m4/warning.m4: New file, derived from bison's file by the same name.
54972
54973 2006-05-03  Bruno Haible  <bruno@clisp.org>
54974
54975         * lib/stdint_.h: Shorter URL.
54976         * lib/inttypes.h: Likewise.
54977
54978 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54979
54980         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54981
54982 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54983
54984         * lib/verify.h: Document the internals better.  Most of this change
54985         was written by Bruno Haible.
54986
54987 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         * doc/verify.texi: New file, partly based on a proposal by
54990         Bruno Haible.
54991
54992 2006-05-02  Bruno Haible  <bruno@clisp.org>
54993
54994         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54995         test from here...
54996         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54997
54998 2006-04-29  Bruno Haible  <bruno@clisp.org>
54999
55000         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
55001         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
55002
55003 2006-04-29  Bruno Haible  <bruno@clisp.org>
55004
55005         * gnulib-tool: Make --update option actually work.
55006
55007 2006-04-29  Bruno Haible  <bruno@clisp.org>
55008
55009         * doc/gcd.texi: New file.
55010         * doc/gnulib.texi: Include it.
55011
55012 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55013
55014         * lib/getdate.y (get_date): When adding relative date, start with the
55015         initial time, not with the result of the first mktime call.
55016
55017 2006-04-25  Bruno Haible  <bruno@clisp.org>
55018
55019         * gnulib-tool (func_import): Output the include directives in three
55020         blocks, sorted separately.
55021         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55022
55023 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
55026         to define main with arguments, for C++.  Reported by Eric Blake.
55027         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
55028         Prefer 'int main ()' to 'int main (void)', for C++.
55029         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
55030         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
55031         for 'main', for C99 and C++.
55032
55033 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55034
55035         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
55036         Don't assume that exit status -1 is valid.
55037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55038         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55039         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
55040         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
55041         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
55042         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
55043         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
55044         functions can be used without declaring them, or that you can
55045         exit with status -1.
55046         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
55047
55048 2006-04-24  Karl Berry  <karl@gnu.org>
55049
55050         * config/srclist.txt (longdouble.m4): sync lost.
55051
55052 2006-04-24  Eric Blake  <ebb9@byu.net>
55053
55054         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
55055
55056 2006-04-24  Bruno Haible  <bruno@clisp.org>
55057
55058         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
55059         poll() implementation in AIX.
55060         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55061
55062 2006-04-24  Bruno Haible  <bruno@clisp.org>
55063
55064         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
55065         assigned exactly once.
55066
55067 2006-04-23  Claudio Fontana  <claudio@gnu.org>
55068             Bruno Haible  <bruno@clisp.org>
55069
55070         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
55071         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
55072         for AM_CPPFLAGS.
55073
55074 2006-04-23  Bruno Haible  <bruno@clisp.org>
55075
55076         * modules/copy-file: Depend on unistd.
55077         * modules/execute: Likewise.
55078         * modules/fatal-signal: Likewise.
55079         * modules/findprog: Likewise.
55080         * modules/mkdtemp : Likewise.
55081         * modules/pipe: Likewise.
55082         * modules/wait-process: Likewise.
55083
55084 2006-04-23  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
55087         condition was already detected.
55088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55089
55090 2006-04-23  Bruno Haible  <bruno@clisp.org>
55091
55092         * lib/copy-file.c: Include <unistd.h> unconditionally.
55093         * lib/execute.c: Likewise.
55094         * lib/fatal-signal.c: Likewise.
55095         * lib/findprog.c: Likewise.
55096         * lib/mkdtemp.c: Likewise.
55097         * lib/pipe.h: Likewise.
55098         * lib/pipe.c: Likewise.
55099         * lib/wait-process.h: Likewise.
55100
55101 2006-04-23  Bruno Haible  <bruno@clisp.org>
55102
55103         * gnulib-tool (func_usage): Fix --import description. Document
55104         --update.
55105         (func_import): Create temporary file in a temporary directory, if
55106         --dry-run is specified. Silence errors from 'grep' when there are no
55107         m4 files in $m4dir.
55108         (func_create_testdir): Silence errors from 'grep' when there are no
55109         m4 files in $m4dir.
55110         Reported by Karl Berry <karl@freefriends.org>.
55111
55112 2006-04-20  Bruno Haible  <bruno@clisp.org>
55113
55114         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
55115         one argument, so that the code will be portable to Autoconf 2.60.
55116         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
55117         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55118         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
55119
55120 2006-04-19  Derek Price  <derek@ximbiot.com>
55121             Eric Blake  <ebb9@byu.net>
55122
55123         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
55124         rather than "/full/path.h".  Update comment to match.  Shorten &
55125         generalize m4_translit call via AS_TR_CPP.
55126
55127 2006-04-19  Derek Price  <derek@ximbiot.com>
55128             Eric Blake  <ebb9@byu.net>
55129
55130         * lib/inttypes.h: Correct grammar in comment.
55131
55132 2006-04-18  Derek Price  <derek@ximbiot.com>
55133             Paul Eggert  <eggert@cs.ucla.edu>
55134
55135         * modules/inttypes: New file.
55136         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
55137
55138 2006-04-18  Derek Price  <derek@ximbiot.com>
55139             Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
55142         New files.
55143
55144 2006-04-18  Derek Price  <derek@ximbiot.com>
55145             Paul Eggert  <eggert@cs.ucla.edu>
55146
55147         * lib/inttypes.h: New file.
55148         * lib/strtoimax.c: Assume <inttypes.h>.
55149
55150 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
55153         isn't mounted.  Problem reported by Kir Kolyshkin.
55154
55155 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55156
55157         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
55158         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
55159         Derek R. Price.
55160         * lib/regex.h (RE_DUP_MAX): Update comment to match current
55161         implementation.
55162
55163 2006-04-12  Eric Blake  <ebb9@byu.net>
55164
55165         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
55166         is now done automatically by the corresponding Autoconf macro.
55167
55168 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
55169
55170         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
55171         time_r.h.
55172
55173 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55174
55175         Merge regex changes from libc, removing some of our
55176         POSIX-conformance changes that were rejected and redoing them in a
55177         less-intrusive way.
55178
55179         * lib/regcomp.c (re_compile_internal, init_dfa):
55180         Length arg is now size_t, not Idx.  All uses changed.
55181         (peek_token): Forward decl now says internal_function.
55182         (__re_error_msgid, __re_error_msgid_idx):
55183         Now static rather than extern with attribute_hidden.
55184         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
55185         For some reason libc prefers K&R style defns for external functions.
55186         (regerror) [!defined _LIBC]: Likewise.
55187         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
55188         (seek_collating_symbol_entry, lookup_collation_sequence_value):
55189         (build_range_exp, build_collating_symbol):
55190         Use K&R-style defn.
55191         (re_compile_fastmap): Use '\0' to memset, not 0.
55192         (utf8_sb_map): Make the calculations more obvious.
55193         (init_dfa, parse_bracket_exp, build_charclass_op):
55194         Call calloc and cast result, as glibc does.
55195         (init_word_char, fetch_token, peek_token, peek_token_bracket):
55196         (build_range_exp, build_collating_symbol):
55197         Now internal functions.
55198
55199         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
55200
55201         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
55202         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
55203         Don't depend on VMS; depend on __VMS instead, for POSIX
55204         namespace cleanness.
55205         (regoff_t): Define to ssize_t, not long int.
55206
55207         Remove the REG_ macros named below.  Instead, make the old names
55208         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
55209         __USE_GNU_REGEX.
55210         (REG_BACKSLASH_ESCAPE_IN_LISTS):
55211         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
55212         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
55213         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
55214         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
55215         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
55216         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
55217         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
55218         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
55219         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
55220         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
55221         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
55222         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
55223         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
55224         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
55225         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
55226         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
55227         (REG_NREGS):
55228         Remove.  All uses replaced by the old RE_* names.
55229         (RE_BACKSLASH_ESCAPE_IN_LISTS):
55230         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
55231         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
55232         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
55233         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
55234         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
55235         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
55236         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
55237         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
55238         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
55239         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
55240         Don't bother having these macros be independent of each others'
55241         values, since they no longer exist in the POSIX name space.
55242
55243         Rename the following member names back to their old names,
55244         unless !__USE_GNU_REGEX.  All uses changed back.
55245         (buffer): Renamed from re_buffer.
55246         (allocated): Renamed from re_allocated.
55247         (used): Renamed from re_used.
55248         (syntax): Renamed from re_syntax.
55249         (fastmap): Renamed from re_fastmap.
55250         (translate): Renamed from re_translate.
55251         (can_be_null): Renamed from re_can_be_null.
55252         (regs_allocated): Renamed from re_regs_allocated.
55253         (fastmap_accurate): Renamed from re_fastmap_accurate.
55254         (no_sub): Renamed from re_no_sub.
55255         (not_bol): Renamed from re_not_bol.
55256         (not_eol): Renamed from re_not_eol.
55257         (newline_anchor): Renamed from re_newline_anchor.
55258         (num_regs): Renamed from rm_num_regs.
55259         (start): Renamed from rm_start.
55260         (end): Renamed from rm_end.
55261
55262         (free_state): Move up a bit.
55263
55264         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
55265         #define to be empty.
55266         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
55267         when that is what is intended.
55268         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
55269         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
55270         (MAX): New macro.
55271         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
55272         All uses changed back to re_malloc, etc.  It's now the caller's
55273         responsibility to check for overflow; all callers changed.
55274         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
55275         (re_x2nrealloc): Remove.
55276         (free_state): Remove decl.
55277
55278         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
55279         (re_set_registers, re_exec):
55280         Use K&R-style defn.
55281
55282         2006-01-31  Roland McGrath  <roland@redhat.com>
55283
55284         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
55285         Reported by Mike Frysinger <vapier@gentoo.org>.
55286
55287         2006-01-15  Andreas Jaeger  <aj@suse.de>
55288
55289         [BZ #1950]
55290         * lib/regex_internal.c (re_string_reconstruct): Adjust for
55291         build_wcs_upper_buffer change.
55292         (build_wcs_upper_buffer): Change return type.
55293
55294         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
55295
55296         * lib/regex_internal.h: Include <stdint.h> if available.
55297
55298         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
55299
55300         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
55301
55302         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55303
55304         * lib/regcomp.c: Adjust for changed secondary hash function.
55305
55306         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
55307
55308         * lib/regex.h: Pretty printing.
55309         Clean up namespace a bit.
55310
55311         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
55312
55313         * lib/regexec.c (update_cur_sifted_state, check_arrival,
55314         check_arrival_add_next_nodes): Avoid using uninitialized variable.
55315
55316         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55317                     Ulrich Drepper  <drepper@redhat.com>
55318
55319         [BZ #1302]
55320         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
55321         changed.
55322         (bitset_word_t): Renamed from bitset_word.  All uses changed.
55323
55324         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
55325
55326         [BZ #281]
55327         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
55328         * lib/regcomp.c: Remove unnecessary uses of
55329         unsigned RE_TRANSLATE_TYPE.
55330         * lib/regex_internal.h: Likewise.
55331         * lib/regex_internal.c: Likewise.
55332         * lib/regexec.c: Likewise.
55333         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
55334
55335         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
55336
55337         * lib/regexec.c (find_recover_state): Remove unnecessary
55338         initialization.
55339         (transit_state_bkref): Make DFA a const pointer.
55340         (get_subexp): Likewise.
55341         (check_arrival): Likewise.
55342         (update_cur_sifted_state): Likewise.
55343         (re_search_internal): Likewise.
55344         (prune_impossible_nodes): Likewise.
55345         (acquire_init_state_context): Likewise.
55346         (proceed_next_node): Likewise.
55347         (set_regs): Likewise.
55348         (free_fail_stack_return): Likewise.
55349         (check_arrival_expand_ecl): Mark DFA parameter as const.
55350         (check_arrival_expand_ecl_sub): Likewise.
55351         (check_subexp_limits): Likewise.
55352         (sub_epsilon_src_nodes):  Likewise.
55353         (add_epsilon_src_nodes):  Likewise.
55354         (merge_state_array): Likewise.
55355         (update_regs): Likewise.
55356         (build_trtable): Likewise.
55357         (sift_states_backward): Mark MCTX parameter as const.
55358         (build_sifted_states): Likewise.
55359         (update_cur_sifted_state): Likewise.
55360         (sift_states_mkref): Likewise.
55361         (check_arrival_expand_ecl): Mark eclosure as const.
55362         (check_dst_limits_calc_pos_1): Likewise.
55363         * lib/regex_internal.h (re_match_context_t): Make dfa a const
55364         pointer.
55365
55366         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55367
55368         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55369         (transit_state_sb): Likewise.
55370         (transit_state_mb): Likewise.
55371         (sift_states_iter_mb): Likewise.
55372         (check_arrival_add_next_nodes): Likewise.
55373         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55374         [_LIBC] (re_search_2_stub): Use mempcpy.
55375
55376         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55377         mbrtowc for very simple UTF-8 case.
55378
55379         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55380         a pointer-to-const.
55381         (re_acquire_state_context): Likewise.
55382         * lib/regex_internal.h: Adjust prototypes.
55383
55384         * lib/regex.c: Prevent using C++ compilers.
55385
55386         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55387         (re_acquire_state_context): Likewise.
55388
55389 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55390
55391         * modules/regex (Depends-on): Add ssize_t.
55392
55393 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55394
55395         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55396         translation table.
55397
55398 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55401
55402 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55403             Bruno Haible  <bruno@clisp.org>
55404
55405         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55406         <sys/types.h> and <inttypes.h>.
55407
55408 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55409
55410         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55411         `__error_t_defined', so argp.h will not typedef the former.
55412
55413 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55414
55415         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55416         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55417         glibc names.  Even if glibc is changed to conform to POSIX, the
55418         traditional names will be available anyway, since regex depends on
55419         the extensions module.  Also, fix a longstanding typo in the
55420         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55421         reported by Emanuele Giaquinta.  Also, change sense of cached
55422         variable, so that the message makes sense.
55423
55424 2006-03-24  Simon Josefsson  <jas@extundo.com>
55425
55426         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55427         including some doc fixes.
55428         (base64_encode_alloc): Fix +1 bug on allocation failures.
55429
55430 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55431
55432         * lib/base64.c (base64_encode): Do not read past end of array with
55433         unsanitized input on systems with CHAR_BIT > 8.
55434
55435 2006-03-24  Eric Blake  <ebb9@byu.net>
55436
55437         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55438
55439 2006-03-22  Karl Berry  <karl@gnu.org>
55440
55441         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55442         * config/srclistvars.sh (COREUTILS): new var.
55443
55444 2006-03-17  Jim Meyering  <jim@meyering.net>
55445
55446         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55447         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55448
55449 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55452         no longer needs it.  Instead, check that regoff_t is as least
55453         as wide as ptrdiff_t.
55454
55455         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55456         so that our regex.h stays compatible with the installed regex.
55457         This is helpful for installers who configure --without-included-regex.
55458         Problem reported by Emanuele Giaquinta.
55459
55460 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55461
55462         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55463         Typedef to long int, not to off_, as POSIX will likely change
55464         in that direction.
55465
55466 2006-03-15  Eric Blake  <ebb9@byu.net>
55467
55468         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55469
55470 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55471
55472         * lib/argp-help.c (validate_uparams): Fix typo
55473         * lib/argp-parse.c (argp_default_options): Consistently begin help
55474         messages with a lowercase letter.
55475
55476 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55477
55478         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55479         overrun buffers and shouldn't be used (much as gets shouldn't be
55480         used).
55481         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55482
55483 2006-03-08  Simon Josefsson  <jas@extundo.com>
55484
55485         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55486         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55487
55488 2006-03-08  Simon Josefsson  <jas@extundo.com>
55489
55490         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55491         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55492
55493 2006-03-08  Simon Josefsson  <jas@extundo.com>
55494
55495         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55496         signal that configure disabled the device.
55497
55498 2006-03-08  Simon Josefsson  <jas@extundo.com>
55499
55500         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55501         languages.
55502
55503 2006-03-07  Simon Josefsson  <jas@extundo.com>
55504
55505         * modules/getopt (Depends-on): Add unistd.
55506
55507         * modules/unistd: New file.
55508
55509 2006-03-07  Simon Josefsson  <jas@extundo.com>
55510
55511         * modules/gc-random: New file.
55512
55513 2006-03-07  Simon Josefsson  <jas@extundo.com>
55514
55515         * m4/unistd_h.m4: New file.
55516
55517 2006-03-07  Simon Josefsson  <jas@extundo.com>
55518
55519         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55520         test to be side-effect free by storing the result in the cache
55521         variable gl_cv_lib_readline, and moving the assignment of
55522         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55523         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55524
55525 2006-03-07  Simon Josefsson  <jas@extundo.com>
55526
55527         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55528         error on missing devices (the functions will return an error).
55529
55530         * m4/gc.m4: Move random stuff to gc-random.m4
55531
55532 2006-03-07  Simon Josefsson  <jas@extundo.com>
55533
55534         * lib/unistd_.h: New file.
55535
55536 2006-03-07  Simon Josefsson  <jas@extundo.com>
55537
55538         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55539
55540 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55541
55542         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55543         Problem reported by Juan Manuel Guerrero.
55544
55545 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55548         the unistd module.
55549         * lib/getlogin_r.c: Likewise.
55550         * lib/getlogin_r.h: Likewise.
55551         * lib/glob.c: Likewise.
55552         * lib/pagealign_alloc.c: Likewise.
55553         * lib/unistd_.h: Remove; no longer needed.
55554
55555 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55556
55557         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55558         Add unistd.
55559         * modules/c-stack (Depends-on): Add unistd.
55560         * modules/getlogin_r: Likewise.
55561         * modules/glob: Likewise.
55562         * modules/pagealign_alloc: Likewise.
55563         * modules/unistd (Files): Remove lib/unistd_.h.
55564         (EXTRA_DIST): Remove.
55565         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55566         need unistd_.h.
55567         (MOSTLYCLEANFILES): Remove unistd.h-t.
55568
55569 2006-03-03  Simon Josefsson  <jas@extundo.com>
55570
55571         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55572
55573 2006-03-03  Simon Josefsson  <jas@extundo.com>
55574
55575         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55576         libidn and bison.
55577
55578 2006-03-03  Simon Josefsson  <jas@extundo.com>
55579
55580         * build-aux/maint.mk: Add indent target.
55581
55582 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55583
55584         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55585         our replacement poll.h in any case, to avoid a differing
55586         declaration from a system header.  Seen on AIX.
55587
55588 2006-03-01  Simon Josefsson  <jas@extundo.com>
55589
55590         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55591         <kasal@ucw.cz>.
55592
55593 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         * modules/gettime (Depends-on): Add extensions module.
55596         * modules/nanosleep (Depends-on): Likewise.
55597         * modules/settime (Depends-on): Likewise.
55598
55599 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55600
55601         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55602         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55603         pedantically.
55604         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55605         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55606
55607         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55608         not "==".  Reported by Ralf Wildenhues.
55609
55610 2006-03-01  Karl Berry  <karl@gnu.org>
55611
55612         * doc/Copyright/request-*: new files, synced from gnuorg.
55613
55614 2006-03-01  Karl Berry  <karl@gnu.org>
55615
55616         * config/srclist.txt (Copyright/*): new entries.
55617
55618 2006-02-28  Simon Josefsson  <jas@extundo.com>
55619
55620         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55621
55622 2006-02-27  Simon Josefsson  <jas@extundo.com>
55623
55624         * lib/base64.h: Indent #define's.  From Jim Meyering
55625         <jim@meyering.net>.
55626
55627 2006-02-27  Jim Meyering  <jim@meyering.net>
55628
55629         Revert the change of 2006-02-24, so these files can continue
55630         to be sync'd from gettext.
55631         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55632         of `config.h'.
55633
55634 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55635
55636         * modules/intprops: New file.
55637         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55638         Add intprops.
55639         * modules/getloadavg (Files): Remove lib/intprops.h.
55640         (Depends-on): Add intprops.
55641         * modules/human: Likewise.
55642         * modules/inttostr: Likewise.
55643         * modules/openat: Likewise.
55644         * modules/sig2str: Likewise.
55645         * modules/userspec: Likewise.
55646         * modules/utimecmp: Likewise.
55647         * modules/xnanosleep: Likewise.
55648         * modules/xstrtol: Likewise.
55649
55650 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
55651
55652         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
55653         * modules/lock-tests (TESTS): Use $(EXEEXT).
55654         * modules/tls-tests: Likewise.
55655         * modules/argp-tests: Likewise.
55656         (check_PROGRAMS): New var, replacing...
55657         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
55658
55659 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55660
55661         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
55662         `config.h'.
55663
55664 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55665
55666         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
55667
55668 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55669
55670         Sync from coreutils.
55671         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
55672         gl_CHDIR_SAFER.
55673
55674 2006-02-22  Jim Meyering  <jim@meyering.net>
55675
55676         Sync from coreutils.
55677         * m4/chdir-safer.m4: New file.
55678
55679 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55680
55681         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
55682         AT_FDCWD exceeds INT_MAX.
55683         * lib/openat.h (AT_FDCWD): Likewise.
55684
55685 2006-02-17  Eric Blake  <address@hidden>
55686
55687         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
55688
55689 2006-02-16  Simon Josefsson  <jas@extundo.com>
55690
55691         * modules/getaddrinfo (Depends-on): Add sys_socket.
55692
55693 2006-02-15  Simon Josefsson  <jas@extundo.com>
55694
55695         * build-aux/maint.mk: Add dsyntax-check rule.
55696
55697 2006-02-15  Eric Blake  <ebb9@byu.net>
55698
55699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
55700         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
55701         'present but cannot compile' warnings on cygwin.
55702         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
55703         use ws2tcpip.h if sys/socket.h works.
55704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
55705         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
55706
55707 2006-02-14  Simon Josefsson  <jas@extundo.com>
55708
55709         * modules/maintainer-makefile (Files): Rename.
55710
55711         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
55712         and (the local) Makefile.cfg to maint-cfg.mk.
55713
55714         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
55715         to the latter.
55716
55717         * modules/maintainer-makefile: New module.
55718
55719         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
55720         severaly stripped to make it possible to build it up from scratch
55721         with reliable tests.
55722
55723         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
55724         fixes to permit overriding the default actions when configure and
55725         makefile are not available.
55726
55727 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55728
55729         Sync from coreutils.
55730         * modules/lstat (Depends-on): Don't depend on xalloc.
55731         (License): Change from GPL to LGPL, since this is now simply a
55732         replacement for a libc function.
55733
55734 2006-02-14  Jim Meyering  <jim@meyering.net>
55735
55736         Sync from coreutils.
55737
55738         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
55739         failure on deficient systems, and simplify gnulib lgpl dependencies.
55740         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
55741         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
55742
55743         * lib/xalloc-die.c: Remove unused definition of N_.
55744
55745 2006-02-14  Jim Meyering  <jim@meyering.net>
55746
55747         Sync from coreutils.
55748         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
55749         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
55750         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
55751         double-quote uses of that variable, to accommodate the rare case in
55752         which getmntent is available in none of the libraries checked.  This
55753         happens at least on FreeBSD 5.0.
55754
55755 2006-02-13  Simon Josefsson  <jas@extundo.com>
55756
55757         * gnulib-tool (Usage): Fix --import, from
55758         karl@freefriends.org (Karl Berry).
55759
55760 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55761
55762         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
55763
55764 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
55765
55766         * lib/argp-namefrob.h: Restore changes accidentally lost during the
55767         "autoupdate" on 2005-12-12.
55768
55769 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55770
55771         * modules/closeout (Depends-on): Remove atexit.
55772
55773 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55774
55775         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
55776         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
55777
55778 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55779
55780         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
55781         __EXTENSIONS__ if this causes compilation to fail.  Problem
55782         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
55783         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
55784
55785 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
55786
55787         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
55788         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
55789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
55790         All uses changed.
55791
55792 2006-01-26  Simon Josefsson  <jas@extundo.com>
55793
55794         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
55795         prototype is visible on mingw32.
55796
55797         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
55798         for mingw32.
55799
55800         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
55801         mingw32).
55802
55803 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55804
55805         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
55806         attempt to open for write; this always fails, at least on POSIX
55807         hosts.  This reinstates the 2006-01-09 change, which was
55808         inadvertently removed.
55809
55810 2006-01-26  Bruno Haible  <bruno@clisp.org>
55811
55812         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55813         Reported by Paul Eggert.
55814
55815 2006-01-26  Bruno Haible  <bruno@clisp.org>
55816             Paul Eggert  <eggert@cs.ucla.edu>
55817
55818         * lib/stdbool_.h (_Bool)
55819         [(! (defined __cplusplus || defined __BEOS__)
55820           && !defined __GNUC__
55821           && !(defined __HP_cc || defined __xlc__
55822                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55823                || defined __sgi))]:
55824         #define to signed char in these cases too; this simplifies
55825         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55826         etc., separately) and makes it more conservative.
55827
55828 2006-01-25  Simon Josefsson  <jas@extundo.com>
55829
55830         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55831         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55832         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55833
55834 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55835
55836         * lib/argp-namefrob.h: Bugfix. Remove stray #
55837
55838 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55839
55840         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55841         so that we test the test.
55842         Check for yet another HP-UX cc bug involving *bool |= bool.
55843
55844 2006-01-25  Karl Berry  <karl@gnu.org>
55845
55846         * config/srclist.txt (vasnprintf.c): sync lost.
55847
55848 2006-01-25  Jim Meyering  <jim@meyering.net>
55849
55850         Sync from the stable (b5) branch of coreutils:
55851
55852         * lib/fts.c (fts_children): Don't let close() clobber errno from
55853         failed fchdir().
55854
55855         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55856         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55857         a dangling symlink.  That can also happen at least for ELOOP.
55858         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55859         FYI, this bug predates the inclusion of fts.c in coreutils.
55860
55861         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55862         in their own block, so pre-c99 compilers don't object.
55863
55864         Avoid the double-free (first in fts_read, second in fts_close) that
55865         would occur when an `active' directory is made inaccessible (e.g.,
55866         via chmod a-x) during a traversal.
55867         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55868         before returning.  Reproduce this failure by
55869         mkdir -p a/b; cd a; chmod a-x . b
55870         Reported by Stavros Passas.
55871
55872 2006-01-25  Jim Meyering  <jim@meyering.net>
55873
55874         * lib/fileblocks.c: Remove more useless parentheses.
55875         * lib/readutmp.h: Likewise.
55876
55877 2006-01-25  Bruno Haible  <bruno@clisp.org>
55878
55879         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55880         warnings.
55881         Reported by Paul Eggert.
55882
55883 2006-01-25  Bruno Haible  <bruno@clisp.org>
55884
55885         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55886         rid of a trap command. For Solaris sh.
55887         Reported by Mark D. Baushke <mdb@gnu.org>.
55888
55889 2006-01-24  Simon Josefsson  <jas@extundo.com>
55890
55891         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55892         Bruno.
55893
55894 2006-01-24  Karl Berry  <karl@gnu.org>
55895
55896         * config/srclist.txt (argp-namefrob.h): sync lost.
55897
55898 2006-01-24  Jim Meyering  <jim@meyering.net>
55899
55900         * modules/openat (Files): Add lib/intprops.h.
55901         From Mark D. Baushke.
55902
55903 2006-01-24  Jim Meyering  <jim@meyering.net>
55904
55905         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55906         Reported by Mark D. Baushke.
55907
55908 2006-01-24  Jim Meyering  <jim@meyering.net>
55909
55910         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55911
55912 2006-01-24  Bruno Haible  <bruno@clisp.org>
55913
55914         * modules/strnlen (Maintainer): Change from glibc to all.
55915
55916 2006-01-24  Bruno Haible  <bruno@clisp.org>
55917
55918         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55919         Patch by Paul Eggert.
55920
55921 2006-01-24  Bruno Haible  <bruno@clisp.org>
55922
55923         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55924         already has it.
55925         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55926         2005-11-26.
55927
55928         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55929         'signed char' to avoid problems with the built-in _Bool type.
55930         Reported by Paul Eggert on 2005-11-26.
55931
55932 2006-01-24  Bruno Haible  <bruno@clisp.org>
55933
55934         * gnulib-tool (func_import): Avoid constructing complicated sed
55935         expressions inside backquote.
55936         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55937
55938 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55939
55940         These changes imported from libc.
55941         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55942         test and two separate function calls.
55943         * lib/strndup.c (__strndup): Add libc_hidden_def.
55944
55945 2006-01-23  Simon Josefsson  <jas@extundo.com>
55946
55947         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55948         Remove the test_*_SOURCES variable: automake infers it by default.
55949         * modules/tls-tests: Likewise.
55950
55951 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         Work around porting bugs reported by Dieter in
55954         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55955         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55956         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55957         Include "getopt.h" first, to check interface.
55958         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55959         !HAVE_DECL_GETENV.
55960         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55961         (__strndup): Revert to K&R-style function dfns, the glibc style.
55962         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55963         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55964         Include strnlen.h first, to get prototype properly.
55965         (strnlen): Renamed from __strnlen.
55966         Remove weak alias.
55967
55968 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55969
55970         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55971
55972 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55973
55974         * config/srclist.txt: Adjust to reflect glibc reorganization.
55975         This affects only comments.
55976
55977 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55978
55979          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55980          Reported by Bruce Korb <bkorb@gnu.org>.
55981
55982 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55983
55984         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55985         to pacify gcc -Wswitch-default.
55986
55987 2006-01-22  Bruno Haible  <bruno@clisp.org>
55988
55989         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55990         temporary buffer for sprintf, take into account the precision also
55991         for 'd', 'i', 'u', 'o', 'x', 'X'.
55992
55993 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55994
55995         * modules/argp-tests: New module
55996         * tests/test-argp.c: New file
55997         * tests/test-argp-2.sh: New file
55998
55999 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56000
56001         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
56002         (__argp_base_name): Removed
56003         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
56004         typo.
56005         (__argp_base_name): Provide macro definition or extern declaration
56006         depending on the configuration
56007
56008 2006-01-20  Simon Josefsson  <jas@extundo.com>
56009
56010         * modules/inet_ntop (Depends-on): Depend on sys_socket.
56011
56012 2006-01-20  Simon Josefsson  <jas@extundo.com>
56013
56014         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
56015
56016 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56017
56018         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
56019         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
56020         Suggested by Bruno Haible.
56021
56022 2006-01-20  Karl Berry  <karl@gnu.org>
56023
56024         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
56025         until changes propagate, I guess.
56026
56027 2006-01-19  Simon Josefsson  <jas@extundo.com>
56028
56029         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
56030
56031 2006-01-19  Simon Josefsson  <jas@extundo.com>
56032
56033         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
56034
56035 2006-01-19  Simon Josefsson  <jas@extundo.com>
56036
56037         * gnulib-tool: Set check_PROGRAMS.
56038
56039         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56040         modules/des-tests, modules/gc-arcfour-tests,
56041         modules/gc-arctwo-tests, modules/gc-des-tests,
56042         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56043         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56044         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56045         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56046         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56047         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
56048         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
56049         test_*_SOURCES.
56050
56051 2006-01-18  Simon Josefsson  <jas@extundo.com>
56052
56053         * modules/socklen (Depends-on): Depend on sys_socket.
56054
56055 2006-01-18  Simon Josefsson  <jas@extundo.com>
56056
56057         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56058         modules/des-tests, modules/gc-arcfour-tests,
56059         modules/gc-arctwo-tests, modules/gc-des-tests,
56060         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56061         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56062         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56063         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56064         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56065         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
56066         $(EXEEXT) to automake TESTS variable, for mingw32.
56067
56068 2006-01-17  Simon Josefsson  <jas@extundo.com>
56069
56070         * modules/socklen (Include): Need sys/socket.h.
56071
56072 2006-01-17  Bruno Haible  <bruno@clisp.org>
56073
56074         * modules/ssize_t (Include): Add <sys/types.h>.
56075
56076 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
56077
56078         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
56079         it's not portable and it doesn't work with cross-compiles.
56080         Problem reported by Bruno Haible.  Fix missing-$ typo in
56081         'test "gl_cv_ignore_unused_libraries" ...' that prevented
56082         -zignore from being used with Sun's C compiler.
56083
56084 2006-01-12  Simon Josefsson  <jas@extundo.com>
56085
56086         * lib/base64.c: Fix warning, reported by Bruno Haible
56087         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
56088
56089 2006-01-12  Bruno Haible  <bruno@clisp.org>
56090
56091         * modules/ldd: New file.
56092         * build-aux/ldd.sh.in: New file.
56093         * MODULES.html.sh (Support for building libraries and executables): Add
56094         ldd.
56095
56096 2006-01-12  Bruno Haible  <bruno@clisp.org>
56097
56098         * m4/ldd.m4: New file.
56099
56100 2006-01-12  Bruno Haible  <bruno@clisp.org>
56101
56102         * gnulib-tool (func_import, func_create_testdir): Don't go into an
56103         endless loop while replacing $auxdir with build-aux.
56104
56105 2006-01-11  Simon Josefsson  <jas@extundo.com>
56106
56107         * lib/stdint_.h (SIZE_MAX): Add missing (.
56108
56109 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56110
56111         Sync from coreutils.
56112         * lib/md5.c: Fix commentary typos.
56113         (alignof, UNALIGNED_P): No need for a GCC-specific version.
56114         * lib/md5.h (__attribute__): Remove; unused.
56115         * lib/sha1.c: Fix commentary to match md5 better.
56116         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
56117         so that we don't need to worry about alignment.  All uses changed.
56118         This merges the 2005-10-28 md5 change into sha1.
56119
56120 2006-01-11  Jim Meyering  <jim@meyering.net>
56121
56122         Sync from coreutils.
56123         * lib/md5.c (OP): Fix spacing.
56124
56125 2006-01-11  Bruno Haible  <bruno@clisp.org>
56126
56127         Ensure automatic ordering between gl_LOCK and gl_ARGP.
56128         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
56129         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
56130
56131 2006-01-11  Bruno Haible  <bruno@clisp.org>
56132
56133         Ensure automatic ordering between gl_LOCK and gl_ARGP.
56134         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
56135         the "early" section as well.
56136
56137 2006-01-11  Bruno Haible  <bruno@clisp.org>
56138
56139         Avoid "ar: no archive members specified" error on MacOS X.
56140         * gnulib-tool (func_modules_add_dummy): New function.
56141         (func_import, func_create_testdir): Invoke it.
56142
56143 2006-01-11  Bruno Haible  <bruno@clisp.org>
56144
56145         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
56146         with $auxdir in AC_CONFIG_FILES statements.
56147
56148 2006-01-11  Bruno Haible  <bruno@clisp.org>
56149
56150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56151         Initialize also noinst_HEADERS to empty.
56152
56153 2006-01-11  Bruno Haible  <bruno@clisp.org>
56154
56155         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
56156         variables.
56157         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
56158         autoreconf.
56159
56160 2006-01-11  Bruno Haible  <bruno@clisp.org>
56161
56162         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
56163         overridable by the user.
56164         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56165
56166 2006-01-10  Simon Josefsson  <jas@extundo.com>
56167
56168         * modules/sys_socket: New file.
56169
56170 2006-01-10  Simon Josefsson  <jas@extundo.com>
56171
56172         * m4/sys_socket_h.m4: New file.
56173
56174 2006-01-10  Simon Josefsson  <jas@extundo.com>
56175
56176         * lib/socket_.h: New file.
56177
56178 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56179
56180         * modules/readutmp (Maintainer): Add myself.
56181
56182 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56183
56184         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
56185         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
56186         People who are still concerned with buggy memcmp implementations
56187         can invoke gl_FUNC_MEMCMP themselves.
56188
56189 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56190
56191         * lib/regex_internal.h (BITSET_WORD_BITS):
56192         Work around a bug in 64-bit PGC (before version 6.1-2), where the
56193         preprocessor mishandles large unsigned values as if they were signed.
56194         Problem reported by Claudio Fontana in
56195         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
56196
56197 2006-01-10  Jim Meyering  <jim@meyering.net>
56198
56199         Avoid the double-free (first in fts_read, second in fts_close) that
56200         would occur when an `active' directory is made inaccessible (e.g.,
56201         via chmod a-x) during a traversal.
56202         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
56203         before returning.  Reproduce this failure by
56204         mkdir -p a/b; cd a; chmod a-x . b
56205         Reported by Stavros Passas.
56206
56207         Sync from coreutils.
56208         * lib/sha1.c: Tweak grammar in a comment.
56209
56210 2006-01-10  Jim Meyering  <jim@meyering.net>
56211
56212         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
56213         Patch by Joerg Sonnenberger.
56214
56215 2006-01-10  Bruno Haible  <bruno@clisp.org>
56216
56217         * modules/readutmp: Depend on module free.
56218         * modules/strtok_r: Depend on module restrict.
56219
56220 2006-01-10  Bruno Haible  <bruno@clisp.org>
56221
56222         * modules/gettext (configure.ac): Add an invocation of
56223         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
56224
56225 2006-01-10  Bruno Haible  <bruno@clisp.org>
56226
56227         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
56228         Reported by Werner Lemberg <wl@gnu.org>.
56229
56230 2006-01-10  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/localcharset.c: Update from GNU gettext.
56233
56234 2006-01-10  Bruno Haible  <bruno@clisp.org>
56235
56236         * lib/argp.h (__const): Remove macro. Use const instead.
56237         * lib/argp-fmtstream.h (__const): Likewise.
56238         * lib/glob_.h (__const): Remove macro.
56239         * lib/glob-libc.h: Use const instead of __const.
56240
56241 2006-01-10  Bruno Haible  <bruno@clisp.org>
56242
56243         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
56244         variable.
56245         Needed to avoid an automake error regarding the 'gettext' module.
56246
56247 2006-01-09  Simon Josefsson  <jas@extundo.com>
56248
56249         * modules/inet_ntop (Depends-on): Add restrict.
56250
56251 2006-01-09  Simon Josefsson  <jas@extundo.com>
56252
56253         * modules/gc-rijndael-tests (License): Put under LGPL.
56254
56255         * modules/gc-des-tests (License): Likewise.
56256
56257         * modules/gc-arcfour-tests (License): Likewise.
56258
56259         * modules/gc-arctwo-tests (License): Likewise.
56260
56261         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
56262
56263         * modules/gc-hmac-sha1-tests (Files): Likewise.
56264
56265         * modules/gc-hmac-md5-tests (License): Likewise.
56266
56267         * modules/gc-sha1-tests (License): Likewise.
56268
56269         * modules/gc-md5-tests (License): Likewise.
56270
56271         * modules/gc-md4-tests (License): Likewise.
56272
56273         * modules/gc-md2-tests (License): Likewise.
56274
56275         * modules/gc-tests (License): Likewise.
56276
56277         * modules/des-tests (License): Likewise.
56278
56279         * modules/md4-tests (License): Likewise.
56280
56281         * modules/md2-tests (License): Likewise.
56282
56283 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56284
56285         Sync from coreutils:
56286
56287         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
56288         * modules/lib-ignore: New file.
56289         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
56290         chdir-safer.m4, lchmod.m4.
56291         * modules/openat: Add mkdirat.c, openat-priv.h.
56292
56293 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56294
56295         Sync from coreutils.
56296         * m4/lib-ignore.m4: New file.
56297         * m4/lchmod.m4: New file.
56298
56299 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56300
56301         Sync from coreutils.
56302         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
56303         for write access: POSIX says that must fail.
56304         * lib/fts.c (diropen): Likewise.
56305         * lib/save-cwd.c (save_cwd): Likewise.
56306         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
56307         well, for minor improvements on hosts that lack O_DIRECTORY.
56308         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
56309         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
56310         Fall back on chown if open failed with EACCES.
56311
56312         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
56313         Report an error at compile-time if only a 1-second nominal clock
56314         resolution is found.
56315
56316         * lib/lchmod.h: New file.
56317         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
56318         (make_dir_parents): Use lchown rather than chown, and
56319         lchmod rather than chmod.
56320
56321         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
56322         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
56323         "proc" reported by n0dalus.
56324
56325         * lib/mountlist.c: Include <limits.h>.
56326         (dev_from_mount_options)
56327         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
56328         New function.  It no longer assumes "dev=" has the System V meaning
56329         on Linux (since it doesn't).  It also parses "dev=" more carefully.
56330         (read_file_system_list)
56331         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
56332         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
56333         dev= in that case.
56334
56335         * lib/posixtm.h (PDS_PRE_2000): New macro.
56336         * lib/posixtm.c (year): Arg is now syntax_bits rather than
56337         allow_century.  All usages changed.  Reject dates outside the range
56338         1969-1999 if PDS_PRE_2000 is used.
56339
56340 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56341
56342         Sync from coreutils.
56343         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
56344         (Time of day items): Mention the possibility of leap seconds.
56345         Problem reported by Dr. David Alan Gilbert.
56346
56347 2006-01-09  Jim Meyering  <jim@meyering.net>
56348
56349         Sync from coreutils.
56350
56351         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
56352
56353         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
56354
56355         * lib/modechange.c (mode_compile): Reject an invalid mode string
56356         that starts with an octal digit.  From Andreas Gruenbacher.
56357
56358         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
56359         and dup to open_safer and dup_safer, respectively.
56360         (openat_permissive): Fix typo in comment.
56361
56362         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
56363         "gettext.h"; either no longer needed or are guaranteed by openat.h.
56364         (_): Remove; no longer needed.
56365         (openat): Renamed from rpl_openat; no need for rpl_openat
56366         since openat.h renames openat for us.
56367         Replace most of the body with a call to openat_permissive,
56368         to avoid duplicate code.
56369         Port to (probably hypothetical) environments were mode_t is
56370         wider than int.
56371         (openat_permissive): Require mode arg, so that we can check
56372         types better.  Put it just after flags.  Change cwd failure
56373         indicator from pointer-to-bool to pointer-to-errno-value.
56374         All callers changed.
56375         Invoke openat_save_fail and/or openat_restore_fail if
56376         cwd_errno is null, so that openat can call us.
56377         (openat_permissive, fdopendir, fstatat, unlinkat):
56378         Simplify errno handling to avoid some duplicate code,
56379         as it's OK to set errno on success.
56380         * lib/openat.h: Revamp code so that function macros depend on
56381         __OPENAT_PREFIX only, not also on AT_FDCWD.
56382         (openat_ro): Remove.  Caller changed to use openat_permissive.
56383         (openat_permissive): Now a macro, if not a function.
56384         (openat_restore_fail, openat_save_fail): Now always functions,
56385         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56386
56387         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56388         and openat.c.
56389         * lib/mkdirat.c: Include openat-priv.h.
56390         Remove definitions of macros defined therein.
56391         * lib/openat.c: Likewise.
56392
56393         * lib/mkdirat.c (mkdirat): New file and function.
56394         * lib/openat.h (mkdirat): Declare.
56395
56396         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56397
56398         * lib/openat.h (openat_permissive): Declare.
56399         (openat_ro): Define.
56400
56401         * lib/openat.c (EXPECTED_ERRNO): New macro.
56402         (openat_permissive): New function -- used in remove.c rewrite.
56403         (all functions): Set errno just before returning, only if there
56404         was an actual failure.
56405         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56406
56407         Emulate openat-family functions using Linux's procfs, if possible.
56408         Idea and some code based on Ulrich Drepper's glibc changes.
56409
56410         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56411         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56412         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56413         before falling back on save_cwd and restore_cwd.
56414         (fdopendir, fstatat, unlinkat): Likewise.
56415
56416         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56417         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56418
56419         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56420         as second argument to va_arg.  Otherwise, some versions of gcc
56421         warn that `if this code is reached, the program will abort'.
56422
56423 2006-01-09  Jim Meyering  <jim@meyering.net>
56424
56425         Sync from coreutils.
56426         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56427         Require openat-priv.h.
56428
56429 2006-01-09  Bruno Haible  <bruno@clisp.org>
56430
56431         * modules/strnlen (Include): Use strnlen.h.
56432
56433 2006-01-09  Bruno Haible  <bruno@clisp.org>
56434
56435         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56436
56437 2006-01-09  Bruno Haible  <bruno@clisp.org>
56438
56439         * lib/sysexit_.h (EX_OK): New macro.
56440         Suggested by Martin Lambers <marlam@marlam.de>.
56441
56442 2006-01-09  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56445         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56446
56447 2006-01-09  Bruno Haible  <bruno@clisp.org>
56448
56449         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56450         numbers.
56451
56452 2006-01-09  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56455         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56456         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56457         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56458
56459 2006-01-09  Bruno Haible  <bruno@clisp.org>
56460
56461         * build-aux/javacomp.sh.in: New file, moved from lib/.
56462         * modules/javacomp-script (Files): Update.
56463         (configure.ac): Add AC_CONFIG_FILES invocation.
56464         (EXTRA_DIST): Remove variable.
56465
56466         * build-aux/javaexec.sh.in: New file, moved from lib/.
56467         * modules/javaexec (Files): Update.
56468         (configure.ac): Add AC_CONFIG_FILES invocation.
56469         (EXTRA_DIST): Remove javaexec.sh.in.
56470
56471         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56472         * modules/csharpcomp-script (Files): Update.
56473         (configure.ac): Add AC_CONFIG_FILES invocation.
56474         (EXTRA_DIST): Remove variable.
56475
56476         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56477         * modules/csharpexec (Files): Update.
56478         (configure.ac): Add AC_CONFIG_FILES invocation.
56479         (EXTRA_DIST): Remove csharpexec.sh.in.
56480
56481 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56482
56483         Sync from coreutils.
56484
56485         Add POSIX ACL support
56486         * lib/acl.h (copy_acl, set_acl): Add declarations.
56487         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56488         systems other than Linux.
56489         (chmod_or_fchmod): New function: use fchmod when possible,
56490         and chmod otherwise.
56491         (file_has_acl): Add a POSIX ACL implementation, with a
56492         Linux-specific subcase.
56493         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56494         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56495         acls are unsupported.
56496         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56497         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56498         are unsupported.
56499
56500 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56501
56502         Sync from coreutils.
56503         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56504
56505 2006-01-07  Bruno Haible  <bruno@clisp.org>
56506
56507         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56508         gl_EARLY.
56509
56510 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56511
56512         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56513         Problem reported for Mingw by Mark Junker.
56514
56515 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * README: Gnulib normally doesn't generate a tarball.
56518
56519 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56520
56521         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56522         long int, not int, for nanosecond counts, so that people who are
56523         used to POSIX struct timespec won't be surprised.  Reported by Jim
56524         Meyering.
56525
56526 2005-12-28  Bruno Haible  <bruno@clisp.org>
56527
56528         * build-aux/config.rpath: Update from GNU gettext.
56529
56530 2005-12-16  Jim Meyering  <jim@meyering.net>
56531
56532         * modules/fprintftime: New module.
56533         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56534
56535 2005-12-16  Jim Meyering  <jim@meyering.net>
56536
56537         * m4/fprintftime.m4: New file.
56538
56539 2005-12-16  Jim Meyering  <jim@meyering.net>
56540
56541         * lib/fprintftime.c, lib/fprintftime.h: New files.
56542
56543 2005-12-15  Simon Josefsson  <jas@extundo.com>
56544
56545         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56546         new m4/socklen.m4.
56547
56548 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56549
56550         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56551         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56552
56553 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56554
56555         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56556         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56557         struct uparams is valid. Fall back to the default values if it is
56558         not.
56559
56560 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56561
56562         * modules/argp (Files): Add argp-pin.c
56563         (Depends-on): dirname
56564         (lib_SOURCES): Add argp-pin.c
56565
56566 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56567
56568         * m4/argp.m4:  Check if program_invocation_name and
56569         program_invocation_short_name are declared and define appropriate
56570         macros if they are not.
56571
56572 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56573
56574         * lib/argp-help.c (__argp_base_name): New function
56575         (__argp_short_program_name): Rewrite using __argp_base_name
56576         * lib/argp-namefrob.h: Define program_invocation_name and
56577         program_invocation_short_name if requested
56578         (__argp_base_name): Add prototype
56579         * lib/argp-parse.c (argp_def): Use gettext wrappers
56580         (argp_default_parser): Use __argp_base_name
56581         * lib/argp-pin.c: New file. Defines program_invocation_name and
56582         program_invocation_short_name on systems that lack them.
56583
56584 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56585
56586         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56587         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56588         porting problem reported by Georg Schwarz in
56589         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56590
56591 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56592
56593         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56594         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56595         porting problem reported by Georg Schwarz in
56596         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56597
56598 2005-12-05  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56601         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56602         Reported by Mark Junker <mjscod@gmx.de>.
56603
56604 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56605
56606         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56607         Use implementation from Albert Chin, with some
56608         comments/corrections by Stepan Kasal and myself.
56609
56610 2005-12-02  Bruno Haible  <bruno@clisp.org>
56611
56612         * gnulib-tool (func_import): Accept GPLed build tool modules when
56613         --lgpl is given.
56614         * modules/csharpcomp-script: New file.
56615         * modules/csharpcomp: Depend on it.
56616         * modules/javacomp-script: New file.
56617         * modules/javacomp: Depend on it.
56618         Suggested by Simon Josefsson.
56619
56620 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56621
56622         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56623         statement, to work around an HP-UX 10.20 compiler bug reported by
56624         Peter O'Gorman.
56625
56626 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56627
56628         * modules/savedir (Depends-on): Add openat.
56629
56630 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56631
56632         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56633         (uintmax_t) [defined uintmax_t]: Do not declare.
56634         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56635         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56636         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56637         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56638         sake of portability to weird hosts that C allows (though we don't
56639         know of any practical examples).
56640
56641         * lib/savedir.h (fdsavedir): New decl.
56642         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56643         contains most of the former guts of savedir.
56644         (savedir): Use savedirstream.
56645         Include "openat.h".
56646
56647 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56648
56649         * modules/obstack (Files): Add m4/ulonglong.m4.
56650         Problem reported by Davide Angelocola.
56651
56652 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56653
56654         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
56655         coreutils no longer futzes with rounding modes.
56656
56657 2005-11-14  Jim Meyering  <jim@meyering.net>
56658
56659         * lib/mkstemp-safer.c: Include <config.h>, required for possible
56660         replacement of mkstemp.
56661
56662 2005-11-10  Simon Josefsson  <jas@extundo.com>
56663
56664         * lib/readline.c: Remove EOL.
56665
56666 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56667
56668         * modules/gethrxtime (Depends-on): Add gettime.
56669
56670 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56671
56672         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
56673         or gettimeofday; no longer needed.
56674
56675 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56676
56677         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
56678         time business.
56679         (gethrxtime) [! (HAVE_NANOUPTIME
56680         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
56681         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
56682         our own approximation.
56683
56684 2005-11-08  Eric Blake  <ebb9@byu.net>
56685
56686         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56687
56688 2005-11-08  Eric Blake  <ebb9@byu.net>
56689
56690         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56691
56692 2005-11-04  Bruno Haible  <bruno@clisp.org>
56693
56694         * gnulib-tool: Implement --update mode.
56695
56696 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56697
56698         Fix porting problem reported by Theodoros V. Kalamatianos.
56699         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
56700         Don't assume that futimes failing means we must fail.
56701
56702 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
56705         variables to suggest the intended function of the PATH_MAX check.
56706
56707 2005-10-30  Kean Johnston  <jkj@sco.com>
56708
56709         Trivial changes to support SCO systems.
56710         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
56711         as PATH_MAX.
56712         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
56713         where __ptr is null when no I/O is pending.
56714
56715 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56716
56717         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
56718         leave errno alone.  Problem reported by Dmitry V. Levin.
56719
56720 2005-10-28  Simon Josefsson  <jas@extundo.com>
56721
56722         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
56723         Test more.
56724
56725         * tests/test-gc-md2.c, tests/test-md2.c: New files.
56726
56727         * modules/md2, modules/md2-tests: New files.
56728
56729 2005-10-28  Simon Josefsson  <jas@extundo.com>
56730
56731         * m4/inet_ntop.m4: More tests.
56732
56733         * m4/gc-md2.m4, md2.m4: New file.
56734
56735 2005-10-28  Simon Josefsson  <jas@extundo.com>
56736
56737         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
56738         "restrict" keywords, as per POSIX.  Protect the function
56739         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
56740         Don't use K&R prototypes.  Check the sprintf return values.
56741         Re-define EAFNOSUPPORT if not present.  Indent.
56742
56743         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
56744         suggested by Bruno Haible <bruno@clisp.org>.
56745
56746         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
56747
56748         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
56749
56750         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
56751         libgcrypt).
56752
56753         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
56754
56755         * lib/md2.h, lib/md2.c: New files.
56756
56757 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
56758
56759         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
56760         errno alone.  Problem reported by Frederic Jolliton.
56761
56762 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56763
56764         * modules/verify (License): Change from GPL to LGPL.  This is a
56765         tiny module and there are apparently near-equivalents that are
56766         under the BSD license.
56767
56768 2005-10-24  Simon Josefsson  <jas@extundo.com>
56769
56770         * modules/sha1: Relicense to LGPL.
56771
56772 2005-10-24  Simon Josefsson  <jas@extundo.com>
56773
56774         * lib/md4.h: Shrink buffer size, now that we changed the type.
56775
56776 2005-10-23  Simon Josefsson  <jas@extundo.com>
56777
56778         * gnulib-tool (func_import): Fix --tests-base.
56779
56780 2005-10-22  Simon Josefsson  <jas@extundo.com>
56781
56782         * modules/arcfour (Depends-on): Need stdint.
56783
56784 2005-10-22  Simon Josefsson  <jas@extundo.com>
56785
56786         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
56787         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
56788
56789 2005-10-22  Simon Josefsson  <jas@extundo.com>
56790
56791         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
56792         suggested by Bruno Haible <bruno@clisp.org>.
56793
56794 2005-10-22  Simon Josefsson  <jas@extundo.com>
56795
56796         * lib/crc.h: Include stddef.h, for size_t.
56797
56798 2005-10-22  Simon Josefsson  <jas@extundo.com>
56799
56800         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
56801         arcfour_context struct (simplify test vector testing in GNU
56802         Shishi).
56803
56804 2005-10-21  Simon Josefsson  <jas@extundo.com>
56805
56806         * modules/des, modules/des-tests: New files.
56807
56808         * modules/gc-des, modules/gc-des-tests: New files.
56809
56810         * tests/test-des.c, tests/test-gc-des.c: New file.
56811
56812 2005-10-21  Simon Josefsson  <jas@extundo.com>
56813
56814         * modules/arctwo, modules/arctwo-tests: New files.
56815
56816         * tests/test-arctwo.c: New file.
56817
56818         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56819
56820         * tests/test-gc-arctwo.c: New file.
56821
56822 2005-10-21  Simon Josefsson  <jas@extundo.com>
56823
56824         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56825         Bruno Haible <bruno@clisp.org>.
56826
56827         * m4/gc-des.m4: New file.
56828
56829 2005-10-21  Simon Josefsson  <jas@extundo.com>
56830
56831         * m4/arctwo.m4: New file.
56832
56833         * m4/gc-arctwo.m4: New file.
56834
56835 2005-10-21  Simon Josefsson  <jas@extundo.com>
56836
56837         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56838         block.
56839
56840 2005-10-21  Simon Josefsson  <jas@extundo.com>
56841
56842         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56843         <bruno@clisp.org>.
56844
56845         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56846
56847         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56848         Bruno Haible <bruno@clisp.org>.
56849
56850         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56851         <bruno@clisp.org>.
56852
56853 2005-10-21  Simon Josefsson  <jas@extundo.com>
56854
56855         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56856
56857 2005-10-21  Simon Josefsson  <jas@extundo.com>
56858
56859         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56860
56861 2005-10-21  Simon Josefsson  <jas@extundo.com>
56862
56863         * lib/des.h, lib/des.c: New files.
56864
56865         * lib/gc-gnulib.c: Support DES.c
56866
56867 2005-10-21  Simon Josefsson  <jas@extundo.com>
56868
56869         * lib/arctwo.h, lib/arctwo.c: New files.
56870
56871         * lib/gc-gnulib.c: Support ARCTWO.
56872
56873 2005-10-21  Simon Josefsson  <jas@extundo.com>
56874
56875         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56876         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56877
56878 2005-10-21  Simon Josefsson  <jas@extundo.com>
56879
56880         * gnulib-tool (func_import, func_create_testdir): Define automake
56881         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56882         Makefile.am snippet),
56883         suggested by Bruno Haible <bruno@clisp.org>.
56884
56885         * modules/gc (Makefile.am): Use it.
56886
56887 2005-10-21  Bruno Haible  <bruno@clisp.org>
56888
56889         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56890         patch.
56891
56892 2005-10-19  Simon Josefsson  <jas@extundo.com>
56893
56894         * tests/test-gc-rijndael.c: New file.
56895
56896         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56897
56898 2005-10-19  Simon Josefsson  <jas@extundo.com>
56899
56900         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56901         interface too.
56902
56903 2005-10-19  Simon Josefsson  <jas@extundo.com>
56904
56905         * tests/test-gc-arcfour.c: New file.
56906
56907         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56908
56909 2005-10-19  Simon Josefsson  <jas@extundo.com>
56910
56911         * modules/gc-md4, modules/gc-md4-tests: New file.
56912
56913         * tests/test-gc-md4.c: New file.
56914
56915 2005-10-19  Simon Josefsson  <jas@extundo.com>
56916
56917         * m4/gc-md4.m4: New file.
56918
56919 2005-10-19  Simon Josefsson  <jas@extundo.com>
56920
56921         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56922         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56923         <kasal@ucw.cz>.
56924
56925 2005-10-19  Simon Josefsson  <jas@extundo.com>
56926
56927         * m4/gc-arcfour.m4: New file.
56928
56929         * m4/gc-rijndael.m4: New file.
56930
56931 2005-10-19  Simon Josefsson  <jas@extundo.com>
56932
56933         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56934
56935 2005-10-19  Simon Josefsson  <jas@extundo.com>
56936
56937         * lib/gc-gnulib.c: Support ARCFOUR.
56938
56939 2005-10-19  Simon Josefsson  <jas@extundo.com>
56940
56941         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56942         support.
56943
56944         * lib/gc.h: Add ECB enum type.
56945
56946         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56947
56948 2005-10-18  Simon Josefsson  <jas@extundo.com>
56949
56950         * tests/test-md5.c: New file.
56951
56952         * modules/md5-tests: New file.
56953
56954 2005-10-18  Simon Josefsson  <jas@extundo.com>
56955
56956         * tests/test-md4.c: New file.
56957
56958         * modules/md4, modules/md4-tests: New files.
56959
56960 2005-10-18  Simon Josefsson  <jas@extundo.com>
56961
56962         * m4/md4.m4: New file.
56963
56964 2005-10-18  Simon Josefsson  <jas@extundo.com>
56965
56966         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56967
56968 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56969
56970         * gnulib-tool (func_create_testdir): Omit the second check whether
56971         BUILT_SOURCES in nonempty.
56972
56973 2005-10-17  Simon Josefsson  <jas@extundo.com>
56974
56975         * tests/test-rijndael.c: New file.
56976
56977 2005-10-17  Simon Josefsson  <jas@extundo.com>
56978
56979         * modules/sha1: Depend on stdint instead of md5.
56980
56981         * modules/md5: Depend on stdint, remove uint32_t.
56982
56983 2005-10-17  Simon Josefsson  <jas@extundo.com>
56984
56985         * modules/gc-sha1-tests: New file.
56986
56987         * tests/test-gc-sha1.c: New file.
56988
56989 2005-10-17  Simon Josefsson  <jas@extundo.com>
56990
56991         * m4/md5.m4: Remove call to uint32_t.m4.
56992
56993 2005-10-17  Simon Josefsson  <jas@extundo.com>
56994
56995         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56996
56997         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56998         md5.h.
56999
57000         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
57001
57002         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
57003
57004 2005-10-17  Simon Josefsson  <jas@extundo.com>
57005
57006         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
57007
57008 2005-10-17  Simon Josefsson  <jas@extundo.com>
57009
57010         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
57011
57012 2005-10-17  Simon Josefsson  <jas@extundo.com>
57013
57014         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
57015
57016         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
57017
57018 2005-10-17  Bruno Haible  <bruno@clisp.org>
57019
57020         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
57021         that it can also be used in a test.
57022
57023 2005-10-16  Bruno Haible  <bruno@clisp.org>
57024
57025         * gnulib-tool (func_emit_tests_Makefile_am): Also define
57026         TESTS_ENVIRONMENT, so that individual tests can augment it.
57027
57028         * gnulib-tool (func_create_testdir): Use an intermediate target for
57029         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
57030         macros, like $(ALLOCA_H), which cannot be passed through the command
57031         line.
57032
57033 2005-10-15  Simon Josefsson  <jas@extundo.com>
57034
57035         * modules/rijndael-tests: New file.
57036
57037         * modules/rijndael: New file.
57038
57039 2005-10-15  Simon Josefsson  <jas@extundo.com>
57040
57041         * m4/rijndael.m4: New file.
57042
57043 2005-10-15  Simon Josefsson  <jas@extundo.com>
57044
57045         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
57046
57047         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
57048
57049 2005-10-14  Simon Josefsson  <jas@extundo.com>
57050
57051         * tests/test-arcfour.c: New file.
57052
57053         * modules/arcfour, modules/arcfour-tests: New files.
57054
57055 2005-10-14  Simon Josefsson  <jas@extundo.com>
57056
57057         * m4/arcfour.m4: New file.
57058
57059 2005-10-14  Simon Josefsson  <jas@extundo.com>
57060
57061         * lib/arcfour.h, lib/arcfour.c: New files.
57062
57063 2005-10-14  Roland McGrath  <roland@redhat.com>
57064
57065         Import from libc.  [BZ #1331]
57066         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
57067         macro argument.
57068         Reported by Matej Vela <vela@debian.org>.
57069
57070 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
57073         include <wchar.h>; no longer needed.
57074
57075 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
57078
57079 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
57080         and  Ulrich Drepper  <drepper@redhat.com>
57081
57082         Import from libc.
57083         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
57084         instead of inline stream orientation test and two separate
57085         function calls.  Pay no attention to USE_IN_LIBIO.
57086
57087 2005-10-13  Simon Josefsson  <jas@extundo.com>
57088
57089         * modules/gc-hmac-md5-tests: New file.
57090
57091         * tests/test-gc-hmac-sha1.c: New file.
57092
57093         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
57094
57095         * modules/gc-hmac-md5-tests: New file.
57096
57097         * tests/test-gc-md5.c: New file.
57098
57099         * modules/gc-md5-tests: New file.
57100
57101 2005-10-13  Simon Josefsson  <jas@extundo.com>
57102
57103         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
57104         Move memory allocation outside of loop.
57105
57106 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
57107
57108         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
57109         intermediate directory is in a read-only file system.  Problem
57110         reported by Eric Blake.
57111
57112 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
57113
57114         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
57115
57116 2005-10-12  Simon Josefsson  <jas@extundo.com>
57117
57118         * tests/test-hmac-sha1.c: New file.
57119
57120         * modules/hmac-sha1-tests: New file.
57121
57122         * modules/hmac-sha1: New file.
57123
57124 2005-10-12  Simon Josefsson  <jas@extundo.com>
57125
57126         * modules/gc-sha1: New file.
57127
57128 2005-10-12  Simon Josefsson  <jas@extundo.com>
57129
57130         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
57131
57132         * tests/test-gc-pbkdf2-sha1.c: New file.
57133
57134 2005-10-12  Simon Josefsson  <jas@extundo.com>
57135
57136         * modules/gc-md5, modules/gc-hmac-md5: New files.
57137
57138         * modules/gc (Files): Remove md5, memxor and hmac files.
57139
57140 2005-10-12  Simon Josefsson  <jas@extundo.com>
57141
57142         * m4/gc-pbkdf2-sha1.m4: New file.
57143
57144         * m4/gc-hmac-sha1.m4: New file.
57145
57146         * m4/gc-sha1: New file.
57147
57148         * m4/hmac-sha1.m4: New file.
57149
57150 2005-10-12  Simon Josefsson  <jas@extundo.com>
57151
57152         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
57153
57154         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
57155
57156 2005-10-12  Simon Josefsson  <jas@extundo.com>
57157
57158         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
57159         suggested by Bruno Haible <bruno@clisp.org>.
57160
57161 2005-10-12  Simon Josefsson  <jas@extundo.com>
57162
57163         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
57164
57165 2005-10-12  Simon Josefsson  <jas@extundo.com>
57166
57167         * lib/gc-pbkdf2-sha1.c: New file.
57168
57169         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
57170
57171 2005-10-12  Simon Josefsson  <jas@extundo.com>
57172
57173         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
57174
57175         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
57176
57177 2005-10-12  Simon Josefsson  <jas@extundo.com>
57178
57179         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
57180         GC_USE_HMAC_MD5, respectively.
57181
57182         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
57183         (gc_md5): Fix typo.
57184
57185         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
57186
57187         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
57188
57189         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
57190
57191 2005-10-12  Bruno Haible  <bruno@clisp.org>
57192
57193         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
57194         Reported by Stepan Kasal <kasal@ucw.cz>.
57195
57196 2005-10-11  Simon Josefsson  <jas@extundo.com>
57197
57198         * tests/test-crc.c: New file.
57199
57200         * modules/crc, modules/crc-tests: New files.
57201
57202 2005-10-11  Simon Josefsson  <jas@extundo.com>
57203
57204         * m4/crc.m4: New file.
57205
57206 2005-10-11  Simon Josefsson  <jas@extundo.com>
57207
57208         * lib/gc.h: Add gc_hash and gc_hash_buffer.
57209
57210         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
57211
57212         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
57213
57214 2005-10-11  Simon Josefsson  <jas@extundo.com>
57215
57216         * lib/crc.h, lib/crc.c: New files.
57217
57218         * lib/gc.h (gc_hash_buffer): Add doc.
57219
57220 2005-10-11  Bruno Haible  <bruno@clisp.org>
57221
57222         * modules/c-strcasestr: New file.
57223         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
57224
57225 2005-10-11  Bruno Haible  <bruno@clisp.org>
57226
57227         * modules/c-strcase: New file.
57228         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
57229
57230 2005-10-11  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/strcasecmp.c: Include limits.h.
57233         (strcasecmp): Avoid integer overflow on exotic platforms.
57234         * lib/strncasecmp.c: Include limits.h.
57235         (strncasecmp): Avoid integer overflow on exotic platforms.
57236         Reported by Paul Eggert.
57237
57238 2005-10-11  Bruno Haible  <bruno@clisp.org>
57239
57240         * lib/c-strcasestr.h: New file, from GNU gettext.
57241         * lib/c-strcasestr.c: New file, from GNU gettext.
57242
57243 2005-10-11  Bruno Haible  <bruno@clisp.org>
57244
57245         * lib/c-strcase.h: New file, from GNU gettext.
57246         * lib/c-strcasecmp.c: New file, from GNU gettext.
57247         * lib/c-strncasecmp.c: New file, from GNU gettext.
57248
57249 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57250
57251         * modules/mempcpy (License): GPL -> LGPL.
57252         * modules/strchrnul (License): Likewise.
57253         * modules/sysexits (License): Likewise.
57254
57255 2005-10-08  Simon Josefsson  <jas@extundo.com>
57256
57257         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
57258
57259 2005-10-07  Simon Josefsson  <jas@extundo.com>
57260
57261         * m4/memxor.m4: Remove gl_C_RESTRICT call.
57262
57263 2005-10-06  Simon Josefsson  <jas@extundo.com>
57264
57265         * tests/test-hmac-md5.c: New file.
57266
57267         * modules/hmac-md5-tests: New file.
57268
57269         * modules/hmac-md5: New file.
57270
57271 2005-10-06  Simon Josefsson  <jas@extundo.com>
57272
57273         * m4/hmac-md5.m4: New file.
57274
57275         * m4/memxor.m4: Require gl_C_RESTRICT.
57276
57277 2005-10-06  Simon Josefsson  <jas@extundo.com>
57278
57279         * lib/memxor.c (memxor): Avoid casts and warnings.
57280
57281 2005-10-06  Simon Josefsson  <jas@extundo.com>
57282
57283         * lib/hmac-md5.c: New file.
57284
57285         * lib/hmac.h: New file.
57286
57287 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57288
57289         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
57290         promotes to int, not unsigned int, to catch the AIX 5.3
57291         compiler bug.
57292
57293 2005-10-05  Simon Josefsson  <jas@extundo.com>
57294
57295         * modules/memxor: New file.
57296
57297         * modules/iconv (Files): Move config.rpath to havelib, it is used
57298         there.
57299
57300         * modules/havelib (Files): Add config.rpath.
57301
57302 2005-10-05  Simon Josefsson  <jas@extundo.com>
57303
57304         * m4/memxor.m4: New file.
57305
57306 2005-10-05  Simon Josefsson  <jas@extundo.com>
57307
57308         * lib/memxor.c (memxor): Fix compiler error.
57309
57310         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
57311         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
57312
57313         * lib/memxor.h, lib/memxor.c: New files.
57314
57315         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
57316         we assume all systems have it, suggested by Jim Meyering
57317         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
57318         any systems lack sys/socket.h; mingw32 is known to lack it, but we
57319         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
57320         same reasons.
57321
57322 2005-10-05  Simon Josefsson  <jas@extundo.com>
57323
57324         * config/srclist.txt: Add glibc bug 1423 for md5.h.
57325
57326 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57327
57328         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
57329         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
57330         needed, since the source code now assumes these .h files.
57331
57332 2005-10-05  Derek Price  <derek@ximbiot.com>
57333
57334         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
57335
57336 2005-10-05  Bruno Haible  <bruno@clisp.org>
57337
57338         * modules/stdint (License): Change to LGPL.
57339
57340 2005-10-04  Simon Josefsson  <jas@extundo.com>
57341
57342         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
57343         D. Baushke" <mdb@gnu.org>.
57344
57345 2005-10-04  Bruno Haible  <bruno@clisp.org>
57346
57347         * lib/verify.h (verify_true): Provide alternative definition for C++.
57348
57349 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
57350
57351         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
57352         (SSIZE_MAX): New macro, if not already defined.
57353         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
57354         than 2 GiB.
57355
57356 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57357
57358         Sync from coreutils.
57359         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
57360         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
57361         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
57362         ULLONG_MAX doesn't work with 2.7.2.1.
57363
57364 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57365
57366         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57367         From Ben Pfaff.
57368
57369         * modules/exclude (Depends-on): Depend on verify.
57370         * modules/strtoimax (Depends-on): Likewise.
57371         * modules/utimecmp (Depends-on): Likewise.
57372
57373 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57374
57375         * lib/exclude.c: Include verify.h.
57376         (verify): Remove.  All callers changed to use verify.h's version.
57377         * lib/strtoimax.c: Likewise.
57378         * lib/utimecmp.c: Likewis.e
57379
57380         Sync from coreutils.
57381         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57382         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57383         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57384         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57385         bother returning ENOSYS if settimeofday or stime fails; just let
57386         them return whatever errno they want to return.
57387         * lib/utimens.c: Include unistd.h, for dup2.
57388         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57389         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57390
57391 2005-10-02  Jim Meyering  <jim@meyering.net>
57392
57393         Sync from coreutils.
57394         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57395         from glibc-2.2.5 that fails for read-only files.
57396
57397 2005-10-02  Jim Meyering  <jim@meyering.net>
57398
57399         Sync from coreutils.
57400         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57401         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57402         `#if HAVE_CONFIG_H'.
57403         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57404         Remove AT_FDCWD test.
57405         Do not consume the fd unless successful.
57406         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57407         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57408         block, so that we don't even try to compile it if settimeofday is
57409         available.  This works around a compilation failure on OSF1 V5.1,
57410         due to stime requiring a `long int*' while tv_sec is `int'.
57411
57412 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57413
57414         Sync from coreutils.
57415         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57416         against `yes', rather than just testing for nonempty.
57417
57418 2005-10-01  Simon Josefsson  <jas@extundo.com>
57419
57420         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57421         and Darwin.
57422
57423         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57424         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57425         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57426         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57427         Check if struct addrinfo is declared.
57428
57429 2005-10-01  Simon Josefsson  <jas@extundo.com>
57430
57431         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57432         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57433         AI_* and EAI_* definitions.  Protect function declarations.
57434
57435 2005-10-01  Jim Meyering  <jim@meyering.net>
57436
57437         Sync from coreutils.
57438
57439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57440         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57441         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57442         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57443         in the inet and nsl libraries.  Required on Solaris 5.7.
57444
57445 2005-10-01  Jim Meyering  <jim@meyering.net>
57446
57447         Sync from coreutils.
57448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57449         in the inet and nsl libraries.  Required on Solaris 5.7.
57450
57451 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57452
57453         * lib/getdelim.c (getdelim): Remove unused variables.
57454
57455 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57458         so that the code works even with ancient cpp.  Portability problem
57459         with GCC 2.7.2.1 reported by Thomas M.Ott.
57460
57461 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57462
57463         * modules/regex (Depends-on): Add strcase.
57464
57465         * modules/gethostname (Licence): Change from GPL to LGPL, since
57466         gethostname.c is a trivial implementation of a standard library
57467         function.
57468         * modules/poll (License): Change from GPL to LGPL, since it's
57469         derived from LGPL code.
57470
57471 2005-09-27  Jim Meyering  <jim@meyering.net>
57472
57473         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57474         HAVE_CONFIG_H.
57475
57476         * lib/intprops.h (signed_type_or_expr__): Define.
57477         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57478         for unsigned types.
57479
57480 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57481
57482         * lib/verify.h (verify_expr): Remove, replacing with:
57483         (verify_true): New macro that returns true instead of void.
57484         (verify_type__): Remove.
57485         (verify): Use verify_true rather than verify_type__.
57486
57487 2005-09-26  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57490         is necessary.
57491         (lib_SOURCES): Remove mbchar.c.
57492         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57493         (Files): Add m4/mbrtowc.m4.
57494         * modules/mbiter: Likewise.
57495         * modules/mbuiter: Likewise.
57496
57497 2005-09-26  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57500         compile mbchar.c if they are not both present.
57501         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57502         * m4/mbiter.m4 (gl_MBITER): Likewise.
57503         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57504         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57505         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57506
57507 2005-09-25  Jim Meyering  <jim@meyering.net>
57508
57509         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57510         also uses socklen_t.
57511
57512 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57513
57514         * lib/utimens.c (ENOSYS): Define if not already defined.
57515         (futimens): Support having a null PATH if the file descriptor
57516         is nonnegative.
57517
57518         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57519         Remove.
57520         (__attribute): Define to empty unless GCC 3.1 or later.
57521         This works around a core dump on OpenBSD 3.4, which has GCC
57522         2.95.3, which dumps core when given __attribute__(()).  It also
57523         simplifies other tests, since we really don't want to bother with
57524         worrying about which ancient version of GCC supported what.
57525         Original problem reported by Yoann Vandoorselaere, with part of
57526         the fix suggested by Derek Price.
57527
57528 2005-09-24  Jim Meyering  <jim@meyering.net>
57529
57530         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57531         so we can once again use a positive bitfield width of 1 -- now we
57532         don't have to explain why we were using a bitfield width of 2.
57533
57534 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57535
57536         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57537         and similarly for the other external symbols.  Problem reported
57538         by James Gallager.
57539
57540         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57541         bug reported by Jim Meyering.
57542
57543         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57544         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57545         not needed, since socklen is a prerequisite module.
57546
57547 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57550         Problem reported by Eric Blake.
57551         (getaddrinfo): Initialize se so that it's not garbage.
57552         Redo internal storage allocation so that it doesn't make unportable
57553         assumptions about alignment.
57554         Fix a memory leak.
57555
57556         * lib/utimens.c (futimens): Use futimesat if available.
57557         Prefer it to futimes since it doesn't have the futimes bug.
57558
57559         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57560         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57561         Instead, declare a function that returns a pointer to an array,
57562         and use verify_type__ to declare the size of the array.
57563         Problem and germ of a solution reported by Bruno Haible.
57564         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57565         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57566
57567 2005-09-23  Jim Meyering  <jim@meyering.net>
57568
57569         Sync from coreutils.
57570         Correct build failure (socklen_t not defined) on at least
57571         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57573
57574 2005-09-23  Jim Meyering  <jim@meyering.net>
57575
57576         * modules/getaddrinfo (Depends-on): Add socklen.
57577
57578 2005-09-23  Bruno Haible  <bruno@clisp.org>
57579
57580         * tests/test-verify.c: New file.
57581
57582 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57583
57584         Sync from coreutils.
57585
57586         * modules/argmatch (Depends-on): Add verify.
57587         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57588         unistd-safer.
57589         * modules/save-cwd (Depends-on): Likewise.
57590
57591         * modules/openat (Files): Add lib/openat-die.c.
57592         (Depends-on): Remove error, exitfail.
57593         Add dirname.
57594
57595         * modules/verify: New file.
57596         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57597         with "verify" module.
57598
57599 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57600
57601         Sync from coreutils.
57602
57603         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57604         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57605         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57606         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57607         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57608         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57609         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57610         Don't bother checking for string.h, stdlib.h, unistd.h.
57611         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57612         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57613         module's job.
57614         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57615         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57616
57617         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57618         (gl_GETDATE): Use it.
57619
57620         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57621
57622 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57623
57624         Sync from coreutils.
57625
57626         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57627         stat-time.h.
57628         * lib/argmatch.h: Include verify.h
57629         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57630         (ARGMATCH_ASSERT): Remove; unused.
57631         * lib/canonicalize.c: Assume STDC_HEADERS.
57632         * lib/exclude.c: Include "strcase.h".
57633         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57634         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57635         and stdio-safer.h.
57636         (getusershell): Call fopen, not fopen_safer.
57637         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57638         Do not include unistd-safer.h.
57639         (save_cwd): Don't call fd_safer; no longer needed
57640         now that we include fcntl--.h.
57641
57642         * lib/getdate.y (relative_time): New type.
57643         (RELATIVE_TIME_0): New constant.
57644         (parser_control): Use relative_time instead of doing it ourselves.
57645         (%union): Add new relative_time rel member.
57646         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
57647         Now typeless.
57648         (relunit, relunit_snumber): Now of type rel.
57649         (zone, rel, relunit, get_date): Adjust to above changes.
57650
57651         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
57652         Do not include unistd-safer.h.
57653         (getloadavg): Don't call fd_safer; no longer needed
57654         now that we include fcntl--.h.
57655
57656         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
57657         (make_dir_parents): Treat ENOSYS like EEXIST.
57658
57659         Improve quality of diagnostics on restore_cwd failure.
57660         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
57661         (make_dir_parents): Last arg is now int * (for errno), not bool *.
57662         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
57663         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
57664         each time through the loop.  Do not diagnose restore_cwd failure;
57665         that is the caller's job (and perhaps the caller does not care).
57666
57667         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
57668         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
57669         If the file already exists but is not a directory, don't bother
57670         to try to make its parents.
57671         Close potential file descriptor leak if we can't chdir("/") (!).
57672         Don't always return true if chdir($PWD) fails; return true only
57673         if the requested action was done successfully (except for the
57674         chdir($PWD)).
57675         Don't log final directory unless we actually made it.
57676         Refactor to avoid duplicate code to fix up permissions.
57677         Don't attempt to fix up parent permissions if chdir($PWD) fails.
57678
57679         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
57680         to make it a bit faster and (I hope) clearer.
57681         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
57682         Fix bug in formats like %2N.
57683
57684         * lib/verify.h: New file.
57685
57686 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57687
57688         Sync from coreutils.
57689         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
57690
57691 2005-09-22  Jim Meyering  <jim@meyering.net>
57692
57693         Sync from coreutils.
57694
57695         * m4/lstat.m4 (gl_FUNC_LSTAT):
57696         Use AC_LIBSOURCES to require lstat.c and lstat.h.
57697         Remove obsolete comment.
57698         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
57699         * m4/xstrtod.m4: Likewise.
57700
57701         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
57702
57703 2005-09-22  Jim Meyering  <jim@meyering.net>
57704
57705         Sync from coreutils.
57706
57707         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
57708
57709         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
57710         the .tm_year member, since otherwise gcc-4.0 would now warn about
57711         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
57712
57713         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
57714         order to avoid an unsuppressible warning from gcc on 64-bit systems.
57715
57716         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
57717         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
57718         when run in a time zone for which daylight savings time is in effect
57719         for the starting date.
57720
57721         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
57722         stop us from restricting permissions of just-created absolute-named
57723         directories.
57724         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
57725         to restore initial working directory.
57726         * lib/mkdir-p.c (make_dir_parents): New parameter:
57727         different_working_dir, to tell caller if/when we change the working
57728         directory and are unable to return to the initial one.
57729         * lib/mkdir-p.h (make_dir_parents): Update prototype.
57730         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
57731         `return false'.  This fixes a bug introduced on 2004-07-30.
57732
57733         * lib/openat.c (fdopendir): Be sure to close the supplied
57734         file descriptor before returning.  This makes our replacement
57735         implementation a little closer to Solaris's, where fdopendir
57736         ties the file descriptor to the returned DIR* pointer.
57737         * lib/openat.c (unlinkat): New function.
57738         * lib/openat.h (unlinkat): Add prototype.
57739         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
57740         (openat_restore_fail): Rename from openat_restore_die.
57741         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
57742
57743         Provide an alternative to exiting immediately upon save_cwd or
57744         restore_cwd failure.  Now, an application can arrange e.g.,
57745         to perform a longjump in that case.
57746         * lib/openat.c: Include dirname.h.
57747         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
57748         (rpl_openat, fdopendir, fstatat): Call openat_save_die
57749         and openat_restore_die rather than calling error directly.
57750         Don't include "error.h" or "exitfail.h"; they're no longer needed.
57751
57752         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
57753         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
57754         define.
57755
57756         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
57757         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
57758                             int utc, int nanoseconds);
57759         Background:
57760         date should not have to allocate a megabyte of virtual memory to
57761         handle a format argument like +%1048575T.  When implemented with
57762         strftime, it must allocate such a buffer, use strftime to fill it
57763         in, print it, then free it.
57764         With fprintftime, it simply prints everything and exits.
57765         With no need for memory allocation, that's one fewer way to fail.
57766         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
57767         optional field width, not before, so we accept %9:z, not %:9z.
57768         (my_strftime): Be sure to use L_('x') for literals.
57769
57770         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
57771         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
57772         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
57773         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
57774         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
57775         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
57776         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
57777         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
57778         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
57779         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
57780         * lib/xgethostname.c, lib/xreadlink.c:
57781         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
57782
57783         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
57784         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
57785         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
57786         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57787         and don't include <sys/file.h>).
57788
57789 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
57790
57791         Sync from coreutils.
57792
57793         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
57794         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
57795         [!LDAV_DONE]: Avoid unused variable warning.
57796
57797 2005-09-21  Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/unicodeio.h (unicode_to_mb): New declaration.
57800
57801 2005-09-20  Derek Price  <derek@ximbiot.com>
57802
57803         * lib/getaddrinfo.c: Don't include <netdb.h> included from
57804         getaddrinfo.h.
57805
57806 2005-09-20  Bruno Haible  <bruno@clisp.org>
57807
57808         * gnulib-tool: Remove trailing slashes from the values specified for
57809         --source-base, --m4-base, --tests-base, --aux-dir.
57810         Suggested by Simon Josefsson <jas@extundo.com>.
57811
57812 2005-09-20  Bruno Haible  <bruno@clisp.org>
57813
57814         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57815         func_modules_to_filelist, func_import, func_create_testdir): Make all
57816         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57817         change when gnulib-tool is invoked in a different locale.
57818
57819 2005-09-19  Simon Josefsson  <jas@extundo.com>
57820
57821         * m4/socklen.m4: Fix typo.
57822
57823 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57824
57825         Use a consistent style for including <config.h>.
57826         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57827         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57828         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57829         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57830         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57831         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57832         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57833         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57834         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57835         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57836         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57837         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57838         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57839         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57840         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57841         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57842         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57843         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57844         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57845         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57846         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57847         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57848         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57849         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57850         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57851         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57852         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57853         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57854         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57855         lib/xstrtoumax.c, lib/yesno.c:
57856         Standardize inclusion of config.h.
57857         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57858         lib/inttostr.h:  Removed inclusion of config.h from header files.
57859         * lib/inttostr.c:  Adjusted in-tree users.
57860         * lib/timespec.h: Remove superfluous warning to include config.h.
57861         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57862         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57863         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57864         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57865         config.h with HAVE_CONFIG_H.
57866
57867 2005-09-19  Jim Meyering  <jim@meyering.net>
57868
57869         * modules/pathmax (License): Change to LGPL.
57870
57871 2005-09-19  Derek Price  <derek@ximbiot.com>
57872
57873         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57874
57875 2005-09-19  Bruno Haible  <bruno@clisp.org>
57876
57877         * gnulib-tool (import): Provide default for --tests-base.
57878
57879 2005-09-19  Bruno Haible  <bruno@clisp.org>
57880
57881         * doc/quote.texi: New file, extracted from gnulib.texi.
57882         * doc/ctime.texi: New file, extracted from gnulib.texi.
57883         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57884         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57885         * doc/gnulib.texi: Include them.
57886
57887 2005-09-18  Bruno Haible  <bruno@clisp.org>
57888
57889         Portability fix.
57890         * gnulib-tool (func_readlink): New function.
57891         (func_ln_if_changed): Use it.
57892
57893 2005-09-18  Bruno Haible  <bruno@clisp.org>
57894
57895         * gnulib-tool: Support --with-tests also with --import.
57896         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57897         (func_import): Use variables $testsbase and $inctests. Emit a
57898         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57899         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57900         SUBDIRS += $testsdir.
57901         (func_create_testdir): Update.
57902
57903 2005-09-18  Bruno Haible  <bruno@clisp.org>
57904
57905         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57906         instead of $dry_run.
57907         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57908         (func_ln_if_changed): Don't handle dry-run here.
57909         (func_import): In dry-run mode, detect more precisely which actions
57910         would be performed, and don't use "...ing" verbs.
57911
57912 2005-09-18  Bruno Haible  <bruno@clisp.org>
57913
57914         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57915         (func_import): Use join on two temporary files instead of three nested
57916         loops, in order to determine which files are new or old.
57917
57918 2005-09-18  Bruno Haible  <bruno@clisp.org>
57919
57920         * gnulib-tool (func_import): Comment out code that spits out the
57921         new files with --dry-run.
57922
57923 2005-09-18  Bruno Haible  <bruno@clisp.org>
57924
57925         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57926
57927 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57928
57929         * lib/stat-time.h: New file.
57930         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57931         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57932         in a different way.
57933         (timespec_cmp): New function.
57934         * lib/utimecmp.c: Include stat-time.h.
57935         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57936         members exist, not on the obsolescent ST_MTIM_NSEC.
57937         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57938
57939 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57940
57941         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57942
57943 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57944
57945         * MODULES.html.sh (File system functions): Add stat-time.
57946         * modules/stat-time: New file.
57947         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57948         is now done in a different way, by the stat-time module.
57949         * modules/utimecmp (Depends-on): Add stat-time.
57950
57951 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57952
57953         * m4/st_mtim.m4: Remove.  Superseded by...
57954         * m4/stat-time.m4: New file.
57955         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57956         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57957
57958 2005-09-15  Derek Price  <derek@ximbiot.com>
57959
57960         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57961
57962 2005-09-15  Derek Price  <derek@ximbiot.com>
57963
57964         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57965         * lib/regex_internal.c: Ditto, using this...
57966         (__GNUC_PREREQ): ...new macro.
57967         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57968         using...
57969         (__GNUC_PREREQ): ...this new macro.
57970
57971         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57972
57973 2005-09-15  Derek Price  <derek@ximbiot.com>
57974             Paul Eggert  <eggert@cs.ucla.edu>
57975
57976         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57977         changes, consolidating in...
57978         * lib/regex_internal.h: ...this file.
57979
57980 2005-09-13  Jim Meyering  <jim@meyering.net>
57981
57982         * lib/canon-host.c: Filter through gnu indent and reword comments
57983         slightly.
57984         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57985
57986 2005-09-13  Derek Price  <derek@ximbiot.com>
57987
57988         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57989         failure.
57990         Reported by Jim Meyering  <jim@meyering.net>.
57991
57992 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57993
57994         * lib/base64.c: Typo.
57995         (base64_encode): Put b64str in initialized data section.
57996
57997 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57998
57999         Merge glibc and coreutils changes into gnulib, plus a few
58000         extra fixes.
58001         * lib/md5.c: Use #error rather than a string.
58002         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
58003         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
58004         (__attribute__): Define to empty for non recent-GCC.
58005         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
58006         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
58007         Renamed from their non-__ counterparts, with new macros replacing
58008         them if not _LIBC.  Add __THROW attribute.
58009         (rol): Remove.
58010         (struct md5_ctx): Align buffer if using GCC.
58011         * lib/sha1.h (struct sha1_ctx): Likewise.
58012         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
58013         The old name was backwards.
58014         (NOTSWAP): Remove; not used.
58015         (rol): New macro, moved here from md5.h.
58016         (sha1_process_block): Remove a FIXME that doesn't make sense.
58017
58018 2005-09-12  Derek Price  <derek@ximbiot.com>
58019
58020         Return usable errors from canon-host.
58021         * lib/canon-host.h: New file.
58022         * lib/canon-host.c (canon_host): Wrap...
58023         (canon_host_r): ...this new function, which now relies exclusively on
58024         getaddrinfo.
58025         (ch_strerror): New function.
58026         (last_cherror): New global.
58027         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
58028         interface.
58029         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
58030         void *.
58031         (freeaddrinfo): Free ai->ai_canonname when set.
58032
58033 2005-09-12  Derek Price  <derek@ximbiot.com>
58034
58035         Make canon-host require getaddrinfo.
58036         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
58037         AC_LIBSOURCE canon-host.h.  Call...
58038         (gl_PREREQ_CANON_HOST): ...this new function, which requires
58039         gl_GETADDRINFO.
58040         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
58041
58042 2005-09-12  Derek Price  <derek@ximbiot.com>
58043
58044         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
58045         LGPL.
58046         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
58047
58048 2005-09-12  Derek Price  <derek@ximbiot.com>
58049
58050         * lib/gai_strerror.c: Include config.h when available.  Include
58051         getaddrinfo.h before other headers to test interface.
58052         Reported by Larry Jones <lawrence.jones@ugs.com>.
58053
58054 2005-09-12  Derek Price  <derek@ximbiot.com>
58055             Paul Eggert  <eggert@cs.ucla.edu>
58056
58057         * modules/glob (Files): Add glob-libc.h.
58058
58059 2005-09-12  Derek Price  <derek@ximbiot.com>
58060             Paul Eggert  <eggert@cs.ucla.edu>
58061
58062         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
58063         glob_.h, glob-libc.h.
58064         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
58065
58066 2005-09-12  Derek Price  <derek@ximbiot.com>
58067             Paul Eggert  <eggert@cs.ucla.edu>
58068
58069         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
58070         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
58071         protecting things that should be done only in gnulib contexts.
58072         * lib/glob_.h: New file, containing only the glob things needed for
58073         gnulib.
58074         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
58075         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
58076         (glob, globfree, glob_pattern_p): Now defined simply in terms of
58077         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
58078         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
58079         and to respect the namespace rules better.
58080
58081 2005-09-08  Simon Josefsson  <jas@extundo.com>
58082
58083         * modules/socklen: New file.
58084
58085 2005-09-08  Simon Josefsson  <jas@extundo.com>
58086
58087         * m4/socklen.m4: New file.
58088
58089 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58090
58091         * modules/utimens (Files): Add m4/utimbuf.m4, since
58092         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
58093         Reported by Sergey Poznyakoff.
58094
58095 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58096
58097         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
58098         definitions, since that's the preferred style in glibc.
58099         Fix a minor spacing issue, and update copyright notice to match
58100         glibc's.
58101
58102 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58103
58104         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
58105
58106 2005-09-06  Simon Josefsson  <jas@extundo.com>
58107
58108         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
58109         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
58110
58111 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58112
58113         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
58114         warning.
58115
58116 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         * config/srclist.txt: Add glibc bug 1302.
58119
58120 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
58121
58122         Change bitset word type from unsigned int to unsigned long int,
58123         as this has better performance on typical 64-bit hosts.
58124         Port bitset code to hosts with unusual word sizes.
58125         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
58126         (build_collating_symbol):
58127         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
58128         argument is a bitset.  This is merely a style issue, but it makes
58129         it clearer that an entire array is expected.
58130         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
58131         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
58132         Port to the case where bitset_word is not the same as unsigned int.
58133         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58134         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
58135         Likewise.
58136         * lib/regexec.c (check_dst_limits_calc_pos_1,
58137         check_subexp_matching_top):
58138         (build_trtable, group_nodes_into_DFAstates):
58139         Likewise.
58140         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
58141         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
58142         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
58143         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
58144         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
58145         * lib/regcomp.c (optimize_subexps, lower_subexp):
58146         Work even if bitset_word has holes in its bitwise representation.
58147         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
58148         * lib/regexec.c (check_dst_limits_calc_pos_1,
58149         check_subexp_matching_top):
58150         Likewise.
58151         * lib/regex_internal.c (re_string_reconstruct):
58152         Don't assume UCHAR_MAX == 255.
58153         * lib/regex_internal.h (bitset_set_all): Likewise.
58154         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
58155         All uses changed.
58156         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
58157         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
58158         All uses changed.
58159         (BITSET_WORD_MAX): New macro.
58160         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
58161         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
58162         (bitset_empty, bitset_copy):
58163         Prefer sizeof (bitset) to multiplying it out ourselves.
58164         (bitset_not_merge): Remove; unused.
58165         (bitset_contain): Return bool, not unsigned int with one bit on.
58166         All callers changed.
58167         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
58168         alignment than re_node_set; do this by defining a new internal
58169         type struct dests_alloc and using it to allocate memory.
58170
58171 2005-09-05  Bruno Haible  <bruno@clisp.org>
58172
58173         * gnulib-tool (func_import): Fix comparison in handling of symbolic
58174         links.
58175
58176 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
58177
58178         * modules/size_max (Makefile.am): Add size_max.h
58179
58180 2005-09-04  Derek Price  <derek@ximbiot.com>
58181
58182         * gnulib-tool (func_import): Fix reversed $symbolic logic.
58183
58184 2005-09-03  Simon Josefsson  <jas@extundo.com>
58185
58186         * gnulib-tool: Fix typo.
58187
58188 2005-09-03  Simon Josefsson  <jas@extundo.com>
58189
58190         * config/srclist.txt: Add glibc bug 1293.
58191
58192 2005-09-03  Derek Price  <derek@ximbiot.com>
58193
58194         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
58195         From Larry Jones <lawrence.jones@ugs.com>.
58196
58197 2005-09-02  Simon Josefsson  <jas@extundo.com>
58198
58199         * modules/socklen: New file.
58200
58201 2005-09-02  Simon Josefsson  <jas@extundo.com>
58202
58203         * modules/havelib: New module.
58204
58205         * modules/gettext, modules/iconv, modules/lock, modules/readline:
58206         Use havelib.
58207
58208 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58209
58210         Check for arithmetic overflow when calculating sizes, to prevent
58211         some buffer-overflow issues.  These patches are conservative, in the
58212         sense that when I couldn't determine whether an overflow was possible,
58213         I inserted a run-time check.
58214         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
58215         macros.
58216         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
58217         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
58218         (re_xnrealloc, re_x2nrealloc): New inline functions.
58219         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
58220         parse_bracket_exp):
58221         (build_equiv_class, build_charclass): Check for arithmetic overflow
58222         in size expression calculations.
58223         * lib/regex_internal.c (re_string_realloc_buffers):
58224         (build_wcs_upper_buffer, re_node_set_add_intersect):
58225         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
58226         (re_dfa_add_node, register_state): Likewise.
58227         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
58228         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
58229         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
58230         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
58231
58232 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58233
58234         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58235         m4/ulonglong.m4.  Problem reported by Martin Lambers.
58236
58237 2005-09-02  Bruno Haible  <bruno@clisp.org>
58238
58239         Support for lib vs. lib64 distinction on biarch platforms.
58240         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
58241         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
58242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
58243
58244 2005-09-02  Bruno Haible  <bruno@clisp.org>
58245
58246         * gnulib-tool (import): In the other first-use case, provide defaults
58247         as well.
58248
58249 2005-09-02  Bruno Haible  <bruno@clisp.org>
58250
58251         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
58252         patches not yet found in the latest gettext release.
58253
58254 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58255
58256         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
58257         to avoid a collision with bits/local_lim.h in glibc.
58258         All uses changed.  Problem reported by Dmitry V. Levin in
58259         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
58260
58261         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
58262         bugs in int versus size_t comparisons.
58263         (re_string_context_at): Fix bug where the code assumed that
58264         Idx is signed.
58265
58266         Use bool where appropriate.
58267         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
58268         All callers changed.
58269         (calc_eclosure_iter): Likewise, for ROOT arg.
58270         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
58271         (build_charclass_op): Likewise, for NON_MATCH arg.
58272         * lib/regex_internal.c (re_string_allocate, re_string_construct):
58273         (re_string_construct_common): Likewise, for ICASE arg.
58274         * lib/regexec.c (re_search_2_stub, re_search_stub):
58275         Likewise, for RET_LEN arg.
58276         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
58277         (set_regs): Likewise, for FL_BACKTRACK arg.
58278         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
58279         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
58280         (calc_eclosure_iter, parse_bracket_exp):
58281         Use bool for internal variables that are booleans.
58282         * lib/regexec.c (re_search_internal, check_matching,
58283         proceed_next_node):
58284         (set_regs, build_sifted_states, sift_states_bkref):
58285         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
58286         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58287         (find_collation_sequence_value):
58288         Likewise.
58289         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
58290         (re_node_set_compare):
58291         Return bool, not int. All callers changed.
58292         * lib/regexec.c (check_halt_node_context, check_dst_limits):
58293         (build_trtable, check_node_accept): Likewise.
58294         * lib/regex_internal.h: Include stdbool.h.
58295
58296         Fix bugs uncovered when converting to bool.
58297         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
58298         failure instead of charging ahead blindly.
58299         * lib/regex_internal.c (register_state): Likewise.
58300         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
58301         for freeing internal storage.
58302         (group_nodes_into_DFA_states): Use unsigned int, not int, for
58303         bitset pieces used as boolean, to avoid undefined behavior
58304         on hosts that do int overflow checking.
58305
58306 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58307
58308         * config/srclist.txt: Add glibc bugs 1285-1287.
58309
58310 2005-09-01  Jim Meyering  <jim@meyering.net>
58311
58312         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
58313         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
58314         Require gl_STAT_MACROS, too.
58315
58316 2005-09-01  Bruno Haible  <bruno@clisp.org>
58317
58318         * gnulib-tool (import): In the first-use case, provide defaults.
58319
58320 2005-09-01  Bruno Haible  <bruno@clisp.org>
58321
58322         * gnulib-tool (func_import): Remove the .tmp files.
58323
58324 2005-09-01  Bruno Haible  <bruno@clisp.org>
58325
58326         * gnulib-tool (func_import): Fix handling of symbolic links.
58327
58328 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58329
58330         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
58331         old glibc regex code mishandles strings longer than 2**31 bytes.
58332         This patch fixes this when the regex code is used in gnulib
58333         (i.e., outside glibc).
58334
58335         This patch should not affect the use of the regex code inside
58336         glibc.  No doubt this problem also needs to be handled for glibc
58337         as well, but the result will be an incompatible change to the
58338         glibc ABI, and the old ABI will have to be supported too.  That
58339         can be the the subject for another patch.
58340
58341         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
58342         governing whether the rest of this patch is active.  By default,
58343         the macro is disabled and the patch has no effect.
58344         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
58345         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
58346         (struct re_pattern_buffer, re_search, re_search_2, re_match):
58347         (re_match_2, re_set_registers): Use the new types.
58348         * lib/regex_internal.h (Idx, re_hashval_t): New types.
58349         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
58350         New macros.
58351         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
58352         (re_string_context_at, bin_tree_t, re_dfastate_t):
58353         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
58354         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
58355         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
58356         (re_string_char_size_at, re_string_wchar_at):
58357         (re_string_elem_size_at):
58358         Use the new types and macros to port to 64-bit hosts.
58359         Use unsigned types for internal values, so that the code
58360         mostly works even for arrays larger than SSIZE_MAX.
58361         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
58362         (search_duplicated_node, calc_eclosure_iter, fetch_number):
58363         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
58364         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
58365         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
58366         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58367         (calc_inveclosure, parse_dup_op, build_range_exp):
58368         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58369         (fetch_number, create_token_tree, mark_opt_subexp):
58370         Likewise.
58371         * lib/regex_internal.c (re_string_construct_common,
58372         create_ci_newstate):
58373         (create_cd_newstate, re_string_allocate, re_string_construct):
58374         (re_string_realloc_buffers, build_wcs_upper_buffer):
58375         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58376         (re_string_reconstruct, re_string_peek_byte_case):
58377         (re_string_fetch_byte_case, re_string_context_at):
58378         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58379         (re_node_set_init_copy, re_node_set_add_intersect):
58380         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58381         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58382         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58383         (re_acquire_state, re_acquire_state_context, register_state):
58384         Likewise.
58385         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58386         search_cur_bkref_entry):
58387         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58388         (re_search_internal, re_search_2_stub, re_search_stub)
58389         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58390         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58391         (update_cur_sifted_state, check_dst_limits):
58392         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58393         (check_subexp_limits, sift_states_bkref, merge_state_array):
58394         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58395         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58396         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58397         (expand_bkref_cache, check_node_accept_bytes):
58398         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58399         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58400         (acquire_init_state_context, check_halt_node_context):
58401         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58402         (sift_states_backward, clean_state_log_if_needed):
58403         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58404         (find_recover_state, transit_state_sb, transit_state_mb):
58405         (transit_state_bkref, build_trtable, match_ctx_clean):
58406         Likewise.
58407         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58408         to work around an assumption that REG_MISSING is negative.
58409
58410         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58411         (seek_collating_symbol_entry) [defined _LIBC]:
58412         (lookup_collation_sequence_value) [defined _LIBC]:
58413         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58414         Use prototypes rather than old-style function definitions.
58415         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58416         (transit_state_sb) [0]:
58417         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58418
58419         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58420         rm_eo.
58421
58422         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58423         (optimize_subexps, lower_subexp):
58424         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58425         since the signed shift might overflow.  Use 1u<<31 instead.
58426         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58427         Likewise.
58428         * lib/regexec.c (check_dst_limits_calc_pos_1,
58429         check_subexp_matching_top): Likewise.
58430
58431         * lib/regcomp.c (optimize_subexps, lower_subexp):
58432         Use CHAR_BIT rather than 8, for clarity.
58433         * lib/regexec.c (check_dst_limits_calc_pos_1):
58434         (check_subexp_matching_top): Likewise.
58435         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58436         have to worry about portability issues when shifting it left.
58437         Remove no-longer-needed test for table_size > 0.
58438         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58439         in a word, as the resulting behavior is undefined.
58440         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58441         in one case, a <= should have been an <, and in another case the
58442         whole test was missing.
58443         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58444         the standard name CHAR_BIT.
58445         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58446         this is not true on one's complement and signed-magnitude hosts.
58447
58448         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58449         next_last_offset.
58450         (struct re_dfa_t): Remove unused member states_alloc.
58451         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58452
58453 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58454
58455         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58456         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58457         and large-file glibc and in 32-bit large-file Solaris.
58458
58459 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58460
58461         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58462         lengths fit in regoff_t; this isn't true if regoff_t is the same
58463         width as size_t.
58464         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58465         (= START + RANGE) instead of RANGE.  This avoids overflow
58466         problems when regoff_t is the same width as size_t.
58467         All callers changed.
58468         (re_search_2_stub): Check for overflow when adding the
58469         sizes of the two strings.
58470         (re_search_stub): Check for overflow when adding START
58471         to RANGE; if it occurs, substitute the extreme value.
58472
58473 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58474
58475         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58476
58477 2005-08-31  Jim Meyering  <jim@meyering.net>
58478
58479         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58480         a pointer-to-const.
58481         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58482         (register_state): Likewise.
58483         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58484         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58485         (group_nodes_into_DFAstates): Likewise.
58486
58487 2005-08-31  Jim Meyering  <jim@meyering.net>
58488
58489         * check-module: Add a FIXME comment.
58490
58491 2005-08-31  Eric Blake  <ebb9@byu.net>
58492
58493         * modules/unistd-safer (Files): Add unistd--.h.
58494         * modules/stdio-safer (Files): Add stdio--.h.
58495
58496 2005-08-31  Derek Price  <derek@ximbiot.com>
58497
58498         * lib/getdelim.c (getdelim): Return EOF on EOF.
58499         Reported by Larry Jones <lawrence.jones@ugs.com>.
58500
58501 2005-08-31  Bruno Haible  <bruno@clisp.org>
58502
58503         Avoid unnecessary diffs in the generated lib/Makefile.am.
58504         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58505         the generated files.
58506         (func_import): Don't set cmd.
58507
58508 2005-08-31  Bruno Haible  <bruno@clisp.org>
58509
58510         * lib/strstr.c: Include <stddef.h>, for NULL.
58511         * lib/strcasestr.c: Likewise.
58512         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58513
58514 2005-08-31  Bruno Haible  <bruno@clisp.org>
58515
58516         * gnulib-tool: New option --macro-prefix.
58517         (func_import): Use macro_prefix.
58518         (import): Handle option --macro-prefix.
58519
58520 2005-08-31  Bruno Haible  <bruno@clisp.org>
58521
58522         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58523         Also use new variables cached_lgpl, cached_libtool.
58524
58525 2005-08-31  Bruno Haible  <bruno@clisp.org>
58526
58527         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58528         always instantiating them.
58529
58530 2005-08-31  Bruno Haible  <bruno@clisp.org>
58531
58532         * gnulib-tool (func_import): Read the previous cached settings
58533         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58534         earlier added by gnulib but are now dropped. Warn when a gnulib file
58535         overwrites a non-gnulib file.
58536
58537 2005-08-31  Bruno Haible  <bruno@clisp.org>
58538
58539         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58540         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58541         projects that don't keep autogenerated files in CVS. Put into
58542         actioncmd only the specified modules, not the transitive closure.
58543
58544 2005-08-31  Bruno Haible  <bruno@clisp.org>
58545
58546         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58547         Create directories that shall be filled.
58548         (import): Don't look for gl_* macros in configure.ac. Recurse across
58549         all directories containing a gnulib-cache.m4 files, if meaningful.
58550
58551 2005-08-31  Bruno Haible  <bruno@clisp.org>
58552
58553         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58554         (import): Set seen_libtool when we see gl_LIBTOOL.
58555
58556 2005-08-31  Bruno Haible  <bruno@clisp.org>
58557
58558         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58559         declaration macro definitions from generated gnulib.m4.
58560
58561 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58562
58563         * lib/iconvme.h: Add prototype for iconv_alloc.
58564
58565 2005-08-29  Simon Josefsson  <jas@extundo.com>
58566
58567         * lib/iconvme.c: Fix errno.
58568
58569 2005-08-29  Bruno Haible  <bruno@clisp.org>
58570
58571         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58572         that it works when the directory contains spaces.
58573
58574 2005-08-29  Bruno Haible  <bruno@clisp.org>
58575
58576         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58577
58578 2005-08-29  Bruno Haible  <bruno@clisp.org>
58579
58580         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58581         Emit more advice.
58582
58583 2005-08-29  Bruno Haible  <bruno@clisp.org>
58584         and Stepan Kasal  <kasal@ucw.cz>
58585
58586         * check-module: If more parameters are given, check each of them
58587         separately; add more exceptions, as noted by Jim Meyering.
58588         (check_module): New procedure.
58589         (%exempt_header): Now contains all exceptions.
58590
58591 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58592
58593         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58594
58595 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58596
58597         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58598
58599 2005-08-28  Bruno Haible  <bruno@clisp.org>
58600
58601         * m4/gnulib-tool.m4: New file.
58602
58603 2005-08-27  Jim Meyering  <jim@meyering.net>
58604
58605         * modules/unistd-safer (Files): Add pipe-safer.c.
58606         * modules/fcntl-safer (Files): Add creat-safer.c.
58607
58608 2005-08-27  Jim Meyering  <jim@meyering.net>
58609
58610         * m4/stdlib-safer.m4: New file.  From coreutils.
58611         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58612         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58613         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58614         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58615         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58616
58617 2005-08-27  Jim Meyering  <jim@meyering.net>
58618
58619         * lib/fopen-safer.c: Merge minor changes from coreutils.
58620         * lib/dup-safer.c: Likewise.
58621         * lib/fd-safer.c: Likewise.
58622
58623         Merge from coreutils.
58624         * lib/stdio--.h: New file.
58625         * lib/stdlib--.h: New file.
58626         * lib/mkstemp-safer.c: New file.
58627
58628         GNU tar needs these.
58629         * lib/pipe-safer.c: New file.
58630         * lib/creat-safer.c: New file.
58631         * lib/fcntl--.h (creat): Define to creat_safer.
58632         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58633         * lib/unistd--.h (pipe): Define to pipe_safer.
58634         * lib/unistd-safer.h: Declare pipe_safer.
58635
58636 2005-08-26  Simon Josefsson  <jas@extundo.com>
58637
58638         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58639         Haible <bruno@clisp.org>.
58640
58641 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58642
58643         * lib/regex_internal.h: Remove all references to
58644         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58645         or better.
58646         (bitset_not, bitset_merge, bitset_not_merge):
58647         (bitset_mask, re_string_allocate, re_string_construct):
58648         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
58649         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
58650         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
58651         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
58652         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58653         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58654         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
58655         (re_acquire_state_context):
58656         Remove unnecessary forward decls.
58657         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
58658         Put __attribute at function definition,
58659         now that the function decl has been removed.
58660         * lib/regex_internal.c (re_string_peek_byte_case):
58661         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
58662         Likewise.
58663
58664 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
58665
58666         * m4/regex.m4: Add AC_PREREQ(2.50).
58667         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
58668
58669 2005-08-25  Simon Josefsson  <jas@extundo.com>
58670
58671         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
58672         __fsetlocking.
58673
58674 2005-08-25  Simon Josefsson  <jas@extundo.com>
58675
58676         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
58677         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
58678         GLIBC specific code.
58679
58680 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58681
58682         Make regex safe for g++.  This fixes one real bug (an "err"
58683         that should have been "*err").  g++ problem reported by
58684         Sam Steingold.
58685         * lib/regex_internal.h (re_calloc): New macro, consistent with
58686         re_malloc etc.  All callers of calloc changed to use re_calloc.
58687         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
58688         not int.  All callers changed.
58689         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
58690         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
58691         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
58692         (find_recover_state): Change "err" to "*err"; this fixes what
58693         appears to be a real bug.
58694         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
58695         versus int.
58696
58697 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58698
58699         * modules/regex (Depends-on): Add malloc, since the code
58700         assumes that !malloc(0) means failure.
58701
58702 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
58705
58706         alloca modernization/simplification for regex.
58707         * lib/regex.c: Remove portability cruft for alloca.  This no longer
58708         needs to be at the start of the file, and can be moved into
58709         regex_internal.h and simplified.
58710         * lib/regex_internal.h: Include <alloca.h>.
58711         (__libc_use_alloca) [!defined _LIBC]: New macro.
58712         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
58713         now works outside glibc.
58714
58715 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         * config/srclist.txt: Add glibc bugs 1241, 1245.
58718
58719 2005-08-25  Jim Meyering  <jim@meyering.net>
58720
58721         * lib/open-safer.c: Include <config.h>.
58722         Otherwise, we'd lose LARGEFILE support in any file using
58723         e.g. "fcntl--.h"
58724
58725 2005-08-25  Bruno Haible  <bruno@clisp.org>
58726
58727         * m4/minmax.m4: Require autoconf 2.52.
58728         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
58729         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
58730         alternatives of translit over the alphabet.
58731         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
58732
58733 2005-08-24  Simon Josefsson  <jas@extundo.com>
58734
58735         * tests/test-getpass.c: New file.
58736
58737 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58738
58739         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
58740         for GNU regex features.
58741
58742 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58743
58744         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
58745         * lib/regex.h (regerror): Likewise.
58746
58747         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
58748         requires this.  (The code never needed it.)
58749
58750         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
58751         All uses of recently-renamed identifiers changed to use the new,
58752         POSIX-compliant names.  The code will build and run just fine
58753         without these changes, but it's better to eat our own dog food
58754         and use the standard-conforming names.
58755
58756         * lib/regex.h: Fix a multitude of POSIX name space violations.
58757         These changes have an effect only for programs that define
58758         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
58759         do not change anything for programs compiled in the normal way.
58760         Also, there is no effect on the ABI.
58761
58762         (_REGEX_SOURCE): New macro.
58763         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
58764         defined and _GNU_SOURCE is not; this fixes a name space violation.
58765
58766         Rename the following macros to obey POSIX requirements.
58767         The old names are still visible as macros if _REGEX_SOURCE is defined.
58768         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
58769         RE_BACKSLASH_ESCAPE_IN_LISTS.
58770         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
58771         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
58772         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
58773         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
58774         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
58775         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
58776         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
58777         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
58778         (REG_INTERVALS): renamed from RE_INTERVALS.
58779         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
58780         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
58781         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
58782         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
58783         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
58784         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
58785         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
58786         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
58787         RE_UNMATCHED_RIGHT_PAREN_ORD.
58788         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
58789         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
58790         (REG_DEBUG): renamed from RE_DEBUG.
58791         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
58792         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
58793         unusual, since we can't clash with the POSIX REG_ICASE.
58794         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
58795         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
58796         (REG_NO_SUB): renamed from RE_NO_SUB.
58797         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
58798         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
58799         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
58800         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
58801         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
58802         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
58803         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
58804         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
58805         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
58806         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
58807         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
58808         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
58809         RE_SYNTAX_POSIX_MINIMAL_BASIC.
58810         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58811         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58812         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58813         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58814         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58815         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58816         (REG_FIXED): Renamed from REGS_FIXED.
58817         (REG_NREGS): Renamed from RE_NREGS.
58818
58819         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58820         of other REG_* macros, since POSIX says the user is allowed to
58821         #undef these macros selectively.
58822
58823         (reg_errcode_t): Update comment stating what other tables need
58824         to be consistent.
58825
58826         Rename the following enum values to obey POSIX requirements.
58827         The old names are still visible as macros.
58828         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58829         is not defined, since GNU is supposed to be a superset of POSIX as
58830         much as possible, and since we want reg_errcode_t to be a signed
58831         type for implementation consistency.
58832         (_REG_NOERROR): Renamed from REG_NOERROR.
58833         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58834         (_REG_BADPAT): Renamed from REG_BADPAT.
58835         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58836         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58837         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58838         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58839         (_REG_EBRACK): Renamed from REG_EBRACK.
58840         (_REG_EPAREN): Renamed from REG_EPAREN.
58841         (_REG_EBRACE): Renamed from REG_EBRACE.
58842         (_REG_BADBR): Renamed from REG_BADBR.
58843         (_REG_ERANGE): Renamed from REG_ERANGE.
58844         (_REG_ESPACE): Renamed from REG_ESPACE.
58845         (_REG_BADRPT): Renamed from REG_BADRPT.
58846         (_REG_EEND): Renamed from REG_EEND.
58847         (_REG_ESIZE): Renamed from REG_ESIZE.
58848         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58849         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58850         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58851         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58852         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58853
58854         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58855         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58856         changed.  But support the old name if the new one is not defined
58857         and if _REGEX_SOURCE.
58858
58859         Change the following member names in struct re_pattern_buffer.
58860         The old names are still supported if !_REGEX_SOURCE.
58861         The new names are always supported, regardless of _REGEX_SOURCE.
58862         (re_buffer): Renamed from buffer.
58863         (re_allocated): Renamed from allocated.
58864         (re_used): Renamed from used.
58865         (re_syntax): Renamed from syntax.
58866         (re_fastmap): Renamed from fastmap.
58867         (re_translate): Renamed from translate.
58868         (re_can_be_null): Renamed from can_be_null.
58869         (re_regs_allocated): Renamed from regs_allocated.
58870         (re_fastmap_accurate): Renamed from fastmap_accurate.
58871         (re_no_sub): Renamed from no_sub.
58872         (re_not_bol): Renamed from not_bol.
58873         (re_not_eol): Renamed from not_eol.
58874         (re_newline_anchor): Renamed from newline_anchor.
58875
58876         Change the following member names in struct re_registers.
58877         The old names are still supported if !_REGEX_SOURCE.
58878         The new names are always supported, regardless of _REGEX_SOURCE.
58879         (rm_num_regs): Renamed from num_regs.
58880         (rm_start): Renamed from start.
58881         (rm_end): Renamed from end.
58882
58883         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58884         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58885         Prepend __ to parameter names.
58886
58887         Undo yesterday's changes.
58888
58889 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58890
58891         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58892         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58893         lib/regex.c.
58894
58895 2005-08-24  Jim Meyering  <jim@meyering.net>
58896
58897         Sync from coreutils.
58898         * m4/fcntl-safer.m4: New file.
58899
58900         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58901         and object files for this module.
58902
58903 2005-08-24  Jim Meyering  <jim@meyering.net>
58904
58905         Sync from coreutils.
58906         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58907
58908 2005-08-24  Jim Meyering  <jim@meyering.net>
58909
58910         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58911         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58912
58913 2005-08-24  Jim Meyering  <jim@meyering.net>
58914
58915         * modules/fcntl-safer: New module.
58916         * modules/fts (Depends-on): Add fcntl-safer.
58917         * MODULES.html.sh (File descriptor based Input/Output):
58918         Add fcntl-safer.
58919
58920 2005-08-24  Bruno Haible  <bruno@clisp.org>
58921
58922         Support for unit test modules.
58923         * modules/README: Mention tests modules.
58924         * modules/TEMPLATE-TESTS: New file.
58925         * gnulib-tool: New options --extract-tests-module, --with-tests and
58926         --tests-base (unused for the moment).
58927         (testsbase, inctests): New variables.
58928         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58929         (func_verify_module): Exclude TEMPLATE-TESTS.
58930         (func_verify_nontests_module, func_verify_tests_module): New functions.
58931         (func_get_dependencies): Add implicit dependency for tests modules.
58932         (func_get_tests_module): New function.
58933         (func_modules_transitive_closure): When --with-tests was specified,
58934         include the unit tests as well, unless explicitly avoided.
58935         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58936         (func_emit_tests_Makefile_am): New function.
58937         (func_create_testdir): When --with-tests was specified, emit a
58938         tests/ directory.
58939         * MODULES.html.sh (Future developments): Update.
58940
58941 2005-08-24  Bruno Haible  <bruno@clisp.org>
58942
58943         * modules/tls-tests: New file.
58944         * tests/test-tls.c: New file, from GNU gettext.
58945
58946 2005-08-24  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/lock-tests: New file.
58949         * tests/test-lock.c: New file, from GNU gettext.
58950
58951 2005-08-24  Bruno Haible  <bruno@clisp.org>
58952
58953         * lib/lock.h: Add multiple inclusion guard.
58954         * lib/tls.h: Add multiple inclusion guard.
58955
58956 2005-08-24  Bruno Haible  <bruno@clisp.org>
58957
58958         * gnulib-tool: Add support for the --aux-dir option to
58959         --create-testdir, --create-megatestdir, --test, --megatest.
58960         (func_create_testdir, func_create_megatestdir): Optionally emit a
58961         AC_CONFIG_AUX_DIR directive.
58962         (create-testdir, create-megatestdir, test, megatest): Provide a
58963         default value for $auxdir.
58964
58965 2005-08-24  Bruno Haible  <bruno@clisp.org>
58966
58967         * gnulib-tool (import): Use compound statement instead of subshell
58968         where possible.
58969
58970 2005-08-24  Bruno Haible  <bruno@clisp.org>
58971
58972         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58973
58974 2005-08-24  Bruno Haible  <bruno@clisp.org>
58975
58976         * gnulib-tool (func_version): Update.
58977
58978 2005-08-24  Bruno Haible  <bruno@clisp.org>
58979
58980         * gnulib-tool (func_import, func_create_testdir,
58981         func_create_megatestdir): Quote all autoconf macro arguments.
58982
58983 2005-08-24  Bruno Haible  <bruno@clisp.org>
58984
58985         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58986         option --force, because --force causes the aclocal.m4 of each
58987         subdirectory to be newer than the corresponding config.h.in.
58988
58989 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58992         All contents moved to gl_REGEX.
58993         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58994         assume that it does.
58995
58996 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * lib/regex.h (REG_NOSYS)
58999         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
59000         Define, since POSIX requires it as of 2001.
59001         (_REG_ENOSYS)
59002         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
59003         New private symbol, used to keep the enum signed in all cases.
59004         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
59005         Youngman in
59006         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
59007
59008         * lib/regex_internal.c (re_string_skip_chars, register_state):
59009         (calc_state_hash):
59010         Remove forward decls; no longer needed now that we use prototypes.
59011         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
59012         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
59013         (clean_state_log_if_needed): Likewise.
59014
59015 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59016
59017         * config/srclist.txt: Add glibc bugs 1231-1233.
59018
59019 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59020
59021         Fix problems reported by Sam Steingold in
59022         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
59023         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
59024         assumed that reg_errcode_t is a signed type, which is not
59025         necessarily true if _XOPEN_SOURCE is not defined.
59026         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
59027         since some compilers warn about it otherwise.
59028
59029 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59030
59031         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
59032         (init_word_char, create_initial_state, duplicate_node_closure):
59033         (fetch_token, peek_token_bracket, build_range_exp):
59034         (build_collating_symbol): Remove forward decls; no longer needed
59035         now that we use prototypes.
59036
59037         * lib/regcomp.c:
59038         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
59039         (re_compile_fastmap_iter, regcomp, regerror, regfree):
59040         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
59041         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
59042         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
59043         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
59044         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
59045         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
59046         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
59047         (build_range_exp, build_collating_symbol, parse_bracket_exp):
59048         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
59049         (build_charclass, build_charclass_op, fetch_number, create_tree):
59050         (create_token_tree, mark_opt_subexp, duplicate_tree):
59051         Use prototypes rather than old-style definitions.
59052
59053         * lib/regex_internal.c:
59054         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
59055         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
59056         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59057         (re_string_reconstruct, re_string_peek_byte_case):
59058         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
59059         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59060         (re_node_set_init_copy, re_node_set_add_intersect):
59061         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59062         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59063         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59064         (re_acquire_state, re_acquire_state_context, register_state):
59065         (create_ci_newstate, create_cd_newstate, free_state):
59066         Likewise.
59067         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
59068         re_search_2):
59069         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
59070         (re_search_internal, prune_impossible_nodes):
59071         (acquire_init_state_context, check_matching, static):
59072         (check_halt_node_context, check_halt_state_context, proceed_next_node):
59073         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
59074         (update_regs, sift_states_backward, build_sifted_states):
59075         (clean_state_log_if_needed, merge_state_array):
59076         (update_cur_sifted_state, add_epsilon_src_nodes):
59077         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
59078         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
59079         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
59080         (find_recover_state, check_subexp_matching_top, transit_state_mb):
59081         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
59082         (check_arrival, check_arrival_add_next_nodes):
59083         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59084         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59085         (check_node_accept_bytes, check_node_accept, extend_buffers):
59086         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
59087         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
59088         (sift_ctx_init):
59089         Likewise.
59090
59091         * lib/regex_internal.h:
59092         (re_string_allocate, re_string_construct, re_string_reconstruct):
59093         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
59094         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
59095         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
59096         (re_string_context_at, re_string_peek_byte_case):
59097         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
59098         is defined, since we now use prototypes always.
59099
59100         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
59101         C89 or better.  All uses removed.
59102
59103 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59104
59105         * config/srclist.txt: Add glibc bugs 1220-1227.
59106
59107 2005-08-20  Jim Meyering  <jim@meyering.net>
59108
59109         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
59110         of unused local, dfa.
59111
59112 2005-08-20  Bruno Haible  <bruno@clisp.org>
59113
59114         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
59115
59116 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59117
59118         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
59119         (re_node_set_insert_last, re_dfa_add_node):
59120         Rename local variables to avoid GCC shadowing warnings.
59121
59122 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59123
59124         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
59125         [defined lint]: Suppress bogus uninitialized-variable warnings.
59126
59127         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
59128         and let the caller return REG_ESPACE if out of space.  This
59129         removes an uninitialied-variable warning with GCC 4.0.1, and also
59130         avoids taking the address of a local variable.  All callers
59131         changed.
59132
59133 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59134
59135         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
59136         $LIBCSRC/posix/regexec.c.
59137         Add glibc bug 1217 for regcomp.c.
59138
59139 2005-08-19  Jim Meyering  <jim@meyering.net>
59140
59141         * lib/regexec.c (proceed_next_node): Redo local variables to
59142         avoid GCC shadowing warnings.
59143
59144 2005-08-18  Bruno Haible  <bruno@clisp.org>
59145
59146         * lib/strstr.c (strstr): Fix return value in multibyte case.
59147         * lib/strcasestr.c (strcasestr): Likewise.
59148
59149 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59150
59151         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
59152
59153 2005-08-17  Jim Meyering  <jim@meyering.net>
59154
59155         Make the %s format (seconds since the epoch) work for a negative
59156         number and when used with a zero-padded field width, e.g. %015s.
59157
59158         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
59159         label so that it precedes the code to set `digits'.  Otherwise,
59160         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
59161         print `00-22'.  Now, it prints `-0022', as it should.
59162
59163 2005-08-17  Bruno Haible  <bruno@clisp.org>
59164
59165         * modules/strstr (Files): Add m4/mbrtowc.m4.
59166         (Depends-on): Add mbuiter.
59167
59168 2005-08-17  Bruno Haible  <bruno@clisp.org>
59169
59170         * modules/strcasestr: New file.
59171         * MODULES.html.sh (String handling, based on ANSI C 89): Add
59172         strcasestr.
59173
59174 2005-08-17  Bruno Haible  <bruno@clisp.org>
59175
59176         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
59177
59178 2005-08-17  Bruno Haible  <bruno@clisp.org>
59179
59180         * modules/mbuiter: New file.
59181         * MODULES.html.sh (Extended multibyte and wide character utilities):
59182         Add mbuiter.
59183
59184 2005-08-17  Bruno Haible  <bruno@clisp.org>
59185
59186         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
59187         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
59188
59189 2005-08-17  Bruno Haible  <bruno@clisp.org>
59190
59191         * m4/strcasestr.m4: New file.
59192
59193 2005-08-17  Bruno Haible  <bruno@clisp.org>
59194
59195         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
59196         * lib/strstr.c: Completely rewritten, with multibyte locale support.
59197
59198 2005-08-17  Bruno Haible  <bruno@clisp.org>
59199
59200         * lib/strcasestr.h: New file.
59201         * lib/strcasestr.c: New file.
59202
59203 2005-08-17  Bruno Haible  <bruno@clisp.org>
59204
59205         * lib/strcasecmp.c: Use mbuiter.h.
59206
59207 2005-08-17  Bruno Haible  <bruno@clisp.org>
59208
59209         * lib/mbuiter.h: New file.
59210
59211 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59212
59213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
59214         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
59215         and gl_GETOPT are both invoked via different paths (as happens
59216         with GNU tar CVS because it uses both argp and getopt), the former
59217         wins.
59218
59219 2005-08-16  Bruno Haible  <bruno@clisp.org>
59220
59221         * modules/tls: New file.
59222         * MODULES.html.sh (Multithreading): Add tls.
59223
59224 2005-08-16  Bruno Haible  <bruno@clisp.org>
59225
59226         * modules/strnlen1: New file.
59227         * MODULES.html.sh (String handling): Add strnlen1.
59228
59229 2005-08-16  Bruno Haible  <bruno@clisp.org>
59230
59231         * modules/strcase (Files): Add m4/mbrtowc.m4.
59232         (Depends-on): Add strnlen1, mbchar.
59233
59234 2005-08-16  Bruno Haible  <bruno@clisp.org>
59235
59236         * modules/mbiter: New file.
59237         * MODULES.html.sh (Extended multibyte and wide character utilities):
59238         Add mbiter.
59239
59240 2005-08-16  Bruno Haible  <bruno@clisp.org>
59241
59242         * modules/mbfile: New file.
59243         * MODULES.html.sh (Extended multibyte and wide character utilities):
59244         Add mbfile.
59245
59246 2005-08-16  Bruno Haible  <bruno@clisp.org>
59247
59248         * modules/mbchar: New file.
59249         * MODULES.html.sh (Extended multibyte and wide character utilities):
59250         New section.
59251
59252 2005-08-16  Bruno Haible  <bruno@clisp.org>
59253
59254         * m4/tls.m4: New file, from GNU gettext.
59255
59256 2005-08-16  Bruno Haible  <bruno@clisp.org>
59257
59258         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
59259         always.
59260         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
59261
59262 2005-08-16  Bruno Haible  <bruno@clisp.org>
59263
59264         * m4/mbiter.m4: New file.
59265
59266 2005-08-16  Bruno Haible  <bruno@clisp.org>
59267
59268         * m4/mbfile.m4: New file.
59269
59270 2005-08-16  Bruno Haible  <bruno@clisp.org>
59271
59272         * m4/mbchar.m4: New file.
59273
59274 2005-08-16  Bruno Haible  <bruno@clisp.org>
59275
59276         * lib/tls.h: New file, from GNU gettext.
59277         * lib/tls.c: New file, from GNU gettext.
59278
59279 2005-08-16  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/strnlen1.h: New file.
59282         * lib/strnlen1.c: New file.
59283
59284 2005-08-16  Bruno Haible  <bruno@clisp.org>
59285
59286         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
59287         (mbi_init): Update.
59288         (mbi_avail, mbi_advance): Let the iteration end before the terminating
59289         NUL byte, not after it.
59290
59291 2005-08-16  Bruno Haible  <bruno@clisp.org>
59292
59293         * lib/strcase.h (strcasecmp): Add note in comments.
59294         * lib/strncasecmp.c: Use code from strcasecmp.c.
59295         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
59296         (strcasecmp): Work correctly in multibyte locales.
59297
59298 2005-08-16  Bruno Haible  <bruno@clisp.org>
59299
59300         * lib/mbiter.h: New file.
59301
59302 2005-08-16  Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/mbfile.h: New file.
59305
59306 2005-08-16  Bruno Haible  <bruno@clisp.org>
59307
59308         * lib/mbchar.h: New file.
59309         * lib/mbchar.c: New file.
59310
59311 2005-08-16  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
59314         the valid ones. Makes the comparison operations transitive:
59315         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
59316         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
59317
59318 2005-08-15  Simon Josefsson  <jas@extundo.com>
59319
59320         * modules/ssize_t (License): Change to 'unlimited'.
59321
59322         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
59323
59324 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59325
59326         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
59327         Add comments for each pending glibc patch.
59328
59329 2005-08-15  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/regex.h (__restrict_arr): Don't define to __restrict if
59332         __cplusplus is defined.
59333
59334 2005-08-14  Jim Meyering  <jim@meyering.net>
59335
59336         Sync from coreutils.
59337
59338         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
59339         Use the hash-table-based cycle-detection code not just when
59340         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
59341         Reported by James Youngman in
59342         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
59343         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
59344         FTS_TIGHT_CYCLE_CHECK.
59345         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
59346         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
59347         once again.
59348         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
59349         * lib/fts.c (fd_safer): Remove decl.
59350         Include fcntl--.h rather than unistd-safer.h
59351         (fts_safe_changedir): Don't call fd_safer; no longer needed
59352         now that we include fcntl--.h.
59353
59354 2005-08-12  Simon Josefsson  <jas@extundo.com>
59355
59356         * modules/getndelim2: Use ssize_t module.
59357         * modules/getnline: Likewise.
59358         * modules/safe-read: Likewise.
59359         * modules/xreadlink: Likewise.
59360
59361         * modules/ssize_t: New file.
59362
59363 2005-08-12  Simon Josefsson  <jas@extundo.com>
59364
59365         * m4/readline.m4: Look for termcap, curses or ncurses if required.
59366
59367 2005-08-12  Simon Josefsson  <jas@extundo.com>
59368
59369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59370         ssize_t.
59371
59372 2005-08-12  Simon Josefsson  <jas@extundo.com>
59373
59374         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59375         readline, getdelim and check_version.
59376         (Support for systems lacking ISO C 99: Sizes of integer types):
59377         Add size_max.
59378
59379 2005-08-12  Bruno Haible  <bruno@clisp.org>
59380
59381         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59382
59383 2005-08-11  Simon Josefsson  <jas@extundo.com>
59384
59385         * modules/readline: New file.
59386
59387         * modules/strnlen (Files): Add strnlen.h.
59388
59389 2005-08-11  Simon Josefsson  <jas@extundo.com>
59390
59391         * m4/readline.m4: New file.
59392
59393 2005-08-11  Simon Josefsson  <jas@extundo.com>
59394
59395         * lib/readline.h, readline.c: New file.
59396
59397 2005-08-11  Simon Josefsson  <jas@extundo.com>
59398
59399         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59400         gl_AVOID.
59401
59402 2005-08-11  Bruno Haible  <bruno@clisp.org>
59403
59404         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59405
59406 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59407
59408         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59409
59410 2005-08-10  Simon Josefsson  <jas@extundo.com>
59411
59412         * tests/test-iconvme.c: New file.
59413
59414 2005-08-10  Simon Josefsson  <jas@extundo.com>
59415
59416         * m4/strnlen.m4: New file.
59417
59418         * m4/strndup.m4: Don't check for strnlen declaration, done in
59419         strnlen.m4.
59420
59421 2005-08-10  Simon Josefsson  <jas@extundo.com>
59422
59423         * lib/strndup.c: Use strnlen.h.
59424
59425         * lib/strnlen.h: New file.
59426
59427 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59428
59429         * README: Typos.
59430
59431 2005-08-02  Simon Josefsson  <jas@extundo.com>
59432
59433         * modules/readline: New file.
59434
59435 2005-08-02  Simon Josefsson  <jas@extundo.com>
59436
59437         * modules/getdelim: New file.
59438
59439         * modules/getline: Rewrite, don't use getndelim2.
59440
59441 2005-08-02  Simon Josefsson  <jas@extundo.com>
59442
59443         * m4/getline.m4: Separate out getdelim stuff into separate module.
59444
59445         * m4/getdelim.m4: New file.
59446
59447 2005-08-02  Simon Josefsson  <jas@extundo.com>
59448
59449         * lib/getline.h, getline.c: Rewrite.
59450
59451         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59452
59453 2005-07-31  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/lock.h (gl_lock_initializer): New macro.
59456         (gl_lock_define_initialized): Use it.
59457         (gl_rwlock_initializer): New macro.
59458         (gl_rwlock_define_initialized): Use it.
59459         (gl_recursive_lock_initializer): New macro.
59460         (gl_recursive_lock_define_initialized): Use it.
59461
59462 2005-07-30  Karl Berry  <karl@gnu.org>
59463
59464         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59465         Report from Ben Pfaff, regarding getopt.
59466
59467 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59468
59469         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59470         normal way.
59471         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59472         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59473         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59474         (gl_GETOPT): Use the new macros.  Most of the implementation
59475         is moved to the new macros.  This is for programs like Emacs
59476         that don't want all the functionality of gl_GETOPT.
59477
59478 2005-07-26  Bruno Haible  <bruno@clisp.org>
59479
59480         * m4/lock.m4: Update from GNU gettext.
59481
59482 2005-07-26  Bruno Haible  <bruno@clisp.org>
59483
59484         * lib/lock.h: Update from GNU gettext.
59485         * lib/lock.c: Update from GNU gettext.
59486
59487 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59488
59489         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59490         obsolescent AC_TRY_RUN.  Include the default includes files, for
59491         'exit'.
59492
59493 2005-07-24  Bruno Haible  <bruno@clisp.org>
59494
59495         * modules/visibility: New file.
59496         * MODULES.html.sh (Misc): Add visibility.
59497
59498 2005-07-24  Bruno Haible  <bruno@clisp.org>
59499
59500         * m4/visibility.m4: New file.
59501
59502 2005-07-24  Bruno Haible  <bruno@clisp.org>
59503
59504         * doc/visibility.texi: New file.
59505
59506 2005-07-22  Bruno Haible  <bruno@clisp.org>
59507
59508         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59509         $(ALLOCA_H), redundant through BUILT_SOURCES.
59510         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59511         redundant through BUILT_SOURCES.
59512         * modules/byteswap (Makefile.am): Remove explicit dependency on
59513         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59514         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59515         $(FNMATCH_H), redundant through BUILT_SOURCES.
59516         * modules/getopt (Makefile.am): Remove explicit dependency on
59517         $(GETOPT_H), redundant through BUILT_SOURCES.
59518         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59519         redundant through BUILT_SOURCES.
59520         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59521         redundant through BUILT_SOURCES.
59522         * modules/stdbool (Makefile.am): Remove explicit dependency on
59523         $(STDBOOL_H), redundant through BUILT_SOURCES.
59524         * modules/stdint (Makefile.am): Remove explicit dependency on
59525         $(STDINT_H), redundant through BUILT_SOURCES.
59526         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59527         Remove explicit dependency on $(SYSEXITS_H).
59528         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59529
59530 2005-07-18  Simon Josefsson  <jas@extundo.com>
59531
59532         * lib/check-version.c (check_version): Accept identical versions too.
59533
59534 2005-07-18  Bruno Haible  <bruno@clisp.org>
59535
59536         * modules/lock: New file.
59537         * MODULES.html.sh (Multithreading): New section.
59538
59539 2005-07-18  Bruno Haible  <bruno@clisp.org>
59540
59541         * m4/lock.m4: New file, from GNU gettext.
59542
59543 2005-07-18  Bruno Haible  <bruno@clisp.org>
59544
59545         * lib/lock.h: New file, from GNU gettext.
59546         * lib/lock.c: New file, from GNU gettext.
59547
59548 2005-07-18  Bruno Haible  <bruno@clisp.org>
59549
59550         * lib/lock.h (gl_once_t): New type.
59551         (gl_once_define, gl_once): New macros.
59552         * lib/lock.c (fresh_once): New variable.
59553         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59554         functions.
59555
59556 2005-07-16  Simon Josefsson  <jas@extundo.com>
59557
59558         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59559         workaround, suggested by Bruno.
59560
59561 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * modules/xalloc (Depends-on): Add xalloc-die.
59564         * modules/xvasprintf (Depends-on): Add xalloc-die.
59565
59566 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59567
59568         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59569         with a minor change.
59570
59571 2005-07-15  Bruno Haible  <bruno@clisp.org>
59572
59573         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59574         When using lib/poll.c, define poll as rpl_poll.
59575
59576 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59577
59578         * modules/argp (Depends-on): Remove unlocked-io.
59579
59580 2005-07-14  Derek Price  <derek@ximbiot.com>
59581
59582         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59583         for glob symlink bug.
59584
59585 2005-07-14  Bruno Haible  <bruno@clisp.org>
59586
59587         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59588         Instead, test for *_unlocked function declarations directly.
59589
59590 2005-07-11  Simon Josefsson  <jas@extundo.com>
59591
59592         * modules/size_max: New file.
59593
59594         * modules/xsize: Depend on size_max module for size_max.m4.
59595
59596 2005-07-11  Simon Josefsson  <jas@extundo.com>
59597
59598         * lib/size_max.h: New file.
59599
59600 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59603         copyright symbol and the year.
59604         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59605         (version_etc_va): Use parameterized copyright notice.
59606         Reword to conform to the current GNU coding standards.
59607
59608 2005-07-11  Karl Berry  <karl@gnu.org>
59609
59610         * doc/gnulib.texi (Quoting): new node.
59611         (Initial import): more info, from Patrice.
59612
59613 2005-07-11  Bruno Haible  <bruno@clisp.org>
59614
59615         * gnulib-tool (func_usage): Document option --avoid.
59616         (Command line options): Handle --avoid.
59617         (func_acceptable): New function.
59618         (func_modules_transitive_closure): Use it.
59619
59620 2005-07-11  Bruno Haible  <bruno@clisp.org>
59621
59622         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59623         Reported by Jim Meyering.
59624
59625 2005-07-10  Bruno Haible  <bruno@clisp.org>
59626
59627         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59628         Needed when size_t is smaller than 'unsigned int'.
59629         Reported by Paul Eggert.
59630
59631 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59632
59633         * modules/argp (Depends-on): Add unlocked-io
59634
59635 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59636
59637         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59638         block of defines.
59639
59640 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59641
59642         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59643         fix now.
59644
59645 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59646         and Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
59649         in wint_t, not wchar_t.  Remove now-unnecessary cast.
59650
59651 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59652
59653         * modules/regex (Files): Add lib/regex_internal.c,
59654         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
59655         (Depends-on): Add extensions.
59656         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
59657
59658 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
59661         pathconf.
59662         * m4/same.m4 (gl_SAME): Likewise.
59663         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
59664
59665         * m4/regex.m4: Adjust to new libc regex implementation.
59666         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
59667         all the .c and .h parts of (the new) regex.
59668         Quote the m4 stuff better.
59669         Check for RE_ICASE bug of old gnulib.
59670         Check for REG_STARTEND of recent libc.
59671         Rename local variables from jm_* to gl_*.
59672         Quote operand of "test -f".
59673         Say "recent enough" version of libc, not "version 2".
59674         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
59675         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
59676         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
59677         Remove check for btowc, isascii.
59678         Require AM_LANGINFO_CODESET.
59679
59680 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59681
59682         * lib/regex.c, regex.h: Sync from libc.
59683         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
59684         * lib/regexec.c:
59685         New files, synced from libc, except that regex_internal.h
59686         currently has a small porting fix.
59687
59688 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59689
59690         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
59691         regex_internal.c, regexec.c.
59692         Add regex_internal.h too, but as a comment, since the libc version
59693         is currently broken in gnulib mode.
59694
59695 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59696
59697         Support programs like Emacs that use gnulib but not gettext.
59698         * MODULES.html.sh (Internationalization functions): Add gettext-h.
59699         * modules/gettext-h: New file.
59700         * modules/gettext (Files): Remove lib/gettext.h.
59701         (Depends-on): Add gettext-h.
59702         (Makefile.am): Remove lib_SOURCES.
59703         * modules/argmatch, modules/c-stack, modules/closeout:
59704         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
59705         * modules/execute, modules/file-type, modules/getaddrinfo:
59706         * modules/getopt, modules/human, modules/javacomp:
59707         * modules/javaexec, modules/mkdir-p, modules/obstack:
59708         * modules/openat, modules/pagealign_alloc, modules/pipe:
59709         * modules/quotearg, modules/regex, modules/rpmatch:
59710         * modules/unicodeio, modules/userspec, modules/version-etc:
59711         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
59712         * modules/xsetenv:
59713         Depend on gettext-h, not gettext.
59714
59715 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59716
59717         * gnulib-tool (func_import): Add support for 'public domain' license.
59718         * modules/alloca, modules/atexit, modules/memmove:
59719         Now public domain, not GPL.
59720         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
59721         * modules/realloc, modules/strerror, modules/strtod:
59722         Now LGPL, not GPL.
59723
59724 2005-07-05  Bruno Haible  <bruno@clisp.org>
59725
59726         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
59727         autoconf CVS. Needed for mingw.
59728
59729 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         Remove the dependency of the strftime module on the tzset module.
59732         * modules/strftime (Depends-on): Remove dependency on tzset.
59733
59734 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59735
59736         Remove the dependency of the strftime module on the tzset module.
59737         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
59738         gl_FUNC_TZSET_CLOBBER.
59739
59740 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59741
59742         Remove the dependency of the strftime module on the tzset module.
59743         * lib/strftime.c (my_strftime)
59744         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
59745         Copy the input structure, to work around some of the bug with
59746         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
59747         Solaris releases, you should also use the tzset module, but we won't
59748         require it as a dependency any more since we don't want LGPLed code
59749         to depend on GPLed code.
59750
59751 2005-07-02  Jim Meyering  <jim@meyering.net>
59752
59753         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
59754         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
59755         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
59756         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
59757
59758 2005-07-02  Jim Meyering  <jim@meyering.net>
59759
59760         * lib/backupfile.c (backup_args): Change a `0' to NULL.
59761
59762 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59763
59764         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
59765         declares only 'struct timespec;' (!).
59766
59767 2005-07-01  Jim Meyering  <jim@meyering.net>
59768
59769         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
59770         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
59771         * lib/save-cwd.c, tempname.c:
59772         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59773         and don't include <sys/file.h>).
59774
59775 2005-06-29  Jim Meyering  <jim@meyering.net>
59776
59777         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
59778         type name.  Use the variable name instead.
59779         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
59780         Likewise.
59781
59782 2005-06-28  Simon Josefsson  <jas@extundo.com>
59783
59784         * modules/check-version (Files): Add check-version.m4.
59785
59786 2005-06-28  Simon Josefsson  <jas@extundo.com>
59787
59788         * m4/check-version.m4: New file, suggested by Jim Meyering
59789         <jim@meyering.net>.
59790
59791 2005-06-28  Simon Josefsson  <jas@extundo.com>
59792
59793         * lib/check-version.h, lib/check-version.c: New files.
59794
59795 2005-06-28  Simon Josefsson  <jas@extundo.com>
59796
59797         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
59798         collision with global variable.  Better indentation.  Don't
59799         increment buffer pointer beyond buffer end.  Based on comments
59800         from Paul Eggert <eggert@cs.ucla.edu>.
59801
59802         * lib/base64.h: Indent.
59803
59804 2005-06-28  Simon Josefsson  <jas@extundo.com>
59805
59806         * doc/gnulib.texi (Library version handling): New section.
59807
59808 2005-06-28  Jim Meyering  <jim@meyering.net>
59809
59810         * check-module (find_included_lib_files): Hard-code another
59811         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59812         but modules/fts-lgpl (correctly) does not list those files.
59813
59814         * modules/canonicalize (Files): Add lib/pathmax.h.
59815
59816 2005-06-25  Simon Josefsson  <jas@extundo.com>
59817
59818         * modules/check-version: New file.
59819
59820 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59823         initializer of struct addrinfo, as an indication that we don't
59824         care how many members the structure has.
59825
59826 2005-06-24  Derek Price  <derek@ximbiot.com>
59827         and Bruno Haible  <bruno@clisp.org>
59828
59829         Remove stat module & update lstat.
59830         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59831         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59832         * m4/stat.m4: Remove this file.
59833
59834 2005-06-24  Derek Price  <derek@ximbiot.com>
59835         and Bruno Haible  <bruno@clisp.org>
59836
59837         Remove stat module & update lstat.
59838         * lib/stat.c: Remove this file...
59839         (slash_aware_lstat): ...moving this content and its support...
59840         * lib/lstat.c (rpl_lstat): ...into here.
59841         * lib/lstat.h: New file.
59842
59843 2005-06-24  Derek Price  <derek@ximbiot.com>
59844         and Bruno Haible  <bruno@clisp.org>
59845
59846         Remove stat module & update lstat.
59847         * config/srclist.txt (libc sources): Remove stat.
59848
59849 2005-06-24  Derek Price  <derek@ximbiot.com>
59850         and Bruno Haible  <bruno@clisp.org>
59851
59852         Remove stat module & update lstat.
59853         * MODULES.html.sh (stat): Remove.
59854         * MODULES.html: Regenerated.
59855         * modules/lstat (Description): Correct function name.
59856         (Files): Add "lstat.h".
59857         (Depends-on): Remove stat, add xalloc, stat-macros.
59858         * modules/stat: Remove this file.
59859         (Include): Add "lstat.h", remove <sys/stat.h>.
59860
59861 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59862
59863         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59864         (ranged_convert): Don't save conversion in a temporary struct.
59865         This causes a warning with GCC 4.0.0, and anyway in the typical
59866         case it's not worth the extra 100 bytes or so of code.
59867         (ranged_convert, __mktime_internal): When calling a function via a
59868         pointer P, use P () rather than (*P) (), as we now assume C89 or
59869         better.
59870
59871 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59874         "who -r" failed to give output.  Problem reported by Tim Waugh.
59875
59876         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59877         (xcalloc): Use it to avoid needless tests.
59878         Problem reported by Jim Meyering.
59879
59880 2005-06-20  Derek Price  <derek@ximbiot.com>
59881
59882         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59883         unnecessary for Autoconfs > 2.59c.
59884
59885 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59886
59887         * lib/argp.h (__option_is_short): Check upper limit of
59888         __key. Isprint() requires its argument to have the value
59889         of an unsigned char or EOF.
59890
59891 2005-06-16  Jim Meyering  <jim@meyering.net>
59892
59893         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59894         when either N or S is zero.
59895
59896 2005-06-16  Derek Price  <derek@ximbiot.com>
59897
59898         * m4/bison.m4: Declare YACC & YFLAGS precious.
59899
59900 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59901
59902         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59903         multibyte string or pattern, fall back on unibyte matching.
59904         Problem reported by James Youngman.
59905
59906 2005-06-08  Bruno Haible  <bruno@clisp.org>
59907
59908         * modules/csharpcomp: New file.
59909         * MODULES.html.sh (C#): Add csharpcomp.
59910
59911 2005-06-08  Bruno Haible  <bruno@clisp.org>
59912
59913         * m4/csharpcomp.m4: New file, from GNU gettext.
59914
59915 2005-06-08  Bruno Haible  <bruno@clisp.org>
59916
59917         * lib/csharpcomp.h: New file, from GNU gettext.
59918         * lib/csharpcomp.c: New file, from GNU gettext.
59919         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59920
59921 2005-06-08  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59924         warning on mingw.
59925
59926 2005-06-07  Derek Price  <derek@ximbiot.com>
59927
59928         Sync from CVS.
59929         * lib/glob_.h: Indent nested #ifdef.
59930
59931 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59932
59933         Sync from coreutils.
59934         Use "file name" when talking about file names, instead of "filename"
59935         or "path", as per the GNU coding standards.
59936         * lib/mkdir-p.c: Renamed from makepath.c.
59937         (make_dir_parents): Renamed from make_path.  All callers changed.
59938         * lib/mkdir-p.h: Likewise.  All includers changed.
59939         * lib/filenamecat.c: Renamed from path-concat.c.
59940         (file_name_concat): Renamed from path_concat.  All callers changed.
59941         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59942         * lib/filenamecat.h: Likewise.  All includers changed.
59943         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59944         in comments or local variable names.
59945         * lib/basename.c: Likewise.
59946         * lib/canonicalize.c, canonicalize.h: Likewise.
59947         * lib/dirname.c, dirname.h: Likewise.
59948         * lib/euidaccess.c: Likewise.
59949         * lib/exclude.c: Likewise
59950         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59951         * lib/fsusage.c, fsuage.h: Likewise.
59952         * lib/fts.c, fts_.h: Likewise.
59953         * lib/getcwd.c: Likewise.
59954         * lib/getloadavg.c: Likewise.
59955         * lib/mkstemp.c: Likewise.
59956         * lib/mountlist.c, mountlist.h: Likewise.
59957         * lib/openat.c, openat.h: Likewise.
59958         * lib/readlink-stub.c: Likewise.
59959         * lib/readutmp.c, readutmp.h: Likewise.
59960         * lib/rename.c: Likewise.
59961         * lib/rmdir.c: Likewise.
59962         * lib/same.c: Likewise.
59963         * lib/savedir.c: Likewise.
59964         * lib/stripslash.c: Likewise.
59965         * lib/tempname.c: Likewise.
59966         * lib/xreadlink.c: Likewise.
59967         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59968         All uses changed.
59969         * lib/exclude.h: Likewise.
59970
59971         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59972         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59973         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59974         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59975         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59976         files have been getting away with it for years (MORE/BSD 4.3
59977         is extinct now).
59978         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59979         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59980
59981         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59982         Define to 256, not 255, as per modern POSIX.
59983
59984 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59985
59986         Sync from coreutils.
59987         Use "file name" when talking about file names, instead of "filename"
59988         or "path", as per the GNU coding standards.
59989         * MODULES.html.sh: mkdir-p renamed from makepath.
59990         filenamecat renamed from path-concat.
59991         * modules/filenamecat: Renamed from modules/path-concat.
59992         (Files): filenamecat.h and filenamecat.c renamed from
59993         path-concat.h and path-concat.c.
59994         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59995         (Include): filenamecat.h, not path-concat.h.
59996         * modules/mkdir-p: Renamed from modules/makepath.
59997         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59998         makepath.c.
59999         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
60000         (Include): mkdir-p.h, not makepath.h.
60001
60002 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60003
60004         Sync from coreutils.
60005         * m4/mkdir-p.m4: Renamed from makepath.m4.
60006         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
60007         Rename files from makepath.c to mkdir-p.c, and from
60008         makepath.h to mkdir-p.h.
60009         * m4/filenamecat.m4: Renamed from path-concat.m4.
60010         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
60011         Rename files from path-concat.c to filenamecat.c,
60012         and from path-concat.h to filenamecat.h.
60013         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
60014         "file name" in local variables or comments.
60015         * m4/rename.m4: Likewise.
60016
60017 2005-06-01  Bruno Haible  <bruno@clisp.org>
60018
60019         * modules/csharpexec: New file.
60020         * MODULES.html.sh (C#): New section.
60021
60022 2005-06-01  Bruno Haible  <bruno@clisp.org>
60023
60024         * m4/csharp.m4: New file, from GNU gettext.
60025         * m4/csharpexec.m4: New file, from GNU gettext.
60026
60027 2005-06-01  Bruno Haible  <bruno@clisp.org>
60028
60029         * lib/csharpexec.h: New file, from GNU gettext.
60030         * lib/csharpexec.c: New file, from GNU gettext.
60031         * lib/csharpexec.sh.in: New file, from GNU gettext.
60032
60033 2005-05-31  Derek Price  <derek@ximbiot.com>
60034             Paul Eggert  <eggert@cs.ucla.edu>
60035
60036         Sync from cvs.
60037         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60038
60039 2005-05-31  Derek Price  <derek@ximbiot.com>
60040             Paul Eggert  <eggert@cs.ucla.edu>
60041
60042         Sync from cvs.
60043         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60044
60045 2005-05-29  Derek Price  <derek@ximbiot.com>
60046
60047         * config/srclist.txt (glob_.h, glob.c): Add these files.
60048
60049 2005-05-29  Derek Price  <derek@ximbiot.com>
60050
60051         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
60052         * modules/glob: New file.
60053         * modules/getlogin_r: Add link to POSIX spec in description.
60054
60055 2005-05-29  Derek Price  <derek@ximbiot.com>
60056             Paul Eggert  <eggert@cs.ucla.edu>
60057
60058         * m4/glob.m4: New file.
60059
60060 2005-05-29  Derek Price  <derek@ximbiot.com>
60061             Paul Eggert  <eggert@cs.ucla.edu>
60062
60063         * lib/glob_.h, lib/glob.c: New files.
60064
60065 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60066
60067         * modules/fts (Files): Remove m4/inttypes-pri.m4.
60068         * modules/fts-lgpl (Depends-on): Remove gettext.
60069
60070 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60071
60072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
60073         and don't require gt_INTTYPES_PRI.
60074
60075 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60076
60077         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
60078
60079         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
60080         the configuration hassle isn't worth it.
60081         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
60082         (LONGEST_MODIFIER, PRIuMAX): Remove.
60083
60084 2005-05-27  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/getlogin_r.h: Remove second include of <stddef.h>.
60087
60088 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
60089
60090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
60091         _POSIX_PTHREAD_SEMANTICS for Solaris.
60092
60093 2005-05-25  Derek Price  <derek@ximbiot.com>
60094
60095         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
60096
60097 2005-05-25  Derek Price  <derek@ximbiot.com>
60098             Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         * modules/getlogin_r, m4/getlogin_r.m4: New files.
60101         * lib/getlogin_r.c, getlogin_r.h: New files.
60102
60103 2005-05-25  Bruno Haible  <bruno@clisp.org>
60104             Derek Price  <derek@ximbiot.com>
60105
60106         * lib/getlogin_r.h: Simplify API documentation.
60107
60108 2005-05-23  Derek Price  <derek@ximbiot.com>
60109
60110         * modules/minmax (Files): Add m4/minmax.m4.
60111         (configure.ac): Add gl_MINMAX.
60112
60113 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60114
60115         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
60116         so that unistd-safer.h (GPL'ed code) need not be included.
60117
60118 2005-05-22  Bruno Haible  <bruno@clisp.org>
60119
60120         * m4/minmax.m4: New file.
60121         Based on a patch by Derek Price <derek@ximbiot.com>.
60122
60123 2005-05-22  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
60126         (INT64_MIN): Fix definition.
60127         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
60128
60129         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
60130         NEED_SIGNED_INT_TYPES.
60131
60132         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
60133         HAVE_SYSTEM_INTTYPES.
60134
60135 2005-05-22  Bruno Haible  <bruno@clisp.org>
60136
60137         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
60138         Also include <sys/param.h> if it defines MIN, MAX.
60139         Based on a patch by Derek Price <derek@ximbiot.com>.
60140
60141 2005-05-21  Jim Meyering  <jim@meyering.net>
60142
60143         * modules/fts (Files): Add m4/inttypes-pri.m4.
60144         (Depends-on): Add lstat and remove gettext.  Alphabetize.
60145
60146 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60147
60148         New fts module.
60149         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
60150         (setup_dir, free_dir): New functions.
60151         (enter_dir, leave_dir): Define trivial
60152         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
60153         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
60154         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
60155         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
60156         Move to fts-cycle.c.
60157         (fts_open): Use setup_dir.
60158         (fts_close): Use free_dir.
60159         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
60160         This adds a label and some gotos, but the alternatives were messier.
60161         Check for memory allocation failure when entering a dir.
60162         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
60163         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
60164         (FTS): New member fts_cycle, that is a union that contains the
60165         old active_dir_ht and cycle_state.  All uses changed to mention
60166         fts_cycle.ht and fts_cycle.state.
60167         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
60168         fts.c, with the following changes:
60169         (setup_dir, free_dir): New functions.
60170         (enter_dir): Now returns bool.  Return true if successful, false
60171         if memory exhausted.  All callers changed.
60172         Do not bother partly cleaning up on
60173         memory allocation failure; that is free_dir's job.
60174         However, free ad if hash_insert fails, to avoid memory leak.
60175         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
60176         fts->fts_options to see which union member to use.
60177
60178 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60179
60180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
60181         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
60182
60183 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60184
60185         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
60186
60187 2005-05-20  Jim Meyering  <jim@meyering.net>
60188
60189         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
60190         Now a macro, to pacify GCC.
60191
60192 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60193
60194         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
60195         of -1.
60196
60197 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60198
60199         * lib/chown.c (rpl_chown): Return -1 on failure.
60200
60201 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60202
60203         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
60204         Don't check for stddef.h.
60205         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
60206         don't use its results.
60207         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
60208         since we include them unconditionally.  Don't require
60209         AM_STDBOOL_H, since stdbool is a prerequisite.
60210         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
60211         since we assume C89 or better.
60212         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
60213         as we don't use their results.
60214         Don't check for fchdir, memmove, memset, strrchr, as we use
60215         them unconditionally.
60216         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
60217         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
60218
60219 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60220
60221         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
60222         Include <stddef.h> unconditionally, since we assume C89 now.
60223         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
60224         * lib/fts.c: Include fts_.h first, to check interface.
60225         Do not include intprops.h; no longer needed.
60226         Include cycle-check.h and hash.h, since fts_.h no longer does.
60227         Remove unnecessary casts of closedir to void.
60228         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
60229         decide whether to decrement nlinks.
60230         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
60231         (FTS): Use struct hash_table * instead of Hash_table, so that
60232         we no longer need to include hash.h here.
60233
60234 2005-05-18  Jim Meyering  <jim@meyering.net>
60235
60236         * modules/dirfd (License): Change to LGPL.  Most of the code
60237         is already in the public domain.
60238
60239 2005-05-18  Jim Meyering  <jim@meyering.net>
60240
60241         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
60242         Reported by Yoann Vandoorselaere.
60243
60244 2005-05-17  Jim Meyering  <jim@meyering.net>
60245
60246         * m4/fts.m4: New file, from coreutils.
60247
60248 2005-05-17  Jim Meyering  <jim@meyering.net>
60249
60250         * lib/fts.c, lib/fts_.h: New files, from coreutils.
60251
60252 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60253
60254         Sync from coreutils.
60255         * m4/unlinkdir.m4: New file.
60256
60257 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         Sync from coreutils.
60260         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
60261         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
60262         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
60263         White space changes only.
60264         * lib/makepath.c (make_path): Port to hosts where leading "//" is
60265         special.
60266         * lib/yesno.c: Include getline.h, not ctype.h.
60267         (yesno): Don't remove leading white space; POSIX doesn't allow it.
60268         Use getline to remove arbitrary restriction on response length.
60269
60270 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60271
60272         * config/srclist-update: Spell out "Street" in FSF postal
60273         mail address; this is the style the FSF seems to prefer.
60274
60275         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
60276         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
60277         this updates FSF postal mail address.
60278
60279         Sync from coreutils.
60280         * modules/unlinkdir: New file.
60281         * modules/yesno (Depends-on): Add getline.
60282         * MODULES.html.sh (File system functions): Add unlinkdir.
60283
60284 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
60287         lib/strsep.h:
60288         Change the initial comment to refer to GPL, not LGPL.
60289         gnulib-tool will change it to LGPL as needed.
60290
60291         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
60292         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
60293         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
60294         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
60295         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
60296         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
60297         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
60298         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
60299         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
60300         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
60301         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
60302         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
60303         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
60304         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
60305         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
60306         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
60307         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
60308         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
60309         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
60310         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
60311         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
60312         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
60313         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
60314         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
60315         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
60316         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
60317         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
60318         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
60319         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
60320         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
60321         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
60322         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
60323         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
60324         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
60325         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
60326         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
60327         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
60328         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
60329         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
60330         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
60331         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
60332         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
60333         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
60334         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
60335         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
60336         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
60337         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
60338         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
60339         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
60340         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
60341         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60342         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
60343         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
60344         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
60345         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
60346         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
60347         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
60348         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
60349         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
60350         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
60351         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
60352         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
60353         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
60354         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
60355         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
60356         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
60357         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
60358         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
60359         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
60360         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
60361         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
60362         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
60363         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
60364         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
60365         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
60366         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60367         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60368         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60369         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60370         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60371         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60372         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60373         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60374         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60375         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60376         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60377         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60378         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60379         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60380         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60381         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60382         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60383         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60384         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60385         lib/yesno.c, lib/yesno.h:
60386         Update FSF postal mail address.
60387
60388 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60389
60390         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60391         tests/test-memmem.c, tests/test-stpncpy.c:
60392         Update FSF postal mail address.
60393
60394 2005-05-13  Bruno Haible  <bruno@clisp.org>
60395
60396         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60397         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60398         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60399         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60400         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60401         Add support for 64-bit integers in the MSVC compiler.
60402
60403 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60404
60405         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60406
60407 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60408
60409         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60410
60411 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60412
60413         * doc/getdate.texi (General date syntax): Don't say that date
60414         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60415         Problem reported by Nic Ferrier.
60416
60417 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60418
60419         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60420         specified in ai_socktype. Fix invalid ai_protocol
60421         check. ai_protocol is usually set to 0 or depending on
60422         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60423         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60424         ai_socktype / ai_protocol in the returned addrinfo structure.
60425
60426 2005-05-10  Simon Josefsson  <jas@extundo.com>
60427
60428         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60429         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60430
60431 2005-05-10  Karl Berry  <karl@gnu.org>
60432
60433         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60434         (from http://www.gnu.org/licenses).
60435         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60436         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60437         fdl.texi suffices.
60438
60439 2005-05-10  Karl Berry  <karl@gnu.org>
60440
60441         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60442         (COPYING.DOC): remove.
60443
60444         * config/srclist-update: new FSF address.
60445
60446 2005-05-10  Derek Price  <derek@ximbiot.com>
60447
60448         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60449         possible.
60450
60451 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60452             Bruno Haible  <bruno@clisp.org>
60453
60454         * modules/inet_ntop: New file.
60455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60456         inet_ntop.
60457
60458 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60459             Bruno Haible  <bruno@clisp.org>
60460
60461         * m4/inet_ntop.m4: New file.
60462
60463 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60464             Bruno Haible  <bruno@clisp.org>
60465
60466         * lib/inet_ntop.h: New file.
60467         * lib/inet_ntop.c: New file, from glibc with modifications.
60468
60469 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60470
60471         * modules/time_r (License): Change to LGPL.
60472         * modules/extensions (License): Change to LGPL.  Actually,
60473         the license is more permissive than that, but currently gnulib-tool
60474         doesn't know how to handle more-permissive licenses.
60475
60476         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60477         Problem reported by Dave Love.
60478
60479 2005-05-08  Jim Meyering  <jim@meyering.net>
60480
60481         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60482         blank.
60483
60484 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * modules/argmatch (Depends-on): Add stdbool.
60487         * modules/backupfile (Depends-on): Likewise.
60488         * modules/chdir-long (Depends-on): Likewise.
60489         * modules/closeout (Depends-on): Likewise.
60490         * modules/cycle-check (Depends-on): Likewise.
60491         * modules/dirname (Depends-on): Likewise.
60492         * modules/fnmatch (Depends-on): Likewise.
60493         * modules/fsusage (Depends-on): Likewise.
60494         * modules/fwriteerror (Depends-on): Likewise.
60495         * modules/getcwd (Depends-on): Likewise.
60496         * modules/getloadavg (Depends-on): Likewise.
60497         * modules/hard-locale (Depends-on): Likewise.
60498         * modules/makepath (Depends-on): Likewise.
60499         * modules/mountlist (Depends-on): Likewise.
60500         * modules/nanosleep (Depends-on): Likewise.
60501         * modules/posixtm (Depends-on): Likewise.
60502         * modules/quotearg (Depends-on): Likewise.
60503         * modules/readtokens (Depends-on): Likewise.
60504         * modules/readtokens0 (Depends-on): Likewise.
60505         * modules/readutmp (Depends-on): Likewise.
60506         * modules/save-cwd (Depends-on): Likewise.
60507         * modules/strftime (Depends-on): Likewise.
60508         * modules/userspec (Depends-on): Likewise.
60509         * modules/utimecmp (Depends-on): Likewise.
60510         * modules/xgetcwd (Depends-on): Likewise.
60511         * modules/xnanosleep (Depends-on): Likewise.
60512         * modules/xstrtod (Depends-on): Likewise.
60513         * modules/yesno (Depends-on): Likewise.
60514
60515 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60516
60517         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60518         needless checks.
60519
60520 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         Merge from coreutils.  Among other things,
60523         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60524         * lib/fd-safer.c: New file.
60525         * lib/fcntl-safer.h, open-safer.c: Remove.
60526         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60527         * lib/dup-safer.c: Include unistd-safer.h first.
60528         Don't include errno.h.
60529         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60530         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60531         * lib/file-type.c: Rely on file-type.h change.
60532         * lib/getloadavg.c: Include unistd-safer.h.
60533         (getloadavg): Use safer open.
60534         * lib/getusershell.c: Include "stdio-safer.h".
60535         (getusershell): Use safer fopen.
60536         * lib/long-options.c (long_options): Use NULL rather than 0.
60537         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60538         'free'.
60539         * lib/modechange.c: Likewise.
60540         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60541         (MODE_DONE): New constant.
60542         (struct mode_change): Remove 'next' member.
60543         (make_node_op_equals): New function; like the old one of the
60544         same name, except it allocates an array.
60545         (mode_compile, mode_create_from_ref): Use it.
60546         (mode_compile): Allocate result as an array, not a linked list.
60547         Parse octal string ourself, so that we catch mistakes like "+0".
60548         (mode_adjust): Arg is an array, not a linked list.
60549         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60550         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60551         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60552         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60553         Remove.  This is now stat-macros.h's job.
60554         (talloc): Remove.  All callers replaced by xalloc, so that
60555         our invokers don't have to worry about reporting memory failures.
60556         (make_node_op_equals): Remove.
60557         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60558         New constants.
60559         (struct mode_change): Moved here from modechange.h.
60560         (mode_append_entry): Remove.
60561         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60562         apps to have incorrect behavior.  Use simpler algorithm for head
60563         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60564         Detect more invalid usages rather than having somewhat-random behavior.
60565         Don't insert an "a=" action, as that leads to incorrect behavior.
60566         (mode_compile, mode_create_from_ref): Return NULL on error instead
60567         of an enum, since now there's only one way to have an error.  All
60568         callers changed.
60569         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60570         at the correct time.  Simplify calculation of "+u" and its ilk.
60571         Don't mishandle "+X".
60572         (mode_free): Remove "register" and localize decls.
60573         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60574         (struct mode_change): Move to modechange.c; callers don't
60575         need to see this stuff.
60576         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60577         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60578         (mode_change, mode_adjust): Reflect the new signatures noted above.
60579         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60580         that might redefine system include files.
60581         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60582         (my_usleep): Use NULL rather than (void *) 0.
60583         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60584         Use siginterrupt to specify that system calls should be interrupted.
60585         (rpl_nanosleep): Move initialization of suspended closer to call of
60586         my_usleep.
60587         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60588         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60589         (desirable_utmp_entry): New function.
60590         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60591         using x2nrealloc, to simplify logic.
60592         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60593         size calculation.  Do not assume utmp file is a regular file.
60594         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60595         (READ_UTMP_CHECK_PIDS): New constant.
60596         * lib/save-cwd.c: Include unistd-safer.h.
60597         (save_cwd): Use fd_safer.
60598         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60599         [!_LIBC] Include "stat-macros.h" instead.
60600         * lib/unistd-safer.h (fd_safer): New decl.
60601
60602 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         * modules/getloadavg (Depends-on): Add unistd-safer.
60605         * modules/getusershell (Depends-on): Add stdio-safer.
60606         * modules/lstat (Depends-on): Remove xalloc.
60607         * modules/mkstemp (Depends-on): Add stat-macros.
60608         * modules/modechange (Depends-on): Remove xstrtol.
60609         Add stat-macros, xalloc.
60610         * modules/save-cwd (Depends-on): Add unistd-safer.
60611         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60612         * modules/unistd-safer (Files): Add lib/fd-safer.c
60613         (Makefile.am): Remove lib_SOURCES.
60614
60615         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60616         Remove fcntl-safer; unistd-safer supersedes it.
60617
60618 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60619
60620         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60621         AC_HEADER_STAT.
60622         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60623         (gl_PREREQ_CHOWN): Remove.
60624         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60625         it.  Don't require AC_HEADER_STAT.
60626         (gl_PREREQ_LSTAT): Remove.
60627         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60628         Don't require AC_HEADER_STAT.
60629         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60630         (gl_PREREQ_RMDIR): Remove.
60631         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60632         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60633         the stat-macros module a prerequisite.
60634         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60635         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60636         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60637         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60638         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60639         variable names.
60640         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60641         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60642         variable prefixes.
60643         * m4/fcntl-safer.m4: Remove.
60644         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60645         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60646         Invoke gl_PREREQ_FD_SAFER.
60647         (gl_PREREQ_FD_SAFER): New macro.
60648         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
60649         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
60650         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
60651         Remove duplicate call to AC_LIBOBJ(readutmp).
60652         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
60653
60654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
60655         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
60656
60657 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         * MODULES.html.sh (Misc): Add byteswap.
60660
60661 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60662
60663         * modules/getcwd (Depends-on): Add extensions.
60664         * modules/openat (Depends-on): Likewise.
60665
60666 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60667
60668         * modules/byteswap: New file.
60669
60670 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60671
60672         * m4/byteswap.m4: New file.
60673
60674 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60675
60676         * lib/byteswap_.h: New file.
60677
60678 2005-04-25  Karl Berry  <karl@gnu.org>
60679
60680         * m4/gettext.m4: Update from GNU gettext 0.14.4.
60681
60682 2005-04-25  Albert Chin  <china@thewrittenword.com>
60683
60684         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
60685         Toolkit C bug.
60686
60687 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
60688
60689         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
60690         (func_ln_if_changed) Remove forcibly for no error message
60691         in case file does not exist.
60692
60693 2005-04-19  Simon Josefsson  <jas@extundo.com>
60694
60695         * gnulib-tool (Options): Make --symlink mean --symbolic.
60696
60697 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
60698
60699         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
60700
60701 2005-04-16  Simon Josefsson  <jas@extundo.com>
60702
60703         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
60704
60705 2005-04-15  Simon Josefsson  <jas@extundo.com>
60706
60707         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
60708
60709 2005-04-15  Simon Josefsson  <jas@extundo.com>
60710
60711         * gnulib-tool: Rename --symlink to --symbolic.
60712
60713 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
60714
60715         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
60716         symbolic links to files instead of copying/moving.  Add --aux-dir,
60717         specifying directory relative --dir where auxiliary build tools
60718         are placed.
60719
60720 2005-04-14  Bruno Haible  <bruno@clisp.org>
60721
60722         * modules/allocsa (License): Change to LGPL.
60723         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
60724
60725 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60726
60727         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
60728         that "UTC +1 second" continues to work.  Problem reported
60729         by Dmitry V. Levin.
60730         (relunit_snumber): New rule.
60731         (relunit): Use it.
60732
60733 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60734
60735         * lib/getdate.y (universal_time_zone_table): New constant.
60736         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
60737         universal_time_zone_table.
60738         (lookup_zone): Prefer universal_time_zone_table to
60739         local_time_zone_table, so that "GMT" time stamps are allowed in
60740         London during the summer.  Problem reported by Ian Abbott.
60741
60742 2005-04-12  Jim Meyering  <jim@meyering.net>
60743
60744         * lib/human.c (humblock): Set *options even when returning due to
60745         xstrtoumax conversion failure.  Thanks to a used-uninitialized
60746         warning from gcc-4.
60747
60748 2005-04-09  Jim Meyering  <jim@meyering.net>
60749
60750         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
60751         -Wuninitialized: initialize tm0.tm_year.
60752
60753 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60754
60755         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
60756         count, since there's no maximum.  All uses changed.
60757         Add member dsts_seen.
60758         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
60759         not being INT_MAX.
60760         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
60761         Use pc_rels_seen to decide whther a date is absolute.
60762
60763         * lib/getdate.y (number): Don't overwrite year.
60764         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
60765         check.
60766
60767 2005-04-02  Simon Josefsson  <jas@extundo.com>
60768
60769         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
60770         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
60771
60772 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
60773
60774         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
60775         where no absolute path name can be longer than PATH_MAX.
60776
60777 2005-03-27  Jim Meyering  <jim@meyering.net>
60778
60779         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
60780
60781 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
60782
60783         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
60784         "one's complement" -> "ones' complement" in comment, as per Knuth.
60785         "value of type" -> "type or expression" in comment.
60786         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
60787
60788 2005-03-26  Jim Meyering  <jim@meyering.net>
60789
60790         Comment nits.
60791         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
60792         Correct typos: s/or/of/.
60793
60794 2005-03-26  Jim Meyering  <jim@meyering.net>
60795
60796         * modules/check-include-files: Move to ../ and rename to...
60797         * check-module: ...this.
60798
60799 2005-03-25  Jim Meyering  <jim@meyering.net>
60800
60801         * modules/xvasprintf (Files): Add xalloc.h.
60802
60803 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * modules/gettext (Files): config/config.rpath ->
60806         build-aux/config.rpath
60807         * modules/iconv (Files): Likewise.
60808         Problem reported by Oskar Liljeblad.
60809
60810 2005-03-23  Jim Meyering  <jim@meyering.net>
60811
60812         * modules/check-include-files: New script to check for
60813         missing dependencies, multiple includes, etc.
60814
60815         * modules/c-strtold (Depends-on): Add xalloc.
60816         * modules/c-strtod (Depends-on): Add xalloc.
60817         * modules/hash (Depends-on): Add xalloc.
60818         (Files): Remove lib/xalloc.h.
60819
60820         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60821         * modules/userspec (Files): Add lib/inttostr.h.
60822
60823 2005-03-23  Jim Meyering  <jim@meyering.net>
60824
60825         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60826
60827 2005-03-22  Jim Meyering  <jim@meyering.net>
60828
60829         * modules/stat-macros: New module.
60830         * modules/canonicalize, modules/euidaccess, modules/file-type,
60831         * modules/filemode, modules/lchown, modules/makepath,
60832         * modules/rmdir, modules/stat: Depend on new stat-macros module
60833         rather than listing lib/stat-macros.h manually.
60834         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60835
60836 2005-03-22  Jim Meyering  <jim@meyering.net>
60837
60838         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60839
60840 2005-03-22  Bruno Haible  <bruno@clisp.org>
60841
60842         * config/srclist.txt: Replace target directory 'config' with
60843         'build-aux'.
60844         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60845         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60846         ../build-aux/.
60847
60848 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60849
60850         * modules/chdir-long (Depends-on): Add mempcpy.
60851
60852         * modules/acl, modules/backupfile, modules/c-strtod,
60853         modules/c-strtold, modules/canon-host, modules/canonicalize,
60854         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60855         modules/exclude, modules/exitfail, modules/file-type,
60856         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60857         modules/getdate, modules/getline, modules/getpagesize,
60858         modules/getpass, modules/getugroups, modules/group-member,
60859         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60860         modules/inttostr, modules/long-options, modules/makepath,
60861         modules/md5, modules/memcasecmp, modules/memcoll,
60862         modules/modechange, modules/mountlist, modules/path-concat,
60863         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60864         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60865         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60866         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60867         modules/strftime, modules/strndup, modules/strverscmp,
60868         modules/timespec, modules/unlocked-io, modules/userspec,
60869         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60870         modules/yesno:
60871         Remove lib_SOURCES line from Makefile.am section, as this is now
60872         done automatically by the corresponding Autoconf macro.
60873
60874 2005-03-21  Jim Meyering  <jim@meyering.net>
60875
60876         Changes imported from coreutils.
60877
60878         * lib/cycle-check.c: Don't include xalloc.h.
60879
60880         * lib/path-concat.c: Don't include assert.h.
60881         (path_concat): Remove assertion that would have triggered
60882         for ABASE starting with more than one slash.
60883         Reported by Andreas Schwab.
60884
60885         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60886         properly when ABASE is an absolute file name.
60887         Correct the description of this function.
60888         Include <assert.h>.
60889         Add an assertion and a test driver.
60890         This fixes a bug introduced on 2004-07-02.
60891         Andreas Schwab reported the resulting failure of cp --parents:
60892         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60893
60894 2005-03-21  Jim Meyering  <jim@meyering.net>
60895
60896         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60897         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60898
60899 2005-03-21  Jim Meyering  <jim@meyering.net>
60900         and  Paul Eggert  <eggert@cs.ucla.edu>
60901
60902         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60903         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60904         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60905         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60906         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60907         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60908         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60909         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60910         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60911         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60912         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60913         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60914         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60915         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60916         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60917         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60918         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60919         for these modules.
60920
60921 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60922
60923         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60924         (which shouldn't happen), generate nothing instead of returning 0
60925         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60926
60927 2005-03-16  Bruno Haible  <bruno@clisp.org>
60928
60929         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60930         HAVE_LONGLONG_64BIT.
60931
60932 2005-03-16  Bruno Haible  <bruno@clisp.org>
60933
60934         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60935         HAVE_LONGLONG_64BIT.
60936
60937 2005-03-16  Bruno Haible  <bruno@clisp.org>
60938
60939         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60940         HAVE_LONGLONG_64BIT.
60941
60942 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60945         reliably distinguish strftime failure from empty output on POSIX
60946         hosts.
60947
60948 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60951         (iconv_string): Don't guess a size-zero buffer, as that might cause
60952         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60953         result would be 'too large', where 'too large' is (heuristically)
60954         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60955         overflow concerns.  This will prevent some unwanted malloc failures
60956         when the inputs are very large.
60957
60958 2005-03-15  Karl Berry  <karl@gnu.org>
60959
60960         * config/srclist.txt (config.rpath): from gettext.
60961         * config/config.rpath: update.
60962
60963 2005-03-15  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60966         to 'negate'.
60967
60968         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60969         variable.
60970
60971         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60972         results.
60973
60974 2005-03-14  Simon Josefsson  <jas@extundo.com>
60975
60976         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60977         <fx@gnu.org>.
60978
60979 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60982         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60983         intprops.h.
60984         * lib/strtol.c: Likewise.
60985
60986 2005-03-14  Jim Meyering  <jim@meyering.net>
60987
60988         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60989         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60990         to be nonzero so that we (and caller) can detect the difference
60991         between a valid zero-length expansion and an error return, even
60992         when the underlying strftime fails before writing anything into
60993         that location.
60994
60995 2005-03-14  Bruno Haible  <bruno@clisp.org>
60996
60997         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60998         Update from GNU gettext 0.14.3.
60999
61000 2005-03-10  Jim Meyering  <jim@meyering.net>
61001
61002         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
61003
61004 2005-03-10  Jim Meyering  <jim@meyering.net>
61005
61006         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
61007         so that this module works on systems without fchdir.
61008
61009 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
61010
61011         Factor int-properties macros into a single file, except for
61012         glibc-related files.
61013         * lib/intprops.h: New file.
61014         * lib/getloadavg.c: Include it instead of limits.h.
61015         (INT_STRLEN_BOUND): Remove.
61016         * lib/human.c: Include intprops.h.
61017         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
61018         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
61019         302/1000.
61020         * lib/inttostr.h: Include intprops.h instead of limits.h.
61021         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
61022         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
61023         for consistency with intprops.h.
61024         (time_t_is_integer, twos_complement_arithmetic): Use them.
61025         * lib/sig2str.h: Include <signal.h>, intprops.h.
61026         (INT_STRLEN_BOUND): Remove.
61027         * lib/strftime.c (TYPE_SIGNED): Remove.
61028         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
61029         * lib/strtol.c: Adjust comments to match intprops.h.
61030         * lib/userspec.c: Include intprops.h.
61031         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
61032         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
61033         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
61034         instead of rolling our own expressions.
61035         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
61036
61037         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
61038         instead of int.
61039         (my_strftime): Do not mishandle years close to INT_MAX, by doing
61040         the right thing even if adding 1900 would overflow.  Similarly
61041         for tm_mon + 1 and tm_yday + 1.
61042         Make %Y always equivalent to %C%y, and similarly for %G and %g.
61043         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
61044         (DO_SIGNED_NUMBER): New macro.
61045         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
61046
61047 2005-03-07  Bruno Haible  <bruno@clisp.org>
61048
61049         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
61050
61051 2005-03-07  Bruno Haible  <bruno@clisp.org>
61052
61053         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
61054
61055 2005-03-04  Derek R. Price  <derek@ximbiot.com>
61056
61057         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
61058         (func_import): Only replace files via --import when they have actually
61059         changed.
61060
61061 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61062
61063         * m4/mmap-anon.m4: New file.
61064         * m4/pagealign_alloc.m4: New file.
61065
61066 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61067             Bruno Haible  <bruno@clisp.org>
61068
61069         * modules/pagealign_alloc: New file.
61070         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
61071
61072 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61073             Bruno Haible  <bruno@clisp.org>
61074
61075         * lib/pagealign_alloc.h: New file.
61076         * lib/pagealign_alloc.c: New file.
61077
61078 2005-03-03  Bruno Haible  <bruno@clisp.org>
61079
61080         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
61081         Use an all-permissive copyright notice, recommended by RMS.
61082
61083 2005-03-02  Bruno Haible  <bruno@clisp.org>
61084
61085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
61086         of AIX, the replacement has to be done only after <string.h> is
61087         included, therefore not in config.h. stpncpy.h does the replacement,
61088         and stpncpy.c uses it.
61089
61090 2005-03-02  Bruno Haible  <bruno@clisp.org>
61091
61092         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
61093         stpncpy.c uses it.
61094
61095 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61096
61097         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
61098         The workaround isn't strictly needed for POSIX conformance, and
61099         it's too much of a pain to configure and maintain.  We'll ask
61100         people to fix their kernels instead.
61101         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
61102         (NANOSLEEP_BUG_WORKAROUND): Remove.
61103         (xnanosleep): Remove the workaround.
61104
61105 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61106
61107         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
61108         Reported by Derek Price.
61109         (Include): Add "timespec.h".
61110
61111         * modules/xnanosleep (Depends-on): Remove gethrxtime.
61112
61113 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61114
61115         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
61116         to detect nanosleep bug.
61117
61118 2005-03-01  Bruno Haible  <bruno@clisp.org>
61119
61120         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
61121
61122 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         * modules/gethrxtime: New file.
61125         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
61126         (Depends-on): Add gethrxtime.
61127         (configure.ac): Add gl_XNANOSLEEP.
61128         (Makefile.am): Remove lib_SOURCES line.
61129
61130 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61131
61132         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
61133         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
61134
61135 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
61138         * lib/timespec.h (gettime): Return void, since it always
61139         succeeds now.  All uses changed.
61140         * lib/gettime.c (gettime) Likewise.
61141         [HAVE_NANOTIME]: Prefer nanotime.
61142         Assume gettimeofday succeeds, as POSIX requires.
61143         Assime time () succeeds, since other code already does.
61144         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
61145         (timespec_subtract): Remove.
61146         (NANOSLEEP_BUG_WORKAROUND): New constant.
61147         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
61148         things considerably.  Use it only on GNU/Linux hosts, since the
61149         workaround shouldn't be needed elsewhere.
61150
61151 2005-02-24  Bruno Haible  <bruno@clisp.org>
61152
61153         * modules/gettext (Files): Add m4/glibc2.m4.
61154
61155 2005-02-24  Bruno Haible  <bruno@clisp.org>
61156
61157         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
61158         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
61159         * m4/progtest.m4:
61160         Update from GNU gettext 0.14.2.
61161         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
61162
61163 2005-02-24  Bruno Haible  <bruno@clisp.org>
61164
61165         * lib/localcharset.c: Update from GNU gettext 0.14.2.
61166         * lib/config.charset: Update from GNU gettext 0.14.2.
61167
61168 2005-02-24  Bruno Haible  <bruno@clisp.org>
61169
61170         * lib/gettext.h: Update from GNU gettext 0.14.2.
61171
61172 2005-02-23  Simon Josefsson  <jas@extundo.com>
61173
61174         * m4/iconvme.m4: New file.
61175
61176 2005-02-23  Jim Meyering  <jim@meyering.net>
61177
61178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
61179         change.
61180         Thanks to Bruno Haible for catching it.
61181
61182 2005-02-22  Simon Josefsson  <jas@extundo.com>
61183
61184         * modules/iconvme: New file.
61185
61186         * MODULES.html.sh: Add iconvme.
61187
61188 2005-02-22  Simon Josefsson  <jas@extundo.com>
61189
61190         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
61191
61192 2005-02-22  Simon Josefsson  <jas@extundo.com>
61193
61194         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
61195
61196 2005-02-22  Jim Meyering  <jim@meyering.net>
61197
61198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
61199         s/ifndef/ifdef/.
61200
61201 2005-02-20  Neil Conway  <neilc@samurai.com>
61202
61203         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
61204         returned by OSX/Darwin if the specified buffer is not large
61205         enough for the hostname.
61206
61207 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61208
61209         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
61210         pass it to _help, otherwise the latter coredumps trying to
61211         dereference state.root_argp.
61212
61213 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61214
61215         * modules/chdir-long (Depends-on): Add memrchr.
61216         * modules/memrchr (Files): Add lib/memrchr.h.
61217         (Include): "memrchr.h".
61218
61219 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61220
61221         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
61222
61223 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61224
61225         * lib/memrchr.h: New file.
61226         * lib/chdir-long.c: Include it.
61227         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
61228         Don't bother including stddef.h.
61229
61230 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61231
61232         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
61233         inclusion.
61234         Include <sys/types.h>, for dev_t.
61235         (ME_DUMMY, ME_REMOTE): Move from here....
61236         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
61237         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
61238         Dmitry V. Levin.
61239         Include mountlist.h first, to test the interface.
61240
61241 2005-01-29  Bruno Haible  <bruno@clisp.org>
61242
61243         * lib/progname.c (program_name): Initialize.
61244         Needed when linking statically on MacOS X.
61245
61246 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61247
61248         Sync from coreutils.
61249         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
61250         (Depends-on): Add c-strtod.
61251         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
61252
61253 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61254
61255         Sync from coreutils.
61256         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
61257
61258         Remove files that are specific to coreutils.
61259         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
61260
61261 2005-01-28  Bruno Haible  <bruno@clisp.org>
61262
61263         * modules/javacomp: New file.
61264         * MODULES.html.sh (Java): Add javacomp.
61265
61266 2005-01-28  Bruno Haible  <bruno@clisp.org>
61267
61268         * m4/javacomp.m4: New file, from GNU gettext.
61269
61270 2005-01-28  Bruno Haible  <bruno@clisp.org>
61271
61272         * lib/javacomp.sh.in: New file, from GNU gettext.
61273         * lib/javacomp.h: New file, from GNU gettext.
61274         * lib/javacomp.c: New file, from GNU gettext.
61275
61276 2005-01-26  Simon Josefsson  <jas@extundo.com>
61277
61278         * lib/gai_strerror.c: Use GPL in header.
61279
61280 2005-01-26  Bruno Haible  <bruno@clisp.org>
61281
61282         * modules/javaexec: New file.
61283         * MODULES.html.sh (Java): Add javaexec.
61284
61285 2005-01-26  Bruno Haible  <bruno@clisp.org>
61286
61287         * m4/javaexec.m4: New file, from GNU gettext.
61288
61289 2005-01-26  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/javaexec.sh.in: New file, from GNU gettext.
61292         * lib/javaexec.h: New file, from GNU gettext.
61293         * lib/javaexec.c: New file, from GNU gettext.
61294
61295 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61296
61297         * modules/lchown (Depends-on): Remove lchown.h
61298
61299 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61300
61301         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
61302         must be defined if the header file was not found, in order
61303         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
61304
61305 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61306
61307         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
61308         initializers for struct pentry_state.
61309         (__argp_error): Check return value of __asprintf
61310         (__argp_failure): Translate error message
61311
61312         * lib/argp-parse.c: Removed braces around the expansion of N_()
61313
61314 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61315
61316         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
61317         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
61318         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
61319         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
61320         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
61321         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
61322         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
61323         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
61324         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
61325         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
61326         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
61327         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
61328         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
61329         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
61330         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
61331         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
61332         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
61333         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
61334         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
61335         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
61336         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
61337         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
61338         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
61339         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
61340         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
61341         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
61342         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
61343         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
61344         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
61345         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
61346         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
61347         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
61348         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
61349         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
61350         xstrtol.m4, xstrtoumax.m4, yesno.m4:
61351         Use an all-permissive copyright notice, recommended by RMS.
61352
61353 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61354
61355         * modules/chdir-long (Depends-on): Remove mempcpy.
61356
61357 2005-01-21  Jim Meyering  <jim@meyering.net>
61358
61359         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
61360         same value as for Solaris 9.
61361
61362         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
61363         component length.  This included changing the parameter to be
61364         of type `char *' rather than `char const *'.
61365         * lib/chdir-long.h (chdir_long): Update prototype.
61366
61367         * lib/openat.c (fdopendir, fstatat): New functions.
61368         * lib/openat.h: Include headers required for use of DIR and struct
61369         stat.
61370         [AT_SYMLINK_NOFOLLOW]: Define.
61371         (fdopendir, fstatat): Add prototypes.
61372
61373 2005-01-21  Bruno Haible  <bruno@clisp.org>
61374
61375         * modules/classpath: New file.
61376         * MODULES.html.sh (Java): Add classpath.
61377
61378 2005-01-21  Bruno Haible  <bruno@clisp.org>
61379
61380         * lib/classpath.h: New file, from GNU gettext.
61381         * lib/classpath.c: New file, from GNU gettext.
61382
61383 2005-01-20  Simon Josefsson  <jas@extundo.com>
61384
61385         * modules/version-etc-fsf: New file.
61386
61387 2005-01-20  Simon Josefsson  <jas@extundo.com>
61388
61389         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61390         * lib/version-etc.c: Remove version_etc_copyright.
61391         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61392         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61393
61394 2005-01-20  Simon Josefsson  <jas@extundo.com>
61395
61396         * lib/base64.h (isbase64): Add.
61397
61398         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61399         using a unsigned prototype, don't inline.
61400         (base64_decode): Use it.
61401
61402 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61403
61404         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61405         it.
61406
61407 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         * lib/save-cwd.c (save_cwd): Remove code to support the case
61410         where fchdir is missing or flaky.
61411
61412 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61415
61416 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61417
61418         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61419         AC_LIBSOURCES now does this.
61420         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61421         with new ullong_max module.
61422
61423 2005-01-19  Bruno Haible  <bruno@clisp.org>
61424
61425         * modules/sh-quote: New file.
61426         * MODULES.html.sh (Executing programs): Add sh-quote.
61427
61428 2005-01-19  Bruno Haible  <bruno@clisp.org>
61429
61430         * lib/sh-quote.h: New file, from GNU gettext.
61431         * lib/sh-quote.c: New file, from GNU gettext.
61432
61433 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61434
61435         Merge from coreutils.
61436         * m4/ullong_max.m4: New file.
61437         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61438         (gl_MACROS): Assume localeconv exists.
61439
61440 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61441
61442         Merge changes from coreutils, as described below in several
61443         changelogs dated today.
61444
61445         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61446         (O_DIRECTORY): Remove; not needed here, since "." must be
61447         a directory.  All uses removed.
61448         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61449         universal on Suns, and we also need to test for IRIX.
61450         Revamp code to use 'if' rather than '#if'.
61451         Avoid unnecessary comparison of cwd->desc to 0.
61452
61453         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61454         for known valid error numbers rather than observed invalid ones.
61455
61456 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         * modules/ullong_max: New file.
61459
61460         * modules/chdir-long, modules/openat: New files.
61461         * modules/save-cwd (Depends-on): Depend on chdir-long.
61462         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61463
61464 2005-01-18  Jim Meyering  <jim@meyering.net>
61465
61466         Merge from coreutils.
61467         * m4/chdir-long.m4, m4/openat.m4: New files.
61468         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61469         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61470         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61471         is sane and DOES follow symlinks.  Besides, testing 20 different
61472         systems found no broken chown implementations.
61473         Prompted by a change in rsync's copy of this macro.
61474         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61475
61476         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61477
61478         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61479         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61480         NULL-means-set-to-current-time semantics.
61481         Remove temporary file immediately, rather than waiting
61482         for configure's at-exit trap code to do it.
61483
61484 2005-01-18  Jim Meyering  <jim@meyering.net>
61485
61486         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61487
61488         * lib/utimens.c (futimens): Account for the fact that futimes
61489         can also fail with errno == ENOSYS or errno == ENOENT.
61490         Patch from Dmitry V. Levin.
61491
61492         Change the name of the robust chdir function from chdir to chdir_long.
61493         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61494         (restore_cwd): Use chdir_long, not chdir.
61495         * lib/chdir-long.c: Renamed from chdir.c.
61496         * lib/chdir-long.h: Renamed from chdir.h.
61497         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61498         Hurd.
61499
61500 2005-01-18  Bruno Haible  <bruno@clisp.org>
61501
61502         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61503         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61504         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61505         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61506         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61507         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61508         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61509         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61510         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61511         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61512         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61513         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61514         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61515         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61516         Use an all-permissive copyright notice, recommended by RMS.
61517
61518 2005-01-18  Bob Proulx  <bob@proulx.com>
61519
61520         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61521         simplify offsetof() macro construct to avoid compile failure with
61522         native HP-UX 11.0 ANSI C compiler.
61523
61524 2005-01-17  Bruno Haible  <bruno@clisp.org>
61525
61526         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61527         redundant because stpncpy.m4 takes care of it.
61528
61529 2005-01-17  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61532
61533 2005-01-17  Bruno Haible  <bruno@clisp.org>
61534
61535         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61536         used.
61537
61538 2005-01-17  Bruno Haible  <bruno@clisp.org>
61539
61540         * lib/fwriteerror.h (fwriteerror): Change specification to include
61541         fclose.
61542         * lib/fwriteerror.c: Include <stdbool.h>.
61543         (fwriteerror): At the end, close the file stream. Record whether
61544         stdout was already closed.
61545
61546 2005-01-17  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/execute.c (environ): Declare if needed.
61549         * lib/pipe.c (environ): Likewise.
61550         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61551
61552 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61553
61554         * modules/argp: Depend on vsnprintf
61555
61556 2005-01-10  Jim Meyering  <jim@meyering.net>
61557
61558         * modules/closeout (Depends-on): Add atexit.
61559
61560 2005-01-06  Bruno Haible  <bruno@clisp.org>
61561
61562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61563
61564 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61565
61566         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61567         definitions to be after all include files, to avoid collisions.
61568         Problem reported by Bob Proulx.
61569
61570 2005-01-04  Jim Meyering  <jim@meyering.net>
61571
61572         Changes imported from coreutils.
61573         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61574         as the mkstemp template, use a temporary directory and an
61575         8.3-friendly template to avoid trouble on systems like DJGPP.
61576         Reported by Juan M. Guerrero via Stepan Kasal.
61577         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61578         close. Remove the temporary directory right away, rather than waiting
61579         for configure's at-exit trap code to do it.
61580         Suggestion from Stepan Kasal.
61581
61582 2005-01-01  Simon Josefsson  <jas@extundo.com>
61583
61584         * gnulib-tool: Print #include directives when --import'ing.
61585
61586 2004-12-28  Simon Josefsson  <jas@extundo.com>
61587
61588         * tests/test-base64.c: Include required header files.  Remove
61589         unused variables.
61590
61591 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         * modules/error (Depends-on): Remove gettext.
61594
61595 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61598         not needed.  This removes a dependency on the gettext module.
61599         [defined _LIBC]: Do not include <libintl.h>; not needed.
61600
61601 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61602
61603         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61604         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61605
61606 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61609         HAVE_DECL_STRTOLD.
61610
61611 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         * modules/getdate (Depends-on): Remove alloca-opt.
61614
61615 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61616
61617         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61618
61619 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61620
61621         * lib/argp-parse.c: Include <stddef.h>.
61622         (alignof, alignto): New macros.
61623         (parser_init): Don't assume that void * is aligned sufficiently
61624         for struct option.
61625
61626         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61627         need to extend the stack.
61628         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61629         large.
61630
61631 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61632
61633         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61634
61635 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61636
61637         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61638         (2004-10-24) change.  Apparently this was a false alarm.
61639
61640         * modules/getdate: Depend on alloca-opt, not alloca.
61641
61642 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61645         Remove now-obsolete comment about AIX.
61646         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
61647         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
61648         (YYMAXDEPTH): New macro.
61649
61650 2004-12-18  Simon Josefsson  <jas@extundo.com>
61651
61652         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
61653
61654 2004-12-18  Bruno Haible  <bruno@clisp.org>
61655
61656         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
61657
61658 2004-12-18  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/fatal-signal.c (fatal_signals): Make non-const.
61661         (init_fatal_signals): New function.
61662         (uninstall_handlers, install_handlers): Ignore signals that were set to
61663         SIG_IGN.
61664         (at_fatal_signal): Call init_fatal_signals.
61665         (init_fatal_signal_set): Likewise. Ignore signals that were set to
61666         SIG_IGN.
61667         Reported by Paul Eggert.
61668
61669 2004-12-18  Bruno Haible  <bruno@clisp.org>
61670
61671         * doc/alloca.texi: New file.
61672         * doc/alloca-opt.texi: New file.
61673
61674 2004-12-17  Jim Meyering  <jim@meyering.net>
61675
61676         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
61677         Otherwise, install-sh could exit with improper exit status when
61678         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
61679
61680 2004-12-16  Simon Josefsson  <jas@extundo.com>
61681
61682         * tests/test-base64.c: Add license.
61683
61684 2004-12-15  Stepan Kasal  <address@hidden>
61685
61686         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
61687
61688 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
61689
61690         * modules/getcwd (Files): Add m4/d-ino.m4.
61691         Suggested by Mark D. Baushke.
61692
61693 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         * lib/getdate.y (textint): New member "negative".
61696         (time_zone_hhmm): New function.
61697         Expect 14 shift-reduce conflicts, not 13.
61698         (o_colon_minutes): New rule.
61699         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
61700         (yylex): Set the "negative" member of signed numbers.
61701
61702 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61703
61704         * doc/getdate.texi (Time of day items, Time zone items):
61705         Describe new formats +00:00, UTC+00:00.
61706
61707 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61708
61709         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
61710         spurious "-l"s.  Problem reported by Stepan Kasal.
61711
61712 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
61715         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
61716
61717 2004-12-04  Simon Josefsson  <jas@extundo.com>
61718
61719         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
61720         Vandoorselaere <yoann@prelude-ids.org>.
61721
61722 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         Changes imported from coreutils.
61725         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
61726         exist.
61727         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
61728
61729 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         Changes imported from coreutils.
61732         * lib/hard-locale.c: Assume <locale.h> exists.
61733         Include "strdup.h".
61734         (GLIBC_VERSION): New macro.
61735         (hard_locale): Assume setlocale exists.
61736         Rewrite to avoid #ifdef.
61737         Use strdup rather than malloc + strcpy.
61738         * lib/human.c: Assume <locale.h> exists.
61739         (human_readable): Assume localeconv exists.
61740
61741 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61742
61743         * modules/hard-locale (Depends-on): Add strdup.
61744
61745 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61746
61747         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
61748         convert T2, not T.  (Imported from libc.)
61749
61750 2004-11-30  Simon Josefsson  <jas@extundo.com>
61751
61752         * modules/restrict (License): Change to LGPL.
61753
61754 2004-11-30  Simon Josefsson  <jas@extundo.com>
61755
61756         * m4/restrict.m4: Add copyright and copying conditions.
61757
61758 2004-11-30  Simon Josefsson  <jas@extundo.com>
61759
61760         * m4/base64.m4: New file.
61761
61762 2004-11-30  Simon Josefsson  <jas@extundo.com>
61763
61764         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
61765         base64.
61766
61767         * tests/test-base64.c: New file.
61768
61769         * modules/base64: New file.
61770
61771 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61772
61773         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
61774         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
61775
61776         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
61777
61778 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61779
61780         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
61781         (__getcwd.c): Don't restore errno; glibc doesn't.
61782         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
61783         first, falling back to our code only if its results look suspicious.
61784         Ensure that the resulting buffer is only as large as necessary.
61785
61786         * lib/readutmp.c: Include readutmp.h first.
61787         Include <errno.h>, since readutmp.h no longer does that.
61788         * lib/readutmp.h: Don't include <errno.h>,
61789         <sys/param.h>, <time.h>; not needed to establish interface.
61790         (errno): Remove decl.
61791         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
61792         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
61793         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
61794
61795 2004-11-28  Simon Josefsson  <jas@extundo.com>
61796
61797         * lib/base64.h, base64.c: New file.
61798
61799 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61800
61801         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
61802
61803 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61804
61805         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
61806         (Depends-on): Remove pathmax, same.  Add mempcpy.
61807         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
61808         (Makefile.am): Append getcwd.h to lib_SOURCES.
61809         (Include): Add getcwd.h.
61810         (Maintainer): Change from Jim Meyering to "all, glibc",
61811         since getdate now uses intended-for-glibc code.
61812         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61813         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61814
61815 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61818         HP's ANSI C compiler.
61819         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61820         Declaring int functions causes warnings on some modern systems and
61821         shouldn't be needed to compile on ancient ones.
61822         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61823         defined.
61824
61825         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61826         with the following changes.
61827         (__set_errno): Parenthesize properly.
61828         Include <stdbool.h>.
61829         (MIN, MAX, MATCHING_INO): New macros.
61830         (__getcwd): Define with prototype, not K&R form.
61831         Use heuristics to allocate default buffer on stack if possible.
61832         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61833         behavior, and to avoid the PATH_MAX limit when computing
61834         ../../../../...
61835         Use MATCHING_INO to compare inode number to file.
61836         Check for arithmetic overflow in size calculations.
61837         Fix bug in reallocation of dot array that caused getcwd to fail
61838         on directories nested deeper than 75.
61839         Be more careful about saving errno on error.
61840         Do not use realloc; use only free+malloc, as this is a bit
61841         more flexible and avoids a needless copy operation.
61842         Do not inspect st_dev and st_ino for symbolic links; POSIX
61843         doesn't specify the latter.
61844         Check for closedir errors.
61845         Avoid needless casts.
61846         Use "#ifdef weak_alias" around weak_alias, to be like other
61847         glibc code.
61848         The following changes to getcwd.c have effect only when used in
61849         gnulib; they have no effect inside glibc proper.
61850         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61851         as alloca isn't used.
61852         (alloca, __alloca): Likewise.
61853         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61854         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61855         unconditionally, as gnulib assumes C89 or better.
61856         Do not include <sys/param.h>.
61857         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61858         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61859         better.
61860         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61861         Include <dirent.h> in a way that is compatible with modern Autoconf.
61862         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61863         New macros, if not already defined.
61864         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61865         Use "_LIBC", not "defined _LIBC", for consistency.
61866         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61867         a mempcpy module.
61868         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61869         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61870         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61871         credit only to Jim Meyering and adjust the copyright dates.
61872         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61873         <stdlib.h>, <unistd.h>, "pathmax.h".
61874         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61875         (INITIAL_BUFFER_SIZE): Remove.
61876         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61877
61878 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61879
61880         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61881         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61882         Use the _ONCE methods, for efficiency.
61883         Check for fcntl.h.  In test program, include <errno.h>
61884         and <fcntl.h> if available.  Remove old K&R cruft from
61885         test program.  Check for common errors in GNU/Linux,
61886         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61887         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61888         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61889         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61890         name accordingly.
61891         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61892         accommodate new getcwd.c.
61893         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61894         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61895         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61896         that's all we need now.
61897
61898 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61899
61900         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61901         argp-parse.c depends on getopt internals, that means we should
61902         always use our getopt, to be on the safe side.
61903         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61904         order not to spoil the result of an eventual previous invocation
61905         of gl_GETOPT_SUBSTITUTE.
61906
61907 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61908
61909         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61910         redefinition warnings. To avoid them, include the defines
61911         in `#if !defined __need_getopt ... #endif'. The only place
61912         where __getopt_argv_const is used is in definitions
61913         of getopt_long and getopt_long_only below, which are as well
61914         protected by `#ifndef __need_getopt'.
61915         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61916         __need_getopt after including <stdio.h> and <unistd.h> These
61917         headers might have defined it.
61918
61919 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61920
61921         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61922
61923 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61924
61925         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61926         (futimens): New function, which uses futimes if available.
61927         (futimens, utimens): Support timespec==NULL, with same semantics
61928         as utime and utimens.
61929         * lib/utimens.h (futimens): New decl.
61930
61931 2004-11-23  Jim Meyering  <jim@meyering.net>
61932
61933         * lib/getopt_.h: Remove trailing blanks.
61934
61935 2004-11-23  Jim Meyering  <jim@meyering.net>
61936
61937         * lib/__fpending.c: Add comment.
61938
61939 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61940
61941         * modules/canonicalize (Depends-on): Add xreadlink.
61942         Problem reported by James Youngman.
61943
61944 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61945
61946         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61947         New macros.
61948         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61949         optopt): Use them instead of invoking ## directly; otherwise, the
61950         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61951
61952 2004-11-19  Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/strtok_r.c: Move comments from here...
61955         * lib/strtok_r.h: ... to here.
61956
61957 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61958
61959         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61960         implementations that mishandle size_t overflow.
61961
61962 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61963
61964         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61965         might fail.  Problem reported by Yoann Vandoorselaere.
61966         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61967         implementations that mishandle size_t overflow.
61968
61969 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61970
61971         * modules/canon-host (Depends-on): Add strdup.
61972
61973 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61974
61975         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61976
61977 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         * lib/canon-host.c: Include "strdup.h".
61980         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61981         Use strdup instead of malloc/strcpy to duplicate strings.
61982
61983         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61984         (human_space_before_unit): New constant.
61985         * lib/human.c (human_readable): Support it.
61986
61987         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61988         (xgetcwd): Set errno correctly when failing.
61989         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61990         the failure is actually due to a PATH_MAX problem.
61991
61992         Further getopt changes to make it more likely that glibc will
61993         buy the changes back.
61994         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61995         (getopt): Use it, so to preserve glibc semantic
61996         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61997         when compiling for libc.
61998         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61999         (getopt_long, getopt_long_only): Use it.
62000
62001         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62002         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
62003         (getopt): Argv is now char * const *, as per standard.
62004         (_getopt_internal_r, _getopt_internal): Argv is now char **,
62005         not char *__getopt_argv_const *.
62006         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62007         _getopt_long_only_r): Likewise.
62008         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
62009         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62010         _getopt_long_r, _getopt_long_only_r): Likewise.
62011         * lib/getopt_.h (__getopt_argv_const): Remove.
62012         (getopt): Argv is now char * const *, as per standard.
62013
62014         * lib/getdate.y (tORDINAL): New token.
62015         (day, relunit): Allow it for relative times.
62016         (relative_time_table): Use tORDINAL for ordinals.
62017
62018 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62019
62020         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
62021         Document that "second" isn't allowed as an ordinal number.
62022
62023 2004-11-16  Jim Meyering  <jim@meyering.net>
62024
62025         * modules/closeout (Depends-on): Add fpending.
62026
62027 2004-11-15  Jim Meyering  <jim@meyering.net>
62028
62029         * lib/closeout.c: Include "__fpending.h" once again.
62030         Include <stdbool.h>.
62031         (close_stdout): Don't fail just because stdout was closed initially,
62032         since some programs don't write to stdout in the normal course of
62033         operation (other than --version and --help), and we don't want this
62034         function to make e.g. `touch file >&-' fail.
62035         But do fail if it was closed and someone has tried to write to it.
62036         E.g., `printf foo >&-' must fail.
62037
62038 2004-11-13  Jim Meyering  <jim@meyering.net>
62039
62040         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
62041
62042 2004-11-12  Simon Josefsson  <jas@extundo.com>
62043
62044         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
62045         small doc fix is still pending.
62046
62047 2004-11-11  Simon Josefsson  <jas@extundo.com>
62048
62049         * modules/strtok_r: New file.
62050
62051         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62052         strtok_r.
62053
62054 2004-11-11  Simon Josefsson  <jas@extundo.com>
62055
62056         * m4/strtok_r.m4: New file.
62057
62058         * m4/getopt.m4: Replace opterr.
62059
62060 2004-11-11  Simon Josefsson  <jas@extundo.com>
62061
62062         * lib/strtok_r.h, strtok_r.c: New file.
62063
62064 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62065
62066         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
62067         of replacing opterr, getopt, etc.  This should handle the
62068         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
62069
62070 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
62073         we can stop lying to compilers about the constness of argv when we
62074         are compiled outside glibc.
62075         (getopt, getopt_long, getopt_long_only): Use it.
62076         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62077         _getopt_internal, getopt): Likewise.
62078         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62079         _getopt_long_only_r): Likewise.
62080         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62081         _getopt_long_r, _getopt_long_only_r): Likewise.
62082
62083         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
62084         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
62085         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
62086         the other external symbols.
62087         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
62088         declaration, since the above renaming now works around collisions.
62089
62090 2004-11-11  Jim Meyering  <jim@meyering.net>
62091
62092         * lib/linebreak.c: Remove trailing blanks.
62093         * lib/alloca_.h: Likewise.
62094         * lib/acosl.c: Likewise.
62095         * lib/euidaccess.c: Likewise.
62096         * lib/allocsa.h: Likewise.
62097
62098 2004-11-10  Simon Josefsson  <jas@extundo.com>
62099
62100         * m4/getaddrinfo.m4: New file.
62101
62102 2004-11-10  Simon Josefsson  <jas@extundo.com>
62103
62104         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
62105
62106 2004-11-10  Simon Josefsson  <jas@extundo.com>
62107
62108         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62109         getaddrinfo.
62110
62111         * modules/getaddrinfo: New file.
62112
62113 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
62116
62117 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         * lib/mktime.c (SHR): New macro, which is a portable
62120         substitute for >> that should work even on Crays.
62121         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
62122         Problem reported by Mark D. Baushke in
62123         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
62124         * lib/getdate.y (SHR): Likewise.
62125         (tm_diff): Use it.
62126         * lib/strftime.c (SHR): Likewise.
62127         (tm_diff): Use it.
62128         * lib/quotearg.c (struct quoting_options): Use unsigned int for
62129         quote_these_too, so that right shifts are well defined.  All uses
62130         changed.
62131
62132 2004-11-10  Jim Meyering  <jim@meyering.net>
62133
62134         Ensure that no close failure goes unreported.
62135         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
62136         return early when it seems there's nothing to flush.
62137         Don't include __fpending.h.
62138
62139 2004-11-10  Jim Meyering  <jim@meyering.net>
62140
62141         * modules/closeout (Depends-on): Remove fpending.
62142
62143 2004-11-10  Jim Meyering  <jim@meyering.net>
62144
62145         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
62146
62147 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62148
62149         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
62150         gl_FUNC_STRFTIME.
62151         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
62152         and AC_REQUIRE when possible, to avoid duplicate checks.
62153         Check for <wchar.h>.
62154
62155 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
62158
62159 2004-11-09  Bruno Haible  <bruno@clisp.org>
62160
62161         * m4/sockpfaf.m4: New file.
62162
62163 2004-11-05  Bruno Haible  <bruno@clisp.org>
62164
62165         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
62166         Reported by Mark D. Baushke <mdb@cvshome.org>.
62167
62168 2004-11-04  Bruno Haible  <bruno@clisp.org>
62169
62170         2004-09-11  Bruno Haible  <bruno@clisp.org>
62171                 * allocsa.valgrind: New file.
62172         2004-02-06  Bruno Haible  <bruno@clisp.org>
62173                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
62174                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
62175                 Reported by Christopher Seip <chris.seip@hp.com>.
62176
62177 2004-11-04  Bruno Haible  <bruno@clisp.org>
62178
62179         * modules/allocsa (Files): Add lib/allocsa.valgrind.
62180         (Makefile.am): Distribute it.
62181
62182 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62183
62184         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
62185         with errno == ERANGE if the buffer is too small.
62186         Problem reported by Mark D. Baushke.
62187
62188 2004-11-03  Albert Chin  <china@thewrittenword.com>
62189             Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
62192         equivalent, substitute $ac_type for equivalent type rather than
62193         blindly using uint32_t *always* which won't work if uint32_t is not
62194         available.  Define _UINT32_T to work around typedef of uint32_t if
62195         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
62196         2.5.1.
62197
62198 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62199
62200         * m4/jm-macros.m4: Sync from coreutils.
62201         (gl_MACROS): Check for mbrlen, for pathchk.
62202         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
62203
62204 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62205
62206         * lib/xreadlink.c (MAXSIZE): New macro.
62207         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
62208         size does not exceed MAXSIZE.  Avoid cast.
62209         As suggested by Mark D. Baushke in
62210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
62211         if readlink fails with buffer size just under MAXSIZE, try again
62212         with MAXSIZE.
62213
62214 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62215
62216         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
62217
62218 2004-11-02  Derek R. Price  <derek@ximbiot.com>
62219         and  Paul Eggert  <eggert@cs.ucla.edu>
62220
62221         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
62222         (get_date): Overparenthesize to avoid GCC warning.
62223
62224 2004-11-02  Bruno Haible  <bruno@clisp.org>
62225
62226         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
62227         returns void.
62228
62229 2004-11-02  Bruno Haible  <bruno@clisp.org>
62230
62231         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
62232         function returns void.
62233
62234 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62235
62236         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
62237         fflush_unlocked, flockfile, funlockfile, funlockfile,
62238         fputs_unlocked, putc_unlocked.
62239
62240 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62241
62242         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62243         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
62244         already declared.
62245
62246 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62247
62248         * modules/getdate (Files): Add doc/getdate.texi.
62249         (Depends-on): Add setenv, xalloc.
62250
62251 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62252
62253         * lib/getdate.y: Add support for TZ="foo" within a date string.
62254         Fix some bugs near time_t boundaries.  Reject dates with
62255         out-of-range components, e.g., "Sept 31".
62256         Include <stdlib.h>, "setenv.h", "xalloc.h".
62257         (ISDIGIT_LOCALE): Remove; unused.
62258         Note that the TZ and time functions used here are not reentrant.
62259         (mktime_ok, get_tz): New functions.
62260         (TZBUFSIZE): New constant.
62261         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
62262         This requires that we sometimes generate our own TZ="XXX..." setting.
62263
62264 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62265
62266         * doc/getdate.texi: New file, from coreutils with modifications for
62267         the new TZ parsing.
62268
62269 2004-10-27  Derek R. Price  <derek@ximbiot.com>
62270
62271         * lib/mktime.c (not_equal_tm): Remove redundant check.
62272
62273 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         * modules/regex (lib_SOURCES): Add regex.c.
62276         Reported by James Youngman in
62277         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
62278
62279 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62280
62281         * lib/getdate.y: Use Bison 1.875 features, and some minor
62282         code cleanups.  This change does not affect semantics.
62283         Don't include <stdlib.h>; no longer needed.
62284         Don't include unlocked-io.h; only the "#if TEST" code uses
62285         stdio, and performance isn't crucial there.
62286         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
62287         Bison 1.875 features as described below.
62288         All uses of "PC." replaced by "pc->".
62289         (YYSTYPE): Add a forward declaration.
62290         (yylex, yyerror): Use full prototypes in forward decls.
62291         Use "%pure-parser" rather than obsolescent "%pure_parser".
62292         Use %parse-param and %lex-param instead of obsolescent
62293         YYPARSE_PARAM and YYLEX_PARAM.
62294         (meridian_table, month_and_day_table, time_units_table,
62295         relative_time_table, time_zone_table, military_table,
62296         lookup_zone, lookup_word, get_date):
62297         Use NULL instead of 0 where appropriate.
62298         (to_hour): Avoid abort (), to avoid a dependency on
62299         stdlib.h.
62300         (yyerror, yylex): Now accepts parser_control * arg.
62301         (main) [TEST]: Use '\0' rather than 0 for char.
62302
62303 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62304
62305         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
62306
62307 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62308
62309         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
62310         It's now the caller's responsibility to handle the case where
62311         !HAVE_GETPAGESIZE && !defined getpagesize.
62312
62313         * lib/mktime.c (leapyear): Arg is long int, not int.
62314
62315 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
62316
62317         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
62318
62319 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62320
62321         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
62322         missing.  Problem reported by James Youngman.
62323
62324 2004-10-16  Simon Josefsson  <jas@extundo.com>
62325
62326         * gnulib-tool: Fix comments.  Fix parse problem.
62327         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
62328
62329 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
62330
62331         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
62332         implementation of getopt_long.  Problem reported by Alexander Taler in:
62333         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
62334
62335 2004-10-15  Bruno Haible  <bruno@clisp.org>
62336
62337         * gnulib-tool: Untabify. Initialize supplied_libname.
62338         (func_usage): More homogenous output.
62339         (func_modules_transitive_closure, func_modules_to_filelist,
62340         func_emit_lib_Makefile_am): New functions.
62341         (func_import): New function, extracted from big case statement. Use
62342         func_get_license, func_modules_transitive_closure,
62343         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
62344         opt_lgpl. Don't use test -a, as it's not portable.
62345         (func_create_testdir): Use func_modules_transitive_closure,
62346         func_modules_to_filelist, func_emit_lib_Makefile_am.
62347
62348 2004-10-15  Bruno Haible  <bruno@clisp.org>
62349
62350         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
62351
62352 2004-10-15  Bruno Haible  <bruno@clisp.org>
62353
62354         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
62355         the portions belonging to each module.
62356         Suggested by Derek Robert Price <derek@ximbiot.com>.
62357
62358 2004-10-12  Simon Josefsson  <jas@extundo.com>
62359
62360         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62361         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
62362         to real functions.
62363
62364 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62365
62366         * modules/vsnprintf: New file.
62367
62368 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62369
62370         * m4/vsnprintf.m4: New file.
62371
62372 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62373
62374         * lib/vsnprintf.h: New file.
62375         * lib/vsnprintf.c: New file.
62376
62377 2004-10-11  Bruno Haible  <bruno@clisp.org>
62378
62379         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62380         vsnprintf.
62381
62382 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62383
62384         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62385
62386 2004-10-07  Bruno Haible  <bruno@clisp.org>
62387
62388         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62389         fits into the provided buffer.
62390
62391 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62392
62393         * lib/diacrit.c, diacrit.h: Add GPL notice.
62394
62395         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62396         notice.
62397         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62398         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62399         This avoids a potential constant-folding bug.
62400
62401 2004-10-05  Bruno Haible  <bruno@clisp.org>
62402
62403         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62404         for the declaration of strsep.
62405
62406 2004-10-05  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62409
62410 2004-10-04  Simon Josefsson  <jas@extundo.com>
62411
62412         * modules/memmem: New file.
62413         * tests/test-memmem.c: New file.
62414         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62415
62416 2004-10-04  Simon Josefsson  <jas@extundo.com>
62417
62418         * m4/memmem.m4: New file.
62419
62420 2004-10-04  Simon Josefsson  <jas@extundo.com>
62421
62422         * lib/memmem.h: New file.
62423         * lib/memmem.c: New file, taken from glibc.
62424
62425 2004-10-04  Simon Josefsson  <jas@extundo.com>
62426
62427         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62428         '#ifdef USE_UNLOCKED_IO'.
62429
62430 2004-10-04  Simon Josefsson  <jas@extundo.com>
62431
62432         * config/srclist.txt: Add memmem from glibc.
62433
62434 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62437
62438         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62439         modules/exclude, modules/getdate, modules/getline,
62440         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62441         modules/getusershell, modules/linebuffer, modules/md5,
62442         modules/mountlist, modules/posixtm, modules/readtokens,
62443         modules/readutmp, modules/regex, modules/sha1,
62444         modules/version-etc, modules/yesno:
62445         Remove dependency on unlocked-io.
62446
62447 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62450
62451         * m4/unlocked-io.m4: Add copyright notice.
62452         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62453
62454 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62457         * lib/xmalloc.c (xmemdup): Likewise.
62458         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62459         XFREE): Remove these long-obsolescent macros.
62460         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62461         * lib/xstrdup.c: Remove.
62462
62463         * lib/regex.c (re_comp): Cast gettext return value to char *,
62464         Problem reported by Martin Neitzel via Mark D. Baushke.
62465
62466 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62469         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62470         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62471         regex.c, sha1.c, version-etc.c, yesno.c:
62472         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62473         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62474         the includer's responsibility.
62475
62476         Sync from coreutils.
62477
62478         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62479         points to the start of a string, as the C Standard says the
62480         resulting behavior is undefined.
62481
62482         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62483         simple -> simple_backups, numbered_existing ->
62484         numbered_existing_backups, numbered -> numbered_backups
62485         to avoid shadowing problems.  All uses changed.
62486         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62487         * lib/backupfile.c (check_extension, numbered_backup):
62488         Rename locals to avoid shadowing 'basename'.
62489         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62490         once.
62491
62492         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62493         * lib/.cvsignore: Add getopt.h.
62494
62495 2004-10-04  Bruno Haible  <bruno@clisp.org>
62496
62497         * modules/README: New file.
62498         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62499         not a module.
62500
62501 2004-10-02  Jim Meyering  <jim@meyering.net>
62502
62503         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62504
62505 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62506
62507         * modules/strsep: New file.
62508
62509 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62510
62511         * m4/strsep.m4: New file.
62512
62513 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62514
62515         * lib/strsep.h: New file.
62516         * lib/strsep.c: New file.
62517
62518 2004-10-01  Simon Josefsson  <jas@extundo.com>
62519
62520         * lib/snprintf.c (snprintf): Handle size==0.
62521
62522 2004-10-01  Simon Josefsson  <jas@extundo.com>
62523             Bruno Haible  <bruno@clisp.org>
62524
62525         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62526         (snprintf): Declare 'args'.
62527
62528 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         * lib/snprintf.c: Remove comments as to why each header is needed.
62531
62532 2004-10-01  Bruno Haible  <bruno@clisp.org>
62533
62534         * MODULES.html.sh: Add strsep.
62535
62536 2004-09-30  Simon Josefsson  <jas@extundo.com>
62537
62538         * modules/snprintf: New file.
62539
62540 2004-09-30  Simon Josefsson  <jas@extundo.com>
62541
62542         * m4/snprintf.m4: New file.
62543
62544 2004-09-30  Simon Josefsson  <jas@extundo.com>
62545
62546         * lib/snprintf.h, lib/snprintf.c: New files.
62547
62548 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62549
62550         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62551         (hol_entry_help): Never translate an empty string.
62552         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62553         * lib/argp.h (OPTION_NO_TRANS): New option.
62554
62555 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         * modules/argp (Maintainer): Replace Simon Josefsson
62558         by Sergey Poznyakoff.
62559
62560 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62561
62562         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62563         changes merged back into glibc.
62564
62565 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62568
62569 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62570
62571         * lib/xvasprintf.c: Include xalloc.h.
62572         (xvasprintf): Use xalloc_die, not xmalloc_die.
62573
62574 2004-09-29  Bruno Haible  <bruno@clisp.org>
62575
62576         * modules/alloca-opt: New file, derived from modules/alloca.
62577         * modules/allocsa: Depend on alloca-opt instead of alloca.
62578         * modules/setenv: Likewise.
62579         * modules/vasnprintf: Likewise.
62580         * MODULES.html.sh: Add alloca-opt.
62581
62582 2004-09-28  Simon Josefsson  <jas@extundo.com>
62583
62584         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62585         LGPL, and to replace license template from GPL to LGPL.
62586
62587 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62588
62589         * modules/dummy: Change license to LGPL.
62590
62591 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62592
62593         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62594
62595 2004-09-24  Simon Josefsson  <jas@extundo.com>
62596
62597         * modules/minmax (License): Change from GPL to LGPL.
62598
62599 2004-09-23  Simon Josefsson  <jas@extundo.com>
62600
62601         * gnulib-tool (--import): Typo.
62602
62603 2004-09-23  Simon Josefsson  <jas@extundo.com>
62604
62605         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62606
62607 2004-09-22  Bruno Haible  <bruno@clisp.org>
62608
62609         * modules/*: Add 'License' field.
62610         * gnulib-tool: Accept --extract-license option.
62611         (func_get_license): New function.
62612
62613 2004-09-21  Bruno Haible  <bruno@clisp.org>
62614
62615         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62616         Reported by Simon Josefsson.
62617
62618 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62621         gl_AC_TYPE_LONG_LONG.
62622
62623 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62626
62627 2004-09-18  Simon Josefsson  <jas@extundo.com>
62628         and  Paul Eggert  <eggert@cs.ucla.edu>
62629
62630         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62631         calls with autoreconf.  Define GL_LIB.
62632
62633 2004-09-14  Karl Berry  <karl@gnu.org>
62634
62635         * config/srclist.txt: unsync setenv.c, sigh.
62636
62637 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62640         Problem reported by Bruno Haible in:
62641         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62642
62643 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62644
62645         * config/srclist.txt: Comment out argp-pvh.c.
62646
62647 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
62648
62649         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
62650         in case some system header has #define'd it.  Problem reported by
62651         Soeren D. Schulze in
62652         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
62653
62654 2004-09-09  Karl Berry  <karl@gnu.org>
62655
62656         * regex.[ch]: delete from the root.  These were supposed to be
62657                 synced with emacs cvs, but this has not happened for about
62658                 a year, and anyway nothing else uses emacs regex.[ch].
62659                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
62660                 lib/regex[.ch] is untouched.
62661
62662 2004-09-09  Bruno Haible  <bruno@clisp.org>
62663
62664         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
62665
62666 2004-09-09  Bruno Haible  <bruno@clisp.org>
62667
62668         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
62669         modifications.
62670         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
62671
62672 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62673
62674         * modules/xvasprintf: New file.
62675         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
62676
62677 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62678
62679         * lib/xvasprintf.h: New file.
62680         * lib/xvasprintf.c: New file.
62681         * lib/xasprintf.c: New file.
62682
62683 2004-09-08  Bruno Haible  <bruno@clisp.org>
62684
62685         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
62686
62687 2004-09-08  Bruno Haible  <bruno@clisp.org>
62688
62689         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
62690         length is > INT_MAX.
62691         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
62692         more.
62693
62694 2004-09-08  Bruno Haible  <bruno@clisp.org>
62695
62696         * lib/stdint_.h: New file, taken from GNU clisp.
62697
62698 2004-09-08  Bruno Haible  <bruno@clisp.org>
62699             Oskar Liljeblad  <oskar@osk.mine.nu>
62700
62701         * modules/stdint: New file.
62702         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
62703
62704 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         Import from coreutils.
62707         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
62708         strings on unbounded length.  alloca's performance benefits aren't
62709         that important here.
62710         (V_STRDUP): Remove.
62711         (parse_with_separator): New function, with most of the internals
62712         of the old parse_user_spec.  Allow user to omit both user and group,
62713         for compatibility with FreeBSD.
62714         Clone only the user name, not the entire spec.
62715         Do not set *uid, *gid unless entirely successful.
62716         Avoid memory leak in some failing cases.
62717         Fix regression for USER.GROUP reported by Dmitry V. Levin in
62718         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
62719         (parse_user_spec): Rewrite to use parse_with_separator.
62720
62721 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62722
62723         * modules/userspec: Don't depend on alloca.
62724
62725 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62726
62727         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
62728
62729 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62730
62731         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
62732         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
62733         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
62734
62735 2004-08-16  Simon Josefsson  <jas@extundo.com>
62736
62737         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
62738         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
62739         Add --dry-run for --import.
62740         Let user provided command line parameters override configure.ac
62741         settings.
62742
62743 2004-08-12  Simon Josefsson  <jas@extundo.com>
62744
62745         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
62746         as discussed with Paul Eggert in threads rooted at
62747         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
62748         and
62749         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
62750         Before, the test was empty, and relied on ELIDE_CODE in source
62751         code.)
62752         (gl_PREREQ_GETOPT): New macro.
62753         (gl_GETOPT): Use them.
62754
62755 2004-08-12  Simon Josefsson  <jas@extundo.com>
62756
62757         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
62758         * lib/getopt_.h: Renamed from getopt.h.
62759
62760 2004-08-12  Simon Josefsson  <jas@extundo.com>
62761
62762         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
62763         Change default library name from libfoo to libgnu.
62764         Now, if you have a configure.ac that says:
62765                 gl_SOURCE_BASE(gl)
62766                 gl_M4_BASE(gl/m4)
62767                 gl_MODULES(error getopt etcetera)
62768                 gl_INIT
62769         you can import all you need by running:
62770                 ../gnulib/gnulib-tool --import
62771
62772         * modules/getopt (Files): Rename getopt.h to getopt_.h.
62773         (Makefile.am): Rewrite, use logic from argz.
62774         (Include): Use <getopt.h> instead of "getopt.h".
62775
62776 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62777
62778         * modules/argp (Files): Add m4/unlocked-io.m4.
62779         (Depends-on): Add extensions.
62780
62781 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
62784         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
62785         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
62786         Check for program_invocation_name, program_invocation_short_name,
62787         flockfile, funlockfile, features.h, _getopt_long_only_r.
62788
62789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62790
62791         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
62792         its complicated substitute.
62793         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
62794         and program_invocation_name.
62795         (__argp_basename) [!_LIBC]: Remove; the only use was
62796         replaced by its body.
62797         (__argp_short_program_name): Change condition from
62798         !defined __argp_short_program_name to
62799         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
62800         to match argp-namefrob.h.
62801         (__argp_failure): Don't assume strerror_r returns char *.
62802         * lib/argp-parse.c (N_): Define unconditionally.
62803         (argp_default_options): Fill out initializers with 0 to avoid
62804         gcc warnings.
62805
62806 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62807
62808         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
62809         getopt1.c.
62810
62811 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62812
62813         Merge from coreutils.
62814
62815         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62816
62817         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62818         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62819
62820 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62821
62822         Merge from coreutils.
62823
62824         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62825         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62826         for Reliant Unix 5.43.
62827
62828         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62829         (union fooround): Use uintmax_t, not long int.
62830         The rest is a merge from libc:
62831         [defined _LIBC]: Include <shlib-compat.h>.
62832         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62833
62834         * lib/settime.c (settime): Recode to avoid warning with
62835         Sun Forte C 6U2.
62836
62837         * lib/strverscmp.c: Convert to UTF-8.
62838
62839 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62840
62841         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62842         m4/uintmax_t.m4.
62843
62844 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62845
62846         * modules/xalloc-die: New file.
62847         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62848
62849         * modules/md5 (Files): Add m4/uint32_t.m4.
62850         * modules/sha1: Renamed from modules/sha.
62851         (Files):
62852         Rename lib/sha.h to lib/sha1.h.
62853         Rename lib/sha.c to lib/sha1.c.
62854         Rename m4/sha.m4 to m4/sha1.m4.
62855         (lib_SOURCES): Likewise.
62856         (configure.ac): Rename gl_SHA to gl_SHA1.
62857         (Include): sha.h -> sha1.h.
62858
62859 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62862         * m4/sha1.m4: Renamed from sha.m4.
62863         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62864
62865 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62866
62867         * lib/obstack.h (obstack_empty_p):
62868         Don't assume that chunk->contents is suitably aligned.
62869         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62870         Likewise. Problem reported by Benno in
62871         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62872
62873         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62874         readable.  This could be improved further but it'd take some work.
62875
62876 2004-08-08  Simon Josefsson  <jas@extundo.com>
62877
62878         * modules/xgethostname (Depends-on): Remove exit and error (not
62879         used).
62880
62881         * modules/getpass-gnu: Add getpass.h.
62882         (Depends-on): Add stdbool.
62883         * modules/getpass: Add getpass.h.
62884
62885 2004-08-08  Simon Josefsson  <jas@extundo.com>
62886
62887         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62888         Check getpass declaration.
62889
62890 2004-08-08  Simon Josefsson  <jas@extundo.com>
62891
62892         * lib/xgethostname.c: Don't include error.h (not used).
62893
62894         * lib/getpass.h: Add.
62895         * lib/getpass.c: Include getpass.h first.
62896
62897 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62898
62899         * lib/xalloc-die.c: New file.
62900         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62901         All uses removed.
62902         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62903         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62904         xalloc-die.c.
62905         (_, N_, xalloc_die): Move to xalloc-die.c.
62906         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62907         so that we needn't mess with xalloc_msg_memory_exhausted.
62908
62909         * lib/sha1.h: Renamed from sha.h.
62910         (SHA1_H): Renamed from _SHA_H.
62911         (sha1_ctx): Renamed from sha_ctx.
62912         (sha1_init_ctx): Renamed from sha_init_ctx.
62913         (sha1_process_block): Renamed from sha_process_block.
62914         (sha1_process_bytes): Renamed from sha_process_bytes.
62915         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62916         (sha1_read_ctx): Renamed from sha_read_ctx.
62917         (sha1_stream): Renamed from sha_stream.
62918         (sha1_buffer): Renamed from sha_buffer.
62919         * lib/sha1.c: Likewise; renamed from sha.c.
62920         Do not include <sys/types.h>.
62921         Include <stddef.h> rather than <stdlib.h>.
62922
62923 2004-08-08  Bruno Haible  <bruno@clisp.org>
62924
62925         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62926         FILESYSTEM_PREFIX_LEN.
62927         * lib/progreloc.c: Likewise.
62928         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62929
62930 2004-08-06  Simon Josefsson  <jas@extundo.com>
62931
62932         * modules/progname (Depends-on): Don't depend on stdbool.
62933
62934 2004-08-06  Simon Josefsson  <jas@extundo.com>
62935
62936         * modules/getsubopt: New file.
62937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62938         getsubopt.
62939
62940 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62941
62942         More merge from coreutils.
62943
62944         * m4/utimens.m4, m4/utimecmp.m4: New files.
62945         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62946         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62947         prereq.m4, sha.m4: Import changes from coreutils.
62948
62949 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62950
62951         More merge from coreutils.
62952         * modules/raise, modules/readtokens0, modules/utimens:
62953         * modules/utimecmp, module/xnanosleep: New files.
62954         * modules/strftime: Add lib/strftime.h.
62955         Change include from <time.h> to "strftime.h".
62956         * modules/yesno: Add lib/yesno.h.
62957         * modules/backupfile: Remove lib/addext.c.
62958         * modules/euidaccess: Add stat-macros.h.
62959         * modules/canonicalize, modules/euidaccess,
62960         modules/filemode, modules/lchown, modules/makepath,
62961         modules/rmdir, modules/stat: Likewise.
62962
62963 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62964
62965         Merge from tar.
62966         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62967         SIZE_MAX is a valid preprocessor constant.
62968         (__argp_basename): Change from "#ifndef _LIBC"
62969         to "#ifndef __argp_short_program_name", so that
62970         we don't compile these functions for tar.
62971
62972         More merges from coreutils.
62973         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62974         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62975         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62976         * lib/addext.c: Remove; no longer needed.
62977         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62978         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62979         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62980         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62981         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62982         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62983         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62984         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62985         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62986         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62987         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62988         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62989         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62990         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62991         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62992         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62993         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62994         Import changes from coreutils.
62995
62996 2004-08-05  Simon Josefsson  <jas@extundo.com>
62997
62998         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62999
63000 2004-08-05  Simon Josefsson  <jas@extundo.com>
63001
63002         * m4/getsubopt.m4: New file.
63003
63004 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63005
63006         Merge from coreutils.
63007
63008         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
63009         * m4/getcwd-path-max.m4: New files.
63010
63011         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
63012         FILESYSTEM_PREFIX_LEN ->
63013         FILE_SYSTEM_PREFIX_LEN.
63014         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
63015         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
63016         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
63017         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
63018
63019         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
63020         prerequisite modules now handle the DOS stuff.
63021         Don't check for unistd.h.
63022
63023 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63024
63025         Merge from coreutils.
63026
63027         * lib/.gdb-history: Remove; this doesn't belong here.
63028
63029         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
63030         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
63031         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
63032         * lib/getcwd.c: New files.
63033
63034         * lib/dirname.h: Include <stdbool.h>.
63035         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
63036         for consistency with POSIX terminology.  All uses changed.
63037         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
63038         (strip_trailing_slashes): Use bool for booleans.
63039         * lib/stripslash.c (strip_trailing_slashes): Likewise.
63040
63041         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
63042         sometimes returns a positive errno value even when it succeeds.
63043         (print_errno_message) [!LIBC]: Fall back on strerror if
63044         __strerror_r fails.
63045
63046         * lib/path-concat.c (mempcpy): Don't define if a system header defines
63047         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
63048         (longest_relative_suffix): New function.
63049         (path_concat): Use it.  Assume first argument is not NULL.
63050         Port to DOS.  Omit redundant separators.
63051         Report an error instead of returning NULL.
63052         Use mempcpy instead of memcpy.
63053         (xpath_concat): Remove: not declared or used.
63054
63055         * lib/same.h: Include <stdbool.h>
63056         (same_name): Return bool, not int.
63057         * lib/same.c (same_name): Likewise.
63058         (errno): Don't declare; we assume C89 or better now.
63059
63060         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
63061         if not already defined.
63062
63063         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
63064         * lib/dup-safer.c (errno): Likewise.
63065
63066 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         Merge from coreutils.
63069         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
63070         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
63071         * modules/path-concat: Don't depend on strdup.
63072
63073 2004-08-03  Simon Josefsson  <jas@extundo.com>
63074
63075         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
63076         * lib/progname.h: Don't include stdbool.h.
63077
63078 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63079
63080         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
63081         * MODULES.html.sh (func_all_modules): Remove fatal.
63082
63083 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63084
63085         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
63086
63087 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63088
63089         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
63090         working.
63091
63092 2004-08-02  Simon Josefsson  <jas@extundo.com>
63093
63094         * lib/getsubopt.h: New file, with comments from Bruno Haible.
63095         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
63096         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
63097
63098 2004-08-01  Simon Josefsson  <jas@extundo.com>
63099
63100         * lib/xgetdomainname.c: Include stdlib.h, for free().
63101
63102 2004-07-19  Bruno Haible  <bruno@clisp.org>
63103
63104         * MODULES.html.sh (func_all_modules): Add dummy.
63105
63106 2004-07-16  Simon Josefsson  <jas@extundo.com>
63107
63108         * modules/dummy: New file.
63109
63110 2004-07-16  Simon Josefsson  <jas@extundo.com>
63111
63112         * lib/dummy.c: New file.
63113
63114 2004-07-16  Bruno Haible  <bruno@clisp.org>
63115
63116         * lib/backupfile.h: Add extern "C" for C++.
63117         * lib/closeout.h: Likewise.
63118         * lib/copy-file.h: Likewise.
63119         * lib/findprog.h: Likewise.
63120         * lib/full-write.h: Likewise.
63121         * lib/pathname.h: Likewise.
63122         * lib/progname.h: Likewise.
63123         * lib/stpcpy.h: Likewise.
63124         * lib/stpncpy.h: Likewise.
63125         * lib/strcase.h: Likewise.
63126         * lib/strstr.h: Likewise.
63127         * lib/xalloc.h: Likewise.
63128
63129         * lib/mbswidth.h: Add extern "C" for C++.
63130         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
63131
63132 2004-07-13  Robert Millan  <robertmh@gnu.org>
63133
63134         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
63135
63136 2004-07-09  Simon Josefsson  <jas@extundo.com>
63137
63138         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
63139         failed without this.)
63140
63141 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63142
63143         * modules/chown (Files): Add lib/fchown-stub.c, since
63144         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
63145
63146 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63147
63148         * lib/fchown-stub.c: New file.
63149
63150 2004-06-24  Jim Meyering  <jim@meyering.net>
63151
63152         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
63153
63154 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63155
63156         * modules/argz: Omit "#include".
63157
63158         * MODULES.html.sh (func_all_modules): Add calloc, to match
63159         2004-06-01 addition of calloc module.
63160
63161 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63162
63163         * m4/argz.m4: New file, which is autoupdated from libtool.
63164
63165 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
63168         libtool.
63169
63170 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63171
63172         * config/srclist-update: Don't insist on "USA." before the
63173         close-comment, as libtool omits the period and puts the */ on a
63174         separate line.
63175         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
63176         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
63177
63178 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
63179
63180         * modules/argz: New file.
63181         * MODULES.html.sh (func_all_modules): Add argz.
63182
63183 2004-06-12  Jim Meyering  <jim@meyering.net>
63184         and  Paul Eggert  <eggert@cs.ucla.edu>
63185
63186         * modules/hash (Files): Add lib/xalloc.h.
63187         * modules/pipe (Depends-on): Add wait-process.
63188         * modules/stat (Depends-on): Add xalloc.
63189         * modules/userspec (Files): Add lib/userspec.h.
63190         * modules/xstrto
63191
63192         Upgrade from gettext-0.13.
63193         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
63194         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
63195         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
63196
63197 2004-06-10  Jim Meyering  <jim@meyering.net>
63198
63199         * lib/calloc.c: New file.
63200
63201 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63202
63203         * lib/getdate.y (yylex): Allow space between sign and number.
63204         Problem reported by Dan Jacobson.
63205
63206 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63207
63208         Merge from coreutils CVS.
63209
63210         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
63211         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
63212         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
63213         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
63214         xstrtol.m4: Fix copyright date and/or serial number.
63215
63216         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
63217         See if we need an fchown replacement.
63218         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
63219         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
63220         and use the replacement function if we detect either defect.
63221
63222         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
63223         gl_UTIMECMP.
63224
63225 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63226         and  Jim Meyering  <jim@meyering.net>
63227
63228         Merge from coreutils CVS.
63229
63230         * lib/stat-macros.h: New file, with contents from file-type.h
63231         and coreutils' system.h.
63232         * lib/file-type.c: Include "stat-macros.h".
63233         * lib/file-type.h (file_type): Move all macro definitions to new file,
63234         stat-macros.h.
63235
63236         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
63237         Wrap old code with this conditional.
63238         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
63239         function that does not dereference symlinks.
63240         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
63241
63242         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
63243         dependency problems.
63244         (xreadlink): Accept new arg SIZE, for efficiency.
63245         All decls and uses changed.
63246         * lib/xreadlink.h: Include <stddef.h>, for size_t.
63247
63248         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
63249         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
63250
63251         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
63252         sysexits.h.
63253
63254 2004-06-01  Jim Meyering  <jim@meyering.net>
63255
63256         * m4/calloc.m4: New file.
63257
63258 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
63259
63260         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
63261         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
63262         Also, fix a typo in a diagnostic.
63263
63264 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
63267         or AC_FUNC_REALLOC.
63268
63269 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63270
63271         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
63272         macros to be defined.
63273         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
63274         the allocator returns NULL because the requested size is zero.
63275
63276 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
63279         var.  Add comment explaining why libc still defines it.  This
63280         merges the following patch from glibc:
63281         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
63282
63283 2004-05-20  Andreas Schwab  <schwab@suse.de>
63284
63285         * m4/free.m4: Replace free if it not known to work, not the other
63286         way round.
63287
63288 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63289
63290         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
63291         present in glibc since revision 1.1 of this file.
63292         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
63293         obstack_alignment_mask, obstack_alloc, obstack_base,
63294         obstack_blank, obstack_blank_fast, obstack_chunk_size,
63295         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
63296         obstack_grow0, obstack_init, obstack_int_grow,
63297         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
63298         obstack_next_free, obstack_object_size, obstack_ptr_grow,
63299         obstack_ptr_grow_fast, obstack_room): Remove declarations of
63300         nonexistent functions.
63301
63302 2004-05-18  Karl Berry  <karl@gnu.org>
63303
63304         * config/srclist.txt: break link for vasnprintf.c.
63305
63306 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63307
63308         Port obstack to the AS/400, where pointers are 16 bytes wide and
63309         you cannot cast an integer to a valid pointer.  This patch is
63310         currently waiting to be integrated into glibc; see
63311         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
63312
63313         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
63314         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
63315         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
63316         (struct obstack): temp member is now a union of a pointer and
63317         an integer, instead of an integer.  All integer uses changed.
63318         This does not affect the physical layout of struct obstack,
63319         except on hosts (like the AS/400) where the size or alignment of
63320         void * is greater than that of ptrdiff_t.
63321         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
63322         __STDC__)]: Store temporary in pointer member of union, not
63323         integer member.
63324         * lib/obstack.c: Include <stddef.h>, for offsetof.
63325         (struct fooalign): Remove; it doesn't need a name.
63326         (union fooround): Change double to long double, and add void *.
63327         (DEFAULT_ALIGNMENT): Use offsetof to compute.
63328         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
63329         not a macro.  Hence the values are always int; so remove all
63330         casts-to-int in uses.
63331
63332 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63333
63334         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
63335         we can get this patch merged into glibc.
63336
63337 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63338             Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         * m4/argp: Depend on alloca.
63341
63342 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63343             Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
63346         freecoding.
63347
63348 2004-05-17  Bruno Haible  <bruno@clisp.org>
63349
63350         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
63351         precision that consists of a '.' followed by an empty digit string.
63352         Patch by Tor Lillqvist <tml@iki.fi>.
63353
63354 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63355
63356         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
63357         for backward compatibility with older code.  We need our own
63358         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
63359         it under some other name, and our alloca.h will define it.
63360
63361 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63362             Derek Price  <derek@ximbiot.com>
63363
63364         * lib/alloca.c: Include <alloca.h>, to get our interface.
63365         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
63366         include <alloca.h> first.  Use C89 prototype for alloca; this
63367         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63368         Use #elif for simplicity, since we can assume C89 now.
63369         Don't try to source the system alloca.h since it will not be found
63370         and to prevent recursively including its replacement.
63371         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63372         * lib/regex.c: Likewise.
63373
63374 2004-05-16  Derek Price  <derek@ximbiot.com>
63375             Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         getline cleanup.  This changes the getndelim2 API: both order of
63378         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63379         no delimiter).
63380
63381         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63382         interface does that.
63383         (getline): Always use getdelim, so that we don't have two
63384         copies of this code.
63385         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63386         if available.
63387         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63388         (GETNDELIM2_MAXIMUM): New macro.
63389         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63390         instead of the old practice of delim2==0.  All callers changed.
63391         Return -1 on overflow, instead of returning junk.
63392         Do not set *linesize unless allocation succeeds.
63393         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63394         that we include sys/types.h.
63395         * lib/getnline.h: Likewise.
63396         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63397         (getndelim2): Reorder arguments.
63398         * lib/getnline.c (getnline, getndelim):
63399         Don't discard the NMAX argument.
63400         (getnline): Invoke getndelim, to avoid code duplication.
63401         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63402         of (size_t) -1 by callers of the getnline family.
63403
63404 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63405
63406         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63407         Check for gettimeofday.
63408         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63409         Check for settimeofday, stime.
63410
63411 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         * lib/nanosleep.c (suspended): Change its type from int to
63414         sig_atomic_t volatile.
63415         (first_call): Make it private to rpl_nanosleep, and have it
63416         be zero initially as that's a bit faster.
63417         (my_usleep): Round up fractional times instead of truncating them,
63418         as this is the usual meaning for 'sleep'.
63419
63420         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63421         doesn't work.
63422         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63423         (ENOSYS): Define if not defined.
63424         (settime): Fall back on stime if it exists and settimeofday fails.
63425         But don't bother with fallbacks if a method fails with errno == EPERM.
63426
63427 2004-05-11  Jim Meyering  <jim@meyering.net>
63428
63429         Prior to this change, the save_cwd caller required read access to the
63430         current directory on most systems (ones with the fchdir function).
63431
63432         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63433         fails, try write-only, and finally, resort to using xgetcwd.
63434
63435 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * lib/obstack.c, obstack.h: Import changes from libc.
63438
63439 2004-04-28  Bruno Haible  <bruno@clisp.org>
63440
63441         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63442         also implicitly appends .exe to executables.
63443         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63444         accepts Windows pathnames.
63445         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63446         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63447         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63448         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63449         Reported by Derek Robert Price <derek@ximbiot.com>.
63450
63451 2004-04-21  Karl Berry  <karl@gnu.org>
63452
63453         * config/srclist.txt (localcharset.c): break sync.
63454
63455 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63456
63457         * m4/host-os.m4: Add a copyright notice.
63458
63459 2004-04-20  Jim Meyering  <jim@meyering.net>
63460
63461         Change UTILS_ to gl_ in AC_DEFINE'd names.
63462         Change utils_- and jm_-prefixed variables, too.
63463         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63464         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63466
63467         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63468         Don't emit trailing blanks.
63469         Also rename jm_-prefixed variables to have gl_ prefix.
63470
63471         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63472         Also rename jm_-prefixed variables to have gl_ prefix.
63473
63474         * m4/jm-macros.m4: Reflect the renamings.
63475         * m4/prereq.m4: Likewise.
63476
63477 2004-04-20  Jim Meyering  <jim@meyering.net>
63478
63479         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63480         memory.
63481
63482 2004-04-20  Jim Meyering  <jim@meyering.net>
63483             Bruno Haible  <bruno@clisp.org>
63484
63485         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63486         memory when realloc fails.
63487
63488 2004-04-19  Jim Meyering  <jim@meyering.net>
63489
63490         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63491         now that readutmp.c may call `free (0)'.
63492
63493 2004-04-19  Bruno Haible  <bruno@clisp.org>
63494
63495         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63496         * m4/inttypes_h.m4: Likewise.
63497         * m4/stdint_h.m4: Likewise.
63498         * m4/intmax_t.m4: Likewise.
63499         * m4/uintmax_t.m4: Likewise.
63500
63501 2004-04-18  Jim Meyering  <jim@meyering.net>
63502
63503         * m4/prereq.m4: Don't forbid jm_ prefix.
63504
63505         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63506         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63507         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63508         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63509         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63510         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63511         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63512         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63513         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63514         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63515         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63516         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63517         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63518         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63519         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63520         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63521         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63522         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63523         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63524
63525 2004-04-18  Jim Meyering  <jim@meyering.net>
63526
63527         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63528         failure, don't leak memory and do call END_UTMP_ENT.
63529
63530 2004-04-16  Jim Meyering  <jim@meyering.net>
63531
63532         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63533         coreutils' stat program.
63534         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63535
63536 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63537
63538         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63539         C89.
63540         (CHAR_BIT): Remove, since we assume C89.
63541         Include <stdint.h> if available, as per current Autoconf CVS advice.
63542
63543 2004-03-31  Jim Meyering  <jim@meyering.net>
63544
63545         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63546         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63547         * m4/xalloc.m4: Likewise.
63548
63549 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63550
63551         Merge from coreutils.
63552
63553         * m4/inttostr.m4: New file.
63554         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63555         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63556         Require gl_CLOCK_TIME.
63557         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63558
63559 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63560
63561         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63562         not bool, to be more consistent with Unix conventions.
63563         Suggested by Bruno Haible.
63564
63565         Merge from coreutils.
63566
63567         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63568         * lib/umaxtostr.c: New files.
63569
63570         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63571         the usual <time.h> dance.
63572         (get_date): Change signature to support fractional time stamps.
63573         All callers changed.
63574         * lib/getdate.y: Include "getdate.h" first, as we can now
63575         assume C89 and don't need to worry about 'const'.
63576         Similarly, include "unlocked-io.h" near start, not in middle.
63577         Include <limits.h>.
63578         (textint.value): Use long int rather than int.
63579         (textint.digits): Use size_t rather than int.
63580         (BILLION, LOG10_BILLION): New constants.
63581         (parser_control): New member rel_ns.  Members day_ordinal,
63582         time_zone, month, day, hour, minutes, rel_year, rel_month,
63583         rel_day, rel_hour, rel_minutes, rel_seconds
63584         are now long int, not int.  Member seconds is now struct timespec,
63585         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63586         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63587         not int.
63588         (%union.intval): Now long int, not int.
63589         New member timespec.
63590         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63591         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63592         (spec): Now is a timespec or an item list.
63593         (timespec, items): New nonterminals.
63594         (time, rel, relunit, number, get_date):
63595         Add support for fractional seconds.
63596         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63597         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63598         (to_hour): First arg is now long int, not int.
63599         (to_year): Returns long int, not int.
63600         Don't treat year -70 like 70.
63601         (tm_diff): Returns long int, not int.
63602         (lookup_word): Use bool instead of int when appropriate.
63603         (yylex): Use size_t for count, not int.
63604         Detect overflow when parsing large integer constants.
63605         Add support for fractions.
63606         (get_date): Make pointers 'const' if possible.
63607         Use more-portable code to detect integer overflow.
63608         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63609         Don't use ctime; it's not reliable if the year has >4 digits.
63610
63611         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63612         This is for compatibility with BSD.
63613
63614         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63615         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63616         From coreutils' system.h.
63617
63618         * lib/userspec.c: Don't include "posixver.h".
63619         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63620         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63621         compatible extension.  Simplify code by removing a boolean int
63622         that was always nonzero if a string was nonnull.
63623
63624 2004-03-30  Jim Meyering  <jim@meyering.net>
63625
63626         Merge from coreutils.
63627
63628         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63629         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63630         on some systems one must include <grp.h> before it.
63631         Reported by Christian Krackowizer.
63632
63633 2004-03-30  Jim Meyering  <jim@meyering.net>
63634
63635         Merge from coreutils.
63636
63637         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63638
63639         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63640         an empty input stream.
63641
63642         * lib/readtokens.c: Include <stdbool.h>.
63643         (readtoken): Use `size_t' rather than int/long.
63644         All callers adjusted.
63645         Use `bool' rather than `int' where appropriate.
63646         Use memset rather than an explicit loop.
63647         Use x2nrealloc rather than xrealloc.
63648         Allow the use of `\0' as a delimiter.
63649         (readtokens): Likewise.
63650         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
63651
63652 2004-03-30  Jim Meyering  <jim@meyering.net>
63653
63654         * m4/realloc.m4: Remove file, since now it does no more than
63655         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
63656         the `configure.ac' section of module/realloc.
63657         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
63658
63659 2004-03-30  Bruno Haible  <bruno@clisp.org>
63660
63661         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
63662         nonnull.
63663
63664 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63665
63666         Merge changes to getloadavg.c from coreutils and Emacs.
63667
63668         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
63669         Define to an expression, not to the empty string.
63670         Include cloexec.h and xalloc.h.
63671         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
63672         Use set_cloexec_flag rather than rolling our own.
63673         * lib/cloexec.c, lib/cloexec.h: New files.
63674
63675 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63676
63677         * m4/cloexec.m4: New file.
63678
63679 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63680
63681         * lib/getopt.h: Sync with libc CVS.
63682
63683 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63684             Bruno Haible  <bruno@clisp.org>
63685
63686         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
63687         mbswidth.
63688
63689 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63690             Bruno Haible  <bruno@clisp.org>
63691
63692         * lib/mbswidth.h: Include <wchar.h> only if
63693         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
63694         <wchar.h>.
63695         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
63696
63697 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63698
63699         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
63700         Sync with libc CVS.
63701         * lib/getopt_int.h: New file, also synced from libc.
63702
63703 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63704
63705         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
63706         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
63707         Bring back getopt.c, getopt.h, getopt1.c.
63708
63709 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63710
63711         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
63712         All uses changed.  Check for sa_sigaction member; this fixes
63713         a bug first reported by Jason Andrade in
63714         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63715
63716 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63717
63718         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
63719         '#if' expressions.  Unlike the code it replaces, it does not
63720         depend on (defined _SC_PAGESIZE).  However, it does depend on
63721         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
63722         first reported by Jason Andrade in
63723         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63724
63725 2004-02-25  Simon Josefsson  <jas@extundo.com>
63726
63727         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
63728
63729 2004-02-25  Simon Josefsson  <jas@extundo.com>
63730
63731         * lib/strdup.h: New file.
63732         * lib/strdup.c: Include it.
63733         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
63734         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
63735
63736 2004-02-23  Karl Berry  <karl@gnu.org>
63737
63738         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
63739         (from fencepost.gnu.org:/gd/gnuorg).
63740
63741 2004-02-23  Karl Berry  <karl@gnu.org>
63742
63743         * config/srclistvars.sh (GNUORG) [karl]: redefine.
63744         * config/srclist.txt: add maintain/standards documents.
63745
63746 2004-02-18  Bruno Haible  <bruno@clisp.org>
63747
63748         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
63749         Reported by Derek Robert Price <derek@ximbiot.com>.
63750
63751 2004-02-16  Karl Berry  <karl@gnu.org>
63752
63753         * config/mkinstalldirs, install-sh: update from automake.
63754
63755 2004-02-06  Karl Berry  <karl@gnu.org>
63756
63757         * m4/po.m4: update from gettext 0.14.1.
63758
63759 2004-02-06  Karl Berry  <karl@gnu.org>
63760
63761         * lib/config.charset: update from gettext 0.14.1.
63762
63763 2004-02-05  Paul Eggert  <eggert@twinsun.com>
63764
63765         Add comments and code, prompted by suggestions from Bruno Haible
63766         for sh-quote.
63767         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
63768         describing the enum quoting_style values.
63769         * lib/quotearg.c (quotearg_alloc): New function.
63770         (quotearg_buffer_restyled): Treat lone { and } as special.
63771         Treat = as special.  Work around bug with older shells
63772         that "see" a '\' that is really the 2nd byte of a multibyte char.
63773         Quote empty string with shell_quoting_style.
63774
63775 2004-02-03  Bruno Haible  <bruno@clisp.org>
63776
63777         * m4/pipe.m4: New file, from GNU gettext.
63778
63779 2004-02-03  Bruno Haible  <bruno@clisp.org>
63780
63781         * lib/pipe.h: New file, from GNU gettext.
63782         * lib/pipe.c: New file, from GNU gettext.
63783
63784 2004-01-27  Bruno Haible  <bruno@clisp.org>
63785
63786         * m4/execute.m4: New file, from GNU gettext.
63787
63788 2004-01-27  Bruno Haible  <bruno@clisp.org>
63789
63790         * lib/execute.h: New file, from GNU gettext.
63791         * lib/execute.c: New file, from GNU gettext.
63792         * lib/w32spawn.h: New file, from GNU gettext.
63793
63794 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63795
63796         Merge from diffutils.
63797
63798         * lib/file-type.c (file_type): Add typed memory objects.
63799         * lib/file-type.h (S_TYPEISTMO): New macro.
63800
63801         * lib/c-stack.h (c_stack_action): Remove argv argument.
63802         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
63803         (die): Don't calculate message unless segv_action returns.
63804         (get_stack_location, min_address_from_argv, max_address_from_argv,
63805         volatile stack_base, volatile_stack_size): Remove.
63806         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
63807         that every segmentation violation is a stack overflow.  (Ouch!)
63808         See Debian bug 136249 (still outstanding) for more info about why
63809         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
63810
63811 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63812
63813         Exit-status fix from coreutils.
63814
63815         Use exit_failure consistently in place of EXIT_FAILURE,
63816         so that program exit statuses are consistent on failure.
63817
63818         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63819         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63820         * lib/argmatch.h: Comment fix to match the above.
63821         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63822         Now a macro referring to exit_failure, instead of a separate
63823         variable.  Include "exitfail.h" to get it.
63824         * lib/xstrtol.h: Include "exitfail.h".
63825         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63826
63827         * lib/long-options.c (parse_long_options): Use prototype
63828         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63829         for clarity.
63830
63831 2004-01-21  Jim Meyering  <jim@meyering.net>
63832
63833         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63834         so as not to conflict with a different-sized __mktime_internal
63835         function in GNU libc.
63836         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63837         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63838
63839 2004-01-20  Karl Berry  <karl@gnu.org>
63840
63841         * config/config.guess: update from config.
63842
63843         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63844
63845 2004-01-20  Bruno Haible  <bruno@clisp.org>
63846
63847         Safer stack allocation.
63848         * lib/setenv.c: Include allocsa.h.
63849         (alloca): Remove fallback definition.
63850         (freea): Remove macro.
63851         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63852         instead of freea.
63853
63854 2004-01-20  Bruno Haible  <bruno@clisp.org>
63855
63856         * m4/eealloc.m4: New file, from GNU gettext.
63857
63858 2004-01-20  Bruno Haible  <bruno@clisp.org>
63859
63860         * m4/allocsa.m4: New file, from GNU gettext.
63861
63862 2004-01-20  Bruno Haible  <bruno@clisp.org>
63863
63864         * lib/xallocsa.h: New file, from GNU gettext.
63865         * lib/xallocsa.c: New file, from GNU gettext.
63866
63867 2004-01-20  Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63870
63871 2004-01-20  Bruno Haible  <bruno@clisp.org>
63872
63873         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63874         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63875         specially.
63876
63877 2004-01-20  Bruno Haible  <bruno@clisp.org>
63878
63879         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63880         patch.
63881
63882 2004-01-20  Bruno Haible  <bruno@clisp.org>
63883
63884         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63885
63886 2004-01-20  Bruno Haible  <bruno@clisp.org>
63887
63888         * lib/eealloc.h: New file.
63889
63890 2004-01-20  Bruno Haible  <bruno@clisp.org>
63891
63892         * lib/binary-io.h: Avoid warnings on Cygwin.
63893
63894 2004-01-20  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/allocsa.h: New file, from GNU gettext.
63897         * lib/allocsa.c: New file, from GNU gettext.
63898
63899 2004-01-18  Karl Berry  <karl@gnu.org>
63900
63901         * doc/gpl.texi, doc/lgpl.texi: new files.
63902
63903 2004-01-18  Karl Berry  <karl@gnu.org>
63904
63905         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63906         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63907
63908 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63909
63910         Merge from coreutils.
63911
63912         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63913         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63914         (gl_DEFAULT_POSIX2_VERSION): Move
63915         the documentation from 'configure' into 'config.hin',
63916         so that 'configure --help' isn't burdened by it and
63917         we don't have to worry about its formatting there.
63918         Reword the documentation so that it's more succinct
63919         and can be run together into a single paragraph.
63920         * m4/same.m4 (gl_SAME): Check for pathconf.
63921
63922 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63923
63924         Merge from coreutils.
63925
63926         * lib/posixver.c: Include posixver.h.
63927
63928         * lib/same.c: Include <stdbool.h>, <limits.h>.
63929         (_POSIX_NAME_MAX): Define if not defined.
63930         (MIN): New macro.
63931         (same_name): If file names are silently truncated, report
63932         that the file names are the same if they are the same after
63933         the silent truncation.
63934
63935         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63936         conversion function.
63937         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63938         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63939         longer needed.
63940
63941 2004-01-15  Jim Meyering  <jim@meyering.net>
63942
63943         Merge from coreutils.
63944
63945         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63946         if no library is required.
63947         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63948         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63949         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63950         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63951         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63952         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63953         value, $ac_cv_search_crypt, if it's "none required".
63954         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63955         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63956         not gl_FUNC_GETLOADAVG.
63957         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63958         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63959
63960 2004-01-15  Jim Meyering  <jim@meyering.net>
63961
63962         Merge from coreutils.
63963
63964         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63965         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63966         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63967
63968         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63969         optional configure-time default.
63970
63971         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63972
63973         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63974
63975 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63976
63977         Merge from coreutils.
63978
63979         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63980         value, $ac_cv_search_nanosleep, if it's "none required".
63981
63982 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63983
63984         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63985         with like-named macro in fnmatch.c.
63986         (EXT): Use an internal constant instead.
63987
63988         Merge fnmatch patches from glibc.
63989         * lib/fnmatch.c (mbsinit): Remove define.
63990         Add libc_hidden_ver (__fnmatch, fnmatch).
63991         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63992         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63993
63994 2004-01-14  Karl Berry  <karl@gnu.org>
63995
63996         * config/install-sh: update from automake.
63997
63998 2004-01-13  Karl Berry  <karl@gnu.org>
63999
64000         * config/install-sh: update from automake.
64001
64002 2004-01-09  Karl Berry  <karl@gnu.org>
64003
64004         * config/install-sh: update from automake.
64005
64006 2004-01-05  Karl Berry  <karl@gnu.org>
64007
64008         * config/config.{sub,guess}: update from config.
64009
64010 2003-12-31  Karl Berry  <karl@gnu.org>
64011
64012         * config/depcomp: update from automake.
64013
64014 2003-12-14  Karl Berry  <karl@gnu.org>
64015
64016         * lib/config.charset: update from gettext-runtime.
64017
64018 2003-12-03  Paul Eggert  <eggert@twinsun.com>
64019
64020         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
64021         Bug reported by Alfred M. Szmidt.
64022
64023 2003-12-03  Bruno Haible  <bruno@clisp.org>
64024
64025         * m4/gettext.m4: Upgrade from gettext-0.13.
64026         * m4/po.m4: Upgrade from gettext-0.13.
64027         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
64028         * m4/intmax.m4: New file, from gettext-0.13.
64029         * m4/printf-posix.m4: New file, from gettext-0.13.
64030
64031 2003-11-29  Karl Berry  <karl@gnu.org>
64032
64033         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
64034
64035 2003-11-25  Paul Eggert  <eggert@twinsun.com>
64036             Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/printf-parse.h: Don't include sys/types.h.
64039         (ARG_NONE): New macro.
64040         (char_directive): Change type of *arg_index fields to size_t.
64041         * lib/printf-parse.c: Don't include sys/types.h.
64042         (SSIZE_MAX): Remove macro.
64043         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
64044         Remove unnecessary overflow check.
64045         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
64046         fields.
64047
64048 2003-11-25  Bruno Haible  <bruno@clisp.org>
64049
64050         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
64051
64052 2003-11-25  Bruno Haible  <bruno@clisp.org>
64053
64054         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
64055         gt_TYPE_SSIZE_T.
64056
64057 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64058
64059         * modules/alloca: Remove dependency on xalloc.
64060
64061 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64062
64063         * lib/alloca.c: Remove dependency on xalloc module.
64064         (xalloc_die): Remove.
64065         (memory_full) [!defined emacs]: New macro.
64066         [!defined emacs]: Don't include xalloc.h.
64067         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
64068         address arithmetic overflows.  Change datatypes a bit to avoid
64069         unnecessary casts.
64070
64071 2003-11-22  Jim Meyering  <jim@meyering.net>
64072
64073         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
64074         s/size/size_t/.
64075
64076 2003-11-21  Karl Berry  <karl@gnu.org>
64077
64078         * config/config.{sub,guess}: update from config.
64079
64080 2003-11-18  Karl Berry  <karl@gnu.org>
64081
64082         * config/config.{sub,guess}: update from config.
64083
64084         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
64085
64086 2003-11-17  Paul Eggert  <eggert@twinsun.com>
64087
64088         * README: Mention that S+T cannot overflow if S is the size of
64089         an existing object and T is sufficiently small.
64090
64091 2003-11-17  Jim Meyering  <jim@meyering.net>
64092
64093         On systems without utime and without a utimes function capable of
64094         dealing with a NULL struct utimbuf* argument, this utime replacement
64095         could -- in unusual circumstances -- leak a file descriptor.
64096         * lib/utime.c: Include <unistd.h> and <errno.h>.
64097         (utime_null): Be sure to close `fd' and to preserve errno.
64098         Reported by Geoff Collyer via Arnold Robbins.
64099
64100 2003-11-17  Bruno Haible  <bruno@clisp.org>
64101
64102         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
64103         (Depends-on): Add xsize.
64104
64105 2003-11-17  Bruno Haible  <bruno@clisp.org>
64106
64107         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
64108
64109 2003-11-17  Bruno Haible  <bruno@clisp.org>
64110
64111         * lib/vasnprintf.c (alloca): Remove fallback definition.
64112         (freea): Remove definition.
64113         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
64114         Reported by Paul Eggert.
64115
64116 2003-11-16  Paul Eggert  <eggert@twinsun.com>
64117             Bruno Haible  <bruno@clisp.org>
64118
64119         Protect against address arithmetic overflow.
64120         * lib/printf-args.h: Include stddef.h.
64121         (arguments): Change type of field 'count' to size_t.
64122         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
64123         'unsigned int' where appropriate.
64124         * lib/printf-parse.h: Include sys/types.h.
64125         (char_directive): Change type of *arg_index fields to ssize_t.
64126         (char_directives): Change type of fields 'count', max_*_length to
64127         size_t.
64128         * lib/printf-parse.c: Include sys/types.h and xsize.h.
64129         (SSIZE_MAX): Define fallback value.
64130         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
64131         instead of 'int' where appropriate. Check a_allocated, d_allocated
64132         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
64133         * lib/vasnprintf.c: Include xsize.h.
64134         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
64135         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
64136         overflow. Avoid wraparound when converting a width or precision from
64137         decimal to binary.
64138
64139 2003-11-16  Bruno Haible  <bruno@clisp.org>
64140
64141         Update from GNU gettext.
64142         * lib/printf-parse.c: Generalize to it can be compiled for wide
64143         strings.
64144         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
64145         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
64146         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
64147         SNPRINTF): New macros.
64148         Don't include <alloca.h> if the file is used inside libintl.
64149         (local_wcslen): New function, for Solaris 2.5.1.
64150         (VASNPRINTF): Use it instead of wcslen.
64151
64152 2003-11-16  Bruno Haible  <bruno@clisp.org>
64153
64154         * lib/xsize.h (xmax): New function.
64155         (xsum, xsum3, xsum4): Declare as "pure" functions.
64156
64157 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64158
64159         * modules/xalloc (Files): Undo latest change, since xalloc.h
64160         no longer needs SIZE_MAX or PTRDIFF_MAX.
64161
64162 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64163
64164         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
64165         gl_PTRDIFF_MAX.
64166
64167 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64168
64169         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
64170         "return", to pacify some unknown compiler.  Problem reported
64171         by Joerg Schilling.
64172
64173 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64174
64175         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
64176         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
64177         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
64178         heuristic is just as accurate as far as we know, and it removes a
64179         dependency on size_max.m4 and ptrdiff_max.m4.
64180
64181 2003-11-11  Bruno Haible  <bruno@clisp.org>
64182
64183         * modules/xsize (Files): Add m4/size_max.m4.
64184         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
64185
64186 2003-11-11  Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/size_max.m4: New file.
64189         * m4/ptrdiff_max.m4: New file.
64190         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
64191         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
64192         (gl_XALLOC): Invoke it.
64193
64194 2003-11-11  Bruno Haible  <bruno@clisp.org>
64195
64196         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
64197         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
64198         defined.
64199
64200 2003-11-10  Paul Eggert  <eggert@twinsun.com>
64201
64202         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
64203         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
64204         rejected some allocations of exactly SIZE_MAX - 2 bytes.
64205         From Bruno Haible.
64206         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
64207         not (size_t) -1, since it's defined here.
64208
64209 2003-11-09  Karl Berry  <karl@gnu.org>
64210
64211         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
64212
64213 2003-11-06  Paul Eggert  <eggert@twinsun.com>
64214
64215         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
64216         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
64217         Reject sizes of exactly SIZE_MAX bytes.
64218         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
64219         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
64220
64221 2003-11-05  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/xsize.h: Include limits.h, to avoid a possible collision with
64224         SIZE_MAX defined in <limits.h> on Solaris.
64225
64226 2003-11-04  Jim Meyering  <jim@meyering.net>
64227
64228         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
64229         variable names, rather than @VAR@.
64230         * modules/poll: Likewise.
64231
64232 2003-11-04  Bruno Haible  <bruno@clisp.org>
64233
64234         * modules/xsize: New file.
64235         * modules/linebreak: Depend on xsize.
64236         * MODULES.html.sh (func_all_modules): Add xsize.
64237
64238 2003-11-04  Bruno Haible  <bruno@clisp.org>
64239
64240         * m4/xsize.m4: New file.
64241
64242 2003-11-04  Bruno Haible  <bruno@clisp.org>
64243
64244         * lib/xsize.h: New file.
64245         * lib/linebreak.c: Include xsize.h.
64246         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
64247         argument for overflow.
64248         Suggested by Paul Eggert.
64249
64250 2003-11-03  Karl Berry  <karl@gnu.org>
64251
64252         * config/config.{guess,sub}: update from config.
64253
64254 2003-11-03  Jim Meyering  <jim@meyering.net>
64255
64256         * modules/userspec (lib_SOURCES): Add userspec.h.
64257         (Include): Add "userspec.h".
64258         Improve description.
64259
64260 2003-11-03  Jim Meyering  <jim@meyering.net>
64261
64262         * lib/userspec.c: Include "userspec.h".
64263         * lib/userspec.h: New file.
64264
64265 2003-11-03  Bruno Haible  <bruno@clisp.org>
64266
64267         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
64268
64269 2003-11-03  Bruno Haible  <bruno@clisp.org>
64270
64271         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
64272         available, to avoid (extremely rare) race condition.
64273         Suggested by Paul Eggert.
64274
64275 2003-11-02  Karl Berry  <karl@gnu.org>
64276
64277         * config/srclist.txt (vasprintf.c): sync broken, sigh.
64278
64279 2003-10-31  Paul Eggert  <eggert@twinsun.com>
64280
64281         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
64282         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
64283         (read_filesystem_list): Set and use me_type_malloced.
64284         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
64285         whatever the type happens to be), for brevity and consistency.
64286         Check for size calculation overflow on Alphas running OSF/1.
64287
64288 2003-10-31  Jim Meyering  <jim@meyering.net>
64289
64290         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
64291
64292         * lib/linebuffer.c: Include <string.h> for declaration of memset.
64293
64294 2003-10-30  Paul Eggert  <eggert@twinsun.com>
64295             Bruno Haible  <bruno@clisp.org>
64296
64297         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
64298         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
64299
64300 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64301
64302         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
64303         netbsd*-gnu*.  Suggested by Robert Millan.
64304
64305 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64306
64307         * modules/group-member: Depend on stdbool.
64308
64309 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64310
64311         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
64312
64313 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64314
64315         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
64316         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
64317         after the 'gnu' in these cases.  This fixes some bugs in the
64318         previous change, and is based on suggestions by Robert Millan.
64319
64320 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64321
64322         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
64323         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
64324         no longer needed.
64325         * lib/quotearg.c (quotearg_n_options): Use it.
64326         * lib/group-member.c: Include <stdbool.h>.
64327         (free_group_info): Arg is now const *; don't free arg.
64328         (get_group_info): Now returns bool and accepts struct group_info *,
64329         rather than returning a malloc'ed struct group_info *.
64330         All uses changed.  Check for overflow in internal size calculation.
64331
64332         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
64333         rather than xmalloc/xrealloc.
64334         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
64335         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
64336         conformance bug: the old code used a pointer after freeing the
64337         storage that it addressed.
64338         * lib/hash.c (hash_initialize): Simplify the code by using
64339         xalloc_oversized rather than doing it by hand.
64340         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
64341         the buffer preserved.  Use free and xmalloc instead.
64342         * lib/quotearg.c (quotearg_n_options): Likewise.
64343         Use a simpler test for size overflow.  Don't use xalloc_oversized
64344         because unsigned int might be wider than size_t (!); this suggests
64345         that we should switch from unsigned int to size_t for slot numbers.
64346
64347 2003-10-28  Paul Eggert  <eggert@twinsun.com>
64348
64349         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
64350         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
64351         NetBSD kernels.  Requested by Richard Stallman.
64352
64353 2003-10-27  Paul Eggert  <eggert@twinsun.com>
64354
64355         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
64356         to allocate the returned structure.  Do not allocate a subarray,
64357         as x2nrealloc will do that.
64358         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
64359         instead of xnrealloc.
64360         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
64361
64362 2003-10-27  Bruno Haible  <bruno@clisp.org>
64363
64364         * lib/stdbool_.h: Better support for BeOS.
64365
64366 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64367
64368         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64369         now uses inline.
64370
64371 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64372
64373         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64374         callers that want to do their own size-overflow checking.  Include
64375         <stdbool.h>, since xalloc_oversized returns bool.
64376         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64377         to use xalloc_oversized.
64378
64379         Add two functions x2realloc, x2nrealloc, for programs that grow
64380         arrays dynamically by doubling their sizes.
64381         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64382         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64383         New functions.
64384
64385         Port to C99 semantics for 'inline' of external functions.
64386         Bug reported by Bruno Haible.
64387         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64388         with the old contents of xnmalloc.
64389         (xnmalloc, xmalloc): Use it.
64390         (xnrealloc_inline): New static inline function,
64391         with the old contents of xnrealloc.
64392         (xnrealloc, xrealloc): Use it.
64393
64394         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64395         that.
64396
64397 2003-10-26  Karl Berry  <karl@gnu.org>
64398
64399         * config/srclist.txt (COPYING.DOC): no longer available from
64400         /gd/gnuorg; don't know where the ultimate source is.
64401
64402 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64403
64404         Fix several address-calculation bugs in the hash modules,
64405         plus some minor code cleanup.
64406
64407         * lib/hash.h: Include <stdbool.h>, for bool.
64408         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64409         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64410         hash_get_n_entries, hash_get_max_bucket_length,
64411         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64412         hash_rehash): Use size_t rather than unsigned.
64413         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64414         hash_get_n_buckets_used, hash_get_n_entries,
64415         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64416         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64417         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64418         Likewise.
64419         (SIZE_MAX): Define if not defined.
64420         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64421         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64422         hash_print):
64423         Use const * when possible.
64424         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64425         (check_tuning): Fix bug: if tuning parameters were very close to
64426         0 or 1, rounding errors could have caused subscript violations.
64427         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64428         (hash_initialize): Add 'fail:' label
64429         to free table and return NULL, and use it to simplify code.
64430         Use calloc rather than clearing the storage ourself.
64431         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64432         buffer size calculations.
64433         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64434         Include <stddef.h>, for size_t.
64435         * lib/hash-pjw.c (hash_pjw): Likewise.
64436         Switch to method described by Bruno Haible.
64437         Include <limits.h>, for CHAR_BIT.
64438         (SIZE_BITS): New macro.
64439
64440 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64441
64442         * m4/getline.m4 (AM_FUNC_GETLINE):
64443         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64444         hosts.  Problem reported by Derek Robert Price in
64445         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64446         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64447         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64448
64449 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64450
64451         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64452         ceiling the allocation at NMAX bytes rather than silently
64453         discarding input bytes before NMAX is reached.  This makes
64454         a difference only if NMAX exceeds SIZE_MAX / 2.
64455
64456         * lib/obstack.c: Merge from glibc.
64457         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64458         Add libc_hidden_def (_obstack_newchunk).
64459         (_obstack_free) [! defined _LIBC]: Remove.
64460         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64461         a clone of the function body.
64462         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64463         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64464
64465         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64466         glibc.
64467         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64468         arg to memcpy.
64469
64470         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64471         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64472         Don't use lvalue casts, as GCC plans to remove support for them
64473         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64474         was also present in the non-GCC version, indicating that this
64475         code had always been buggy and had never been widely used.
64476         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64477         Use the fast variant of each macro, rather than copying the
64478         definiens of the fast variant; that way, we'll be more likely to
64479         catch future bugs in the fast variants.
64480
64481 2003-10-20  Bruno Haible  <bruno@clisp.org>
64482
64483         * modules/wait-process: New file.
64484         * MODULES.html.sh (func_all_modules): Add wait-process.
64485
64486 2003-10-20  Bruno Haible  <bruno@clisp.org>
64487
64488         * m4/wait-process.m4: New file.
64489
64490 2003-10-20  Bruno Haible  <bruno@clisp.org>
64491
64492         * lib/wait-process.h: New file, from GNU gettext.
64493         * lib/wait-process.c: New file, from GNU gettext.
64494
64495 2003-10-19  Jim Meyering  <jim@meyering.net>
64496
64497         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64498         HPUX 10.20.
64499
64500 2003-10-18  Karl Berry  <karl@gnu.org>
64501
64502         * config/config.guess: update from config.
64503
64504 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64505
64506         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64507         (getgroups): First arg is int, not size_t.
64508         Don't let 'free' mangle errno.
64509
64510 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64511
64512         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64513
64514 2003-10-16  Karl Berry  <karl@gnu.org>
64515
64516         * config/config.{guess,sub}: update from config.
64517
64518 2003-10-16  Jim Meyering  <jim@meyering.net>
64519
64520         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64521         memcpy.
64522
64523 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64524
64525         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64526         (SIZE_MAX): Remove.
64527         (new_exclude, add_exclude_file): Initial size no longer needs to
64528         be a power of 2.
64529         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64530         our own address arithmetic overflow checking.
64531
64532         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64533         (fnmatch): Do not alloca more than 2000 wide characters;
64534         instead, use malloc for large buffers.
64535         Check for address arithmetic overflow, and return -1
64536         with errno set to ENOMEM in that case.
64537         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64538         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64539         instead, return -1.  Check for address arithmetic overflow.
64540
64541 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64542
64543         Handle invalid suffixes and overflow independently, so that
64544         callers can treat them independently as needed.  Fix some bugs in
64545         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64546         suffix for a human-readable blocksize.  The major caller-visible
64547         change is the addition of a new
64548         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64549         that both overflow and suffix chars were found.
64550
64551         * lib/human.c (humblock): Don't check separately for invalid suffix
64552         char; that is xstrtoumax's job (now that its bug is fixed).
64553         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64554         INTMAX_MAX]: New macros.
64555         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64556         TYPE_MAXIMUM): New macros.
64557         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64558         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64559         if overflow occurs, as it's what __strtol does and it's more useful
64560         in practice.
64561         (__xstrtol): If __strtol reports some error other than ERANGE,
64562         reflect it to the caller as LONGINT_INVALID.  If it reports
64563         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64564         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64565         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64566         value.
64567         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64568         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64569         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64570         [defined UINTMAX_MAX]: New macros.
64571
64572 2003-10-14  Bruno Haible  <bruno@clisp.org>
64573
64574         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64575
64576 2003-10-14  Bruno Haible  <bruno@clisp.org>
64577
64578         * m4/sig_atomic_t: New file, from GNU gettext.
64579         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64580
64581 2003-10-14  Bruno Haible  <bruno@clisp.org>
64582
64583         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64584         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64585         Also use volatile where needed.
64586
64587 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64588
64589         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64590         Change maintainer from Bruno Haible to 'all'.
64591
64592 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64593
64594         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64595
64596 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64597
64598         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64599         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64600         and define in terms of the other primitives.
64601         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64602         (SIZE_MAX): Define if not already defined.
64603         (array_size_overflow): New function.
64604         (xalloc_die): Abort instead of exiting if 'error' returns.
64605         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64606         (xmalloc, xrealloc): Use them.
64607         (xcalloc): Check for address arithmetic overflow.
64608         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64609         a bit faster than strcpy.
64610
64611 2003-10-10  Simon Josefsson  <jas@extundo.com>
64612
64613         * modules/argp (Depends-on): Add restrict and strcase.
64614
64615 2003-10-10  Simon Josefsson  <jas@extundo.com>
64616
64617         * m4/argp.m4: Add AC_C_INLINE.
64618
64619 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64620
64621         Merge getpass from libc, plus a few fixes.
64622
64623         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64624         Include <stdbool.h>.
64625         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64626         __fsetlocking to empty.
64627         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64628         do include <bits/libc-lock.h>.
64629         Do not include <fcntl.h>; not needed.
64630         [_LIBC]: Include <wchar.h>.
64631         (NOTCANCEL_MODE): New macro.
64632         (flockfile, funlockfile) [_LIBC]: New macros.
64633         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64634         [!_LIBC]: New macros.
64635         (call_fclose): New function.
64636         (getpass): Use it.  Save tty stream separately; this simplifies the
64637         code and makes it more reliable if stdin happens to equal stdout.
64638         Invoke __fsetlocking on tty.
64639         Handle thread cancellation if needed.
64640         Namespace cleanup (use __tcgetattr, __getline).
64641         Use bool for Booleans.
64642         [USE_IN_LIBIO]: Handle wide streams.
64643         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64644         stream might go where.
64645
64646         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
64647         doesn't have to include <stdio.h> before us.
64648         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
64649         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
64650         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
64651         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
64652         if not declared, so that we can use getpass.c code from libc without
64653         rewriting it.
64654         (flockfile, ftrylockfile, funlockfile): New macros.
64655
64656 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64657
64658         * modules/getpass: Depend on stdbool.
64659
64660 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64661
64662         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
64663
64664 2003-10-07  Karl Berry  <karl@gnu.org>
64665
64666         * config/config.{guess,sub}: update from config.
64667
64668 2003-10-06  Jim Meyering  <jim@meyering.net>
64669             Bruno Haible  <bruno@clisp.org>
64670
64671         This lets translators provide better translations for the
64672         "Written by ..." part of --version output.
64673         * lib/version-etc.h: Include stdarg.h.
64674         (version_etc_copyright): Declare as readonly.
64675         (version_etc): Make this function variadic with a NULL-terminated list
64676         of author name strings.
64677         (version_etc_va): New declaration.
64678         * lib/version-etc.c: Include stdarg.h, stdlib.h.
64679         (version_etc_copyright): Declare as readonly.
64680         (version_etc_va): New function. Provide a different translatable string
64681         for each possible number of authors < 10. Abbreviate when there are 10
64682         authors or more.
64683         (version_etc): Make this function variadic. Call version_etc_va.
64684         Suggestion from Gary V. Vaughan.
64685
64686         * lib/long-options.h (parse_long_options): Change prototype: the
64687         authors string is moved to the end and becomes variadic.
64688         * lib/long-options.c: Include stdarg.h.
64689         (parse_long_options): Make this function variadic, too.
64690         Call version_etc_va, not version_etc.
64691
64692 2003-10-06  Bruno Haible  <bruno@clisp.org>
64693
64694         * modules/version-etc-2: Remove file.
64695         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
64696
64697 2003-10-06  Bruno Haible  <bruno@clisp.org>
64698
64699         * modules/fatal-signal: New file.
64700         * MODULES.html.sh (func_all_modules): Add fatal-signal.
64701
64702 2003-10-06  Bruno Haible  <bruno@clisp.org>
64703
64704         * m4/fatal-signal.m4: New file.
64705         * m4/signalblocking.m4: New file, from GNU gettext.
64706
64707 2003-10-06  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/version-etc-2.h: Remove file.
64710         * lib/version-etc-2.c: Remove file.
64711
64712 2003-10-06  Bruno Haible  <bruno@clisp.org>
64713
64714         * lib/fatal-signal.h: New file, from GNU gettext.
64715         * lib/fatal-signal.c: New file, from GNU gettext.
64716
64717 2003-10-05  Paul Eggert  <eggert@twinsun.com>
64718
64719         * README: Rework advice for preventing empty .o files.
64720         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
64721         not <sys/types.h>.
64722
64723 2003-10-04  Karl Berry  <karl@gnu.org>
64724
64725         * lib/argp*: update from libc.
64726
64727 2003-10-04  Karl Berry  <karl@gnu.org>
64728
64729         * config/config.{guess,sub}: update from config.
64730
64731 2003-10-02  Bruno Haible  <bruno@clisp.org>
64732
64733         * modules/lchown (Include): Add lchown.h.
64734         * modules/time_r (Include): Use "..." syntax.
64735         * modules/xgetdomainname (Include): Add xgetdomainname.h.
64736
64737 2003-10-01  Simon Josefsson  <jas@extundo.com>
64738
64739         * MODULES.html.sh (func_all_modules): Move gethostname from section
64740         'based on' to section 'lacking' POSIX:2001.
64741
64742 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
64743
64744         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
64745         to output mode on the same stream.
64746
64747 2003-09-29  Paul Eggert  <eggert@twinsun.com>
64748
64749         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
64750         Fix arg typo in previous patch.
64751
64752 2003-09-28  Jim Meyering  <jim@meyering.net>
64753
64754         * lib/error.c: Correct cpp indentation.
64755
64756 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64757
64758         * modules/free: New file.
64759
64760 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64761
64762         * m4/free.m4: New file.
64763
64764 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64765
64766         * lib/minmax.h (MIN, MAX)
64767         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
64768         Omit the special code that used __typeof__, since we worry that
64769         it could be more trouble than it's worth.  See:
64770         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
64771         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
64772
64773         * lib/free.c: New file.
64774
64775 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
64776
64777         Trivial fixes to Makefile.am parts of module listings.
64778         * modules/strstr: Append strstr.h to lib_SOURCES.
64779         * modules/strcase: Likewise, for strcase.h.
64780
64781 2003-09-27  Karl Berry  <karl@gnu.org>
64782
64783         * config/mkinstalldirs: update from automake.
64784
64785 2003-09-26  Paul Eggert  <eggert@twinsun.com>
64786
64787         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
64788         (error_tail): Do not loop, reallocating temporary buffer, since
64789         the output cannot contain more wide characters than the input
64790         contains bytes, the size must be big enough already.  This avoids
64791         one potential size overflow calculation.  Check for size overflow
64792         when calculating temporary buffer size.  Free temporary buffer
64793         when done, if it was allocated with malloc; this plugs a memory
64794         leak.  Remove casts from void * to pointers, that are no longer
64795         needed now that we're assuming C89 or better.
64796
64797         Merge error changes from glibc.
64798
64799         * lib/error.c, error.h: Update copyright notice header to match glibc.
64800         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
64801         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
64802         Disable cancellation while printing error.
64803         * lib/error.h: Prepend __ to parameter names.
64804
64805 2003-09-26  Jim Meyering  <jim@meyering.net>
64806
64807         * lib/error.c (error_tail): Move some declarations
64808         into inner scope where the local variables are used.
64809
64810 2003-09-26  Bruno Haible  <bruno@clisp.org>
64811
64812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64813         stpncpy().
64814         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64815
64816 2003-09-26  Bruno Haible  <bruno@clisp.org>
64817
64818         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64819         (stpncpy): Define as alias for gnu_stpncpy.
64820         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64821
64822 2003-09-25  Simon Josefsson  <jas@extundo.com>
64823
64824         * lib/xgetdomainname.h: New file.
64825         * lib/xgetdomainname.c: New file.
64826
64827 2003-09-25  Simon Josefsson  <jas@extundo.com>
64828             Bruno Haible  <bruno@clisp.org>
64829
64830         * modules/getdomainname: New file.
64831         * modules/xgetdomainname: New file.
64832         * MODULES.html.sh (func_all_modules): Add getdomainname,
64833         xgetdomainname.
64834
64835 2003-09-25  Simon Josefsson  <jas@extundo.com>
64836             Bruno Haible  <bruno@clisp.org>
64837
64838         * m4/getdomainname.m4: New file.
64839
64840 2003-09-25  Simon Josefsson  <jas@extundo.com>
64841             Bruno Haible  <bruno@clisp.org>
64842
64843         * lib/getdomainname.h: New file.
64844         * lib/getdomainname.c: New file.
64845
64846 2003-09-25  Karl Berry  <karl@gnu.org>
64847
64848         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64849
64850 2003-09-25  Karl Berry  <karl@gnu.org>
64851
64852         * config/install-sh: update from automake.
64853
64854 2003-09-25  Bruno Haible  <bruno@clisp.org>
64855
64856         * modules/version-etc-2: New file, from modules/version-etc with
64857         modifications.
64858         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64859
64860 2003-09-25  Bruno Haible  <bruno@clisp.org>
64861
64862         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64863         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64864
64865 2003-09-24  Simon Josefsson  <jas@extundo.com>
64866
64867         * modules/xgethostname: Add xgethostname.h.
64868
64869 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64870
64871         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64872         the buffer associated with the argument.  Bug reported by
64873         Simon Josefsson.
64874
64875 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64876
64877         * README: Document assumptions that 'int' is at least 32 bits
64878         wide, that integer arithmetic is 2's complement without overflow,
64879         that there are no holes in integer values, that adding sizes of
64880         two nonoverlapping objects can't overflow, and that all-bits-zero
64881         yields scalar zero.  Fix spelling and capitalization typos.
64882
64883 2003-09-19  Karl Berry  <karl@gnu.org>
64884
64885         * lib/argp.h: update from libc.
64886
64887 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64888
64889         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64890         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64891         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64892
64893 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64894
64895         * gnulib-tool: Use "test -h", not "test -L", for portability
64896         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64897         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64898         (sed_extract_prog): Issue s commands one-by-one, rather than
64899         using \| in one s command.
64900
64901 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64902
64903         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64904         input error, instead of returning NULL the next time we are called
64905         (and therefore losing track of errno).
64906
64907 2003-09-16  Bruno Haible  <bruno@clisp.org>
64908
64909         * gnulib-tool (func_create_testdir): Warn about duplicated
64910         dependencies.
64911
64912 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64913
64914         * modules/argmatch, modules/fatal, modules/obstack,
64915         modules/xalloc, modules/xgethostname: Sort dependencies by
64916         importance, not alphabetically.
64917
64918 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64919
64920         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64921         fails, so that the caller gets the proper errno.
64922
64923         * lib/readutmp.c (read_utmp): Likewise.
64924         Check for fstat error.  Close stream and free storage
64925         when failing.
64926
64927 2003-09-14  Karl Berry  <karl@gnu.org>
64928
64929         * config/srclist.txt (strdup.c): disable for c89 changes.
64930
64931 2003-09-14  Jim Meyering  <jim@meyering.net>
64932
64933         * lib/getloadavg.c: Correct cpp indentation.
64934         * lib/strdup.c: Likewise.
64935         * lib/vasnprintf.c: Likewise.
64936
64937 2003-09-14  Bruno Haible  <bruno@clisp.org>
64938
64939         * modules/fwriteerror: New file.
64940         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64941
64942 2003-09-14  Bruno Haible  <bruno@clisp.org>
64943
64944         * lib/fwriteerror.h: New file.
64945         * lib/fwriteerror.c: New file.
64946
64947 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64948
64949         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64950         modules/xgethostname, modules/xalloc: Depend on exit.
64951
64952 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64953
64954         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64955
64956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64957         and AC_MINIX, too, so that their extensions are available.
64958
64959         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64960         This macro has been superseded by gl_BACKUPFILE.
64961
64962         More patches to assume C89 or better.
64963
64964         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64965
64966         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64967         unconditionally.
64968         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64969         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64970         Include <string.h>, <stdlib.h> unconditionally.
64971         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64972         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64973         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64974         headers or for string.h.
64975         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64976         or strtoul.
64977
64978         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64979         headers.
64980         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64981         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64982         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64983         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64984         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64985         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64986         memcpy, memset.
64987         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64988         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64989         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64990         strtol.
64991         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64992         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64993         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64994         strtoul.
64995
64996 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64997
64998         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64999         * lib/obstack.c [!defined _LIBC]: Likewise.
65000         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
65001         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
65002         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
65003
65004         More changes to assume C89 or better.
65005
65006         * lib/error.c (error_tail): Assume vprintf.
65007
65008         * lib/argmatch.c (getenv): Remove decl.
65009         * lib/progreloc.c (get_full_program_name): Define via prototype.
65010         * lib/setenv.c (clearenv): Likewise.
65011         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
65012         needed.
65013         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
65014         (malloc, memcpy): Remove decls.
65015         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
65016         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
65017         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65018         (memcpy): Remove macro.
65019         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
65020         (__P): Remove.  All uses removed.
65021         (PTR): Remove.  All uses changed to void *.
65022         (CHAR_BIT, NULL): Remove.
65023         (spaces, zeros, memset_space, memset_zero)
65024         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
65025         Remove.
65026         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
65027         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
65028         Define with prototype.
65029         Remove now-unnecessary prototype decl.
65030         (extra_args_spec): Assume ANSI C.  All uses changed.
65031         (extra_args_spec_iso): Remove.
65032         (my_strftime, emacs_strftimeu): Define via prototype.
65033         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
65034         unconditionally.
65035         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
65036         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
65037         (strtoul, strtol): Remove decls.
65038         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
65039         LONG_MAX): Remove.
65040         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65041         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
65042         (LOCALE_PARAM_PROTO): New macro.
65043         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
65044         (INTERNAL (strtol), strtol): Define with a prototype.
65045         (PARAMS): Remove.  All uses removed.
65046         * lib/tempname.c: Include <string.h> unconditionally.
65047         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
65048         * lib/xgethostname.c (main): Define with a prototype.
65049         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
65050         Include <stdlib.h> unconditionally.
65051         (calloc, malloc, realloc, free): Remove decls.
65052         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
65053         Include <stdlib.h> unconditionally.  Sort include file names.
65054         (strtod): Remove.
65055         (xstrtod): Define with a prototype.
65056         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
65057         (strtol, strtoul): Remove decls.
65058
65059 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65060
65061         More patches to assume C89 or better.
65062         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
65063         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
65064         string.h, memchr, STDC_HEADERS.
65065
65066 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65067
65068         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
65069         Include <stdlib.h>, <string.h> unconditionally.
65070         Remove now-unnecessary cast to char *.
65071         * lib/strnlen.c: Include <string.h> unconditionally.
65072         * lib/yesno.c (yesno): Define with a prototype.
65073
65074 2003-09-11  Bruno Haible  <bruno@clisp.org>
65075
65076         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
65077
65078 2003-09-10  Jim Meyering  <jim@meyering.net>
65079
65080         * lib/error.c: Correct indentation of cpp directives.
65081
65082 2003-09-10  Bruno Haible  <bruno@clisp.org>
65083
65084         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
65085         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
65086         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
65087         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
65088         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
65089         <stdlib.h> and <string.h> checks.
65090         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
65091         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
65092
65093 2003-09-10  Bruno Haible  <bruno@clisp.org>
65094
65095         * lib/strcspn.c: Include <string.h> unconditionally.
65096         * lib/strpbrk.c: Include <string.h> unconditionally.
65097         * lib/strstr.c: Include <string.h> unconditionally.
65098         * lib/unicodeio.c: Include <string.h> unconditionally.
65099         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
65100         * lib/unsetenv.c: Likewise.
65101         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
65102         * lib/yesno.c: Include <stdlib.h> unconditionally.
65103         (rpmatch): Add prototype.
65104
65105 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65106
65107         More patches to assume C89 or better.
65108         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
65109         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
65110         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
65111         or for string.h.
65112         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
65113         stdlib.h.
65114         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
65115         C headers.
65116         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
65117         string.h.
65118         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
65119         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
65120         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
65121         or for string.h.
65122         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
65123         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
65124         C headers.
65125         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
65126         memcpy.
65127         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
65128         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
65129         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
65130         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
65131         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
65132         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
65133         string.h, free.
65134         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
65135         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
65136         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
65137         C headers, or for string.h.
65138         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
65139         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
65140         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
65141         headers, memory.h, stdlib.h, string.h, strings.h.
65142         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
65143         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
65144         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
65145         strchr.
65146         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
65147         headers, memory.h, string.h.
65148         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
65149         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
65150         free.
65151         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
65152         headers.
65153         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
65154         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
65155         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
65156         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
65157         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
65158
65159 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65160
65161         More K&R removal.
65162
65163         * lib/acosl.c (main): Use a prototype.
65164         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
65165         tanl.c: Likewise.
65166
65167         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
65168
65169         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
65170         (getopt, etopt_long, getopt_long_only, _getopt_internal)
65171         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
65172         with a prototype.
65173         * lib/getopt.c (const): Remove macro.
65174         Include <string.h> unconditionally.
65175         (my_index): Remove; all uses changed to strchr.
65176         (strlen): Remove decl.
65177         (exchange): Remove forward decl; no longer needed.
65178         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
65179         Define with prototype.
65180         * lib/getopt1.c (const): Remove macro.
65181         (getopt_long, getopt_long_only, main): Define with prototype.
65182
65183         * lib/getugroups.c: Include <string.h> unconditionally.
65184
65185         * lib/getusershell.c: Include <stdlib.h> unconditionally.
65186         (getusershell, setusershell, endusershell, readname, main):
65187         Define with prototypes.
65188
65189         * lib/group-member.c: Include group-member.h first.
65190         Include <stdlib.h> unconditionally.
65191
65192         * lib/hard-locale.c: Include hard-locale.h first.
65193         Include <stdlib.h>, <string.h> unconditionally.
65194
65195         * lib/hash.c (free, malloc): Remove decls.
65196         Include <stdlib.h> unconditionally.
65197
65198         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
65199         (getenv): Do not declare.
65200
65201         * lib/idcache.c: Include <string.h> unconditionally.
65202
65203         * lib/long-options.c: Include long-options.h first, to test interface.
65204         Include <stdlib.h> unconditionally.
65205
65206         * lib/makepath.c: Include makepath.h first, to test interface.
65207         Include <stdlib.h> and <string.h> unconditionally.
65208
65209         * lib/linebuffer.c: Include <stdlib.h>.
65210         (free): Remove decl.
65211
65212         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
65213         stddef.h. rpl_malloc returns void *, not char *.
65214         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
65215         prototype.
65216
65217         * lib/md5.h: Include <limits.h> unconditionally.
65218         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
65219         (__P): Remove; all uses removed.
65220         * lib/md5.c: Include "md5.h" first.
65221         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
65222         md5_buffer, md5_process_bytes, md5_process_block):
65223         Define with prototypes.
65224         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
65225         * lib/sha.c: Include "sha.h" first.
65226         Include <stdlib.h>, <string.h> unconditionally.
65227
65228         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
65229         * lib/memcmp.c (__ptr_t): Likewise.
65230         * lib/memrchr.c (__ptr_t): Likewise.
65231         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
65232         Include <string.h> unconditionally.
65233         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
65234         * lib/memchr.c: Include <stdlib.h> unconditionally.
65235         * lib/memchr.c (LONG_MAX): Remove.
65236         * lib/memrchr.c (LONG_MAX): Likewise.
65237         * lib/memchr.c (__memchr): Define via a prototype.
65238         * lib/memrchr.c (__memrchr): Likewise.
65239         * lib/memcmp.c (__P): Remove, and remove all uses.
65240         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
65241         Remove forward decls; no longer needed.
65242         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
65243         Use types required by C89 in prototype.
65244
65245         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
65246         * lib/savedir.c: Likewise.
65247         * lib/mkdir.c (free): Remove decl.
65248         * lib/rmdir.c (rmdir): Define with a prototype.
65249         * lib/savedir.c: Include savedir.h first, to test interface.
65250
65251         * lib/mktime.c (STDC_HEADERS): Remove.
65252         Include <stdlib.h>, <string.h> unconditionally.
65253
65254         * lib/modechange.c: Include <stdlib.h> unconditionally.
65255         (malloc): Remove decl.
65256
65257         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
65258         (free): Remove decl.
65259
65260         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
65261         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
65262         (This type really should be intptr_t, but that's a C99ism.)
65263         (_obstack_memcpy): Remove: all uses changed to memcpy.
65264         Include <string.h> unconditionally.
65265         (struct obstack): Assume __STDC__ for types of members
65266         chunkfun, freefun, extra_arg.
65267         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
65268         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
65269         obstack_begin, obstack_specify_allocation,
65270         obstack_specify_allocation_with_arg, obstack_chunkfun,
65271         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
65272         Remove unprototyped decls and the macros that use them.
65273         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
65274         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
65275         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
65276         (defined __STDC__ && __STDC__)]:
65277         Remove nonprototyped code.
65278         Include <stdlib.h> unconditionally.
65279         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
65280         _obstack_allocated_p, _obstack_free, obstack_free,
65281         _obstack_memory_used, print_and_abort):
65282         Define using prototypes.
65283         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
65284         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
65285         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
65286         obstack_next_free, obstack_object_size, obstack_room) [0]:
65287         Remove unused, unprototyped code.
65288
65289         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
65290
65291         * lib/physmem.c (physmem_total, physmem_available, main): Define
65292         with prototypes.
65293
65294         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
65295         (main): Define with a prototype.
65296
65297         * lib/posixver.c (getenv): Remove decl.
65298
65299         * lib/putenv.c (malloc): Returns void *, not char *.
65300         Include <string.h> unconditionally.
65301         (strchr, memcpy, NULL): Do not define.
65302
65303         * lib/readtokens.c: Include readtokens.h first, to test interface.
65304         Include <stdlib.h>, <string.h> unconditionally.
65305         (init_tokenbuffer): Define with a prototype.
65306
65307         * lib/regex.c (PARAMS): Remove.  All uses removed.
65308         All uses of _RE_ARGS removed, too.
65309         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65310         unconditionally.
65311         (bzero): Assume memset exists.
65312         (memcmp, memcpy, NULL): Remove.
65313         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
65314         char, or assignments to local vars of type signed char.
65315         (init_syntax_once, PREFIX(extract_number_and_incr),
65316         PREFIX(print_partial_compiled_pattern),
65317         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
65318         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
65319         PREFIX(regex_grow_registers), PREFIX(regex_compile),
65320         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
65321         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
65322         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
65323         wcs_compile_range, byte_compile_range, truncate_wchar,
65324         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
65325         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
65326         count_mbs_length, wcs_re_match_2_internal,
65327         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
65328         PREFIX(alt_match_null_string_p),
65329         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
65330         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
65331         regfree, PREFIX(extract_number)): Define with prototype.  Remove
65332         now-unnecessary declaration, if any.
65333         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
65334         regcomp, regexec):
65335         Remove now-unnecessary casts among pointer types.
65336         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
65337
65338         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
65339         (free): Remove decl.
65340
65341         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
65342
65343         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
65344         (free): Remove decl.
65345
65346         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
65347         * lib/xgetcwd.c: Likewise.
65348
65349         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
65350         (free): Remove decl.
65351
65352         * lib/strchrnul.c (strchrnul): Define with a prototype.
65353         Fix bug: c_in was not converted to char before searching.
65354
65355         The following changes are not K&R related:
65356
65357         * lib/group-member.h: Include <sys/types.h>, so that this file is
65358         self-contained.
65359         * lib/makepath.h: Likewise.
65360
65361         * lib/getusershell.c (readname, default_index, line_size, readname):
65362         Use size_t, not int, for sizes.
65363         (readname): If the size overflows, report an error instead of
65364         looping forever.
65365
65366 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65367
65368         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65369         libc.
65370
65371 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65372
65373         * README: New section: portability guidelines.
65374
65375 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65376
65377         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65378         C89 spec.
65379
65380 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65381
65382         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65383
65384 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65385
65386         Assume C89 or better; remove K&R cruft.
65387         A few of these changes were first proposed by Derek Robert Price
65388         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65389
65390         * lib/addext.c: Include <string.h> unconditionally.
65391         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65392         Don't declare getenv or malloc.
65393
65394         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65395         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65396         (NULL): Remove.
65397         (find_stack_direction, alloca): Use prototypes.
65398
65399         * lib/atexit.c (atexit): Define using a prototype.
65400
65401         * lib/basename.c, dirname.c, stripslash.c:
65402         Include <string.h> unconditionally.
65403
65404         * lib/bcopy.c: Include <stddef.h>.
65405         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65406
65407         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65408
65409         * lib/error.h (error, error_at_line, error_print_progname)
65410         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65411         * lib/error.c: Include error.h first, to check interface.
65412         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65413         (VA_START): Remove; all uses changeed to va_start.
65414         (exit, strerror): Remove decls.
65415         (error_print_progname): Prototype uncondionally.
65416         Don't include <errno.h>; no longer needed.
65417         (private_strerror): Remove.
65418         (error_tail): Always define.
65419         (error, error_at_line): Assume C89 or better; always use prototypes.
65420         * lib/fatal.c: Include "fatal.h" first, to test interface.
65421         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65422         (VA_START): Remove; all uses changed to va_start.
65423         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65424         this case.
65425         (exit): Remove decl.
65426         (fatal): Prototype unconditionally.  Assume va_start works.
65427         Abort at end, to pacify gcc.
65428
65429         * lib/euidaccess.c (main): Define with a prototype.
65430
65431         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65432
65433         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65434
65435         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65436         prototypes.
65437         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65438         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65439         (getenv): Remove decl.
65440         (fnmatch): Define using a prototype.
65441         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65442         (FCT): Define using a prototype.
65443
65444         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65445
65446         * lib/gethostname.c: Include <stddef.h>.
65447         (gethostname): Define with prototype.  Length is size_t, not int.
65448
65449 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65450
65451         Assume C89 or better; remove K&R cruft.
65452         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65453         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65454         string.h, getenv, malloc.
65455         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65456         headers.
65457         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65458         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65459         do not check for strerror.
65460         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65461         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65462         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65463         do not check for doprnt or vprintf.
65464         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65465         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65466
65467 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65468
65469         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65470         getversion.c should have been removed then, but was accidentally
65471         preserved.
65472
65473         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65474         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65475
65476 2003-09-08  Karl Berry  <karl@gnu.org>
65477
65478         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65479                 config, forget about prep.
65480
65481         * config/depcomp, missing: update from automake.
65482
65483 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65484
65485         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65486         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65487
65488 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65489
65490         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65491         copy_tm_result.  Bug reported by Simon Josefsson in
65492         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65493
65494 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65495
65496         * m4/time_r.m4: New file.
65497         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65498         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65499         is. Check for timegm declaration.
65500         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65501         Do not check for gmtime_r.
65502         Replace mktime if __mktime_internal does not exist and if mktime
65503         hasn't been replaced already.
65504
65505 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65506
65507         * lib/time_r.c, lib/time_r.h: New files.
65508
65509         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65510         __localtime_r.
65511         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65512         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65513
65514         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65515         __gmtime_r.
65516         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65517         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65518         Include <time_r.h>.
65519
65520         * lib/timegm.c: Switch to glibc implementation, with the following
65521         changes:
65522         [defined HAVE_CONFIG_H]: Include <config.h>.
65523         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65524         (__mktime_internal) [!defined _LIBC]: New decl.
65525         (__gmtime_r) [!defined _LIBC]: New macro and function.
65526         (timegm): Use a prototype, since gnulib assumes C89.
65527         Do not bother declaring tmp to be const, as it's not really usefu.
65528         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65529         (timegm): Declare only if HAVE_DECL_TIMEGM.
65530
65531 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65532
65533         * MODULES.html.sh (func_all_modules): Add time_r.
65534         * modules/time_r: New file.
65535         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65536         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65537
65538 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65539
65540         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65541         Bug reported by Lute Kamstra in
65542         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65543
65544         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65545         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65546         course with correspondingly smaller numbers for tomorrow and
65547         yesterday.  From Tadayoshi Funaba.  Originally installed into
65548         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65549         coreutils merge?).
65550
65551 2003-08-31  Simon Josefsson  <jas@extundo.com>
65552
65553         * modules/timegm: New file.
65554         * MODULES.html.sh (func_all_modules): Add timegm.
65555
65556 2003-08-31  Simon Josefsson  <jas@extundo.com>
65557
65558         * m4/timegm.m4: New file.
65559
65560 2003-08-31  Simon Josefsson  <jas@extundo.com>
65561
65562         * lib/timegm.h: New file.
65563         * lib/timegm.c: New file.  Based on
65564         wget-1.8.2/src/http.c:mktime_from_utc.
65565
65566 2003-08-31  Karl Berry  <karl@gnu.org>
65567
65568         * lib/argp.h: update from libc.
65569
65570 2003-08-28  Bruno Haible  <bruno@clisp.org>
65571
65572         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65573         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65574         followed by '#define fnmatch fnmatch_posix' gives an error.
65575
65576 2003-08-28  Bruno Haible  <bruno@clisp.org>
65577
65578         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65579         warning on QNX, which defines O_BINARY to 000000.
65580
65581 2003-08-27  Jim Meyering  <jim@meyering.net>
65582
65583         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65584         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65585         would fail after 32.  Reported by Danny Levinson.  Details here:
65586         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65587
65588 2003-08-24  Bruno Haible  <bruno@clisp.org>
65589
65590         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65591         MSVC7 <stdio.h> is included later.
65592
65593 2003-08-22  Simon Josefsson  <jas@extundo.com>
65594
65595         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65596
65597 2003-08-20  Karl Berry  <karl@gnu.org>
65598
65599         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65600
65601 2003-08-20  Bruno Haible  <bruno@clisp.org>
65602
65603         * modules/progname: New file.
65604         * MODULES.html.sh (func_all_modules): Add progname.
65605
65606 2003-08-20  Bruno Haible  <bruno@clisp.org>
65607
65608         * lib/progname.h: New file, from GNU gettext.
65609         * lib/progname.c: New file, from GNU gettext.
65610         * lib/progreloc.c: New file, from GNU gettext.
65611
65612 2003-08-19  Jim Meyering  <jim@meyering.net>
65613
65614         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65615         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65616
65617 2003-08-19  Bruno Haible  <bruno@clisp.org>
65618
65619         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65620         more.
65621
65622 2003-08-19  Bruno Haible  <bruno@clisp.org>
65623
65624         * lib/xstrdup.c: Assume <string.h> exists.
65625
65626 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65627
65628         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65629         in makefile rules.
65630
65631 2003-08-18  Jim Meyering  <jim@meyering.net>
65632
65633         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65634         * m4/lib-ld.m4: Likewise.
65635
65636 2003-08-18  Jim Meyering  <jim@meyering.net>
65637
65638         * lib/setenv.h: Indent nested cpp directive.
65639         * lib/vasnprintf.c: Remove trailing blanks.
65640
65641 2003-08-17  Simon Josefsson  <jas@extundo.com>
65642
65643         * modules/xstrndup: New file.
65644         * MODULES.html.sh (func_all_modules): Add xstrndup.
65645
65646 2003-08-17  Simon Josefsson  <jas@extundo.com>
65647
65648         * modules/argp: Fix autoconf macro name. Add more dependencies.
65649
65650 2003-08-17  Simon Josefsson  <jas@extundo.com>
65651
65652         * m4/xstrndup.m4: New file.
65653
65654 2003-08-17  Simon Josefsson  <jas@extundo.com>
65655
65656         * m4/argp.m4: New file.
65657
65658 2003-08-17  Simon Josefsson  <jas@extundo.com>
65659             Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/xstrndup.h: New file.
65662         * lib/xstrndup.c: New file.
65663
65664 2003-08-17  Bruno Haible  <bruno@clisp.org>
65665
65666         * modules/strndup (Files, Include): Add lib/strndup.h.
65667
65668 2003-08-17  Bruno Haible  <bruno@clisp.org>
65669
65670         * modules/euidaccess (Files): Add lib/euidaccess.h.
65671
65672 2003-08-17  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/strndup.h: New file.
65675
65676 2003-08-17  Bruno Haible  <bruno@clisp.org>
65677
65678         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
65679         like AC_GNU_SOURCE.
65680         * modules/extensions (configure.ac): Comment out the invocation of
65681         gl_USE_SYSTEM_EXTENSIONS.
65682
65683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65684
65685         Merges from coreutils, etc.
65686         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
65687         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
65688         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
65689         fixing a typo.
65690         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
65691         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
65692
65693 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65694
65695         Document merge from coreutils.
65696         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
65697         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
65698         * modules/utime: Add m4/utimes-null.m4.
65699
65700 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65701
65702         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
65703         space, undoing this 2003-08-12 change:
65704         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65705
65706 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65707
65708         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
65709         strtoul.c from libc, undoing this 2003-08-12 change:
65710         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65711
65712 2003-08-16  Jim Meyering  <jim@meyering.net>
65713
65714         Merges from coreutils.
65715         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
65716         prefix.  Adjust cache variables similarly.  Create 500 rather than
65717         just 300 files, to exercise bug on Darwin6.5, too.
65718         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
65719         $missing_dir.
65720         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
65721         AM_SYS_POSIX_TERMIOS.
65722         Reported by mkc@mathdogs.com.
65723         Also change use of $am_cv_sys_posix_termios
65724         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
65725         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
65726         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
65727         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
65728         in /proc/mounts until it finds one with matching device number.  This
65729         is unnecessary when the FILE argument *is* a mount point.  No stat call
65730         is necessary in that case.  So, disable the statvfs-testing code on
65731         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
65732         as RedHat bug# 84846.
65733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65734         to 1MB, so as not to render systems with no stack size limit (e.g.,
65735         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65736         Include <unistd.h>.  On some systems,
65737         it is required for the definition of _SC_PAGESIZE.
65738
65739 2003-08-16  Jim Meyering  <jim@meyering.net>
65740
65741         Merge from coreutils.
65742         * lib/xstrtoimax.c: #else #if -> #elif.
65743         * lib/xstrtoumax.c: Likewise.
65744
65745 2003-08-16  Jim Meyering  <jim@meyering.net>
65746
65747         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
65748         * m4/utimes.m4: Removed.
65749         * m4/utimes-null.m4: Renamed from utimes.m4.
65750
65751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65752         to 1MB, so as not to render systems with no stack size limit (e.g.,
65753         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65754         Include <unistd.h>.  On some systems,
65755         it is required for the definition of _SC_PAGESIZE.
65756
65757 2003-08-16  Jim Meyering  <jim@meyering.net>
65758         and Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         Merges from coreutils, etc.
65761
65762         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
65763         using the latest version from cvs.  This avoids problems with #line
65764         directives using a vendor (Sun) compiler.
65765         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
65766         Don't set GETGROUPS_LIB here; now it's
65767         done via getgroups.m4's wrapper function.
65768         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
65769         rather than just in sh-util/configure.in, so that the
65770         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
65771         same.
65772         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
65773         AC_FUNC_GETLOADAVG where to find getloadavg.c.
65774         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
65775         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
65776         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
65777         Remove code that is now done by the newly-required macros.
65778         Append $(EXEEXT) to DF_PROG.
65779         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
65780         Do not invoke or require the following here,
65781         since prereq.m4 or some gnulib .m4 now does this for us:
65782         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
65783         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
65784         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
65785         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
65786         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
65787         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
65788         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
65789         AC_FUNC_OBSTACK.
65790         Do not replace the following functions, as this is now the job
65791         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
65792         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
65793         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
65794         atexit getpass, strdup, getpagesize.
65795         Replace 'raise'.
65796         Do not check for the following functions, as this is now the job
65797         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
65798         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
65799         setregid.
65800         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
65801         Check for sys/sysctl.h.
65802         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
65803         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
65804         of checking for ssize_t ourselves.
65805
65806         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
65807         Require every macro that gnulib/modules/* suggests for us.
65808         (jm_PREREQ_ADDEXT): New macro.
65809         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
65810         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65811
65812         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65813         (gl_PHYSMEM): Use it.
65814         Also check for `table' function.
65815         Check for new headers and functions.
65816         Add check for sys/sysmp.h.
65817         With suggestions from Kaveh Ghazi.
65818         Ignore headers that are present but cannot be compiled.  This
65819         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65820         C 5.4.
65821
65822 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65823
65824         Document merge from coreutils.
65825         * modules/userspec: Depend on posixver.
65826         * modules/strftime: Depend on tzset.
65827
65828 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65829
65830         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65831         rather than tab, after '#' in shell-script copyright notices.
65832         Suggested by Bruno Haible.
65833
65834 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65835
65836         * config/srclist-update: Use three spaces, rather than tab, after '#'
65837         in shell-script copyright notices.  Suggested by Bruno Haible.
65838         Remove unnecessary parenthesization in regular expression.
65839
65840 2003-08-15  Jim Meyering  <jim@meyering.net>
65841
65842         Merge from coreutils.
65843         * lib/xgethostname.c: Include <stdlib.h>.
65844         (xghostname): Don't exit for anything other than memory-related
65845         failure; just return NULL.
65846         * lib/userspec.c: Include "posixver.h".
65847         (parse_user_spec): Accept `.' as a separator only
65848         in pre-POSIX-200112 mode.
65849         * lib/strtoimax.c: Use #elif rather than #else #if.
65850         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65851         Remove function, now that we can rely on a working tzset function.
65852         [!_LIBC]: Ensure that the required autoconf test has been run.
65853         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65854         Use underlying_strftime for %r.
65855         * lib/sha.c: Merge in some clean-up and optimization changes from
65856         glibc.
65857         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65858         Ensure that it is a multiple of 64.
65859         Rearrange loop exit tests so as to avoid performing an
65860         additional fread after encountering an error or EOF.
65861         * lib/realloc.c: Update copyright date.
65862
65863 2003-08-15  Jim Meyering  <jim@meyering.net>
65864         and Paul Eggert  <eggert@twinsun.com>
65865
65866         Merge from coreutils.
65867         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65868         member but strut utmpx does not.  Needed for AIX 4.3.3.
65869         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65870
65871 2003-08-15  Jim Meyering  <jim@meyering.net>
65872         and Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         Merges from coreutils, etc.
65875         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65876         Require gl_FUNC_TZSET_CLOBBER.
65877         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65878         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65879         members.
65880
65881 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65882
65883         Help the merge from coreutils.
65884         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65885         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65886         * m4/tzset.m4: Use it too.
65887
65888 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65889
65890         * modules/tzset: New file.
65891
65892 2003-08-14  Jim Meyering  <jim@meyering.net>
65893
65894         Merges from coreutils.
65895         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65896         variable names, rather than @FNMATCH_H@.
65897         * modules/alloca: Likewise for $(ALLOCA_H).
65898
65899         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65900         the three copies of the literal target, `fnmatch.h'.
65901         * modules/alloca (alloca.h): Likewise.
65902
65903 2003-08-14  Jim Meyering  <jim@meyering.net>
65904
65905         Merge from coreutils.
65906         * m4/tzset.m4: New file.
65907         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65908         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65909         otherwise, AIX 5.1 systems would end up using the latter.
65910         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65911         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65912         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65913         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65914
65915 2003-08-14  Jim Meyering  <jim@meyering.net>
65916
65917         Merge from coreutils.
65918         * lib/obstack.h: Whitespace changes.
65919         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65920         and xcalloc return values.
65921         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65922         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65923         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65924         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65925         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65926         error from mntctl.
65927         Use mntctl's return value to drive the entry-processing loop, since
65928         we can't rely on the value of the vmt_length member in the last
65929         entry.  On some systems doing so could result in exhausting
65930         virtual memory.  Based in part on a patch from Mike Jetzer.
65931
65932 2003-08-14  Jim Meyering  <jim@meyering.net>
65933         and Paul Eggert  <eggert@twinsun.com>
65934
65935         Merges from coreutils, plus other fixes.
65936         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65937         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65938         for credits and details.  Thanks to Kaveh Ghazi for helping
65939         to keep these files in sync.
65940         (ARRAY_SIZE): Define it.
65941         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65942         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65943         (memcasecmp): Don't assume size_t fits in unsigned int.
65944         Remove casts and duplicate code.
65945         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65946         (memcpy): Remove definition.
65947         Merge in some clean-up and optimization changes from glibc.
65948         [BLOCKSIZE]: Move definition to top of file.
65949         Ensure that it is a multiple of 64.
65950         Rearrange loop exit tests so as to avoid performing an
65951         additional fread after encountering an error or EOF.
65952         * lib/md5.h (md5_uintptr): Define.
65953         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65954         return to the initial working directory.  Preserve errno
65955         for caller.
65956         * lib/idcache.c: Include "xalloc.h".
65957         (xmalloc, xrealloc): Remove decls.
65958         (getuser): Remove casts no longer required in C89.
65959         * lib/human.c: Include stdio.h, for sprintf.
65960         * lib/group-member.c: Include "xalloc.h".
65961         (xmalloc, xrealloc): Remove decls.
65962         (get_group_info): Remove casts no longer required in C89.
65963         * lib/getusershell.c (readname): Remove casts no longer required in
65964         C89.
65965         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65966         * lib/getline.c: Whitespace fix, from coreutils.
65967
65968 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65969
65970         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65971         Check for isascii.
65972
65973         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65974         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65975         Undo previous (whitespace-only) change.
65976
65977 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65978
65979         * lib/exclude.c: Include <ctype.h>
65980         (IN_CTYPE_DOMAIN): New macro.
65981         (is_space): New fn.
65982         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65983         and empty lines.
65984
65985         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65986         Undo previous (whitespace-only) change.
65987
65988 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65989
65990         * config/srclist-update: Change update back to the old behavior,
65991         leaving whitespace alone.  Use one 'sed' command rather than a
65992         pipeline.
65993         (fixlicense): Now a variable, not a function.
65994         (remove_trailing_blanks): Remove.
65995         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65996         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65997         Undo previous (whitespace-only) change.
65998
65999 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66000
66001         Merge from coreutils.
66002         * modules/euidaccess: Add lib_SOURCES, include for new
66003         file euidaccess.h
66004
66005 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66006
66007         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66008         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66009         Normalize leading white space and remove trailing white space.
66010
66011         Merge from coreutils
66012         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
66013
66014         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
66015         0.12.1.  These files are now being upgraded automatically by
66016         ../config/srclist-update.
66017
66018 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66019
66020         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66021         Normalize leading white space and remove trailing white space.
66022         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
66023         notice, as per ../config/srclist-update.
66024
66025         Merge from coreutils.
66026         * lib/euidaccess.h: New file.
66027         * lib/euidaccess.c: Include it.
66028         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
66029         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
66030         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
66031
66032 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66033
66034         * config/srclist-update: Add copyright notice.
66035         (remove_id_lines, remove_trailing_blanks): New constants.
66036         (fixfile): Use them to normalize spacing a bit in copied files.
66037         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66038         Normalize leading white space and remove trailing white space.
66039
66040         * config/texinfo.tex: Sync with texinfo.
66041
66042         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
66043         strtoul.c from libc, to merge coreutils whitespace changes.
66044
66045         * config/srclist.txt: Get the following m4 files from gettext:
66046         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
66047         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
66048         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
66049         wint_t.m4.
66050
66051 2003-08-12  Karl Berry  <karl@gnu.org>
66052
66053         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
66054         been made.
66055
66056 2003-08-11  Paul Eggert  <eggert@twinsun.com>
66057
66058         * modules/gnu-source, m4/gnu-source.m4:
66059         Remove; we're assuming Autoconf 2.54 or later now.
66060         Suggested by Bruno Haible.
66061         * MODULES.html.sh (func_all_modules): Remove gnu-source.
66062
66063 2003-08-11  Bruno Haible  <bruno@clisp.org>
66064
66065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
66066
66067 2003-08-11  Bruno Haible  <bruno@clisp.org>
66068
66069         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
66070         (vasnprintf): Use it instead of wcslen.
66071
66072 2003-08-11  Bruno Haible  <bruno@clisp.org>
66073
66074         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
66075         value to ensure that _Bool promotes to int. Use #define for _Bool when
66076         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
66077
66078 2003-08-10  Karl Berry  <karl@gnu.org>
66079
66080         * lib/regex.h: update from libc (whitespace fix).
66081
66082 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66083
66084         Merge some files from coreutils.  These changes were
66085         originally made by Jim Meyering.
66086         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
66087         many older Unixes require this.
66088         * lib/alloca.c (alloca): Remove cast to argument of free;
66089         no longer needed in C89.
66090         * lib/alloca_.h, regex.h: Fix white space to match
66091         what GNU indent does.
66092
66093 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66094
66095         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
66096         apparently Emacs's Unicode mode got confused before my 2003-08-05
66097         checkin.
66098
66099 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66100
66101         * m4/extensions.m4: New file.
66102         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
66103         Require gl_USE_SYSTEM_EXTENSIONS.
66104         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
66105         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
66106
66107 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66108
66109         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
66110         * modules/extensions, modules/gnu-source: New files.
66111         * modules/timespec, modules/unlocked-io: Depend on extensions.
66112
66113 2003-08-07  Paul Eggert  <eggert@twinsun.com>
66114
66115         * modules/restrict: New file.
66116         * MODULES.html.sh (func_all_modules): Add restrict.
66117         * modules/regex: Depend on restrict.
66118
66119 2003-08-07  Paul Eggert  <eggert@twinsun.com>
66120
66121         * m4/restrict.m4: New file.
66122         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
66123
66124 2003-08-07  Bruno Haible  <bruno@clisp.org>
66125
66126         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
66127         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
66128
66129 2003-08-07  Bruno Haible  <bruno@clisp.org>
66130
66131         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
66132         makes the module 'getndelim2' compatible with the module 'getline'.
66133
66134 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66135
66136         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
66137         byte with "\201" to avoid glitches when editing that source file
66138         with multi-gnome-terminal.
66139
66140 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66141
66142         * lib/bumpalloc.h: Remove.
66143
66144 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66145
66146         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
66147         * modules/bumpalloc: Remove.
66148
66149 2003-08-04  Paul Eggert  <eggert@twinsun.com>
66150
66151         * lib/getloadavg.c: Change copyright notice and spacing to conform to
66152         GNU coding style.
66153
66154         Merge from coreutils.
66155         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
66156         1. From glibc.
66157         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
66158         from Karl Berry, implemented by Jim Meyering.
66159         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
66160         from Dmitry V. Levin.
66161         Remove anachronistic cast of xrealloc.
66162         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
66163         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
66164         type. Otherwise, it wouldn't compile with at least /bin/cc on
66165         ymp-cray-unicos9.0.2.X.
66166         Combine two mostly-identical uses of alloca into one.
66167         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
66168
66169 2003-08-04  Dave Love  <d.love@dl.ac.uk>
66170
66171         [From Emacs.]
66172
66173         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
66174         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
66175         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
66176         obsolete NLIST_NAME_UNION.
66177         [__GNU__]: Undef BSD and FSCALE.
66178         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
66179
66180 2003-08-03  Paul Eggert  <eggert@twinsun.com>
66181
66182         * lib/stdbool_.h (_Bool): Make it signed char, instead of
66183         an enum type, so that it's guaranteed to promote to int.  See:
66184         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
66185
66186 2003-08-03  Karl Berry  <karl@gnu.org>
66187
66188         * config/depcomp: update from automake.
66189
66190 2003-07-31  Paul Eggert  <eggert@twinsun.com>
66191
66192         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
66193         (strerror): Don't assume that a printable int fits in 14 bytes.
66194
66195 2003-07-31  Bruno Haible  <bruno@clisp.org>
66196
66197         * modules/getpass-gnu: New file.
66198         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
66199
66200 2003-07-31  Bruno Haible  <bruno@clisp.org>
66201
66202         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
66203
66204 2003-07-24  Karl Berry  <karl@gnu.org>
66205
66206         * config/missing: update from automake.
66207
66208 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
66209             Bruno Haible  <bruno@clisp.org>
66210
66211         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
66212         * lib/getline.c (getline, getdelim): Likewise.
66213         Remove _GNU_SOURCE define; now it's defined in config.h through
66214         m4/getline.m4.
66215
66216 2003-07-23  Karl Berry  <karl@gnu.org>
66217
66218         * config/config.sub: update from prep.
66219
66220 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66221
66222         * modules/xalloc (Depends-on): Add exitfail.
66223         * modules/xmemcoll: Likewise.
66224
66225 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66226
66227         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
66228         over-parenthesization in macros.
66229
66230         Sync with coreutils.
66231
66232         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
66233         required by C99.
66234
66235         Use `exit_failure' for xalloc and xmemcoll instead of their own
66236         private exit-failure variables.
66237         * lib/xalloc.h (xalloc_exit_failure): Remove.
66238         * lib/xmalloc.c: Likewise.  Include exitfail.h.
66239         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
66240         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
66241         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
66242         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
66243
66244 2003-07-20  Jim Meyering  <jim@meyering.net>
66245
66246         * modules/closeout (Depends-on): Add exitfail.
66247         Suggestion from Bruno Haible.
66248
66249 2003-07-19  Karl Berry  <karl@gnu.org>
66250
66251         * config/config.sub: update from prep.
66252
66253 2003-07-18  Paul Eggert  <eggert@twinsun.com>
66254
66255         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
66256         Remove.
66257         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
66258         to test that it can stand by itself.  Include "exitfail.h".
66259         Clients should set exit_failure instead.
66260         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
66261
66262 2003-07-18  Bruno Haible  <bruno@clisp.org>
66263
66264         * modules/getndelim2: New file.
66265         * modules/getline: Share files with module getndelim2.
66266         * modules/getnline: Depend on getndelim2 instead of sharing files with
66267         it. Add getnline.c to lib_SOURCES.
66268         * MODULES.html.sh (func_all_modules): Add getndelim2.
66269
66270 2003-07-18  Bruno Haible  <bruno@clisp.org>
66271
66272         * m4/getndelim2.m4: New file.
66273         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
66274         invoke gl_PREREQ_GETNDELIM2.
66275         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
66276         gl_PREREQ_GETNDELIM2.
66277         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
66278         gl_GETNDELIM2.
66279
66280 2003-07-18  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/getndelim2.h: New file.
66283         * lib/getndelim2.c: Make into a module of its own. Include config.h,
66284         getndelim2.h.
66285         (getndelim2): Make non-static. Change return type to ssize_t.
66286         * lib/getline.h: Change argument names.
66287         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
66288         * lib/getnline.c: Include getndelim2.h.
66289
66290 2003-07-18  Andreas Schwab  <schwab@suse.de>
66291
66292         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
66293
66294 2003-07-17  Karl Berry  <karl@gnu.org>
66295
66296         * config/config.sub: update from prep.
66297
66298 2003-07-17  Bruno Haible  <bruno@clisp.org>
66299
66300         * modules/getnline: New file.
66301         * modules/getline: Add lib/getndelim2.c to source file list.
66302         * MODULES.html.sh (func_all_modules): Add getnline.
66303
66304 2003-07-17  Bruno Haible  <bruno@clisp.org>
66305
66306         * m4/getnline.m4: New file.
66307
66308 2003-07-17  Bruno Haible  <bruno@clisp.org>
66309
66310         * m4/Makefile.am.in: Remove file.
66311         * m4/Makefile.am: Remove file.
66312         * m4/Makefile.in: Remove file.
66313
66314 2003-07-17  Bruno Haible  <bruno@clisp.org>
66315
66316         * lib/getnline.h: New file.
66317         * lib/getnline.c: New file.
66318         * lib/getndelim2.c: New file, extracted from getline.c.
66319         (getndelim2): Renamed from getdelim2, with added nmax argument.
66320         * lib/getline.c: Include getndelim2.c.
66321         (getdelim2): Moved out to getndelim2.c.
66322         (getline, getdelim): Update.
66323
66324 2003-07-17  Bruno Haible  <bruno@clisp.org>
66325
66326         * lib/Makefile.am: Remove file.
66327         * lib/Makefile.in: Remove file.
66328
66329 2003-07-17  Bruno Haible  <bruno@clisp.org>
66330
66331         * configure.in: Remove file.
66332         * Makefile.in: Remove file.
66333
66334 2003-07-17  Bruno Haible  <bruno@clisp.org>
66335
66336         * MODULES.html.sh: Put the </BODY> right before </HTML>.
66337
66338 2003-07-16  Karl Berry  <karl@gnu.org>
66339
66340         * config/srclist-update: was running fixlicense twice, which caused
66341                 texinfo.tex to be nullified for some reason.  Simplify,
66342                 $gplsrc is no longer needed as far as I can see?
66343
66344 2003-07-16  Jim Meyering  <jim@meyering.net>
66345
66346         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
66347
66348 2003-07-15  Paul Eggert  <eggert@twinsun.com>
66349
66350         * config/srclist.txt: Get the following files from gettext-runtime/intl
66351         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
66352         ref-del.sin.  From Bruno Haible.
66353         * config/srclist-update (fixfile): Change grep pattern again, since the
66354         previous fix didn't work (there was another trailing $).  Use
66355         '[$]' to escape the $s.
66356
66357 2003-07-15  Karl Berry  <karl@gnu.org>
66358
66359         * lib/vasnprintf.c: update from gettext.
66360
66361 2003-07-15  Karl Berry  <karl@gnu.org>
66362
66363         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
66364         gets expanded when surrounded by '$'.
66365
66366 2003-07-15  Jim Meyering  <jim@meyering.net>
66367
66368         * modules/save-cwd: Don't depend on error.  From Derek Price.
66369
66370 2003-07-15  Jim Meyering  <jim@meyering.net>
66371
66372         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66373
66374 2003-07-14  Simon Josefsson  <jas@extundo.com>
66375
66376         * modules/mempcpy: New file.
66377         * MODULES.html.sh (func_all_modules): Add mempcpy.
66378
66379 2003-07-14  Simon Josefsson  <jas@extundo.com>
66380
66381         * m4/mempcpy.m4: New file.
66382
66383 2003-07-14  Simon Josefsson  <jas@extundo.com>
66384
66385         * lib/mempcpy.h: New file.
66386         * lib/mempcpy.c: New file.
66387
66388 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66389
66390         * modules/getdate, modules/posixtm: Depend on mktime.
66391
66392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66393
66394         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66395         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66396         unicodeio.c, unicodeio.h, unlocked-io.h:
66397         Switch from LGPL to GPL.
66398
66399 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66400
66401         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66402         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66403         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66404         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66405         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66406         updated automatically by ../config/srclist-update.  This changes
66407         their license from LPGL to GPL.
66408
66409 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66410
66411         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66412         assumed to refer to the root of the most recent stable gettext version.
66413         * config/srclistvars.sh: Add defaults for eggert.
66414         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66415         Match "This program" as well as "The program".  This is needed
66416         for gettext.
66417
66418 2003-07-14  Jim Meyering  <jim@meyering.net>
66419
66420         Don't emit diagnostics.  Let callers do that.
66421         * lib/save-cwd.c: Don't include "error.h".
66422         (save_cwd): Don't call error.  Ensure that errno is valid
66423         when returning nonzero.
66424
66425         * lib/save-cwd.h (restore_cwd): Update prototype.
66426         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66427         Simplify.  Don't call error upon failure.  Let callers do that.
66428         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66429         when auditing is enabled.  But don't bother updating the #if.
66430
66431 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66432
66433         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66434         it breaks C++ compilation.
66435         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66436
66437 2003-07-10  Simon Josefsson  <jas@extundo.com>
66438
66439         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66440
66441 2003-07-10  Jim Meyering  <jim@meyering.net>
66442
66443         * m4/clock_time.m4: Remove trailing blank.
66444         * m4/intmax_t.m4: Likewise.
66445
66446 2003-07-10  Jim Meyering  <jim@meyering.net>
66447
66448         * lib/vasnprintf.c: Remove trailing blanks.
66449         Make cpp indentation consistent.
66450
66451 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66452
66453         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66454         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66455         Switch from LGPL to GPL.
66456
66457 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66458
66459         * config/srclist.txt: Sort sublists.  Add
66460         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66461         that differ from gnulib for one reason or another; we'd like this list
66462         to be smaller but for now let's document what we have.
66463
66464 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66465
66466         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66467         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66468         and sweeter "eval x=$x".
66469         * config/srclist.txt: Get lib/argp* from glibc.
66470
66471 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66472
66473         * lib/mktime.c: Fix some boundary cases and remove need for floating
66474         point.
66475
66476         Issue a compile-time diagnostic if time_t is floating point, or if
66477         two's complement arithmetic is not in effect, or if arithmetic
66478         right shift does not propagate the sign.  These assumptions were
66479         all in the original code but they weren't checked.
66480
66481         (TIME_T_MIDPOINT, verify): New macros.
66482         (__isleap): Remove; it has integer overflow problems.
66483         (leapyear): New function, without those problems.
66484         (ydhms_tm_diff): Remove; splitting into two parts.
66485         (ydhms_diff): New function, containing the arithmetic part of
66486         the old ydhms_tm_diff function.  Issue a compile-time
66487         diagnostic if we are not using C99 integer division.
66488         Avoid casts when possible.
66489         (guess_time_tm): New function, containing the checking part of
66490         the old ydhms_tm_diff function.  Return the new value, rather than
66491         the difference between it and the old.  Accept a new argument T
66492         so that *T specifies the old value.  Check for overflow in the result.
66493
66494         (__mktime_internal): Use a time_t offset, not a long int offset.
66495         This undoes the 2003-06-04 change, which is no longer needed now
66496         that we have better overflow checking.
66497         (localtime_offset): Likewise.
66498
66499         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66500         and long are 64-bit but int is only 32-bit.
66501         (ydhms_diff): Use long int to store year1 and yday1.
66502         Issue a compile-time diagnostic if long int is not wide enough.
66503
66504         (__mktime_internal): Use long int to store adjusted year and yday.
66505         Use plain C rather than preprocessor commands, if that doesn't
66506         affect efficiency.
66507         Check for overflow (and try to repair) after each probe
66508         rather than checking only at the very end.  This avoids some bugs
66509         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66510         does not equal GMT offset at maximum time).
66511         Use integer to check for overflow rather than floating point; this
66512         is more portable to non-IEEE hosts, and is a tad faster.
66513         When we detect that we are oscillating between two values,
66514         don't check whether tm_isdst has the requested value, since
66515         we already know the answer.  When tm_isdst has the wrong value,
66516         use a different heuristic to find the right one, based on the
66517         extreme values actually observed in practice in tz2003a,
66518         rather than the (overly optimistic) "previous 3 calendar quarters".
66519
66520         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66521         "T const" to accommodate glibc style.
66522         (check_result): Use less-confusing report format.  "long" -> "long int.
66523         (main): Likewise.
66524         Don't loop if the iteration overflows time_t.
66525         Allow a negative step in the iteration.
66526
66527 2003-07-06  Karl Berry  <karl@gnu.org>
66528
66529         * config/depcomp: update from automake.
66530         * config/config.sub: update from prep.
66531
66532 2003-07-03  Karl Berry  <karl@gnu.org>
66533
66534         * config/config.guess: update from prep.
66535
66536 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66537
66538         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66539         xreadlink.c now includes it unconditionally.
66540
66541 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66542
66543         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66544         having it depend on HAVE_SYS_TYPES_H.
66545
66546 2003-07-01  Bruno Haible  <bruno@clisp.org>
66547
66548         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66549         <sys/types.h> should be sufficient.
66550         Reported by Paul Eggert.
66551
66552 2003-06-26  Karl Berry  <karl@gnu.org>
66553
66554         * config/depcomp: update from automake.
66555
66556 2003-06-26  Bruno Haible  <bruno@clisp.org>
66557
66558         * modules/human: Depend on module stdbool.
66559
66560 2003-06-25  Bruno Haible  <bruno@clisp.org>
66561
66562         * modules/readlink: New file.
66563         * modules/xreadlink: Depend on it.
66564         * MODULES.html.sh (func_all_modules): Add readlink.
66565
66566 2003-06-25  Bruno Haible  <bruno@clisp.org>
66567
66568         * m4/readlink.m4: New file.
66569
66570 2003-06-25  Bruno Haible  <bruno@clisp.org>
66571
66572         * lib/readlink.c: New file.
66573
66574 2003-06-22  Karl Berry  <karl@gnu.org>
66575
66576         * config/srclist.txt: update mkinstalldirs from automake.
66577         * config/mkinstalldirs: update.
66578
66579 2003-06-22  Bruno Haible  <bruno@clisp.org>
66580
66581         Portability to mingw32.
66582         * m4/ssize_t.m4: New file, from GNU gettext.
66583         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66584         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66585
66586 2003-06-22  Bruno Haible  <bruno@clisp.org>
66587
66588         * modules/safe-read: Add m4/ssize_t.m4.
66589         * modules/xreadlink: Add m4/ssize_t.m4.
66590
66591 2003-06-20  Bruno Haible  <bruno@clisp.org>
66592
66593         Assume C89, so PARAMS isn't needed.
66594         * lib/unicodeio.h (PARAMS): Remove.
66595         * lib/unicodeio.c: Don't use PARAMS.
66596
66597 2003-06-18  Karl Berry  <karl@gnu.org>
66598
66599         * config/config.{guess,sub}: update from prep.
66600
66601 2003-06-18  Jim Meyering  <jim@meyering.net>
66602
66603         Merge changes from coreutils.
66604         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66605         Remove explicit declarations of xmalloc and realloc.
66606         Include xalloc.h.
66607         (read_utmp): Remove anachronistic cast of xmalloc.
66608
66609 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66610
66611         Assume C89, so PARAMS isn't needed.
66612         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66613         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66614         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66615         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66616         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66617         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66618         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66619         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66620         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66621         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66622         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66623         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66624         no longer needed. Anyway, config.h should always be included before any
66625         other file.
66626
66627 2003-06-11  Simon Josefsson  <jas@extundo.com>
66628
66629         * modules/sysexits: New file.
66630         * MODULES.html.sh (func_all_modules): Add sysexits.
66631
66632 2003-06-11  Simon Josefsson  <jas@extundo.com>
66633
66634         * lib/sysexit_.h: New file.
66635
66636 2003-06-11  Derek Price  <derek@ximbiot.com>
66637
66638         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66639         necessary.
66640
66641 2003-06-11  Bruno Haible  <bruno@clisp.org>
66642
66643         * m4/sysexits.m4: New file.
66644
66645 2003-06-10  Simon Josefsson  <jas@extundo.com>
66646
66647         * lib/argp.h: New file, from glibc.
66648         * lib/argp-ba.c: New file, from glibc.
66649         * lib/argp-eexst.c: New file, from glibc.
66650         * lib/argp-fmtstream.c: New file, from glibc.
66651         * lib/argp-fmtstream.h: New file, from glibc.
66652         * lib/argp-fs-xinl.c: New file, from glibc.
66653         * lib/argp-help.c: New file, from glibc.
66654         * lib/argp-namefrob.h: New file, from glibc.
66655         * lib/argp-parse.c: New file, from glibc.
66656         * lib/argp-pv.c: New file, from glibc.
66657         * lib/argp-pvh.c: New file, from glibc.
66658         * lib/argp-xinl.c: New file, from glibc.
66659
66660 2003-06-10  Simon Josefsson  <jas@extundo.com>
66661
66662         * modules/strchrnul: New file.
66663
66664 2003-06-10  Simon Josefsson  <jas@extundo.com>
66665
66666         * modules/argp: New file.
66667
66668 2003-06-10  Simon Josefsson  <jas@extundo.com>
66669
66670         * m4/strchrnul.m4: New file.
66671
66672 2003-06-10  Simon Josefsson  <jas@extundo.com>
66673
66674         * lib/strchrnul.h: New file.
66675         * lib/strchrnul.c: New file.
66676
66677 2003-06-10  Bruno Haible  <bruno@clisp.org>
66678
66679         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
66680
66681 2003-06-07  Karl Berry  <karl@gnu.org>
66682
66683         * config/config.{guess,sub}: update from prep.
66684
66685 2003-06-07  Jim Meyering  <jim@meyering.net>
66686
66687         * modules/strtod: Use $(...) notation, not @...@ for
66688         AC_REPLACE'd variables.
66689         * modules/localcharset: Likewise.
66690
66691 2003-06-07  Jim Meyering  <jim@meyering.net>
66692
66693         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
66694         in place of my name in the copyright comment.
66695         Remove definition and uses of __P.
66696
66697         From coreutils.
66698         * lib/stat.c: Don't declare xmalloc explicitly.
66699         Instead, include "xalloc.h".
66700         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
66701         xrealloc, and xcalloc return values.
66702         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
66703         Improve comment.
66704         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
66705
66706 2003-06-07  Bruno Haible  <bruno@clisp.org>
66707
66708         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
66709         avoid AC_CONFIG_LINKS.
66710         * modules/fnmatch (Makefile.am): Use explicit creation rule for
66711         fnmatch.h, to avoid AC_CONFIG_LINKS.
66712         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
66713
66714 2003-06-07  Bruno Haible  <bruno@clisp.org>
66715
66716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
66717         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
66718         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66719         directory.
66720         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
66721         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66722         directory.
66723
66724 2003-06-06  Jim Meyering  <jim@meyering.net>
66725
66726         Merge from coreutils.
66727         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
66728         Consolidate declarations and initializations of *_base* locals.
66729
66730         Merge from coreutils.
66731         This avoids a core dump on systems without GNU putenv,
66732         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
66733         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
66734         (unsetenv): New static function, from GNU libc.
66735         (rpl_putenv): Use it.
66736
66737         * lib/modechange.c: Remove trailing blanks.
66738
66739         Merge from coreutils.
66740         * lib/fsusage.c: Remove declaration of statfs.
66741         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
66742
66743         * lib/posixtm.c: Include <stdbool.h> unconditionally.
66744
66745 2003-06-06  Jim Meyering  <jim@meyering.net>
66746
66747         * lib/stdbool_.h: Renamed from stdbool.h.in.
66748
66749 2003-06-06  Jim Meyering  <jim@meyering.net>
66750             Bruno Haible  <bruno@clisp.org>
66751
66752         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
66753         Adjust Makefile.am snippet not to redirect directly to target.
66754         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
66755
66756 2003-06-05  Paul Eggert  <eggert@twinsun.com>
66757
66758         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
66759         mismatch, look in future quarters as well as past.  This fixes a
66760         bug when processing fall-backwards gaps immediately after a long
66761         period of daylight-saving time.
66762
66763         * lib/mktime.c: Assume freestanding C89 or better.
66764         (HAVE_LIMITS_H): Remove.  Assume it's 1.
66765         (__P): Remove; not used.
66766         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
66767         (mktime, not_equal_tm, print_tm, check_result,
66768         main): Use prototypes.  Use const * where appropriate.
66769         (main): Fix typo in testing code that uncovered by above changes.
66770         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
66771
66772 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66773
66774         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
66775         locale.h, localeconv.  This merges changes from coreutils.
66776
66777         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
66778         It can be removed after the next Autoconf is released.
66779         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
66780         needed.
66781
66782 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66783
66784         * lib/mktime.c: Fix Debian bug 177940
66785         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
66786         (localtime_offset): Now long int, not time_t, because we want it
66787         to be guaranteed to be signed.  All uses changed.
66788         (__mktime_internal): If overflow would occur when adding offset,
66789         don't add it.
66790
66791         Merge 'human' changes from coreutils.  Rewrite to support
66792         locale-specific notations like thousands separators.
66793         * lib/human.c: Simplify authorship notice.
66794         Include human.h immediately after config.h.
66795         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
66796         <limits.h>: Do not include, since human.h does.
66797         (SIZE_MAX, UINTMAX_MAX): New macros.
66798         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
66799         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
66800         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
66801         (power_letter): Renamed from suffixes.
66802         (generate_suffix_backwards): Remove.
66803         (adjust_value): Now takes int style (because of human.h changes)
66804         and long double value (for greater precision on some platforms).
66805         (group_number): New function.
66806         (human_readable): Use it.  Use integer options, not enum.
66807         Put the options before the sizes in the arg list.
66808         Support all the new options.
66809         The old human_readable function has been removed;
66810         use inttostr.h instead.
66811         (human_readable, default_block_size, humblock):
66812         Use uintmax_t, not int, for block sizes.
66813         (human_readable_inexact, block_size_types): Remove.
66814         (block_size_opts): New constant.
66815         (human_options): Renamed from human_block_size, with new signature
66816         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66817         * lib/human.h: Add copyright and authorship notice.
66818         Include <limits.h> and <stdbool.h> unconditionally.
66819         (PARAMS): Remove.  All uses removed.
66820         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66821         (enum human_inexact_style): Remove tag; now a nameless enum.
66822         (human_floor, human_ceiling, human_round_to_even): Now have
66823         values 2, 0, 1 rather than -1, 1, 0.
66824         (human_group_digits, human_suppress_point_zero, human_autoscale,
66825         human_base_1024, human_SI, human_B): New constants.
66826         (human_readable_inexact, human_block_size): Remove.
66827         (human_readable): Size args are now uintmax_t, not int.
66828         (human_options): New decl.
66829
66830         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66831         unnecessary now that we assume C89 or better.  This change
66832         imported from coreutils.
66833
66834         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66835         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66836         in the 2003-05-30 sync from glibc.
66837
66838         .h files should stand alone, but we shouldn't include <sys/types.h>
66839         if we can get away with just <stddef.h>.
66840
66841         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66842         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66843         rather than <sys/types.h>, as we merely need size_t.
66844         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66845         to get size_t.
66846         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66847         Include <stdio.h>, to get FILE.
66848         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66849         memcasecmp.h has included <stddef.h> and all we need is size_t.
66850         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66851         our interface, instead of including <sys/types.h>
66852
66853 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66854
66855         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66856         now, as glibc mktime is buggy on non-glibc systems.
66857
66858 2003-06-03  Karl Berry  <karl@gnu.org>
66859
66860         * config/config.sub: update from prep.
66861
66862 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66863
66864         [from coreutils]
66865         Fix some minor time-related bugs with POSIX time arguments.
66866         Some valid time stamps were being rejected (notably -1, and
66867         time stamps before 1900 on 64-bit hosts).  And some invalid
66868         time stamps were being accepted, e.g. September 31.
66869
66870         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66871         that we can return (time_t) -1 successfully.
66872         * lib/posixtm.c: Likewise.
66873         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66874         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66875         (t): Remove static var.
66876         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66877         of static var.  All uses changed.
66878         (year): Do not reject years before 1900; they can occur with
66879         64-bit time_t.
66880         (posix_time_parse): Do not check for out-of-range components;
66881         that is now the caller's responsibility, since our checks were
66882         only approximations.
66883         (posixtime): Use mktime to check for out-of-range components,
66884         since it knows them exactly.
66885         If mktime returns (time_t) -1, check whether an error actually occurred
66886         by invoking localtime on -1.
66887         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66888         posixtime failures better.
66889         Improve the test data (in comments only).
66890
66891 2003-06-02  Karl Berry  <karl@gnu.org>
66892
66893         * config/mkinstalldirs (version): new variable.
66894         (--version): new option.
66895         (usage): improve message.
66896
66897 2003-05-30  Karl Berry  <karl@gnu.org>
66898
66899         * lib/mktime.c: update from libc.
66900
66901 2003-05-30  Bruno Haible  <bruno@clisp.org>
66902
66903         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66904         * config/config.rpath: Upgrade to gettext-0.12.1.
66905
66906 2003-05-30  Bruno Haible  <bruno@clisp.org>
66907
66908         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66909         * m4/nls.m4: New file, from gettext-0.12.1.
66910         * m4/po.m4: New file, from gettext-0.12.1.
66911         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66912
66913 2003-05-30  Bruno Haible  <bruno@clisp.org>
66914
66915         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66916         * lib/localcharset.h: Likewise.
66917         * lib/localcharset.c: Likewise.
66918
66919 2003-05-29  Karl Berry  <karl@gnu.org>
66920
66921         * config/config.rpath: update from gettext.
66922
66923 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66924
66925         Assume the headers required for C89 freestanding compilers.
66926         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66927         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66928         * m4/human.m4 (gl_HUMAN): Likewise.
66929         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66930         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66931         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66932         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66933         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66934         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66935
66936 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66937
66938         Assume the headers required for C89 freestanding compilers.
66939         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66940         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66941         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66942         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66943         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66944         define, since <limits.h> is guaranteed to do that.
66945         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66946         * lib/exclude.c: Include <stdbool.h> unconditionally.
66947         * lib/tempname.c: Include <stddef.h> unconditionally.
66948         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66949         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66950         <stddef.h> does that.
66951         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66952         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66953         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66954         needed.
66955         * lib/xstrtol.c: Likewise.
66956         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66957         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66958
66959         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66960         warnings on some platforms.
66961
66962         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66963         arbitrarily.
66964
66965 2003-05-26  Jim Meyering  <jim@meyering.net>
66966
66967         Merge in a change from coreutils:
66968         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66969         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66970         that condition, rather than `-1' which is slightly misleading.
66971         Change the name of the cache variable to have the gl_ prefix.
66972         Prompted by a patch from Richard Dawe for DJGPP.
66973
66974 2003-05-24  Karl Berry  <karl@gnu.org>
66975
66976         * config/config.guess: update from prep.
66977
66978 2003-05-22  Karl Berry  <karl@gnu.org>
66979
66980         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66981
66982 2003-05-20  Karl Berry  <karl@gnu.org>
66983
66984         * config/config.guess: update from prep.
66985
66986 2003-05-18  Karl Berry  <karl@gnu.org>
66987
66988         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66989         might actually be set by the user.
66990
66991         * config/depcomp, install-sh, mdate-sh: update from automake.
66992
66993 2003-05-17  Bruno Haible  <bruno@clisp.org>
66994
66995         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66996         invalid expansion for AC_EGREP_CPP.
66997         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66998         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66999         Suggested by Akim Demaille <akim@epita.fr> in
67000         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
67001
67002 2003-05-12  Jim Meyering  <jim@meyering.net>
67003
67004         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
67005         the space-padded-by-default conversion specifiers, %e, %k, %l.
67006
67007 2003-05-12  Bruno Haible  <bruno@clisp.org>
67008
67009         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
67010         the string is longer than 4 KB.
67011
67012 2003-05-11  Karl Berry  <karl@gnu.org>
67013
67014         * config/config.{guess,sub}: update from prep.
67015
67016 2003-05-09  Bruno Haible  <bruno@clisp.org>
67017
67018         * modules/error: Add m4/strerror_r.m4 to file list.
67019
67020 2003-05-03  Bruno Haible  <bruno@clisp.org>
67021
67022         Upgrade to Unicode-4.0.
67023         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
67024         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
67025         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
67026         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
67027         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
67028         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
67029         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
67030         Change width of U+E0100..U+E01EF from 1 to 0.
67031
67032 2003-04-25  Jim Meyering  <jim@meyering.net>
67033
67034         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
67035         of type size_t, not int.
67036
67037 2003-04-25  Bruno Haible  <bruno@clisp.org>
67038
67039         * lib/copy-file.c: Include <stddef.h>, for size_t.
67040
67041 2003-04-21  Paul Eggert  <eggert@twinsun.com>
67042
67043         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
67044         code which expansion is under static control.  Patch imported from
67045         Akim Demaille's patch to Bison; see
67046         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
67047
67048 2003-04-14  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
67051
67052 2003-04-11  Jim Meyering  <jim@meyering.net>
67053
67054         Merge changes from Coreutils.
67055
67056         2003-03-22  Jim Meyering  <jim@meyering.net>
67057
67058         * lib/strftime.c (widen): Cast alloca return value to proper type.
67059
67060         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
67061
67062         From GNU libc.
67063         * lib/strftime.c (my_strftime): Handle very large width
67064         specifications for numeric values correctly.  Improve checks for
67065         overflow.
67066
67067         2003-01-19  Jim Meyering  <jim@meyering.net>
67068
67069         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
67070         definitions.
67071         (nl_get_alt_digit) [! defined my_strftime]: Define.
67072         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
67073         _nl_get_alt_digit and _nl_get_walt_digit.
67074
67075         * lib/strftime.c (my_strftime): Merge in locale-related changes from
67076         libc. These changes have no effect outside of _LIBC.
67077
67078 2003-04-10  Bruno Haible  <bruno@clisp.org>
67079
67080         * modules/findprog: New file.
67081         * MODULES.html.sh (func_all_modules): Add it.
67082
67083 2003-04-10  Bruno Haible  <bruno@clisp.org>
67084
67085         * m4/findprog.m4: New file.
67086         * m4/eaccess.m4: New file.
67087
67088 2003-04-10  Bruno Haible  <bruno@clisp.org>
67089
67090         * lib/findprog.h: New file, from GNU gettext.
67091         * lib/findprog.c: New file, from GNU gettext.
67092
67093 2003-04-05  Jim Meyering  <jim@meyering.net>
67094
67095         Merge changes from Coreutils.
67096
67097         * lib/exclude.h (PARAMS): Remove definition and uses.
67098         * lib/exclude.c: Remove uses of `PARAMS'.
67099
67100         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
67101         Add test-cases for DOS filenames. Declare program_name.
67102         (main): Set up program_name.  Patch by Rich Dawe.
67103
67104         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67105         error from mntctl.
67106         Use mntctl's return value to drive the entry-processing loop, since
67107         we can't rely on the value of the vmt_length member in the last
67108         entry.  On some systems doing so could result in exhausting
67109         virtual memory.  Based in part on a patch from Mike Jetzer.
67110
67111 2003-04-04  Bruno Haible  <bruno@clisp.org>
67112
67113         * modules/linebreak: New file.
67114         * MODULES.html.sh (func_all_modules): Add it.
67115
67116 2003-04-04  Bruno Haible  <bruno@clisp.org>
67117
67118         * m4/linebreak.m4: New file.
67119
67120 2003-04-04  Bruno Haible  <bruno@clisp.org>
67121
67122         * lib/linebreak.h: New file, from GNU gettext.
67123         * lib/linebreak.c: New file, from GNU gettext with slight
67124         modifications.
67125         * lib/lbrkprop.h: New file, from GNU gettext.
67126
67127 2003-04-03  Bruno Haible  <bruno@clisp.org>
67128
67129         * modules/utf8-ucs4: New file.
67130         * modules/utf16-ucs4: New file.
67131         * modules/ucs4-utf8: New file.
67132         * modules/ucs4-utf16: New file.
67133         * MODULES.html.sh (func_all_modules): Add them.
67134
67135 2003-04-03  Bruno Haible  <bruno@clisp.org>
67136
67137         * m4/utf-ucs4.m4: New file.
67138         * m4/ucs4-utf.m4: New file.
67139
67140 2003-04-03  Bruno Haible  <bruno@clisp.org>
67141
67142         * lib/utf8-ucs4.h: New file, from GNU gettext.
67143         * lib/utf16-ucs4.h: New file, from GNU gettext.
67144         * lib/ucs4-utf8.h: New file, from GNU gettext.
67145         * lib/ucs4-utf16.h: New file, from GNU gettext.
67146
67147 2003-04-02  Bruno Haible  <bruno@clisp.org>
67148
67149         * modules/binary-io: New file.
67150         * MODULES.html.sh (func_all_modules): Add it.
67151
67152 2003-04-02  Bruno Haible  <bruno@clisp.org>
67153
67154         * lib/binary-io.h: New file, from GNU gettext.
67155
67156 2003-04-01  Bruno Haible  <bruno@clisp.org>
67157
67158         * modules/pathname: New file.
67159         * MODULES.html.sh (func_all_modules): Add it.
67160
67161 2003-04-01  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/pathname.h: New file, from GNU gettext.
67164         * lib/concatpath.c: New file, from GNU gettext.
67165
67166 2003-03-30  Bruno Haible  <bruno@clisp.org>
67167
67168         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
67169
67170 2003-03-30  Bruno Haible  <bruno@clisp.org>
67171
67172         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
67173         function chown() doesn't exist.
67174
67175 2003-03-28  Bruno Haible  <bruno@clisp.org>
67176
67177         * modules/copy-file: New file.
67178         * MODULES.html.sh (func_all_modules): Add it.
67179
67180 2003-03-28  Bruno Haible  <bruno@clisp.org>
67181
67182         * m4/copy-file.m4: New file.
67183
67184 2003-03-28  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/copy-file.h: New file, from GNU gettext.
67187         * lib/copy-file.c: New file, from GNU gettext.
67188
67189 2003-03-18  Jim Meyering  <jim@meyering.net>
67190
67191         * lib/quote.c (quote_n): Fix typo in comment.
67192
67193 2003-03-18  Bruno Haible  <bruno@clisp.org>
67194
67195         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
67196         checking.
67197         * m4/onceonly_2_57.m4: Likewise.
67198
67199 2003-03-17  Bruno Haible  <bruno@clisp.org>
67200
67201         * m4/onceonly.m4: Require autoconf 2.54 or newer.
67202         (m4_quote): Remove macro.
67203         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
67204
67205 2003-03-14  Jim Meyering  <jim@meyering.net>
67206
67207         Merge changes from Coreutils.
67208         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
67209         to be const, in order to avoid warnings.
67210         (obstack_room): Likewise.
67211         (obstack_empty_p): Likewise.
67212
67213 2003-03-14  Bruno Haible  <bruno@clisp.org>
67214
67215         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
67216         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
67217
67218 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67219
67220         Merge changes from Bison.
67221         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
67222         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
67223         when compiling Bison 1.875's `bitset bset = obstack_alloc
67224         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
67225         * lib/hash.c: Include <stdbool.h> unconditionally.
67226
67227 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67228
67229         * m4/onceonly.m4 (m4_quote): New macro.
67230         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
67231         Quote AC_FOREACH variable-expansions properly.
67232
67233 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67234
67235         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
67236
67237 2003-03-09  Paul Eggert  <eggert@twinsun.com>
67238
67239         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
67240         Reported by Bruce Becker; see:
67241         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
67242
67243 2003-03-03  Paul Eggert  <eggert@twinsun.com>
67244             Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
67247         Reported by John Hughes, see
67248         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
67249
67250 2003-02-20  Bruno Haible  <bruno@clisp.org>
67251
67252         * MODULES.html.sh (func_all_modules): Add poll.
67253
67254 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67255
67256         * modules/poll: New file.
67257
67258 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67259
67260         * lib/poll_.h: New file.
67261         * lib/poll.c: New file.
67262
67263 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67264
67265         * m4/poll.m4: New file.
67266
67267 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67268
67269         * modules/mathl: New file.
67270
67271 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67272
67273         * lib/mathl.h: New file.
67274         * lib/acosl.c: New file.
67275         * lib/asinl.c: New file.
67276         * lib/atanl.c: New file.
67277         * lib/ceill.c: New file.
67278         * lib/cosl.c: New file.
67279         * lib/expl.c: New file.
67280         * lib/floorl.c: New file.
67281         * lib/frexpl.c: New file.
67282         * lib/ldexpl.c: New file.
67283         * lib/logl.c: New file.
67284         * lib/sincosl.c: New file.
67285         * lib/sinl.c: New file.
67286         * lib/sqrtl.c: New file.
67287         * lib/tanl.c: New file.
67288         * lib/trigl.c: New file.
67289         * lib/trigl.h: New file.
67290
67291 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67292
67293         * m4/mathl.m4: New file.
67294
67295 2003-02-18  Bruno Haible  <bruno@clisp.org>
67296
67297         * MODULES.html.sh (func_all_modules): Add mathl.
67298
67299 2003-02-17  Bruno Haible  <bruno@clisp.org>
67300
67301         * modules/mkdtemp: New module.
67302         * MODULES.html.sh (func_all_modules): Add it.
67303
67304 2003-02-17  Bruno Haible  <bruno@clisp.org>
67305
67306         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
67307
67308 2003-02-17  Bruno Haible  <bruno@clisp.org>
67309
67310         * lib/mkdtemp.h: New file, from GNU gettext.
67311         * lib/mkdtemp.c: New file, from GNU gettext.
67312
67313 2003-02-02  Jim Meyering  <jim@meyering.net>
67314
67315         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
67316         e.g. glibc-2.2.93.
67317
67318 2003-01-31  Bruno Haible  <bruno@clisp.org>
67319
67320         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
67321         'rpl_rename'.
67322         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
67323         'rpl_strnlen'.
67324         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
67325         'rpl_strtod'.
67326         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
67327         'rpl_utime'.
67328
67329 2003-01-31  Bruno Haible  <bruno@clisp.org>
67330
67331         * lib/rename.c: #undef rename before defining rpl_rename.
67332         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
67333
67334 2003-01-30  Bruno Haible  <bruno@clisp.org>
67335
67336         * modules/vasnprintf, modules/vasprintf: New modules.
67337         * MODULES.html.sh (func_all_modules): Add them.
67338
67339 2003-01-30  Bruno Haible  <bruno@clisp.org>
67340
67341         * m4/signed.m4: New file, from GNU gettext.
67342         * m4/longdouble.m4: New file, from GNU gettext.
67343         * m4/wchar_t.m4: New file, from GNU gettext.
67344         * m4/wint_t.m4: New file, from GNU gettext.
67345         * m4/vasnprintf.m4: New file.
67346         * m4/vasprintf.m4: New file.
67347
67348 2003-01-30  Bruno Haible  <bruno@clisp.org>
67349
67350         * lib/printf-args.h: New file, from GNU gettext.
67351         * lib/printf-args.c: New file, from GNU gettext.
67352         * lib/printf-parse.h: New file, from GNU gettext.
67353         * lib/printf-parse.c: New file, from GNU gettext.
67354         * lib/vasnprintf.h: New file, from GNU gettext.
67355         * lib/vasnprintf.c: New file, from GNU gettext.
67356         * lib/asnprintf.c: New file, from GNU gettext.
67357         * lib/vasprintf.h: New file, from GNU gettext with modifications.
67358         * lib/vasprintf.c: New file, from GNU gettext.
67359         * lib/asprintf.c: New file, from GNU gettext.
67360
67361 2003-01-29  Bruno Haible  <bruno@clisp.org>
67362
67363         * modules/stpncpy: New module.
67364         * MODULES.html.sh (func_all_modules): Add it.
67365
67366 2003-01-29  Bruno Haible  <bruno@clisp.org>
67367
67368         * m4/stpncpy.m4: New file.
67369
67370 2003-01-29  Bruno Haible  <bruno@clisp.org>
67371
67372         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67373         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67374
67375 2003-01-28  Bruno Haible  <bruno@clisp.org>
67376
67377         * modules/c-ctype: New module.
67378         * MODULES.html.sh (func_all_modules): Add it.
67379
67380 2003-01-28  Bruno Haible  <bruno@clisp.org>
67381
67382         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67383         Paul Eggert.
67384         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67385         Paul Eggert.
67386
67387 2003-01-27  Bruno Haible  <bruno@clisp.org>
67388
67389         * modules/xsetenv: New module.
67390         * MODULES.html.sh (func_all_modules): Add it.
67391
67392 2003-01-27  Bruno Haible  <bruno@clisp.org>
67393
67394         * lib/xsetenv.h: New file, from GNU gettext.
67395         * lib/xsetenv.c: New file, from GNU gettext.
67396
67397 2003-01-23  Jim Meyering  <jim@meyering.net>
67398
67399         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67400         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67401
67402 2003-01-23  Bruno Haible  <bruno@clisp.org>
67403
67404         * modules/minmax: New module.
67405         * MODULES.html.sh (func_all_modules): Add it.
67406
67407 2003-01-23  Bruno Haible  <bruno@clisp.org>
67408
67409         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67410         Eggert.
67411
67412 2003-01-22  Bruno Haible  <bruno@clisp.org>
67413
67414         * modules/exit: New module.
67415         * MODULES.html.sh (func_all_modules): Add it.
67416
67417 2003-01-22  Bruno Haible  <bruno@clisp.org>
67418
67419         * lib/exit.h: New file, from GNU gettext.
67420
67421 2003-01-19  Bruno Haible  <bruno@clisp.org>
67422
67423         * gnulib-tool: Recognize option --extract-maintainer.
67424         (func_get_maintainer): New function.
67425         * modules/*: Add Maintainer entry.
67426
67427 2003-01-16  Jim Meyering  <jim@meyering.net>
67428
67429         * m4/regex.m4: The `regex' struct is both input and output.
67430         Initialize it before each use.  Patch by Tim Waugh.
67431
67432 2003-01-16  Bruno Haible  <bruno@clisp.org>
67433
67434         * MODULES.html.sh: Add a table of contents. Add the module name as
67435         leftmost column. Add hyperlinks.
67436
67437 2003-01-15  Bruno Haible  <bruno@clisp.org>
67438
67439         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67440
67441 2003-01-15  Bruno Haible  <bruno@clisp.org>
67442
67443         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67444         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67445         suffix.
67446
67447 2003-01-15  Bruno Haible  <bruno@clisp.org>
67448
67449         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67450
67451 2003-01-15  Bruno Haible  <bruno@clisp.org>
67452
67453         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67454         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67455
67456 2003-01-14  Jim Meyering  <jim@meyering.net>
67457
67458         * lib/same.c (same_name): Tweak a comment.
67459
67460 2003-01-14  Bruno Haible  <bruno@clisp.org>
67461
67462         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67463         when a string comparison is sufficient.
67464
67465 2003-01-14  Bruno Haible  <bruno@clisp.org>
67466
67467         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67468         'unsigned int'.
67469
67470 2003-01-14  Bruno Haible  <bruno@clisp.org>
67471
67472         * lib/hash-pjw.c: Add comment about low quality of this function.
67473
67474 2003-01-13  Bruno Haible  <bruno@clisp.org>
67475
67476         * modules/stpcpy: Distribute lib/stpcpy.h.
67477         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67478
67479 2003-01-13  Bruno Haible  <bruno@clisp.org>
67480
67481         * modules/*: Add a description.
67482         * modules/strpbrk: Fix Makefile.am snippet.
67483         * modules/strtoimax: Fix dependencies.
67484         * modules/strtoumax: Likewise.
67485
67486 2003-01-13  Bruno Haible  <bruno@clisp.org>
67487
67488         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67489         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67490         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67491
67492 2003-01-13  Bruno Haible  <bruno@clisp.org>
67493
67494         * gnulib-tool (func_create_testdir): Store config/* files in the main
67495         directory.
67496         * config.rpath: Move to ...
67497         * config/config.rpath: ... here.
67498         * modules/gettext: Contains config/config.rpath, not config.rpath.
67499         * modules/iconv: Likewise.
67500
67501 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67502
67503         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67504         to avoid collisions with libcurses and libreadline.
67505
67506         * m4/getstr.m4: Remove.
67507         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67508
67509 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67510
67511         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67512         to avoid collisions with libcurses and libreadline.
67513
67514         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67515         * lib/getstr.h, getstr.c: Remove.
67516         * lib/getline.c: Include "getline.h", to check interface.
67517         Move body of old getstr.c here: this defines MIN_CHUNK and
67518         declares getdelim2, which is renamed from getstr.
67519         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67520
67521         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67522         All uses changed.
67523         * lib/linebuffer.h: Likewise.
67524         (readline): Remove backward-compatibility macro.
67525
67526 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67527
67528         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67529         to avoid collisions with libcurses and libreadline.
67530         * getstr: Remove.
67531         * MODULES.html.sh: Remove getstr.
67532         * modules/getline: Depend on unlocked-io, not getstr.
67533
67534 2003-01-12  Jim Meyering  <jim@meyering.net>
67535
67536         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67537
67538 2003-01-10  Bruno Haible  <bruno@clisp.org>
67539
67540         * modules/alloca: Change Makefile.am requirements. Simplify Include
67541         requirements. Add lib/alloca_.h to file list.
67542
67543 2003-01-10  Bruno Haible  <bruno@clisp.org>
67544
67545         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67546
67547 2003-01-10  Bruno Haible  <bruno@clisp.org>
67548
67549         * lib/alloca_.h: New file.
67550         * lib/getdate.y: Unconditionally include alloca.h.
67551         * lib/makepath.c: Likewise.
67552         * lib/setenv.c: Likewise.
67553         * lib/userspec.c: Likewise.
67554
67555 2003-01-09  Karl Berry  <karl@gnu.org>
67556
67557         * MODULES.html.sh: include `dirname $0` in PATH, to find
67558         gnulib-tool.
67559
67560 2003-01-09  Bruno Haible  <bruno@clisp.org>
67561
67562         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67563         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67564
67565 2003-01-09  Bruno Haible  <bruno@clisp.org>
67566
67567         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67568
67569 2003-01-09  Bruno Haible  <bruno@clisp.org>
67570
67571         * lib/stdbool.h.in: New file.
67572
67573 2003-01-09  Bruno Haible  <bruno@clisp.org>
67574
67575         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67576         * MODULES.html.sh: Likewise.
67577
67578 2003-01-08  Jim Meyering  <jim@meyering.net>
67579
67580         * lib/full-write.c: Undefine and define-away `const' after inclusion
67581         of errno.h, not before.  Suggestion from Bruno Haible.
67582
67583 2003-01-08  Bruno Haible  <bruno@clisp.org>
67584
67585         * modules/full-read: Depend on full-write.
67586
67587 2003-01-08  Bruno Haible  <bruno@clisp.org>
67588
67589         * lib/safe-read.c: Include specification header first, to ensure its
67590         selfcontainedness.
67591         * lib/full-write.c: Likewise.
67592
67593 2003-01-07  Jim Meyering  <jim@meyering.net>
67594
67595         * lib/full-write.c: Rework so that it may serve to define full_read,
67596         too.
67597         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67598
67599 2003-01-07  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67602         <inttypes.h>.
67603         * lib/xstrtol.h: Likewise.
67604         * lib/xstrtoimax.c: Likewise.
67605         * lib/xstrtoumax.c: Likewise.
67606         * lib/human.h: Likewise.
67607
67608         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67609         on systems that have <inttypes.h> but not <stdint.h>.
67610
67611 2003-01-07  Bruno Haible  <bruno@clisp.org>
67612
67613         * MODULES.html.sh: Add copyright notice.
67614         (missed_files): Omit CVS directory entries.
67615         (func_module): Make it work with sed-3.02.
67616         * MODULES.txt: Remove file.
67617
67618 2003-01-06  Jim Meyering  <jim@meyering.net>
67619
67620         * lib/version-etc.c: Update year in translatable copyright string.
67621
67622 2003-01-03  Karl Berry  <karl@gnu.org>
67623
67624         * config/config.{guess,sub}: update from prep.
67625
67626 2003-01-02  Karl Berry  <karl@gnu.org>
67627
67628         * doc/COPYING.DOC: belatedly updated to 1.2.
67629
67630 2003-01-01  Karl Berry  <karl@gnu.org>
67631
67632         * gnulib-tool (func_verify_module): report module name $module in
67633         error message, not $1.
67634         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67635         be created, only if it doesn't exist.
67636         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67637
67638 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67639
67640         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67641
67642 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67643
67644         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67645         memcmp if strcoll doesn't work.
67646
67647 2002-12-31  Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/utime.c (utime_null): No need to call ftruncate if the file was
67650         nonempty.
67651
67652 2002-12-31  Bruno Haible  <bruno@clisp.org>
67653
67654         * lib/memcoll.c (STRCOLL): New macro.
67655         (memcoll): Use it.
67656
67657 2002-12-31  Bruno Haible  <bruno@clisp.org>
67658
67659         * lib/localcharset.h: New file.
67660         * lib/localcharset.c: Include it.
67661         * lib/unicodeio.c: Likewise.
67662
67663 2002-12-31  Bruno Haible  <bruno@clisp.org>
67664
67665         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
67666         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
67667
67668 2002-12-31  Bruno Haible  <bruno@clisp.org>
67669
67670         * lib/getline.h: Include <stddef.h>, for size_t.
67671
67672         * lib/unicodeio.h: Include <stddef.h>, for size_t.
67673         * lib/unicodeio.c: Don't include <stddef.h>.
67674
67675 2002-12-31  Bruno Haible  <bruno@clisp.org>
67676
67677         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
67678         HAVE_TM_ZONE.
67679
67680 2002-12-24  Karl Berry  <karl@gnu.org>
67681
67682         * config/config.guess: update from prep.
67683
67684 2002-12-24  Bruno Haible  <bruno@clisp.org>
67685
67686         General infrasructure.
67687         * m4/README: Rewritten.
67688         * m4/onceonly.m4: New file.
67689         * m4/onceonly_2_57.m4: New file.
67690
67691         Module atexit.
67692         * m4/atexit.m4: New file.
67693
67694         Module strtod.
67695         * m4/strtod.m4: New file.
67696
67697         Module strtol.
67698         * m4/strtol.m4: New file.
67699
67700         Module strtoul.
67701         * m4/strtoul.m4: New file.
67702
67703         Module memchr.
67704         * m4/memchr.m4: New file.
67705
67706         Module memcmp.
67707         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
67708         (jm_FUNC_MEMCMP): Invoke it.
67709
67710         Module memcpy.
67711         * m4/memcpy.m4: New file.
67712
67713         Module memmove.
67714         * m4/memmove.m4: New file.
67715
67716         Module memset.
67717         * m4/memset.m4: New file.
67718
67719         Module strcspn.
67720         * m4/strcspn.m4: New file.
67721
67722         Module strpbrk.
67723         * m4/strpbrk.m4: New file.
67724
67725         Module strstr.
67726         * m4/strstr.m4: New file.
67727
67728         Module strerror.
67729         * m4/strerror.m4: New file.
67730
67731         Module mktime.
67732         * m4/mktime.m4: Renamed from jm-mktime.m4.
67733         (gl_PREREQ_MKTIME): New macro.
67734         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
67735
67736         Module malloc.
67737         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
67738         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
67739         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
67740
67741         Module realloc.
67742         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
67743         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
67744         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
67745
67746         Module strftime.
67747         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
67748         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
67749         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
67750         gl_TM_GMTOFF.
67751         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
67752
67753         Module xalloc.
67754         * m4/xalloc.m4: New file.
67755
67756         Module alloca.
67757         * m4/alloca.m4: New file.
67758
67759         Module putenv.
67760         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
67761         (jm_FUNC_PUTENV): Invoke it.
67762
67763         Module setenv.
67764         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
67765         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
67766         when invoked twice.
67767         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
67768         gt_FUNC_SETENV.
67769
67770         Module memrchr.
67771         * m4/memrchr.m4: New file.
67772
67773         Module stpcpy.
67774         * m4/stpcpy.m4: New file.
67775
67776         Module strcase.
67777         * m4/strcase.m4: New file.
67778
67779         Module strdup.
67780         * m4/strdup.m4: New file.
67781
67782         Module strnlen.
67783         * m4/strnlen.m4: New file.
67784
67785         Module strndup.
67786         * m4/strndup.m4: New file.
67787
67788         Module xstrtod.
67789         * m4/xstrtod.m4: New file.
67790
67791         Module xstrtol.
67792         * m4/xstrtol.m4: New file.
67793
67794         Module getdate.
67795         * m4/getdate.m4: New file.
67796
67797         Module unlocked-io.
67798         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
67799         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
67800         * m4/jm-glibc-io.m4n: Remove file.
67801
67802         Module long-options.
67803         * m4/long-options.m4: New file.
67804
67805         Module md5.
67806         * m4/md5.m4: New file.
67807
67808         Module sha.
67809         * m4/sha.m4: New file.
67810
67811         Module getstr.
67812         * m4/getstr.m4: New file.
67813
67814         Module getline.
67815         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67816         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67817         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67818         simply getline. Infoke gl_PREREQ_GETLINE.
67819
67820         Module obstack.
67821         * m4/obstack.m4: New file.
67822
67823         Module hash.
67824         * m4/hash.m4: New file.
67825
67826         Module readtokens.
67827         * m4/readtokens.m4: New file.
67828
67829         Module strverscmp.
67830         * m4/strverscmp.m4: New file.
67831
67832         Module stdbool.
67833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67834         OSF/1.
67835
67836         Module strtoll.
67837         * m4/strtoll.m4: New file.
67838
67839         Module strtoull.
67840         * m4/strtoull.m4: New file.
67841
67842         Module strtoimax.
67843         * m4/strtoimax.m4: New file.
67844
67845         Module strtoumax.
67846         * m4/strtoumax.m4: New file.
67847
67848         Module xstrtoimax.
67849         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67850         jm_AC_PREREQ_XSTRTOIMAX.
67851         Moved the strtol prerequisites to strtol.m4.
67852         Moved the strtoll prerequisites to strtoll.m4.
67853         Moved the strtoimax prerequisites to strtoimax.m4.
67854
67855         Module xstrtoumax.
67856         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67857         jm_AC_PREREQ_XSTRTOUMAX.
67858         Moved the strtoul prerequisites to strtoul.m4.
67859         Moved the strtoull prerequisites to strtoull.m4.
67860         Moved the strtoumax prerequisites to strtoumax.m4.
67861
67862         Module chown.
67863         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67864         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67865
67866         Module dup2.
67867         * m4/dup2.m4: New file.
67868
67869         Module ftruncate.
67870         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67871         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67872
67873         Module getgroups.
67874         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67875         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67876
67877         Module gettimeofday.
67878         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67879         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67880         gl_PREREQ_GETTIMEOFDAY.
67881
67882         Module mkdir.
67883         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67884         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67885
67886         Module mkstemp.
67887         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67888         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67889         jm_AC_TYPE_UINTMAX_T.
67890         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67891
67892         Module stat.
67893         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67894         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67895
67896         Module lstat.
67897         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67898         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67899
67900         Module timespec.
67901         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67902         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67903         * m4/st_mtim.m4: Indentation.
67904
67905         Module nanosleep.
67906         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67907         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67908         gl_PREREQ_NANOSLEEP.
67909
67910         Module regex.
67911         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67912         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67913         (gl_REGEX): New macro.
67914
67915         Module rename.
67916         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67917         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67918
67919         Module rmdir.
67920         * m4/rmdir.m4: New file.
67921
67922         Module utime.
67923         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67924         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67925         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67926
67927         Module dirname.
67928         * m4/dirname.m4: New file.
67929
67930         Module getopt.
67931         * m4/getopt.m4: New file.
67932
67933         Module unistd-safer.
67934         * m4/unistd-safer.m4: New file.
67935
67936         Module fnmatch.
67937         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67938         declaration.
67939         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67940         (gl_FUNC_FNMATCH_POSIX): New macro.
67941         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67942         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67943         simply fnmatch.
67944
67945         Module exclude.
67946         * m4/exclude.m4: New file.
67947
67948         Module human.
67949         * m4/human.m4: New file.
67950
67951         Module acl.
67952         * m4/acl.m4: Nop.
67953
67954         Module backupfile.
67955         * m4/backupfile.m4: New file.
67956         * m4/d-ino.m4: Indentation.
67957
67958         Module fsusage.
67959         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67960         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67961         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67962
67963         Module dirfd.
67964         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67965         requirements.
67966
67967         Module euidaccess.
67968         * m4/euidaccess.m4: New file.
67969
67970         Module file-type.
67971         * m4/file-type.m4: New file.
67972
67973         Module fileblocks.
67974         * m4/fileblocks.m4: New file.
67975
67976         Module filemode.
67977         * m4/filemode.m4: New file.
67978
67979         Module isdir.
67980         * m4/isdir.m4: New file.
67981
67982         Module lchown.
67983         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67984         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67985
67986         Module makepath.
67987         * m4/makepath.m4: New file.
67988
67989         Module modechange.
67990         * m4/modechange.m4: New file.
67991
67992         Module mountlist.
67993         * m4/mountlist.m4: New file.
67994         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67995         Indentation.
67996
67997         Module path-concat.
67998         * m4/path-concat.m4: New file.
67999
68000         Module pathmax.
68001         * m4/pathmax.m4: New file.
68002
68003         Module same.
68004         * m4/same.m4: New file.
68005
68006         Module save-cwd.
68007         * m4/save-cwd.m4: New file.
68008
68009         Module savedir.
68010         * m4/savedir.m4: New file.
68011
68012         Module xgetcwd.
68013         * m4/xgetcwd.m4: New file.
68014         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
68015
68016         Module xreadlink.
68017         * m4/xreadlink.m4: New file.
68018
68019         Module safe-read.
68020         * m4/safe-read.m4: New file.
68021
68022         Module safe-write.
68023         * m4/safe-write.m4: New file.
68024
68025         Module closeout.
68026         * m4/closeout.m4: New file.
68027
68028         Module stdio-safer.
68029         * m4/stdio-safer.m4: New file.
68030
68031         Module getpass.
68032         * m4/getpass.m4: New file.
68033
68034         Module getugroups.
68035         * m4/getugroups.m4: New file.
68036
68037         Module group-member.
68038         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
68039         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
68040
68041         Module idcache.
68042         * m4/idcache.m4: New file.
68043
68044         Module userspec.
68045         * m4/userspec.m4: New file.
68046
68047         Module gettime.
68048         * m4/clock_time.m4: New file.
68049         * m4/gettime.m4: New file.
68050
68051         Module settime.
68052         * m4/settime.m4: New file.
68053
68054         Module posixtm.
68055         * m4/posixtm.m4: New file.
68056
68057         Module gethostname.
68058         * m4/gethostname.m4: New file.
68059
68060         Module canon-host.
68061         * m4/canon-host.m4: New file.
68062
68063         Module gettext.
68064         * m4/codeset.m4: New file, from gettext-0.11.5.
68065         * m4/gettext.m4: New file, from gettext-0.11.5.
68066         * m4/glibc21.m4: New file, from gettext-0.11.5.
68067         * m4/iconv.m4: New file, from gettext-0.11.5.
68068         * m4/intdiv0.m4: New file, from gettext-0.11.5.
68069         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
68070         * m4/inttypes.m4: New file, from gettext-0.11.5.
68071         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
68072         * m4/isc-posix.m4: New file, from gettext-0.11.5.
68073         * m4/lcmessage.m4: New file, from gettext-0.11.5.
68074         * m4/lib-ld.m4: New file, from gettext-0.11.5.
68075         * m4/lib-link.m4: New file, from gettext-0.11.5.
68076         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
68077         * m4/progtest.m4: New file, from gettext-0.11.5.
68078         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
68079         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
68080         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
68081
68082         Module localcharset.
68083         * m4/localcharset.m4: New file.
68084
68085         Module hard-locale.
68086         * m4/hard-locale.m4: New file.
68087
68088         Module mbswidth.
68089         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
68090         onceonly macros.
68091         * m4/mbrtowc.m4: Add comment.
68092
68093         Module memcasecmp.
68094         * m4/memcasecmp.m4: New file.
68095
68096         Module memcoll.
68097         * m4/memcoll.m4: New file.
68098
68099         Module unicodeio.
68100         * m4/unicodeio.m4: New file.
68101
68102         Module rpmatch.
68103         * m4/rpmatch.m4: New file.
68104
68105         Module yesno.
68106         * m4/yesno.m4: New file.
68107
68108         Module exitfail.
68109         * m4/exitfail.m4: New file.
68110
68111         Module c-stack.
68112         * m4/c-stack.m4 (gl_C_STACK): New macro.
68113         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
68114
68115         Module error.
68116         * m4/error.m4 (gl_ERROR): New macro.
68117         (jm_PREREQ_ERROR): Use onceonly macros.
68118
68119         Module fatal.
68120         * m4/fatal.m4: New file.
68121
68122         Module getloadavg.
68123         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
68124         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
68125
68126         Module getpagesize.
68127         * m4/getpagesize.m4: New file.
68128
68129         Module getusershell.
68130         * m4/getusershell.m4: New file.
68131
68132         Module physmem.
68133         * m4/physmem.m4: New file.
68134
68135         Module posixver.
68136         * m4/posixver.m4: New file.
68137
68138         Module quotearg.
68139         * m4/quotearg.m4: New file.
68140
68141         Module quote.
68142         * m4/quote.m4: New file.
68143
68144         Module readutmp.
68145         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
68146
68147         Module sig2str.
68148         * m4/sig2str.m4: New file.
68149
68150         Other.
68151         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
68152         ulonglong.m4.
68153         * m4/intmax_t.m4: New file.
68154         * m4/d-type.m4: Indentation.
68155         * m4/jm-macros.m4: Update.
68156         * m4/prereq.m4 (jm_PREREQ): Update.
68157         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
68158         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
68159         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
68160         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
68161         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
68162         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
68163         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
68164         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
68165         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
68166         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
68167         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
68168         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
68169         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
68170         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
68171         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
68172         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
68173         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
68174         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
68175         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
68176
68177 2002-12-24  Bruno Haible  <bruno@clisp.org>
68178
68179         * MODULES.txt: Update according to m4/ changes.
68180
68181         Module gettext.
68182         * config.rpath: New file, from gettext-0.11.5.
68183
68184         * modules/*: New module descriptions.
68185         * gnulib-tool: New file.
68186         * MODULES.html.sh: New file.
68187
68188 2002-12-21  Karl Berry  <karl@gnu.org>
68189
68190         * doc/fdl.texi: update to version 1.2.
68191
68192 2002-12-19  Karl Berry  <karl@gnu.org>
68193
68194         * config/config.guess: update from prep.
68195
68196 2002-12-18  Bruno Haible  <bruno@clisp.org>
68197
68198         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
68199         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
68200
68201 2002-12-17  Bruno Haible  <bruno@clisp.org>
68202
68203         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
68204         stdlib.h, string.h.
68205
68206 2002-12-17  Bruno Haible  <bruno@clisp.org>
68207
68208         * lib/canon-host.c (strdup): Remove unused declaration.
68209
68210         * lib/fsusage.c: Include full_read.h.
68211         (get_fs_usage): Use full_read instead of safe_read.
68212
68213         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
68214
68215 2002-12-12  Karl Berry  <karl@gnu.org>
68216
68217         * config/config.guess: update from prep.
68218
68219 2002-12-11  Bruno Haible  <bruno@clisp.org>
68220
68221         * m4/setenv.m4: New file, from gettext-0.11.5.
68222
68223 2002-12-11  Bruno Haible  <bruno@clisp.org>
68224
68225         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
68226         not unsetenv().
68227         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
68228         modifications:
68229
68230         2002-12-11  Bruno Haible  <bruno@clisp.org>
68231
68232                 * setenv.c (alloca): Fall back to malloc.
68233                 (freea): New macro.
68234                 (setenv): Use freea() to free memory allocated with alloca().
68235
68236         2002-11-13  Bruno Haible  <bruno@clisp.org>
68237
68238                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
68239                 function declarations.
68240                 * unsetenv.c (unsetenv): Likewise.
68241
68242         2002-03-04  Bruno Haible  <bruno@clisp.org>
68243
68244                 Portability to AIX 4.3.3.
68245                 * unsetenv.c: New file, extracted from setenv.c.
68246                 * setenv.c: Move the unsetenv() function to unsetenv.c.
68247
68248         2001-12-20  Bruno Haible  <bruno@clisp.org>
68249
68250                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
68251                 use malloc instead. For SunOS 4.
68252
68253         2001-12-11  Bruno Haible  <bruno@clisp.org>
68254
68255                 * setenv.c: Declare alloca.
68256                 (compar_fn_t): New typedef.
68257                 (KNOWN_VALUE, STORE_VALUE): Use it.
68258
68259         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
68260         setenv.h.
68261
68262 2002-12-10  Paul Eggert  <eggert@twinsun.com>
68263
68264         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
68265         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
68266         Choose values that are less likely to collide with system fnmatch
68267         options.
68268         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
68269         defined (e.g., a pure POSIX system).
68270         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
68271         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
68272
68273 2002-12-06  Paul Eggert  <eggert@twinsun.com>
68274
68275         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
68276         a pain in practice to deal with generated m4 files.  This change
68277         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
68278
68279         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
68280         and jm-glibc-io.m4, as they are no longer a special case.
68281         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
68282         kludge and the auto-generation stuff.  Check only whether the
68283         functions are declared, not whether they exist, since older hosts
68284         that don't declare the functions can't use the optimization anyway.
68285
68286 2002-12-06  Jim Meyering  <jim@meyering.net>
68287
68288         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
68289
68290         Merge in changes from libc's misc/error.c, in preparation
68291         for the merge of gnulib's changes back into libc.
68292
68293         * lib/error.c (_): Define only if not already defined.
68294         Move definition to follow all #include directives.
68295         Include unlocked-io.h only if !_LIBC.
68296         [_LIBC]: Include <libio/libioP.h>.
68297         [USE_IN_LIBIO]: Include <libio/iolibio.h>
68298         (fflush): Tweak definition to use INTUSE.
68299         (putc): Define.
68300
68301 2002-12-05  Paul Eggert  <eggert@twinsun.com>
68302
68303         * lib/alloca.c [defined emacs]: Include "lisp.h".
68304         (xalloc_die) [defined emacs]: New macro.
68305         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
68306         [! defined emacs]: Include <xalloc.h>.
68307         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
68308         (pointer): Typedef to POINTER_TYPE *.
68309         (malloc): Remove decl; we now always use xmalloc.
68310         (alloca): Use old-style definition, since Emacs needs this.
68311         Check for arithmetic overflow when computing combined size.
68312
68313 2002-12-04  Paul Eggert  <eggert@twinsun.com>
68314
68315         Do not generate unlocked-io.h automatically, since it's easier to
68316         maintain it by hand.
68317
68318         * lib/unlocked-io.h: New file, from GNU diffutils,
68319         but with proper copyright notice and attribution.
68320         * lib/gen-uio: Remove.
68321         * lib/Makefile.am: Add copyright notice.
68322         (libfetish_a_SOURCES): Add unlocked-io.h.
68323         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
68324         (DISTCLEANFILES, io_functions): Remove macros.
68325         (EXTRA_DIST): Remove gen_uio.
68326         (unlocked-io.h): Remove rule.
68327
68328 2002-12-04  Jim Meyering  <jim@meyering.net>
68329
68330         Reflect the fact that stat.c and lstat.c are no longer generated.
68331         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
68332         (DISTCLEANFILES): Likewise.
68333         (EXTRA_DIST): Likewise.
68334         (all_local): Don't depend on stat.c or lstat.c.
68335         (stat.c, lstat.c): Remove rules.
68336         (EXTRA_DIST): Remove xstat.in.
68337
68338         * lib/xstat.in: Remove file.  Contents moved into stat.c.
68339         * lib/stat.c: New file.  Contents mostly from xstat.in.
68340         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
68341         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
68342
68343         * lib/safe-read.c: Rework so that it may serve to define safe_write,
68344         too.
68345         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
68346
68347 2002-12-03  Jim Meyering  <jim@meyering.net>
68348
68349         * lib/safe-read.c, safe-write.c: Change variable names and comments,
68350         but not semantics, to minimize the differences between these two files.
68351         (safe_read): Change comment to mention SAFE_READ_ERROR.
68352
68353         * lib/safe-read.c (IS_EINTR): Define.
68354         (safe_read): Use IS_EINTR in place of in-function cpp directives.
68355
68356 2002-12-02  Jim Meyering  <jim@meyering.net>
68357
68358         * lib/safe-read.c (EINTR): Define.
68359         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68360         (INT_MAX): Provide fallback.
68361         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
68362
68363         * lib/safe-read.h (SAFE_READ_ERROR): Define.
68364
68365 2002-12-02  Bruno Haible  <bruno@clisp.org>
68366
68367         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68368         Define, taken from safe-read.c.
68369         (INT_MAX): Provide fallback.
68370         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68371         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68372
68373         * lib/safe-read.c (EINTR): Remove definition.
68374         (safe_read): Don't use EINTR if it is absent.
68375
68376 2002-12-01  Jim Meyering  <jim@meyering.net>
68377
68378         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68379         zero.
68380         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68381
68382 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68383
68384         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68385         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68386         with `if (! (value < limit)) abort ();', for readability.
68387
68388 2002-11-26  Karl Berry  <karl@gnu.org>
68389
68390         * lib/strdup.c: copy from libc again, with jim's ok.
68391         * lib/.cppi-disable: re-add strdup.c
68392
68393 2002-11-25  Karl Berry  <karl@gnu.org>
68394
68395         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68396         instead of "strtol.c".
68397
68398 2002-11-25  Karl Berry  <karl@gnu.org>
68399
68400         * config/install-sh: update from automake for variable quoting, $0 in
68401         error msgs, etc.
68402
68403         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68404         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68405         entry.
68406
68407 2002-11-25  Jim Meyering  <jim@meyering.net>
68408
68409         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68410
68411 2002-11-24  Karl Berry  <karl@gnu.org>
68412
68413         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68414         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68415
68416 2002-11-24  Jim Meyering  <jim@meyering.net>
68417
68418         Update from coreutils:
68419
68420         * lib/mktime.c: Merge in changes from libc.
68421
68422         Avoid a link-time failure on some Linux systems.
68423         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68424         (otherwise).
68425         (__mon_yday): Declare with the STATIC attribute.
68426         (__mktime_internal): Likewise.
68427         Based on a report from Greg Schafer.
68428
68429 2002-11-23  Jim Meyering  <jim@meyering.net>
68430
68431         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68432         Use `unsigned', not `int', as type of index.
68433
68434         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68435
68436         * lib/fsusage.c: Remove unneeded parentheses around operands of
68437         `defined'.
68438
68439 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68440
68441         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68442         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68443         so that we can be included first.
68444         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68445         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68446         No need to include stddef.h or sys/types.h any more.
68447         Surround local include files with "", not "<>".
68448         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68449         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68450         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68451         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68452         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68453         (ISPRINT): Remove; no longer needed now that we assume C89.
68454
68455         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68456         Preserve errno.
68457
68458         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68459         quotearg_char): Use SIZE_MAX rather than
68460         (size_t) -1 when we are talking about "infinity".
68461
68462         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68463
68464 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68465
68466         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68467         hint that one should use `if (! x) abort ();' rather than `assert
68468         (x);', and anyway it's one less thing to worry about configuring.
68469         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68470         hash_rehash, hash_insert): Use abort rather than assert.
68471
68472 2002-11-22  Bruno Haible  <bruno@clisp.org>
68473
68474         * lib/safe-read.h: Assume C89. Add comments.
68475         (safe_read): Change return type to size_t.
68476         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68477         byte counts > SSIZE_MAX correctly.
68478         * lib/safe-write.h: New file.
68479         * lib/safe-write.c: New file.
68480         * lib/full-read.h: New file.
68481         * lib/full-read.c: New file.
68482         * lib/full-write.h: Assume C89. Add comments.
68483         * lib/full-write.c: Include safe-write.h.
68484         (full_write): Rewritten to use safe_write.
68485         Suggested by Jim Meyering and Paul Eggert.
68486
68487 2002-11-21  Jim Meyering  <jim@meyering.net>
68488
68489         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68490
68491         Merge in changes from the coreutils.
68492
68493         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68494         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68495         <stdint.h>.
68496         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68497         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68498         int.  Work more efficiently if X is the same width as uintmax_t.
68499         Do not compare X to -1, to avoid bogus compiler warning.
68500         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68501         Don't assume that f_frsize and f_bsize are the same type.
68502
68503         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68504         warning on FreeBSD.
68505
68506         * lib/makepath.c (make_path): Restore umask *before* creating the final
68507         component.
68508         (make_path): Minor reformatting.
68509
68510         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68511         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68512         HAVE_MALLOC/HAVE_REALLOC.
68513
68514         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68515         dummy ones.  At least on GNU/Linux systems, `auto' means something
68516         else.
68517         From Michael Stone.
68518
68519 2002-11-21  Bruno Haible  <bruno@clisp.org>
68520
68521         Remove case insensitive option matching.
68522         * lib/argmatch.h (argcasematch): Remove declaration.
68523         (ARGCASEMATCH): Remove macro.
68524         (__xargmatch_internal): Remove case_sensitive argument.
68525         (XARGMATCH): Update.
68526         (XARGCASEMATCH): Remove macro.
68527         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68528         case_sensitive argument.
68529         (argcasematch): Remove function.
68530         (__xargmatch_internal): Remove case_sensitive argument.
68531         (main): Use XARGMATCH instead of XARGCASEMATCH.
68532
68533         * lib/xmalloc.c: Change compile-time error message. Add comment about
68534         required autoconf version.
68535
68536 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68537
68538         Merge argmatch cleanups from Bison.  Assume C89.
68539
68540         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68541         Include stdlib.h, for EXIT_FAILURE.
68542         Always include <string.h>, since we assume C89.
68543         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68544         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68545         Include <stddef.h> instead, since it's all we need for size_t.
68546         (PARAMS): Remove.  All uses removed.
68547         (ARRAY_CARDINALITY): Do not bother to #undef.
68548         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68549         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68550         Remove unnecessary parentheses.
68551         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68552         Insert necessary parentheses.
68553         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68554         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68555
68556 2002-11-19  Bruno Haible  <bruno@clisp.org>
68557
68558         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68559         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68560
68561         * lib/mbswidth.h (PARAMS): Remove macro.
68562         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68563         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68564
68565         * lib/gcd.h (PARAMS): Remove macro.
68566         (gcd): Use ANSI C function declarations.
68567         * lib/gcd.c (gcd): Likewise.
68568
68569 2002-11-15  Bruno Haible  <bruno@clisp.org>
68570
68571         * lib/strcspn.c: Include <stddef.h>.
68572         (strcspn): Use ANSI C function declaration. Change return type to
68573         size_t. Use NULL.
68574         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68575         (strpbrk): Use NULL.
68576         * lib/strpbrk.h (PARAMS): Remove macro.
68577         (strpbrk): Use ANSI C function declaration.
68578         * lib/strstr.c: Don't include <sys/types.h>.
68579         * lib/strstr.h (PARAMS): Remove macro.
68580         (strstr): Use ANSI C function declarations.
68581
68582 2002-11-14  Karl Berry  <karl@gnu.org>
68583
68584         * config/mkinstalldirs: `do' on separate line, instead of
68585         `for var; do'.
68586
68587 2002-11-06  Bruno Haible  <bruno@clisp.org>
68588
68589         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68590         * lib/gcd.c (gcd): Likewise.
68591
68592 2002-11-05  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/gcd.h: New file, from gettext-0.11.5.
68595         * lib/gcd.c: New file, from gettext-0.11.5.
68596
68597 2002-11-05  Bruno Haible  <bruno@clisp.org>
68598
68599         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68600         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68601         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68602         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68603
68604         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68605         <libintl.h>.
68606         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68607         <libintl.h>.
68608
68609         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68610         * lib/human.c: Include gettext.h instead of <libintl.h>.
68611         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68612         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68613         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68614         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68615         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68616         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68617         (textdomain): Remove definition.
68618         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68619
68620         * lib/long-options.c: Remove include of <libintl.h> and definition of
68621         _.
68622         * lib/same.c: Remove include of <libintl.h> and definition of _.
68623
68624 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68625
68626         * lib/config.charset: A few additions for Solaris.
68627
68628 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68629
68630         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68631         * lib/localcharset.c (locale_charset): Declare as extern "C".
68632
68633 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68634
68635         * lib/config.charset: msdos in uk_UA uses CP1125.
68636
68637 2002-11-04  Bruno Haible  <bruno@clisp.org>
68638
68639         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68640         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68641         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68642         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68643         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68644
68645 2002-11-04  Bruno Haible  <bruno@clisp.org>
68646
68647         * lib/localcharset.c (locale_charset): Don't return an empty string.
68648
68649 2002-11-04  Bruno Haible  <bruno@clisp.org>
68650
68651         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
68652         aliases.
68653
68654 2002-11-04  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/config.charset: Update for newest glibc. Add canonical names
68657         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
68658
68659 2002-11-04  Bruno Haible  <bruno@clisp.org>
68660
68661         * lib/config.charset: Add support for NetBSD.
68662
68663 2002-11-04  Bruno Haible  <bruno@clisp.org>
68664
68665         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
68666
68667 2002-11-01  Bruno Haible  <bruno@clisp.org>
68668
68669         * configure.in: Add AC_CONFIG_AUX_DIR call.
68670         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
68671         test/Makefile.
68672         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
68673
68674 2002-09-28  Karl Berry  <karl@gnu.org>
68675
68676         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
68677         installed automake until the next release, since changes have been
68678         made.
68679
68680 2002-09-25  Karl Berry  <karl@gnu.org>
68681
68682         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
68683         * lib/getopt*: copy from libc/posix.
68684         * lib/gettext.h: copy from gettext.
68685         * lib/.cppi-disable: add strdup.c, gettext.h.
68686
68687 2002-09-25  Karl Berry  <karl@gnu.org>
68688
68689         * config/srclist.txt: enable gettext.h check.
68690         * config/config.{guess,sub}: update from prep.
68691         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
68692                 from automake 1.6.3.
68693         See srclist*.
68694
68695 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
68696
68697         * regex.c (PATFETCH): Remove the translating fetch.
68698         (PATFETCH_RAW): Rename to PATFETCH.
68699         (set_image_of_range): New fun.
68700         (SET_RANGE_TABLE_WORK_AREA): Use it.
68701         (regex_compile): Don't translate the pattern chars so eagerly.
68702         Only do it when inserting an `exactn' bytecode or when handling
68703         a char-range.
68704         (mutually_exclusive_p): Avoid empty statement.
68705
68706 2002-07-06  Jim Meyering  <meyering@lucent.com>
68707
68708         * m4/README: Don't mention Makefile.am.in.
68709         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
68710
68711 2002-07-01  Jim Meyering  <meyering@lucent.com>
68712
68713         * lib/c-stack.c: Include sys/time.h.
68714         From Volker Borchert.
68715
68716 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68717
68718         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
68719
68720 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68721
68722         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
68723         New macro.  Use it uniformly instead of
68724         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
68725         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
68726         reported by Vin Shelton.
68727
68728 2002-06-22  Paul Eggert  <eggert@twinsun.com>
68729
68730         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
68731         Do not assume SA_SIGINFO behavior.
68732         Bug reported by Jim Meyering on NetBSD 1.5.2.
68733
68734 2002-06-22  Jim Meyering  <meyering@lucent.com>
68735
68736         * m4/c-stack.m4: New file, from diffutils-2.8.2.
68737         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
68738
68739         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
68740         now that configure.ac uses AC_GNU_SOURCE.
68741         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
68742         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
68743
68744         Update to latest tools.  Suggestions from Paul Eggert.
68745         * m4/stdbool.m4: New file, from diffutils-2.8.2.
68746         * m4/gnu-source.m4: Update from diffutils-2.8.2.
68747         * m4/fnmatch.m4: Likewise.
68748         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
68749         to AC_HEADER_STDBOOL
68750
68751 2002-06-22  Jim Meyering  <meyering@lucent.com>
68752
68753         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
68754         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
68755
68756 2002-06-22  Jim Meyering  <meyering@lucent.com>
68757
68758         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
68759
68760         * lib/exitfail.c, exitfail.h: Likewise.
68761         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
68762
68763         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
68764         of fnmatch.h.
68765         (EXTRA_DIST): Add fnmatch_loop.c.
68766         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
68767
68768         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
68769         * lib/fnmatch.c: Update from diffutils-2.8.2.
68770         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
68771         * lib/fnmatch.h: Remove file.
68772
68773 2002-06-21  Jim Meyering  <meyering@lucent.com>
68774
68775         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
68776         * m4/mbrtowc.m4: Likewise.
68777
68778         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
68779         * m4/mbswidth.m4: Reflect name change:
68780         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
68781         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68782
68783         * m4/lib-link.m4: Update from gettext-0.11.2.
68784         * m4/gettext.m4: Likewise.
68785
68786         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
68787         From Alfred M. Szmidt.
68788
68789 2002-06-18  Paul Eggert  <eggert@twinsun.com>
68790
68791         * lib/file-type.h: Report an error if neither S_ISREG nor
68792         S_IFREG is defined, instead of using a test specific to glibc
68793         2.2.  This should be safe, since POSIX requires S_ISREG and
68794         Unix Version 7 had S_IFREG.  We don't need to check for
68795         <sys/types.h> since we don't use any symbols that it defines.
68796
68797 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
68798
68799         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
68800         $@-t, so that each temporary file name is unique and valid in the first
68801         8 characters, for operation under DOS.
68802
68803 2002-06-15  Paul Eggert  <eggert@twinsun.com>
68804
68805         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
68806
68807 2002-06-15  Jim Meyering  <meyering@lucent.com>
68808
68809         Work even with DJGPP 2.03, which lacks support for symlinks.
68810         From Richard Dawe.
68811         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68812         is defined.
68813         * lib/lchown.c (S_ISLNK): Likewise.
68814
68815 2002-06-15  Jim Meyering  <meyering@lucent.com>
68816
68817         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68818         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68819         have been included before this file.
68820
68821 2002-06-14  Jim Meyering  <meyering@lucent.com>
68822
68823         * lib/file-type.h: Use the version from diffutils-2.8.2.
68824         * lib/file-type.c: Likewise.
68825
68826 2002-06-07  Jim Meyering  <meyering@lucent.com>
68827
68828         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68829         They're needed at least for NetBSD 1.5.2.
68830         ($statxfs_includes): Include those same headers.
68831         ($statxfs_includes): Include sys/vfs.h if available.
68832         ($statxfs_includes): Likewise for sys/statvfs.h.
68833         Check for the following members in both structs statfs and statvfs:
68834         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68835
68836 2002-06-01  Jim Meyering  <meyering@lucent.com>
68837
68838         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68839         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68840
68841 2002-05-28  Jim Meyering  <meyering@lucent.com>
68842
68843         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68844         Reported by Volker Borchert.
68845
68846 2002-05-27  Jim Meyering  <meyering@lucent.com>
68847
68848         Fix a problem seen only on nonconforming systems whereby ls.c's
68849         use of localtime, and then of gettimeofday would cause trouble:
68850         the localtime call used to initialize rpl_gettimeofday's save
68851         mechanism would clobber ls's current local time information so
68852         that in any long listing the first file would always be listed
68853         with date 1970-01-01.  Analysis by Volker Borchert.
68854
68855         * lib/gettimeofday.c (localtime): Undefine.
68856         (rpl_localtime): New function.
68857
68858 2002-05-27  Jim Meyering  <meyering@lucent.com>
68859
68860         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68861         localtime.
68862
68863         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68864         use the replacement function; it wouldn't resolve at link time.
68865         Reported by Volker Borchert.
68866
68867 2002-05-22  Jim Meyering  <meyering@lucent.com>
68868
68869         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68870         file-type.h.
68871         * lib/file-type.h: New file.
68872         * lib/file-type.c (file_type): New file/function.  Extracted from
68873         diffutils.
68874
68875 2002-04-30  Jim Meyering  <meyering@lucent.com>
68876
68877         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68878
68879 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68880
68881         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68882
68883 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68884
68885         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68886         Do not check for alloca.h (no longer used) or stdbool.h (was never
68887         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68888
68889 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68890
68891         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68892
68893 2002-04-29  Jim Meyering  <meyering@lucent.com>
68894
68895         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68896         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68897         Use AC_FUNC_STRNLEN here instead.
68898
68899         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68900         With autoconf-2.53a, it's part of AC_PROG_CC.
68901
68902 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68903
68904         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68905         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68906
68907 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68908
68909         * lib/sig2str.h, lib/sig2str.c: New files.
68910         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68911
68912 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68913
68914         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68915         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68916         of 127, since 64 is the largest conceivable number for ancient
68917         nonstandard hosts.
68918         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68919
68920 2002-04-28  Jim Meyering  <meyering@lucent.com>
68921
68922         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68923
68924 2002-04-24  Jim Meyering  <meyering@lucent.com>
68925
68926         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68927         (jm_PREREQ): Use it.
68928
68929         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68930         mach/mach.h fcntl.h.
68931         Check for this function: setlocale.
68932
68933 2002-04-24  Jim Meyering  <meyering@lucent.com>
68934
68935         * lib/gettext.h: New file, from Gettext.
68936         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68937         (libfetish_a_SOURCES): Add gettext.h.
68938
68939 2002-04-16  Jim Meyering  <meyering@lucent.com>
68940
68941         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68942         ut_pid, ut_id, ut_exit.
68943
68944 2002-04-16  Jim Meyering  <meyering@lucent.com>
68945
68946         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68947         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68948         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68949
68950 2002-04-12  Jim Meyering  <meyering@lucent.com>
68951
68952         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68953         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68954         existence of the getmntinfo function.  Needed for Darwin 5.3.
68955
68956         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68957         This is necessary at least on Darwin 5.3.
68958
68959         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68960         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68961         strnlen.o in the library, and that makes some versions of ranlib
68962         object.
68963
68964 2002-04-12  Jim Meyering  <meyering@lucent.com>
68965
68966         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68967
68968 2002-04-09  Jim Meyering  <meyering@lucent.com>
68969
68970         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68971         to be more precise.  Rather than saying we're checking whether the
68972         function `works', say what we're testing.
68973         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68974         Reported by Bruno Haible.
68975
68976 2002-03-10  Jim Meyering  <meyering@lucent.com>
68977
68978         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68979         Suggestion from Santiago Vila.
68980
68981 2002-03-08  Jim Meyering  <meyering@lucent.com>
68982
68983         * lib/rename.c: Mention that this wrapper is needed also on
68984         mips-dec-ultrix4.4 systems.
68985
68986 2002-03-02  Jim Meyering  <meyering@lucent.com>
68987
68988         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68989         not HAVE_CLOCK_SETTIME.
68990
68991 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68992
68993         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68994         Check for clock_settime.
68995
68996 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68997
68998         * lib/nanosleep.h: Rename to....
68999         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
69000
69001         * lib/gettime.c: New file.
69002         * lib/settime.c: New file.
69003         * lib/stime.c: Remove.
69004
69005         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
69006         timespec.h.  Remove nanosleep.h.
69007
69008 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69009
69010         * m4/acl.m4: New file.
69011         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
69012         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
69013
69014 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69015
69016         * lib/acl.c, lib/acl.h: New files.
69017         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
69018
69019 2002-02-24  Jim Meyering  <meyering@lucent.com>
69020
69021         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
69022         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
69023         cause trouble.  Reported by Nelson Beebe.
69024
69025 2002-02-23  Paul Eggert  <eggert@twinsun.com>
69026
69027         * lib/path-concat.c (xpath_concat): Reorder code to pacify
69028         compilers that don't know that xalloc_die never returns.
69029
69030 2002-02-20  Jim Meyering  <meyering@lucent.com>
69031
69032         * lib/getdate.c: Regenerate using bison-1.33.
69033
69034 2002-02-17  Jim Meyering  <meyering@lucent.com>
69035
69036         * config/config.guess (main): Don't use `head -1'; it's no longer
69037         portable. Use `sed 1q' instead.
69038
69039 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
69040
69041         * m4/codeset.m4: Upgrade to gettext-0.11.
69042         * m4/gettext.m4: Upgrade to gettext-0.11.
69043         * m4/glibc21.m4: Upgrade to gettext-0.11.
69044         * m4/iconv.m4: Upgrade to gettext-0.11.
69045         * m4/isc-posix.m4: Upgrade to gettext-0.11.
69046         * m4/lcmessage.m4: Upgrade to gettext-0.11.
69047         * m4/lib-ld.m4: New file, from gettext-0.11.
69048         * m4/lib-link.m4: New file, from gettext-0.11.
69049         * m4/lib-prefix.m4: New file, from gettext-0.11.
69050         * m4/progtest.m4: Upgrade to gettext-0.11.
69051
69052 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69053
69054         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
69055         (jm_PREREQ): Use it.
69056
69057 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69058
69059         * lib/posixver.c, lib/posixver.h: New files.
69060         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69061
69062 2002-02-02  Paul Eggert  <eggert@twinsun.com>
69063             Bruno Haible  <bruno@clisp.org>
69064
69065         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
69066         (fwrite_success_callback): New declaration.
69067         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
69068         print_unicode_char. Call failure callback instead of error.
69069         (fwrite_success_callback): New function.
69070         (exit_failure_callback): New function.
69071         (fallback_failure_callback): New function.
69072         (print_unicode_char): Call unicode_to_mb.
69073
69074 2002-01-26  Jim Meyering  <meyering@lucent.com>
69075
69076         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
69077         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
69078
69079 2002-01-26  Jim Meyering  <meyering@lucent.com>
69080
69081         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
69082
69083 2002-01-22  Paul Eggert  <eggert@twinsun.com>
69084
69085         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
69086
69087 2002-01-22  Jim Meyering  <meyering@lucent.com>
69088
69089         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
69090         Otherwise, some versions of automake would omit the rule that makes
69091         Makefile from Makefile.in.
69092
69093 2002-01-21  Paul Eggert  <eggert@twinsun.com>
69094
69095         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
69096         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69097         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
69098         (memcoll): Set errno to zero if there is no error.
69099
69100         * lib/quotearg.c (quotearg_buffer_restyled):
69101         Fix bug with quoting buffers containing NUL when backslashing escapes.
69102         This bug was exposed by the other changes in this patch.
69103         (quotearg_n_options): New arg ARGSIZE.
69104         All callers changed.
69105         (quoting_options_from_style): New function.
69106         (quotearg_n_style): Use it.
69107         (quotearg_n_style_mem): New function.
69108
69109         * lib/quotearg.h (quotearg_n_style_mem): New function.
69110
69111 2002-01-19  Jim Meyering  <meyering@lucent.com>
69112
69113         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
69114         Remove useless quotes: DF_PROG="df".
69115         * m4/strnlen.m4: New file.
69116
69117 2002-01-16  Paul Eggert  <eggert@twinsun.com>
69118
69119         * lib/backupfile.c (ISDIGIT): Comment fix.
69120         * lib/getdate.y (ISDIGIT): Likewise.
69121         * lib/posixtm.c (ISDIGIT, year): Likewise.
69122         * lib/strverscmp.c (ISDIGIT): Likewise.
69123         * lib/userspec.c (ISDIGIT): Likewise.
69124
69125 2002-01-16  Jim Meyering  <meyering@lucent.com>
69126
69127         * lib/getdate.y: Add three semicolons, each just before a closing
69128         brace. Bison (as of version 1.31) no longer papers over that mistake.
69129
69130 2002-01-05  Jim Meyering  <meyering@lucent.com>
69131
69132         * lib/version-etc.c (version_etc_copyright): Update copyright year.
69133
69134 2001-12-19  Paul Eggert  <eggert@twinsun.com>
69135
69136         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
69137         not silently exit merely because the output buffer happens to
69138         have nothing pending.
69139
69140 2001-12-18  Paul Eggert  <eggert@twinsun.com>
69141
69142         See the big note in ../ChangeLog.
69143         * lib/human.c (suffixes): Prefer K to k for 1024.
69144         (generate_suffix_backwards): New function.
69145         (human_readable_inexact): Use it.
69146         * lib/xstrtol.c (__xstrtol): If there is no number but there
69147         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
69148         Accept 'K' as well as 'k'.
69149
69150 2001-12-15  Jim Meyering  <meyering@lucent.com>
69151
69152         * lib/regex.h (__restrict_arr): Update from libc.
69153
69154         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
69155         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
69156         (STREQ): Define.
69157
69158 2001-12-14  Jim Meyering  <meyering@lucent.com>
69159
69160         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
69161         Suggestion from Bruno Haible.
69162
69163 2001-12-10  Jim Meyering  <meyering@lucent.com>
69164
69165         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
69166         xrealloc, Instead, include "xalloc.h".
69167         (initbuffer): Don't cast xmalloc return value to char*.
69168         (readline): Reword comment.
69169         Don't cast xrealloc return value to char*
69170         Return NULL, not 0.
69171
69172 2001-12-09  Jim Meyering  <meyering@lucent.com>
69173
69174         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
69175         about `signed and unsigned type in conditional expression'.
69176         * lib/posixtm.c (posix_time_parse): Likewise.
69177
69178         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
69179
69180         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
69181         to avoid a pedantic warning.
69182
69183         * lib/getstr.c: Don't include assert.h.
69184         (getstr): Remove warning-evoking assertions.
69185         Return -1 if offset parameter is out of bounds.
69186         Change the type of a local from int to size_t.
69187
69188         * lib/strftime.c (my_strftime_localtime_r): Include this function
69189         definition in the `#if ! HAVE_TM_GMTOFF' block.
69190
69191         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
69192         Include xalloc.h instead.
69193
69194 2001-12-02  Jim Meyering  <meyering@lucent.com>
69195
69196         * lib/tempname.c: Don't declare getenv, thus reverting the change of
69197         2001-11-18.  It's no longer necessary, now that stdlib.h is always
69198         included.
69199
69200         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
69201         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
69202
69203 2001-11-30  Akim Demaille  <akim@epita.fr>
69204
69205         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
69206         before being defined.
69207
69208 2001-11-27  Paul Eggert  <eggert@twinsun.com>
69209
69210         * lib/quotearg.h (quotearg_n, quotearg_n_style):
69211         First arg is int, not unsigned.
69212         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
69213         (SIZE_MAX, UINT_MAX): New macros.
69214         (quotearg_n_options): Abort if N is negative.
69215         Avoid overflow check on hosts where size_t is 64 bits and int
69216         is 32 bits, as overflow is impossible there.
69217         Fix off-by-one typo that caused unnecessary reallocation.
69218
69219 2001-11-27  Jim Meyering  <meyering@lucent.com>
69220
69221         * lib/tempname.c: Merge with version from libc.
69222         * lib/regex.c: Likewise.
69223
69224         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
69225         systems for which STDC_HEADERS is 0, it was not included, resulting in
69226         a warning about an integer-to-pointer conversion problem with getenv.
69227         Reported by Volker Borchert.
69228
69229 2001-11-26  Jim Meyering  <meyering@lucent.com>
69230
69231         * lib/gtod.h: Remove file.
69232         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
69233         * lib/gettimeofday.c: Don't include gtod.h.
69234         (GTOD_init): Remove function.
69235         (rpl_gettimeofday): Do its job here instead, rather than aborting.
69236         Suggestion from Volker Borchert.
69237
69238 2001-11-23  Jim Meyering  <meyering@lucent.com>
69239
69240         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
69241         it.
69242         * lib/hash.c (struct hash_table): Define it here instead.
69243
69244 2001-11-22  Jim Meyering  <meyering@lucent.com>
69245
69246         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
69247
69248 2001-11-20  Jim Meyering  <meyering@lucent.com>
69249
69250         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
69251         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
69252
69253 2001-11-19  Jim Meyering  <meyering@lucent.com>
69254
69255         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
69256         directory.  Use "conftestXXXXXX" as the template.
69257         Suggestion from Paul Eggert.
69258
69259         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
69260         immediately, so the test doesn't mistakenly hit the max-open-files
69261         limit.
69262
69263 2001-11-18  Paul Eggert  <eggert@twinsun.com>
69264
69265         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
69266         (TEMPORARIES): New macro.
69267         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
69268         removes an artificial limitation (e.g. HP-UX 10.20, where
69269         TMP_MAX is 17576).
69270
69271 2001-11-18  Jim Meyering  <meyering@lucent.com>
69272
69273         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
69274
69275 2001-11-18  Jim Meyering  <meyering@lucent.com>
69276
69277         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
69278         on SunOS 4.
69279
69280         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
69281         files will be created before anything else.
69282
69283 2001-11-17  Paul Eggert  <eggert@twinsun.com>
69284
69285         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
69286         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
69287
69288 2001-11-17  Jim Meyering  <meyering@lucent.com>
69289
69290         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
69291         Prompted by a report from Bob Proulx.
69292
69293         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
69294         Instead, require UTILS_FUNC_MKSTEMP.
69295
69296 2001-11-17  Jim Meyering  <meyering@lucent.com>
69297
69298         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
69299         Now, that's done as part of AC_FUNC_STRTOD.
69300
69301 2001-11-17  Jim Meyering  <meyering@lucent.com>
69302
69303         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
69304         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
69305         rather than group writable.  Patch by Juan F. Codagnone.
69306
69307         * lib/readtokens.c: Remove explicit declarations of xmalloc and
69308         xrealloc, Instead, include "xalloc.h".
69309
69310         * lib/mountlist.c: Include unlocked-io.h after all system headers.
69311         Remove explicit declarations of xmalloc, xrealloc,
69312         and xstrdup.  Instead, include "xalloc.h".
69313
69314         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
69315         unlocked-io.h.
69316         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
69317         Likewise.
69318         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
69319
69320         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
69321         Reported by Padraig Brady.
69322
69323         * lib/mkstemp.c: #undef mkstemp.
69324         Include config.h.
69325         (rpl_mkstemp): Rename from mkstemp.
69326         Protoize.
69327
69328 2001-11-16  Jim Meyering  <meyering@lucent.com>
69329
69330         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
69331         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
69332         determine the amount of total physical memory, use pstat_getstatic.
69333         HPUX-11 doesn't define _SC_PHYS_PAGES.
69334         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
69335         If sysconf couldn't be used to determine the amount of available
69336         physical memory, use both pstat_getstatic and pstat_getdynamic.
69337         Based on a patch from Bob Proulx.
69338
69339 2001-11-10  Jim Meyering  <meyering@lucent.com>
69340
69341         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
69342         (jm_PREREQ): Use it.
69343
69344 2001-11-09  Jim Meyering  <meyering@lucent.com>
69345
69346         * m4/jm-macros.m4: Require autoconf-2.52f.
69347         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
69348         Use these AC_-prefixed names, not the AM_-prefixed ones.
69349
69350         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
69351
69352 2001-11-05  Jim Meyering  <meyering@lucent.com>
69353
69354         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
69355
69356 2001-11-04  Jim Meyering  <meyering@lucent.com>
69357
69358         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
69359         $DEFS.
69360
69361 2001-11-03  Jim Meyering  <meyering@lucent.com>
69362
69363         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
69364         of AC_DEFUN.
69365
69366         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69367         know the name of the variable in the macro definition.
69368
69369 2001-11-03  Jim Meyering  <meyering@lucent.com>
69370
69371         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69372         in argmatch_to_argument call.
69373
69374         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69375         argument.
69376
69377         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69378         e.g., a fault due to an attempt to free a NULL pointer.
69379
69380 2001-11-01  Jim Meyering  <meyering@lucent.com>
69381
69382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69383         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69384
69385 2001-11-01  Jim Meyering  <meyering@lucent.com>
69386
69387         * lib/dirfd.c, lib/dirfd.h: New files.
69388         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69389
69390         * lib/hash.c (hash_print) [TESTING]: Clean up.
69391
69392 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69393
69394         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69395         to avoid a warning if -Wall.
69396
69397 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69398
69399         * README: New file
69400         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69401         (per RMS's instructions, this is now the canonical source)
69402         * lgpl/, gpl/: New directories.
69403
69404 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69405
69406         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69407
69408 2001-10-21  Jim Meyering  <meyering@lucent.com>
69409
69410         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69411         this code would end up calling gettext even in packages built
69412         with --disable-nls.
69413         * lib/getopt.c (_): Likewise.
69414         * lib/regex.c (_): Likewise.
69415
69416 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69417
69418         * m4/error.m4 (jm_PREREQ_ERROR):
69419         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69420         AC_FUNC_STRERROR_R does that.
69421         Check for strerror declaration.
69422
69423         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69424         are supposed to have them these days.
69425         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69426         Merge changes from latest Autoconf CVS.
69427         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69428         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69429         POSIX decided to standardize on the int flavor of strerror_r.
69430
69431 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69432
69433         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69434         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69435         Use strerror_r that is only a macro, even if it is not a function.
69436         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69437         (private_strerror): Use prototypes, not old-style function definition.
69438         (print_errno_message): New function.
69439         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69440         char*-flavored one.
69441         (error_tail, error, error_at_line): Use it.
69442
69443 2001-10-11  Jim Meyering  <meyering@lucent.com>
69444
69445         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69446         and quote_n (1, ... to avoid clobbering a buffer.
69447
69448 2001-10-05  Jim Meyering  <meyering@lucent.com>
69449
69450         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69451         hash-pjw.h.
69452         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69453         * lib/hash-pjw.h: New file.
69454
69455 2001-09-30  Jim Meyering  <meyering@lucent.com>
69456
69457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69458         `struct fsstat' has the `f_fstypename' member.
69459         Use that to define FS_TYPE, which is now used to make
69460         the getfsstat link test tighter.
69461
69462 2001-09-30  Jim Meyering  <meyering@lucent.com>
69463
69464         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69465         Include <sys/ucred.h>, for Apple Darwin.
69466         Include sys/mount.h and sys/fs_types.h only if available.
69467         (FS_TYPE): Define.
69468         (read_filesystem_list): Use FS_TYPE.
69469
69470 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69471
69472         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69473         a boolean context.
69474
69475 2001-09-29  Jim Meyering  <meyering@lucent.com>
69476
69477         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69478         [one-argument getmntent function]): Include stdio.h before mntent.h.
69479         SunOS 4.1.x needs it for the declaration of `FILE'.
69480         Patch by Volker Borchert.
69481
69482         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69483         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69484         sys/fs_types.h, and make the link-test for getfsstat guard #include
69485         directives with appropriate #if HAVE_*_H tests so that we can
69486         detect getfsstat on Apple Darwin1.3.7 systems.
69487         Reported by Nelson Beebe.
69488         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69489
69490 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69491
69492         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69493         #defines strtoimax.  Also treat the other strto* functions
69494         like strtoimax.
69495
69496         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69497         Check for strtoul and strtoumax,
69498         as those declarations are made even in the signed case.
69499         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69500         Likewise, for strtol and strtoimax.
69501
69502 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69503
69504         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69505         #defines strtoimax.  Also treat the other strto* functions
69506         like strtoimax.
69507
69508         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69509         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69510         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69511
69512 2001-09-26  Jim Meyering  <meyering@lucent.com>
69513
69514         Most macros in unlocked-io.h had the wrong number of arguments.
69515         * lib/gen-uio: New script.
69516         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69517         * lib/unlocked-io.hin: Remove file.
69518         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69519         rather than trying to embed it here.
69520         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69521         Reported by Padraig Brady.
69522
69523 2001-09-25  Volker Borchert  <bt@teknon.de>
69524
69525         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69526         `result'.
69527
69528 2001-09-24  Jim Meyering  <meyering@lucent.com>
69529
69530         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69531
69532 2001-09-23  Jim Meyering  <meyering@lucent.com>
69533
69534         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69535         instead of the mere test for existence of mntent.h.  The latter
69536         would get a false-positive on AIX 3.4 systems.
69537         In the outer getmntent if-block, don't die if neither of the getmntent
69538         tests succeeds.  Instead, just fall through and continue with the
69539         remaining tests.
69540
69541 2001-09-23  Jim Meyering  <meyering@lucent.com>
69542
69543         * lib/mountlist.c: Remove useless parentheses in #if directives.
69544         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69545         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69546
69547 2001-09-22  Jim Meyering  <meyering@lucent.com>
69548
69549         * m4/gettext.m4: New file.  From gettext.
69550         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69551         * m4/progtest.m4: Likewise
69552         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69553         * m4/glibc21.m4: Likewise.
69554
69555         * m4/libintl.m4: Remove.  No longer used.
69556
69557 2001-09-22  Jim Meyering  <meyering@lucent.com>
69558
69559         * lib/localcharset.c: Update from latest gettext.
69560         * lib/config.charset: Likewise.
69561
69562 2001-09-20  Jim Meyering  <meyering@lucent.com>
69563
69564         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69565         strtoimax.
69566         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69567         strtoumax.
69568
69569 2001-09-20  Jim Meyering  <meyering@lucent.com>
69570
69571         * lib/xstrtol.c (strtoimax): Guard declaration with
69572         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69573         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69574         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69575         (strtoumax): Likewise, for completeness (it wasn't necessary).
69576
69577 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69578
69579         * lib/strtoimax.c (HAVE_LONG_LONG):
69580         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69581         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69582         to work around bug in IBM C compiler.
69583
69584 2001-09-17  Jim Meyering  <meyering@lucent.com>
69585
69586         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69587         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69588         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69589         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69590         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69591         whenever the right hand side need not be expanded by the shell.
69592
69593 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69594
69595         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69596         library.  It's not correct, as some older glibcs are buggy.
69597         fnmatch wasn't fixed until glibc 2.2.
69598
69599         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69600         special shell magic here.
69601
69602 2001-09-16  Jim Meyering  <meyering@lucent.com>
69603
69604         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69605         * m4/jm-macros.m4: Require it.
69606
69607 2001-09-16  Jim Meyering  <meyering@lucent.com>
69608
69609         * lib/mkdir.c: New file.
69610
69611 2001-09-15  Jim Meyering  <meyering@lucent.com>
69612
69613         * m4/jm-macros.m4: Check for help2man.
69614
69615 2001-09-11  Jim Meyering  <meyering@lucent.com>
69616
69617         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69618         The body, by Paul Eggert, was moved here from configure.in.
69619         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69620
69621 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69622
69623         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69624         (jm_PREREQ): Use it.
69625
69626 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69627
69628         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69629         Use ssize_t, not int, to store result of readlink.
69630         Check for ssize_t overflow as well as size_t overflow,
69631         as POSIX says the result of readlink is implementation-defined
69632         when ssize_t overflows.
69633         Remove unnecessary cast to char*.
69634         Use free+malloc instead of realloc, as the storage doesn't need
69635         to be preserved and it's clearer and can be more efficient that way.
69636         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69637         * lib/xreadlink.h (xreadlink): Update prototype.
69638
69639 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69640
69641         * lib/xgetcwd.c: Revert some of the previous change; intead,
69642         fix the HAVE_GETCWD_NULL code to behave more like the
69643         !HAVE_GETCWD_NULL code used to.
69644
69645         Include "xalloc.h".
69646         (xgetcwd): Do not return NULL when memory is exhausted; instead,
69647         invoke xalloc_die.
69648
69649 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69650
69651         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
69652         sys/param.h, as pathmax.h includes them.
69653
69654 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69655
69656         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
69657         (jm_PREREQ_XGETCWD): New macro.
69658
69659         * m4/getcwd.m4: New file.
69660
69661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69662
69663         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
69664         like the HAVE_GETCWD_NULL code.
69665         Include pathmax.h if not HAVE_GETCWD.
69666         Do not include xalloc.h.
69667         (INITIAL_BUFFER_SIZE): New symbol.
69668         Do not use xmalloc / xrealloc, since the caller is responsible for
69669         handling errors.  Preserve errno around `free' during failure.
69670         Do not overrun buffer when using getwd.
69671
69672 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69673
69674         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
69675         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
69676         getcwd (NULL, 0).
69677
69678 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69679
69680         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
69681         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
69682         spotted by Jim Meyering.
69683
69684 2001-09-03  Jim Meyering  <meyering@lucent.com>
69685
69686         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
69687         failure.
69688
69689 2001-09-02  Jim Meyering  <meyering@lucent.com>
69690
69691         * lib/error.c: Update from GNU libc.
69692
69693 2001-09-01  Jim Meyering  <meyering@lucent.com>
69694
69695         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
69696         Used by df.
69697
69698 2001-09-01  Jim Meyering  <meyering@lucent.com>
69699
69700         * lib/xreadlink.c: New file.
69701         * lib/xreadlink.h: New file.
69702         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
69703         xreadlink.h.
69704
69705         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
69706         doesn't conflict with sparc Solaris 7's definition in
69707         /usr/include/sys/int_types.h.
69708
69709         * lib/exclude.c: Use `""', not `<>' to #include non-system header
69710         files.
69711         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
69712         and strncasecmp as r-values.  Unixware didn't have declarations.
69713
69714 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69715
69716         * lib/xstrtol.h: Add copyright notice.
69717         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
69718         LONGINT_INVALID_SUFFIX_CHAR.
69719
69720 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69721
69722         * lib/xstrtol.c (strtoimax): New decl.
69723
69724 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69725
69726         * lib/xgetcwd.c: Don't include pathmax.h.
69727         Include stdlib.h and unistd.h if available.
69728         Include xalloc.h.
69729         (xmalloc, xstrdup, free): Remove decls.
69730         (xgetcwd): Don't assume sizes fit in unsigned.
69731         Check for overflow when computing sizes.
69732         Simplify reallocation code.
69733
69734 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69735
69736         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
69737         a directory's st_size can have an arbitrary value, so the old
69738         usage could waste an arbitrary amount of memory.  All uses
69739         changed.
69740         * lib/savedir.h: Update prototype.
69741
69742 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69743
69744         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
69745
69746         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
69747         old strtoimax.c.
69748
69749         Also, make the following further changes to make this file's
69750         configuration more similar to that of strtol.c:
69751         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
69752         (strtoumax, uintmax_t, strtoull, strtol): Remove.
69753         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
69754         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
69755         changed to signed values.
69756
69757         And make the following changes as well:
69758         Fix copyright notice, as 1999 was missing.
69759         (verify): New macro.
69760         (strtoimax): Check sizes at compile-time, not run-time.
69761         Prefer strtol to strtoll if both work.
69762         (main): Remove; it was not that useful and was a pain to maintain.
69763
69764         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
69765
69766 2001-08-31  Jim Meyering  <meyering@lucent.com>
69767
69768         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
69769         Use an initial, malloc'd, buffer of length 128 rather than
69770         a statically allocated one of length 1024.
69771
69772 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69773
69774         Simplify code, partly by assuming autoconf 2.52 semantics.
69775
69776         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
69777
69778         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
69779         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
69780         All uses removed.
69781         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
69782         Move AC_REQUIRE to next-to-top level, to avoid confusion.
69783         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
69784         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
69785         jm_AC_HEADER_INTTYPES_H.
69786         * m4/jm-macros.m4 (jm_MACROS): Likewise.
69787
69788         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
69789
69790         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69791         Quote first arg of AC_DEFUN.
69792         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
69793         since they are needed to parse the include file even if we need
69794         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
69795         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
69796         but with opposite signedness.
69797
69798 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69799
69800         Merge 'exclude' changes from tar 1.13.22.
69801         This fixes one or two unlikely storage allocation overflow bugs,
69802         but doesn't change user-visible behavior otherwise.
69803
69804 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69805
69806         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
69807         (jm_PREREQ_EXCLUDE): New macro.
69808
69809 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69810
69811         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69812         tm to be declared.
69813
69814 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69815
69816         * lib/hash.c: Remove '2001' from copyright notice.
69817
69818 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69819
69820         * lib/full-write.h: New file.
69821         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69822         * lib/full-write.c: Correct credits, as cccp.c no longer
69823         exists and anyway it was so heavily changed from the old cccp
69824         code as to be unrecognizable.  Include full-write.h.
69825         (full_write) Return size_t, with short writes meaning failure.
69826         All callers changed.  This fixes a bug with large buffers
69827         on 64-bit hosts.
69828         * lib/utime.c: Include full-write.h.
69829
69830 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69831
69832         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69833         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69834         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69835         Include if available.
69836         (<xalloc.h>): Include
69837         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69838         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69839         collide with FNM macros.
69840         (struct patopts): New struct.
69841         (struct exclude): Use it, as exclude patterns now come with options.
69842         (new_exclude): Support above changes.
69843         (new_exclude, add_exclude_file):
69844         Initial size must now be a power of two to simplify overflow checking.
69845         (free_exclude, fnmatch_no_wildcards): New function.
69846         (excluded_filename): No longer requires options arg, as the options
69847         are determined by add_exclude.  Now returns bool, not int.
69848         (excluded_filename, add_exclude):
69849         Add support for the fancy new exclusion options.
69850         (add_exclude, add_exclude_file): Now takes int options arg.
69851         Check for arithmetic overflow when computing sizes.
69852         (add_exclude_file): xrealloc might modify errno, so don't
69853         realloc until after errno might be used.
69854
69855         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69856         New macros.
69857         (free_exclude): New decl.
69858         (add_exclude, add_exclude_file): Now takes int options arg.
69859         (excluded_filename): No longer requires options arg, as the options
69860         are determined by add_exclude.  Now returns bool, not int.
69861
69862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69863
69864         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69865
69866 2001-08-27  Jim Meyering  <meyering@lucent.com>
69867
69868         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69869
69870         * lib/version-etc.c (N_): Remove definition.
69871         Revert most of last change.
69872         Instead, simply don't mark the `Copyright...' string for translation.
69873         Based on advice from Paul Eggert.
69874
69875         * lib/strtoxmax.c: Tweak comment.
69876
69877 2001-08-26  Jim Meyering  <meyering@lucent.com>
69878
69879         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69880
69881         * m4/xstrtoimax.m4: New file.
69882         * m4/xstrtoumax.m4: Add comments explaining why we
69883         AC_REPLACE_FUNCS(strtol).
69884
69885 2001-08-26  Jim Meyering  <meyering@lucent.com>
69886
69887         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69888         of copyright with `%s' so translators don't get an untranslated
69889         message in 2002.
69890         (COPYRIGHT_YEAR): Define.
69891         (version_etc): Use fprintf rather than fputs.
69892         Suggestion from Ulrich Drepper.
69893
69894         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69895
69896         * lib/strtoll.c: New file, from GNU libc.
69897         * lib/xstrtoimax.c: New file.
69898
69899         * lib/xstrtol.h: Add xstrtoimax.
69900         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69901         * lib/strtoimax.c: New file.  Likewise, but first define
69902         STRTOUXMAX_SIGNED.
69903
69904         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69905         ...
69906         * lib/strtoxmax.c: ... then renamed to this.
69907
69908 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69909
69910         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69911         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69912         (jm_AC_TYPE_INTMAX_T): New macro.
69913         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69914
69915         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69916
69917         * m4/longlong.m4: Renamed from ulonglong.m4.
69918         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69919         * m4/uintmax_t.m4: Removed.
69920
69921 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69922
69923         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69924         Port to Solaris 8, where 'sed' requires a space after the 'r'
69925         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69926         Redirect output to $tmp just once.
69927
69928 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69929
69930         * lib/addext.c (<errno.h>): Include.
69931         (errno): Declare if not defined.
69932         (addext): Work correctly when pathconf returns -1 and leaves
69933         errno alone because there is no limit.  Also, work even if
69934         pathconf returns a value greater than SIZE_MAX.
69935
69936 2001-08-12  Jim Meyering  <meyering@lucent.com>
69937
69938         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69939         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69940         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69941         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69942         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69943         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69944         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69945         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69946         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69947         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69948         utime.m4, utimes.m4, xstrtoumax.m4:
69949         Quote the first argument in each use of AC_DEFUN.
69950
69951 2001-08-12  Jim Meyering  <meyering@lucent.com>
69952
69953         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69954         Simply `return getcwd (NULL, 0);'.
69955         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69956         Use 1300 as initial value for length, not PATH_MAX.
69957
69958         * lib/pathmax.h: Clean up cpp syntax.
69959
69960 2001-08-12  Jim Meyering  <meyering@lucent.com>
69961
69962         * lib/gettimeofday.c: New file.
69963         * lib/gtod.h: New file.
69964         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69965
69966 2001-08-05  Jim Meyering  <meyering@lucent.com>
69967
69968         * m4/jm-macros.m4: Require autoconf-2.52.
69969
69970 2001-08-04  Jim Meyering  <meyering@lucent.com>
69971
69972         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69973         stmt, to get in sync with glibc.
69974
69975 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69976
69977         The following changes are from gettext 0.10.39 as maintained by
69978         Bruno Haible.
69979
69980         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69981         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69982         with inverted sense.  All uses changed.
69983
69984         * lib/mbswidth.c: Don't include <limits.h>.
69985         Include <stdlib.h> and <string.h> unconditionally.
69986         (iswcntrl, mbsinit, ISCNTRL): New macros.
69987         (mbsnwidth): Use K&R style function declarations.
69988         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69989         can optimize it when MB_CUR_MAX == 1.
69990         The width of control characters is zero, not 1.
69991
69992 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69993
69994         The following changes are from gettext 0.10.39 as maintained by
69995         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69996
69997         * m4/codeset.m4: Upgrade to serial AM1.
69998         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69999         all uses changed.  Quote first arg of AC_DEFUN.
70000         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
70001
70002         * m4/iconv.m4: Upgrade to serial AM2.
70003         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
70004         Add --with-libconv-prefix.
70005         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
70006         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
70007         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
70008         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
70009         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
70010
70011         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
70012         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
70013         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
70014         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
70015         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
70016         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
70017         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
70018         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
70019         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70020
70021         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
70022         string.h any more.
70023
70024         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
70025         not the default value.
70026
70027         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
70028         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
70029         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
70030         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
70031         Also check for iswcntrl, used for wcwidth fallback.
70032         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
70033         to Autoconf 2.13.
70034
70035 2001-08-03  Jim Meyering  <meyering@lucent.com>
70036
70037         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
70038         as it was in the original.  Reported by Paul Eggert.
70039
70040 2001-07-16  Jim Meyering  <meyering@lucent.com>
70041
70042         * m4/gettimeofday.m4: New file.
70043         Prompted by a report from Bernhard Baehr.
70044
70045 2001-07-15  Jim Meyering  <meyering@lucent.com>
70046
70047         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
70048         stuff. Now it's in ../Makefile.cfg.
70049
70050 2001-07-15  Jim Meyering  <meyering@lucent.com>
70051
70052         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
70053         (BUILT_SOURCES): Add unlocked-io.h.
70054         (io_functions): Define.
70055         (unlocked-io.h): New rule.
70056         (DISTCLEANFILES): Add unlocked-io.h.
70057         (all-local): Depend on unlocked-io.h, to ensure it is created.
70058
70059         * lib/unlocked-io.hin: New file
70060
70061         * lib/regex.c: Update from glibc.
70062
70063 2001-07-05  Jim Meyering  <meyering@lucent.com>
70064
70065         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
70066         recommendation.
70067         (libfetish_a_SOURCES): Put all .h files here instead.
70068         Remove a thus-exposed (better checks in automake) duplicate and
70069         two unnecessary .h files.
70070
70071 2001-07-04  Jim Meyering  <meyering@lucent.com>
70072
70073         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
70074         that generates jm-glibc-io.m4 so that it doesn't trigger any make
70075         distcheck failure.
70076
70077 2001-07-02  Jim Meyering  <meyering@lucent.com>
70078
70079         The following changes were prompted by suggestions from Bruno Haible.
70080
70081         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
70082         is now generated.
70083         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
70084         definition of EXTRA_DIST.
70085         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
70086         ensure that the generated file is created/updated whenever the list
70087         of $(unlocked_functions) is changed.
70088         (jm-glibc-io.m4): New rule.
70089         (unlocked-io.h): New rule -- currently unused.
70090
70091 2001-06-24  Jim Meyering  <meyering@lucent.com>
70092
70093         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
70094         unmatched right bracket, rather than kludging it with an extra,
70095         falsely-matching quote in a comment.  Patch by Akim Demaille.
70096
70097 2001-06-11  Jim Meyering  <meyering@lucent.com>
70098
70099         * lib/regex.c: Update from GNU libc.
70100
70101 2001-05-27  Jim Meyering  <meyering@lucent.com>
70102
70103         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
70104         Check for ut_type in struct utmp.
70105
70106 2001-05-27  Jim Meyering  <meyering@lucent.com>
70107
70108         * lib/readutmp.h (UT_TYPE): Define.
70109
70110 2001-05-24  Jim Meyering  <meyering@lucent.com>
70111
70112         * lib/argmatch.c: Include "quote.h".
70113         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
70114         quote function.  Reported by Göran Uddeborg.
70115
70116 2001-05-22  Jim Meyering  <meyering@lucent.com>
70117
70118         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
70119         now that we use the package-supplied version unconditionally.
70120         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
70121
70122 2001-05-21  Jim Meyering  <meyering@lucent.com>
70123
70124         * m4/regex.m4: Change a couple backticks to single quotes to avoid
70125         shell syntax errors.
70126
70127 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70128
70129         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
70130
70131 2001-05-20  Paul Eggert  <eggert@twinsun.com>
70132
70133         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
70134         Don't bother to check library strftime, since
70135         we'll be using our own my_strftime function anyway.
70136         Define my_strftime instead of strftime.
70137
70138 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
70139
70140         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
70141         which is not yet declared.
70142
70143 2001-05-15  Jim Meyering  <meyering@lucent.com>
70144
70145         * m4/regex.m4: Use proper quoting so brackets appear in the test
70146         program.
70147         Reported by, and with help from, Bruno Haible.
70148
70149 2001-05-13  Jim Meyering  <meyering@lucent.com>
70150
70151         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
70152         undefined.
70153
70154 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70155
70156         dirname code cleanup.  base_name now behaves more compatibly
70157         with POSIX basename when given file names that have trailing
70158         slashes, and similarly for dir_name.  Add new primitives
70159         base_len and dir_len.  Put the directory-name-related decls
70160         into dirname.h.
70161
70162         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
70163         * lib/backupfile.c (base_name): Likewise.
70164         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
70165         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
70166         * lib/makepath.c (strip_trailing_slashes): Likewise.
70167         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
70168         ISSLASH): Likewise.
70169         * lib/rename.c (strip_trailing_slashes): Likewise.
70170         * lib/same.c (base_name): Likewise.
70171         * lib/stripslash.c (ISSLASH): Likewise.
70172
70173         * lib/addext.c: Include <dirname.h> after size_t is defined.
70174         * lib/backupfile.c: Likewise.
70175
70176         * lib/addext.c (addext): Use base_len to trim redundant
70177         trailing slashes instead of doing it ourselves.
70178         But do not trim the last slash if it is not redundant.
70179
70180         * lib/backupfile.c (find_backup_file_name,
70181         max_backup_version): Use base_len instead of rolling it ourselves.
70182         Handle the case of "" and (on DOS) "C:" correctly.
70183
70184         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
70185         needed. Include <string.h>, <dirname.h>.
70186         (base_name): Allow file names ending in slashes, other than names
70187         that are all slashes.  In this case, return the basename followed
70188         by the slashes.  This is more general, and can be used in places
70189         where the original base_name purposely had an assertion failure.
70190         (base_len): New function.
70191
70192         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
70193         Do not include <assert.h>; no longer needed.
70194         Include xalloc.h.
70195         (memrchr): Remove decl.
70196         (dir_name_r): Remove.
70197         (dir_len): Renamed from dirlen.  All callers changed.
70198         Rewrite in terms of base_name, for simplicity and consistency.
70199         (dir_name): Never return NULL.  All callers changed.
70200         Do not include <stdlib.h> in test program; no longer needed.
70201         return 0; is fine for test program.
70202
70203         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
70204         New macros.
70205         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
70206
70207         * lib/path-concat.c (path_concat): Use base_len to compute
70208         base length, not strlen; this means we cannot rely on memcpy
70209         to null-terminate.
70210
70211         * lib/same.c (STREQ): Remove.
70212         (same_name): Handle the case where the basename ends in trailing '/'.
70213
70214         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
70215         a slash was stripped.  Do not strip the last slash after a
70216         file system prefix.
70217
70218 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70219
70220         * lib/Makefile.am (libfetish_a_SOURCES):
70221         Add strftime.c, since we now compile it on all hosts.
70222
70223         * lib/strftime.c (my_strftime):
70224         Define to nstrftime if emacs, but only if my_strftime is not defined.
70225         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
70226         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
70227         Add one more extra argument: a nanoseconds value.
70228         All uses changed.
70229         (ns): New macro.
70230         (my_strftime function): Add %N format.
70231         (emacs_strftimeu): Renamed from emacs_strftime,
70232         with extra ut argument.
70233
70234 2001-05-09  Paul Eggert  <eggert@twinsun.com>
70235
70236         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
70237
70238 2001-04-21  Jim Meyering  <meyering@lucent.com>
70239
70240         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
70241         doesn't interfere.
70242
70243 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70244
70245         * m4/ftruncate.m4: Check for chsize.
70246         Link with ftruncate.o unconditionally if ftruncate is missing.
70247         This was required when cross-compiling to i586-mingw32msvc.
70248
70249 2001-04-08  Jim Meyering  <meyering@lucent.com>
70250
70251         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
70252         recomputed; that's necessary when the offset spans a DST transition.
70253         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
70254
70255 2001-04-02  Jim Meyering  <meyering@lucent.com>
70256
70257         * lib/regex.h, regex.c: Update from GNU libc.
70258
70259 2001-03-24  Jim Meyering  <meyering@lucent.com>
70260
70261         * m4/jm-macros.m4: Require autoconf-2.49d.
70262
70263 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
70264
70265         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
70266
70267 2001-03-19  Paul Eggert  <eggert@twinsun.com>
70268
70269         * lib/version-etc.c (version_etc_copyright): Update to 2001.
70270
70271 2001-03-17  Jim Meyering  <meyering@lucent.com>
70272
70273         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
70274         now that the version in autoconf is equivalent.
70275         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
70276
70277         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
70278         Suggestion from Akim Demaille.
70279
70280         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
70281         (jm_PREREQ_TEMPNAME): New function.
70282
70283 2001-03-16  Paul Eggert  <eggert@twinsun.com>
70284
70285         * lib/tempname.c (uint64_t): Define to uintmax_t if
70286         not defined, and if UINT64_MAX is not defined.
70287         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
70288         Reported by John David Anglin.
70289
70290 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
70291
70292         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
70293         resolve alias if codeset is empty.
70294         * lib/config.charset (BeOS): Use wildcard syntax.
70295
70296 2001-03-13  Jim Meyering  <meyering@lucent.com>
70297
70298         * lib/path-concat.c (path_concat)
70299         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
70300         concatenating e.g., `C:' and `foo'.
70301         From Bruno Haible.
70302
70303 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70304
70305         * lib/localcharset.c (locale_charset): Don't use
70306         setlocale(LC_CTYPE,NULL). Don't return NULL.
70307         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
70308
70309 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70310
70311         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
70312         support for DOS/DJGPP.
70313
70314 2001-03-01  Paul Eggert  <eggert@twinsun.com>
70315
70316         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
70317         lacks mkstemp.  Compile our own tempname.c if we compile our own
70318         mkstemp.c, as mkstemp relies on tempname.
70319
70320 2001-03-01  Jim Meyering  <meyering@lucent.com>
70321
70322         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
70323         AH_VERBATIM really does output its argument verbatim.
70324
70325 2001-02-28  Paul Eggert  <eggert@twinsun.com>
70326
70327         * lib/Makefile.am (libfetish_a_SOURCES):
70328         Add dup-safer.c, fopen-safer.c.
70329         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
70330
70331         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
70332         * lib/unistd-safer.h: New files.
70333
70334 2001-02-25  Paul Eggert  <eggert@twinsun.com>
70335
70336         The mkstemp replacement is taken from glibc 2.2.2, with some
70337         portability fixes for use outside glibc, as follows:
70338
70339         * lib/tempname.c (struct_stat64): New macro.
70340         (direxists, __gen_tempname): Use it.
70341         This avoids a portability problem with Solaris 8.
70342
70343         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
70344         (<stddef.h>, <stdint.h>, <string.h>):
70345         Include only if STDC_HEADERS || _LIBC.
70346         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
70347         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
70348         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
70349         (__set_errno): Define this macro if <errno.h> doesn't.
70350         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
70351         Define these macros if <stdio.h> doesn't.
70352         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
70353         Define these macros if <sys/stat.h>
70354         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
70355         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
70356         __xstat64): Define if not _LIBC.
70357         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
70358         (__gen_tempname): Invoke gettimeofday only if
70359         HAVE_GETTIMEOFDAY || _LIBC;
70360         otherwise, fall back on plain "time".
70361         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
70362
70363         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
70364
70365         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
70366
70367 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70368
70369         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70370
70371 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70372
70373         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70374         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70375         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70376         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70377
70378 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70379
70380         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70381         Remove workaround macros for hosts that have mbrtowc but not
70382         mbstate_t, as we now insist on proper declarations for both
70383         before using mbrtowc.
70384
70385 2001-02-17  Jim Meyering  <meyering@lucent.com>
70386
70387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70388         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70389         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70390         UnixWare 7.1.1.
70391
70392         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70393         rather than AC_CACHE_VAL.
70394
70395 2001-02-17  Jim Meyering  <meyering@lucent.com>
70396
70397         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70398         around included file name.
70399
70400         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70401
70402         * lib/strftime.c: Update from GNU libc (the only changes were to
70403         comments).
70404
70405 2001-02-17  Jim Meyering  <meyering@lucent.com>
70406
70407         * lib/regex.c: Update from libc.
70408
70409 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70410
70411         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70412         clash.
70413
70414 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70415
70416         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70417         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70418         Reported by Mark Hounschell via Paul Eggert.
70419
70420 2001-02-07  Jim Meyering  <meyering@lucent.com>
70421
70422         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70423
70424 2001-02-05  Jim Meyering  <meyering@lucent.com>
70425
70426         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70427         it includes the patch required for `large file' support with at least
70428         HP-UX's 10.20 /bin/cc.
70429
70430 2001-02-03  Jim Meyering  <meyering@lucent.com>
70431
70432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70433         AS_IF, now that it works once again (mysteriously).
70434         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70435
70436 2001-01-30  Jim Meyering  <meyering@lucent.com>
70437
70438         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70439         * m4/chown.m4: Rename conftestchown to conftest.chown.
70440         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70441         s/conftestdir2/conftest.d2/.
70442         * m4/utimes.m4: s/conftestdata/conftest.data/
70443         Inspired by Pavel Roskin's change in autoconf.
70444
70445 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70446
70447         * lib/config.charset: Update for FreeBSD 4.2.
70448
70449 2001-01-27  Jim Meyering  <meyering@lucent.com>
70450
70451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70452         a use of AS_IF.
70453         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70454
70455 2001-01-26  Jim Meyering  <meyering@lucent.com>
70456
70457         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70458         quotearg.c includes it.
70459
70460 2001-01-26  Jim Meyering  <meyering@lucent.com>
70461
70462         * lib/quotearg.c: Include stddef.h.
70463         * lib/quote.c: Include stddef.h.
70464         Reported by Axel Kittenberger.
70465
70466         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70467         line in double quotes so that it evokes a better diagnostic.
70468         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70469         Reported by Axel Kittenberger.
70470
70471 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70472
70473         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70474         as if it was a `charset'.
70475
70476 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70477
70478         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70479         has const.
70480
70481 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70482
70483         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70484         to avoid a warning.  Add back 'const' to inptr.
70485
70486 2001-01-20  Jim Meyering  <meyering@lucent.com>
70487
70488         Be sure that headers are checked before used in code compiled
70489         for the type checks.
70490         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70491         In place of that, invoke jm_CHECK_ALL_TYPES.
70492         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70493         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70494         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70495         The check for ssize_t was mistakenly run before the test for unistd.h.
70496
70497         The configure-time check for stdbool.h was missing.
70498         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70499         (jm_PREREQ_HASH): New function.
70500
70501 2001-01-17  Jim Meyering  <meyering@lucent.com>
70502
70503         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70504         for autoconf-2.49c.
70505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70506
70507 2001-01-16  Jim Meyering  <meyering@lucent.com>
70508
70509         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70510         From Bruno Haible.
70511
70512 2001-01-14  Jim Meyering  <meyering@lucent.com>
70513
70514         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70515         foo and bar.  Create conftestdir/ in the script, not in the C code.
70516         Remove directories in the script, not in the C code.
70517         Remove conftestdir{,2} before trying to create the directory.
70518         Make the entire configure script fail if the mkdir fails.
70519
70520 2001-01-14  Jim Meyering  <meyering@lucent.com>
70521
70522         * lib/rename.c: New file.  From Volker Borchert.
70523         Include stdlib.h, string.h or strings.h, and xalloc.h.
70524         Use strip_trailing_slashes rather than open-coding it.
70525
70526 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70527
70528         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70529
70530 2001-01-03  Jim Meyering  <meyering@lucent.com>
70531
70532         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70533         of local `inptr' to avoid warning with some system declarations of
70534         iconv.
70535
70536 2001-01-02  Volker Borchert  <bt@teknon.de>
70537
70538         * m4/rename.m4: New file.
70539         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70540
70541 2001-01-01  Jim Meyering  <meyering@lucent.com>
70542
70543         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70544         even on systems with utmpx.h.  It's necessary for the declaration of
70545         utmp's ut_user member.  Reported by Andreas Jaeger.
70546
70547         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70548         available. They are required for the declarations of getgrgid and
70549         getpwuid resp.
70550         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70551         Reported by Andreas Jaeger.
70552
70553 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70554
70555         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70556         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70557         so `make install' also works in VPATH builds.
70558
70559 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70560
70561         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70562         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70563         can be used in subdirectories.
70564
70565 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70566
70567         * lib/modechange.c: Do not assume that mode_t uses the
70568         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70569         the other-execute bit of FOO even if S_IXOTH != 1.
70570
70571         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70572         WOTH, XOTH, ALLM): New macros.
70573         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70574          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70575         Use them.
70576         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70577         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70578         (mode_compile):
70579         No need to use uintmax_t; unsigned long is long enough.
70580         Don't bother to get suffix since we don't use it.
70581
70582 2000-12-26  Jim Meyering  <meyering@lucent.com>
70583
70584         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70585         better with autoheader.
70586
70587 2000-12-24  Jim Meyering  <meyering@lucent.com>
70588
70589         * lib/hash.c (is_prime): Return explicit boolean values.
70590         (hash_get_first): Return NULL to appease Irix5.6's 89.
70591         Reported by Nelson Beebe.
70592
70593 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70594
70595         * lib/localcharset.c (locale_charset): Add support for Win32.
70596
70597 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70598
70599         * lib/physmem.h, lib/physmem.c: New files.
70600
70601         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70602         (noinst_HEADERS): Add physmem.h.
70603
70604         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70605         't' for compatibility with Solaris 8 sort.
70606
70607 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70608
70609         * lib/config.charset: Add support for BeOS.
70610
70611 2000-12-17  Jim Meyering  <meyering@lucent.com>
70612
70613         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70614         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70615
70616 2000-12-16  Jim Meyering  <meyering@lucent.com>
70617
70618         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70619         N and M) would have treated it like `chown N:N FILE'.
70620
70621         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70622
70623 2000-12-16  Jim Meyering  <meyering@lucent.com>
70624
70625         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70626         SHELLS_FILE to a file name that's useful on djgpp systems.
70627         Include stdlib.h.
70628         (ADDITIONAL_DEFAULT_SHELLS): Define.
70629         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70630         Based mostly on a patch from Prashant TR.
70631
70632 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70633
70634         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70635         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70636         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70637
70638 2000-12-08  Andreas Schwab  <schwab@suse.de>
70639
70640         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70641         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70642
70643 2000-12-07  Jim Meyering  <meyering@lucent.com>
70644
70645         * lib/stripslash.c (ISSLASH): Define.
70646         (strip_trailing_slashes): Use ISSLASH rather than comparing against
70647         `/'.
70648         From Prashant TR.
70649
70650         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
70651         (dir_name_r): Declare this function as static.
70652         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
70653         manifest itself on a name containing a mix of slashes and
70654         backslashes.
70655         Make this function work with names starting with a DOS-style
70656         drive letter and colon prefix.
70657         (dir_name): Append `.' if necessary.
70658         Based mostly on patches from Prashant TR and Eli Zaretskii.
70659
70660         * lib/dirname.h (dir_name_r): Remove prototype.
70661
70662 2000-12-06  Paul Eggert  <eggert@twinsun.com>
70663
70664         * m4/off_t-format.m4: Remove this file.
70665         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
70666
70667 2000-12-06  Jim Meyering  <meyering@lucent.com>
70668
70669         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
70670         replacement strtoull, we may well need the replacement strtoul, too.
70671         Check for declarations of strtoul and strtoull.
70672         Check for strtol.  Mainly as a cue to cause automake to include
70673         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
70674         Check for limits.h -- strtol.c needs it.
70675
70676 2000-12-05  Jim Meyering  <meyering@lucent.com>
70677
70678         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
70679
70680 2000-12-04  Jim Meyering  <meyering@lucent.com>
70681
70682         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
70683         Also include memory.h, stdlib.h, unistd.h if appropriate.
70684         Reported by Andreas Jaeger (conflicting declaration of malloc).
70685
70686 2000-12-02  Jim Meyering  <meyering@lucent.com>
70687
70688         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
70689         * m4/jm-macros.m4 (jm_MACROS): require it.
70690
70691 2000-12-02  Jim Meyering  <meyering@lucent.com>
70692
70693         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
70694
70695 2000-12-01  Paul Eggert  <eggert@twinsun.com>
70696
70697         * lib/memrchr.c: Include <config.h> before any system include file.
70698
70699 2000-11-30  Jim Meyering  <meyering@lucent.com>
70700
70701         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
70702
70703 2000-11-30  Jim Meyering  <meyering@lucent.com>
70704
70705         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
70706
70707 2000-11-29  Paul Eggert  <eggert@twinsun.com>
70708
70709         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
70710
70711 2000-11-26  Jim Meyering  <meyering@lucent.com>
70712
70713         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
70714
70715 2000-11-22  Paul Eggert  <eggert@twinsun.com>
70716
70717         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
70718         size of (size_t) -1; it's not portable.
70719
70720 2000-11-17  Jim Meyering  <meyering@lucent.com>
70721
70722         * lib/strstr.c: Update from GNU libc.
70723
70724 2000-11-17  Akim Demaille  <akim@epita.fr>
70725
70726         * lib/obstack.h: Formatting changes.
70727         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
70728         prevent type checking.
70729         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
70730         cast the value to (void *): assigning a `foo *' to a `void *'
70731         variable is valid.
70732         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
70733
70734 2000-11-16  Jim Meyering  <meyering@lucent.com>
70735
70736         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
70737
70738 2000-11-11  Jim Meyering  <meyering@lucent.com>
70739
70740         * lib/error.c: Add a couple #includes, merging from GNU libc version.
70741
70742 2000-11-10  Jim Meyering  <meyering@lucent.com>
70743
70744         * lib/obstack.h: Update from GNU libc.
70745         * lib/obstack.c: Likewise.
70746
70747 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
70748
70749         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
70750
70751 2000-11-06  Paul Eggert  <eggert@twinsun.com>
70752
70753         * lib/getusershell.c (setusershell): Use rewind rather than
70754         fseek/fseeko, to avoid configuration hassles with fseeko.
70755         Don't bother opening SHELLS_FILE if shellstream is NULL;
70756         it's not necessary.
70757
70758 2000-11-05  Jim Meyering  <meyering@lucent.com>
70759
70760         * lib/makepath.h (make_dir): Declare.
70761         * lib/makepath.c (make_dir): Remove `static' attribute.
70762         Tweak a comment.
70763
70764 2000-11-04  Jim Meyering  <meyering@lucent.com>
70765
70766         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
70767
70768 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
70769
70770         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
70771         last one in a bucket, advance to the next bucket.
70772
70773 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
70774
70775         * lib/fnmatch.c: Do not comment out all the code if we are using
70776         the GNU C library, because in some cases we are replacing buggy
70777         code in the GNU C library itself.
70778
70779 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
70780
70781         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
70782         (regex_compile): Catch bogus \(\1\).
70783
70784 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70785
70786         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
70787         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
70788         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
70789
70790 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70791
70792         * lib/error.h, getline.h, modechange.h:
70793         Remove "2000" from Copyright line, as the file hasn't been
70794         changed this year other than in the copyright notice.
70795
70796         * lib/xalloc.h: Add "2000" to Copyright line, as this file
70797         was changed this year.
70798
70799 2000-10-29  Jim Meyering  <meyering@lucent.com>
70800
70801         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
70802         renaming.
70803         * m4/ls-mntd-fs.m4: Likewise
70804
70805 2000-10-29  Jim Meyering  <meyering@lucent.com>
70806
70807         * lib/xstat.in: Fix grammar in comment.
70808
70809 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
70810
70811         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70812         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70813         doesn't define __restrict_arr.
70814
70815 2000-10-28  Jim Meyering  <meyering@lucent.com>
70816
70817         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70818         (jm_PREREQ_MEMCHR): New function.
70819
70820 2000-10-28  Jim Meyering  <meyering@lucent.com>
70821
70822         * lib/memchr.c: Update from libc.
70823         Adjust for portability:
70824         [HAVE_STDLIB_H]: Include stdlib.h.
70825         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70826         Undef __memchr, too.
70827         [!weak_alias]: Define __memchr to memchr.
70828
70829         * lib/regex.c: Update from libc.
70830         * lib/regex.h: Likewise.
70831         * lib/getopt1.c: Likewise.
70832         * lib/memcmp.c: Likewise.
70833
70834         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70835         Avoid using fseek, when possible -- it's broken by design.
70836         Patch by Ulrich Drepper.
70837
70838 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70839
70840         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70841         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70842         Giving in to popular pressure to shut up the compiler with casts.
70843
70844 2000-10-26  Jim Meyering  <meyering@lucent.com>
70845
70846         * lib/strftime.c: Update from libc.
70847
70848 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70849
70850         * regex.c: More `unsigned char' -> `re_char' changes.
70851         Also change several `int' into `re_wchar_t'.
70852         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70853         (PUSH_FAILURE_POINTER): Don't cast any more.
70854         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70855         We want GCC to complain, since this piece of code makes
70856         re_match non-reentrant, which *should* be fixed.
70857         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70858         (EXTEND_BUFFER): Use RETALLOC.
70859         (SET_LIST_BIT): Don't cast.
70860         (re_wchar_t): New type.
70861         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70862         that those two functions will always properly return.
70863         (IMMEDIATE_QUIT_CHECK): Cast to void.
70864         (analyse_first): Use recursion rather than an explicit stack.
70865         (re_compile_fastmap): Can't fail anymore.
70866         (re_search_2): Don't check re_compile_fastmap for failure.
70867         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70868         Now also sets the new value (passed in a new argument).
70869         (re_match_2_internal): Use it.
70870         Also, use a new var `reg' of type size_t when looping through regs
70871         rather than reuse the inappropriate `mcnt'.
70872
70873 2000-10-25  Jim Meyering  <meyering@lucent.com>
70874
70875         * lib/obstack.c: Update from libc.
70876
70877 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70878
70879         * regex.c (regex_compile): Change the way of handling a range from
70880         a char less than 256 to a char not less than 256.
70881
70882 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70883
70884         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70885         NT-Emacs only.
70886         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70887         so that re_search functions only quit when callers expect them to.
70888
70889 2000-10-23  Jim Meyering  <meyering@lucent.com>
70890
70891         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70892         wrong.  That set_locale call must not have any side effects.
70893         From Paul Eggert.
70894
70895 2000-10-22  Jim Meyering  <meyering@lucent.com>
70896
70897         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70898         [CYCLIC]: Remove now-unused definition.
70899
70900         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70901         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70902         Suggestion from Ulrich Drepper.
70903
70904 2000-10-21  Jim Meyering  <meyering@lucent.com>
70905
70906         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70907         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70909
70910 2000-10-21  Jim Meyering  <meyering@lucent.com>
70911
70912         * lib/dirname.c (memrchr): Declare if necessary.
70913         (dir_name): Remove the restriction that there be no
70914         trailing slashes.  Now, this code skips past them, effectively
70915         ignoring them.
70916         [TEST_DIRNAME] (main): New unit tests.
70917
70918         * lib/memrchr.c: New file from GNU libc.
70919         Undef __memrchr, too.
70920         [!weak_alias]: Define __memrchr to memrchr.
70921         Guard weak_alias use with `#ifdef weak_alias'.
70922
70923 2000-10-21  Jim Meyering  <meyering@lucent.com>
70924
70925         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70926         (dir_name): Use dir_name_r.
70927         * lib/dirname.h (dir_name_r): Declare it.
70928
70929 2000-10-17  Jim Meyering  <meyering@lucent.com>
70930
70931         * lib/quote.h (PARAMS): Define and use.
70932         Reported by Akim Demaille.
70933
70934         * lib/getopt.c: Update from libc.
70935
70936 2000-10-16  Jim Meyering  <meyering@lucent.com>
70937
70938         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70939         setlocale.
70940         From Jan Fedak.
70941
70942 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70943
70944         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70945
70946 2000-09-25  Jim Meyering  <meyering@lucent.com>
70947
70948         * lib/md5.h (rol): Define (from GnuPG).
70949
70950         * lib/sha.c: Give credit (GnuPG) where due.
70951         (M): Use rol rather than open-coding it.
70952         Add a FIXME comment.
70953
70954 2000-09-21  Jim Meyering  <meyering@lucent.com>
70955
70956         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70957         Reported by Michael Stone.
70958
70959 2000-09-20  Jim Meyering  <meyering@lucent.com>
70960
70961         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70962         (noinst_HEADERS): Add sha.h.
70963         Based on code from Scott G. Miller and from GnuPG.
70964
70965 2000-09-18  Jim Meyering  <meyering@lucent.com>
70966
70967         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70968         LIBS. Otherwise, everyone ends up linking with -lelf for some
70969         configurations.
70970         Reported by Mike Stone.
70971
70972 2000-09-15  Jim Meyering  <meyering@lucent.com>
70973
70974         * lib/regex.c: Update from libc.
70975
70976 2000-09-10  Jim Meyering  <meyering@lucent.com>
70977
70978         * lib/getopt.c (_getopt_internal): Update from glibc.
70979
70980 2000-09-09  Jim Meyering  <meyering@lucent.com>
70981
70982         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70983         think it should be used as a general replacement for isascii.
70984         * lib/fnmatch.c: Likewise.
70985         * lib/mbswidth.c: Likewise
70986         * lib/regex.c: Likewise.
70987
70988         Don't use atoi.
70989         * lib/userspec.c: Include sys/param.h and limits.h.
70990         Include xstrtol.h.
70991         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70992         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70993         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70994         UID, GID.  Check range.
70995
70996 2000-09-06  Jim Meyering  <meyering@lucent.com>
70997
70998         * lib/getopt.c (_getopt_internal): Update from glibc.
70999
71000 2000-08-30  Jim Meyering  <meyering@lucent.com>
71001
71002         * lib/strftime.c: Merge in changes from GNU libc.
71003
71004 2000-08-26  Jim Meyering  <meyering@lucent.com>
71005
71006         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
71007         * m4/fpending.m4: New file.
71008
71009 2000-08-26  Jim Meyering  <meyering@lucent.com>
71010
71011         * lib/closeout.c: Include "__fpending.h".
71012         (close_stdout_status): Return right away if there's nothing to flush.
71013
71014         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
71015         * lib/__fpending.c: New file.
71016         * lib/__fpending.h: New file.
71017
71018 2000-08-20  Jim Meyering  <meyering@lucent.com>
71019
71020         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
71021         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
71022         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
71023
71024 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
71025
71026         Improve fileutils installation on systems where running
71027         programs (like install) can't be unlinked.
71028         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
71029         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
71030
71031 2000-08-07  Paul Eggert  <eggert@twinsun.com>
71032
71033         Standardize on "memory exhausted" instead of "Memory exhausted"
71034         or "virtual memory exhausted".
71035         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
71036         "virtual memory exhausted".
71037         * lib/same.c (same_name): Invoke xalloc_die instead of printing
71038         our own message.
71039         * lib/userspec.c (parse_user_spec): Likewise.
71040         * lib/bumpalloc.h: comment fix
71041         * lib/same.c, userspec.c: Include xalloc.h.
71042
71043         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
71044         not char *const and pointing to a constant array.
71045         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
71046         (xrealloc): Comment fix.
71047
71048         * lib/userspec.c (parse_user_spec):
71049         Don't translate a message until just before returning,
71050         to avoid unnecessary translation.
71051
71052 2000-08-07  Jim Meyering  <meyering@lucent.com>
71053
71054         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
71055         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
71056         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
71057         getgroups.c, gethostname.c, getopt.h, group-member.c,
71058         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
71059         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
71060         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
71061         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
71062         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
71063         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
71064         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
71065         yesno.c: Back out Copyright date changes for each file with no change
71066         this year.  This eases coordination with other programs using the same
71067         source code modules.  From Paul Eggert.
71068
71069 2000-08-06  Paul Eggert  <eggert@twinsun.com>
71070
71071         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
71072         not char, for compatibility with glibc 2.1.3 strftime.c.
71073
71074 2000-08-03  Greg McGary  <greg@mcgary.org>
71075
71076         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
71077         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
71078         (EXTEND_BUFFER): Use them.
71079
71080 2000-08-01  Jim Meyering  <meyering@lucent.com>
71081
71082         * lib/dirname.c (ISSLASH): Define.
71083         (BACKSLASH_IS_PATH_SEPARATOR): Define.
71084         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
71085         both `\' and `/' may be use as path separators.
71086         Based on a patch from Prashant TR.
71087
71088 2000-07-31  Paul Eggert  <eggert@twinsun.com>
71089
71090         * lib/quotearg.c (quotearg_n_options): Don't make the initial
71091         slot vector a constant, since it might get modified.
71092
71093 2000-07-31  Jim Meyering  <meyering@lucent.com>
71094
71095         * lib/xmalloc.c: Use `virtual memory exhausted', not
71096         `Memory exhausted'.
71097         * lib/obstack.c (print_and_abort): Likewise.
71098
71099 2000-07-30  Paul Eggert  <eggert@twinsun.com>
71100
71101         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
71102         buffer, so that the caller can always quote one small
71103         component of a "memory exhausted" message in slot 0.
71104         From a suggestion by Jim Meyering.
71105
71106 2000-07-30  Jim Meyering  <meyering@lucent.com>
71107
71108         * lib/makepath.c (make_path): Quote the other instance, too.
71109
71110         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
71111         (STATIC_BUF_SIZE): Define.
71112         (quotearg_n_options): Use only statically allocated storage when
71113         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
71114         than STATIC_BUF_SIZE.
71115
71116 2000-07-29  Jim Meyering  <meyering@lucent.com>
71117
71118         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
71119         * lib/dirname.c (dir_name): Likewise.
71120
71121         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
71122         `/'.
71123
71124         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
71125         (dir_name): Assert that there are no trailing slashes.
71126
71127 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
71128
71129         * lib/mbswidth.h (mbswidth): Add a flags argument.
71130         (mbswidth): New declaration.
71131         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
71132         * lib/mbswidth.c (mbswidth): Add a flags argument.
71133         (mbsnwidth): New function.
71134
71135 2000-07-24  Jim Meyering  <meyering@lucent.com>
71136
71137         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
71138
71139 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71140
71141         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
71142
71143 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71144
71145         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
71146         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
71147         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
71148         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
71149         invoke multibyte primitives.
71150
71151 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71152
71153         * lib/quotearg.c:
71154         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
71155         so that mbstate_t is always defined.
71156
71157         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
71158         be 1 in at least one GCC installation, and this configuration
71159         error is likely to be common.  Ignoring MB_LEN_MAX hurts
71160         performance on hosts that have mbrtowc but have only unibyte
71161         locales, but I assume these hosts are rare.
71162
71163 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71164
71165         * lib/mbswidth.c (_XOPEN_SOURCE):
71166         Don't define; this causes problems on Solaris 7.
71167         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
71168
71169 2000-07-23  Jim Meyering  <meyering@lucent.com>
71170
71171         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
71172         too: getgrgid, getpwuid, getuid.
71173
71174 2000-07-23  Jim Meyering  <meyering@lucent.com>
71175
71176         * lib/basename.c (base_name): Add an assertion.
71177
71178 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
71179
71180         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
71181         shadow its mbsinit function.
71182
71183 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
71184
71185         * lib/mbswidth.h: New file.
71186         * lib/mbswidth.c: New file.
71187         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
71188         (noinst_HEADERS): Add mbswidth.h.
71189
71190 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
71191
71192         * lib/config.charset: Add support for FreeBSD. Improve support for
71193         HP-UX and IRIX 6.
71194
71195 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
71196
71197         * m4/mbswidth.m4: New file.
71198         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
71199
71200 2000-07-15  Jim Meyering  <meyering@lucent.com>
71201
71202         * lib/makepath.c: Include quote.h.
71203         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
71204         corresponding argument in a `quote (...)' call.
71205         Give better diagnostics.
71206
71207         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
71208         (noinst_HEADERS): Add quote.h.
71209
71210         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
71211         from tar's src/misc.c.
71212         * lib/quote.h: New file.  Prototypes for same.
71213
71214 2000-07-14  Paul Eggert  <eggert@twinsun.com>
71215
71216         From a suggestion by Bruno Haible.
71217         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
71218         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
71219         to decide whether to define the BeOS workaround macro;
71220         this adjusts to the change to AC_MBSTATE_T.
71221
71222 2000-07-14  Jim Meyering  <meyering@lucent.com>
71223
71224         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
71225         jm_AC_TYPE_UINTMAX_T.
71226
71227 2000-07-13  Paul Eggert  <eggert@twinsun.com>
71228
71229         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
71230
71231         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
71232         quotearg_buffer_restyled): Add support for
71233         clocale_quoting_style.  Undo previous change to
71234         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
71235         and "{RIGHT QUOTATION MARK}" msgids.
71236
71237 2000-07-10  Paul Eggert  <eggert@twinsun.com>
71238
71239         From a suggestion by Bruno Haible.
71240         * m4/mbstate_t.m4 (AC_MBSTATE_T):
71241         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
71242         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
71243         and mbstate_t, to a single-part test that simply defines mbstate_t.
71244         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
71245         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
71246
71247 2000-07-10  Jim Meyering  <meyering@lucent.com>
71248
71249         * m4/strerror_r.m4: Mirror the correction made in autoconf.
71250
71251         * m4/gnu-source.m4: Output to confdefs.h directly.
71252         Suggestion from Akim Demaille.
71253
71254 2000-07-09  Paul Eggert  <eggert@twinsun.com>
71255
71256         The old behavior of quoting `like this' doesn't look good with
71257         newer, ISO-style fonts.  See:
71258         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
71259
71260         Instead, quote "like this" by default.  Let the translator
71261         tailor the locale-specific quoting behavior by providing
71262         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
71263
71264         * lib/quotearg.c (N_): New macro.
71265         (gettext_default): New function.
71266         (quotearg_buffer_restyled): Use
71267         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
71268         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
71269
71270 2000-07-09  Jim Meyering  <meyering@lucent.com>
71271
71272         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
71273         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
71274
71275         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
71276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
71277
71278 2000-07-09  Jim Meyering  <meyering@lucent.com>
71279
71280         * lib/Most files: Update copyright dates to include 2000.
71281
71282 2000-07-08  Jim Meyering  <meyering@lucent.com>
71283
71284         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
71285         if not defined.
71286         (xgethostname): Remove now-unnecessary #ifdef.
71287         Move declaration of `err' into loop where it's used.
71288
71289 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71290         and Bruno Haible  <haible@clisp.cons.org>
71291
71292         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
71293         only if the test for an object-type mbstate_t fails.  This
71294         prevents us from mistakenly reporting that mbstate_t is a
71295         system object type after we "#define mbstate_t int" to work
71296         around its lack.
71297
71298 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71299         and Bruno Haible  <haible@clisp.cons.org>
71300
71301         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
71302
71303 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71304
71305         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
71306         to strerror_r.
71307         Include <ctype.h> for use of isalpha.
71308
71309 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71310
71311         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
71312         by allocating a larger buffer. Test the gethostname return value for
71313         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
71314         returns an error and ENAMETOOLONG isn't defined.
71315
71316 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71317
71318         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
71319         dimension.
71320
71321 2000-07-04  Jim Meyering  <meyering@lucent.com>
71322
71323         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
71324         of the deprecated AC_CHECKING.
71325
71326 2000-07-04  Jim Meyering  <meyering@lucent.com>
71327
71328         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
71329         Reported by Bruno Haible.
71330
71331 2000-07-04  Jim Meyering  <meyering@lucent.com>
71332
71333         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
71334         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
71335         lacks mbrtowc.
71336
71337 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71338
71339         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
71340         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
71341
71342 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71343         and Bruno Haible  <haible@clisp.cons.org>
71344
71345         * lib/quotearg.c (mbrtowc):
71346         Assign to *pwc, and return 1 only if result is nonzero.
71347         (iswprint): Use ISPRINT when substituting our own mbrtowc.
71348
71349 2000-07-03  Jim Meyering  <meyering@lucent.com>
71350
71351         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
71352
71353 2000-07-03  Jim Meyering  <meyering@lucent.com>
71354
71355         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
71356         This is necessary to get a definition of e.g., UTMP_FILE on
71357         HP-UX 10.20.
71358         From Bob Proulx.
71359
71360 2000-07-02  Jim Meyering  <meyering@lucent.com>
71361
71362         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
71363
71364         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
71365         AC_LIBOBJ(function_name).
71366         * m4/chown.m4: Likewise.
71367         * m4/fnmatch.m4: Likewise.
71368         * m4/ftruncate.m4: Likewise.
71369         * m4/getgroups.m4: Likewise.
71370         * m4/getline.m4: Likewise.
71371         * m4/group-member.m4: Likewise.
71372         * m4/jm-macros.m4: Likewise.
71373         * m4/lstat.m4: Likewise.
71374         * m4/malloc.m4: Likewise.
71375         * m4/memcmp.m4: Likewise.
71376         * m4/nanosleep.m4: Likewise.
71377         * m4/putenv.m4: Likewise.
71378         * m4/realloc.m4: Likewise.
71379         * m4/regex.m4: Likewise.
71380         * m4/stat.m4: Likewise.
71381         * m4/strftime.m4: Likewise.
71382
71383 2000-07-02  Jim Meyering  <meyering@lucent.com>
71384
71385         * lib/quotearg.c (mbstate_t): Don't define here.
71386
71387 2000-07-02  Jim Meyering  <meyering@lucent.com>
71388
71389         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71390
71391 2000-07-01  Jim Meyering  <meyering@lucent.com>
71392
71393         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71394
71395 2000-07-01  Jim Meyering  <meyering@lucent.com>
71396
71397         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71398         problem.
71399
71400 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71401
71402         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71403         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71404
71405 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71406
71407         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71408         per change in ../m4/ls-mntd-fs.m4.
71409         (read_filesystem_list): Ignore symbolic links.
71410
71411 2000-06-29  Jim Meyering  <meyering@lucent.com>
71412
71413         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71414         for declaration of strcmp.
71415
71416         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71417
71418         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71419         Avoid warning by casting result to `char *' to remove `const'.
71420
71421 2000-06-28  Jim Meyering  <meyering@lucent.com>
71422
71423         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71424         included by quotearg.c, for which we perform this test.  From
71425         Bruno Haible.
71426
71427 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71428
71429         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71430         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71431         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71432
71433 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71434
71435         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71436
71437 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71438
71439         savedir now sets errno on failure and invokes xmalloc to get memory.
71440         Fix a couple of other minor bugs while we're at it.
71441
71442         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71443         (NAMLEN): Remove macro.
71444         (malloc, realloc): Remove decls.
71445         (stpcpy): Likewise.
71446         ("xalloc.h"): Include.
71447         (NAME_SIZE_DEFAULT): New macro.
71448         (savedir): Use xmalloc / xrealloc to allocate memory.
71449         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71450         Skip "" directory entries.
71451         Use strlen to calculate directory entry length, since the old method
71452         is rarely used these days and isn't worth supporting.
71453         Don't use a pointer after freeing it.
71454         Check for integer overflow when calculating allocation size.
71455         Use memcpy to copy entries, instead of stpcpy.
71456         Set errno properly when returning NULL.
71457         Check for readdir error.
71458
71459 2000-06-26  Jim Meyering  <meyering@lucent.com>
71460
71461         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71462
71463 2000-06-25  Jim Meyering  <meyering@lucent.com>
71464
71465         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71466         Linux header bug when _XOPEN_SOURCE is defined to 500.
71467
71468 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71469
71470         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71471         deficiency.
71472
71473 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71474
71475         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71476         Include xalloc.h.
71477         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71478
71479 2000-06-24  Jim Meyering  <meyering@lucent.com>
71480
71481         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71482         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71483         for which strerror does return char*, but which lacks a conveniently
71484         accessible declaration of the function.  If the compile-test says
71485         strerror_r doesn't work, then resort to a `run'-test that works on
71486         BeOS and segfaults on DEC Unix.
71487
71488 2000-06-24  Jim Meyering  <meyering@lucent.com>
71489
71490         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71491
71492 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71493
71494         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71495         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71496
71497 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71498
71499         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71500         (mbrtowc, mbstate_t): Define substitutes if
71501         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71502         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71503         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71504
71505 2000-06-23  Jim Meyering  <meyering@lucent.com>
71506
71507         * m4/afs.m4: Add missing AC_MSG_RESULT.
71508         Reported by Bruno Haible.
71509
71510         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71511         Suggestion from Bruno Haible.
71512
71513 2000-06-23  Jim Meyering  <meyering@lucent.com>
71514
71515         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71516
71517 2000-06-21  Jim Meyering  <meyering@lucent.com>
71518
71519         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71520
71521 2000-06-21  Jim Meyering  <meyering@lucent.com>
71522
71523         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71524         (noinst_HEADERS): Add getstr.h.
71525
71526         * lib/getline.c (getstr): Move into a separate file.
71527         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71528         the following changes: new parameter, delim2; both delim[12]
71529         parameters have type `int', not `char'.  The latter would lose
71530         with 8-bit delimiters.
71531         * lib/getstr.h: New file.
71532
71533 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71534
71535         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71536         than 1024, return a memory chunk of least possible size, instead
71537         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71538         Use free/xmalloc instead of xrealloc to avoid copying for very long
71539         paths.
71540
71541 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71542
71543         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71544         the empty string.
71545
71546 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71547
71548         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71549         address, not strdup.  Include <stdlib.h> and don't declare free().
71550
71551 2000-06-19  Jim Meyering  <meyering@lucent.com>
71552
71553         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71554
71555 2000-06-18  Jim Meyering  <meyering@lucent.com>
71556
71557         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71558
71559         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71560         `checking whether...' message to be consistent with that of the
71561         lstat test.
71562
71563 2000-06-18  Jim Meyering  <meyering@lucent.com>
71564
71565         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71566         Besides, these days every porting target provides a mkdir function.
71567
71568         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71569         needed. (this snippet comes from src/system.h).
71570
71571 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71572
71573         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71574
71575 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71576
71577         * lib/human.c (adjust_value): New function.
71578         (human_readable_inexact): Apply rounding style even when
71579         printing approximate values.
71580
71581 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71582
71583         * lib/human.c (human_readable_inexact): Allow an input block
71584         size that is not a multiple of the output block size, and vice versa.
71585         Reported by Piergiorgio Sartor.
71586
71587 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71588
71589         * lib/getdate.y (get_date): Apply relative times after time
71590         zone indicator, not before.  Reported by Todd A. Jacobs.
71591
71592 2000-06-13  Jim Meyering  <meyering@lucent.com>
71593
71594         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71595
71596         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71597
71598 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71599
71600         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71601
71602 2000-06-12  Jim Meyering  <meyering@lucent.com>
71603
71604         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71605         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71606         optional argument.
71607         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71608         the optional argument, `lib'.
71609
71610 2000-06-08  Jim Meyering  <meyering@lucent.com>
71611
71612         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71613
71614 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71615
71616         Rewrite largefile configuration so that we don't need to run
71617         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71618         AC_CANONICAL_HOST in configure.in -- jmm]
71619
71620         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71621         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71622         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71623         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71624         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71625         All uses changed.
71626         Instead of inspecting the output of getconf, try to compile the
71627         test program without and with the macro definition.
71628         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71629         for getconf.  Instead, check for the needed flags by compiling
71630         test programs.
71631
71632 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71633
71634         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71635
71636 2000-06-04  Jim Meyering  <meyering@lucent.com>
71637
71638         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71639         SunOS 4.1.4 for which gid_t is an unsigned type.
71640
71641 2000-06-03  Jim Meyering  <meyering@lucent.com>
71642
71643         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71644         now that autoconf requires that.
71645
71646         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
71647         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
71648         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
71649
71650 2000-06-03  Jim Meyering  <meyering@lucent.com>
71651
71652         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
71653
71654 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71655
71656         * m4/glibc21.m4: New file.
71657         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
71658
71659 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71660
71661         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
71662         newer, don't install charset.alias.
71663         * lib/config.charset: Change the Linux/glibc rules so they become empty
71664         on glibc-2.1 or newer.
71665
71666 2000-06-02  Jim Meyering  <meyering@lucent.com>
71667
71668         * lib/mountlist.c: Back out last change.  Instead, do this...
71669         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
71670         me_dummy member using the same `ignore'-testing code.
71671         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
71672         fs_type strings.
71673         From Mark D. Roth.
71674
71675 2000-05-29  Jim Meyering  <meyering@lucent.com>
71676
71677         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
71678         mounts with the `ignore' attribute.  Based on a patch from
71679         Mark D. Roth.
71680
71681 2000-05-28  Jim Meyering  <meyering@lucent.com>
71682
71683         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
71684         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71685         * m4/stat.m4: Likewise.
71686         * m4/lstat.m4: Likewise.
71687         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
71688
71689         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
71690         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
71691
71692 2000-05-26  Jim Meyering  <meyering@lucent.com>
71693
71694         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
71695
71696 2000-05-24  Jim Meyering  <meyering@lucent.com>
71697
71698         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
71699         autoconf requires that.
71700         * m4/lib-check.m4: Likewise.
71701         * m4/jm-macros.m4: Likewise.
71702         * m4/strftime.m4: Likewise.
71703
71704         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
71705         AC_CHECK_DECLS, now that autoconf requires that.
71706
71707 2000-05-22  Jim Meyering  <meyering@lucent.com>
71708
71709         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71710         * m4/lstat.m4: Likewise.
71711
71712 2000-05-22  Jim Meyering  <meyering@lucent.com>
71713
71714         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
71715
71716 2000-05-20  Jim Meyering  <meyering@lucent.com>
71717
71718         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
71719         (jm_PREREQ): Use it.
71720
71721 2000-05-18  Jim Meyering  <meyering@lucent.com>
71722
71723         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
71724         back, too, since it may have been modified by allocate_entry.
71725         (hash_delete): Rewrite to use neither the assignment operator
71726         nor the comma operator in an if-expression.
71727
71728 2000-05-15  Paul Eggert  <eggert@twinsun.com>
71729
71730         * lib/closeout.c:
71731         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
71732         Remove; no longer needed.
71733         "quotearg.h": Add include.
71734         (file_name): Do not bother to explicitly initialize to NULL; it's less
71735         efficient on some hosts.
71736         (close_stdout_status): Remove test as to whether stdout was already
71737         closed; it breaks for the case "echo x | sort >&-".
71738         Quote file name colons.
71739         Do not assume that _("write error") lacks format strings.
71740
71741 2000-05-15  Jim Meyering  <meyering@lucent.com>
71742
71743         * lib/version-etc.c (version_etc_copyright): Update the copyright
71744         string used in all --version output.
71745
71746 2000-05-14  Jim Meyering  <meyering@lucent.com>
71747
71748         * lib/closeout.c (close_stdout_set_file_name): New function.
71749         (close_stdout_status): Use new file-scoped global.
71750         Return right away if fstat says the stdout file descriptor is invalid.
71751         * lib/closeout.h (close_stdout_set_file_name): Declare.
71752
71753 2000-05-10  Jim Meyering  <meyering@lucent.com>
71754
71755         * lib/closeout.c [default_exit_status]: New file-scoped variable.
71756         (close_stdout_set_status): New function.
71757         * lib/closeout.h (close_stdout_set_status): Declare.
71758
71759 2000-05-09  Jim Meyering  <meyering@lucent.com>
71760
71761         * m4/gettext.m4: Rename this...
71762         * m4/libintl.m4: ...to this.
71763
71764 2000-05-08  Jim Meyering  <meyering@lucent.com>
71765
71766         * lib/long-options.c: Don't include closeout.h.
71767         (parse_long_options): Don't call close_stdout for --version.
71768
71769 2000-05-06  Paul Eggert  <eggert@twinsun.com>
71770
71771         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
71772         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
71773         2.1.3 bug.  This avoids a clash when files like regex.c define
71774         _GNU_SOURCE.
71775
71776 2000-05-06  Jim Meyering  <meyering@lucent.com>
71777
71778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
71779         (AC_REPLACE_FUNCS): Add strnlen.
71780
71781         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
71782         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
71783
71784         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
71785         AC_SEARCH_LIBS call for nanosleep.
71786         (LIB_NANOSLEEP): Set and AC_SUBST.
71787
71788 2000-05-06  Jim Meyering  <meyering@lucent.com>
71789
71790         * lib/strnlen.c: Undefine __strnlen and strnlen.
71791         [!weak_alias]: Define __strnlen to strnlen.
71792
71793         * lib/atexit.c: New file, from libiberty.
71794
71795 2000-05-06  Jim Meyering  <meyering@lucent.com>
71796
71797         * lib/closeout.c (close_stdout_status): Also check for errors on the
71798         stderr stream.
71799
71800 2000-05-05  Jim Meyering  <meyering@lucent.com>
71801
71802         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
71803         AC_SEARCH_LIBS call for clock_gettime.
71804         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
71805
71806         * m4/search-libs.m4: Update from autoconf.
71807
71808         su doesn't work on Solaris 2.6.
71809         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
71810         <shadow.h>.  Reported by Dragos Harabor.
71811
71812 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71813
71814         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71815         memcpy instead of xmalloc, xrealloc, path_concat.
71816         (locale_charset): Treat empty environment variables as absent.
71817         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71818
71819 2000-05-04  Jim Meyering  <meyering@lucent.com>
71820
71821         * lib/getopt.c: Update from glibc.
71822         * lib/obstack.c: Likewise.
71823         * lib/obstack.h: Likewise.
71824         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71825         file
71826
71827         * lib/regex.h: Likewise.
71828         * lib/strndup.c: Likewise.
71829         * lib/strnlen.c: New file, from glibc.
71830
71831 2000-05-03  Jim Meyering  <meyering@lucent.com>
71832
71833         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71834
71835 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71836
71837         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71838         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71839         compile-time test, rather than inspecting host and OS, to
71840         decide whether to define _LARGEFILE_SOURCE.
71841
71842 2000-05-01  Jim Meyering  <meyering@lucent.com>
71843
71844         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71845
71846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71847         Based on a patch from Bruno Haible.
71848
71849 2000-05-01  Jim Meyering  <meyering@lucent.com>
71850
71851         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71852
71853 2000-04-29  Jim Meyering  <meyering@lucent.com>
71854
71855         * lib/path-concat.c: Declare strdup only if it's not defined.
71856         * lib/canon-host.c: Likewise.
71857
71858 2000-04-28  Jim Meyering  <meyering@lucent.com>
71859
71860         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71861         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71862         is included first, then limits.h is included by locale.h by libintl.h.
71863         From John David Anglin.
71864
71865 2000-04-25  Jim Meyering  <meyering@lucent.com>
71866
71867         * lib/makepath.c (S_IRWXUGO): Define.
71868         (make_path): Always perform explicit chmod if MODE specifies any
71869         of the `special' permission bits.  Prompted by a bug report against
71870         install from Mate Wierdl and Joost van Baal.
71871
71872 2000-04-18  Jim Meyering  <meyering@lucent.com>
71873
71874         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71875         (jm_PREREQ): Use it.
71876
71877 2000-04-18  Jim Meyering  <meyering@lucent.com>
71878
71879         * lib/README: New file.
71880
71881         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71882         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71883
71884 2000-04-17  Jim Meyering  <meyering@lucent.com>
71885
71886         Get it right :-)
71887         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71888         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71889         Suggestion from Akim Demaille.
71890
71891 2000-04-17  Jim Meyering  <meyering@lucent.com>
71892
71893         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71894         the definition of it to rpl_strftime also defined-away the system's
71895         declaration.
71896
71897 2000-04-15  Jim Meyering  <meyering@lucent.com>
71898
71899         Use `C' to denote so-called `contiguous' files, the same way
71900         that tar does.
71901         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71902         (ftypelet): Use S_ISCTG.
71903         From Michael Deutschmann.
71904
71905 2000-04-14  Jim Meyering  <meyering@lucent.com>
71906
71907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71908         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71909         clobbered.
71910
71911 2000-04-14  Jim Meyering  <meyering@lucent.com>
71912
71913         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71914
71915 2000-04-13  Jim Meyering  <meyering@lucent.com>
71916
71917         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71918         AH_VERBATIM to insert required #ifndef into config.h.in.
71919         Suggestion from Akim Demaille.
71920
71921 2000-04-12  Jim Meyering  <meyering@lucent.com>
71922
71923         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71924         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71925         Christian Krackowizer.
71926
71927         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71928         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71929         (AC_SYS_LARGEFILE): Require.
71930         (AM_C_PROTOTYPES): Require.
71931
71932 2000-04-08  Jim Meyering  <meyering@lucent.com>
71933
71934         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71935         names don't conflict.  Reported by Eli Zaretskii.
71936
71937 2000-04-07  Jim Meyering  <meyering@lucent.com>
71938
71939         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71940         sys/types.h, to work around system header problems on AIX 3.2.5.
71941         From Bruno Haible.
71942
71943 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71944
71945         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71946         bug.  Deal with the different error behavior of Irix iconv.
71947
71948 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71949
71950         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71951         IRIX if the installer said otherwise.
71952
71953 2000-04-05  Jim Meyering  <meyering@lucent.com>
71954
71955         Portability tweaks required for ultrix4.3.
71956         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71957         (jm_CHECK_DECLS): Add getutent to the list of functions.
71958         (_jm_DECL_HEADERS): Add utmpx.h.
71959         From John David Anglin.
71960
71961         * m4/strftime.m4: Back out the 2000-04-02 change.
71962         Instead of that change, simply undefine putenv in the test program.
71963
71964 2000-04-05  Jim Meyering  <meyering@lucent.com>
71965
71966         Portability tweaks required for ultrix4.3.
71967         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71968         getutent.
71969         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71970         * lib/canon-host.c: Declare strdup.
71971         * lib/path-concat.c: Likewise.
71972         From John David Anglin.
71973
71974 2000-04-04  Jim Meyering  <meyering@lucent.com>
71975
71976         Be more DOS 8.3-friendly.
71977         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71978         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71979         * lib/Makefile.am: Reflect renaming.
71980         Reported by Eli Zaretskii.
71981
71982         Use a temporary file name that won't clash with `charset.alias'
71983         in the DOS 8.3 name space.
71984         * lib/Makefile.am (charset_tmp): Define.
71985         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71986         (uninstall-local): Likewise.
71987         Reported by Eli Zaretskii.
71988
71989 2000-04-03  Jim Meyering  <meyering@lucent.com>
71990
71991         * m4/gettext.m4: Fix typo in comment.
71992
71993         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71994         textutils/configure.in).  Suggestion from Paul Eggert.
71995         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71996
71997 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71998
71999         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
72000         variable in the shell rather than using putenv, which isn't
72001         portable.  This avoids the configure-time inter-test dependency
72002         on the potentially-renamed putenv function.
72003
72004 2000-03-30  Paul Eggert  <eggert@twinsun.com>
72005
72006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
72007         before checking struct stat.st_blksize, so that
72008         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
72009
72010 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72011
72012         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
72013         since strftime.c uses HAVE_STRFTIME to decide whether to use
72014         the underlying strftime.
72015
72016 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72017
72018         * lib/time/strftime.c (my_strftime): Make sure we call the system
72019         strftime, not ourselves, when invoking the underlying strftime.
72020
72021 2000-03-24  Jim Meyering  <meyering@lucent.com>
72022
72023         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
72024         (charset_alias): Define.
72025         (install-exec-local): Factor out common code.
72026         (uninstall-local): Split lines longer than 80.
72027         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
72028         (SUFFIXES): Define.
72029         (.sed.in.sed): New rule.  Don't redirect directly to $@.
72030         (CLEANFILES): Add ref-add.sed and ref-del.sed.
72031
72032 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
72033
72034         * lib/config.charset: Output a line containing "Packages using this
72035         file".
72036         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
72037         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
72038         ref-del.sed): New rules.
72039
72040 2000-03-17  Jim Meyering  <meyering@lucent.com>
72041
72042         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
72043         Otherwise, include <strings.h>
72044
72045 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
72046
72047         * lib/unicodeio.c (utf8_wctomb): New function.
72048         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
72049         format instead of in UCS-4 with platform dependent endianness.
72050
72051 2000-03-10  Jim Meyering  <meyering@lucent.com>
72052
72053         * m4/lib-check.m4: Look for getspnam in -lgen, too.
72054         From Marco Franzen.
72055
72056 2000-03-07  Paul Eggert  <eggert@twinsun.com>
72057
72058         * lib/savedir.c (savedir): Work even if directory size is
72059         negative; this can happen with some screwy NFS configurations.
72060
72061 2000-03-06  Jim Meyering  <meyering@lucent.com>
72062
72063         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
72064         if it's NULL (because we ran out of memory).  From Bruno Haible.
72065
72066 2000-03-05  Jim Meyering  <meyering@lucent.com>
72067
72068         * lib/localcharset.c ("path-concat.h"): Include.
72069         (get_charset_aliases): Use path_concat instead of ANSI string
72070         concatenation.
72071
72072         * lib/unicodeio.h (PARAMS): Define.
72073         Use it to guard prototype.
72074
72075 2000-03-04  Jim Meyering  <meyering@lucent.com>
72076
72077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
72078         for lib/localcharset.c.
72079
72080 2000-03-04  Jim Meyering  <meyering@lucent.com>
72081
72082         * lib/Makefile.am (install-exec-local): Create $(libdir) before
72083         installing into it.
72084         (uninstall-local): Uncomment this rule so `make distcheck' works
72085         once again.
72086
72087         * lib/unicodeio.c (<errno.h>): Include it.
72088         (errno): Declare if not defined.
72089
72090         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
72091
72092         * lib/config.charset: New version, incorporating remarks from a linux
72093         i18n mailing list.  From Bruno Haible.
72094
72095 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
72096
72097         * m4/codeset.m4: New file.
72098         * m4/iconv.m4: New file.
72099         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
72100
72101 2000-03-03  Jim Meyering  <meyering@lucent.com>
72102
72103         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
72104
72105 2000-03-02  Jim Meyering  <meyering@lucent.com>
72106
72107         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
72108         the messages come out on separate lines.
72109
72110         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
72111         rather than jm_CHECK_DECLARATIONS.
72112         * m4/decl.m4: Remove now-unused file.
72113
72114         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
72115         geteuid.
72116
72117 2000-03-02  Jim Meyering  <meyering@lucent.com>
72118
72119         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
72120
72121 2000-03-01  Jim Meyering  <meyering@lucent.com>
72122
72123         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
72124         * lib/unicodeio.c: Likewise.
72125
72126 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
72127
72128         * lib/config.charset: New file.
72129         * lib/localcharset.c: New file.
72130         * lib/unicodeio.h, lib/unicodeio.c: New files.
72131         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
72132         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
72133         (noinst_HEADERS): Add unicodeio.h.
72134         (all-local, install-exec-local, charset.alias): New targets.
72135
72136 2000-02-28  Paul Eggert  <eggert@twinsun.com>
72137
72138         * lib/quotearg.c (ALERT_CHAR): New macro.
72139         (quotearg_buffer_restyled): Use it.
72140
72141 2000-02-27  Jim Meyering  <meyering@lucent.com>
72142
72143         * m4/check-decl.m4: Add getenv to the list.
72144
72145 2000-02-27  Jim Meyering  <meyering@lucent.com>
72146
72147         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
72148         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
72149
72150         * lib/backupfile.c: Guard inclusion of stdlib.h with
72151         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
72152         Declare malloc if needed.
72153
72154         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
72155         `#ifndef HAVE_DECL..'
72156         now that autoconf always defines the HAVE_DECL_ symbols.
72157         * lib/human.c: Likewise.
72158         * lib/same.c: Likewise.
72159         * lib/strtoumax.c: Likewise.
72160
72161         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
72162         declaration check was not run.
72163         * lib/hash.c: Likewise.
72164         * lib/human.c: Likewise.
72165         * lib/same.c: Likewise.
72166         * lib/strtoumax.c: Likewise.
72167
72168         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
72169         `.', then first look up the entire `.'-containing string as a login
72170         name.
72171
72172 2000-02-23  Jim Meyering  <meyering@lucent.com>
72173
72174         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
72175         in place of my hack.
72176
72177 2000-02-18  Paul Eggert  <eggert@twinsun.com>
72178
72179         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
72180         (textint): New typedef.
72181         (parser_control): Member year changed from int to textint.
72182         All uses changed.
72183         (YYSTYPE): Removed; replaced by %union with int and textint members.
72184         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
72185         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
72186         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
72187         (tSNUMBER, tUNUMBER): Now of type <textintval>.
72188         (date, number, to_year): Use width of number in digits, not its value,
72189         to determine whether it's a 2-digit year, or a 2-digit time.
72190         (yylex): Store number of digits of numeric tokens.
72191         Reported by John Kendall.
72192
72193         (parser_control): Changed from struct parser_control to typedef (for
72194         consistency).  All uses changed.
72195
72196         (tID): Removed; not used.
72197         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
72198
72199 2000-02-14  Paul Eggert  <eggert@twinsun.com>
72200
72201         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
72202         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
72203
72204 2000-02-12  Jim Meyering  <meyering@lucent.com>
72205
72206         * lib/userspec.c (ISDIGIT): Define it.
72207         (isdigit): Remove definition.
72208         (is_number): Use ISDIGIT, not isdigit.
72209         <libintl.h>: Include.
72210         (_ and N_): Define.
72211         (parse_user_spec): Mark translatable strings.
72212
72213 2000-02-10  Jim Meyering  <meyering@lucent.com>
72214
72215         With these changes, nanosleep.[ch] are finally enough like the other
72216         lib/* replacement files to compile on a few more losing systems.
72217
72218         * lib/nanosleep.h: Don't include config.h.
72219         Remove prototype from declaration of nanosleep.
72220         (PARAMS): Remove now-unneeded definition.
72221         * lib/nanosleep.c: #undef nanosleep.
72222         (rpl_nanosleep): Rename from nanosleep.
72223
72224 2000-02-10  Jim Meyering  <meyering@lucent.com>
72225
72226         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
72227         gnu_nanosleep to rpl_nanosleep.
72228
72229 2000-02-09  Jim Meyering  <meyering@lucent.com>
72230
72231         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
72232         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
72233
72234 2000-02-08  Akim Demaille  <akim@epita.fr>
72235
72236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
72237         `[' and `]' and remove uses of `changequote'.
72238         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
72239         (AC_SYS_LARGEFILE): Likewise.
72240         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72241         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
72242         of changequote.
72243         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
72244         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
72245         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
72246         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
72247
72248 2000-02-05  Jim Meyering  <meyering@lucent.com>
72249
72250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
72251         Remove explicit use of AC_HEADER_TIME.  It is required by
72252         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
72253         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
72254         in autoconf whereby the expansion of the latter ended up preceding
72255         the expansion of its prerequisite, AC_HEADER_TIME.
72256         Reported by Volker Borchert.
72257
72258 2000-02-03  Jim Meyering  <meyering@lucent.com>
72259
72260         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
72261
72262 2000-02-03  Jim Meyering  <meyering@lucent.com>
72263
72264         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
72265         rather than with `#if HAVE_UTMPNAME'.
72266
72267 2000-02-02  Jim Meyering  <meyering@lucent.com>
72268
72269         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
72270         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
72271         Reported by Eli Zaretskii.
72272
72273 2000-02-01  Jim Meyering  <meyering@lucent.com>
72274
72275         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
72276
72277 2000-01-31  Jim Meyering  <meyering@lucent.com>
72278
72279         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
72280         functions.  Add the time.h and sys/time.h headers along with the
72281         AC_REQUIRE'ment of AC_HEADER_TIME.
72282
72283 2000-01-31  Jim Meyering  <meyering@lucent.com>
72284
72285         * lib/nanosleep.h (nanosleep): Guard declaration with
72286         `#if ! HAVE_DECL_NANOSLEEP'.
72287         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
72288         the declaration in that vendor's sys/timers.h.
72289         Reported by Christian Krackowizer.
72290
72291         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
72292         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
72293         (ISPRINT): Likewise.
72294         Reported by Tom Tromey.
72295
72296 2000-01-30  Jim Meyering  <meyering@lucent.com>
72297
72298         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
72299
72300         * m4/prereq.m4 (utmp_includes): Define.
72301         Check for ut_user and ut_name members in both struct utmpx
72302         and struct utmp.
72303
72304 2000-01-30  Jim Meyering  <meyering@lucent.com>
72305
72306         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
72307         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
72308         header files where only utmpx.ut_user is declared.
72309
72310         * lib/readutmp.h (UT_USER): Define.
72311
72312 2000-01-29  Jim Meyering  <meyering@lucent.com>
72313
72314         * m4/lib-check.m4: New file containing library-related checks from
72315         fileutils and sh-utils (textutils had none).
72316
72317 2000-01-28  Jim Meyering  <meyering@lucent.com>
72318
72319         * m4/perl.m4: Change format of warning message to look more like that
72320         from the missing script.  Suggestion from François Pinard.
72321
72322 2000-01-25  Jim Meyering  <meyering@lucent.com>
72323
72324         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
72325         well as time.h in the compile check.
72326         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
72327         Fix typo in cross-compiling case: s/yes/no/.
72328
72329 2000-01-23  Jim Meyering  <meyering@lucent.com>
72330
72331         * m4/jm-macros.m4: Move df-related tests here from
72332         fileutils/configure.in
72333
72334         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
72335         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
72336
72337         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
72338         s/space/ac_fsusage_space/.
72339         (jm_FILE_SYSTEM_USAGE): Take two parameters.
72340
72341         * m4/ftruncate.m4: New file (derived from part of
72342         fileutils/configure.in).
72343         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
72344         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
72345
72346         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
72347         AC_SUBST these here, rather than just in sh-util/configure.in, so
72348         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
72349         all the same.
72350         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
72351         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
72352         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
72353         (AC_SUBST(POW_LIBM)): Likewise.
72354         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
72355
72356 2000-01-23  Jim Meyering  <meyering@lucent.com>
72357
72358         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
72359         obstack.c.
72360
72361 2000-01-22  Jim Meyering  <meyering@lucent.com>
72362
72363         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
72364
72365         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
72366
72367         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72368         configure.in
72369         (AC_CHECK_HEADERS): Likewise for sh-utils.
72370         (AC_CHECK_HEADERS): Likewise for textutils.
72371         Merge the three lists of headers.
72372
72373         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72374         from fileutils' configure.in.
72375
72376         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72377         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72378         check-decl.m4.
72379
72380         * m4/check-decl.m4: Use #if rather than #ifdef.
72381         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72382         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72383         (_jm_DECL_HEADERS): Define new function.
72384         (jm_CHECK_DECLARATIONS): Require it.
72385
72386 2000-01-22  Jim Meyering  <meyering@lucent.com>
72387
72388         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72389         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72390         Required for some AIX systems.  Reported by Christian Krackowizer.
72391         [TESTING] (main): New function.
72392
72393         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72394         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72395         letters.
72396
72397         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72398         iswprint.
72399
72400         * lib/strverscmp.c (ISDIGIT): Define.
72401         (strverscmp): Use ISDIGIT, not isdigit.
72402
72403 2000-01-19  Jim Meyering  <meyering@lucent.com>
72404
72405         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72406         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72407         defines `struct timespec' in <sys/time.h>
72408
72409         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72410         Thanks to Akim for explaining.
72411
72412 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72413
72414         * lib/nanosleep.c (nanosleep):
72415         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72416         POSIX.1 doesn't require SA_INTERRUPT and some systems
72417         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72418         it's been part of POSIX.1 since day 1 (in 1988).
72419
72420 2000-01-17  Jim Meyering  <meyering@lucent.com>
72421
72422         * lib/interlock: Remove unused file.  Reported by François Pinard.
72423
72424 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72425
72426         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72427         alert, backslash, formfeed, and vertical tab unnecessarily in
72428         shell quoting style.
72429
72430 2000-01-16  Jim Meyering  <meyering@lucent.com>
72431
72432         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72433         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72434         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72435         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72436
72437 2000-01-16  Jim Meyering  <meyering@lucent.com>
72438
72439         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72440         because the latter didn't work.
72441
72442 2000-01-15  Jim Meyering  <meyering@lucent.com>
72443
72444         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72445         (AC_REPLACE_FUNCS): Add memcpy and memset.
72446         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72447         Add strpbrk.
72448         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72449
72450 2000-01-12  Jim Meyering  <meyering@lucent.com>
72451
72452         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72453         (jm_PREREQ): Use it.
72454         (jm_PREREQ_READUTMP): New macro.
72455         (jm_PREREQ): Use it.
72456
72457 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72458
72459         Quote multibyte characters correctly.
72460         * m4/c-bs-a.m4: New file.
72461         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72462         (jm_PREREQ): Use it.
72463
72464 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72465
72466         * m4/uintmax_t.m4: Port to autoconf 2.13.
72467
72468 2000-01-08  Jim Meyering  <meyering@ascend.com>
72469
72470         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72471         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72472
72473 2000-01-04  Jim Meyering  <meyering@ascend.com>
72474
72475         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72476         jm_STRUCT_DIRENT_D_TYPE.
72477         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72478         jm_STRUCT_DIRENT_D_INO.
72479         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72480         jm_STRUCT_UTIMBUF.
72481         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72482         renamings.
72483         * m4/utime.m4: Likewise.
72484
72485         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72486         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72487
72488 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72489
72490         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72491         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72492
72493 2000-01-02  Jim Meyering  <meyering@ascend.com>
72494
72495         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72496         remember if this is necessary.
72497
72498 1999-12-26  Jim Meyering  <meyering@ascend.com>
72499
72500         * m4/jm-macros.m4: Use it here.
72501         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72502
72503 1999-12-23  Jim Meyering  <meyering@ascend.com>
72504
72505         * m4/jm-macros.m4: Check for clock_gettime (moved from
72506         fileutils/configure.in)
72507         Check for gettimeofday.
72508
72509 1999-12-20  Jim Meyering  <meyering@ascend.com>
72510
72511         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72512         autoconf-2.14a-1999-12-20.
72513
72514 1999-12-19  Jim Meyering  <meyering@ascend.com>
72515
72516         * m4/lstat-slash.m4: New file.
72517         * m4/jm-macros.m4: Use the new macro:
72518         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72519
72520 1999-12-07  Jim Meyering  <meyering@ascend.com>
72521
72522         * m4/perl.m4: Require that File::Compare be available, too.
72523         Too many systems seem to lack it.
72524
72525         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72526         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72527
72528 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72529
72530         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72531         problem with the QNX 4.25 shell, which doesn't propagate exit
72532         status of failed commands inside shell assignments.
72533
72534 1999-11-17  Jim Meyering  <meyering@ascend.com>
72535
72536         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72537
72538 1999-11-07  Jim Meyering  <meyering@ascend.com>
72539
72540         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72541
72542 1999-11-06  Jim Meyering  <meyering@ascend.com>
72543
72544         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72545         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72546
72547 1999-11-05  Jim Meyering  <meyering@ascend.com>
72548
72549         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72550         configure.in of textutils, fileutils, and sh-utils into this one
72551         (shared between those packages) file.
72552         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72553         AC_STRUCT_ST_BLKSIZE.
72554
72555 1999-11-03  Jim Meyering  <meyering@ascend.com>
72556
72557         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72558         of AC_CHECK_TYPE checks includes unistd.h.
72559         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72560         Suggestion from Akim Demaille.
72561
72562 1999-10-30  Jim Meyering  <meyering@ascend.com>
72563
72564         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72565         m4-quoted string.
72566         * m4/ls-mntd-fs.m4: Likewise.
72567         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72568         * m4/jm-winsz1.m4: Likewise.
72569
72570         * m4/const.m4: Remove file, since the fix made it into the experimental
72571         version of autoconf.
72572         * m4/mktime.m4: Likewise.
72573
72574         * m4/check-type.m4: Remove file, now that the latest version of
72575         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72576
72577         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72578         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72579         AC_CHECK_TYPE.
72580
72581 1999-10-04  Jim Meyering  <meyering@ascend.com>
72582
72583         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72584
72585 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72586
72587         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72588         2.95.1 bug with HP-UX 10.20.
72589
72590 1999-09-17  Jim Meyering  <meyering@ascend.com>
72591
72592         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72593         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72594         due to missing strdup (against sh-utils-2.0).
72595
72596 1999-08-29  Jim Meyering  <meyering@ascend.com>
72597
72598         * m4/jm-macros.m4: Require jm_BISON.
72599         * m4/bison.m4: New file.
72600
72601 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72602
72603         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72604         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72605
72606 1999-08-05  Jim Meyering  <meyering@ascend.com>
72607
72608         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72609         to avoid conflicts with `conftest' on 8+3 filesystems.
72610         Suggestion from Eli Zaretskii.
72611
72612 1999-08-04  Jim Meyering  <meyering@ascend.com>
72613
72614         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72615         fileutils and sh-utils (textutils's getline test was inadequate).
72616         (AM_FUNC_GETLINE): Run this test.
72617         (AC_CHECK_FUNCS): Check for getdelim.
72618         Reported by Bob Proulx.
72619
72620 1999-08-02  Jim Meyering  <meyering@ascend.com>
72621
72622         * m4/jm-macros.m4: Add a comment.
72623
72624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72625
72626         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72627         <inttypes.h> defines strtoumax as a macro (and not as a
72628         function).
72629
72630 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72631
72632         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72633         that we can shift, multiply and divide unsigned long long
72634         values; Ultrix cc can't do it.
72635
72636 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72637
72638         * m4/mktime.m4: New file, which is a preview of what should appear
72639         in the next public autoconf release.
72640
72641 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72642
72643         * m4/lfs.m4: Remove this file.
72644         * m4/largefile.m4: New file.  It contains the old contents of
72645         lfs.m4, except that all names with prefix AC_LFS have been
72646         changed to use the prefix AC_SYS_LARGEFILE instead, to be
72647         compatible with future autoconf versions.  Also, some minor m4
72648         quoting problems have been fixed.
72649
72650 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72651
72652         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
72653         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
72654         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
72655         and simplify the shell code.
72656
72657 1999-08-01  Jim Meyering  <meyering@ascend.com>
72658
72659         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
72660         m4.
72661
72662 1999-07-20  Jim Meyering  <meyering@ascend.com>
72663
72664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
72665
72666 1999-07-15  Jim Meyering  <meyering@ascend.com>
72667
72668         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
72669
72670 1999-05-22  Jim Meyering  <meyering@ascend.com>
72671
72672         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
72673
72674 1999-05-20  Jim Meyering  <meyering@ascend.com>
72675
72676         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
72677         Add a colon after each `then' in case $4 is empty.
72678
72679 1999-05-16  Jim Meyering  <meyering@ascend.com>
72680
72681         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
72682
72683 1999-05-10  Jim Meyering  <meyering@ascend.com>
72684
72685         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
72686
72687         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
72688         AC_FUNC_MKTIME.
72689
72690 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
72691
72692         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
72693
72694 1999-05-04  Paul Eggert  <eggert@twinsun.com>
72695
72696         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
72697         not CPPFLAGS, so that linking works correctly in IRIX.
72698
72699 1999-04-30  Paul Eggert  <eggert@twinsun.com>
72700
72701         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
72702
72703 1999-04-20  Paul Eggert  <eggert@twinsun.com>
72704
72705         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
72706         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
72707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
72708         jm_AC_TYPE_UNSIGNED_LONG_LONG.
72709         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
72710
72711         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
72712
72713 1999-04-20  Jim Meyering  <meyering@ascend.com>
72714
72715         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
72716         AC_REPLACE xstroull if necessary.  From Paul Eggert.
72717         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
72718
72719 1999-04-18  Jim Meyering  <meyering@ascend.com>
72720
72721         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
72722         * m4/jm-macros.m4: Use it.
72723
72724 1999-04-06  Jim Meyering  <meyering@ascend.com>
72725
72726         * m4/strftime.m4: Remove test for %f.
72727
72728 1999-03-29  Jim Meyering  <meyering@ascend.com>
72729
72730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
72731         superset of the AC_TYPE_* checks in the textutils, fileutils,
72732         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
72733         AC_TYPE_PID_T.
72734
72735 1999-03-28  Jim Meyering  <meyering@ascend.com>
72736
72737         * m4/jm-macros.m4: Define GNU_PACKAGE here.
72738         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
72739         replaced e.g., in the *.sh files of the sh-utils.
72740
72741 1999-03-20  Jim Meyering  <meyering@ascend.com>
72742
72743         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
72744         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
72745         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
72746
72747 1999-03-19  Jim Meyering  <meyering@ascend.com>
72748
72749         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
72750
72751 1999-03-12  Jim Meyering  <meyering@ascend.com>
72752
72753         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
72754
72755 1999-03-07  Jim Meyering  <meyering@ascend.com>
72756
72757         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
72758         declared.
72759
72760 1999-02-17  Jim Meyering  <meyering@ascend.com>
72761
72762         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
72763         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
72764
72765 1999-02-07  Jim Meyering  <meyering@ascend.com>
72766
72767         * m4/group-member.m4: New file -- extracted from sh-utils'
72768         configure.in.
72769
72770         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
72771         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
72772
72773 1999-02-06  Jim Meyering  <meyering@ascend.com>
72774
72775         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
72776         * m4/fnmatch.m4: Likewise.
72777         * m4/getgroups.m4: Likewise.
72778         * m4/lstat.m4: Likewise.
72779         * m4/malloc.m4: Likewise.
72780         * m4/putenv.m4: Likewise.
72781         * m4/realloc.m4: Likewise.
72782         * m4/regex.m4: Likewise.
72783         * m4/stat.m4: Likewise.
72784         * m4/strftime.m4: Likewise.
72785         Suggestion from Alain Magloire.
72786
72787         * m4/chown.m4: Use `.$ac_objext', not `.o'.
72788         * m4/fnmatch.m4: Likewise.
72789         * m4/getgroups.m4: Likewise.
72790         * m4/getline.m4: Likewise.
72791         * m4/lstat.m4: Likewise.
72792         * m4/malloc.m4: Likewise.
72793         * m4/memcmp.m4: Likewise.
72794         * m4/putenv.m4: Likewise.
72795         * m4/realloc.m4: Likewise.
72796         * m4/regex.m4: Likewise.
72797         * m4/stat.m4: Likewise.
72798         * m4/strftime.m4: Likewise.
72799         Suggestion from Alain Magloire.
72800
72801         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
72802         an argument.
72803
72804         * m4/regex.m4: Add a run-time Test for proper operation of
72805         re_compile_pattern.
72806
72807 1999-01-31  Jim Meyering  <meyering@ascend.com>
72808
72809         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
72810
72811 1999-01-30  Jim Meyering  <meyering@ascend.com>
72812
72813         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72814
72815         * m4/jm-mktime.m4: Make this a wrapper around the official
72816         AM_FUNC_MKTIME rather than my private copy, now that the official one
72817         is up to date.
72818         * m4/mktime.m4: Remove file.
72819
72820         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72821         * m4/uptime.m4: Likewise.
72822         * m4/uintmax_t.m4: Likewise.
72823
72824 1999-01-28  Jim Meyering  <meyering@ascend.com>
72825
72826         * m4/jm-macros.m4: Use jm_AFS.
72827         * m4/afs.m4: New file (from fileutils' configure.in).
72828
72829         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72830         * m4/chown.m4: Likewise.
72831         * m4/d-ino.m4: Likewise.
72832         * m4/d-type.m4: Likewise.
72833         * m4/fnmatch.m4: Likewise.
72834         * m4/getgroups.m4: Likewise.
72835         * m4/gettext.m4: Likewise.
72836         * m4/jm-mktime.m4: Likewise.
72837         * m4/jm-winsz2.m4: Likewise.
72838         * m4/lcmessage.m4: Likewise.
72839         * m4/ls-mntd-fs.m4: Likewise.
72840         * m4/malloc.m4: Likewise.
72841         * m4/memcmp.m4: Likewise.
72842         * m4/putenv.m4: Likewise.
72843         * m4/realloc.m4: Likewise.
72844         * m4/st_mtim.m4: Likewise.
72845         * m4/strftime.m4: Likewise.
72846
72847 1999-01-16  Jim Meyering  <meyering@ascend.com>
72848
72849         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72850         (ARGMATCH_DIE_DECL): Define.
72851
72852 1999-01-12  Jim Meyering  <meyering@ascend.com>
72853
72854         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72855         Reported by Lars Hecking.
72856
72857 1999-01-10  Jim Meyering  <meyering@ascend.com>
72858
72859         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72860         gross kludge.
72861         * m4/inttypes_h.m4: Likewise.
72862         * m4/lstat.m4: Likewise.
72863         * m4/malloc.m4: Likewise.
72864         * m4/readdir.m4: Likewise.
72865         * m4/realloc.m4: Likewise.
72866         * m4/st_dm_mode.m4: Likewise.
72867         * m4/stat.m4: Likewise.
72868         * m4/utimbuf.m4: Likewise.
72869         * m4/utimes.m4: Likewise.
72870
72871         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72872         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72873         comments in config.h.in are meaningful.
72874
72875         * m4/jm-macros.m4: Require autoconf-2.13 here.
72876
72877         * m4/regex.m4: By default, don't use the included regex.c on systems
72878         with glibc 2.  Suggestion from Uli Drepper.
72879
72880 1999-01-02  Jim Meyering  <meyering@ascend.com>
72881
72882         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72883
72884 1998-12-18  Jim Meyering  <meyering@ascend.com>
72885
72886         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72887         Based on a suggestion from Lars Hecking.
72888
72889 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72890
72891         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72892
72893 1998-11-16  Jim Meyering  <meyering@ascend.com>
72894
72895         * m4/lfs.m4: Double-quote the `uname...` expression.
72896
72897 1998-11-14  Jim Meyering  <meyering@ascend.com>
72898
72899         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72900         * m4/stat.m4: Likewise.
72901
72902 1998-11-03  Jim Meyering  <meyering@ascend.com>
72903
72904         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72905         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72906
72907 1998-10-18  Jim Meyering  <meyering@ascend.com>
72908
72909         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72910
72911 1998-10-17  Jim Meyering  <meyering@ascend.com>
72912
72913         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72914         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72915         calls for those previously hard-coded headers.  Instead, take a new
72916         parameter.
72917         (jm_CHECK_DECLARATIONS): Reflect interface change.
72918         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72919         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72920
72921         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72922
72923 1998-10-14  Jim Meyering  <meyering@ascend.com>
72924
72925         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72926         instead of "TZ=America/Vancouver".  From Paul Eggert.
72927
72928 1998-10-11  Jim Meyering  <meyering@ascend.com>
72929
72930         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72931         This adds a test for a recently added compatibility fix for mktime.c.
72932         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72933
72934 1998-09-27  Jim Meyering  <meyering@ascend.com>
72935
72936         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72937
72938         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72939         ../configure.in, including a change from Gordon Matzigkeit to allow
72940         cross-compiling for the Hurd.
72941
72942         * m4/glibc.m4: New file/macro to test for the GNU C Library
72943         versions 1 and 2.  From Gordon Matzigkeit.
72944         Indent.
72945
72946 1998-09-21  Jim Meyering  <meyering@ascend.com>
72947
72948         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72949
72950 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72951
72952         Port nanosecond-resolution times to UnixWare 2.1.2 and
72953         pedantic Solaris 2.6.
72954
72955         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72956         AC_STRUCT_ST_MTIM.
72957         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72958         Generate name of ns member, instead of just 1 or undef.
72959         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72960
72961 1998-08-15  Jim Meyering  <meyering@ascend.com>
72962
72963         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72964         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72965         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72966         instead of jm_TYPE_SSIZE_T.
72967
72968 1998-08-12  Jim Meyering  <meyering@ascend.com>
72969
72970         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72971
72972 1998-08-02  Jim Meyering  <meyering@ascend.com>
72973
72974         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72975         in acconfig.h manually.
72976
72977 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72978
72979         * m4/st_mtim.m4: New file.
72980
72981 1998-07-28  Jim Meyering  <meyering@ascend.com>
72982
72983         * m4/utimes.m4: Undef stat.
72984
72985 1998-07-25  Jim Meyering  <meyering@ascend.com>
72986
72987         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72988         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72989
72990 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72991
72992         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72993         uid and gid actually remain unchanged.
72994
72995 1998-07-07  Jim Meyering  <meyering@ascend.com>
72996
72997         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72998
72999 1998-07-04  Jim Meyering  <meyering@ascend.com>
73000
73001         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
73002         to prove that this macro can be used in packages without regex.c.
73003
73004 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
73005
73006         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
73007         is to be used.
73008
73009 1998-07-03  Jim Meyering  <meyering@ascend.com>
73010
73011         * m4/gettext.m4: Add -lintl if it's found to be necessary.
73012
73013         * m4/gettext.m4: New file -- from gettext-0.10.35.
73014         * m4/lcmessage.m4: Likewise.
73015         * m4/progtest.m4: Likewise.
73016
73017         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
73018         * m4/jm-macros.m4: Require the new macro.
73019
73020 1998-06-29  Jim Meyering  <meyering@ascend.com>
73021
73022         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
73023         for the definition of NGROUPS (used in a system header included
73024         by sys/mount.h).
73025
73026 1998-06-28  Jim Meyering  <meyering@ascend.com>
73027
73028         * m4/ls-mntd-fs.m4: New file.
73029         * m4/fstypename.m4: New file.
73030
73031         * m4/jm-macros.m4: Require the new macro.
73032         * m4/jm-glibc-io.m4: New file.
73033
73034 1998-05-19  Jim Meyering  <meyering@ascend.com>
73035
73036         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
73037         * m4/lchown.m4: New file.
73038
73039         * m4/Makefile.am.in: New file.
73040         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
73041
73042 1998-05-14  Jim Meyering  <meyering@ascend.com>
73043
73044         * m4/Makefile.am (EXTRA_DIST): Add them.
73045         * m4/jm-macros.m4: New file.
73046         * m4/utimbuf.m4: New file.
73047
73048 1998-05-12  Jim Meyering  <meyering@ascend.com>
73049
73050         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
73051
73052 1998-05-11  Jim Meyering  <meyering@ascend.com>
73053
73054         * m4/isc-posix.m4: New file.
73055
73056 1998-05-10  Jim Meyering  <meyering@ascend.com>
73057
73058         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
73059
73060 1998-05-09  Jim Meyering  <meyering@ascend.com>
73061
73062         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
73063         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
73064         with automake.
73065
73066         * m4/ssize_t.m4: New file.
73067         * m4/mktime.m4: Remove file -- the new automake has this now.
73068
73069 1998-04-26  Jim Meyering  <meyering@ascend.com>
73070
73071         * m4/assert.m4: New file.
73072         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
73073
73074 1998-04-05  Jim Meyering  <meyering@ascend.com>
73075
73076         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
73077         (jm_PREREQ): Use it here.
73078
73079 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
73080
73081         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
73082         in acconfig.h.
73083
73084 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
73085
73086         * m4/prereq.m4: New file.
73087         * m4/error.m4: New file.
73088         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
73089
73090 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
73091
73092         * m4/getline.m4: Don't set am_cv_func_working_getline before the
73093         cache-check for the same variable -- that defeated the purpose of
73094         the test; the test program was never run.  This was a problem only
73095         on systems with losing getline functions -- HP-UX 10.20 is one.
73096         Reported by Bjorn Helgaas.
73097
73098 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
73099
73100         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
73101
73102 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
73103
73104         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
73105
73106         * m4/const.m4: New file.  Use an initializer in this declaration
73107         typedef int charset[2]; const charset x;
73108         Reported by Bob Glickstein.
73109
73110 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
73111
73112         * m4/chown.m4: Fix reversed types on -1 args to chown.
73113         From Kaveh Ghazi.
73114
73115 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
73116
73117         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
73118         Add lseek and memchr.
73119
73120         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
73121         T.E.Dickey <dickey@clark.net> said that some older preprocessors
73122         have a 20-character limit on names.
73123
73124 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
73125
73126         * m4/inttypes_h.m4: New file.
73127         * m4/uintmax_t.m4: New file.
73128         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
73129
73130
73131         -----
73132
73133         Local Variables:
73134         coding: utf-8
73135         End:
73136
73137         Copyright (C) 1997-2010 Free Software Foundation, Inc.
73138
73139         Copying and distribution of this file, with or without
73140         modification, are permitted provided the copyright notice
73141         and this notice are preserved.