tests: minor indenting change
[gnulib.git] / ChangeLog
1 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2
3         tests: minor indenting change
4         * tests/init.sh: Sync from coreutils housekeeping patch
5         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6         to keep lines within 80 columns.
7
8 2010-12-28  Jim Meyering  <meyering@redhat.com>
9
10         regex: don't infloop on persistent failing calloc
11         * lib/regexec.c (build_trtable): Return failure indication upon
12         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13         In glibc, this was fixed for version 2.13:
14         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15
16 2010-12-28  Bruno Haible  <bruno@clisp.org>
17             Paul Eggert <eggert@cs.ucla.edu>
18
19         linkat: Make implementation robust against system behaviour variations.
20         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22         way, and to -2 if it needs a generic runtime test.
23         * lib/linkat.c (solaris_optimized_link_immediate,
24         solaris_optimized_link_follow): New functions.
25         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26         (check_same_link): Use it.
27
28 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
29
30         New module 'unigbrk/base'.
31         * modules/unigbrk/base: New file.
32         * lib/unigbrk.in.h: New file.
33
34         New module 'unigbrk/uc-gbrk-prop'.
35         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
36         * modules/unigbrk/uc-gbrk-prop: New file.
37         * lib/unigbrk/gbrkprop.h: New file.
38         * lib/unigbrk/uc-gbrk-prop.c: New file.
39
40         New module 'unigbrk/uc-is-grapheme-break'.
41         * modules/unigbrk/uc-is-grapheme-break: New file.
42         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
43         * lib/unigbrk/uc-is-grapheme-break.c: New file.
44         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
45         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
46         * tests/unigbrk/GraphemeBreakTest.txt: New file.
47
48         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
49
50 2010-12-27  Bruno Haible  <bruno@clisp.org>
51
52         linkat test: Avoid failure on Solaris 11 2010-11.
53         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
54
55 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56
57         utimens: work around glibc rounding bug on more platforms
58         * lib/utimens.c (fdutimens): Work around rounding bug even if
59         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
60         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
61
62 2010-12-27  Bruno Haible  <bruno@clisp.org>
63
64         select tests: Improve comments.
65         * tests/test-select.c (do_select): Add comments.
66
67 2010-12-27  Bruno Haible  <bruno@clisp.org>
68
69         select tests: Safer way of handling timeout.
70         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
71         at every invocation.
72
73 2010-12-27  Bruno Haible  <bruno@clisp.org>
74
75         select tests: Use 'bool' where appropriate.
76         * tests/test-select.c (connect_to_socket): Change argument type to
77         'bool'.
78
79 2010-12-27  Bruno Haible  <bruno@clisp.org>
80
81         select tests: Use existing modules.
82         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
83         (configure.ac): Don't test for unistd.h.
84         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
85         declared in <unistd.h>.
86
87 2010-12-27  Bruno Haible  <bruno@clisp.org>
88
89         mbrtowc: Work around a Solaris 7 bug.
90         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
91         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
92         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
93         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
94         MBRTOWC_NULL_ARG1_BUG.
95         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
96         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
97         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
98         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
99
100 2010-12-27  Jim Meyering  <meyering@redhat.com>
101
102         read-file.c: tweak syntax
103         * lib/read-file.c (fread_file): Remove space after "*" in function
104         definitions.
105
106 2010-12-27  Bruno Haible  <bruno@clisp.org>
107
108         times test: Avoid gcc warnings on OSF/1.
109         * tests/test-times.c (main): Cast printf arguments from clock_t to
110         'long int'.
111
112 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
113
114         utimens: work around glibc rounding bug on older Linux kernels
115         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
116         on Linux with a glibc whose utimes might not work, then work
117         around a longstanding glibc bug involving rounding rather than
118         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
119         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
120
121 2010-12-26  Bruno Haible  <bruno@clisp.org>
122
123         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
124         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
125         _GL_CXXALIAS_SYS.
126         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
127
128 2010-12-26  Bruno Haible  <bruno@clisp.org>
129
130         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
131         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
132         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
133         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
134         looking for the declaration.
135         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
136         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
137         problem.
138         * doc/posix-functions/inet_pton.texi: Likewise.
139
140 2010-12-26  Bruno Haible  <bruno@clisp.org>
141
142         arpa_inet: Use the common idioms with C++ support.
143         * lib/arpa_inet.in.h: Include c++defs.h.
144         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
145         support.
146         * modules/arpa_inet (Depends-on): Add c++defs.
147         (Makefile.am): Substitute the contents of c++defs.h.
148         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
149         * modules/arpa_inet-c++-tests: New file.
150         * tests/test-arpa_inet-c++.cc: New file.
151
152 2010-12-25  Bruno Haible  <bruno@clisp.org>
153
154         Fix more C++ link errors on Solaris 8.
155         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
156         $(LIB_EACCESS).
157         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
158         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
159         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
160         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
161         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
162
163 2010-12-25  Bruno Haible  <bruno@clisp.org>
164
165         printf-posix: Fix link error when a non-GCC compiler is used.
166         * lib/stdio.in.h (printf): When not using GCC, override printf
167         correctly.
168         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
169
170 2010-12-25  Bruno Haible  <bruno@clisp.org>
171
172         strerror_r-posix: Update doc.
173         * doc/posix-functions/strerror_r.texi: Update doc about the return
174         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
175
176 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
177
178         utimens: simplify the logic of the previous change
179         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
180         This should not affect whether the test succeeds or fails.
181
182         utimens: configure better on hosts with NFS clock skew
183         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
184         uses the clock of the local host.  It might use the clock of the
185         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
186         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
187
188 2010-12-25  Bruno Haible  <bruno@clisp.org>
189
190         ptsname test: Avoid failure on Solaris.
191         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
192         open a pseudo-terminal; don't use BSD-style ptys.
193         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
194
195 2010-12-25  Bruno Haible  <bruno@clisp.org>
196
197         ptsname: Avoid ERANGE failure on some systems.
198         * lib/ptsname.c (buffer): Increase size.
199
200 2010-12-25  Bruno Haible  <bruno@clisp.org>
201
202         rename, renameat: Avoid test failures at NFS mounted locations.
203         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
204         so that subsequent mkdir calls succeed.
205
206 2010-12-25  Bruno Haible  <bruno@clisp.org>
207
208         iswblank: Fix C++ link error on Solaris 8.
209         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
210         _GL_FUNCDECL_SYS.
211
212 2010-12-25  Bruno Haible  <bruno@clisp.org>
213
214         unistd: Fix C++ link error on Solaris 8.
215         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
216
217 2010-12-25  Bruno Haible  <bruno@clisp.org>
218
219         readlink doc: Mention an old glibc bug.
220         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
221
222 2010-12-25  Bruno Haible  <bruno@clisp.org>
223
224         fcntl-h: Fix for use of C++ on glibc systems.
225         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
226         also on glibc systems in C++ mode.
227         Reported by Gary V. Vaughan <gary@gnu.org>.
228
229 2010-12-25  Bruno Haible  <bruno@clisp.org>
230
231         roundl-ieee: Make it work on OSF/1 5.1 with cc.
232         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
233
234 2010-12-25  Bruno Haible  <bruno@clisp.org>
235
236         truncl-ieee: Make it work on OSF/1 5.1 with cc.
237         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
238         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
239         test whether truncl works according to ISO C 99 with IEC 60559.
240         * m4/truncl-ieee.m4: New file.
241         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
242         m4/signbit.m4.
243         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
244
245 2010-12-25  Bruno Haible  <bruno@clisp.org>
246
247         ceill-ieee: Make it work on OSF/1 5.1 with cc.
248         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
249         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
250         test whether ceill works according to ISO C 99 with IEC 60559.
251         * m4/ceill-ieee.m4: New file.
252         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
253         m4/signbit.m4.
254         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
255
256 2010-12-25  Bruno Haible  <bruno@clisp.org>
257
258         Ensure all prerequisites of <wchar.h> are included.
259         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
260         before <wchar.h>.
261         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
262         gl_MBRLEN_NUL_RETVAL): Likewise.
263         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
264         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
265         AC_FUNC_MBRTOWC): Likewise.
266         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
267         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
269         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
270         Likewise.
271         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
272         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
273         (gl_WCHAR_H): Improve comments.
274         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
275
276 2010-12-25  Bruno Haible  <bruno@clisp.org>
277
278         strtok_r: Fix C syntax error in autoconf macro.
279         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
280         characters in test program.
281
282 2010-12-24  Bruno Haible  <bruno@clisp.org>
283
284         ceil, trunc, round: Fix gcc warnings.
285         * lib/ceil.c (MIN): Undefine before redefining.
286         * lib/trunc.c (MIN): Likewise.
287         * lib/round.c (MIN): Likewise.
288         Include <math.h> first.
289
290 2010-12-24  Bruno Haible  <bruno@clisp.org>
291
292         select tests: Avoid failures on OSF/1 5.1.
293         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
294         failure of closing the last socket; it may fail with ECONNRESET.
295
296 2010-12-24  Eric Blake  <eblake@redhat.com>
297
298         stdint: avoid HP-UX 10.20 preprocessor bug
299         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
300         than #if.
301         * tests/test-floor2.c (main): Likewise.
302         Reported by Peter O'Gorman.
303
304         pipe: make obsoletion transition easier
305         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
306         * modules/pipe (Files): Include revived file.
307         (Include): Drop reference, to mirror getdate's behavior.
308
309 2010-12-24  Bruno Haible  <bruno@clisp.org>
310
311         sys_socket: Hide mismatch of declarations on NonStop Kernel.
312         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
313         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
314         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
315
316 2010-12-24  Bruno Haible  <bruno@clisp.org>
317
318         gethostname: Ensure declaration on NonStop Kernel.
319         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
320         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
321
322 2010-12-24  Bruno Haible  <bruno@clisp.org>
323
324         sys_select: Ensure all necessary types on NonStop Kernel.
325         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
326         include <sys/time.h>.
327         * doc/posix-headers/sys_select.texi: Mention that it's missing on
328         NonStop Kernel.
329         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
330
331 2010-12-24  Bruno Haible  <bruno@clisp.org>
332
333         sys_select: Remove unneeded include.
334         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
335         have <sys/select.h>.
336
337 2010-12-24  Bruno Haible  <bruno@clisp.org>
338
339         gethostname: Provide a fallback for HOST_NAME_MAX.
340         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
341         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
342         instead.
343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
344
345 2010-12-24  Bruno Haible  <bruno@clisp.org>
346
347         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
348         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
349         (SA_RESTART): Likewise.
350         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
351
352 2010-12-24  Bruno Haible  <bruno@clisp.org>
353
354         signal: Define NSIG.
355         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
356         * tests/test-signal.c (nsig): New variable.
357         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
358
359 2010-12-24  Bruno Haible  <bruno@clisp.org>
360
361         rename, renameat: Avoid test failures on OSF/1 5.1.
362         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
363         alternative error codes.
364         * tests/test-renameat.c (main): Likewise.
365
366 2010-12-24  Bruno Haible  <bruno@clisp.org>
367
368         *printf: Detect large precisions bug on Solaris 10/SPARC.
369         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
370         by Paul Eggert.
371         * tests/test-snprintf-posix.h (test_function): Add this test code here
372         too.
373         * tests/test-sprintf-posix.h (test_function): Likewise.
374         * tests/test-vasnprintf-posix.c (test_function): Likewise.
375         * tests/test-vasprintf-posix.c (test_function): Likewise.
376         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
377         around by gnulib.
378         * doc/posix-functions/printf.texi: Likewise.
379         * doc/posix-functions/snprintf.texi: Likewise.
380         * doc/posix-functions/sprintf.texi: Likewise.
381         * doc/posix-functions/vfprintf.texi: Likewise.
382         * doc/posix-functions/vprintf.texi: Likewise.
383         * doc/posix-functions/vsnprintf.texi: Likewise.
384         * doc/posix-functions/vsprintf.texi: Likewise.
385         * doc/posix-functions/dprintf.texi: Undo last commit.
386         * doc/posix-functions/vdprintf.texi: Likewise.
387
388 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
389
390         tests: port test-fdutimensat.c to Solaris 8
391         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
392         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
393         On Solaris 8, it fails with errno == ENOSYS, because there is no
394         futimens (so it can't use the fd), and there is no lutimens (so it
395         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
396
397         vsnprintf: make more consistent with snprintf; doc fixes
398
399         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
400         the byte count return problem was promoted from the snprintf-posix
401         to the snprintf module.
402         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
403         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
404         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
405         * tests/test-snprintf.c (main): Check the byte count returned.
406         * tests/test-vsnprintf.c (main): Likewise.
407
408 2010-12-23  Eric Blake  <eblake@redhat.com>
409
410         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
411         * modules/sigpipe (License): Relax license.
412
413 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
414
415         doc: document Solaris printf bug with large float precisions
416         * doc/posix-functions/dprintf.texi (dprintf):
417         * doc/posix-functions/fprintf.texi (fprintf):
418         * doc/posix-functions/printf.texi (printf):
419         * doc/posix-functions/snprintf.texi (snprintf):
420         * doc/posix-functions/sprintf.texi (sprintf):
421         * doc/posix-functions/vdprintf.texi (vdprintf):
422         * doc/posix-functions/vfprintf.texi (vfprintf):
423         * doc/posix-functions/vprintf.texi (vprintf):
424         * doc/posix-functions/vsnprintf.texi (vsnprintf):
425         * doc/posix-functions/vsprintf.texi (vsprintf):
426         Mention that these functions mishandle large floating point
427         precisions on Solaris 10.  The same bug is also present in Solaris
428         8, and I assume earlier.  This causes "cd gnulib-tests; make
429         check" to fail on Solaris 8 (and I assume, later) when building
430         the latest coreutils, in test-vasprintf-posix's call to
431         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
432         the wide flavors (e.g., wprintf) so this patch just updates the
433         documentation for the narrow ones.
434
435         test-posixtm.c: add two tests
436         * tests/test-posixtm.c: Add two tests, to highlight the
437         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
438         around this bug; this is merely to document it.
439
440 2010-12-22  Bruno Haible  <bruno@clisp.org>
441
442         getlogin_r: Work around portability problem on OSF/1.
443         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
444         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
445         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
446         test for a truncated result.
447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
448         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
449         * modules/getlogin_r (Depends-on): Add memchr.
450         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
451
452 2010-12-22  Bruno Haible  <bruno@clisp.org>
453
454         ptsname: Avoid test failure on OSF/1 5.1.
455         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
456         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
457         (same_slave): New function.
458         (main): Use it to compare ptsname's result with the expected file name.
459
460 2010-12-22  Bruno Haible  <bruno@clisp.org>
461
462         Port extended stdio modules to HP NonStop Kernel.
463         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
464         macros.
465         * lib/fbufmode.c: Update comments.
466         * lib/fflush.c: Likewise.
467         * lib/fpurge.c: Likewise.
468         * lib/freadable.c: Likewise.
469         * lib/freadahead.c: Likewise.
470         * lib/freading.c: Likewise.
471         * lib/freadptr.c: Likewise.
472         * lib/freadseek.c: Likewise.
473         * lib/fseeko.c: Likewise.
474         * lib/fseterr.c: Likewise.
475         * lib/fwritable.c: Likewise.
476         * lib/fwriting.c: Likewise.
477         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
478
479 2010-12-22  Bruno Haible  <bruno@clisp.org>
480
481         ttyname_r: Work around bug on OSF/1 5.1.
482         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
483         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
484         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
485         present.
486         * lib/ttyname_r.c (ttyname_r): Update comments.
487
488 2010-12-22  Bruno Haible  <bruno@clisp.org>
489
490         round: Implement result sign according to IEEE 754.
491         * lib/round.c (MIN, MINUS_ZERO): New macros.
492         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
493         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
494         * tests/test-round-ieee.c (main): Likewise.
495         * tests/test-roundl-ieee.c (main): Likewise.
496
497         trunc: Implement result sign according to IEEE 754.
498         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
499         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
500         * tests/test-trunc2.c: Include minus-zero.h.
501         (MINUS_ZERO): New macro.
502         (trunc_reference): Keep in sync with lib/trunc.c.
503         * tests/test-truncf2.c: Include minus-zero.h.
504         (MINUS_ZERO): New macro.
505         (truncf_reference): Keep in sync with lib/trunc.c.
506         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
507         * tests/test-trunc-ieee.c (main): Likewise.
508         * tests/test-truncl-ieee.c (main): Likewise.
509
510         ceil: Implement result sign according to IEEE 754.
511         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
512         (FUNC): Return -0.0 for -1 < x < 0.
513         * tests/test-ceil2.c: Include minus-zero.h.
514         (MINUS_ZERO): New macro.
515         (ceil_reference): Keep in sync with lib/ceil.c.
516         * tests/test-ceilf2.c: Include minus-zero.h.
517         (MINUS_ZERO): New macro.
518         (ceilf_reference): Keep in sync with lib/ceil.c.
519         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
520         * tests/test-ceil-ieee.c (main): Likewise.
521         * tests/test-ceill-ieee.c (main): Likewise.
522
523         floor: Implement result sign according to IEEE 754.
524         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
525         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
526         * tests/test-floorf2.c (floorf_reference): Likewise.
527         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
528         * tests/test-floor-ieee.c (main): Likewise.
529         * tests/test-floorl-ieee.c (main): Likewise.
530
531 2010-12-22  Bruno Haible  <bruno@clisp.org>
532
533         getaddrinfo: Update doc.
534         * doc/posix-functions/gai_strerror.texi: Return type is also different
535         on AIX and HP-UX.
536
537 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
538
539         getaddrinfo, inet_ntop: Update doc for Solaris.
540         * doc/posix-functions/gai_strerror.texi: Return type is also an
541         issue on Solaris 9 and earlier.
542         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
543         on Solaris 10 and earlier.
544
545 2010-12-21  Bruno Haible  <bruno@clisp.org>
546
547         New module 'roundl-ieee'.
548         * modules/roundl-ieee: New file.
549         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
550         test whether roundl works according to ISO C 99 with IEC 60559.
551         * m4/roundl-ieee.m4: New file.
552         * modules/roundl-ieee-tests: New file.
553         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
554         * tests/test-roundl.c (main): Remove signbit tests.
555         * modules/roundl-tests (Depends-on): Remove signbit.
556         * doc/posix-functions/roundl.texi: Mention the new module.
557
558 2010-12-21  Bruno Haible  <bruno@clisp.org>
559
560         New module 'truncl-ieee'.
561         * modules/truncl-ieee: New file.
562         * modules/truncl-ieee-tests: New file.
563         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
564         * tests/test-truncl.c (main): Remove signbit tests.
565         * modules/truncl-tests (Depends-on): Remove signbit.
566         * doc/posix-functions/truncl.texi: Mention the new module.
567
568 2010-12-21  Bruno Haible  <bruno@clisp.org>
569
570         New module 'ceill-ieee'.
571         * modules/ceill-ieee: New file.
572         * modules/ceill-ieee-tests: New file.
573         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
574         * tests/test-ceill.c (main): Remove signbit tests.
575         * modules/ceill-tests (Depends-on): Remove signbit.
576         * doc/posix-functions/ceill.texi: Mention the new module.
577
578 2010-12-21  Bruno Haible  <bruno@clisp.org>
579
580         New module 'floorl-ieee'.
581         * modules/floorl-ieee: New file.
582         * modules/floorl-ieee-tests: New file.
583         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
584         * tests/test-floorl.c (main): Remove signbit tests.
585         * modules/floorl-tests (Depends-on): Remove signbit.
586         * doc/posix-functions/floorl.texi: Mention the new module.
587
588 2010-12-21  Bruno Haible  <bruno@clisp.org>
589
590         New module 'round-ieee'.
591         * modules/round-ieee: New file.
592         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
593         whether round works according to ISO C 99 with IEC 60559.
594         * m4/round-ieee.m4: New file.
595         * modules/round-ieee-tests: New file.
596         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
597         * tests/test-round1.c (main): Remove signbit tests.
598         * modules/round-tests (Depends-on): Remove 'signbit'.
599         * doc/posix-functions/round.texi: Mention the new module.
600
601 2010-12-21  Bruno Haible  <bruno@clisp.org>
602
603         New module 'trunc-ieee'.
604         * modules/trunc-ieee: New file.
605         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
606         whether trunc works according to ISO C 99 with IEC 60559.
607         * m4/trunc-ieee.m4: New file.
608         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
610         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
611         * modules/trunc-ieee-tests: New file.
612         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
613         * tests/test-trunc1.c (main): Remove signbit tests.
614         * modules/trunc-tests (Depends-on): Remove 'signbit'.
615         * doc/posix-functions/trunc.texi: Mention the new module.
616
617 2010-12-21  Bruno Haible  <bruno@clisp.org>
618
619         New module 'ceil-ieee'.
620         * modules/ceil-ieee: New file.
621         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
622         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
623         ISO C 99 with IEC 60559.
624         * m4/ceil-ieee.m4: New file.
625         * modules/ceil (Files): Add lib/ceil.c.
626         (Depends-on): Add 'float'.
627         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
628         * lib/math.in.h (ceil): New declaration.
629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
630         REPLACE_CEIL.
631         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
632         * modules/ceil-ieee-tests: New file.
633         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
634         * tests/test-math-c++.cc: Check the signature of 'ceil'.
635         * doc/posix-functions/ceil.texi: Mention the new module.
636
637 2010-12-21  Bruno Haible  <bruno@clisp.org>
638
639         New module 'floor-ieee'.
640         * modules/floor-ieee: New file.
641         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
642         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
643         ISO C 99 with IEC 60559.
644         * m4/floor-ieee.m4: New file.
645         * modules/floor (Files): Add lib/floor.c.
646         (Depends-on): Add 'float'.
647         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
648         * lib/math.in.h (floor): New declaration.
649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
650         REPLACE_FLOOR.
651         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
652         * modules/floor-ieee-tests: New file.
653         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
654         * tests/test-math-c++.cc: Check the signature of 'floor'.
655         * doc/posix-functions/floor.texi: Mention the new module.
656
657 2010-12-21  Bruno Haible  <bruno@clisp.org>
658
659         New module 'roundf-ieee'.
660         * modules/roundf-ieee: New file.
661         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
662         test whether roundf works according to ISO C 99 with IEC 60559.
663         * m4/roundf-ieee.m4: New file.
664         * modules/roundf-ieee-tests: New file.
665         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
666         * tests/test-roundf1.c (main): Remove signbit tests.
667         * modules/roundf-tests (Depends-on): Remove 'signbit'.
668         * doc/posix-functions/roundf.texi: Mention the new module.
669
670 2010-12-21  Bruno Haible  <bruno@clisp.org>
671
672         New module 'truncf-ieee'.
673         * modules/truncf-ieee: New file.
674         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
675         test whether truncf works according to ISO C 99 with IEC 60559.
676         * m4/truncf-ieee.m4: New file.
677         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
679         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
680         * modules/truncf-ieee-tests: New file.
681         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
682         * tests/test-truncf1.c (main): Remove signbit tests.
683         * modules/truncf-tests (Depends-on): Remove 'signbit'.
684         * doc/posix-functions/truncf.texi: Mention the new module.
685
686 2010-12-21  Bruno Haible  <bruno@clisp.org>
687
688         New module 'ceilf-ieee'.
689         * modules/ceilf-ieee: New file.
690         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
691         test whether ceilf works according to ISO C 99 with IEC 60559.
692         * m4/ceilf-ieee.m4: New file.
693         * modules/ceilf-ieee-tests: New file.
694         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
695         * tests/test-ceilf1.c (main): Remove signbit tests.
696         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
697         * doc/posix-functions/ceilf.texi: Mention the new module.
698
699 2010-12-21  Bruno Haible  <bruno@clisp.org>
700
701         New module 'floorf-ieee'.
702         * modules/floorf-ieee: New file.
703         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
704         test whether floorf works according to ISO C 99 with IEC 60559.
705         * m4/floorf-ieee.m4: New file.
706         * modules/floorf-ieee-tests: New file.
707         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
708         * tests/test-floorf1.c (main): Remove signbit tests.
709         * modules/floorf-tests (Depends-on): Remove 'signbit'.
710         * doc/posix-functions/floorf.texi: Mention the new module.
711
712 2010-12-21  Bruno Haible  <bruno@clisp.org>
713
714         Support for minus zero in autoconf macros.
715         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
716         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
717         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
718         * tests/minus-zero.h: Update comments.
719
720 2010-12-21  Bruno Haible  <bruno@clisp.org>
721
722         Tests for module 'ceil'.
723         * modules/ceil-tests: New file.
724         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
725         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
726
727 2010-12-21  Bruno Haible  <bruno@clisp.org>
728
729         Tests for module 'floor'.
730         * modules/floor-tests: New file.
731         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
732         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
733
734 2010-12-21  Bruno Haible  <bruno@clisp.org>
735
736         math: Fix indentation.
737         * lib/math.in.h (floorf): Fix indentation.
738
739 2010-12-21  Bruno Haible  <bruno@clisp.org>
740
741         Fix cross-compilation guesses on Solaris.
742         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
743         not match "solaris2.10".
744         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
745         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
746         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
747
748 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
749
750         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
751         This fixes a problem observed with the latest coreutils snapshot
752         that caused a test to fail on Solaris 8.  src/csplit.c's call
753         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
754         earlier, instead of returning the number of bytes that would have
755         been generated; this causes csplit to incorrectly report memory
756         exhaustion.
757         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
758         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
759         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
760         comments to match.
761         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
762         Fix typo in matching older versions of Solaris: "solaris2.10"
763         is matched by the shell pattern "solaris2.[0-9]*".  This matters
764         only for guessing while cross-compiling.
765         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
766
767 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
768
769         ftoastr: fix comment again
770         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
772         Also, simplify example a bit by using flags = 0.
773
774 2010-12-20  Bruno Haible  <bruno@clisp.org>
775
776         round*, trunc*: Update documentation regarding glibc.
777         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
778         * doc/posix-functions/round.texi: Likewise.
779         * doc/posix-functions/roundl.texi: Likewise.
780         * doc/posix-functions/truncf.texi: Likewise.
781         * doc/posix-functions/trunc.texi: Likewise.
782         * doc/posix-functions/truncl.texi: Likewise.
783
784 2010-12-20  Bruno Haible  <bruno@clisp.org>
785
786         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
787         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
788         * doc/posix-functions/round.texi: Likewise.
789         * doc/posix-functions/roundl.texi: Likewise.
790
791 2010-12-20  Bruno Haible  <bruno@clisp.org>
792
793         ttyname_r: Add missing declaration on HP-UX 11.
794         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
795         HAVE_TTYNAME_R.
796         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
797         declared. Set HAVE_TTYNAME_R always.
798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
799         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
800         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
801         HAVE_TTYNAME_R.
802         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
803
804 2010-12-20  Bruno Haible  <bruno@clisp.org>
805
806         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
807         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
808         * doc/posix-functions/getlogin_r.texi: Likewise.
809         * tests/test-getlogin.c: Include <errno.h>.
810         (main): Avoid test failure on HP-UX 11.11.
811         * tests/test-getlogin_r.c (main): Likewise.
812
813 2010-12-20  Bruno Haible  <bruno@clisp.org>
814
815         getlogin_r: Add missing declaration on HP-UX 11.
816         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
817         declared also when it exists as a function.
818         * doc/posix-functions/getlogin_r.texi: Document this workaround.
819
820 2010-12-20  Bruno Haible  <bruno@clisp.org>
821
822         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
823         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
824         through wcrtomb.
825
826 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
827
828         ftoastr: fix comment
829         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
831
832 2010-12-19  Bruno Haible  <bruno@clisp.org>
833
834         isnan: Ensure it is a macro.
835         * lib/math.in.h (isnan): Define as a macro if not already a macro.
836         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
837         Solaris.
838
839 2010-12-19  Bruno Haible  <bruno@clisp.org>
840
841         ldexpl test: Fix link error on OSF/1 5.1.
842         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
843
844 2010-12-19  Bruno Haible  <bruno@clisp.org>
845
846         wctype: Make it work in C++ mode on OSF/1 5.1.
847         * lib/wctype.in.h (iswblank): Declare but not define here.
848         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
849         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
850         * modules/wctype (Files): Add lib/iswblank.c.
851
852 2010-12-19  Bruno Haible  <bruno@clisp.org>
853
854         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
855         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
856         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
857
858 2010-12-19  Bruno Haible  <bruno@clisp.org>
859
860         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
861         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
862         _POSIX_PII_SOCKET.
863         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
864         * doc/posix-functions/recvfrom.texi: Likewise.
865         * doc/posix-functions/send.texi: Likewise.
866         * doc/posix-functions/sendto.texi: Likewise.
867
868 2010-12-19  Bruno Haible  <bruno@clisp.org>
869
870         tcgetsid: Add missing declaration on OSF/1 5.1.
871         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
872         HAVE_TCGETSID.
873         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
874         Don't set HAVE_TCGETSID.
875         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
876         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
877         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
878         HAVE_TCGETSID.
879         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
880
881 2010-12-19  Bruno Haible  <bruno@clisp.org>
882
883         stdio: Fix problem with popen() declaration on OSF/1 5.1.
884         * lib/stdio.in.h: During the include_next statement, let recursive
885         includes of this file include only the system header file.
886
887 2010-12-19  Bruno Haible  <bruno@clisp.org>
888
889         iconv_open: Fix regression from 2010-12-04.
890         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
891         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
892
893 2010-12-19  Bruno Haible  <bruno@clisp.org>
894
895         stdbool test: Avoid a gcc warning.
896         * tests/test-stdbool.c (main): Fail if e1 is false.
897         Reported by Jim Meyering.
898
899 2010-12-19  Jim Meyering  <meyering@redhat.com>
900
901         setenv: restore to working order
902         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
903         mistakenly removed.
904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
905         HAVE_SETENV.
906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
907         HAVE_SETENV.
908
909 2010-12-19  Bruno Haible  <bruno@clisp.org>
910
911         Document some different function declarations on OSF/1 5.1.
912         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
913         * doc/posix-functions/inet_ntop.texi: Likewise.
914         * doc/posix-functions/gethostname.texi: Likewise.
915         * lib/unistd.in.h (gethostname): Update comment.
916
917 2010-12-19  Bruno Haible  <bruno@clisp.org>
918
919         doc: Mention vasprintf-posix module.
920         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
921         the 'vasprintf-posix' module.
922         * doc/glibc-functions/vasprintf.texi: Likewise.
923
924 2010-12-19  Bruno Haible  <bruno@clisp.org>
925
926         unsetenv: Add missing declaration on OSF/1 5.1.
927         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
928         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
929         Don't set HAVE_UNSETENV. In the test program, set _BSD.
930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
931         not HAVE_UNSETENV.
932         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
933         HAVE_UNSETENV.
934         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
935
936 2010-12-19  Bruno Haible  <bruno@clisp.org>
937
938         setenv: Add missing declaration on OSF/1 5.1.
939         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
940         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
941         declared. Don't set HAVE_SETENV.
942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
943         not HAVE_SETENV.
944         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
945         HAVE_SETENV.
946         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
947
948 2010-12-19  Bruno Haible  <bruno@clisp.org>
949
950         nl_langinfo tests: Avoid gcc warning.
951         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
952
953 2010-12-19  Bruno Haible  <bruno@clisp.org>
954
955         mknod: Avoid error in C++ mode on OSF/1 with GCC.
956         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
957         _GL_CXXALIAS_SYS.
958
959 2010-12-19  Bruno Haible  <bruno@clisp.org>
960
961         stdbool: Relax test.
962         * tests/test-stdbool.c (e): Don't require that casts from a variable's
963         address to 'bool' work in static initializer, for compilers other than
964         GCC.
965
966 2010-12-19  Bruno Haible  <bruno@clisp.org>
967
968         ftello: Add missing declaration on OSF/1 5.1.
969         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
970         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
972         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
973         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
974
975 2010-12-19  Bruno Haible  <bruno@clisp.org>
976
977         fseeko: Add missing declaration on OSF/1 5.1.
978         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
979         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
981         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
982         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
983
984 2010-12-19  Bruno Haible  <bruno@clisp.org>
985
986         fchdir: Add missing declaration on OSF/1 5.1.
987         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
990         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
991         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
992
993 2010-12-19  Bruno Haible  <bruno@clisp.org>
994
995         relocatable-prog-wrapper: Separate from relocatable-prog.
996         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
997         uninstall-relocwrapper rule here.
998         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
999         Reported by Ian Beckwith <ianb@erislabs.net>.
1000
1001 2010-12-19  Bruno Haible  <bruno@clisp.org>
1002
1003         unistr/u8-mbsnlen: Add missing dependency.
1004         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
1005         Reported by Ian Beckwith <ianb@erislabs.net>.
1006
1007 2010-12-19  Bruno Haible  <bruno@clisp.org>
1008
1009         iconv: Make it possible again to use this module without 'iconv-h'.
1010         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
1011         if it is not defined.
1012         Reported by Ian Beckwith <ianb@erislabs.net>.
1013
1014 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         acl: port to Solaris 8 when copying from tmpfs to ufs
1017         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
1018         error number.  Problem observed on Solaris 8 with latest
1019         coreutils, with "mv A B", where A is on a tmpfs file system and B
1020         is on a ufs file system.  This caused coreutils' mv/part-symlink
1021         test to fail.
1022
1023         tests: set fail=0 at start
1024         * tests/init.sh (setup_): Move fail=0 initialization here ...
1025         (mktempd_): ... from here, so that tests can rely on fail being
1026         set to 0 initially.  This fixes a problem in coreutils; see:
1027         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
1028
1029 2010-12-18  Bruno Haible  <bruno@clisp.org>
1030
1031         memmem-simple: Stylistic changes.
1032         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
1033         Fix preprocessor directive indentation.
1034
1035 2010-12-15  Pádraig Brady <P@draigBrady.com>
1036
1037         memmem, memmem-simple: reorganize and expand empty needle check
1038         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
1039         functional checks to memmem-simple so that one has a fully functional
1040         memmem by using just this module.
1041         Restrict the performance only check to the memmem module.
1042         Also expand the empty needle check to ensure the correct
1043         pointer is returned, not just a non NULL pointer.
1044         * doc/glibc-functions/memmem.texi: Rearrange the portability
1045         documentation to correlate with the rearranged checks.
1046         Clarify exactly how the memmem and memmem-simple modules
1047         relate to each other.
1048
1049 2010-12-15  Pádraig Brady <P@draigBrady.com>
1050             Bruno Haible  <bruno@clisp.org>
1051
1052         Improve cross-compilation guesses for uClibc.
1053         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
1054         that uClibc does not have the glibc bug.
1055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
1056         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
1057
1058 2010-12-14  Eric Blake  <eblake@redhat.com>
1059
1060         configmake: provide fallbacks for oldest supported autotools
1061         * m4/configmake.m4: New file.
1062         * modules/configmake (Files): Ship it.
1063         (configure.ac): Use it to guarantee fallbacks.
1064
1065 2010-12-13  Pádraig Brady <P@draigBrady.com>
1066
1067         read-file: Improve handling of large files
1068         * lib/read-file.c (fread_file): Minimize realloc()s
1069         for regular files, and better manage sizes around SIZE_MAX.
1070
1071 2010-12-13  Eric Blake  <eblake@redhat.com>
1072
1073         cloexec, fcntl: relax license
1074         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
1075         consent from all contributors.
1076         * modules/fcntl (License): Likewise.
1077
1078 2010-12-10  Bruno Haible  <bruno@clisp.org>
1079
1080         Tests for module 'pipe-posix'.
1081         * modules/pipe-posix-tests: New file.
1082         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
1083
1084 2010-12-10  Bruno Haible  <bruno@clisp.org>
1085
1086         pipe-posix: Make it work in C++ mode.
1087         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
1088         (pipe): Use common idiom, not a macro definition.
1089         * lib/pipe.c: New file.
1090         * m4/pipe.m4: New file.
1091         * modules/pipe-posix (Description): Enhance.
1092         (Files): Add lib/pipe.c, m4/pipe.m4.
1093         (configure.ac): Invoke gl_FUNC_PIPE.
1094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
1095         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
1096         * tests/test-unistd-c++.cc: Check the signature of pipe.
1097
1098 2010-12-10  Bruno Haible  <bruno@clisp.org>
1099
1100         Rename module 'pipe' to 'spawn-pipe'.
1101         * modules/spawn-pipe: New file, renamed from modules/pipe.
1102         (Files, configure.ac, Makefile.am): Update.
1103         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
1104         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
1105         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
1106         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
1107         "spawn-pipe.h" instead of "pipe.h".
1108         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
1109         to gl_SPAWN_PIPE.
1110         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
1111         (Files, Makefile.am): Update.
1112         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
1113         Update.
1114         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
1115         Include "spawn-pipe.h" instead of "pipe.h".
1116         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
1117         * lib/javacomp.c: Likewise.
1118         * lib/javaversion.c: Likewise.
1119         * lib/pipe-filter-gi.c: Likewise.
1120         * lib/pipe-filter-ii.c: Likewise.
1121         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
1122         * modules/javacomp (Depends-on): Likewise.
1123         * modules/javaversion (Depends-on): Likewise.
1124         * modules/pipe-filter-gi (Depends-on): Likewise.
1125         * modules/pipe-filter-ii (Depends-on): Likewise.
1126         * MODULES.html.sh (Executing programs): Update.
1127         * NEWS: Mention the change.
1128
1129 2010-12-10  Eric Blake  <eblake@redhat.com>
1130
1131         pipe-posix: new module
1132         * modules/pipe-posix: New file.
1133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
1134         (gl_UNISTD_H): Check for declaration.
1135         * modules/unistd (Makefile.am): Substitute it.
1136         * lib/unistd.in.h (pipe): Provide it for mingw.
1137         * doc/posix-functions/pipe.texi (pipe): Update documentation.
1138         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
1139
1140 2010-12-07  Bruno Haible  <bruno@clisp.org>
1141
1142         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
1143         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
1144         u8_strcmp_gnu.
1145         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
1146
1147 2010-12-06  Bruno Haible  <bruno@clisp.org>
1148
1149         Update internal documentation.
1150         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
1151
1152 2010-12-04  Bruno Haible  <bruno@clisp.org>
1153
1154         Put more information about failed tests into the test return codes.
1155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
1156         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
1157         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
1158         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1159         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1161         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1162         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1163         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
1164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1165         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
1166         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1167         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1168         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1169         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
1170         returns a bit mask.
1171         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
1172         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
1173         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
1174         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
1175         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1179         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
1181         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1182         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1183         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1184         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1185         * m4/link.m4 (gl_FUNC_LINK): Likewise.
1186         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1187         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
1188         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
1189         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1190         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
1191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1192         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
1193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
1194         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1195         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1196         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1197         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
1198         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1199         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1200         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
1201         gl_PRINTF_PRECISION): Likewise.
1202         * m4/regex.m4 (gl_REGEX): Likewise.
1203         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1204         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1205         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
1206         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1207         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1209         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1210         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
1211         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1212         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1213         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1214         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1215         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1216         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1217         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1218         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1219         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1220         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1222         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
1223         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
1224         enumerated value.
1225         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
1226
1227 2010-12-04  Bruno Haible  <bruno@clisp.org>
1228
1229         Update for Solaris 11 2010-11.
1230         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
1231         Express, released in November 2010.
1232
1233 2010-12-04  Bruno Haible  <bruno@clisp.org>
1234
1235         nproc: Relax license.
1236         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
1237         and Paul Eggert.
1238         Requested by Ludovic Courtès <ludo@gnu.org>.
1239
1240 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1241
1242         utimecmp: fine-grained src to nearby coarse-grained dest
1243
1244         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
1245         and the source is on a file system with higher-resolution time
1246         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
1247         not work, and the time stamps are close together, the algorithm to
1248         determine the exact resolution from the read-back mtime was buggy:
1249         it had a "!=" where it should have had an "==".  This bug has been
1250         in the code ever since it was introduced to gnulib.
1251         Problem reported by Dan Jacobson in
1252         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
1253
1254 2010-11-30  Bruno Haible  <bruno@clisp.org>
1255
1256         strerror_r-posix: Fix autoconf test.
1257         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
1258
1259 2010-11-28  Bruno Haible  <bruno@clisp.org>
1260             Paul Eggert  <eggert@cs.ucla.edu>
1261
1262         Tests for module 'getdomainname'.
1263         * modules/getdomainname-tests: New file.
1264         * tests/test-getdomainname.c: New file, based on
1265         tests/test-gethostname.c.
1266
1267 2010-11-28  Bruno Haible  <bruno@clisp.org>
1268             Paul Eggert  <eggert@cs.ucla.edu>
1269
1270         getdomainname: Use the system function when possible.
1271         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
1272         (getdomainname): Replace if needed. Provide the declaration if it is
1273         missing. Don't use _GL_CXXALIAS_SYS_CAST.
1274         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
1275         (getdomainname): When the system has getdomainname, call the system
1276         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
1277         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1278         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
1279         found in libnsl. Look for the declaration also in <netdb.h>. Replace
1280         the function if its second argument is of type 'int' or if it is found
1281         in libnsl.
1282         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
1283         <sys/systeminfo.h> and sysinfo().
1284         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
1285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1286         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
1287         HAVE_GETDOMAINNAME.
1288         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
1289         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
1290         * doc/glibc-functions/getdomainname.texi: Document the problems with
1291         the getdomainname declaration.
1292
1293 2010-11-28  Bruno Haible  <bruno@clisp.org>
1294
1295         sys_socket: Ensure ss_family field on AIX.
1296         * lib/sys_socket.in.h (ss_family): New macro definition.
1297         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
1298         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
1299         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1300         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1301         * modules/sys_socket (Makefile.am): Substitute
1302         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1303         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
1304
1305 2010-11-27  Bruno Haible  <bruno@clisp.org>
1306
1307         readline: Improve configure output.
1308         * m4/readline.m4 (gl_FUNC_READLINE): Make the
1309         "checking for readline..." result understandable.
1310
1311 2010-11-27  Bruno Haible  <bruno@clisp.org>
1312
1313         *printf-posix: Detect a bug on Solaris 10/x86.
1314         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
1315         for floating-point output.
1316         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
1317         directive.
1318         * tests/test-snprintf-posix.h (test_function): Likewise.
1319         * tests/test-sprintf-posix.h (test_function): Likewise.
1320         * tests/test-vasprintf-posix.c (test_function): Likewise.
1321         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
1322         * doc/posix-functions/printf.texi: Likewise.
1323         * doc/posix-functions/snprintf.texi: Likewise.
1324         * doc/posix-functions/sprintf.texi: Likewise.
1325         * doc/posix-functions/vfprintf.texi: Likewise.
1326         * doc/posix-functions/vprintf.texi: Likewise.
1327         * doc/posix-functions/vsnprintf.texi: Likewise.
1328         * doc/posix-functions/vsprintf.texi: Likewise.
1329         * doc/glibc-functions/obstack_printf.texi: Likewise.
1330         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1331
1332 2010-11-27  Bruno Haible  <bruno@clisp.org>
1333
1334         Fix link error when module libunistring-optional is in use.
1335         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
1336         * modules/striconveha-tests (Makefile.am): Likewise.
1337
1338 2010-11-27  Bruno Haible  <bruno@clisp.org>
1339
1340         regex: Mention link dependencies.
1341         * modules/regex (Link): New section.
1342         * modules/rpmatch (Link): Likewise.
1343         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
1344
1345 2010-11-27  Bruno Haible  <bruno@clisp.org>
1346
1347         ftoastr: Fix compilation error on Solaris.
1348         * lib/ftoastr.c: Include <config.h>.
1349
1350 2010-11-27  Bruno Haible  <bruno@clisp.org>
1351
1352         getloadavg: Update documentation.
1353         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
1354
1355 2010-11-27  Bruno Haible  <bruno@clisp.org>
1356
1357         sys_socket: Fix test whether the functions are declared.
1358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
1359         not <sys/select.h>.
1360
1361 2010-11-27  Bruno Haible  <bruno@clisp.org>
1362
1363         getpass: Make sure to get system declaration on some platforms.
1364         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
1365         gl_USE_SYSTEM_EXTENSIONS.
1366         * modules/getpass (Depends-on): Add extensions.
1367
1368 2010-11-26  Bruno Haible  <bruno@clisp.org>
1369
1370         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
1371         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
1372         'iconv' module is present.
1373         (ICONV_CONST): New macro.
1374         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
1375         ICONV_CONST.
1376         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
1377         set ICONV_CONST.
1378         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
1379         here.
1380         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
1381         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
1382         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
1383         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
1384         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
1385         present.
1386
1387 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1388
1389         ftoastr: comment fix
1390         * lib/ftoastr.c: "little" -> "little or no" in comment
1391
1392 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1393
1394         stdint: port to GCC 4.3 + OSX + Octave
1395         On this platform, stdint.h is buggy and defines int64_t to long
1396         long int.  The replacement defined it to long int, causing
1397         problems with C++ style name mangling.  Instead, trust the system
1398         definition if INT64_MAX is defined, and likewise for the unsigned
1399         variant.   Problem reported by Jarno Rajahalme in
1400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1401         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1402         and don't mess with int64_t and INT64_MAX in this case.
1403         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1404
1405 2010-11-24  Bruno Haible  <bruno@clisp.org>
1406
1407         doc: Corrections regarding MacOS X 10.4 and 10.5.
1408         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1409         MacOS X.
1410         Reported by Simon Josefsson.
1411
1412 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1413
1414         Uninstall ".bin" files installed by relocwrapper.
1415         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1416         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1417         unless it is already there.
1418
1419 2010-11-21  Bruno Haible  <bruno@clisp.org>
1420
1421         Update for NetBSD 5.0.
1422         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1423         NetBSD; the test fails on NetBSD 5.0.
1424         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1425         about NetBSD.
1426
1427 2010-11-21  Bruno Haible  <bruno@clisp.org>
1428
1429         Update for HP-UX 11.23 and HP-UX 11.31.
1430         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1431         HP-UX.
1432
1433 2010-11-21  Bruno Haible  <bruno@clisp.org>
1434
1435         Update for MacOS X 10.5.
1436         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1437         MacOS X; the test fails on MacOS X 10.5.8.
1438         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1439         about MacOS X.
1440
1441 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1442
1443         bootstrap: add bootstrap_sync option.
1444         See discussion at
1445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1447         * build-aux/bootstrap: Accept --bootstrap-sync to update
1448         bootstrap if it is not identical to the local gnulib's
1449         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1450         enable this by default.  Accept --no-bootstrap-sync to disable
1451         it.
1452
1453 2010-11-20  Bruno Haible  <bruno@clisp.org>
1454
1455         Ensure that <features.h> is included before __GLIBC__ is tested.
1456         * lib/printf-parse.h: Include <features.h>.
1457         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1458         Reported by Mike Frysinger <vapier@gentoo.org>.
1459
1460         Ensure that <features.h> is included before __GLIBC__ is tested.
1461         * lib/wchar.in.h: Include <features.h>.
1462         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1463         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1464         Reported by Mike Frysinger <vapier@gentoo.org>.
1465
1466         Ensure that <features.h> is included before __GLIBC__ is tested.
1467         * lib/arpa_inet.in.h: Include <features.h>.
1468         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1469         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1470         Reported by Mike Frysinger <vapier@gentoo.org>.
1471
1472         Ensure that <features.h> is included before __GLIBC__ is tested.
1473         * build-aux/link-warning.h: Include <features.h>.
1474         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1475         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1476         Reported by Mike Frysinger <vapier@gentoo.org>.
1477
1478         Ensure that <features.h> is included before __GLIBC__ is tested.
1479         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1480         Reported by Mike Frysinger <vapier@gentoo.org>.
1481
1482 2010-11-20  Bruno Haible  <bruno@clisp.org>
1483
1484         memmem: Fix autoconf test.
1485         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1486
1487 2010-11-20  Bruno Haible  <bruno@clisp.org>
1488
1489         Port to uClibc.
1490         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1491         * lib/fcntl.in.h: Likewise.
1492         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1493         * lib/mbrtowc.c (mbrtowc): Likewise.
1494         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1495         * lib/strerror_r.c: Likewise.
1496         * lib/unistr/u8-strnlen.c: Likewise.
1497         * lib/vasnprintf.c (decimal_point_char): Likewise.
1498         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1499         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1500         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1501         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1502         * tests/test-sigaction.c (handler, main): Likewise.
1503         * lib/freading.h: Treat uClibc like a non-glibc platform.
1504         * lib/freading.c: Likewise.
1505         * lib/gettext.h: Likewise.
1506         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1507         Likewise.
1508         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1509         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1510         * lib/propername.c (proper_name_utf8): Likewise.
1511         * lib/spawn.in.h: Likewise.
1512         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1513         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1514         mem_cd_iconveh_internal): Likewise.
1515         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1516         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1517         strstr, strcasestr): Likewise.
1518         * lib/unicodeio.c (unicode_to_mb): Likewise.
1519         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1520         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1521         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1522         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1523         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1524         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1525         * lib/unistr/u8-stpncpy.c: Likewise.
1526         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1527         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1528         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1529         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1530         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1531         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1532         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1535         Likewise.
1536         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1537         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1538         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1540         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1541         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1542         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1543         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1544         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1545         * tests/test-striconveha.c (main): Likewise.
1546         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1547         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1548         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1549         * doc/posix-functions/getline.texi: Likewise.
1550         Reported by Mike Frysinger <vapier@gentoo.org>.
1551
1552 2010-11-20  Bruno Haible  <bruno@clisp.org>
1553
1554         nproc: Fix condition.
1555         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1556         HAVE_PTHREAD_AFFINITY_NP.
1557
1558 2010-11-20  Bruno Haible  <bruno@clisp.org>
1559
1560         Fix a comment.
1561         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1562
1563 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1564
1565         ftoastr: don't assume snprintf
1566         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1567         Implement a subset of snprintf here, by using sprintf safely.
1568         * modules/ftoastr (Depends-on): Remove snprintf.
1569
1570 2010-11-19  Jim Meyering  <meyering@redhat.com>
1571
1572         test-rename.h: fix compilation failure
1573         * tests/test-rename.h (test_rename): Add omitted "}".
1574
1575 2010-11-17  Jim Meyering  <meyering@redhat.com>
1576
1577         maint.mk: add a URL discussing the no-@acronym policy
1578         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1579
1580 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1581
1582         ftoastr: depend on snprintf, improve comments
1583         * lib/ftoastr.c: Also mention Loitsch's draft.
1584         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1585         needed in the current implementation, but it might simplify
1586         speeding up the code later.
1587         * modules/ftoastr: Depend on snprintf; this improves portability.
1588         Suggested by Bruno Haible in the same email.
1589
1590         ftoastr: port to hosts lacking strtof and strtold
1591         Problem reported by Bruno Haible in
1592         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1593         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1594         environment and strtold (and presumably strtof) are not available.
1595         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1596         (configure.ac): Require gl_C99_STRTOLD.
1597
1598 2010-11-18  Bruno Haible  <bruno@clisp.org>
1599
1600         c-strtold: Avoid link error on AIX 7.
1601         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1602         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1603         (gl_C_STRTOLD): Test whether strtold_l exists.
1604         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1605
1606 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1607
1608         intprops: new macro INT_BITS_STRLEN_BOUND
1609         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1610         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1611         not exposed.  Also, it uses a slightly tighter bound than before;
1612         though this makes no practical difference, we might as well be as
1613         tight as we easily can.
1614
1615         ftoastr: new module, for lossless conversion of floats to short strings
1616         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1617         * modules/ftoastr: New files.
1618
1619 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1620
1621         bootstrap: port to Solaris sed
1622         * build-aux/bootstrap (get_version): Port to Solaris sed.
1623         See Ralf Wildenhues's note in
1624         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1625
1626 2010-11-14  Jim Meyering  <meyering@redhat.com>
1627
1628         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1629         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1630         and move definition closer to sole use.
1631
1632 2010-11-13  Jim Meyering  <meyering@redhat.com>
1633
1634         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1635         Now we require at least autoconf-2.59, which means the work-around
1636         is no longer needed.
1637         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1638         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1639         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1640         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1641         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1642
1643 2010-11-13  Bruno Haible  <bruno@clisp.org>
1644
1645         rename, renameat: Avoid test failures at NFS mounted locations.
1646         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1647         functions.
1648         (test_rename): Use assert_nonexistent.
1649         * tests/test-rename.c: Include <dirent.h>.
1650         * tests/test-renameat.c: Likewise.
1651         Reported by Gary V. Vaughan <gary@gnu.org>.
1652
1653         rename, renameat: Document Linux bug with NFS
1654         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1655         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1656         * doc/posix-functions/renameat.texi: Likewise.
1657         Suggested by Eric Blake.
1658
1659 2010-11-13  Bruno Haible  <bruno@clisp.org>
1660
1661         rename test: Add comments.
1662         * tests/test-rename.h (test_rename): Add structure and comments.
1663
1664 2010-11-13  Eric Blake  <eblake@redhat.com>
1665
1666         maintainer-makefile: cover a few more files
1667         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1668         scripts generated within C files, for libvirt.
1669
1670 2010-11-13  Bruno Haible  <bruno@clisp.org>
1671
1672         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1673         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
1674         character, return the number of bytes that belong together, not always
1675         1.
1676         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1677         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1678         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1679         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
1680         number of bytes of an invalid character.
1681         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
1682         (main): Invoke it.
1683         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
1684         results.
1685         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
1686         malformed byte sequences.
1687         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
1688         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
1689         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
1690         Reported by Ben Pfaff and Paolo Bonzini.
1691
1692 2010-11-13  Bruno Haible  <bruno@clisp.org>
1693
1694         openat: Work around glibc bug with fchownat() and empty file names.
1695         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
1696         (gl_FUNC_FCHOWNAT): Invoke it.
1697         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
1698         * doc/posix-functions/fchownat.texi: Document the glibc bug.
1699         Reported by Gary V. Vaughan <gary@gnu.org>.
1700
1701 2010-11-13  Bruno Haible  <bruno@clisp.org>
1702
1703         openat: Ensure autoconf macro ordering.
1704         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
1705         gl_USE_SYSTEM_EXTENSIONS.
1706         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
1707
1708 2010-11-13  Bruno Haible  <bruno@clisp.org>
1709
1710         Update comments.
1711         * lib/unistr/u8-check.c: Update file name in comments.
1712         * lib/unistr/u8-mblen.c: Likewise.
1713         * lib/unistr/u8-prev.c: Likewise.
1714         * lib/unistr/u8-strmblen.c: Likewise.
1715         * lib/unistr/u8-strmbtouc.c: Likewise.
1716
1717 2010-11-13  Jim Meyering  <meyering@redhat.com>
1718
1719         tests: avoid test failure on Solaris 10 due to lack of PATH export
1720         * tests/test-update-copyright.sh: Don't forget to export PATH.
1721
1722         init.sh: ensure that IFS is defined, just in case...
1723         * tests/init.sh (setup_): Ensure that IFS is defined,
1724         so that saving and restoring it works as expected.  This
1725         appears to be useful at least for an old version of dash
1726         from a long time ago (RH 6).  See here for details:
1727         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
1728
1729         maint.mk: tighten "test a == b" check
1730         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
1731         test to files that contain something like #!/bin/sh.
1732         Without this, coreutils would get two false positives in
1733         the comments of C source files.
1734
1735 2010-11-12  Eric Blake  <eblake@redhat.com>
1736
1737         bootstrap: fix typo in previous attempt
1738         * build-aux/bootstrap (buildreq): Correct the grouping.
1739         Reported by Paul Eggert.
1740
1741         maintainer-makefile: prohibit test x == x
1742         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
1743         Based on a report by Matthias Bolte.
1744
1745         bootstrap: allow FreeBSD gzip
1746         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
1747         which has no '.' and goes to stderr.
1748         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
1749         Reported by Matthias Bolte.
1750
1751         maintainer-makefile: check for i18n setup
1752         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
1753         will likely work.
1754
1755 2010-11-12  Bruno Haible  <bruno@clisp.org>
1756
1757         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
1758         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
1759         * lib/nanosleep.c (nanosleep): Likewise.
1760
1761 2010-11-11  Bruno Haible  <bruno@clisp.org>
1762
1763         fcntl-h: Fix for use of C++ on glibc systems.
1764         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1765         also on glibc systems in C++ mode.
1766         Reported by Gary V. Vaughan <gary@gnu.org>.
1767
1768 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1769
1770         mknod: avoid false failure with dash
1771         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
1772
1773 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1774
1775         unlink: Fix "is it should" typo in diagnostic.
1776         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
1777         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
1778
1779 2010-11-11  Bruno Haible  <bruno@clisp.org>
1780
1781         Tests for module 'strerror_r-posix'.
1782         * modules/strerror_r-posix-tests: New file.
1783         * tests/test-strerror_r.c: New file.
1784         * tests/test-string-c++.cc: Check the signature of strerror_r.
1785
1786         New module 'strerror_r-posix'.
1787         * lib/string.in.h (strerror_r): New declaration.
1788         * lib/strerror_r.c: New file.
1789         * m4/strerror_r.m4: New file.
1790         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
1791         of strerror_r.
1792         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
1793         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1794         * modules/strerror_r-posix: New file.
1795         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
1796         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1797         * doc/posix-functions/strerror_r.texi: Mention the new module and the
1798         portability problems.
1799
1800 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
1801
1802         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
1803         line is also considered for output. Quoted function name in shell
1804         command, so temporary files for functions like MyClass::operator()
1805         are removed correctly without errors.
1806
1807 2010-11-09  Bruno Haible  <bruno@clisp.org>
1808
1809         * doc/posix-functions/strerror.texi: List more failing platforms.
1810
1811         * doc/posix-functions/strerror.texi: Add a comment.
1812
1813 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1814
1815         fdopendir: fix bug on MacOS X when low on file descriptors
1816
1817         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
1818         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
1819         All callers changed.
1820         (fdopendir): Invoke save_cwd at the top level, not after using
1821         multiple dup() calls to use up file descriptors.  Then retry
1822         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
1823         less than the maximum number of open file descriptors, because
1824         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
1825         on Mac OS X 10.6.4 for tar 1.24
1826         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
1827         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
1828         and for tar 1.25
1829         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
1830
1831 2010-11-07  Bruno Haible  <bruno@clisp.org>
1832
1833         vasnprintf: Support I flag on glibc systems.
1834         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
1835         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
1836         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
1837         snprintf function.
1838         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1839         glibc systems.
1840         * tests/test-vasnprintf-posix3.c: New file.
1841         * modules/vasnprintf-posix-tests (Files): Add it.
1842         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1843
1844 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1845
1846         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1847         * MODULES.html.sh: For compiler warnings, use name
1848         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1849
1850 2010-11-05  Eric Blake  <eblake@redhat.com>
1851
1852         ceil, floor: avoid spurious failure with icc
1853         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1854         [denormals-as-zero] when optimizing without -mieee-fp option.
1855         * tests/test-floorf2.c (floorf_reference): Likewise.
1856         * tests/test-ceilf1.c (dummy): New function.
1857         (main): Use it to outsmart icc's optimization.
1858         * tests/test-floorf1.c (dummy, main): Likewise.
1859
1860         tests: require working signbit
1861         * modules/ceilf-tests (Depends-on): Add signbit.
1862         * modules/ceill-tests (Depends-on): Likewise.
1863         * modules/floorf-tests (Depends-on): Likewise.
1864         * modules/floorl-tests (Depends-on): Likewise.
1865         * modules/round-tests (Depends-on): Likewise.
1866         * modules/roundf-tests (Depends-on): Likewise.
1867         * modules/roundl-tests (Depends-on): Likewise.
1868         * modules/trunc-tests (Depends-on): Likewise.
1869         * modules/truncf-tests (Depends-on): Likewise.
1870         * modules/truncl-tests (Depends-on): Likewise.
1871
1872         strtod: work around icc bug
1873         * lib/strtod.c (minus_zero): Define to working value.
1874         (strtod): Use it to avoid icc bug.
1875
1876         copysign: enhance tests
1877         * modules/copysign-tests (Files): Add minus-zero.h.
1878         * tests/test-copysign.c (main): Also test zeros.
1879
1880 2010-11-04  Eric Blake  <eblake@redhat.com>
1881
1882         ceil, floor, round, trunc: enhance tests of -0
1883         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1884         * tests/test-ceill.c (main): Likewise.
1885         * tests/test-floorf1.c (main): Likewise.
1886         * tests/test-floorl.c (main): Likewise.
1887         * tests/test-round1.c (main): Likewise.
1888         * tests/test-roundf1.c (main): Likewise.
1889         * tests/test-roundl.c (main): Likewise.
1890         * tests/test-trunc1.c (main): Likewise.
1891         * tests/test-truncf1.c (main): Likewise.
1892         * tests/test-truncl.c (main): Likewise.
1893
1894 2010-11-04  Eric Blake  <eblake@redhat.com>
1895
1896         frexp, tests: work around ICC bug with -zero
1897         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1898         works with more compilers.
1899         * tests/minus-zero.h: New file.
1900         * modules/ceilf-tests (Files): Include it.
1901         * modules/ceill-tests (Files): Likewise.
1902         * modules/floorf-tests (Files): Likewise.
1903         * modules/floorl-tests (Files): Likewise.
1904         * modules/frexp-nolibm-tests (Files): Likewise.
1905         * modules/frexp-tests (Files): Likewise.
1906         * modules/frexpl-nolibm-tests (Files): Likewise.
1907         * modules/frexpl-tests (Files): Likewise.
1908         * modules/isnan-tests (Files): Likewise.
1909         * modules/isnand-nolibm-tests (Files): Likewise.
1910         * modules/isnand-tests (Files): Likewise.
1911         * modules/isnanf-nolibm-tests (Files): Likewise.
1912         * modules/isnanf-tests (Files): Likewise.
1913         * modules/isnanl-nolibm-tests (Files): Likewise.
1914         * modules/isnanl-tests (Files): Likewise.
1915         * modules/round-tests (Files): Likewise.
1916         * modules/roundf-tests (Files): Likewise.
1917         * modules/roundl-tests (Files): Likewise.
1918         * modules/ldexpl-tests (Files): Likewise.
1919         * modules/signbit-tests (Files): Likewise.
1920         * modules/snprintf-posix-tests (Files): Likewise.
1921         * modules/sprintf-posix-tests (Files): Likewise.
1922         * modules/strtod-tests (Files): Likewise.
1923         * modules/trunc-tests (Files): Likewise.
1924         * modules/truncf-tests (Files): Likewise.
1925         * modules/truncl-tests (Files): Likewise.
1926         * modules/vsnprintf-posix-tests (Files): Likewise.
1927         * modules/vsprintf-posix-tests (Files): Likewise.
1928         * modules/vasnprintf-posix-tests (Files): Likewise.
1929         * modules/vasprintf-posix-tests (Files): Likewise.
1930         * tests/test-ceilf1.c (main): Use it.
1931         * tests/test-ceill.c (main): Likewise.
1932         * tests/test-floorf1.c (main): Likewise.
1933         * tests/test-floorl.c (main): Likewise.
1934         * tests/test-frexp.c (main): Likewise.
1935         * tests/test-frexpl.c (main): Likewise.
1936         * tests/test-isnan.c (main): Likewise.
1937         * tests/test-isnand.h (main): Likewise.
1938         * tests/test-isnanf.h (main): Likewise.
1939         * tests/test-isnanl.h (main): Likewise.
1940         * tests/test-ldexpl.c (main): Likewise.
1941         * tests/test-round.c (main): Likewise.
1942         * tests/test-roundf.c (main): Likewise.
1943         * tests/test-roundl.c (main): Likewise.
1944         * tests/test-signbit.c (test_signbitf, test_signbitd)
1945         (test_signbitl): Likewise.
1946         * tests/test-snprintf-posix.h (test_function): Likewise.
1947         * tests/test-sprintf-posix.h (test_function): Likewise.
1948         * tests/test-strtod.c (main): Likewise.
1949         * tests/test-trunc1.c (main): Likewise.
1950         * tests/test-truncf1.c (main): Likewise.
1951         * tests/test-truncl.c (main): Likewise.
1952
1953         isnanl: work around icc bug
1954         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1955
1956 2010-11-03  Eric Blake  <eblake@redhat.com>
1957
1958         tests: fix compiler warnings
1959         * tests/test-getopt.h (test_getopt): Fix condition.
1960         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1961         * tests/test-pipe2.c (main): Likewise.
1962         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1963
1964         utimens: fix broken m4 test
1965         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1966
1967 2010-10-28  Bruno Haible  <bruno@clisp.org>
1968
1969         posix_spawn*, getdtablesize: Relax license.
1970         * modules/posix_spawn (License): Change to LGPLv2+.
1971         * modules/posix_spawnp (License): Likewise.
1972         * modules/posix_spawn-internal (License): Likewise.
1973         * modules/posix_spawnattr_init (License): Likewise.
1974         * modules/posix_spawnattr_getflags (License): Likewise.
1975         * modules/posix_spawnattr_setflags (License): Likewise.
1976         * modules/posix_spawnattr_getpgroup (License): Likewise.
1977         * modules/posix_spawnattr_setpgroup (License): Likewise.
1978         * modules/posix_spawnattr_getschedparam (License): Likewise.
1979         * modules/posix_spawnattr_setschedparam (License): Likewise.
1980         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1981         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1982         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1983         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1984         * modules/posix_spawnattr_getsigmask (License): Likewise.
1985         * modules/posix_spawnattr_setsigmask (License): Likewise.
1986         * modules/posix_spawnattr_destroy (License): Likewise.
1987         * modules/posix_spawn_file_actions_init (License): Likewise.
1988         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1989         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1990         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1991         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1992         * modules/getdtablesize (License): Likewise.
1993         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1994
1995 2010-10-26  Bruno Haible  <bruno@clisp.org>
1996
1997         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1998         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1999         Cygwin and mingw.
2000         Suggested by Eric Blake.
2001
2002 2010-10-26  Bruno Haible  <bruno@clisp.org>
2003
2004         stdio: Work around compilation error due to renameat() on Solaris 10.
2005         * lib/stdio.in.h: Include <unistd.h> on Solaris.
2006         * lib/renameat.c: Don't include <unistd.h> here.
2007         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
2008         Reported by Paul Eggert and Eric Blake.
2009
2010 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2011
2012         renameat: port to Solaris 10, which declares renameat in unistd.h
2013
2014         * lib/renameat.c: Include unistd.h before stdio.h, because
2015         Solaris 10 declares renameat in unistd.h.  Problem encountered
2016         when building GNU tar 1.24 on Solaris 10.
2017
2018 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2019
2020         fdopendir: fix C89 compilation
2021         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
2022         compilers.
2023
2024 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
2025
2026         inttostr: simplify by removing unnecessary redundancy
2027         * lib/anytostr.c: Don't include verify.h.
2028         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
2029         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
2030         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
2031         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
2032         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
2033         Likewise.
2034         * modules/inttostr (Depends-on): Remove 'verify'.
2035
2036 2010-10-23  Bruno Haible  <bruno@clisp.org>
2037
2038         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
2039         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
2040         Reported by Eric Blake.
2041
2042 2010-10-23  Bruno Haible  <bruno@clisp.org>
2043
2044         Tests: Fix LOCALE_JA on MirBSD 10.
2045         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
2046         to an UTF-8 locale.
2047         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
2048         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2049         Reported by Eric Blake.
2050
2051 2010-10-21  Bruno Haible  <bruno@clisp.org>
2052
2053         nl_langinfo test: Avoid test failure on NetBSD 5.
2054         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
2055         Reported by Eric Blake.
2056
2057 2010-10-21  Eric Blake  <eblake@redhat.com>
2058
2059         c-stack: work around libsigsegv 2.8 bug
2060         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
2061         overflow on at least PowerPC64.
2062
2063 2010-10-17  Bruno Haible  <bruno@clisp.org>
2064
2065         userspec: Drop redundant file.
2066         * modules/userspec (Files): Remove lib/inttostr.h.
2067
2068 2010-10-17  Bruno Haible  <bruno@clisp.org>
2069
2070         nl_langinfo tests: Silence some warnings.
2071         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
2072         Reported by Jim Meyering.
2073
2074 2010-10-17  Bruno Haible  <bruno@clisp.org>
2075
2076         Make use of GCC's attribute __alloc_size__.
2077         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
2078         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
2079         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
2080         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
2081         __alloc_size__.
2082         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2083         Suggested by Jim Meyering.
2084
2085 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
2086
2087         bootstrap: anchor .gitignore entries.
2088         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
2089         with...
2090         (insert_vc_ignore): ... this new function, which prepends `/' to
2091         all .gitignore entries before passing them to
2092         insert_sorted_if_absent.
2093
2094 2010-10-16  Bruno Haible  <bruno@clisp.org>
2095
2096         nextafter: Fix configure check.
2097         * modules/nextafter (configure.ac): Correct expected prototype.
2098
2099 2010-10-16  Bruno Haible  <bruno@clisp.org>
2100
2101         termios: Update documentation.
2102         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
2103
2104 2010-10-16  Bruno Haible  <bruno@clisp.org>
2105
2106         tests: Make them compile with TinyCC.
2107         * tests/test-strstr.c (main): Remove parentheses around array
2108         initializer.
2109
2110 2010-10-15  Eric Blake  <eblake@redhat.com>
2111
2112         ignore-value: make header idempotent
2113         * lib/ignore-value.h: Add double-inclusion guards.
2114         Reported by Stefan Berger.
2115
2116 2010-10-15  Jim Meyering  <meyering@redhat.com>
2117
2118         GNUmakefile: handle "stable" target, not "major"
2119         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
2120         lists in maint.mk and announce-gen.  Without this, "make stable"
2121         would fail to ensure that $(VERSION) is up to date.
2122
2123 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
2124
2125         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
2126         & co.
2127
2128 2010-10-14  Bruno Haible  <bruno@clisp.org>
2129
2130         vasnprintf: Don't set errno to 0.
2131         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
2132         block that sets it to 0.
2133         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2134
2135 2010-10-14  Bruno Haible  <bruno@clisp.org>
2136
2137         socketlib: Fix.
2138         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
2139         gl_PREREQ_SYS_H_WINSOCK2.
2140         Reported by Ian Beckwith <ianb@erislabs.net>.
2141
2142 2010-10-13  Jim Meyering  <meyering@redhat.com>
2143
2144         test-select-stdin.c: avoid warn_unused_result warnings
2145         * tests/test-select-stdin.c: Include "macros.h".
2146         ASSERT that read and fflush succeed.
2147
2148 2010-10-13  Jim Meyering  <meyering@redhat.com>
2149
2150         git-version-gen: do require git-VC'd files in cwd
2151         * build-aux/git-version-gen: Reject a git version string
2152         if there are no commits associated with the current directory.
2153         This avoids an unlikely false-positive (unrelated dir whose parent
2154         repository also contains a tag matching v*), as pointed out
2155         by Giuseppe Scrivano in
2156         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
2157
2158 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         argv-iter: omit nonconforming declaration
2161         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
2162         enum arg_iter_err declaration, which doesn't conform to C99.
2163         Solaris 10 cc warns about this.
2164
2165 2010-10-13  Eric Blake  <eblake@redhat.com>
2166
2167         termios: fix compilation on mingw
2168         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
2169         (gl_TERMIOS_H): Adjust it on mingw.
2170         * modules/termios (Makefile.am): Substitute new key.
2171         * lib/termios.in.h (includes): Make include_next conditional.
2172         * doc/posix-headers/termios.texi (termios.h): Update
2173         documentation.
2174         Reported by Daniel P. Berrange.
2175
2176 2010-10-13  Jim Meyering  <meyering@redhat.com>
2177
2178         git-version-gen: don't require that .git/ be in the current dir
2179         * build-aux/git-version-gen: Adjust this script so that it works
2180         when run from any working directory beneath the top-level .git/-
2181         containing directory.  Inspired by a patch from Giuseppe Scrivano,
2182         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
2183
2184         test-select: avoid warn_unused_result warnings
2185         * tests/test-select.c: Include "macros.h".
2186         ASSERT that each call to read, write, and pipe succeeds.
2187         While not technically required, also check each "close".
2188         * modules/select-tests (Files): Add tests/macros.h.
2189
2190         test-symlinkat: remove declaration of unused local
2191         * tests/test-symlinkat.c (main): Remove unused local, "buf".
2192
2193         test-inttostr: avoid shadowing warnings
2194         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
2195         and use malloc rather than the stack for the same reason as
2196         mentioned in the comment justifying the other allocation.
2197
2198 2010-10-11  Bruno Haible  <bruno@clisp.org>
2199
2200         stdlib: Allow multiple gnulib generated replacements to coexist.
2201         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
2202         Reported by Sam Steingold <sds@gnu.org>.
2203
2204 2010-10-11  Jim Meyering  <meyering@redhat.com>
2205
2206         fix a documentation typo
2207         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
2208
2209 2010-10-11  Eric Blake  <eblake@redhat.com>
2210
2211         futimens: work around Solaris 11 bug
2212         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
2213         * tests/test-futimens.h (test_futimens): Enhance, rather than
2214         weaken test.
2215         * doc/posix-functions/futimens.texi (futimens): Document the bug.
2216
2217 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2218
2219         Indentation.
2220         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
2221         higher-level operators more to the left.
2222
2223 2010-10-11  Jim Meyering  <meyering@redhat.com>
2224
2225         test-futimens: avoid unwarranted test failure on Solaris 5.11
2226         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
2227         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
2228         because it tries to dereference the NULL name argument.
2229
2230 2010-10-11  Bruno Haible  <bruno@clisp.org>
2231
2232         Indentation.
2233         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
2234         indentation.
2235
2236 2010-10-11  Jim Meyering  <meyering@redhat.com>
2237
2238         spawn.in.h: make indentation consistent with parentheses
2239         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
2240         Make indentation consistent with parentheses.
2241
2242 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
2243
2244         Fix mismatched parens in previous commit
2245         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
2246         parens.
2247
2248 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2249
2250         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
2251
2252         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
2253         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
2254         * lib/malloca.c: Include "verify.h".
2255         (verify1): Remove, replacing with a verify call.
2256         * lib/relocwrapper.c (verify1): Likewise.
2257         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
2258         Likewise.
2259         * modules/malloca (Depends-on): Add 'verify'.
2260         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
2261         * modules/vasnprintf (Depends-on): Add 'verify'.
2262         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2263         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2264         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2265         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2266         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2267         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2268         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2269
2270         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
2271
2272         Formerly the style was sometimes 2*X - 1, because the C standard
2273         was wrongly thought to disallow ?: in integral constant expressions.
2274         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
2275         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
2276         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2277         * lib/stdint.in.h (_verify_intmax_size): Likewise.
2278         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
2279         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
2280         verify that time_t cannot be floating.
2281
2282 2010-10-08  Eric Blake  <eblake@redhat.com>
2283
2284         time: enforce recent POSIX ruling that time_t is integral
2285         * lib/time.in.h (__time_t_must_be_integral): Detect any
2286         problematic systems, allowing the rest of gnulib to assume POSIX.
2287
2288 2010-10-08  Jim Meyering  <meyering@redhat.com>
2289
2290         fdopendir: fix a bug on systems lacking openat and /proc support
2291         OpenBSD 4.7 is one such system.  The most noticeable effect was
2292         failure of any application making nontrivial use of fts: rm, du,
2293         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
2294           ./rm: traversal failed: `a': Bad file descriptor
2295         Debugging that, you see that even though FD 6 was closed just
2296         prior to the opendir call in fd_clone_opendir, its resulting
2297         dir->dd_fd was 8, rather than the expected value of 6:
2298
2299         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
2300         93                close (fd);
2301         (gdb) n
2302         94                dir = fd_clone_opendir (dupfd);
2303         (gdb) n
2304         95                saved_errno = errno;
2305         (gdb) p dir->dd_fd
2306         $11 = 8
2307
2308         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
2309         The problem is that on OpenBSD, fd_clone_opendir has to resort
2310         to using the old-style save/restore CWD mechanism, due to its
2311         lack of openat/proc support, and *that* would steal the FD (6)
2312         that opendir was supposed to use.
2313
2314         The fix is to squirrel away the desired FD so that save_cwd uses a
2315         different one, and then free the dest FD right before calling opendir.
2316         That guarantees opendir will use the required file descriptor.
2317
2318         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
2319
2320 2010-10-08  Bruno Haible  <bruno@clisp.org>
2321
2322         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
2323         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
2324
2325 2010-10-08  Bruno Haible  <bruno@clisp.org>
2326
2327         nanosleep: Make replacement POSIX compliant.
2328         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
2329         is out of range.
2330         Reported by Jim Meyering.
2331
2332 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2333
2334         bootstrap: add hook for altering gnulib.mk, for Bison
2335         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
2336         the Bison bootstrapping process can rewrite file names and variables
2337         in this file before later parts of 'bootstrap' use the file.
2338         Bison wants to include lib/gnulib.mk from the top-level makefile,
2339         so it needs the file names in this file to be relative to the top
2340         level, not relative to lib; plus it needs variable names to be
2341         rewritten.
2342         (slurp): Use the new function.
2343
2344         bootstrap: reformat for readability
2345         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
2346
2347 2010-10-08  Eric Blake  <eblake@redhat.com>
2348
2349         docs: update cygwin progress
2350         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
2351         1.7.7.
2352         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
2353         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
2354         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
2355         * doc/posix-functions/carg.texi (carg): Likewise.
2356         * doc/posix-functions/cargf.texi (cargf): Likewise.
2357         * doc/posix-functions/casin.texi (casin): Likewise.
2358         * doc/posix-functions/casinf.texi (casinf): Likewise.
2359         * doc/posix-functions/casinh.texi (casinh): Likewise.
2360         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
2361         * doc/posix-functions/catan.texi (catan): Likewise.
2362         * doc/posix-functions/catanf.texi (catanf): Likewise.
2363         * doc/posix-functions/catanh.texi (catanh): Likewise.
2364         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
2365         * doc/posix-functions/ccos.texi (ccos): Likewise.
2366         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
2367         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
2368         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
2369         * doc/posix-functions/cexp.texi (cexp): Likewise.
2370         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
2371         * doc/posix-functions/cimag.texi (cimag): Likewise.
2372         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
2373         * doc/posix-functions/clog.texi (clog): Likewise.
2374         * doc/posix-functions/clogf.texi (clogf): Likewise.
2375         * doc/posix-functions/conj.texi (conj): Likewise.
2376         * doc/posix-functions/conjf.texi (conjf): Likewise.
2377         * doc/posix-functions/cpow.texi (cpow): Likewise.
2378         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
2379         * doc/posix-functions/cproj.texi (cproj): Likewise.
2380         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
2381         * doc/posix-functions/creal.texi (creal): Likewise.
2382         * doc/posix-functions/crealf.texi (crealf): Likewise.
2383         * doc/posix-functions/csin.texi (csin): Likewise.
2384         * doc/posix-functions/csinf.texi (csinf): Likewise.
2385         * doc/posix-functions/csinh.texi (csinh): Likewise.
2386         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
2387         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
2388         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
2389         * doc/posix-functions/ctan.texi (ctan): Likewise.
2390         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
2391         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
2392         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
2393         * doc/posix-headers/complex.texi (complex.h): Likewise.
2394
2395 2010-10-07  Jim Meyering  <meyering@redhat.com>
2396
2397         parse-datetime: avoid compilation failure on OpenBSD 4.7
2398         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2399         This works around a compilation failure on OpenBSD 4.7:
2400         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2401
2402 2010-10-07  Eric Blake  <eblake@redhat.com>
2403
2404         docs: update cygwin progress
2405         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2406         1.7.6.
2407         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2408         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2409         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2410         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2411         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2412         Likewise.
2413         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2414         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2415         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2416         Likewise.
2417         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2418         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2419         Likewise.
2420         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2421         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2422         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2423         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2424         Likewise.
2425         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2426         Likewise.
2427         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2428
2429         docs: update parse-datetime history
2430         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2431         documentation of this function's history and alternatives.
2432
2433         cygwin: use more robust version check
2434         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2435         exclude an eventual cygwin 1.9.1.
2436         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2438         (gl_FUNC_STRCASESTR): Likewise.
2439         Reported by Bruno Haible.
2440
2441 2010-10-06  Bruno Haible  <bruno@clisp.org>
2442
2443         string, sys_select: Avoid #including large headers unless necessary.
2444         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2445         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2446         OSF/1, BeOS, Haiku.
2447         Reported by Jim Meyering.
2448
2449 2010-10-05  Eric Blake  <eblake@redhat.com>
2450
2451         memmem, strstr, strcasestr: fix bug with long periodic needle
2452         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2453         periodic needle having false positive.
2454         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2455         and cygwin 1.7.7.
2456         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2458         (gl_FUNC_STRCASESTR): Likewise.
2459         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2460         * tests/test-memmem.c (main): Expose the bug.
2461         * tests/test-strcasestr.c (main): Likewise.
2462         * tests/test-strstr.c (main): Likewise.
2463         * tests/test-c-strcasestr.c (main): Likewise.
2464         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2465         * doc/posix-functions/strstr.texi (strstr): Likewise.
2466         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2467         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2468
2469 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2470
2471         parse-datetime: do some more renaming
2472         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2473         parse_datetime, not get_date.  Mention the renaming.
2474         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2475         in comments.
2476         * m4/bison.m4: Likewise.
2477
2478 2010-10-05  Eric Blake  <eblake@redhat.com>
2479
2480         parse-datetime: better name than get_date
2481         * NEWS: Reword the deprecation notice.
2482         * modules/get_date: Rename to modules/parse-datetime.
2483         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2484         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2485         * lib/get_date.y: Rename to lib/parse-datetime.y.
2486         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2487         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2488         * doc/getdate.texi: Provide fallback wrapper.
2489         * lib/getdate.h: Move guts, and wrap...
2490         * lib/parse-datetime.h: ...new file.
2491         * lib/parse-datetime.y (get_date): Rename...
2492         (parse_datetime): ...to this.
2493         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2494         (gl_PARSE_DATETIME): ...to this.
2495         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2496         documentation.
2497         * modules/getdate (Files): Provide fallback docs and header.
2498         (Notice, Depends-on): Update references.
2499         * tests/test-parse-datetime.c: Likewise.
2500         * DEPENDENCIES: Likewise.
2501         * MODULES.html.sh (Date and time <time.h>): Likewise.
2502         * doc/parse-datetime.texi (Date input formats)
2503         (Authors of parse_datetime): Likewise.
2504         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2505         (Include): Likewise.
2506         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2507         * gnulib-tool: Likewise.
2508         * m4/bison.m4 (gl_BISON): Likewise.
2509         Suggested by Bruno Haible.
2510
2511 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2512
2513         more ports to Solaris tr, which needs [] around ranges
2514         * gnulib-tool: Solaris tr needs [] around ranges.
2515         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2516         * tests/test-pipe-filter-gi1.c (main): Likewise.
2517         * tests/test-pipe-filter-ii1.c (main): Likewise.
2518
2519 2010-10-05  Eric Blake  <eblake@redhat.com>
2520
2521         bootstrap: fix Solaris regression
2522         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2523         around ranges.
2524         Reported by Pádraig Brady.
2525
2526         bootstrap: work with pkg-config
2527         * build-aux/bootstrap (check_versions): Also transliterate - in
2528         prerequisite name.
2529         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2530         prerequisites that were already found, to avoid confusion.
2531         Reported by Justin Clift.
2532
2533         faccessat: remove unused wrappers
2534         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2535         presence of these wrappers dragged in -lgen on Solaris.
2536         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2537
2538 2010-10-05  Jim Meyering  <meyering@redhat.com>
2539
2540         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2541         * Makefile (sc_pragma_columns): New syntax-check rule.
2542
2543 2010-10-04  Bruno Haible  <bruno@clisp.org>
2544
2545         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2546         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2547         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2548         Reported by Bruce Korb and Eric Blake.
2549
2550 2010-10-04  Bruno Haible  <bruno@clisp.org>
2551
2552         threadlib: Make option --with-libpth-prefix work.
2553         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2554         use $LIBPTH, not just -lpth.
2555
2556 2010-10-04  Bruno Haible  <bruno@clisp.org>
2557
2558         Avoid line length limitation from HP NonStop system header files.
2559         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2560         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2561         * lib/ctype.in.h: Likewise.
2562         * lib/dirent.in.h: Likewise.
2563         * lib/errno.in.h: Likewise.
2564         * lib/fcntl.in.h: Likewise.
2565         * lib/float.in.h: Likewise.
2566         * lib/getopt.in.h: Likewise.
2567         * lib/iconv.in.h: Likewise.
2568         * lib/inttypes.in.h: Likewise.
2569         * lib/langinfo.in.h: Likewise.
2570         * lib/locale.in.h: Likewise.
2571         * lib/math.in.h: Likewise.
2572         * lib/netdb.in.h: Likewise.
2573         * lib/netinet_in.in.h: Likewise.
2574         * lib/poll.in.h: Likewise.
2575         * lib/pthread.in.h: Likewise.
2576         * lib/pty.in.h: Likewise.
2577         * lib/sched.in.h: Likewise.
2578         * lib/se-selinux.in.h: Likewise.
2579         * lib/search.in.h: Likewise.
2580         * lib/signal.in.h: Likewise.
2581         * lib/spawn.in.h: Likewise.
2582         * lib/stdarg.in.h: Likewise.
2583         * lib/stddef.in.h: Likewise.
2584         * lib/stdint.in.h: Likewise.
2585         * lib/stdio.in.h: Likewise.
2586         * lib/stdlib.in.h: Likewise.
2587         * lib/string.in.h: Likewise.
2588         * lib/strings.in.h: Likewise.
2589         * lib/sys_file.in.h: Likewise.
2590         * lib/sys_ioctl.in.h: Likewise.
2591         * lib/sys_select.in.h: Likewise.
2592         * lib/sys_socket.in.h: Likewise.
2593         * lib/sys_stat.in.h: Likewise.
2594         * lib/sys_time.in.h: Likewise.
2595         * lib/sys_times.in.h: Likewise.
2596         * lib/sys_utsname.in.h: Likewise.
2597         * lib/sys_wait.in.h: Likewise.
2598         * lib/sysexits.in.h: Likewise.
2599         * lib/termios.in.h: Likewise.
2600         * lib/time.in.h: Likewise.
2601         * lib/unistd.in.h: Likewise.
2602         * lib/wchar.in.h: Likewise.
2603         * lib/wctype.in.h: Likewise.
2604         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2605         * modules/ctype (Makefile.am): Likewise.
2606         * modules/dirent (Makefile.am): Likewise.
2607         * modules/errno (Makefile.am): Likewise.
2608         * modules/fcntl-h (Makefile.am): Likewise.
2609         * modules/float (Makefile.am): Likewise.
2610         * modules/getopt-posix (Makefile.am): Likewise.
2611         * modules/iconv-h (Makefile.am): Likewise.
2612         * modules/inttypes (Makefile.am): Likewise.
2613         * modules/langinfo (Makefile.am): Likewise.
2614         * modules/locale (Makefile.am): Likewise.
2615         * modules/math (Makefile.am): Likewise.
2616         * modules/netdb (Makefile.am): Likewise.
2617         * modules/netinet_in (Makefile.am): Likewise.
2618         * modules/poll-h (Makefile.am): Likewise.
2619         * modules/pthread (Makefile.am): Likewise.
2620         * modules/pty (Makefile.am): Likewise.
2621         * modules/sched (Makefile.am): Likewise.
2622         * modules/search (Makefile.am): Likewise.
2623         * modules/selinux-h (Makefile.am): Likewise.
2624         * modules/signal (Makefile.am): Likewise.
2625         * modules/spawn (Makefile.am): Likewise.
2626         * modules/stdarg (Makefile.am): Likewise.
2627         * modules/stddef (Makefile.am): Likewise.
2628         * modules/stdint (Makefile.am): Likewise.
2629         * modules/stdio (Makefile.am): Likewise.
2630         * modules/stdlib (Makefile.am): Likewise.
2631         * modules/string (Makefile.am): Likewise.
2632         * modules/strings (Makefile.am): Likewise.
2633         * modules/sys_file (Makefile.am): Likewise.
2634         * modules/sys_ioctl (Makefile.am): Likewise.
2635         * modules/sys_select (Makefile.am): Likewise.
2636         * modules/sys_socket (Makefile.am): Likewise.
2637         * modules/sys_stat (Makefile.am): Likewise.
2638         * modules/sys_time (Makefile.am): Likewise.
2639         * modules/sys_times (Makefile.am): Likewise.
2640         * modules/sys_utsname (Makefile.am): Likewise.
2641         * modules/sys_wait (Makefile.am): Likewise.
2642         * modules/sysexits (Makefile.am): Likewise.
2643         * modules/termios (Makefile.am): Likewise.
2644         * modules/time (Makefile.am): Likewise.
2645         * modules/unistd (Makefile.am): Likewise.
2646         * modules/wchar (Makefile.am): Likewise.
2647         * modules/wctype (Makefile.am): Likewise.
2648
2649 2010-10-04  Bruno Haible  <bruno@clisp.org>
2650
2651         read-file tests: Avoid a test failure on NonStop Kernel.
2652         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2653         a regular file.
2654         Reported by Joachim Schmitz <schmitz@hp.com>.
2655
2656 2010-10-03  Bruno Haible  <bruno@clisp.org>
2657
2658         gnulib-tool: Fixes for --create-testdir with --libtool.
2659         * gnulib-tool (func_get_automake_snippet): Don't augment
2660         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2661         an executable.
2662         (func_create_testdir): Handle module 'alloca' like func_import.
2663         Reported by Bruce Korb <bruce.korb@gmail.com>.
2664
2665 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2666
2667         Avoid some lines longer than 80 characters.
2668         * lib/stdint.in.h: Break long comment lines.
2669         * lib/math.in.h: Likewise.
2670         (_GL_NUM_UINT_WORDS): New macro, for readability.
2671         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2672         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2673         * lib/stdlib.in.h: Likewise.
2674         * lib/spawn.in.h: Likewise.
2675         * lib/sys_socket.in.h: Update an URL.
2676         * lib/sys_stat.in.h: Break long line.
2677
2678 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
2679
2680         Improve pmccabe2html.
2681         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
2682         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
2683         when the sources change. Remove the line in the HTML about "Used
2684         ranges" (which implied that there might be other unused ranges),
2685         rename "Resume" to "Summary" (easier to understand for more users).
2686         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
2687         styles, and some unnecessary blank lines.
2688
2689 2010-10-03  Bruno Haible  <bruno@clisp.org>
2690             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2691
2692         acl: Add support for ACLs on NonStop Kernel.
2693         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
2694         Check whether the function aclsort() exists.
2695         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
2696         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
2697         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2698         (acl_nontrivial [HAVE_ACLSORT]: New function.
2699         (file_has_acl): Implement for NonStop Kernel.
2700         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2701         (qset_acl): Implement for NonStop Kernel.
2702         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
2703         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2704         (main): Implement for NonStop Kernel.
2705         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
2706         Kernel. Handle this flavor.
2707         * tests/test-set-mode-acl.sh: Likewise.
2708         * tests/test-copy-acl.sh: Likewise.
2709         * tests/test-copy-file.sh: Likewise.
2710
2711 2010-10-03  Bruno Haible  <bruno@clisp.org>
2712
2713         Info about ACLs on NonStop Kernel.
2714         * doc/acl-resources.txt: Add info about NonStop Kernel.
2715         References by Joachim Schmitz <schmitz@hp.com>.
2716
2717 2010-10-02  Bruno Haible  <bruno@clisp.org>
2718
2719         Define missing EDQUOT on NonStop Kernel.
2720         * lib/errno.in.h (EDQUOT): Assign a value if missing.
2721         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
2722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
2723         missing.
2724         * doc/posix-headers/errno.texi: Mention the NSK bug.
2725         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
2726         Reported by Joachim Schmitz <schmitz@hp.com>.
2727
2728 2010-10-02  Bruno Haible  <bruno@clisp.org>
2729
2730         Update doc for POSIX:2008.
2731         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
2732         Update URL of POSIX specification.
2733
2734 2010-10-02  Bruno Haible  <bruno@clisp.org>
2735
2736         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
2737         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
2738         from gnulib, not from Automake.
2739
2740 2010-10-02  Bruno Haible  <bruno@clisp.org>
2741
2742         New module 'system-posix'.
2743         * modules/system-posix: New file.
2744         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
2745         module is present.
2746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2747         GNULIB_SYSTEM_POSIX.
2748         * modules/stdlib (Depends-on): Remove sys_wait.
2749         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
2750         * doc/posix-functions/system.texi: Mention the new module.
2751         * doc/posix-headers/stdlib.texi: Likewise.
2752         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
2753         define test_sys_wait_macros to a no-op.
2754         Reported by Sam Steingold <sds@gnu.org>.
2755
2756 2010-09-30  Bruno Haible  <bruno@clisp.org>
2757
2758         More renaming from 'getdate' to 'get_date'.
2759         * doc/get_date.texi: Renamed from doc/getdate.texi.
2760         * modules/get_date (Files): Update.
2761         * MODULES.html.sh (Date and time <time.h>): Update.
2762         * DEPENDENCIES: Update.
2763         * gnulib-tool: Update comment.
2764         * m4/bison.m4 (gl_BISON): Likewise.
2765         * m4/get_date.m4 (gl_GET_DATE): Likewise.
2766
2767 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
2768
2769         bootstrap: support ACLOCAL_FLAGS during aclocal
2770         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
2771         can add additional -I dir for third-party .m4 files.
2772
2773 2010-09-30  Eric Blake  <eblake@redhat.com>
2774
2775         bootstrap: use glibtoolize on MacOS
2776         * build-aux/bootstrap (check_versions): Convert libtool into
2777         libtoolize.
2778         (tool search): Move libtool check earlier, and look for
2779         glibtoolize for MacOS.
2780         (gnulib_tool_options): Auto-add --libtool when appropriate.
2781         Reported by Justin Clift.
2782
2783         poll: fix typo that broke test on MacOS
2784         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
2785         Reported by Justin Clift.
2786
2787         getdate: rename to get_date
2788         Note: getdate.h is not renamed, to minimize client impact.
2789         * modules/getdate: Mark obsolete.  Move old contents...
2790         * modules/get_date: ...to new module name.
2791         * modules/getdate-tests: Move...
2792         * modules/get_date-tests: ...here.
2793         * m4/getdate.m4: Move...
2794         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
2795         * lib/getdate.y: Move...
2796         * lib/get_date.y: ...here.
2797         * tests/test-getdate.c: Move...
2798         * tests/test-get_date.c: ...here.
2799         * doc/posix-functions/getdate.texi (getdate): Update name.
2800         * NEWS: Mention the change.
2801
2802 2010-09-29  Bruno Haible  <bruno@clisp.org>
2803
2804         Separate the module 'waitpid' from the module 'sys_wait'.
2805         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
2806         present.
2807         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
2808         gl_MODULE_INDICATOR_FOR_TESTS.
2809         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
2810         * modules/sys_wait (Depends-on): Remove waitpid.
2811         (Makefile.am): Substitute GNULIB_WAITPID.
2812         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
2813         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
2814         signature only if the 'waitpid' module is present.
2815         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
2816         * NEWS: Mention the change.
2817         * modules/grantpt (Depends-on): Add waitpid.
2818         * modules/wait-process (Depends-on): Likewise.
2819
2820 2010-09-29  Bruno Haible  <bruno@clisp.org>
2821
2822         More tests for module 'sys_wait'.
2823         * modules/sys_wait-c++-tests: New file.
2824         * tests/test-sys_wait-c++.cc: New file.
2825         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
2826         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2827
2828 2010-09-29  Bruno Haible  <bruno@clisp.org>
2829
2830         New module 'waitpid'.
2831         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
2832         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
2833         Don't include <process.h>.
2834         (waitpid): Declare only, using modern idiom.
2835         * m4/waitpid.m4: New file.
2836         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
2837         * modules/waitpid: New file.
2838         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2839         (Makefile.am): Update.
2840         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2841
2842 2010-09-28  Bruno Haible  <bruno@clisp.org>
2843
2844         poll: Assume ANSI C.
2845         * lib/poll.c (poll): Use an ANSI C declaration.
2846
2847 2010-09-28  Bruno Haible  <bruno@clisp.org>
2848
2849         poll-h: Create poll.h on all platforms.
2850         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2851         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2852         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2853         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2854         (gl_REPLACE_POLL_H): Don't set POLL_H.
2855         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2856         * modules/poll-h (Depends-on): Add include_next.
2857         (Makefile.am): Create poll.h unconditionally. Substitute also
2858         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2859
2860 2010-09-28  Bruno Haible  <bruno@clisp.org>
2861
2862         Tests for module 'poll-h'.
2863         * modules/poll-h-c++-tests: New file.
2864         * tests/test-poll-h-c++.cc: New file.
2865
2866         Tests for module 'poll-h'.
2867         * modules/poll-h-tests: New file.
2868         * tests/test-poll-h.c: New file.
2869
2870 2010-09-28  Bruno Haible  <bruno@clisp.org>
2871
2872         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2873         * modules/poll-h (Depends-on): Add 'extensions'.
2874
2875 2010-09-28  Bruno Haible  <bruno@clisp.org>
2876
2877         New module 'poll-h'.
2878         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2879         (poll): Use modern idiom.
2880         * modules/poll-h: New file.
2881         * modules/poll (Files): Remove lib/poll.in.h.
2882         (Depends-on): Add poll-h.
2883         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2884         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2885         * m4/poll_h.m4: New file.
2886         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2887         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2888         and invoke gl_REPLACE_POLL_H.
2889         * lib/poll.c: Use common idiom.
2890         * tests/test-poll.c: Likewise.
2891         * doc/posix-headers/poll.texi: Mention the poll-h module.
2892         Suggested by Eric Blake.
2893
2894 2010-09-26  Bruno Haible  <bruno@clisp.org>
2895
2896         sys_wait: Implement WSTOPSIG.
2897         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2898         Reported by Simon Josefsson.
2899
2900 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2901
2902         stdlib, sys_wait: Avoid compilation error on mingw.
2903         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2904
2905 2010-09-26  Bruno Haible  <bruno@clisp.org>
2906
2907         stdlib tests: Avoid code duplication.
2908         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2909         * modules/sys_wait-tests (Files): Likewise.
2910         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2911         * tests/test-stdlib.c: Include test-sys_wait.h.
2912         (main): Invoke test_sys_wait_macros.
2913         * tests/test-sys_wait.c: Include test-sys_wait.h.
2914         (main): Invoke test_sys_wait_macros.
2915
2916 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2917
2918         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2919         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2920         sure Windows sockets are working before calling getaddrinfo.
2921         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2922         * doc/gnulib.texi (Windows sockets): Fix typo.
2923
2924 2010-09-25  Bruno Haible  <bruno@clisp.org>
2925
2926         Tests for module 'regex-quote'.
2927         * modules/regex-quote-tests: New file.
2928         * tests/test-regex-quote.c: New file.
2929
2930         New module 'regex-quote'.
2931         * lib/regex-quote.h: New file.
2932         * lib/regex-quote.c: New file.
2933         * modules/regex-quote: New file.
2934         Suggested by Reuben Thomas <rrt@sc3d.org>.
2935
2936 2010-09-24  Bruno Haible  <bruno@clisp.org>
2937
2938         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2939         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2940
2941 2010-09-23  Bruno Haible  <bruno@clisp.org>
2942
2943         setenv: Relax license.
2944         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2945         Blake.
2946         Requested by Eric Blake.
2947
2948 2010-09-22  Bruno Haible  <bruno@clisp.org>
2949
2950         termios: Relax license.
2951         * modules/termios (License): Change to LGPLv2+.
2952         Requested by Eric Blake.
2953
2954 2010-09-22  Bruno Haible  <bruno@clisp.org>
2955
2956         threadlib: Allow the package to change the default to 'no'.
2957         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2958         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2959         Reported by Paul Eggert.
2960
2961 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2962             Bruno Haible  <bruno@clisp.org>
2963
2964         Fix endless loop in mbmemcasecoll.
2965         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2966         byte.
2967         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2968
2969 2010-09-22  Bruno Haible  <bruno@clisp.org>
2970
2971         Tests for module 'memcoll'.
2972         * modules/memcoll-tests: New file.
2973         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2974
2975         memcoll, xmemcoll: Clarify size vs. length.
2976         * modules/memcoll.c (memcoll0): Clarify specification.
2977         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2978         passed to collate_error.
2979
2980 2010-09-22  Bruno Haible  <bruno@clisp.org>
2981
2982         Tests for module 'memcasecmp'.
2983         * modules/memcasecmp-tests: New file.
2984         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2985
2986 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2987
2988         * lib/pthread.in.h: Add split double-inclusion guard, and include
2989         system <pthread.h> if there is one.  Use @@-style as in other
2990         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2991         pthread.h doesn't.
2992         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2993         (pthread_mutexattr_settype, pthread_mutex_trylock):
2994         New static inline functions, if there's no system <pthread.h>.
2995         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2996         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2997         Approximate with mutexes if the system lacks spinlocks, as in
2998         MacOS.
2999         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
3000         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
3001         @@-style.  Check for spinlocks separately.
3002         (gl_PTHREAD_DEFAULTS): New macro.
3003         * modules/pthread: Redo to use a more typical style for in.h files.
3004
3005 2010-09-21  Eric Blake  <eblake@redhat.com>
3006
3007         net_if: enhance tests
3008         * tests/test-net_if.c (main): Move signature checks earlier.
3009         Print failures to stderr.
3010         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
3011         Document the bug that we do not yet fix.
3012
3013 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
3014
3015         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
3016         about gnulib, not GSS.
3017
3018 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
3019
3020         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
3021         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
3022         for Emacs.
3023         * build-aux/pmccabe2html: Make Makefile.am example code more
3024         cut-and-paste friendly.
3025
3026 2010-09-21  Simon Josefsson  <simon@josefsson.org>
3027
3028         * tests/test-net_if.c: New file.
3029         * modules/net_if-tests: New file.
3030
3031 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3032
3033         pthread: add pthread_spin_destroy
3034         * lib/pthread.in.h (pthread_spin_destroy): New function.
3035
3036 2010-09-19  Bruno Haible  <bruno@clisp.org>
3037
3038         gnulib-tool: Fix --help output.
3039         * gnulib-tool (func_usage): Fix help message.
3040         Reported by Reuben Thomas <rrt@sc3d.org>.
3041
3042 2010-09-18  Jim Meyering  <meyering@redhat.com>
3043
3044         maint.mk: avoid unexpanded \n in two diagnostics
3045         * top/maint.mk (sc_prohibit_always_true_header_tests):
3046         Don't use a literal \n in a halt=... assignment.  It would not be
3047         expanded, and the two \n bytes would appear in the diagnostic output
3048         rather than the desired newline.  Use halt=$$(printf ... instead.
3049         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3050
3051 2010-09-18  Bruno Haible  <bruno@clisp.org>
3052
3053         netinet_in: Doc tweak.
3054         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
3055         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3056
3057 2010-09-18  Jim Meyering  <meyering@redhat.com>
3058
3059         init.sh: correct an outdated comment
3060         * tests/init.sh (create_exe_shims_):  s/function/alias/
3061
3062         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
3063         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
3064         a file named "*.exe" is removed between the glob expansion and the
3065         processing of that oddly named file.
3066
3067 2010-09-17  Eric Blake  <eblake@redhat.com>
3068
3069         mirbsd: add some more support
3070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
3071         in BSD family.
3072         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
3073         devices as OpenBSD.
3074         * m4/host-os.m4 (mirbsd): Add MirBSD.
3075
3076         tests: fix unportable assumption on sys/wait.h
3077         * tests/test-sys_wait.c (main): Relax test.
3078         * tests/test-stdlib.c (main): Likewise.
3079
3080         init.sh: accomodate directory with no .exes
3081         * tests/init.sh: Accomodate directory containing only scripts.
3082
3083         tests: avoid compiler warning
3084         * tests/test-stdlib.c (main): Use the variable.
3085
3086         fdutimens, fdutimensat: update signature, again
3087         * lib/utimens.h (gl_futimens): Delete, and move signature...
3088         (fdutimens): ...here.
3089         (fdutimensat): Rearrange signature.
3090         (lutimensat): Rename variable for clarity.
3091         * lib/fdutimensat.c (fdutimensat): Update signature.
3092         * lib/utimens.c (fdutimens): Likewise.
3093         (gl_futimens): Delete.
3094         (utimens, lutimens): Update callers.
3095         * lib/futimens.c (futimens): Likewise.
3096         * tests/test-fdutimensat.c: Likewise.
3097         * tests/test-utimens.c: Likewise.
3098         * tests/test-futimens.h: Update comment.
3099         * NEWS: Mention this.
3100         Suggested by Paul Eggert.
3101
3102 2010-09-17  Bruno Haible  <bruno@clisp.org>
3103
3104         Take over the maintenance of some older macros from Autoconf.
3105         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
3106         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
3107         GNU Autoconf.
3108         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
3109         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
3110
3111 2010-09-17  Eric Blake  <eblake@redhat.com>
3112
3113         fdutimensat: drop atflag validation
3114         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
3115         with valid fd, to close a race scenario where futimens is
3116         unsupported and FILE was replaced by a symlink.
3117         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
3118         accordingly.
3119         Suggested by Paul Eggert.
3120
3121 2010-09-16  Bruno Haible  <bruno@clisp.org>
3122
3123         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
3124         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
3125
3126 2010-09-16  Bruno Haible  <bruno@clisp.org>
3127
3128         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
3129         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
3130         login_tty exists.
3131         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3132
3133 2010-09-16  Bruno Haible  <bruno@clisp.org>
3134
3135         login_tty: Make the replacement code work on BSD systems.
3136         * lib/login_tty.c: Include <sys/ioctl.h>.
3137         (login_tty): Use ioctl TIOCSCTTY when available.
3138         * modules/login_tty (Depends-on): Add sys_ioctl.
3139         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3140
3141 2010-09-16  Bruno Haible  <bruno@clisp.org>
3142
3143         login_tty: Stricter unit test.
3144         * modules/login_tty-tests (Depends-on): Add tcgetsid.
3145         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
3146         and tcgetsid() after login_tty.
3147         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3148
3149 2010-09-16  Bruno Haible  <bruno@clisp.org>
3150
3151         New module 'tcgetsid'.
3152         * lib/tcgetsid.c: New file.
3153         * m4/tcgetsid.m4: New file.
3154         * modules/tcgetsid: New file.
3155         * modules/termios (Depends-on): Add c++defs, warn-on-use.
3156         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
3157         GNULIB_TCGETSID, HAVE_TCGETSID.
3158         * lib/termios.in.h: Include <sys/types.h>.
3159         (tcgetsid): New declaration.
3160         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
3161         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
3162         * doc/posix-functions/tcgetsid.texi: Mention the new module.
3163         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
3164
3165 2010-09-16  Bruno Haible  <bruno@clisp.org>
3166
3167         Tests for module 'termios'.
3168         * modules/termios-c++-tests: New file.
3169         * modules/termios-tests: New file.
3170         * tests/test-termios-c++.cc: New file.
3171         * tests/test-termios.c: New file.
3172
3173         New module 'termios'.
3174         * modules/termios: New file.
3175         * lib/termios.in.h: New file.
3176         * m4/termios_h.m4: New file.
3177         * doc/posix-headers/termios.texi: Mention the new module.
3178
3179 2010-09-16  Eric Blake  <eblake@redhat.com>
3180
3181         fdutimensat: add an atflag parameter
3182         * lib/fdutimensat.c (fdutimensat): Add new parameter.
3183         * lib/utimens.h (fdutimensat): Update prototype.
3184         * tests/test-fdutimensat.c: Adjust test to match.
3185         * NEWS: Document the change.
3186         Suggested by Paul Eggert.
3187
3188 2010-09-16  Bruno Haible  <bruno@clisp.org>
3189
3190         Fix typos in comments.
3191         * lib/striconveh.h: Fix typo in comment.
3192         * lib/login_tty.c (login_tty): Likewise.
3193
3194 2010-09-15  Bruno Haible  <bruno@clisp.org>
3195
3196         stdlib: clarify MirBSD WEXITSTATUS bug
3197         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
3198         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3199
3200 2010-09-15  Eric Blake  <eblake@redhat.com>
3201
3202         stdlib: work around MirBSD WEXITSTATUS bug
3203         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
3204         * modules/stdlib (Depends-on): Add sys_wait.
3205         * tests/test-sys_wait.c (main): Enhance test.
3206         * tests/test-stdlib.c (main): Likewise.
3207         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
3208
3209         docs: mention MacOS issue with WEXITSTATUS(constant)
3210         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
3211         issue.
3212         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3213
3214         strnlen: add tests
3215         * modules/strnlen-tests: New file.
3216         * tests/test-strnlen.c: Likewise.
3217
3218 2010-09-14  Bruno Haible  <bruno@clisp.org>
3219
3220         unistr/base: Avoid link errors when module 'libunistring' is also used.
3221         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
3222         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
3223         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
3224         Declare also when HAVE_LIBUNISTRING is set.
3225         Reported by Pádraig Brady <P@draigbrady.com>.
3226
3227 2010-09-14  Eric Blake  <eblake@redhat.com>
3228
3229         test-rawmemchr: make more robust
3230         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
3231         (Depends-on, configure.ac): Add needed prerequisites to use it.
3232         * modules/memchr-tests (Files, Depends-on, configure.ac):
3233         Likewise, to avoid implicit reliance on memchr module prereqs.
3234         * tests/test-memchr.c (main): Ensure proper masking.
3235         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
3236         reads.
3237
3238         memchr: detect glibc Alpha bug
3239         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
3240         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
3241         Alpha.
3242         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
3243         * tests/test-memchr.c (main): Enhance test.
3244         Reported by Nelson H. F. Beebe.
3245
3246 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3247
3248         fts, getcwd, glob: audit for dirfd returning -1
3249         * lib/fts.c (opendir): Remove #define; no longer used.
3250         (opendirat): New arg PDIR_FD.  All callers changed.
3251         (fts_build, _opendir2): Use new opendirat to avoid the need for
3252         dirfd, or for checking whether dirfd returns a negative value.
3253         Don't use opendir; always use openat followed by fdopendir.
3254         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
3255         it.
3256         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
3257         returns -1 here.
3258         * modules/fts (Depends-on): Remove dirfd.
3259         * modules/getcwd (Depends-on): Likewise.
3260
3261 2010-09-13  Eric Blake  <eblake@redhat.com>
3262
3263         float: fix broken MirBSD header
3264         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
3265         * doc/posix-headers/float.texi (float.h): Document it.
3266
3267 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3268
3269         fts: use O_NOFOLLOW to avoid race condition when opening a directory
3270         * lib/fts.c (opendirat): New arg extra_flags.
3271         (__opendir2): Use it to avoid following symlinks when opening
3272         a directory, if symlinks are not supposed to be followed.  See
3273         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
3274
3275         fdopendir: preserve argument fd before returning
3276         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
3277         (fdopendir_with_dup, fd_clone_opendir): New static functions.
3278         (fdopendir): Use them, arranging for FD to be open to the same
3279         directory that it was when it started.  (It might be temporarily
3280         closed while fdopendir is running, so this not thread- or
3281         signal-safe.)  Be careful to do the right thing even when file
3282         descriptors are scarce and dup fails with errno == EMFILE.  See
3283         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
3284
3285 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
3286
3287         regex: Pass the system regex if its only problem is 32-bit regoff_t.
3288         * NEWS: Document change.
3289         * m4/regex.m4: Disable test for regoff_t size.
3290
3291 2010-09-13  Jim Meyering  <meyering@redhat.com>
3292
3293         fts: don't operate on an invalid file descriptor after failed dup
3294         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
3295         negative file descriptor.
3296
3297 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3298
3299         savedir: add streamsavedir, deprecate fdsavedir
3300         * NEWS: Mention deprecation of fdsavedir.
3301         * lib/savedir.c (streamsavedir): New extern function, whose name
3302         ends in "savedir" to be consistent with the others.  This differs
3303         from savedirstream in that it doesn't close its argument.  The
3304         next version of GNU tar will use this instead of fdsavedir, to
3305         avoid some race conditions and conserve file descriptors.
3306         (savedirstream): Reimplement as a wrapper around streamsavedir.
3307         (fdsavedir): Add a comment deprecating this function.  As far as
3308         I know, only GNU tar used it, and GNU tar doesn't need it any more.
3309         * lib/savedir.h (streamsavedir): New decl.
3310         (fdsavedir): Add a comment deprecating this.
3311
3312 2010-09-10  Bruno Haible  <bruno@clisp.org>
3313
3314         langinfo: Fix last commit.
3315         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
3316         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
3317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3318
3319 2010-09-10  Bruno Haible  <bruno@clisp.org>
3320
3321         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
3322         * lib/progreloc.c (O_EXEC): Define fallback.
3323
3324 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3325
3326         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
3327         * NEWS: Document recent changes to fcntl-h.
3328         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
3329         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
3330         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
3331         Similarly for O_SEARCH; this last was already true, but not documented.
3332         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
3333         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
3334         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
3335         Likewise.
3336         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
3337         is zero, not whether it is defined.
3338         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
3339         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
3340         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
3341
3342 2010-09-10  Bruno Haible  <bruno@clisp.org>
3343
3344         langinfo, nl_langinfo: Fix for IRIX 5.3.
3345         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
3346         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
3347         HAVE_LANGINFO_YESEXPR.
3348         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
3349         HAVE_LANGINFO_YESEXPR.
3350         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
3351         HAVE_LANGINFO_T_FMT_AMPM is 0.
3352         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
3353         HAVE_LANGINFO_YESEXPR is 0.
3354         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
3355         NOEXPR.
3356         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
3357         * doc/posix-functions/nl_langinfo.texi: Likewise.
3358         Reported by Eric Blake.
3359
3360 2010-09-10  Bruno Haible  <bruno@clisp.org>
3361
3362         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
3363         * doc/glibc-functions/login_tty.texi: Mention the include file problem
3364         on FreeBSD 8.0 and OpenBSD 4.6.
3365         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
3366         * m4/pty_h.m4 (gl_PTY_H): Likewise.
3367         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
3368         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
3369         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
3370         ac_includes_default.
3371         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3372
3373 2010-09-09  Eric Blake  <eblake@redhat.com>
3374
3375         strsignal: work around NetBSD bug
3376         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
3377         * lib/string.in.h (includes): Likewise.
3378         * doc/posix-functions/strsignal.texi (strsignal): Document the
3379         bug.
3380         Reported by Nelson H. F. Beebe.
3381
3382         gnulib-tool: work with NetBSD /bin/sh
3383         * gnulib-tool (func_cache_var, func_cache_lookup_module)
3384         (func_get_description, func_get_comment, func_get_status)
3385         (func_get_notice, func_get_applicability, func_get_filelist)
3386         (func_get_dependencies, func_get_autoconf_early_snippet)
3387         (func_get_autoconf_snippet, func_get_automake_snippet)
3388         (func_get_include_directive, func_get_link_directive)
3389         (func_get_license, func_get_maintainer, func_import): Avoid
3390         shell syntax errors from parsing syntax extensions.
3391
3392 2010-09-09  Bruno Haible  <bruno@clisp.org>
3393
3394         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3395         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3396         a reliable way to determine whether the 'alias' command works.
3397
3398 2010-09-08  Jim Meyering  <meyering@redhat.com>
3399
3400         init.sh: penalize a set-x-impaired shell; don't disqualify it
3401         * tests/init.sh: Too many shells corrupt application stderr when
3402         you set -x, so we can't afford to disqualify them, since at least
3403         on Irix-6.5, that would disqualify all bourne shells.
3404         Instead, use a two-pass approach.
3405         On the first pass, try to find a shell that meets the stricter
3406         condition that set -x does not corrupt stderr.
3407         If no shell meets the stricter condition, retest each candidate
3408         shell, but without that extra condition.  Finally, when
3409         VERBOSE=yes is requested and set -x might cause trouble, simply
3410         issue a warning and refrain from enabling debug output.
3411
3412 2010-09-08  Eric Blake  <eblake@redhat.com>
3413
3414         unsetenv: fix OpenBSD bug
3415         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3416         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3417         documentation.
3418         Reported by Jim Meyering.
3419
3420         strtod: work around IRIX 6.5 bug
3421         * lib/strtod.c (strtod): Reparse number on shorter string if
3422         exponent parse was invalid.
3423         * tests/test-strtod.c (main): Add check for "0x1p 2".
3424         Reported by Tom G. Christensen.
3425
3426         getopt: optimize previous patch
3427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3428         empty variable.  Speed up awk script.
3429         Reported by Paolo Bonzini.
3430
3431 2010-09-08  Jim Meyering  <meyering@redhat.com>
3432
3433         test.sh: disqualify shells for which set -x corrupts stderr
3434         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3435         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3436         appear in stderr output.  For example, this command:
3437             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3438         prints "P=1" on those two systems:
3439
3440 2010-09-08  Bruno Haible  <bruno@clisp.org>
3441
3442         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3443         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3444         commands, because some shells ignore redirections when there is an
3445         error in the command lookup.
3446         Reported by Eric Blake.
3447
3448 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3449
3450         * lib/regex.h: Fix a mention of `regex_compile' (should be
3451         `re_compile_pattern').
3452         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3453         (re_set_registers): Correct name of parameter in comment.
3454
3455         * doc/regex.texi: Add documentation for missing syntax flags.
3456         Remove commented-out documentation of defunct syntax option
3457         RE_NO_EMPTY_ALTS.
3458         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3459         Add documentation of re_set_registers.
3460         Document trick to re-use a pattern buffer by setting fastmap manually.
3461         Update documentation of struct re_pattern_buffer per public members.
3462         Uncomment documentation of equivalence class operators and
3463         collating symbol operators, since they are now implemented,
3464         Explain leftmost-longest matching in relation to alternatives.
3465         Tidy documentation of substring matching.
3466         Remove POSIX documentation, which is done better in
3467         glibc, and refer the reader there. Keep BSD API documentation, as
3468         that is not readily available elsewhere.
3469
3470 2010-09-07  Eric Blake  <eblake@redhat.com>
3471
3472         getopt: handle POSIXLY_CORRECT set but not exported
3473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3474         export state of POSIXLY_CORRECT, due to bash set -o posix.
3475         Reported by Dustin J. Mitchell.
3476
3477 2010-09-05  Bruno Haible  <bruno@clisp.org>
3478
3479         gnulib-tool: Highlight the changed options.
3480         * gnulib-tool (func_usage): Display the --import, --add-import,
3481         --remove-import explanations in bold font.
3482
3483 2010-09-06  Karl Berry  <karl@gnu.org>
3484
3485         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3486
3487 2010-09-05  Bruno Haible  <bruno@clisp.org>
3488
3489         uniwidth/width: Update comment.
3490         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3491         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3492
3493 2010-09-05  Bruno Haible  <bruno@clisp.org>
3494
3495         isinf, isnan: Relax license.
3496         * modules/isinf (License): Change from GPL to LGPL, with consent from
3497         Ben Pfaff.
3498         * modules/isnan (License): Likewise.
3499         Requested by Ludovic Courtès.
3500
3501 2010-09-04  Bruno Haible  <bruno@clisp.org>
3502
3503         gnulib-tool: Help migration from --import to --add-import or --update.
3504         * gnulib-tool: Emit a verbose error message when --import is used
3505         without any module name.
3506
3507 2010-09-04  Bruno Haible  <bruno@clisp.org>
3508
3509         Update doc about gnulib-tool.
3510         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3511         'gnulib-tool --update' in more detail.
3512         Reported by Eric Blake.
3513
3514 2010-09-04  Bruno Haible  <bruno@clisp.org>
3515
3516         gnulib-tool: Change --import. New options --add/remove-import.
3517         * gnulib-tool: New options --add-import, --remove-import.
3518         (func_usage): Document them.
3519         (have_associative): Define always.
3520         (func_import): In import mode, don't merge the specified settings with
3521         the cached settings. Implement remove-import mode.
3522         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3523         Explain when to use them versus --import.
3524         (Simple update): Use --add-import instead of --import.
3525         * NEWS: Mention the change.
3526
3527 2010-09-04  Bruno Haible  <bruno@clisp.org>
3528
3529         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3530         separate gnulib.mk.
3531
3532 2010-09-04  Bruno Haible  <bruno@clisp.org>
3533
3534         gnulib-tool: Don't talk about CVS any more.
3535         * gnulib-tool (func_usage, func_import): Write "version control"
3536         instead of CVS.
3537
3538 2010-09-04  Jim Meyering  <meyering@redhat.com>
3539
3540         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3541         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3542         false positives (whose names may be ill-chosen) when searching
3543         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3544         would cause a false-positive.
3545
3546         avoid coreutils "make distcheck" failure
3547         Coreutils tests with an absolute build directory name that contains
3548         a space.  Not quoting this directory name caused a failure.
3549         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3550         * tests/test-vc-list-files-cvs.sh: Likewise.
3551
3552 2010-09-04  Bruno Haible  <bruno@clisp.org>
3553
3554         gnulib-tool: Avoid error when run in a package without Makefile.am.
3555         * gnulib-tool: When collecting the m4dirs in a package that does not
3556         have a Makefile.am, eliminate those directories that contain no
3557         gnulib-cache.m4. Fix expression that counts these directories.
3558
3559 2010-09-04  Bruno Haible  <bruno@clisp.org>
3560
3561         update-copyright test: Improve output when perl is missing or too old.
3562         * tests/test-update-copyright.sh: Move test of Perl version down after
3563         the test whether Perl exists. Provide an explanation relating Perl's
3564         error message to Automake's SKIP: message.
3565
3566 2010-09-04  Bruno Haible  <bruno@clisp.org>
3567
3568         Don't augment PATH in TESTS_ENVIRONMENT.
3569         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3570         set abs_aux_dir instead of augmenting PATH.
3571         * modules/vc-list-files-tests (Makefile.am): Likewise.
3572         * tests/test-update-copyright.sh: Augment PATH here.
3573         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3574         path_prepend_.
3575         * tests/test-vc-list-files-git.sh: Likewise.
3576
3577 2010-09-04  Jim Meyering  <meyering@redhat.com>
3578
3579         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3580         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3581
3582 2010-09-04  Bruno Haible  <bruno@clisp.org>
3583
3584         strdup: Fix compilation error in C++ mode.
3585         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3586         the macro.
3587
3588 2010-09-04  Bruno Haible  <bruno@clisp.org>
3589
3590         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3591         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3592         macro into a function.
3593         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3594
3595 2010-09-04  Bruno Haible  <bruno@clisp.org>
3596
3597         Set PATH_SEPARATOR the same way autoconf does.
3598         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3599         the value of PATH_SEPARATOR the same way autoconf-generated configure
3600         scripts do.
3601         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3602         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3603
3604 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3605
3606         Set PATH_SEPARATOR the same way autoconf does.
3607         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3608         the same way autoconf-generated configure scripts do.
3609         * posix-modules: Likewise.
3610
3611 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3612
3613         hash: fix safe_hasher const typo
3614         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3615         const; otherwise, there is a type error later.
3616
3617 2010-09-02  Jim Meyering  <meyering@redhat.com>
3618
3619         test-update-copyright.sh: require perl 5.8.0
3620         * tests/test-update-copyright.sh: Require 5.8.0,
3621         which Tom G. Christensen has confirmed is adequate,
3622         while 5.6.1 is not.
3623
3624 2010-09-02  Eric Blake  <eblake@redhat.com>
3625
3626         tests: init.sh improvements for re-exec'ing with zsh
3627         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3628         -vx through shell re-exec.
3629         Reported by Tom G. Christensen.
3630
3631         wctype: fix typo in previous commit
3632         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3633         Reported by Ludovic Courtès.
3634
3635 2010-09-02  Jim Meyering  <meyering@redhat.com>
3636
3637         test-update-copyright.sh: skip test if Perl is too old
3638         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3639         Reported by Tom G. Christensen.
3640
3641 2010-09-02  Bruno Haible  <bruno@clisp.org>
3642
3643         wctype: Avoid compilation error on IRIX 6.5.30.
3644         * lib/wctype.in.h (iswblank): Declare with a replacement if
3645         REPLACE_ISWBLANK is set.
3646         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3647         declared. Set REPLACE_ISWBLANK.
3648         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3649         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3650         * doc/posix-headers/wctype.texi: Likewise.
3651         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3652
3653 2010-09-01  Bruno Haible  <bruno@clisp.org>
3654
3655         New module 'socketlib'.
3656         * modules/socketlib: New file.
3657         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3658         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3659         * modules/sockets (Depends-on): Add socketlib.
3660         Suggested by Sam Steingold <sds@gnu.org>.
3661
3662 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3663
3664         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3665
3666         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3667         when one needs search access to a directory but not read access.
3668         On systems where it is available, it works in some cases where
3669         O_RDONLY does not, namely on directories that are searchable but
3670         not readable, and which need only to be searchable.  If O_SEARCH
3671         is not available, fall back to the traditional method of using
3672         O_RDONLY.
3673
3674         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
3675         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
3676         when opening a directory that needs only to be searchable.
3677         * lib/chdir-safer.c (chdir_no_follow): Likewise.
3678         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
3679         * lib/openat-proc.c (openat_proc_name): Likewise.
3680         * lib/openat.c (openat_needs_fchdir): Likewise.
3681         * lib/save-cwd.c (save_cwd): Likewise.
3682         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
3683
3684 2010-08-28  Bruno Haible  <bruno@clisp.org>
3685
3686         New module 'host-cpu-c-abi'.
3687         * modules/host-cpu-c-abi: New file.
3688         * m4/host-cpu-c-abi.m4: New file, based on part of
3689         clisp/src/m4/general.m4.
3690         Requested by Sam Steingold <sds@gnu.org>.
3691
3692 2010-08-31  Eric Blake  <eblake@redhat.com>
3693         and Jim Meyering  <meyering@redhat.com>
3694
3695         hash: factor, and guard against misbehaving hasher function
3696         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
3697         of table->hasher's return value.  Also protect against a hash value
3698         so large that adding it to table->bucket results in a NULL pointer.
3699         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
3700         Use it in place of open-coded check-and-abort.
3701
3702 2010-08-30  Bruno Haible  <bruno@clisp.org>
3703
3704         hash: silence spurious clang warning
3705         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
3706         Reported by Eric Blake.
3707
3708 2010-08-30  Eric Blake  <eblake@redhat.com>
3709
3710         strstr, memmem, strcasestr: avoid leaked shell message
3711         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
3712         FreeBSD.
3713         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3714         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3715
3716         tests: silence clang warning
3717         * tests/test-malloca.c (do_allocation): Avoid dead store.
3718
3719 2010-08-29  Bruno Haible  <bruno@clisp.org>
3720
3721         gettext: Fix recent mistake.
3722         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
3723
3724 2010-08-29  Bruno Haible  <bruno@clisp.org>
3725
3726         selinux-h: Offer a --without-selinux option.
3727         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
3728         --without-selinux was specified, skip all tests and define
3729         HAVE_SELINUX_SELINUX_H to 0.
3730         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
3731         set LIB_SELINUX to empty.
3732         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
3733         gl_LIBSELINUX. If --without-selinux was specified, replace
3734         selinux/context.h.
3735         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
3736
3737 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3738             Bruno Haible  <bruno@clisp.org>
3739
3740         Make the module 'realloc-gnu' work again on AIX and OSF/1.
3741         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
3742         of HAVE_REALLOC.
3743         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
3744         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
3745         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
3746         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3747
3748 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3749             Bruno Haible  <bruno@clisp.org>
3750
3751         Make the module 'calloc-gnu' work again on AIX and OSF/1.
3752         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
3753         HAVE_CALLOC.
3754         * lib/xmalloc.c: Update accordingly.
3755         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
3756         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
3757         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
3758
3759 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3760             Bruno Haible  <bruno@clisp.org>
3761
3762         Make the module 'malloc-gnu' work again on AIX and OSF/1.
3763         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
3764         HAVE_MALLOC.
3765         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
3766         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
3767         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3768
3769 2010-08-29  Bruno Haible  <bruno@clisp.org>
3770
3771         Update modules list.
3772         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3773         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
3774         (String handling <string.h>): Add astrxfrm.
3775         (File system functions): Add readlinkat.
3776
3777 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3778
3779         Tests for module 'realloc-gnu'.
3780         * modules/realloc-gnu-tests: New file.
3781         * tests/test-realloc-gnu.c: New file.
3782
3783         Tests for module 'calloc-gnu'.
3784         * modules/calloc-gnu-tests: New file.
3785         * tests/test-calloc-gnu.c: New file.
3786
3787         Tests for module 'malloc-gnu'.
3788         * modules/malloc-gnu-tests: New file.
3789         * tests/test-malloc-gnu.c: New file.
3790
3791 2010-08-28  Bruno Haible  <bruno@clisp.org>
3792
3793         Rename module 'realloc' -> 'realloc-gnu'.
3794         * modules/realloc-gnu: New file, copied from modules/realloc.
3795         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
3796         obsolete.
3797         * modules/mgetgroups (Depends-on): Update.
3798         * doc/posix-functions/realloc.texi: Update.
3799         * NEWS: Mention the change.
3800
3801         Rename module 'calloc' -> 'calloc-gnu'.
3802         * modules/calloc-gnu: New file, copied from modules/calloc.
3803         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
3804         obsolete.
3805         * doc/posix-functions/calloc.texi: Update.
3806         * NEWS: Mention the change.
3807
3808         Rename module 'malloc' -> 'malloc-gnu'.
3809         * modules/malloc-gnu: New file, copied from modules/malloc.
3810         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
3811         obsolete.
3812         * modules/argp (Depends-on): Update.
3813         * modules/regex (Depends-on): Update.
3814         * doc/posix-functions/malloc.texi: Update.
3815         * NEWS: Mention the change.
3816
3817 2010-08-28  Eric Blake  <eblake@redhat.com>
3818
3819         pread, pwrite: add missing dependency
3820         * modules/pread (Depends-on): Add extensions.
3821         * modules/pwrite (Depends-on): Likewise.
3822
3823 2010-08-28  Bruno Haible  <bruno@clisp.org>
3824
3825         unistr/u*-strchr: Fix tests dependencies.
3826         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
3827         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
3828         Reported by Ian Beckwith <ianb@erislabs.net>.
3829
3830 2010-08-28  Bruno Haible  <bruno@clisp.org>
3831
3832         read-file: Don't occupy too much unused memory.
3833         * lib/read-file.c (fread_file): Shrink the buffer at the end.
3834
3835 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
3836             Eric Blake  <eblake@redhat.com>
3837             Bruno Haible  <bruno@clisp.org>
3838
3839         read-file: Avoid memory reallocations with regular files.
3840         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3841         (fread_file): With regular files, use the remaining length as the
3842         initial buffer size.  Check against overflow.
3843         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3844         sys_stat.
3845
3846 2010-08-28  Bruno Haible  <bruno@clisp.org>
3847
3848         ftello: Relax license.
3849         * modules/ftello (License): Relax to LGPLv2+.
3850         Reported by Eric Blake.
3851
3852 2010-08-28  Bruno Haible  <bruno@clisp.org>
3853
3854         Avoid relocwrapper link errors due to gnulib replacement functions.
3855         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3856         function.
3857         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3858
3859 2010-08-28  Bruno Haible  <bruno@clisp.org>
3860
3861         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3862         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3863         defined.
3864         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3865         Suggested by Eric Blake.
3866
3867 2010-08-28  Bruno Haible  <bruno@clisp.org>
3868
3869         sys_socket, netdb: Ensure socklen_t gets defined.
3870         * modules/sys_socket (Depends-on): Add socklen.
3871         * modules/netdb (Depends-on): Likewise.
3872         * modules/getaddrinfo (Depends-on): Remove socklen.
3873         * modules/getsockopt (Depends-on): Likewise.
3874         * modules/setsockopt (Depends-on): Likewise.
3875         * tests/test-sys_socket.c: Check that socklen_t is defined.
3876         * tests/test-netdb.c: Likewise.
3877         * m4/socklen.m4: Update comments.
3878         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3879
3880 2010-08-27  Eric Blake  <eblake@redhat.com>
3881
3882         login_tty: add missing dependency
3883         * modules/login_tty (Depends-on): Add pty.
3884
3885 2010-08-26  Eric Blake  <eblake@redhat.com>
3886
3887         lib-symbol-versions: fix m4 quoting
3888         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3889         format for AC_LINK_IFELSE.
3890
3891         glob: fix compile test
3892         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3893
3894         btowc: fix missing file
3895         * modules/btowc (Files): Also ship locale-fr.m4.
3896
3897         lseek: fix link test
3898         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3899         AC_LINK_IFELSE.
3900
3901         include_next: silence autoconf 2.68 warning
3902         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3903         AC_COMPILE_IFELSE as special.
3904         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3905         autoconf < 2.68.
3906
3907         acl: fix compilation test
3908         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3909         AC_COMPILE_IFELSE.
3910
3911 2010-08-26  Bruno Haible  <bruno@clisp.org>
3912
3913         Modernize AC_TRY_RUN invocations.
3914         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3915         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3916         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3917         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3918         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3919         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3920         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3921         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3922         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3923         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3924         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3925         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3926         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3927         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3928         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3929         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3930         gl_MBRLEN_NUL_RETVAL): Likewise.
3931         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3932         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3933         Likewise.
3934         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3935         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3936         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3937         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3938         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3939         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3940         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3941         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3942         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3943         Likewise.
3944         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3945         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3947         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3948         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3949         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3950         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3951         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3952         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3954
3955 2010-08-26  Bruno Haible  <bruno@clisp.org>
3956
3957         Modernize AC_TRY_LINK invocations.
3958         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3959         AC_TRY_LINK.
3960         * m4/argp.m4 (gl_ARGP): Likewise.
3961         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3962         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3963         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3964         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3965         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3966         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3967         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3968         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3969         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3970         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3971         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3972         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3973         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3974         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3975         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3976         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3977         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3978         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3979         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3980         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3981         Likewise.
3982         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3983         Likewise.
3984         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3985         Likewise.
3986         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3987         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3988         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3989         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3990         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3991         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3992         * m4/servent.m4 (gl_SERVENT): Likewise.
3993         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3994         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3995         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3996         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3997         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3998         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3999         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4000         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4001         * modules/tsearch-tests (configure.ac): Likewise.
4002
4003 2010-08-26  Bruno Haible  <bruno@clisp.org>
4004
4005         Modernize AC_TRY_COMPILE invocations.
4006         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
4007         AC_TRY_COMPILE.
4008         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
4009         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
4010         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
4011         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
4012         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
4013         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
4014         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
4015         * m4/lock.m4 (gl_LOCK): Likewise.
4016         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
4017         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4018         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
4019         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4020         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
4021         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
4022         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
4023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
4024         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
4025         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
4026         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
4027         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
4028         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
4029         extraneous semicolon.
4030
4031 2010-08-26  Jim Meyering  <meyering@redhat.com>
4032
4033         stat-time: relax license LGPL
4034         * modules/stat-time (License): Change from GPL to LGPL,
4035         with consent from all contributors, for use in libguile.
4036         Requested by Ludovic Courtès.
4037
4038 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
4039
4040         poll: return immediately on POLLHUP.
4041         * lib/poll.c (poll): Always set timeout before wait_timeout is
4042         computed.
4043
4044 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4045
4046         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
4047         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
4048         rmdir ("dir/.//"), unlinkat.
4049
4050 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4051
4052         stdbool: avoid spurious failure with modern xlc
4053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4054
4055 2010-08-24  Bruno Haible  <bruno@clisp.org>
4056
4057         getloadavg: simplify code
4058         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
4059         gl_have_func. Update comments.
4060
4061 2010-08-24  Eric Blake  <eblake@redhat.com>
4062
4063         getloadavg: don't define SVR4 on cygwin
4064         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
4065         only define SVR4 when -lkvm is required.
4066         Reported by Yaakov Selkowitz.
4067
4068 2010-08-24  Bruno Haible  <bruno@clisp.org>
4069
4070         priv-set: fix comment
4071         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
4072
4073 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4074
4075         priv-set: fix comments
4076         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
4077         to match code, as suggested by David Bartley in:
4078         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
4079
4080 2010-08-23  Eric Blake  <eblake@redhat.com>
4081
4082         stdbool: avoid rejecting clang
4083         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4084         * tests/test-stdbool.c: Enable more tests if using the system
4085         <stdbool.h> instead of the gnulib replacement.
4086         (main): Move xlc bug test to a runtime test for all compilers.
4087         Reported by Anders Kaseorg.
4088
4089         argz: fix shell quoting issue
4090         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
4091         Reported by Charles Wilson.
4092
4093 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
4094             Erik Faye-Lund <kusmabite@gmail.com>
4095
4096         poll, select: handle ERROR_BROKEN_PIPE.
4097         * lib/poll.c (win32_compute_revents): Return POLLHUP when
4098         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4099         * lib/select.c (win32_compute_revents): Do not mark a pipe
4100         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4101
4102 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
4103
4104         fts: allow compilation with C++
4105         * lib/fts_.h: Specify extern "C" linkage with C++.
4106
4107 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4108
4109         Fix gnulib-tool sed script de-commentation for AIX sed.
4110         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
4111         sed.
4112
4113 2010-08-17  Eric Blake  <eblake@redhat.com>
4114
4115         test-stddef: test for (some) offsetof bugs
4116         * tests/test-stddef.c: Enhance test to ensure correct type of
4117         offsetof.
4118         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
4119         that we are not fixing at this time.
4120
4121 2010-08-15  Bruno Haible  <bruno@clisp.org>
4122
4123         stpncpy: Allow stpncpy to be defined as a macro.
4124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
4125         if it's already correctly declared.
4126         * lib/string.in.h (stpncpy): Undefine before redefining.
4127         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
4128
4129 2010-08-14  Bruno Haible  <bruno@clisp.org>
4130
4131         Rename module 'memxfrm' to 'amemxfrm'.
4132         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
4133         (amemxfrm): Renamed from memxfrm.
4134         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
4135         (amemxfrm): Renamed from memxfrm.
4136         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
4137         * NEWS: Mention the change.
4138         * MODULES.html.sh (String handling <string.h>): Update.
4139         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
4140         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
4141         * lib/unicase/u16-casexfrm.c: Likewise.
4142         * lib/unicase/u32-casexfrm.c: Likewise.
4143         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
4144         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
4145         * lib/uninorm/u16-normxfrm.c: Likewise.
4146         * lib/uninorm/u32-normxfrm.c: Likewise.
4147         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
4148         memxfrm.
4149         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
4150         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
4151         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
4152         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
4153         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
4154         Suggested by Paul Eggert.
4155
4156 2010-08-14  Bruno Haible  <bruno@clisp.org>
4157
4158         Tests for module 'astrxfrm'.
4159         * modules/astrxfrm-tests: New file.
4160         * tests/test-astrxfrm.c: New file.
4161
4162         New module 'astrxfrm'.
4163         * lib/astrxfrm.h: New file.
4164         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
4165         * modules/astrxfrm: New file.
4166
4167 2010-08-14  Reuben Thomas <rrt@sc3d.org>
4168
4169         regex: Tweak doc.
4170         * doc/regex.texi (Overview): Don't mention regex.c.
4171         (GNU Regular Expression Compiling): Likewise.
4172         (Match-end-of-line Operator): Mention 'not_eol'.
4173
4174 2010-08-14  Brian Gough  <bjg@gnu.org>
4175             Bruno Haible  <bruno@clisp.org>
4176
4177         git-merge-changelog: add doc relating to use with bzr and hg.
4178         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
4179
4180 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
4181
4182         pthread: fix pthread.h creation for srcdir != builddir
4183         * modules/pthread (Makefile.am): Fix the rule to work also in a
4184         non-srcdir build.
4185
4186 2010-08-13  Karl Berry  <karl@gnu.org>
4187
4188         * doc/regex.texi (Predefined Syntaxes): @smallexample.
4189         * doc/posix-*/*: force line break before @url of POSIX
4190         specifications.
4191         Suggested by Werner Lemberg.
4192
4193 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4194
4195         strtod: fix const diagnostic
4196         * lib/strtod.c (strtod): Don't assign const char * to char *,
4197         as this elicits a warning from GCC when warnings are enabled.
4198
4199 2010-08-10  Pádraig Brady <P@draigbrady.com>
4200         and Eric Blake  <eblake@redhat.com>
4201
4202         copy-acl: ignore ENOTSUP on HP-UX
4203         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
4204         so that it is available for HP-UX.
4205         * lib/copy-acl.c (qcopy_acl): Use it.
4206         Reported by Patrick M. Callahan.
4207
4208 2010-08-10  Eric Blake  <eblake@redhat.com>
4209
4210         open, chown: relax license
4211         * modules/open (License): Change to LGPLv2+, with consent by all
4212         authors, for use in augeas.
4213         * modules/chown (License): Likewise.
4214         * modules/lchown (Likewise): Likewise.
4215         Requested by Adam Stokes.
4216
4217 2010-08-09  Karl Berry  <karl@gnu.org>
4218
4219         * build-aux/ar-lib: new file, import from Automake.
4220         * config/srclist.txt: autocheck for updates.
4221
4222 2010-08-09  Eric Blake  <eblake@redhat.com>
4223
4224         readlinkat: adjust client modules
4225         * modules/areadlinkat (Depends-on): Use readlinkat, not
4226         symlinkat.
4227         * modules/areadlinkat-with-size (Depends-on): Likewise.
4228
4229         mknod: be more vocal about danger of running tests as root
4230         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
4231         root, since that is just asking for problems.
4232         Suggested by Bruno Haible, based on a report by Rainer Tammer.
4233
4234         readlinkat: split into its own module
4235         * modules/symlinkat: Split readlinkat...
4236         * modules/readlinkat: ...into separate module.
4237         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
4238         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
4239         * lib/symlinkat.c (readlinkat): Move...
4240         * lib/readlinkat.c: ...into new file.
4241         * modules/symlinkat-tests: Split readlinkat test...
4242         * modules/readlinkat-tests: ...into separate module.
4243         * tests/test-symlinkat.c: Split...
4244         * tests/test-readlinkat.c: ...into new file.
4245         * NEWS: Document the split.
4246         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4247         * lib/unistd.in.h (readlinkat): Likewise.
4248         Suggested by Bruno Haible.
4249
4250 2010-08-08  Bruno Haible  <bruno@clisp.org>
4251
4252         memxfrm: Speed up.
4253         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
4254         that usually only one call to strxfrm is necessary for each string
4255         part.
4256         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4257
4258 2010-08-07  Karl Berry  <karl@gnu.org>
4259
4260         * doc/posix-headers/limits.texi,
4261         * doc/posix-functions/malloc.texi,
4262         * doc/posix-functions/strsignal.texi: missing @item.
4263         * doc/ld-version-script.texi: spurious leading i.
4264         * doc/regex.texi (Interval Operators): no commas inside @var.
4265
4266 2010-08-01  Bruno Haible  <bruno@clisp.org>
4267
4268         Integrate the regex documentation.
4269         * doc/gnulib.texi: Define 'cn' index.
4270         (Regular expressions): New a chapter that includes regex.texi and
4271         regexprops-generic.texi.
4272         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
4273         syntax.
4274
4275         Whitespace cleanup.
4276         * doc/regex.texi: Remove trailing spaces.
4277
4278         Add regex documentation.
4279         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
4280         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
4281         Written by Kathy A. Hargreaves and Karl Berry.
4282
4283 2010-08-01  Bruno Haible  <bruno@clisp.org>
4284
4285         link: Update documentation.
4286         * doc/posix-functions/link.texi: Update regarding Solaris.
4287
4288 2010-07-31  Bruno Haible  <bruno@clisp.org>
4289
4290         Update modules list.
4291         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
4292         (String handling <string.h>): Add memcmp2, memxfrm.
4293         (Container data structures): Add xlist, xsublist, xoset.
4294         (Core language properties): Add alignof, unused-parameter.
4295         (Process control, Numeric conversion functions <stdlib.h>): Renamed
4296         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
4297         (Unibyte characters <ctype.h>): New section.
4298         (String handling <string.h>): New section.
4299         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
4300         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
4301         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
4302         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
4303         tan, tanh, tanl, y0, y1, yn.
4304         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
4305         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
4306         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
4307         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
4308         unlockpt, vdprintf, vdprintf-posix.
4309         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
4310         (File system functions): Add concat-filename, sys_file, sys_ioctl,
4311         xconcat-filename.
4312         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
4313         getdtablesize, pipe2, pipe2-safer.
4314         (Security): New section.
4315         (Networking functions): Add accept4.
4316         (Signal handling): Add sigpipe.
4317         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
4318         mbmemcasecoll.
4319         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
4320         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
4321         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
4322         pipe-filter-ii.
4323         (Misc): Add argp-version-etc, login_tty, parse-duration.
4324
4325 2010-07-31  Bruno Haible  <bruno@clisp.org>
4326
4327         Improve doc in MODULES.html.
4328         * modules/linkat (Description): Add the word "function".
4329         * modules/mkfifo (Description): Likewise.
4330         * modules/mknod (Description): Likewise.
4331         * modules/remove (Description): Likewise.
4332         * modules/renameat (Description): Likewise.
4333         * modules/stat (Description): Likewise.
4334         * modules/symlink (Description): Likewise.
4335         * modules/unlink (Description): Likewise.
4336
4337 2010-07-31  Bruno Haible  <bruno@clisp.org>
4338
4339         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
4340         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
4341         option --enable/disable-c++ instead of --enable/disable-cxx.
4342         * NEWS: Mention the change.
4343
4344 2010-07-31  Bruno Haible  <bruno@clisp.org>
4345
4346         readlink, areadlink: Relax test a bit.
4347         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
4348         alternative to ENOTDIR.
4349         * tests/test-areadlink.h (test_areadlink): Likewise.
4350         Reported by Rainer Tammer.
4351
4352 2010-07-31  Bruno Haible  <bruno@clisp.org>
4353
4354         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
4355         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
4356         character, perform the search using U_STRCHR.
4357         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
4358         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
4359         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
4360         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
4361         Suggested by Paolo Bonzini.
4362
4363 2010-07-31  Bruno Haible  <bruno@clisp.org>
4364
4365         unistr/u*-strstr: Fix dependencies.
4366         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
4367         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
4368         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
4369
4370 2010-07-31  Bruno Haible  <bruno@clisp.org>
4371
4372         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
4373         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
4374         the beginning of the loop.
4375         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
4376         cases in 'switch' statement.
4377
4378         unistr/u8-strchr: Fix several bugs.
4379         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
4380         the string. When not found, return NULL, not a pointer near the end.
4381
4382         More tests for unistr/u8-strchr.
4383         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
4384         that the function does not read past the first occurrence of the byte
4385         being searched.
4386         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
4387         * tests/unistr/test-u16-strchr.c (main): New function.
4388         * tests/unistr/test-u32-strchr.c (main): New function.
4389
4390 2010-07-31  Bruno Haible  <bruno@clisp.org>
4391
4392         posix-modules: Ignore backup files of documentation files.
4393         * posix-modules: grep only through files named *.texi.
4394
4395 2010-07-31  Bruno Haible  <bruno@clisp.org>
4396
4397         symlinkat: Fix documentation.
4398         * doc/posix-functions/readlinkat.texi: Fix module name.
4399
4400 2010-07-31  Bruno Haible  <bruno@clisp.org>
4401
4402         fchownat: Replace also when chown has the trailing slash bug.
4403         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4404         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4405         introduced on 2010-04-10.
4406         Reported by Rainer Tammer.
4407
4408 2010-07-31  Bruno Haible  <bruno@clisp.org>
4409
4410         linkat: Work around AIX 7.1 bug.
4411         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4412         whether linkat handles trailing slash correctly. If not, replace linkat
4413         and define LINKAT_TRAILING_SLASH_BUG.
4414         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4415         check whether (fd1,file1) points to a directory if file1 or file2 ends
4416         in a slash. Code taken from lib/link.c.
4417         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4418         Reported by Rainer Tammer.
4419
4420 2010-07-31  Bruno Haible  <bruno@clisp.org>
4421
4422         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4423         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4424         This disables an xlc optimization that was causing wrong test results.
4425         Reported by Rainer Tammer.
4426
4427 2010-07-31  Bruno Haible  <bruno@clisp.org>
4428
4429         iconv: Work around AIX 6.1..7.1 bug.
4430         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4431         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4432         cross-compiling, guess no on all versions of AIX.
4433         Reported by Rainer Tammer.
4434
4435 2010-07-31  Bruno Haible  <bruno@clisp.org>
4436
4437         readlink: Relax test a bit.
4438         * tests/test-readlink.h (test_readlink): Allow different errno value
4439         when readlink is called with a file name that ends in / and refers to
4440         a file.
4441         Suggested by Eric Blake.
4442         Reported by Rainer Tammer.
4443
4444 2010-07-31  Bruno Haible  <bruno@clisp.org>
4445
4446         copysign: Does not require -lm on glibc systems.
4447         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4448         gl_COMMON_DOUBLE_MATHFUNC.
4449         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4450
4451 2010-07-31  Bruno Haible  <bruno@clisp.org>
4452
4453         duplocale: Work around AIX 7.1 bug.
4454         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4455         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4456         * lib/duplocale.c (rpl_duplocale): Update comment.
4457         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4458         Reported by Rainer Tammer.
4459
4460 2010-07-30  Bruno Haible  <bruno@clisp.org>
4461
4462         dirfd: Avoid link error on AIX 7.1.
4463         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4464         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4465         exist, set REPLACE_DIRFD.
4466         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4467         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4468         * doc/posix-functions/dirfd.texi: Update.
4469         Reported by Rainer Tammer.
4470
4471 2010-07-30  Eric Blake  <eblake@redhat.com>
4472
4473         strtod: next round of AIX fixes
4474         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4475         exponent.
4476         * tests/test-strtod.c (main): Enhance tests.
4477         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4478         Reported by Rainer Tammer.
4479
4480         futimens: fix configure check
4481         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4482         Reported by Bruno Haible.
4483
4484 2010-07-30  Bruno Haible  <bruno@clisp.org>
4485
4486         getline: Update regarding AIX.
4487         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4488         Reported by Rainer Tammer.
4489
4490 2010-07-30  Bruno Haible  <bruno@clisp.org>
4491
4492         wcwidth: Drop replacement on AIX 7.
4493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4494         AIX 7.
4495         Reported by Rainer Tammer.
4496
4497 2010-07-30  Bruno Haible  <bruno@clisp.org>
4498
4499         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4500         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4501         a 'char *'.
4502         Reported by Rainer Tammer.
4503
4504 2010-07-30  Bruno Haible  <bruno@clisp.org>
4505
4506         unlink: Update regarding AIX.
4507         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4508         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4509         Reported by Rainer Tammer.
4510
4511 2010-07-30  Bruno Haible  <bruno@clisp.org>
4512
4513         symlink: Update regarding AIX.
4514         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4515         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4516         Reported by Rainer Tammer.
4517
4518 2010-07-30  Bruno Haible  <bruno@clisp.org>
4519
4520         strndup: Update regarding AIX.
4521         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4522         AIX 7.
4523         Reported by Rainer Tammer.
4524
4525 2010-07-30  Bruno Haible  <bruno@clisp.org>
4526
4527         stat: Update regarding AIX.
4528         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4529         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4530         Reported by Rainer Tammer.
4531
4532 2010-07-30  Bruno Haible  <bruno@clisp.org>
4533
4534         truncl: Fix autoconf test.
4535         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4536         whether truncl works.
4537         Reported by Rainer Tammer.
4538
4539 2010-07-30  Bruno Haible  <bruno@clisp.org>
4540
4541         round: Update regarding AIX.
4542         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4543         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4544         Reported by Rainer Tammer.
4545
4546 2010-07-30  Bruno Haible  <bruno@clisp.org>
4547
4548         rename: Update regarding AIX.
4549         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4550         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4551         Reported by Rainer Tammer.
4552
4553 2010-07-30  Bruno Haible  <bruno@clisp.org>
4554
4555         printf.m4: Update regarding AIX.
4556         * m4/printf.m4: Update comments regarding AIX.
4557         Reported by Rainer Tammer.
4558
4559 2010-07-30  Bruno Haible  <bruno@clisp.org>
4560
4561         iconv: Update regarding AIX.
4562         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4563         AIX 7.
4564         Reported by Rainer Tammer.
4565
4566 2010-07-30  Bruno Haible  <bruno@clisp.org>
4567
4568         getopt: Update regarding AIX.
4569         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4570         no on AIX.
4571         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4572         Reported by Rainer Tammer.
4573
4574 2010-07-30  Bruno Haible  <bruno@clisp.org>
4575
4576         ldexpl; Update regarding AIX.
4577         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4578         on AIX 7.
4579         Reported by Rainer Tammer.
4580
4581 2010-07-30  Bruno Haible  <bruno@clisp.org>
4582
4583         frexpl: Update regarding AIX.
4584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4585         on AIX 7.
4586         Reported by Rainer Tammer.
4587
4588 2010-07-30  Bruno Haible  <bruno@clisp.org>
4589
4590         open, fopen: Update regarding AIX.
4591         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4592         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4593         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4594         * doc/posix-functions/fopen.texi: Likewise.
4595         Reported by Rainer Tammer.
4596
4597 2010-07-30  Bruno Haible  <bruno@clisp.org>
4598
4599         chown: Update doc regarding AIX.
4600         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4601         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4602         Reported by Rainer Tammer.
4603
4604 2010-07-30  Eric Blake  <eblake@redhat.com>
4605
4606         strtod: fix bug in replacement function on AIX
4607         * lib/strtod.c (strtod): Special case broken "0x" parse in
4608         underlying strtod.
4609         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4610         * doc/posix-functions/strtod.texi (strtod): Likewise.
4611         Reported by Rainer Tammer.
4612
4613 2010-07-30  Bruno Haible  <bruno@clisp.org>
4614
4615         mbrlen: Fix cross-compilation guess for AIX.
4616         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4617         guess. Leftover from 2008-12-22.
4618
4619 2010-07-30  Bruno Haible  <bruno@clisp.org>
4620
4621         mbrtowc: Fix cross-compilation guess for AIX.
4622         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4623         guess. Leftover from 2008-12-21.
4624
4625 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4626
4627         init.sh: work around trap limitation of some shells
4628         * tests/init.sh (setup_): Move exit trap outside of shell function.
4629
4630 2010-07-29  Eric Blake  <eblake@redhat.com>
4631
4632         strtod: aid debugging
4633         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4634         understanding why strtod is rejected.
4635
4636 2010-07-28  Bruno Haible  <bruno@clisp.org>
4637
4638         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4639         * lib/unistr/u8-chr.c: Include <string.h>.
4640         * tests/unistr/test-u8-chr.c: Likewise.
4641         * tests/unistr/test-u16-chr.c: Likewise.
4642         * tests/unistr/test-u32-chr.c: Likewise.
4643         * tests/unistr/test-u8-strchr.c: Likewise.
4644         * tests/unistr/test-u16-strchr.c: Likewise.
4645         * tests/unistr/test-u32-strchr.c: Likewise.
4646         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4647         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4648         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4649         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4650
4651 2010-07-28  Bruno Haible  <bruno@clisp.org>
4652
4653         Use spaces for indentation, not tabs.
4654         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4655
4656 2010-07-27  Bruno Haible  <bruno@clisp.org>
4657
4658         mbspcasecmp: Fix function specification.
4659         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4660         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4661         Reported by Eric Blake <eblake@redhat.com>.
4662
4663 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4664
4665         timespec: use cast and not conditional, as truncation isn't possible
4666         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4667         instead of a conditional.  Comment about the situation in more detail.
4668         This undoes most of the 2009-10-29 patch.
4669
4670 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4671
4672         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4673         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
4674         * lib/unistr/u8-strchr.c: Likewise.
4675         * modules/unistr/u8-chr: Depend on memchr.
4676
4677         unistr/u*-strchr: add tests
4678         * modules/unistr/u8-strchr-tests: New file.
4679         * modules/unistr/u16-strchr-tests: New file.
4680         * modules/unistr/u32-strchr-tests: New file.
4681         * tests/unistr/test-strchr.h: New file.
4682         * tests/unistr/test-u8-strchr.c: New file.
4683         * tests/unistr/test-u16-strchr.c: New file.
4684         * tests/unistr/test-u32-strchr.c: New file.
4685
4686         unistr/u*-chr: test multibyte sequences more
4687         * tests/unistr/test-chr.h: Do complete testing of the characters in the
4688         test vector.
4689         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
4690         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
4691         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
4692
4693         unistr/u*-chr: test multibyte sequences
4694         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
4695
4696         unistr/u*-chr: prepare for multibyte tests
4697         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
4698         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
4699         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
4700         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
4701         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
4702         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
4703
4704 2010-07-18  Bruno Haible  <bruno@clisp.org>
4705
4706         unistr/u8-strchr: Optimize non-ASCII argument case.
4707         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
4708         because the first byte often matches anyway.
4709         Reported by Pádraig Brady <P@draigbrady.com>.
4710
4711 2010-07-15  Karl Berry  <karl@gnu.org>
4712
4713         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
4714
4715 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
4716
4717         getcwd: on Solaris, work better if ancestors are inaccessible
4718         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
4719         buffer and size, try again with a large buffer.  This works better
4720         on Solaris, since its getcwd succeeds even if the path to the root
4721         is inaccessible, and this is helpful in common cases such as .zfs
4722         hidden directories.  Problem reported by J Chapman Flack in
4723         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
4724         Use system getcwd if it's declared, not merely if it's partly
4725         working; use the partly-working test only to avoid needless effort
4726         if the system getcwd fails.
4727         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
4728         comment that was already obsolete and is now even more obsolete.
4729         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
4730         now might call strdup.
4731
4732 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
4733
4734         pthread: Add enough so that coreutils/src/sort.c compiles.
4735         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
4736         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
4737         gnulib. Include <sched.h> and <time.h>, as per POSIX.
4738         Include <sys/types.h>, in case it defines pthread_t.
4739         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
4740         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
4741         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
4742         (pthread_rwlockattr_t, pthread_spinlock_t):
4743         New typedefs, if HAVE_PTHREAD_T is not defined.
4744         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
4745         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
4746         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
4747         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
4748         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
4749         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
4750         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
4751         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
4752         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
4753         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
4754         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
4755         New macros.
4756         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
4757         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
4758         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
4759         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
4760         (pthread_spin_unlock): New dummy functions.
4761         (pthread_create): Return EAGAIN; don't set errno.
4762         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
4763         require AC_C_INLINE.
4764         * modules/pthread (Depends-on): Add sched, time.
4765         (pthread.h): Use AM_V_GEN.
4766
4767 2010-07-13  Bruno Haible  <bruno@clisp.org>
4768
4769         striconveh: Don't malloc memory if the result buffer is sufficient.
4770         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
4771         buffer if its size is sufficient.
4772         Reported by Ludovic Courtès <ludo@gnu.org>.
4773
4774 2010-07-13  Bruno Haible  <bruno@clisp.org>
4775
4776         strtod: Add safety check.
4777         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
4778
4779 2010-07-12  Bruno Haible  <bruno@clisp.org>
4780
4781         Unify tests that set gl_cv_func_ldexpl_no_libm.
4782         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
4783         gl_FUNC_LDEXPL.
4784         (gl_FUNC_LDEXPL): Invoke it.
4785         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4786
4787 2010-07-12  Bruno Haible  <bruno@clisp.org>
4788
4789         Unify tests that set gl_cv_func_ldexp_no_libm.
4790         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
4791         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
4792         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
4793         (configure.ac): Simply invoke gl_FUNC_LDEXP.
4794         * modules/strtod (Files): Add m4/ldexp.m4.
4795
4796 2010-07-12  Bruno Haible  <bruno@clisp.org>
4797
4798         Unify tests that set gl_cv_func_frexpl_no_libm.
4799         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
4800         gl_FUNC_FREXPL_NO_LIBM.
4801         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
4802         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4803
4804 2010-07-12  Bruno Haible  <bruno@clisp.org>
4805
4806         Unify tests that set gl_cv_func_frexp_no_libm.
4807         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
4808         gl_FUNC_FREXP_NO_LIBM.
4809         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
4810         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4811
4812 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4813
4814         memcoll: clarify sizes versus lengths, document better, and tweak perf
4815         * lib/memcoll.c (strcoll_loop, memcoll0):
4816         Improve quality of descriptive comments.  Name variables
4817         consistently as to whether they are lengths (which do not include
4818         terminating null) versus sizes (which do).
4819         * lib/xmemcoll.c (xmemcoll0): Likewise.
4820         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
4821         returned when s1size == 0; this is easier to compile and saves
4822         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
4823
4824 2010-07-12  Bruno Haible  <bruno@clisp.org>
4825
4826         Tests for module '_Exit'.
4827         * modules/_Exit-tests: New file.
4828         * tests/test-_Exit.sh: New file.
4829         * tests/test-_Exit.c: New file.
4830
4831         New module '_Exit'.
4832         * lib/stdlib.in.h (__attribute__): New macro.
4833         (_Exit): New declaration.
4834         * lib/_Exit.c: New file.
4835         * m4/_Exit.m4: New file.
4836         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
4837         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4838         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4839         * modules/_Exit: New file.
4840         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4841         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4842
4843 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4844
4845         strtod: make it more-accurate typically, and don't require libm
4846         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4847         Include limits.h.  Don't include string.h.
4848         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4849         (locale_isspace): New function, so that no casts are needed to
4850         check whether *s is a space.
4851         (ldexp): Provide an unused dummy if not available.
4852         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4853         (strtod): Use them.  This implementation prefers to use the
4854         underlying strtod if available, falling back on our own code
4855         only to fix known bugs.  This is more likely to produce an
4856         accurate result.  Also, it avoids the use of libm functions.
4857         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4858         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4859         was absent, but it caused a test failure with coreutils.
4860         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4861         with libm.
4862         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4863         * modules/strtod-tests (Makefile.am): Likewise.
4864
4865 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4866             Bruno Haible  <bruno@clisp.org>
4867
4868         unistr/u8-strchr: Optimize ASCII argument case.
4869         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4870
4871 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4872
4873         (x)memcoll: minor tweaks
4874         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4875         is after the type that it qualifies.
4876         (memcoll0): Likewise.
4877         * lib/memcoll.h (memcoll0): Likewise.
4878         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4879         * lib/xmemcoll.h (xmemcoll0): Likewise.
4880         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4881         differs from memcoll in that the NUL byte is part of the argument.
4882         Omit the abort-checks, as performance is a real issue here.  Plus,
4883         the checks were wrong anyway (an off-by-one error).  Omit local
4884         variable 'diff', as it's a bit clearer that way.
4885         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4886         no longer needed.
4887
4888 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4889
4890         (x)memcoll: speedup when input is known to be NUL delimited
4891         * lib/memcoll.c: Include stdlib.
4892         (memcoll0) New function.
4893         (strcoll_loop) New function, refactored for use in both memcoll
4894         and memcoll0.
4895         * lib/memcoll.h: Add prototype for memcoll0.
4896         * lib/xmemcoll.c: (xmemcoll0) New function.
4897         (collate_error) New function, refactored for use in both xmemcoll
4898         and xmemcoll0.
4899         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4900         * m4/memcoll.m4: add inline invocation.
4901
4902 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4903
4904         * build-aux/bootstrap: Remove any local translations
4905         from the translation project synchronization directory,
4906         so that local only translations are not distributed.
4907
4908 2010-07-04  Bruno Haible  <bruno@clisp.org>
4909
4910         fsusage: Clarify which code applies to which platforms.
4911         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4912         platform.
4913         * lib/fsusage.c (get_fs_usage): Likewise.
4914
4915 2010-07-04  Bruno Haible  <bruno@clisp.org>
4916
4917         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4918         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4919         Reported by Martin Lambers <marlam@marlam.de>.
4920
4921 2010-07-04  Jim Meyering  <meyering@redhat.com>
4922
4923         hash: once again explicitly disallow insertion of NULL
4924         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4925         inserting a NULL pointer cannot work with these functions.
4926         Add a comment with details.
4927         This reverts part of the 2010-07-01 commit, 5bef1a35
4928         "hash: extend module to deal with non-pointer keys".
4929
4930 2010-07-01  Bruno Haible  <bruno@clisp.org>
4931
4932         stdbool: Update doc.
4933         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4934         Info from Christian Weisgerber <naddy@mips.inka.de>.
4935
4936 2010-07-01  Jim Meyering  <meyering@redhat.com>
4937
4938         hash: extend module to deal with non-pointer keys
4939         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4940         but that allows insertion of non-pointer entries.
4941         Do not disallow an ENTRY value of NULL.
4942         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4943         * lib/hash.h (hash_insert0): Declare.
4944
4945 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4946
4947         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4948         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4949         not present (i.e. with autoconf 2.59 and when using gettextize, not
4950         gnulib), require AC_GNU_SOURCE instead.
4951
4952 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4953
4954         idpriv-drop: Fix tests.
4955         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4956         not to the test-idpriv-droptemp program.
4957
4958 2010-06-29  Bruno Haible  <bruno@clisp.org>
4959
4960         string: Fix syntax error with g++ 2.96.
4961         * lib/string.in.h (__pure__): Remove definition.
4962         (_GL_ATTRIBUTE_PURE): New macro.
4963         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4964         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4965         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4966
4967 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4968
4969         unitypes: Fix bug introduced on 2010-05-18.
4970         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4971
4972 2010-06-22  Eric Blake  <eblake@redhat.com>
4973
4974         memmem: slight optimization
4975         * lib/str-two-way.h (critical_factorization): Update comments.
4976         Reduce work during factorization phase.
4977         Reported by Carlos Bueno <carlos@bueno.org>.
4978
4979 2010-06-21  Bruno Haible  <bruno@clisp.org>
4980
4981         Fix HAVE_CALLOC_POSIX misnomer.
4982         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4983         !HAVE_CALLOC_POSIX.
4984         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4985         HAVE_CALLOC_POSIX.
4986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4987         instead of HAVE_CALLOC_POSIX.
4988         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4989         HAVE_CALLOC_POSIX.
4990
4991         Use modern idiom for calloc() replacement.
4992         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4993         AC_FUNC_CALLOC.
4994         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4995         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4996         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4997         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4998         (gl_REPLACE_CALLOC): New macro.
4999
5000 2010-06-21  Bruno Haible  <bruno@clisp.org>
5001
5002         Fix HAVE_REALLOC_POSIX misnomer.
5003         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
5004         !HAVE_REALLOC_POSIX.
5005         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
5006         HAVE_REALLOC_POSIX.
5007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
5008         instead of HAVE_REALLOC_POSIX.
5009         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
5010         HAVE_REALLOC_POSIX.
5011
5012         Use modern idiom for realloc() replacement.
5013         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
5014         AC_FUNC_REALLOC.
5015         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
5016         Autoconf's AC_FUNC_REALLOC.
5017         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5018         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
5019         (gl_REPLACE_REALLOC): New macro.
5020         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5021
5022 2010-06-21  Bruno Haible  <bruno@clisp.org>
5023
5024         Fix HAVE_MALLOC_POSIX misnomer.
5025         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
5026         !HAVE_MALLOC_POSIX.
5027         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
5028         HAVE_MALLOC_POSIX.
5029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
5030         instead of HAVE_MALLOC_POSIX.
5031         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
5032         HAVE_MALLOC_POSIX.
5033
5034         Use modern idiom for malloc() replacement.
5035         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
5036         AC_FUNC_MALLOC.
5037         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
5038         Autoconf's AC_FUNC_MALLOC.
5039         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5040         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
5041         (gl_REPLACE_MALLOC): New macro.
5042         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5043
5044 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
5045
5046         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
5047         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
5048         This macro takes 3 arguments, not 4.
5049
5050 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
5051
5052         ipv6: fix detection under mingw
5053         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
5054         in6_addr.
5055
5056 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
5057
5058         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
5059         that strtod() works when cross-compiling to a glibc version known
5060         to work.
5061
5062 2010-06-15  Bruno Haible  <bruno@clisp.org>
5063
5064         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
5065
5066 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
5067
5068         select: Correct timeout.
5069         * lib/select.c (rpl_select): Compute wait_timeout correctly.
5070
5071 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5072
5073         git-version-gen: init shell var to avoid env var influence
5074         * build-aux/git-version-gen (v): Init shell var to empty.
5075
5076 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
5077
5078         priv-set: Don't assume that priv.h exists merely because getppriv does.
5079         See Jan Andersen's bug report about AIX 5L in
5080         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
5081         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
5082         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
5083         * lib/priv-set.h: Likewise.
5084         * tests/test-priv-set.c: Likewise.
5085
5086 2010-06-13  Bruno Haible  <bruno@clisp.org>
5087
5088         relocatable: Make it easier to test whether to install wrappers.
5089         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
5090         RELOCATABLE_VIA_WRAPPER.
5091
5092 2010-06-13  Bruno Haible  <bruno@clisp.org>
5093
5094         gnulib-tool: Display specified modules and dependencies differently.
5095         * gnulib-tool (func_show_module_list): New function.
5096         (func_import, func_create_testdir): Invoke it.
5097         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5098
5099 2010-06-13  Bruno Haible  <bruno@clisp.org>
5100
5101         gnulib-tool: Align code of func_import and func_create_testdir.
5102         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
5103         specified_modules.
5104
5105 2010-06-12  Jim Meyering  <meyering@redhat.com>
5106
5107         test-inttostr: avoid spurious failure on Solaris 9
5108         * tests/test-inttostr.c (main): Skip the test when snprintf fails
5109         to accept "%ju".  Reported by Bruno Haible.
5110
5111 2010-06-11  Jim Meyering  <meyering@redhat.com>
5112
5113         test-sys_socket: mark variables as used more readably
5114         * tests/test-sys_socket.c (main): Mark otherwise unused variables
5115         as "used" explicitly via (void) statement casts.  This is more
5116         readable than using them in an artificial return expression.
5117         Suggestion from Bruno Haible.
5118
5119 2010-06-11  Bruno Haible  <bruno@clisp.org>
5120
5121         Avoid some more warnings from "gcc -Wwrite-strings".
5122         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
5123         to 'const char *'.
5124         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
5125         * tests/test-c-strcasestr.c (main): Likewise.
5126         * tests/test-mbscasestr1.c (main): Likewise.
5127         * tests/test-mbscasestr2.c (main): Likewise.
5128         * tests/test-memmem.c (main): Likewise.
5129         * tests/test-strstr.c (main): Likewise.
5130         * tests/test-strcasestr.c (main): Likewise.
5131
5132 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5133
5134         init.sh: change framework_failure_ to fail with status 99, not 1
5135         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
5136         automake's parallel-tests rule that this is an unexpected failure,
5137         even if the test is listed in XFAIL_TESTS.
5138
5139 2010-06-11  Jim Meyering  <meyering@redhat.com>
5140
5141         test-inttostr: avoid warnings about 4-6KB literal strings
5142         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
5143         Include "macros.h", for its definition of ASSERT.
5144         (CK): s/assert/ASSERT/
5145         * modules/inttostr-tests (Files): Add macros.h.
5146
5147         init.sh: don't use $ME_ or skip_ before they are defined
5148         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
5149         their first uses.  Also hoist their companions: warn_, fail_,
5150         framework_failure_, $stderr_fileno.  Prompted by a patch from
5151         Stefano Lattarini.
5152
5153         test-sys_socket: avoid set-but-not-used warnings from gcc
5154         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
5155         avoid warning about set-but-not-used variables.
5156
5157         test-xvasprintf: avoid 'const' discard warnings
5158         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
5159         "const" when assigning from literal strings.
5160         (test_xasprintf): Add "void" in function argument list to placate
5161         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
5162
5163         tests: avoid compilation warnings in argmatch and exclude tests...
5164         in packages that define ARGMATCH_DIE_DECL, like coreutils.
5165         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
5166         Since it always exits, declare with the "noreturn" attribute.
5167         * tests/test-argmatch.c: Likewise.
5168
5169         tests: avoid 'const' discard warnings in mbsstr tests
5170         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
5171         * tests/test-mbsstr2.c (main): Likewise.
5172
5173         test-verify: avoid warning from gcc's -Wmissing-declarations
5174         * tests/test-verify.c (function): Declare to be static.
5175
5176         test-inttostr.c: include <string.h> for use of strcmp
5177         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
5178
5179         test-linkat: avoid failed assertion on "other" architectures
5180         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
5181         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
5182         sparc: https://bugs.launchpad.net/bugs/591968
5183
5184 2010-06-11  Jim Meyering  <meyering@redhat.com>
5185
5186         printf.m4: avoid autoconf's "Expanded Before Required" warning
5187         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
5188         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
5189         autoconf warning.
5190
5191 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
5192
5193         Replacement header templates are now named with ".in", not "_".
5194         * doc/gnulib-intro.texi: Correct.
5195
5196 2010-06-10  Jim Meyering  <meyering@redhat.com>
5197
5198         inttostr-tests: depend on snprintf, not snprintf-posix
5199         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
5200         snprintf-posix, to avoid this aclocal failure:
5201           missing file gnulib-tests/vasnprintf.c
5202           configure.ac:45: error: expected source file, required through \
5203           AC_LIBSOURCES, not found
5204
5205 2010-06-10  Jim Meyering  <meyering@redhat.com>
5206
5207         inttostr: add a new function, inttostr, and tests
5208         The namesake function was not available.  The existence of the
5209         template file, inttostr.c makes its addition nontrivial.
5210         * lib/anytostr.c: Rename from inttostr.c.
5211         (anytostr): Rename from inttostr.
5212         * lib/inttostr.c: New file.
5213         * modules/inttostr (Files): Add anytostr.c.
5214         (Makefile.am): Set lib_SOURCES instead of ...
5215         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
5216         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
5217         * lib/offtostr.c: Likewise.
5218         * lib/uinttostr.c: Likewise.
5219         * lib/umaxtostr.c: Likewise.
5220         * modules/inttostr-tests: New file.
5221         * tests/test-inttostr.c: New file.  Test these functions.
5222
5223 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
5224             Bruno Haible  <bruno@clisp.org>
5225
5226         Add "Extending Gnulib" chapter to manual.
5227         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
5228         chapter.
5229         (Extending Gnulib): New chapter.
5230         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
5231         chapter.
5232
5233 2010-06-09  Bruno Haible  <bruno@clisp.org>
5234
5235         Avoid relocwrapper link errors due to gnulib replacement functions.
5236         * lib/areadlink.c: Use the system's malloc, realloc functions.
5237         (areadlink): Set errno to ENOMEM explicitly.
5238         * modules/areadlink (Depends-on): Remove malloc-posix.
5239         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5240
5241 2010-06-09  Bruno Haible  <bruno@clisp.org>
5242
5243         Avoid relocwrapper link errors due to gnulib replacement functions.
5244         * lib/canonicalize-lgpl.c: Use the system's malloc function.
5245         * lib/malloca.c: Likewise.
5246         * lib/relocatable.c: Likewise.
5247         * lib/progreloc.c: Use the system's malloc, sprintf functions.
5248         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
5249         * lib/setenv.c: Use the system's malloc, realloc functions.
5250         * lib/strerror.c: Use the system's sprintf function.
5251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5252
5253 2010-06-04  Bruno Haible  <bruno@clisp.org>
5254
5255         Prefer documented low-level autoconf macro names.
5256         * m4/lib-link.m4: Use m4_translit instead of translit.
5257         * m4/environ.m4: Likewise.
5258         * m4/mathfunc.m4: Likewise.
5259         * m4/onceonly.m4: Likewise.
5260         * m4/stdint.m4: Likewise.
5261         Suggested by Eric Blake.
5262
5263 2010-06-04  Martin Lambers  <marlam@marlam.de>
5264             Bruno Haible  <bruno@clisp.org>
5265
5266         havelib: Allow library names with '+' characters.
5267         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5268         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
5269
5270 2010-06-09  Bruno Haible  <bruno@clisp.org>
5271
5272         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
5273         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
5274         realloc failed.
5275
5276 2010-06-08  Peter Simons  <simons@cryp.to>
5277
5278         maint.mk: make the news-check rule more configurable
5279         * top/maint.mk (news-check-lines-spec) New variable.
5280         (news-check): Use "sed -n 1,10p" in place of "head".
5281
5282 2010-06-07  Jim Meyering  <meyering@redhat.com>
5283
5284         do-release-commit-and-tag: fix typo in --help
5285         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
5286
5287         regex: avoid new dead-code warning with gcc-4.6.0
5288         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
5289         if-block containing a while-loop.  It's been unused for at least
5290         5 years.
5291
5292 2010-06-05  Bruno Haible  <bruno@clisp.org>
5293
5294         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
5295         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
5296
5297 2010-06-04  Bruno Haible  <bruno@clisp.org>
5298
5299         Update to GNU gettext 0.18.1.
5300         * modules/gettext (configure.ac): Require gettext infrastructure from
5301         version 0.18.1.
5302
5303 2010-06-03  Bruno Haible  <bruno@clisp.org>
5304
5305         Don't use AC_LIBOBJ with file names in subdirectories.
5306         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
5307         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
5308         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
5309         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
5310         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
5311         gl_LIBUNISTRING_LIBSOURCE.
5312         (Makefile.am): Augment lib_SOURCES here, conditionally.
5313         * NEWS: Drop requirement for Automake option 'subdir-objects'.
5314
5315 2010-06-03  Bruno Haible  <bruno@clisp.org>
5316
5317         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
5318         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
5319         expansion does not end with a newline.
5320         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
5321         unnecessary newline.
5322
5323 2010-06-03  Bruno Haible  <bruno@clisp.org>
5324
5325         Reduce dependencies.
5326         * tests/test-quotearg.h: New file, extracted from
5327         tests/test-quotearg.c.
5328         * tests/test-quotearg-simple.c: New file, extracted from
5329         tests/test-quotearg.c.
5330         * tests/test-quotearg.c: Don't include <ctype.h>.
5331         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
5332         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
5333         use_quote_double_quotes, use_quotearg_colon): Moved to
5334         tests/test-quotearg.h.
5335         (results_g, flag_results, custom_quotes, custom_results): Moved
5336         to tests/test-quotearg-simple.c.
5337         (main): Moved the part that does not depend on gettext to
5338         tests/test-quotearg-simple.c. Return 77 if the test cannot be
5339         performed.
5340         * modules/quotearg-simple: New file.
5341         * modules/quotearg-simple-tests: New file.
5342         * modules/quotearg (Depends-on): Add quotearg-simple.
5343         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
5344         (Files): Add tests/test-quotearg.h.
5345         Reported by Paolo Bonzini.
5346
5347 2010-06-03  Bruno Haible  <bruno@clisp.org>
5348
5349         Reduce dependencies.
5350         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
5351
5352 2010-06-03  Bruno Haible  <bruno@clisp.org>
5353
5354         time: Undefine more broken macros.
5355         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
5356         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
5357         Reported by Eric Blake.
5358
5359 2010-06-03  Bruno Haible  <bruno@clisp.org>
5360
5361         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
5362         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
5363         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
5364         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
5365         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
5366         Reported by Ludovic Courtès <ludo@gnu.org>.
5367
5368 2010-06-02  Eric Blake  <eblake@redhat.com>
5369
5370         time: work with mingw + pthreads-win32 library
5371         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
5372         if timespec is defined only in pthread.h.
5373         * modules/time (Makefile.am): Substitute it.
5374         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
5375         <pthread.h>, when needed.
5376         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
5377         from the library.
5378
5379 2010-05-31  Bruno Haible  <bruno@clisp.org>
5380
5381         Avoid expanding two macros in the wrong order.
5382         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
5383         gl_LIBUNISTRING if it is defined.
5384         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
5385         autoconf >= 2.64.
5386         Reported by Ludovic Courtès <ludo@gnu.org>.
5387
5388 2010-05-27  Jim Meyering  <meyering@redhat.com>
5389
5390         maint.mk: also prohibit "#undef" of always-defined symbols
5391         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
5392         Allow more than one space before the symbol name.
5393         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5394         the regexp uses alternation.
5395
5396 2010-05-26  Eric Blake  <eblake@redhat.com>
5397
5398         maint.mk: avoid echo -e
5399         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5400         Convert all uses of echo -* to printf.
5401         Reported by Matthias Bolte.
5402
5403 2010-05-25  Bruno Haible  <bruno@clisp.org>
5404
5405         Update to GNU gettext 0.18, part 2.
5406         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5407         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5408
5409 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5410
5411         Add missing include in test-pwrite.c.
5412         * tests/test-pwrite.c: Include string.h, for strcmp.
5413
5414 2010-05-24  Bruno Haible  <bruno@clisp.org>
5415
5416         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5417
5418 2010-05-24  Bruno Haible  <bruno@clisp.org>
5419
5420         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5421         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5422         iconveh_error argument.
5423         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5424         U_STRCONV_TO_LOCALE.
5425         * lib/unistr/u16-strcoll.c: Likewise.
5426         * lib/unistr/u32-strcoll.c: Likewise.
5427         * modules/unistr/u8-strcoll (Depends-on): Add
5428         uniconv/u8-strconv-to-enc, localcharset. Remove
5429         uniconv/u8-strconv-to-locale.
5430         (configure.ac): Bump version number.
5431         * modules/unistr/u16-strcoll (Depends-on): Add
5432         uniconv/u16-strconv-to-enc, localcharset. Remove
5433         uniconv/u16-strconv-to-locale.
5434         (configure.ac): Bump version number.
5435         * modules/unistr/u32-strcoll (Depends-on): Add
5436         uniconv/u32-strconv-to-enc, localcharset. Remove
5437         uniconv/u32-strconv-to-locale.
5438         (configure.ac): Bump version number.
5439
5440 2010-05-24  Bruno Haible  <bruno@clisp.org>
5441
5442         Avoid a test failure on NetBSD 5.0.
5443         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5444         an iconv() bug.
5445
5446 2010-05-24  Bruno Haible  <bruno@clisp.org>
5447
5448         Adjust #include directive style.
5449         * modules/regex (Includes): Recommend to write <regex.h>.
5450
5451 2010-05-24  Bruno Haible  <bruno@clisp.org>
5452
5453         regex: Don't require alloca.
5454         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5455         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5456         only inside if (0).
5457
5458 2010-05-23  Jim Meyering  <meyering@redhat.com>
5459
5460         test-renameat.c: include <sys/stat.h>
5461         * tests/test-renameat.c: Include <sys/stat.h>; required for
5462         definition of S_IS* macros.
5463
5464 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5465
5466         Update maintainer documentation for 'relocatable-prog' module.
5467         * doc/relocatable-maint.texi: Update.
5468         Comments by Bruno Haible.
5469
5470 2010-05-23  Bruno Haible  <bruno@clisp.org>
5471
5472         git-merge-changelog: Enable --split-merged-entry by default.
5473         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5474         (usage): Don't mention this option any more.
5475         Reported by Ralf Wildenhues.
5476
5477 2010-05-23  Jim Meyering  <meyering@redhat.com>
5478
5479         test-pwrite: do not leave behind a test file named "out"
5480         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5481         The trivial-looking use of init.sh is really necessary.
5482         It ensures that the temporary file, "out", is created in
5483         a temporary directory, and removed upon termination.
5484         * tests/test-pwrite.sh: Re-add file.
5485         * modules/pwrite-tests: Reference it.
5486
5487 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5488
5489         Fix output redirection buglet in init.sh.
5490         * tests/init.sh: Fix redirection of stderr.
5491
5492 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5493
5494         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5495
5496 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5497
5498         * modules/valgrind-tests: New file.
5499         * m4/valgrind-tests.m4: New file.
5500         * doc/valgrind-tests.texi: New file.
5501         * doc/gnulib.texi (Running self-tests under valgrind): New
5502         section.
5503
5504 2010-05-19  Bruno Haible  <bruno@clisp.org>
5505
5506         Clean up dead code in recent commit.
5507         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5508         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5509         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5510         Suggested by Paolo Bonzini.
5511
5512 2010-05-19  Bruno Haible  <bruno@clisp.org>
5513
5514         Avoid valgrind error reports from libunistring.
5515         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5516         * modules/libunistring (Files): Add it.
5517         * modules/libunistring-optional (Files): Likewise.
5518
5519 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5520             Bruno Haible  <bruno@clisp.org>
5521
5522         New module 'libunistring-optional'.
5523         * modules/libunistring-optional: New file.
5524         * m4/libunistring-base.m4: New file.
5525         * m4/libunistring-optional.m4: New file.
5526         * lib/unicase.in.h: Renamed from lib/unicase.h.
5527         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5528         * lib/unictype.in.h: Renamed from lib/unictype.h.
5529         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5530         * lib/uniname.in.h: Renamed from lib/uniname.h.
5531         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5532         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5533         * lib/unistr.in.h: Renamed from lib/unistr.h.
5534         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5535         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5536         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5537         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5538         gl_LIBUNISTRING. If the library was found, determine the installed
5539         version and set LIBUNISTRING_VERSION.
5540         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5541         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5542         handle a configuration option --with-included-libunistring.
5543         * modules/libunistring (Files): Add m4/absolute-header.m4.
5544         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5545         Add m4/libunistring-base.m4.
5546         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5547         (Makefile.am): Build unicase.h from unicase.in.h.
5548         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5549         Add m4/libunistring-base.m4.
5550         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5551         (Makefile.am): Build uniconv.h from uniconv.in.h.
5552         * modules/unictype/base (Files): Use unictype.in.h instead of
5553         unictype.h. Add m4/libunistring-base.m4.
5554         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5555         (Makefile.am): Build unictype.h from unictype.in.h.
5556         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5557         Add m4/libunistring-base.m4.
5558         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5559         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5560         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5561         Add m4/libunistring-base.m4.
5562         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5563         (Makefile.am): Build uniname.h from uniname.in.h.
5564         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5565         Add m4/libunistring-base.m4.
5566         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5567         (Makefile.am): Build uninorm.h from uninorm.in.h.
5568         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5569         unistdio.h. Add m4/libunistring-base.m4.
5570         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5571         (Makefile.am): Build unistdio.h from unistdio.in.h.
5572         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5573         Add m4/libunistring-base.m4.
5574         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5575         (Makefile.am): Build unistr.h from unistr.in.h.
5576         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5577         Add m4/libunistring-base.m4.
5578         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5579         (Makefile.am): Build unitypes.h from unitypes.in.h.
5580         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5581         Add m4/libunistring-base.m4.
5582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5583         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5584         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5585         uniwidth.h. Add m4/libunistring-base.m4.
5586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5587         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5588         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5589         instead of augmenting lib_SOURCES.
5590         * modules/unicase/empty-suffix-context: Likewise.
5591         * modules/unicase/locale-language: Likewise.
5592         * modules/unicase/tolower: Likewise.
5593         * modules/unicase/totitle: Likewise.
5594         * modules/unicase/toupper: Likewise.
5595         * modules/unicase/u8-casecmp: Likewise.
5596         * modules/unicase/u8-casecoll: Likewise.
5597         * modules/unicase/u8-casefold: Likewise.
5598         * modules/unicase/u8-casexfrm: Likewise.
5599         * modules/unicase/u8-ct-casefold: Likewise.
5600         * modules/unicase/u8-ct-tolower: Likewise.
5601         * modules/unicase/u8-ct-totitle: Likewise.
5602         * modules/unicase/u8-ct-toupper: Likewise.
5603         * modules/unicase/u8-is-cased: Likewise.
5604         * modules/unicase/u8-is-casefolded: Likewise.
5605         * modules/unicase/u8-is-lowercase: Likewise.
5606         * modules/unicase/u8-is-titlecase: Likewise.
5607         * modules/unicase/u8-is-uppercase: Likewise.
5608         * modules/unicase/u8-prefix-context: Likewise.
5609         * modules/unicase/u8-suffix-context: Likewise.
5610         * modules/unicase/u8-tolower: Likewise.
5611         * modules/unicase/u8-totitle: Likewise.
5612         * modules/unicase/u8-toupper: Likewise.
5613         * modules/unicase/u16-casecmp: Likewise.
5614         * modules/unicase/u16-casecoll: Likewise.
5615         * modules/unicase/u16-casefold: Likewise.
5616         * modules/unicase/u16-casexfrm: Likewise.
5617         * modules/unicase/u16-ct-casefold: Likewise.
5618         * modules/unicase/u16-ct-tolower: Likewise.
5619         * modules/unicase/u16-ct-totitle: Likewise.
5620         * modules/unicase/u16-ct-toupper: Likewise.
5621         * modules/unicase/u16-is-cased: Likewise.
5622         * modules/unicase/u16-is-casefolded: Likewise.
5623         * modules/unicase/u16-is-lowercase: Likewise.
5624         * modules/unicase/u16-is-titlecase: Likewise.
5625         * modules/unicase/u16-is-uppercase: Likewise.
5626         * modules/unicase/u16-prefix-context: Likewise.
5627         * modules/unicase/u16-suffix-context: Likewise.
5628         * modules/unicase/u16-tolower: Likewise.
5629         * modules/unicase/u16-totitle: Likewise.
5630         * modules/unicase/u16-toupper: Likewise.
5631         * modules/unicase/u32-casecmp: Likewise.
5632         * modules/unicase/u32-casecoll: Likewise.
5633         * modules/unicase/u32-casefold: Likewise.
5634         * modules/unicase/u32-casexfrm: Likewise.
5635         * modules/unicase/u32-ct-casefold: Likewise.
5636         * modules/unicase/u32-ct-tolower: Likewise.
5637         * modules/unicase/u32-ct-totitle: Likewise.
5638         * modules/unicase/u32-ct-toupper: Likewise.
5639         * modules/unicase/u32-is-cased: Likewise.
5640         * modules/unicase/u32-is-casefolded: Likewise.
5641         * modules/unicase/u32-is-lowercase: Likewise.
5642         * modules/unicase/u32-is-titlecase: Likewise.
5643         * modules/unicase/u32-is-uppercase: Likewise.
5644         * modules/unicase/u32-prefix-context: Likewise.
5645         * modules/unicase/u32-suffix-context: Likewise.
5646         * modules/unicase/u32-tolower: Likewise.
5647         * modules/unicase/u32-totitle: Likewise.
5648         * modules/unicase/u32-toupper: Likewise.
5649         * modules/unicase/ulc-casecmp: Likewise.
5650         * modules/unicase/ulc-casecoll: Likewise.
5651         * modules/unicase/ulc-casexfrm: Likewise.
5652         * modules/uniconv/u8-conv-from-enc: Likewise.
5653         * modules/uniconv/u8-conv-to-enc: Likewise.
5654         * modules/uniconv/u8-strconv-from-enc: Likewise.
5655         * modules/uniconv/u8-strconv-from-locale: Likewise.
5656         * modules/uniconv/u8-strconv-to-enc: Likewise.
5657         * modules/uniconv/u8-strconv-to-locale: Likewise.
5658         * modules/uniconv/u16-conv-from-enc: Likewise.
5659         * modules/uniconv/u16-conv-to-enc: Likewise.
5660         * modules/uniconv/u16-strconv-from-enc: Likewise.
5661         * modules/uniconv/u16-strconv-from-locale: Likewise.
5662         * modules/uniconv/u16-strconv-to-enc: Likewise.
5663         * modules/uniconv/u16-strconv-to-locale: Likewise.
5664         * modules/uniconv/u32-conv-from-enc: Likewise.
5665         * modules/uniconv/u32-conv-to-enc: Likewise.
5666         * modules/uniconv/u32-strconv-from-enc: Likewise.
5667         * modules/uniconv/u32-strconv-from-locale: Likewise.
5668         * modules/uniconv/u32-strconv-to-enc: Likewise.
5669         * modules/uniconv/u32-strconv-to-locale: Likewise.
5670         * modules/unictype/bidicategory-byname: Likewise.
5671         * modules/unictype/bidicategory-name: Likewise.
5672         * modules/unictype/bidicategory-of: Likewise.
5673         * modules/unictype/bidicategory-test: Likewise.
5674         * modules/unictype/block-list: Likewise.
5675         * modules/unictype/block-test: Likewise.
5676         * modules/unictype/category-C: Likewise.
5677         * modules/unictype/category-Cc: Likewise.
5678         * modules/unictype/category-Cf: Likewise.
5679         * modules/unictype/category-Cn: Likewise.
5680         * modules/unictype/category-Co: Likewise.
5681         * modules/unictype/category-Cs: Likewise.
5682         * modules/unictype/category-L: Likewise.
5683         * modules/unictype/category-Ll: Likewise.
5684         * modules/unictype/category-Lm: Likewise.
5685         * modules/unictype/category-Lo: Likewise.
5686         * modules/unictype/category-Lt: Likewise.
5687         * modules/unictype/category-Lu: Likewise.
5688         * modules/unictype/category-M: Likewise.
5689         * modules/unictype/category-Mc: Likewise.
5690         * modules/unictype/category-Me: Likewise.
5691         * modules/unictype/category-Mn: Likewise.
5692         * modules/unictype/category-N: Likewise.
5693         * modules/unictype/category-Nd: Likewise.
5694         * modules/unictype/category-Nl: Likewise.
5695         * modules/unictype/category-No: Likewise.
5696         * modules/unictype/category-P: Likewise.
5697         * modules/unictype/category-Pc: Likewise.
5698         * modules/unictype/category-Pd: Likewise.
5699         * modules/unictype/category-Pe: Likewise.
5700         * modules/unictype/category-Pf: Likewise.
5701         * modules/unictype/category-Pi: Likewise.
5702         * modules/unictype/category-Po: Likewise.
5703         * modules/unictype/category-Ps: Likewise.
5704         * modules/unictype/category-S: Likewise.
5705         * modules/unictype/category-Sc: Likewise.
5706         * modules/unictype/category-Sk: Likewise.
5707         * modules/unictype/category-Sm: Likewise.
5708         * modules/unictype/category-So: Likewise.
5709         * modules/unictype/category-Z: Likewise.
5710         * modules/unictype/category-Zl: Likewise.
5711         * modules/unictype/category-Zp: Likewise.
5712         * modules/unictype/category-Zs: Likewise.
5713         * modules/unictype/category-and: Likewise.
5714         * modules/unictype/category-and-not: Likewise.
5715         * modules/unictype/category-byname: Likewise.
5716         * modules/unictype/category-name: Likewise.
5717         * modules/unictype/category-none: Likewise.
5718         * modules/unictype/category-of: Likewise.
5719         * modules/unictype/category-or: Likewise.
5720         * modules/unictype/category-test: Likewise.
5721         * modules/unictype/combining-class: Likewise.
5722         * modules/unictype/ctype-alnum: Likewise.
5723         * modules/unictype/ctype-alpha: Likewise.
5724         * modules/unictype/ctype-blank: Likewise.
5725         * modules/unictype/ctype-cntrl: Likewise.
5726         * modules/unictype/ctype-digit: Likewise.
5727         * modules/unictype/ctype-graph: Likewise.
5728         * modules/unictype/ctype-lower: Likewise.
5729         * modules/unictype/ctype-print: Likewise.
5730         * modules/unictype/ctype-punct: Likewise.
5731         * modules/unictype/ctype-space: Likewise.
5732         * modules/unictype/ctype-upper: Likewise.
5733         * modules/unictype/ctype-xdigit: Likewise.
5734         * modules/unictype/decimal-digit: Likewise.
5735         * modules/unictype/digit: Likewise.
5736         * modules/unictype/mirror: Likewise.
5737         * modules/unictype/numeric: Likewise.
5738         * modules/unictype/property-alphabetic: Likewise.
5739         * modules/unictype/property-ascii-hex-digit: Likewise.
5740         * modules/unictype/property-bidi-arabic-digit: Likewise.
5741         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
5742         * modules/unictype/property-bidi-block-separator: Likewise.
5743         * modules/unictype/property-bidi-boundary-neutral: Likewise.
5744         * modules/unictype/property-bidi-common-separator: Likewise.
5745         * modules/unictype/property-bidi-control: Likewise.
5746         * modules/unictype/property-bidi-embedding-or-override: Likewise.
5747         * modules/unictype/property-bidi-eur-num-separator: Likewise.
5748         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
5749         * modules/unictype/property-bidi-european-digit: Likewise.
5750         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
5751         * modules/unictype/property-bidi-left-to-right: Likewise.
5752         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
5753         * modules/unictype/property-bidi-other-neutral: Likewise.
5754         * modules/unictype/property-bidi-pdf: Likewise.
5755         * modules/unictype/property-bidi-segment-separator: Likewise.
5756         * modules/unictype/property-bidi-whitespace: Likewise.
5757         * modules/unictype/property-byname: Likewise.
5758         * modules/unictype/property-combining: Likewise.
5759         * modules/unictype/property-composite: Likewise.
5760         * modules/unictype/property-currency-symbol: Likewise.
5761         * modules/unictype/property-dash: Likewise.
5762         * modules/unictype/property-decimal-digit: Likewise.
5763         * modules/unictype/property-default-ignorable-code-point: Likewise.
5764         * modules/unictype/property-deprecated: Likewise.
5765         * modules/unictype/property-diacritic: Likewise.
5766         * modules/unictype/property-extender: Likewise.
5767         * modules/unictype/property-format-control: Likewise.
5768         * modules/unictype/property-grapheme-base: Likewise.
5769         * modules/unictype/property-grapheme-extend: Likewise.
5770         * modules/unictype/property-grapheme-link: Likewise.
5771         * modules/unictype/property-hex-digit: Likewise.
5772         * modules/unictype/property-hyphen: Likewise.
5773         * modules/unictype/property-id-continue: Likewise.
5774         * modules/unictype/property-id-start: Likewise.
5775         * modules/unictype/property-ideographic: Likewise.
5776         * modules/unictype/property-ids-binary-operator: Likewise.
5777         * modules/unictype/property-ids-trinary-operator: Likewise.
5778         * modules/unictype/property-ignorable-control: Likewise.
5779         * modules/unictype/property-iso-control: Likewise.
5780         * modules/unictype/property-join-control: Likewise.
5781         * modules/unictype/property-left-of-pair: Likewise.
5782         * modules/unictype/property-line-separator: Likewise.
5783         * modules/unictype/property-logical-order-exception: Likewise.
5784         * modules/unictype/property-lowercase: Likewise.
5785         * modules/unictype/property-math: Likewise.
5786         * modules/unictype/property-non-break: Likewise.
5787         * modules/unictype/property-not-a-character: Likewise.
5788         * modules/unictype/property-numeric: Likewise.
5789         * modules/unictype/property-other-alphabetic: Likewise.
5790         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
5791         * modules/unictype/property-other-grapheme-extend: Likewise.
5792         * modules/unictype/property-other-id-continue: Likewise.
5793         * modules/unictype/property-other-id-start: Likewise.
5794         * modules/unictype/property-other-lowercase: Likewise.
5795         * modules/unictype/property-other-math: Likewise.
5796         * modules/unictype/property-other-uppercase: Likewise.
5797         * modules/unictype/property-paired-punctuation: Likewise.
5798         * modules/unictype/property-paragraph-separator: Likewise.
5799         * modules/unictype/property-pattern-syntax: Likewise.
5800         * modules/unictype/property-pattern-white-space: Likewise.
5801         * modules/unictype/property-private-use: Likewise.
5802         * modules/unictype/property-punctuation: Likewise.
5803         * modules/unictype/property-quotation-mark: Likewise.
5804         * modules/unictype/property-radical: Likewise.
5805         * modules/unictype/property-sentence-terminal: Likewise.
5806         * modules/unictype/property-soft-dotted: Likewise.
5807         * modules/unictype/property-space: Likewise.
5808         * modules/unictype/property-terminal-punctuation: Likewise.
5809         * modules/unictype/property-test: Likewise.
5810         * modules/unictype/property-titlecase: Likewise.
5811         * modules/unictype/property-unassigned-code-value: Likewise.
5812         * modules/unictype/property-unified-ideograph: Likewise.
5813         * modules/unictype/property-uppercase: Likewise.
5814         * modules/unictype/property-variation-selector: Likewise.
5815         * modules/unictype/property-white-space: Likewise.
5816         * modules/unictype/property-xid-continue: Likewise.
5817         * modules/unictype/property-xid-start: Likewise.
5818         * modules/unictype/property-zero-width: Likewise.
5819         * modules/unictype/scripts: Likewise.
5820         * modules/unictype/syntax-c-ident: Likewise.
5821         * modules/unictype/syntax-c-whitespace: Likewise.
5822         * modules/unictype/syntax-java-ident: Likewise.
5823         * modules/unictype/syntax-java-whitespace: Likewise.
5824         * modules/unilbrk/u8-possible-linebreaks: Likewise.
5825         * modules/unilbrk/u8-width-linebreaks: Likewise.
5826         * modules/unilbrk/u16-possible-linebreaks: Likewise.
5827         * modules/unilbrk/u16-width-linebreaks: Likewise.
5828         * modules/unilbrk/u32-possible-linebreaks: Likewise.
5829         * modules/unilbrk/u32-width-linebreaks: Likewise.
5830         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
5831         * modules/unilbrk/ulc-width-linebreaks: Likewise.
5832         * modules/uniname/uniname: Likewise.
5833         * modules/uninorm/canonical-decomposition: Likewise.
5834         * modules/uninorm/composition: Likewise.
5835         * modules/uninorm/decomposing-form: Likewise.
5836         * modules/uninorm/decomposition: Likewise.
5837         * modules/uninorm/filter: Likewise.
5838         * modules/uninorm/nfc: Likewise.
5839         * modules/uninorm/nfd: Likewise.
5840         * modules/uninorm/nfkc: Likewise.
5841         * modules/uninorm/nfkd: Likewise.
5842         * modules/uninorm/u8-normalize: Likewise.
5843         * modules/uninorm/u8-normcmp: Likewise.
5844         * modules/uninorm/u8-normcoll: Likewise.
5845         * modules/uninorm/u8-normxfrm: Likewise.
5846         * modules/uninorm/u16-normalize: Likewise.
5847         * modules/uninorm/u16-normcmp: Likewise.
5848         * modules/uninorm/u16-normcoll: Likewise.
5849         * modules/uninorm/u16-normxfrm: Likewise.
5850         * modules/uninorm/u32-normalize: Likewise.
5851         * modules/uninorm/u32-normcmp: Likewise.
5852         * modules/uninorm/u32-normcoll: Likewise.
5853         * modules/uninorm/u32-normxfrm: Likewise.
5854         * modules/unistdio/u8-asnprintf: Likewise.
5855         * modules/unistdio/u8-asprintf: Likewise.
5856         * modules/unistdio/u8-snprintf: Likewise.
5857         * modules/unistdio/u8-sprintf: Likewise.
5858         * modules/unistdio/u8-u8-asnprintf: Likewise.
5859         * modules/unistdio/u8-u8-asprintf: Likewise.
5860         * modules/unistdio/u8-u8-snprintf: Likewise.
5861         * modules/unistdio/u8-u8-sprintf: Likewise.
5862         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5863         * modules/unistdio/u8-u8-vasprintf: Likewise.
5864         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5865         * modules/unistdio/u8-u8-vsprintf: Likewise.
5866         * modules/unistdio/u8-vasnprintf: Likewise.
5867         * modules/unistdio/u8-vasprintf: Likewise.
5868         * modules/unistdio/u8-vsnprintf: Likewise.
5869         * modules/unistdio/u8-vsprintf: Likewise.
5870         * modules/unistdio/u16-asnprintf: Likewise.
5871         * modules/unistdio/u16-asprintf: Likewise.
5872         * modules/unistdio/u16-snprintf: Likewise.
5873         * modules/unistdio/u16-sprintf: Likewise.
5874         * modules/unistdio/u16-u16-asnprintf: Likewise.
5875         * modules/unistdio/u16-u16-asprintf: Likewise.
5876         * modules/unistdio/u16-u16-snprintf: Likewise.
5877         * modules/unistdio/u16-u16-sprintf: Likewise.
5878         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5879         * modules/unistdio/u16-u16-vasprintf: Likewise.
5880         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5881         * modules/unistdio/u16-u16-vsprintf: Likewise.
5882         * modules/unistdio/u16-vasnprintf: Likewise.
5883         * modules/unistdio/u16-vasprintf: Likewise.
5884         * modules/unistdio/u16-vsnprintf: Likewise.
5885         * modules/unistdio/u16-vsprintf: Likewise.
5886         * modules/unistdio/u32-asnprintf: Likewise.
5887         * modules/unistdio/u32-asprintf: Likewise.
5888         * modules/unistdio/u32-snprintf: Likewise.
5889         * modules/unistdio/u32-sprintf: Likewise.
5890         * modules/unistdio/u32-u32-asnprintf: Likewise.
5891         * modules/unistdio/u32-u32-asprintf: Likewise.
5892         * modules/unistdio/u32-u32-snprintf: Likewise.
5893         * modules/unistdio/u32-u32-sprintf: Likewise.
5894         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5895         * modules/unistdio/u32-u32-vasprintf: Likewise.
5896         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5897         * modules/unistdio/u32-u32-vsprintf: Likewise.
5898         * modules/unistdio/u32-vasnprintf: Likewise.
5899         * modules/unistdio/u32-vasprintf: Likewise.
5900         * modules/unistdio/u32-vsnprintf: Likewise.
5901         * modules/unistdio/u32-vsprintf: Likewise.
5902         * modules/unistdio/ulc-asnprintf: Likewise.
5903         * modules/unistdio/ulc-asprintf: Likewise.
5904         * modules/unistdio/ulc-fprintf: Likewise.
5905         * modules/unistdio/ulc-snprintf: Likewise.
5906         * modules/unistdio/ulc-sprintf: Likewise.
5907         * modules/unistdio/ulc-vasnprintf: Likewise.
5908         * modules/unistdio/ulc-vasprintf: Likewise.
5909         * modules/unistdio/ulc-vfprintf: Likewise.
5910         * modules/unistdio/ulc-vsnprintf: Likewise.
5911         * modules/unistdio/ulc-vsprintf: Likewise.
5912         * modules/unistr/u8-check: Likewise.
5913         * modules/unistr/u8-chr: Likewise.
5914         * modules/unistr/u8-cmp: Likewise.
5915         * modules/unistr/u8-cmp2: Likewise.
5916         * modules/unistr/u8-cpy: Likewise.
5917         * modules/unistr/u8-cpy-alloc: Likewise.
5918         * modules/unistr/u8-endswith: Likewise.
5919         * modules/unistr/u8-mblen: Likewise.
5920         * modules/unistr/u8-mbsnlen: Likewise.
5921         * modules/unistr/u8-mbtouc: Likewise.
5922         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5923         * modules/unistr/u8-mbtoucr: Likewise.
5924         * modules/unistr/u8-move: Likewise.
5925         * modules/unistr/u8-next: Likewise.
5926         * modules/unistr/u8-prev: Likewise.
5927         * modules/unistr/u8-set: Likewise.
5928         * modules/unistr/u8-startswith: Likewise.
5929         * modules/unistr/u8-stpcpy: Likewise.
5930         * modules/unistr/u8-stpncpy: Likewise.
5931         * modules/unistr/u8-strcat: Likewise.
5932         * modules/unistr/u8-strchr: Likewise.
5933         * modules/unistr/u8-strcmp: Likewise.
5934         * modules/unistr/u8-strcoll: Likewise.
5935         * modules/unistr/u8-strcpy: Likewise.
5936         * modules/unistr/u8-strcspn: Likewise.
5937         * modules/unistr/u8-strdup: Likewise.
5938         * modules/unistr/u8-strlen: Likewise.
5939         * modules/unistr/u8-strmblen: Likewise.
5940         * modules/unistr/u8-strmbtouc: Likewise.
5941         * modules/unistr/u8-strncat: Likewise.
5942         * modules/unistr/u8-strncmp: Likewise.
5943         * modules/unistr/u8-strncpy: Likewise.
5944         * modules/unistr/u8-strnlen: Likewise.
5945         * modules/unistr/u8-strpbrk: Likewise.
5946         * modules/unistr/u8-strrchr: Likewise.
5947         * modules/unistr/u8-strspn: Likewise.
5948         * modules/unistr/u8-strstr: Likewise.
5949         * modules/unistr/u8-strtok: Likewise.
5950         * modules/unistr/u8-to-u16: Likewise.
5951         * modules/unistr/u8-to-u32: Likewise.
5952         * modules/unistr/u8-uctomb: Likewise.
5953         * modules/unistr/u16-check: Likewise.
5954         * modules/unistr/u16-chr: Likewise.
5955         * modules/unistr/u16-cmp: Likewise.
5956         * modules/unistr/u16-cmp2: Likewise.
5957         * modules/unistr/u16-cpy: Likewise.
5958         * modules/unistr/u16-cpy-alloc: Likewise.
5959         * modules/unistr/u16-endswith: Likewise.
5960         * modules/unistr/u16-mblen: Likewise.
5961         * modules/unistr/u16-mbsnlen: Likewise.
5962         * modules/unistr/u16-mbtouc: Likewise.
5963         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5964         * modules/unistr/u16-mbtoucr: Likewise.
5965         * modules/unistr/u16-move: Likewise.
5966         * modules/unistr/u16-next: Likewise.
5967         * modules/unistr/u16-prev: Likewise.
5968         * modules/unistr/u16-set: Likewise.
5969         * modules/unistr/u16-startswith: Likewise.
5970         * modules/unistr/u16-stpcpy: Likewise.
5971         * modules/unistr/u16-stpncpy: Likewise.
5972         * modules/unistr/u16-strcat: Likewise.
5973         * modules/unistr/u16-strchr: Likewise.
5974         * modules/unistr/u16-strcmp: Likewise.
5975         * modules/unistr/u16-strcoll: Likewise.
5976         * modules/unistr/u16-strcpy: Likewise.
5977         * modules/unistr/u16-strcspn: Likewise.
5978         * modules/unistr/u16-strdup: Likewise.
5979         * modules/unistr/u16-strlen: Likewise.
5980         * modules/unistr/u16-strmblen: Likewise.
5981         * modules/unistr/u16-strmbtouc: Likewise.
5982         * modules/unistr/u16-strncat: Likewise.
5983         * modules/unistr/u16-strncmp: Likewise.
5984         * modules/unistr/u16-strncpy: Likewise.
5985         * modules/unistr/u16-strnlen: Likewise.
5986         * modules/unistr/u16-strpbrk: Likewise.
5987         * modules/unistr/u16-strrchr: Likewise.
5988         * modules/unistr/u16-strspn: Likewise.
5989         * modules/unistr/u16-strstr: Likewise.
5990         * modules/unistr/u16-strtok: Likewise.
5991         * modules/unistr/u16-to-u32: Likewise.
5992         * modules/unistr/u16-to-u8: Likewise.
5993         * modules/unistr/u16-uctomb: Likewise.
5994         * modules/unistr/u32-check: Likewise.
5995         * modules/unistr/u32-chr: Likewise.
5996         * modules/unistr/u32-cmp: Likewise.
5997         * modules/unistr/u32-cmp2: Likewise.
5998         * modules/unistr/u32-cpy: Likewise.
5999         * modules/unistr/u32-cpy-alloc: Likewise.
6000         * modules/unistr/u32-endswith: Likewise.
6001         * modules/unistr/u32-mblen: Likewise.
6002         * modules/unistr/u32-mbsnlen: Likewise.
6003         * modules/unistr/u32-mbtouc: Likewise.
6004         * modules/unistr/u32-mbtouc-unsafe: Likewise.
6005         * modules/unistr/u32-mbtoucr: Likewise.
6006         * modules/unistr/u32-move: Likewise.
6007         * modules/unistr/u32-next: Likewise.
6008         * modules/unistr/u32-prev: Likewise.
6009         * modules/unistr/u32-set: Likewise.
6010         * modules/unistr/u32-startswith: Likewise.
6011         * modules/unistr/u32-stpcpy: Likewise.
6012         * modules/unistr/u32-stpncpy: Likewise.
6013         * modules/unistr/u32-strcat: Likewise.
6014         * modules/unistr/u32-strchr: Likewise.
6015         * modules/unistr/u32-strcmp: Likewise.
6016         * modules/unistr/u32-strcoll: Likewise.
6017         * modules/unistr/u32-strcpy: Likewise.
6018         * modules/unistr/u32-strcspn: Likewise.
6019         * modules/unistr/u32-strdup: Likewise.
6020         * modules/unistr/u32-strlen: Likewise.
6021         * modules/unistr/u32-strmblen: Likewise.
6022         * modules/unistr/u32-strmbtouc: Likewise.
6023         * modules/unistr/u32-strncat: Likewise.
6024         * modules/unistr/u32-strncmp: Likewise.
6025         * modules/unistr/u32-strncpy: Likewise.
6026         * modules/unistr/u32-strnlen: Likewise.
6027         * modules/unistr/u32-strpbrk: Likewise.
6028         * modules/unistr/u32-strrchr: Likewise.
6029         * modules/unistr/u32-strspn: Likewise.
6030         * modules/unistr/u32-strstr: Likewise.
6031         * modules/unistr/u32-strtok: Likewise.
6032         * modules/unistr/u32-to-u16: Likewise.
6033         * modules/unistr/u32-to-u8: Likewise.
6034         * modules/unistr/u32-uctomb: Likewise.
6035         * modules/uniwbrk/u8-wordbreaks: Likewise.
6036         * modules/uniwbrk/u16-wordbreaks: Likewise.
6037         * modules/uniwbrk/u32-wordbreaks: Likewise.
6038         * modules/uniwbrk/ulc-wordbreaks: Likewise.
6039         * modules/uniwbrk/wordbreak-property: Likewise.
6040         * modules/uniwidth/u8-strwidth: Likewise.
6041         * modules/uniwidth/u8-width: Likewise.
6042         * modules/uniwidth/u16-strwidth: Likewise.
6043         * modules/uniwidth/u16-width: Likewise.
6044         * modules/uniwidth/u32-strwidth: Likewise.
6045         * modules/uniwidth/u32-width: Likewise.
6046         * modules/uniwidth/width: Likewise.
6047         * modules/unicase/cased-tests (Makefile.am): Link all test programs
6048         with $(LIBUNISTRING).
6049         * modules/unicase/ignorable-tests: Likewise.
6050         * modules/unicase/locale-language-tests: Likewise.
6051         * modules/unicase/tolower-tests: Likewise.
6052         * modules/unicase/totitle-tests: Likewise.
6053         * modules/unicase/toupper-tests: Likewise.
6054         * modules/unicase/u8-casecmp-tests: Likewise.
6055         * modules/unicase/u8-casecoll-tests: Likewise.
6056         * modules/unicase/u8-casefold-tests: Likewise.
6057         * modules/unicase/u8-is-cased-tests: Likewise.
6058         * modules/unicase/u8-is-casefolded-tests: Likewise.
6059         * modules/unicase/u8-is-lowercase-tests: Likewise.
6060         * modules/unicase/u8-is-titlecase-tests: Likewise.
6061         * modules/unicase/u8-is-uppercase-tests: Likewise.
6062         * modules/unicase/u8-tolower-tests: Likewise.
6063         * modules/unicase/u8-totitle-tests: Likewise.
6064         * modules/unicase/u8-toupper-tests: Likewise.
6065         * modules/unicase/u16-casecmp-tests: Likewise.
6066         * modules/unicase/u16-casecoll-tests: Likewise.
6067         * modules/unicase/u16-casefold-tests: Likewise.
6068         * modules/unicase/u16-is-cased-tests: Likewise.
6069         * modules/unicase/u16-is-casefolded-tests: Likewise.
6070         * modules/unicase/u16-is-lowercase-tests: Likewise.
6071         * modules/unicase/u16-is-titlecase-tests: Likewise.
6072         * modules/unicase/u16-is-uppercase-tests: Likewise.
6073         * modules/unicase/u16-tolower-tests: Likewise.
6074         * modules/unicase/u16-totitle-tests: Likewise.
6075         * modules/unicase/u16-toupper-tests: Likewise.
6076         * modules/unicase/u32-casecmp-tests: Likewise.
6077         * modules/unicase/u32-casecoll-tests: Likewise.
6078         * modules/unicase/u32-casefold-tests: Likewise.
6079         * modules/unicase/u32-is-cased-tests: Likewise.
6080         * modules/unicase/u32-is-casefolded-tests: Likewise.
6081         * modules/unicase/u32-is-lowercase-tests: Likewise.
6082         * modules/unicase/u32-is-titlecase-tests: Likewise.
6083         * modules/unicase/u32-is-uppercase-tests: Likewise.
6084         * modules/unicase/u32-tolower-tests: Likewise.
6085         * modules/unicase/u32-totitle-tests: Likewise.
6086         * modules/unicase/u32-toupper-tests: Likewise.
6087         * modules/unicase/ulc-casecmp-tests: Likewise.
6088         * modules/unicase/ulc-casecoll-tests: Likewise.
6089         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
6090         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
6091         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
6092         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
6093         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
6094         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
6095         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
6096         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
6097         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
6098         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
6099         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
6100         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
6101         * modules/unictype/bidicategory-byname-tests: Likewise.
6102         * modules/unictype/bidicategory-name-tests: Likewise.
6103         * modules/unictype/bidicategory-of-tests: Likewise.
6104         * modules/unictype/bidicategory-test-tests: Likewise.
6105         * modules/unictype/block-list-tests: Likewise.
6106         * modules/unictype/block-of-tests: Likewise.
6107         * modules/unictype/block-test-tests: Likewise.
6108         * modules/unictype/category-C-tests: Likewise.
6109         * modules/unictype/category-Cc-tests: Likewise.
6110         * modules/unictype/category-Cf-tests: Likewise.
6111         * modules/unictype/category-Cn-tests: Likewise.
6112         * modules/unictype/category-Co-tests: Likewise.
6113         * modules/unictype/category-Cs-tests: Likewise.
6114         * modules/unictype/category-L-tests: Likewise.
6115         * modules/unictype/category-Ll-tests: Likewise.
6116         * modules/unictype/category-Lm-tests: Likewise.
6117         * modules/unictype/category-Lo-tests: Likewise.
6118         * modules/unictype/category-Lt-tests: Likewise.
6119         * modules/unictype/category-Lu-tests: Likewise.
6120         * modules/unictype/category-M-tests: Likewise.
6121         * modules/unictype/category-Mc-tests: Likewise.
6122         * modules/unictype/category-Me-tests: Likewise.
6123         * modules/unictype/category-Mn-tests: Likewise.
6124         * modules/unictype/category-N-tests: Likewise.
6125         * modules/unictype/category-Nd-tests: Likewise.
6126         * modules/unictype/category-Nl-tests: Likewise.
6127         * modules/unictype/category-No-tests: Likewise.
6128         * modules/unictype/category-P-tests: Likewise.
6129         * modules/unictype/category-Pc-tests: Likewise.
6130         * modules/unictype/category-Pd-tests: Likewise.
6131         * modules/unictype/category-Pe-tests: Likewise.
6132         * modules/unictype/category-Pf-tests: Likewise.
6133         * modules/unictype/category-Pi-tests: Likewise.
6134         * modules/unictype/category-Po-tests: Likewise.
6135         * modules/unictype/category-Ps-tests: Likewise.
6136         * modules/unictype/category-S-tests: Likewise.
6137         * modules/unictype/category-Sc-tests: Likewise.
6138         * modules/unictype/category-Sk-tests: Likewise.
6139         * modules/unictype/category-Sm-tests: Likewise.
6140         * modules/unictype/category-So-tests: Likewise.
6141         * modules/unictype/category-Z-tests: Likewise.
6142         * modules/unictype/category-Zl-tests: Likewise.
6143         * modules/unictype/category-Zp-tests: Likewise.
6144         * modules/unictype/category-Zs-tests: Likewise.
6145         * modules/unictype/category-and-not-tests: Likewise.
6146         * modules/unictype/category-and-tests: Likewise.
6147         * modules/unictype/category-byname-tests: Likewise.
6148         * modules/unictype/category-name-tests: Likewise.
6149         * modules/unictype/category-none-tests: Likewise.
6150         * modules/unictype/category-of-tests: Likewise.
6151         * modules/unictype/category-or-tests: Likewise.
6152         * modules/unictype/category-test-withtable-tests: Likewise.
6153         * modules/unictype/combining-class-tests: Likewise.
6154         * modules/unictype/ctype-alnum-tests: Likewise.
6155         * modules/unictype/ctype-alpha-tests: Likewise.
6156         * modules/unictype/ctype-blank-tests: Likewise.
6157         * modules/unictype/ctype-cntrl-tests: Likewise.
6158         * modules/unictype/ctype-digit-tests: Likewise.
6159         * modules/unictype/ctype-graph-tests: Likewise.
6160         * modules/unictype/ctype-lower-tests: Likewise.
6161         * modules/unictype/ctype-print-tests: Likewise.
6162         * modules/unictype/ctype-punct-tests: Likewise.
6163         * modules/unictype/ctype-space-tests: Likewise.
6164         * modules/unictype/ctype-upper-tests: Likewise.
6165         * modules/unictype/ctype-xdigit-tests: Likewise.
6166         * modules/unictype/decimal-digit-tests: Likewise.
6167         * modules/unictype/digit-tests: Likewise.
6168         * modules/unictype/mirror-tests: Likewise.
6169         * modules/unictype/numeric-tests: Likewise.
6170         * modules/unictype/property-alphabetic-tests: Likewise.
6171         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
6172         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
6173         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
6174         * modules/unictype/property-bidi-block-separator-tests: Likewise.
6175         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
6176         * modules/unictype/property-bidi-common-separator-tests: Likewise.
6177         * modules/unictype/property-bidi-control-tests: Likewise.
6178         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
6179         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
6180         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
6181         * modules/unictype/property-bidi-european-digit-tests: Likewise.
6182         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
6183         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
6184         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
6185         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
6186         * modules/unictype/property-bidi-pdf-tests: Likewise.
6187         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
6188         * modules/unictype/property-bidi-whitespace-tests: Likewise.
6189         * modules/unictype/property-byname-tests: Likewise.
6190         * modules/unictype/property-combining-tests: Likewise.
6191         * modules/unictype/property-composite-tests: Likewise.
6192         * modules/unictype/property-currency-symbol-tests: Likewise.
6193         * modules/unictype/property-dash-tests: Likewise.
6194         * modules/unictype/property-decimal-digit-tests: Likewise.
6195         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
6196         * modules/unictype/property-deprecated-tests: Likewise.
6197         * modules/unictype/property-diacritic-tests: Likewise.
6198         * modules/unictype/property-extender-tests: Likewise.
6199         * modules/unictype/property-format-control-tests: Likewise.
6200         * modules/unictype/property-grapheme-base-tests: Likewise.
6201         * modules/unictype/property-grapheme-extend-tests: Likewise.
6202         * modules/unictype/property-grapheme-link-tests: Likewise.
6203         * modules/unictype/property-hex-digit-tests: Likewise.
6204         * modules/unictype/property-hyphen-tests: Likewise.
6205         * modules/unictype/property-id-continue-tests: Likewise.
6206         * modules/unictype/property-id-start-tests: Likewise.
6207         * modules/unictype/property-ideographic-tests: Likewise.
6208         * modules/unictype/property-ids-binary-operator-tests: Likewise.
6209         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
6210         * modules/unictype/property-ignorable-control-tests: Likewise.
6211         * modules/unictype/property-iso-control-tests: Likewise.
6212         * modules/unictype/property-join-control-tests: Likewise.
6213         * modules/unictype/property-left-of-pair-tests: Likewise.
6214         * modules/unictype/property-line-separator-tests: Likewise.
6215         * modules/unictype/property-logical-order-exception-tests: Likewise.
6216         * modules/unictype/property-lowercase-tests: Likewise.
6217         * modules/unictype/property-math-tests: Likewise.
6218         * modules/unictype/property-non-break-tests: Likewise.
6219         * modules/unictype/property-not-a-character-tests: Likewise.
6220         * modules/unictype/property-numeric-tests: Likewise.
6221         * modules/unictype/property-other-alphabetic-tests: Likewise.
6222         * modules/unictype/property-other-default-ignorable-code-point-tests:
6223         Likewise.
6224         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
6225         * modules/unictype/property-other-id-continue-tests: Likewise.
6226         * modules/unictype/property-other-id-start-tests: Likewise.
6227         * modules/unictype/property-other-lowercase-tests: Likewise.
6228         * modules/unictype/property-other-math-tests: Likewise.
6229         * modules/unictype/property-other-uppercase-tests: Likewise.
6230         * modules/unictype/property-paired-punctuation-tests: Likewise.
6231         * modules/unictype/property-paragraph-separator-tests: Likewise.
6232         * modules/unictype/property-pattern-syntax-tests: Likewise.
6233         * modules/unictype/property-pattern-white-space-tests: Likewise.
6234         * modules/unictype/property-private-use-tests: Likewise.
6235         * modules/unictype/property-punctuation-tests: Likewise.
6236         * modules/unictype/property-quotation-mark-tests: Likewise.
6237         * modules/unictype/property-radical-tests: Likewise.
6238         * modules/unictype/property-sentence-terminal-tests: Likewise.
6239         * modules/unictype/property-soft-dotted-tests: Likewise.
6240         * modules/unictype/property-space-tests: Likewise.
6241         * modules/unictype/property-terminal-punctuation-tests: Likewise.
6242         * modules/unictype/property-test-tests: Likewise.
6243         * modules/unictype/property-titlecase-tests: Likewise.
6244         * modules/unictype/property-unassigned-code-value-tests: Likewise.
6245         * modules/unictype/property-unified-ideograph-tests: Likewise.
6246         * modules/unictype/property-uppercase-tests: Likewise.
6247         * modules/unictype/property-variation-selector-tests: Likewise.
6248         * modules/unictype/property-white-space-tests: Likewise.
6249         * modules/unictype/property-xid-continue-tests: Likewise.
6250         * modules/unictype/property-xid-start-tests: Likewise.
6251         * modules/unictype/property-zero-width-tests: Likewise.
6252         * modules/unictype/scripts-tests: Likewise.
6253         * modules/unictype/syntax-c-ident-tests: Likewise.
6254         * modules/unictype/syntax-c-whitespace-tests: Likewise.
6255         * modules/unictype/syntax-java-ident-tests: Likewise.
6256         * modules/unictype/syntax-java-whitespace-tests: Likewise.
6257         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
6258         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
6259         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
6260         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
6261         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
6262         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
6263         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
6264         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
6265         * modules/uniname/uniname-tests: Likewise.
6266         * modules/uninorm/canonical-decomposition-tests: Likewise.
6267         * modules/uninorm/compat-decomposition-tests: Likewise.
6268         * modules/uninorm/composition-tests: Likewise.
6269         * modules/uninorm/decomposing-form-tests: Likewise.
6270         * modules/uninorm/decomposition-tests: Likewise.
6271         * modules/uninorm/filter-tests: Likewise.
6272         * modules/uninorm/nfc-tests: Likewise.
6273         * modules/uninorm/nfd-tests: Likewise.
6274         * modules/uninorm/nfkc-tests: Likewise.
6275         * modules/uninorm/nfkd-tests: Likewise.
6276         * modules/uninorm/u8-normcmp-tests: Likewise.
6277         * modules/uninorm/u8-normcoll-tests: Likewise.
6278         * modules/uninorm/u16-normcmp-tests: Likewise.
6279         * modules/uninorm/u16-normcoll-tests: Likewise.
6280         * modules/uninorm/u32-normcmp-tests: Likewise.
6281         * modules/uninorm/u32-normcoll-tests: Likewise.
6282         * modules/unistdio/u8-asnprintf-tests: Likewise.
6283         * modules/unistdio/u8-vasnprintf-tests: Likewise.
6284         * modules/unistdio/u8-vasprintf-tests: Likewise.
6285         * modules/unistdio/u8-vsnprintf-tests: Likewise.
6286         * modules/unistdio/u8-vsprintf-tests: Likewise.
6287         * modules/unistdio/u16-asnprintf-tests: Likewise.
6288         * modules/unistdio/u16-vasnprintf-tests: Likewise.
6289         * modules/unistdio/u16-vasprintf-tests: Likewise.
6290         * modules/unistdio/u16-vsnprintf-tests: Likewise.
6291         * modules/unistdio/u16-vsprintf-tests: Likewise.
6292         * modules/unistdio/u32-asnprintf-tests: Likewise.
6293         * modules/unistdio/u32-vasnprintf-tests: Likewise.
6294         * modules/unistdio/u32-vasprintf-tests: Likewise.
6295         * modules/unistdio/u32-vsnprintf-tests: Likewise.
6296         * modules/unistdio/u32-vsprintf-tests: Likewise.
6297         * modules/unistdio/ulc-asnprintf-tests: Likewise.
6298         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
6299         * modules/unistdio/ulc-vasprintf-tests: Likewise.
6300         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
6301         * modules/unistdio/ulc-vsprintf-tests: Likewise.
6302         * modules/unistr/u8-check-tests: Likewise.
6303         * modules/unistr/u8-chr-tests: Likewise.
6304         * modules/unistr/u8-cmp-tests: Likewise.
6305         * modules/unistr/u8-cmp2-tests: Likewise.
6306         * modules/unistr/u8-cpy-alloc-tests: Likewise.
6307         * modules/unistr/u8-cpy-tests: Likewise.
6308         * modules/unistr/u8-mblen-tests: Likewise.
6309         * modules/unistr/u8-mbsnlen-tests: Likewise.
6310         * modules/unistr/u8-mbtouc-tests: Likewise.
6311         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
6312         * modules/unistr/u8-mbtoucr-tests: Likewise.
6313         * modules/unistr/u8-move-tests: Likewise.
6314         * modules/unistr/u8-next-tests: Likewise.
6315         * modules/unistr/u8-prev-tests: Likewise.
6316         * modules/unistr/u8-set-tests: Likewise.
6317         * modules/unistr/u8-stpcpy-tests: Likewise.
6318         * modules/unistr/u8-stpncpy-tests: Likewise.
6319         * modules/unistr/u8-strcat-tests: Likewise.
6320         * modules/unistr/u8-strcmp-tests: Likewise.
6321         * modules/unistr/u8-strcoll-tests: Likewise.
6322         * modules/unistr/u8-strcpy-tests: Likewise.
6323         * modules/unistr/u8-strdup-tests: Likewise.
6324         * modules/unistr/u8-strlen-tests: Likewise.
6325         * modules/unistr/u8-strmblen-tests: Likewise.
6326         * modules/unistr/u8-strmbtouc-tests: Likewise.
6327         * modules/unistr/u8-strncat-tests: Likewise.
6328         * modules/unistr/u8-strncmp-tests: Likewise.
6329         * modules/unistr/u8-strncpy-tests: Likewise.
6330         * modules/unistr/u8-strnlen-tests: Likewise.
6331         * modules/unistr/u8-to-u16-tests: Likewise.
6332         * modules/unistr/u8-to-u32-tests: Likewise.
6333         * modules/unistr/u8-uctomb-tests: Likewise.
6334         * modules/unistr/u16-check-tests: Likewise.
6335         * modules/unistr/u16-chr-tests: Likewise.
6336         * modules/unistr/u16-cmp-tests: Likewise.
6337         * modules/unistr/u16-cmp2-tests: Likewise.
6338         * modules/unistr/u16-cpy-alloc-tests: Likewise.
6339         * modules/unistr/u16-cpy-tests: Likewise.
6340         * modules/unistr/u16-mblen-tests: Likewise.
6341         * modules/unistr/u16-mbsnlen-tests: Likewise.
6342         * modules/unistr/u16-mbtouc-tests: Likewise.
6343         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
6344         * modules/unistr/u16-mbtoucr-tests: Likewise.
6345         * modules/unistr/u16-move-tests: Likewise.
6346         * modules/unistr/u16-next-tests: Likewise.
6347         * modules/unistr/u16-prev-tests: Likewise.
6348         * modules/unistr/u16-set-tests: Likewise.
6349         * modules/unistr/u16-stpcpy-tests: Likewise.
6350         * modules/unistr/u16-stpncpy-tests: Likewise.
6351         * modules/unistr/u16-strcat-tests: Likewise.
6352         * modules/unistr/u16-strcmp-tests: Likewise.
6353         * modules/unistr/u16-strcoll-tests: Likewise.
6354         * modules/unistr/u16-strcpy-tests: Likewise.
6355         * modules/unistr/u16-strdup-tests: Likewise.
6356         * modules/unistr/u16-strlen-tests: Likewise.
6357         * modules/unistr/u16-strmblen-tests: Likewise.
6358         * modules/unistr/u16-strmbtouc-tests: Likewise.
6359         * modules/unistr/u16-strncat-tests: Likewise.
6360         * modules/unistr/u16-strncmp-tests: Likewise.
6361         * modules/unistr/u16-strncpy-tests: Likewise.
6362         * modules/unistr/u16-strnlen-tests: Likewise.
6363         * modules/unistr/u16-to-u32-tests: Likewise.
6364         * modules/unistr/u16-to-u8-tests: Likewise.
6365         * modules/unistr/u16-uctomb-tests: Likewise.
6366         * modules/unistr/u32-check-tests: Likewise.
6367         * modules/unistr/u32-chr-tests: Likewise.
6368         * modules/unistr/u32-cmp-tests: Likewise.
6369         * modules/unistr/u32-cmp2-tests: Likewise.
6370         * modules/unistr/u32-cpy-alloc-tests: Likewise.
6371         * modules/unistr/u32-cpy-tests: Likewise.
6372         * modules/unistr/u32-mblen-tests: Likewise.
6373         * modules/unistr/u32-mbsnlen-tests: Likewise.
6374         * modules/unistr/u32-mbtouc-tests: Likewise.
6375         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
6376         * modules/unistr/u32-mbtoucr-tests: Likewise.
6377         * modules/unistr/u32-move-tests: Likewise.
6378         * modules/unistr/u32-next-tests: Likewise.
6379         * modules/unistr/u32-prev-tests: Likewise.
6380         * modules/unistr/u32-set-tests: Likewise.
6381         * modules/unistr/u32-stpcpy-tests: Likewise.
6382         * modules/unistr/u32-stpncpy-tests: Likewise.
6383         * modules/unistr/u32-strcat-tests: Likewise.
6384         * modules/unistr/u32-strcmp-tests: Likewise.
6385         * modules/unistr/u32-strcoll-tests: Likewise.
6386         * modules/unistr/u32-strcpy-tests: Likewise.
6387         * modules/unistr/u32-strdup-tests: Likewise.
6388         * modules/unistr/u32-strlen-tests: Likewise.
6389         * modules/unistr/u32-strmblen-tests: Likewise.
6390         * modules/unistr/u32-strmbtouc-tests: Likewise.
6391         * modules/unistr/u32-strncat-tests: Likewise.
6392         * modules/unistr/u32-strncmp-tests: Likewise.
6393         * modules/unistr/u32-strncpy-tests: Likewise.
6394         * modules/unistr/u32-strnlen-tests: Likewise.
6395         * modules/unistr/u32-to-u16-tests: Likewise.
6396         * modules/unistr/u32-to-u8-tests: Likewise.
6397         * modules/unistr/u32-uctomb-tests: Likewise.
6398         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6399         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6400         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6401         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6402         * modules/uniwidth/u8-strwidth-tests: Likewise.
6403         * modules/uniwidth/u8-width-tests: Likewise.
6404         * modules/uniwidth/u16-strwidth-tests: Likewise.
6405         * modules/uniwidth/u16-width-tests: Likewise.
6406         * modules/uniwidth/u32-strwidth-tests: Likewise.
6407         * modules/uniwidth/u32-width-tests: Likewise.
6408         * modules/uniwidth/width-tests: Likewise.
6409
6410 2010-05-18  Richard Jones  <rjones@redhat.com>
6411
6412         doc: users.txt: list hivex
6413         * users.txt: Add hivex.
6414
6415 2010-05-18  Richard Jones  <rjones@redhat.com>
6416
6417         doc: users.txt: list febootstrap
6418         * users.txt: Add febootstrap.
6419
6420 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6421
6422         bootstrap: fix an error when gnulib is not used as a git submodule
6423         * build-aux/bootstrap (gnulib_path): If its length is zero then
6424         assign "gnulib" to it.
6425         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6426
6427 2010-05-16  Bruno Haible  <bruno@clisp.org>
6428
6429         Avoid autoconf warnings about AM_ICONV.
6430         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6431         2.64.
6432
6433 2010-05-16  Bruno Haible  <bruno@clisp.org>
6434
6435         absolute-header: Make the macro usable in more situations.
6436         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6437         from gl_ABSOLUTE_HEADER.
6438         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6439
6440 2010-05-16  James Youngman  <jay@gnu.org>
6441
6442         doc: update users.txt
6443         * users.txt: Add CSSC.
6444
6445 2010-05-16  Jim Meyering  <meyering@redhat.com>
6446
6447         init.sh: fix an error in the previous change; add more comments
6448         * tests/init.sh: Compare exit code in loop against 9, not 2.
6449         Patch by Bruno Haible.
6450         Make the two tests more similar by adding an empty "then" clause.
6451         Add comments.
6452
6453         init.sh: avoid unnecessary shell re-exec
6454         * tests/init.sh: Improve the re-exec-required check to first test the
6455         current shell.  If it passes the test, do not search for a shell that
6456         does pass, and do not re-exec.  This test is particularly contorted to
6457         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6458         of $(...) evokes a syntax error and causes immediate shell exit with
6459         status 2.  Bruno Haible reported that the re-exec made it impossible
6460         to single-step through any init.sh-using script.
6461
6462 2010-05-16  Bruno Haible  <bruno@clisp.org>
6463
6464         Fix collision between gnulib's and libintl's printf replacements.
6465         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6466         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6467         (printf): When using GNU C, map the __printf__ function to rpl_printf
6468         via __asm__. When not using GNU C, define rpl_printf instead of
6469         __printf__.
6470         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6471         commit.
6472         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6473         commit.
6474         * m4/asm-underscore.m4: New file.
6475         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6476         * modules/stdio (Files): Add m4/asm-underscore.m4.
6477         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6478         Reported by Ben Pfaff.
6479
6480 2010-05-16  Bruno Haible  <bruno@clisp.org>
6481
6482         verify: Avoid skipping the test on openSUSE 11.0.
6483         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6484
6485 2010-05-13  Bruno Haible  <bruno@clisp.org>
6486
6487         Avoid useless warnings from G++.
6488         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6489         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6490         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6491
6492 2010-05-11  Jim Meyering  <meyering@redhat.com>
6493
6494         maint.mk: tweak preceding change
6495         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6496         regexps tighter by anchoring at EOL, and make the new group "shy"
6497         for slightly decreased overhead.
6498
6499 2010-05-11  Eric Blake  <eblake@redhat.com>
6500
6501         maint.mk: gnulib doesn't guarantee NSIG
6502         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6503
6504 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6505
6506         test-pwrite.c: Remove unused variable declaration.
6507         * tests/test-pwrite.c (main): Remove read_buf declaration.
6508
6509         Remove useless test-pwrite.sh file.
6510         * tests/test-pwrite.sh: Delete file.
6511         * modules/pwrite-tests: Remove references.
6512         Reported by Bruno Haible.
6513
6514 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6515
6516         init.sh: fix a typo
6517         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6518
6519 2010-05-10  Jim Meyering  <meyering@redhat.com>
6520
6521         maint.mk: avoid using a temporary file in the always-defined-macros check
6522         * top/maint.mk (.re-defmac): Remove rule.
6523         (gl_trap_): Remove definition.
6524         (sc_prohibit_always-defined_macros): Rewrite not to create and
6525         depend on a temporary file.  Instead, depend on GNU grep's ability
6526         to read a list of regular expressions from stdin when given "-f -".
6527
6528 2010-05-09  Bruno Haible  <bruno@clisp.org>
6529
6530         Update to GNU gettext 0.18, part 1.
6531         * m4/gettext.m4: Update to GNU gettext 0.18.
6532         * m4/intl.m4: Likewise.
6533         * m4/po.m4: Likewise.
6534         * modules/gettext (Files): Add m4/fcntl-o.m4.
6535         (configure.ac): Require gettext infrastructure from version 0.18.
6536
6537 2010-05-09  Jim Meyering  <meyering@redhat.com>
6538
6539         init.sh: enable MALLOC_PERTURB_
6540         * tests/init.sh: Enable glibc's malloc-perturbing option.
6541
6542         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6543         With my recent change in init.sh from the two-line form:
6544             -#   : ${srcdir=.}
6545             -#   . "$srcdir/init.sh"; path_prepend_ .
6546             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6547         I noticed that using the one-line form would cause this test
6548         to fail with a false-positive, or to stop working altogether,
6549         depending on whether help-version changed or all the tests did.
6550         * top/maint.mk (_hv_regex): Remove this definition.
6551         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6552         (_hv_regex_strong): Use a stronger regex to check for conformance.
6553         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6554         Give a separate diagnostic for lack of conforming use.
6555
6556         maint.mk: prohibit definition of symbols defined by gnulib
6557         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6558         definition of symbols defined by gnulib.
6559
6560 2010-05-09  Bruno Haible  <bruno@clisp.org>
6561
6562         acl: Avoid test failure on Cygwin-hosted mingw.
6563         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6564
6565 2010-05-09  Bruno Haible  <bruno@clisp.org>
6566
6567         error: Use system's fcntl function.
6568         * lib/error.c (fcntl): Undefine.
6569
6570 2010-05-09  Jim Meyering  <meyering@redhat.com>
6571
6572         verify: adjust formatting to be more consistent
6573         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6574         argument-list '('s, and after one comma.
6575
6576 2010-05-09  Bruno Haible  <bruno@clisp.org>
6577
6578         error: More reliable output on mingw.
6579         * lib/error.c: Include <windows.h>.
6580         (is_open): New function.
6581         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6582         defined.
6583
6584 2010-05-09  Bruno Haible  <bruno@clisp.org>
6585
6586         vasnprintf: Fix syntax errors in libintl build on mingw.
6587         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6588         pad_ourselves and prec_ourselves after use.
6589
6590 2010-05-08  Bruno Haible  <bruno@clisp.org>
6591
6592         * lib/config.charset: Update comments for Cygwin 1.7.
6593         * lib/localcharset.c: Likewise.
6594
6595 2010-05-07  Jim Meyering  <meyering@redhat.com>
6596
6597         init.sh: improve comments
6598         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6599         . "${srcdir=.}/init.sh"; path_prepend_ .
6600         Add a note about path_prepend_ and the alternative of using
6601         TESTS_ENVIRONMENT.
6602
6603 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6604
6605         exclude: Unescape hashed patterns in wildcard mode.
6606         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6607         to the hash list.
6608         * tests/test-exclude8.sh: New test case.
6609         * modules/exclude-tests: Add new test.
6610
6611 2010-05-05  Eric Blake  <eblake@redhat.com>
6612
6613         verify: automate tests
6614         * modules/verify-tests: New module.
6615         * tests/test-verify.sh: New file.
6616         * tests/test-verify.c: Guard each negative test with a unique id.
6617         Also avoid warning about unused left hand of comma expressions.
6618
6619 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6620
6621         Further improvements to verify.h, suggested by Eric Blake.
6622         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6623         the GL_* versions, to avoid collision with OpenGL.
6624         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6625         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6626         than testing merely whether it's defined.
6627
6628         Modify verify.h to pacify gcc -Wredundant_decls.
6629         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6630         These use the prefix "GL_" since they're likely to be useful elsewhere.
6631         We may need to break them out into a different .h file.
6632         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6633         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6634         of verify_function__.
6635
6636 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6637
6638         Tests for module pwrite.
6639         * modules/pwrite-tests: New file.
6640         * tests/test-pwrite.sh: New file.
6641         * tests/test-pwrite.c: New file.
6642
6643         New module pwrite.
6644         * lib/unistd.in.h (pwrite): New declaration.
6645         * lib/pwrite.c: New file, from glibc with modifications.
6646         * m4/pwrite.m4: New file.
6647         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6648         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6649         REPLACE_PWRITE.
6650         * modules/pwrite: New file.
6651         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6652         REPLACE_PWRITE.
6653         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6654         * doc/posix-functions/pwrite.texi: Mention the new module.
6655
6656 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6657
6658         pread: Update documentation.
6659         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6660
6661 2010-05-04  Eric Blake  <eblake@redhat.com>
6662
6663         docs: update cygwin progress
6664         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6665         this bug.
6666         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6667         Added in cygwin 1.7.2.
6668         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6669         Likewise.
6670         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6671         Likewise.
6672         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6673         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6674         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6675         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
6676         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
6677         Mention nproc module.
6678         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
6679         bug in cygwin 1.7.5 addition.
6680         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
6681         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
6682         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
6683         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
6684         1.7.5.
6685         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
6686         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
6687         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
6688         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
6689         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
6690         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
6691         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
6692         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
6693         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
6694         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
6695         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
6696         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
6697         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
6698         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
6699         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
6700         Likewise.
6701         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
6702         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
6703         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
6704         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
6705         Likewise.
6706         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
6707         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
6708         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
6709         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
6710         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
6711         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
6712         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
6713         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
6714         Likewise.
6715         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
6716         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
6717         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
6718         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
6719         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
6720         Likewise.
6721         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
6722         Likewise.
6723         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
6724         Likewise.
6725         * doc/glibc-functions/xdrrec_endofrecord.texi
6726         (xdrrec_endofrecord): Likewise.
6727         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
6728         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
6729         Likewise.
6730         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
6731         Likewise.
6732
6733 2010-05-04  Jim Meyering  <meyering@redhat.com>
6734
6735         gendocs.sh: make its "-s FILE" option more useful
6736         * build-aux/gendocs.sh: When honoring the -s FILE option, update
6737         $PACKAGE to reflect the probably-different basename of "FILE".
6738
6739 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6740
6741         bootstrap: don't ignore download_po_files failure
6742         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
6743         failure.
6744
6745 2010-05-03  Jim Meyering  <meyering@redhat.com>
6746
6747         maint.mk: allow to pass options to gendocs.sh
6748         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
6749         (gendocs_options_): New overridable variable.
6750
6751         gnu-web-doc-update: don't ignore configure or build failure
6752         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
6753
6754         announce-gen: backslash-escape '@'s in --help output
6755         * build-aux/announce-gen: Fix syntax errors.
6756
6757         maint.mk, announce-gen: allow project-specific announcement mail headers
6758         * top/maint.mk (translation_project_): Define default.
6759         (announcement_Cc_, announcement_mail_headers_): Likewise.
6760         (announcement): Invoke announce-gen with new --mail-headers option.
6761         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
6762
6763         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
6764         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
6765         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
6766         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
6767         line in the "err2" output file when running "make check" in verbose
6768         mode (i.e., with set -x enabled).
6769
6770 2010-05-03  Bruno Haible  <bruno@clisp.org>
6771
6772         wctob: Fix for weird platforms.
6773         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
6774         argument value.
6775
6776 2010-05-03  Jim Meyering  <meyering@redhat.com>
6777
6778         maint.mk: prohibit unwarranted use of <strings.h>
6779         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
6780         strings.h in a file that does not also use strcasecmp, strncasecmp,
6781         ffs or ffsll.
6782
6783         maint.mk: remove obsolete comments
6784         * top/maint.mk: Remove stale, commented-out rules.
6785
6786 2010-05-02  Bruno Haible  <bruno@clisp.org>
6787
6788         wcwidth: Declare also when it's aliased.
6789         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
6790         macro.
6791
6792 2010-05-02  Bruno Haible  <bruno@clisp.org>
6793
6794         Fix regression from 2010-04-25.
6795         * gnulib-tool (func_modules_transitive_closure): Check the status of
6796         all modules, not only of the tests that are of the form foo-tests where
6797         foo is a module.
6798
6799 2010-05-02  Bruno Haible  <bruno@clisp.org>
6800
6801         wctob: Work around nasty Cygwin 1.7.2 bug.
6802         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
6803         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
6804
6805 2010-05-01  Bruno Haible  <bruno@clisp.org>
6806
6807         fpurge: Sharper test.
6808         * tests/test-fpurge.c (main): Add one more ftell check.
6809         * modules/fpurge-tests (Depends-on): Add ftell.
6810         Suggested by Eric Blake.
6811
6812 2010-05-01  Bruno Haible  <bruno@clisp.org>
6813
6814         ftello: Another test.
6815         * tests/test-ftello3.c: New file.
6816         * modules/ftello-tests (Files): Add it.
6817         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6818         MOSTLYCLEANFILES.
6819
6820         ftell: Another test.
6821         * tests/test-ftell3.c: New file.
6822         * modules/ftell-tests (Files): Add it.
6823         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6824         MOSTLYCLEANFILES.
6825
6826 2010-05-01  Bruno Haible  <bruno@clisp.org>
6827
6828         ftell, ftello: Work around Solaris bug.
6829         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
6830         * lib/ftello.c: Include stdio-impl.h.
6831         (ftello): On Solaris, when _IOWRT is set, compute the result without
6832         looking at _IOREAD.
6833         * modules/ftello (Files): Add lib/stdio-impl.h.
6834         * doc/posix-functions/ftell.texi: Mention Solaris bug.
6835         * doc/posix-functions/ftello.texi: Likewise.
6836         Reported by Eric Blake.
6837
6838 2010-05-01  Bruno Haible  <bruno@clisp.org>
6839
6840         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6841         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6842         the _IOWRT flag is also set.
6843
6844 2010-05-01  Bruno Haible  <bruno@clisp.org>
6845
6846         Fix doc about a HP-UX stdio bug.
6847         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6848         * doc/posix-functions/ftello.texi: Likewise.
6849
6850 2010-05-01  Bruno Haible  <bruno@clisp.org>
6851
6852         lseek test: Fix failure on Solaris.
6853         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6854         output.
6855
6856 2010-04-30  Jim Meyering  <meyering@redhat.com>
6857
6858         bootstrap: don't ignore failure to generate po*/Makevars
6859         * build-aux/bootstrap (with_gettext): Don't ignore failure
6860         to create po/Makevars or runtime-po/Makevars.
6861
6862 2010-04-29  Eric Blake  <eblake@redhat.com>
6863
6864         headers: relax license to LGPLv2+
6865         * modules/fcntl-h (License): Relax license.
6866         * modules/getopt-posix (License): Likewise.
6867         * modules/locale (License): Likewise.
6868         * modules/math (License): Likewise.
6869         * modules/pty (License): Likewise.
6870         * modules/sched (License): Likewise.
6871         * modules/search (License): Likewise.
6872         * modules/spawn (License): Likewise.
6873         * modules/stdarg (License): Likewise.
6874         * modules/sysexits (License): Likewise.
6875
6876 2010-04-29  Jim Meyering  <meyering@redhat.com>
6877
6878         inttypes: relax license to LGPLv2+
6879         * modules/inttypes (License): Relax license.
6880
6881 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6882
6883         * top/maint.mk (indent): Run twice to produce idempotent results.
6884
6885 2010-04-28  Bruno Haible  <bruno@clisp.org>
6886
6887         getdate: Generate getdate.c in the source directory.
6888         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6889         MOSTLYCLEANFILES.
6890         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6891
6892 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6893
6894         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6895         is not declared as a const *; avoid warnings in that case.
6896
6897 2010-04-28  Eric Blake  <eblake@redhat.com>
6898
6899         canonicalize-lgpl: avoid compiler warning
6900         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6901         declaration' / 'extraneous semicolon' warning with some compilers.
6902         Reported by Andreas Gruenbacher.
6903
6904 2010-04-28  Jim Meyering  <meyering@redhat.com>
6905
6906         init.sh: ensure a more reliable exit status when exiting via trap
6907         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6908         Inspired by patches from Dmitry V. Levin.
6909         Also trap on signal 3 (SIGQUIT).
6910
6911 2010-04-27  Bruno Haible  <bruno@clisp.org>
6912
6913         Update doc about utimes().
6914         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6915         'utimens' module.
6916         Reported by Andreas Gruenbacher <agruen@suse.de>.
6917
6918 2010-04-27  Eric Blake  <eblake@redhat.com>
6919
6920         full-read, full-write: relax license
6921         * modules/full-read (License): Drop to LGPLv2+.
6922         * modules/full-write (License): Likewise.
6923         * modules/safe-read (License): Likewise.
6924         * modules/safe-write (License): Likewise.
6925
6926         pthread: mention library for linking
6927         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6928
6929 2010-04-27  Jim Meyering  <meyering@redhat.com>
6930
6931         maint.mk: fix a bug introduced in last change
6932         * top/maint.mk (gl_assured_headers_): Now that all names are on
6933         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6934         is not anchored to end of word, it should be adequate.
6935
6936         maint.mk: avoid side-effect in latest syntax-check
6937         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6938         to run commands via $(shell...), and hence to incur cost only when
6939         the new rule is actually run.
6940
6941         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6942         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6943         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6944         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6945         (gl_assured_headers_, az_, AZ_): Define.
6946         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6947
6948 2010-04-26  Jim Meyering  <jim@meyering.net>
6949             Bruno Haible  <bruno@clisp.org>
6950
6951         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6952         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6953         Prompted by an exchange with Gilles Espinasse.
6954
6955 2010-04-26  Jim Meyering  <meyering@redhat.com>
6956
6957         git-version-gen: aesthetic tweak
6958         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6959         so that the command remains on a single line.
6960
6961 2010-04-26  Eric Blake  <eblake@redhat.com>
6962
6963         git-version-gen: allow use on EBCDIC hosts
6964         * build-aux/git-version-gen (dirty): Use literal rather than tying
6965         ourselves to ascii.
6966         Reported by Steve Goetze.
6967
6968 2010-04-25  Bruno Haible  <bruno@clisp.org>
6969
6970         netdb: Add support for GNULIB_POSIXCHECK.
6971         * lib/netdb.in.h: Include warn-on-use.h.
6972         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6973         functions are used when GNULIB_POSIXCHECK is defined and the
6974         getaddrinfo module is not in use.
6975         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6976         freeaddrinfo, gai_strerror, getnameinfo are declared.
6977         * modules/netdb (Depends-on): Add warn-on-use.
6978         (Makefile.am): Include warn-on-use.h in netdb.h.
6979
6980 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6981
6982         build: avoid "make check" failure without .git/ directory
6983         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6984         there is no .git/ directory.
6985
6986 2010-04-25  Bruno Haible  <bruno@clisp.org>
6987
6988         ptsname: Fix misuse of ttyname_r.
6989         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6990         of errno.
6991
6992 2010-04-25  Bruno Haible  <bruno@clisp.org>
6993
6994         ttyname_r: Make it work on Solaris 10.
6995         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6996         if the system function has the POSIX declaration. Test whether the
6997         function fails if the buffer is less than 128 bytes large.
6998         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6999         system's ttyname_r function. Provide a reasonably large buffer.
7000         * modules/ttyname_r (Depends-on): Add extensions.
7001         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
7002
7003 2010-04-25  Bruno Haible  <bruno@clisp.org>
7004
7005         Use the 'extensions' module for some more functions on Solaris.
7006         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
7007         module.
7008         * doc/posix-functions/ctime_r.texi: Likewise.
7009         * doc/posix-functions/getgrgid_r.texi: Likewise.
7010         * doc/posix-functions/getgrnam_r.texi: Likewise.
7011         * doc/posix-functions/getpwnam_r.texi: Likewise.
7012         * doc/posix-functions/getpwuid_r.texi: Likewise.
7013         * doc/posix-functions/readdir_r.texi: Likewise.
7014         * doc/posix-functions/sigwait.texi: Likewise.
7015         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
7016         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
7017
7018 2010-04-25  Bruno Haible  <bruno@clisp.org>
7019
7020         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
7021         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
7022         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
7023         * lib/ttyname_r.c: Include <limits.h>.
7024         (ttyname_r): Define using the system's ttyname_r function, if it exists
7025         and not on Solaris.
7026         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
7027         set.
7028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
7029         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
7030         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
7031         Reported by Simon Josefsson.
7032
7033 2010-04-25  Bruno Haible  <bruno@clisp.org>
7034
7035         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
7036         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
7037         * doc/posix-functions/ctime_r.texi: Likewise.
7038         * doc/posix-functions/getgrgid_r.texi: Likewise.
7039         * doc/posix-functions/getgrnam_r.texi: Likewise.
7040         * doc/posix-functions/getlogin_r.texi: Likewise.
7041         * doc/posix-functions/getpwnam_r.texi: Likewise.
7042         * doc/posix-functions/getpwuid_r.texi: Likewise.
7043         * doc/posix-functions/readdir_r.texi: Likewise.
7044         * doc/posix-functions/sigwait.texi: Likewise.
7045         * doc/posix-functions/ttyname_r.texi: Likewise.
7046         Reported by Simon Josefsson.
7047
7048 2010-04-25  Bruno Haible  <bruno@clisp.org>
7049
7050         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
7051         * gnulib-tool (func_usage): Document that --with-*-tests options apply
7052         also to --create-testdir.
7053         (func_acceptable): Don't consider the status of *-tests modules here.
7054         (func_modules_transitive_closure): Consider it here, before including a
7055         test module.
7056         (func_import, func_create_testdir): Set inc_all_direct_tests,
7057         inc_all_indirect_tests.
7058         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
7059         --create-testdir and --create-megatestdir.
7060
7061 2010-04-25  Bruno Haible  <bruno@clisp.org>
7062
7063         gnulib-tool: Add --without-*-tests options.
7064         * gnulib-tool (func_usage): Document the --without-*-tests options.
7065         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
7066         excl_unportable_tests): New variables.
7067         Fail if they are specified with --import or --update.
7068         (func_acceptable): Respect the excl_*_tests variables.
7069         (func_import): Set the excl_*_tests variables to empty.
7070
7071 2010-04-25  Simon Josefsson  <simon@josefsson.org>
7072             Bruno Haible  <bruno@clisp.org>
7073
7074         Work around a MacOS X 10.4 bug with openpty.
7075         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
7076         * tests/test-openpty.c (main): Close the master side explicitly.
7077
7078 2010-04-25  Bruno Haible  <bruno@clisp.org>
7079
7080         strnlen: Fix a C++ test error on MacOS X and Solaris.
7081         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
7082         the function is not declared.
7083         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
7084         Simon Josefsson.
7085
7086 2010-04-24  Bruno Haible  <bruno@clisp.org>
7087
7088         Avoid a gcc warning.
7089         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
7090         of correct type for %08lx directive.
7091         Reported by Eric Blake.
7092
7093 2010-04-24  Bruno Haible  <bruno@clisp.org>
7094
7095         vasnprintf: Correct errno value in case of out-of-memory.
7096         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
7097         or sprintf. Use the errno value from SNPRINTF or sprintf.
7098         Reported by Ian Beckwith <ianb@erislabs.net>.
7099
7100 2010-04-24  Bruno Haible  <bruno@clisp.org>
7101
7102         ansi-c++-opt: Find correct compiler when cross-compiling.
7103         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
7104         AC_CHECK_PROGS.
7105         Reported by Simon Josefsson.
7106
7107 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
7108
7109         vc-list-files: Add support for subversion
7110         * build-aux/vc-list-files: Use "svn list" to generate the list of
7111         files controlled by subversion.
7112
7113 2010-04-23  Jim Meyering  <meyering@redhat.com>
7114
7115         vc-list-files tests: convert to use init.sh
7116         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
7117         path_prepend_.
7118         Use Exit, not exit.
7119         Use skip_ rather than open coding it.
7120         Remove trap set-up and compare definitions.
7121         * tests/test-vc-list-files-git.sh: Likewise.
7122         * modules/vc-list-files-tests (Files): Add tests/init.sh.
7123
7124 2010-04-22  Simon Josefsson  <simon@josefsson.org>
7125
7126         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
7127         backup files.
7128
7129 2010-04-21  Simon Josefsson  <simon@josefsson.org>
7130
7131         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
7132
7133 2010-04-20  Eric Blake  <eblake@redhat.com>
7134
7135         tests: be robust to ignored SIGPIPE
7136         * tests/test-select-in.sh: Consume all output.
7137         * tests/test-lseek.sh: Check correct exit status, while avoiding
7138         EPIPE.
7139
7140 2010-04-20  Simon Josefsson  <simon@josefsson.org>
7141             Bruno Haible  <bruno@clisp.org>
7142
7143         visibility: Don't use -fvisibility if it leads to a warning.
7144         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
7145         yes, don't pretend that visibility works if it leads to a warning.
7146         Reported by Mike Gran <spk121@yahoo.com>.
7147
7148 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
7149
7150         * build-aux/bootstrap: Use "git -h" for testing for supported options
7151         instead of "git --help".  The short-form option only shows a summary,
7152         and doesn't layout the full man page.  Grep for the full option name
7153         in the summary, too.
7154
7155 2010-04-19  Bruno Haible  <bruno@clisp.org>
7156
7157         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
7158         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
7159         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
7160         mention of RELOCATABLE_STRIP.
7161         Reported by Sylvain Beucler <beuc@beuc.net>.
7162
7163 2010-04-19  Bruno Haible  <bruno@clisp.org>
7164
7165         * lib/diffseq.h: Fix typo in comment.
7166         Reported by Eric Blake.
7167
7168 2010-04-19  Bruno Haible  <bruno@clisp.org>
7169
7170         ioctl: Move autoconf macro to a .m4 file.
7171         * m4/ioctl.m4: New file, extracted from modules/ioctl.
7172         * modules/ioctl (Files): Add it.
7173         (configure.ac): Simply invoke gl_FUNC_IOCTL.
7174         Reported by Ian Beckwith <ianb@erislabs.net>.
7175
7176 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
7177             Bruno Haible  <bruno@clisp.org>
7178
7179         diffseq: Accommodate use-case with abstract arrays.
7180         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
7181         is not defined.
7182         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
7183         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
7184
7185 2010-04-18  Bruno Haible  <bruno@clisp.org>
7186
7187         * doc/posix-headers/stdbool.texi: More precise wording.
7188
7189 2010-04-17  Jim Meyering  <meyering@redhat.com>
7190
7191         maint.mk: use gnu-style indentation in an embedded perl script
7192         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
7193         Rename variable: s/two/last_two_bytes/
7194
7195 2010-04-16  Eric Blake  <eblake@redhat.com>
7196
7197         test-stdbool: skip test that fails with Solaris CC
7198         * tests/test-stdbool.c (f): Skip test that causes compilation
7199         error under buggy C++ compiler.
7200         * lib/stdbool.in.h: Document the limitation.
7201         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
7202
7203         setenv: allow compilation with C++
7204         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
7205         register keyword.
7206
7207         stdint: allow test to pass with C++
7208         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
7209
7210         getopt: allow compilation with C++
7211         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
7212         struct.
7213         * lib/getopt.c (_getopt_internal_r): Use correct type.
7214         Reported by Dagobert Michelson, via Joel E. Denny.
7215
7216 2010-04-16  Bruno Haible  <bruno@clisp.org>
7217
7218         Override netdb.h always.
7219         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
7220         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
7221         Reported by Ludovic Courtès <ludo@gnu.org>.
7222
7223 2010-04-15  Bruno Haible  <bruno@clisp.org>
7224
7225         openpty: Fix mistake from 2010-03-21.
7226         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
7227         Reported by Simon Josefsson.
7228
7229 2010-04-15  Eric Blake  <eblake@redhat.com>
7230
7231         test-forkpty: fix expected signature
7232         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
7233         Reported by Simon Josefsson.
7234
7235 2010-04-15  Jim Meyering  <meyering@redhat.com>
7236
7237         maint.mk: texinfo_suffix_re_: correct the default regexp
7238         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
7239
7240         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
7241         make it configurable via texinfo_suffix_re_.
7242
7243 2010-04-14  Eric Blake  <eblake@redhat.com>
7244
7245         strtok_r: relax license to LGPLv2+
7246         * modules/strtok_r (License): Relax license.
7247         Reported by Matthias Bolte.
7248
7249 2010-04-14  Simon Josefsson  <simon@josefsson.org>
7250
7251         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
7252         version 1.4.4 by default instead of requiring the libgcrypt
7253         version used during build.  This makes it possible to use the
7254         application with older but still binary compatible libgcrypt
7255         versions.
7256
7257 2010-04-13  Eric Blake  <eblake@redhat.com>
7258
7259         getopt-gnu: match recent glibc fixes and posix ruling
7260         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
7261         '+' handling, when requesting extensions.
7262         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
7263         'W;' handling.
7264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
7265         * doc/posix-functions/getopt.texi (getopt): Document this.
7266         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7267         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7268         Likewise.
7269
7270         getopt: merge bug fixes from glibc
7271         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
7272         diagnostics.  Honor '+:' correctly.  Reject ';'.
7273
7274         getopt-posix: detect MacOS bug
7275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
7276         optind when missing a required argument.
7277         * doc/posix-functions/getopt.texi (getopt): Document the bug.
7278         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7279         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7280         Likewise.
7281
7282         getopt-posix: avoid spurious failure on Solaris
7283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
7284         an indicator that setting optind=1 is sufficient for reset.
7285
7286         getopt-posix: avoid spurious failure on FreeBSD
7287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
7288         in POSIX mode, since the m4 test uses it.
7289
7290         gnulib-tool: silence warning on BSD sh
7291         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
7292
7293 2010-04-13  Jim Meyering  <meyering@redhat.com>
7294
7295         doc: users.txt: GNU patch now uses gnulib
7296         * users.txt: Add patch.
7297
7298 2010-04-12  Jim Meyering  <meyering@redhat.com>
7299
7300         maint.mk: generate more concise timing data for syntax-check rules
7301         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
7302         " done" from each line that reports a syntax-check test duration.
7303
7304 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
7305
7306         git-version-gen: use "git update-index..." rather than "git status"
7307         * build-aux/git-version-gen: Use git update-index --refresh, not
7308         "git status".  With some versions of git, "git status" would fail
7309         to update the index and result in an unwarranted "-dirty" suffix.
7310
7311 2010-04-11  Jim Meyering  <meyering@redhat.com>
7312
7313         openat: correct formatting (no semantic change)
7314         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
7315         Suggested by Bruno Haible.
7316
7317 2010-04-11  Bruno Haible  <bruno@clisp.org>
7318
7319         Stricter declaration checking in testdirs.
7320         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7321         If for_tests is true, augment AM_CPPFLAGS to define
7322         GNULIB_STRICT_CHECKING.
7323         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
7324         GNULIB_STRICT_CHECKING is defined, verify that the function is
7325         declared.
7326
7327 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
7328             Bruno Haible  <bruno@clisp.org>
7329
7330         libunistring: Improve configure output.
7331         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
7332         Don't say "consider installing GNU libunistring" when checking again
7333         with libiconv.
7334
7335 2010-04-11  Bruno Haible  <bruno@clisp.org>
7336
7337         libunistring: Correct value of $LTLIBUNISTRING.
7338         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
7339         correct the value of $LTLIBUNISTRING.
7340
7341 2010-04-11  Bruno Haible  <bruno@clisp.org>
7342
7343         havelib: Add static libraries to LIBS in the right order.
7344         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
7345         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
7346
7347 2010-04-11  Bruno Haible  <bruno@clisp.org>
7348
7349         libunistring: Detect libunistring also when it depends on libiconv.
7350         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
7351         the second AC_LIB_HAVE_LINKFLAGS invocation.
7352
7353 2010-04-11  James Youngman  <jay@gnu.org>
7354
7355         close-stream: declare local scalars to be "const"
7356         * lib/close-stream.c (close_stream): Make boolean variables const
7357         to document the fact that we set but do not change them.
7358
7359 2010-04-11  Bruno Haible  <bruno@clisp.org>
7360
7361         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
7362
7363 2010-04-11  Jim Meyering  <meyering@redhat.com>
7364
7365         maint.mk: don't include dist-check.mk
7366         * top/maint.mk: Remove bogus include directive.
7367
7368         maint.mk: improve empty-line-at-EOF check
7369         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
7370         solution, rather than tail+Perl-based one.  The latter would read
7371         a few kilobytes from the end of each file, and did not handle empty
7372         files properly.
7373
7374         maint.mk: print the elapsed time for each syntax-check rule
7375         * top/maint.mk (sc_m_rules_): Save start time in a file.
7376         (sc_z_rules_): New rules: remove temp file and print elapsed time.
7377         (local-check): Interpose the .z rules
7378
7379 2010-04-11  Jim Meyering  <meyering@redhat.com>
7380
7381         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
7382         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
7383         empty file with one that ends in an empty line.
7384
7385 2010-04-10  Bruno Haible  <bruno@clisp.org>
7386
7387         mkdir: Make it work on mingw64.
7388         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
7389         * lib/mkdir.c: Update comment.
7390         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
7391
7392 2010-04-10  Bruno Haible  <bruno@clisp.org>
7393
7394         Don't override improved macro from newer autoconf.
7395         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7396         autoconf >= 2.62.
7397         Reported by Joel E. Denny <jdenny@clemson.edu>.
7398
7399 2010-04-10  Jim Meyering  <meyering@redhat.com>
7400
7401         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7402         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7403
7404         maint.mk: correct a diagnostic
7405         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7406         in diagnostic; now use $prohibit.
7407
7408 2010-04-10  Bruno Haible  <address@hidden>
7409
7410         fchownat: Fix a C++ test error on Solaris 8.
7411         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7412         the function does not exist.
7413
7414 2010-04-10  Bruno Haible  <bruno@clisp.org>
7415
7416         vasnprintf: Add more tests.
7417         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7418         (test_function): Test converting an invalid wide string.
7419
7420         vasnprintf: Correct handling of unconvertible wide string arguments.
7421         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7422         VASNPRINTF.
7423         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7424         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7425         smaller than the expected maximum need for the directive. Set errno to
7426         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7427         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7429         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7430         * modules/vasnprintf (Files): Add m4/printf.m4.
7431         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7432
7433 2010-04-10  Bruno Haible  <bruno@clisp.org>
7434
7435         vasnprintf: Fix crash in %ls directive.
7436         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7437         string is passed as argument to %ls, with no precision and no width.
7438         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7439
7440 2010-04-10  Bruno Haible  <bruno@clisp.org>
7441
7442         vasnprintf: Fix multiple test failures on mingw.
7443         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7444         _snprintf, or snwprintf, not _snwprintf.
7445
7446 2010-04-10  Bruno Haible  <bruno@clisp.org>
7447
7448         write: Fix a C++ test error on mingw.
7449         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7450
7451 2010-04-10  Bruno Haible  <bruno@clisp.org>
7452
7453         vasnprintf test: Reduce code duplication.
7454         * tests/test-vasnprintf.c (test_function): New function, extracted from
7455         test_vasnprintf.
7456         (test_vasnprintf, test_asnprintf): Invoke it.
7457
7458 2010-04-10  Bruno Haible  <bruno@clisp.org>
7459
7460         strnlen: Fix warning in C++ mode on MacOS X.
7461         * lib/string.in.h (strnlen): Use the modern idiom.
7462         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7463         defining strnlen as a macro already in <config.h>.
7464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7465         REPLACE_STRNLEN.
7466         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7467         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7468
7469 2010-04-08  James Youngman  <jay@gnu.org>
7470
7471         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7472         the example.
7473
7474 2010-04-09  Jim Meyering  <meyering@redhat.com>
7475
7476         maint.mk: print better diagnostic when there is no $(_hv_file)
7477         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7478         announce that when $(_hv_file) (aka help-version) does not exist.
7479
7480         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7481         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7482         not try to interpret its random input bytes.  Jarno Rajahalme reported
7483         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7484         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7485         (mktempd_): Likewise, just in case.
7486
7487         ftruncate: add two years to projected module removal date: 2012
7488         * m4/ftruncate.m4: Adjust comments.
7489
7490         ftruncate: mark module as obsolete; even MinGW provides it, now
7491         * modules/ftruncate (Status): Obsolete.
7492         (Notice): Say that.
7493         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7494         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7495
7496 2010-04-08  Bruno Haible  <bruno@clisp.org>
7497
7498         Fix side effects from tests-related modules.
7499         * modules/dprintf-posix (Comment): New section.
7500         * modules/fprintf-posix (Comment): Likewise.
7501         * modules/obstack-printf-posix (Comment): Likewise.
7502         * modules/printf-posix (Comment): Likewise.
7503         * modules/snprintf-posix (Comment): Likewise.
7504         * modules/sprintf-posix (Comment): Likewise.
7505         * modules/vasnprintf-posix (Comment): Likewise.
7506         * modules/vasprintf-posix (Comment): Likewise.
7507         * modules/vdprintf-posix (Comment): Likewise.
7508         * modules/vfprintf-posix (Comment): Likewise.
7509         * modules/vprintf-posix (Comment): Likewise.
7510         * modules/vsnprintf-posix (Comment): Likewise.
7511         * modules/vsprintf-posix (Comment): Likewise.
7512         * modules/xprintf-posix (Comment): Likewise.
7513         * modules/xvasprintf-posix (Comment): Likewise.
7514         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7515         * modules/floorf-tests (Depends-on): Likewise.
7516         * modules/round-tests (Depends-on): Likewise.
7517         * modules/roundf-tests (Depends-on): Likewise.
7518         * modules/trunc-tests (Depends-on): Likewise.
7519         * modules/truncf-tests (Depends-on): Likewise.
7520         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7521         'fprintf-posix' module is not present.
7522         * tests/test-floorf2.c (check): Likewise.
7523         * tests/test-trunc2.c (check): Likewise.
7524         * tests/test-truncf2.c (check): Likewise.
7525         * tests/test-round2.c (equal): Likewise.
7526         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7527
7528 2010-04-07  Karl Berry  <karl@gnu.org>
7529
7530         * config/srclist.txt,
7531         * config/srclistvars.sh,
7532         * config/srclist-update: doc fixes.
7533
7534 2010-04-07  Jim Meyering  <meyering@redhat.com>
7535
7536         maint.mk: add a PATH crosschecking syntax-check rule
7537         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7538         Useful if you use a test like the one in help-version (coreutils,
7539         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7540         printed by prog --version.
7541
7542 2010-04-06  Bruno Haible  <bruno@clisp.org>
7543
7544         Fix link error on mingw.
7545         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7546         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7547
7548 2010-04-06  Bruno Haible  <bruno@clisp.org>
7549
7550         Assume rmdir exists.
7551         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7552
7553 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7554
7555         doc: update users.txt
7556         * users.txt: Add gcal.
7557
7558 2010-04-06  Jim Meyering  <meyering@redhat.com>
7559
7560         init.sh: simply unset TMPDIR rather than risking env -i
7561         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7562         although it probably works fine on all Unix-based systems, some
7563         systems (Cygwin?) cannot tolerate a totally cleared environment.
7564         Suggestion from Eric Blake.
7565
7566 2010-04-06  Jim Meyering  <meyering@redhat.com>
7567
7568         init.sh: portability fix: use env's POSIX-specified -i option not -u
7569         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7570         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7571
7572 2010-04-05  Bruno Haible  <bruno@clisp.org>
7573
7574         btowc: Work around Cygwin 1.7.2 bug.
7575         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7576         does not map NUL to 0.
7577         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7578
7579 2010-04-05  Bruno Haible  <bruno@clisp.org>
7580
7581         Make the multithread modules work on Cygwin 1.7.2.
7582         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7583         imported symbols can be declared weak, so that it returns "no" on
7584         Cygwin 1.7.2.
7585
7586 2010-04-05  Bruno Haible  <bruno@clisp.org>
7587
7588         Use the module 'strncat'.
7589         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7590
7591         Tests for module 'strncat'.
7592         * modules/strncat-tests: New file.
7593         * tests/test-strncat.c: New file.
7594
7595         New module 'strncat'.
7596         * lib/string.in.h (strncat): New declaration.
7597         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7598         * m4/strncat.m4: New file, based on m4/memchr.m4.
7599         * modules/strncat: New file.
7600         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7601         is declared.
7602         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7603         REPLACE_STRNCAT.
7604         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7605         REPLACE_STRNCAT.
7606         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7607         module.
7608         * tests/test-string-c++.cc: Check signature of strncat.
7609
7610 2010-04-05  Jim Meyering  <meyering@redhat.com>
7611
7612         xstrtoumax-tests: convert to use init.sh
7613         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7614         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7615         Use Exit, not exit.
7616         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7617
7618         xstrtoimax-tests: convert to use init.sh
7619         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7620         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7621         Use Exit, not exit.
7622         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7623
7624 2010-04-05  Bruno Haible  <bruno@clisp.org>
7625
7626         sys_socket: Avoid #define replacements in C++ mode.
7627         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7628         warning to the function if possible, rather than #defining the symbol
7629         to a dysfunctional alias.
7630
7631 2010-04-05  Bruno Haible  <bruno@clisp.org>
7632
7633         fseeko: Fix C++ test error on mingw.
7634         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7635         gl_FUNC_FSEEKO.
7636         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7637         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7638         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7639         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7640
7641 2010-04-05  Bruno Haible  <bruno@clisp.org>
7642
7643         duplocale: Improve test output.
7644         * tests/test-duplocale.c (main): Print reason for skipped test.
7645
7646 2010-04-05  Bruno Haible  <bruno@clisp.org>
7647
7648         Assume rmdir exists.
7649         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7650         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7651
7652 2010-04-05  Bruno Haible  <bruno@clisp.org>
7653
7654         Fix link error on Solaris 8 with cc.
7655         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7656
7657 2010-04-05  Bruno Haible  <bruno@clisp.org>
7658
7659         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7660         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7661
7662 2010-04-05  Bruno Haible  <bruno@clisp.org>
7663
7664         vasprintf: Update documentation.
7665         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7666
7667 2010-04-05  Bruno Haible  <bruno@clisp.org>
7668
7669         ptsname: Improve test.
7670         * tests/test-ptsname.c (main): Also try the various master names of BSD
7671         systems.
7672
7673 2010-04-05  Bruno Haible  <bruno@clisp.org>
7674
7675         memchr: Avoid a possible C++ test error.
7676         * lib/string.in.h (memchr): Provide declaration if function is missing.
7677         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
7678         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
7679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
7680         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
7681
7682 2010-04-05  Bruno Haible  <bruno@clisp.org>
7683
7684         strtok_r: Improve idiom.
7685         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
7686         AC_LIBOBJ is used.
7687
7688 2010-04-05  Bruno Haible  <bruno@clisp.org>
7689
7690         strdup: Improve idiom.
7691         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
7692         AC_LIBOBJ is used.
7693         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7694         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
7695         when AC_LIBOBJ is used.
7696
7697 2010-04-05  Bruno Haible  <bruno@clisp.org>
7698
7699         mbsinit, mbrtowc, wcrtomb: Improve idioms.
7700         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
7701         don't set REPLACE_MBSINIT to 1.
7702         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
7703         don't set REPLACE_MBRTOWC to 1.
7704         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
7705         exist, don't set REPLACE_MBSRTOWCS to 1.
7706         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
7707         exist, don't set REPLACE_MBSNRTOWCS to 1.
7708         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
7709         don't set REPLACE_WCRTOMB to 1.
7710         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
7711         exist, don't set REPLACE_WCSRTOMBS to 1.
7712         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
7713         exist, don't set REPLACE_WCSNRTOMBS to 1.
7714
7715 2010-04-05  Bruno Haible  <bruno@clisp.org>
7716
7717         ldexpl: Improve idiom.
7718         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
7719         make sure to set HAVE_DECL_LDEXPL to 0.
7720
7721 2010-04-05  Jim Meyering  <meyering@redhat.com>
7722
7723         xstrtol-tests: convert to use init.sh
7724         * modules/xstrtol-tests (Files): Add tests/init.sh.
7725         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7726         Use Exit, not exit.
7727         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7728
7729         atexit-tests: convert to use init.sh
7730         * modules/atexit-tests (Files): Add tests/init.sh.
7731         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7732         Use Exit, not exit.
7733         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7734
7735         init.sh: fix typo
7736         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
7737
7738         init.sh: make it easier for a test script to write to the tty, ...
7739         when using automake's parallel-tests mode.
7740         * tests/init.sh (stderr_fileno_): Define overridable variable.
7741         (warn_): New function, to use it.
7742         (fail_, skip_, framework_failure_): Use warn_.
7743
7744 2010-04-04  Bruno Haible  <bruno@clisp.org>
7745
7746         btowc: Avoid warning.
7747         * lib/btowc.c: Include <stdlib.h>.
7748         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
7749
7750 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7751             Bruno Haible  <bruno@clisp.org>
7752
7753         wchar: Port to NetBSD 1.5.
7754         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
7755         * lib/wctype.in.h (WEOF): Likewise.
7756
7757 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7758             Bruno Haible  <bruno@clisp.org>
7759
7760         Port extended stdio to NetBSD 1.5.
7761         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
7762         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
7763         older.
7764
7765 2010-04-04  Bruno Haible  <bruno@clisp.org>
7766
7767         string: Remove unused substitution.
7768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7769         HAVE_DECL_STRERROR.
7770         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
7771
7772 2010-04-04  Bruno Haible  <bruno@clisp.org>
7773
7774         strtod: Avoid a possible C++ test error.
7775         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
7776         set REPLACE_STRTOD.
7777
7778 2010-04-04  Bruno Haible  <bruno@clisp.org>
7779
7780         strerror: Update documentation.
7781         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
7782
7783 2010-04-04  Bruno Haible  <bruno@clisp.org>
7784
7785         stdio: Fix some C++ test errors on Solaris 8 with GCC.
7786         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
7787         _GL_CXXALIAS_SYS_CAST.
7788
7789 2010-04-04  Bruno Haible  <bruno@clisp.org>
7790
7791         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7792         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
7793         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
7794         REPLACE_FREXPL to 1.
7795         * doc/posix-functions/frexpl.texi: Update documentation.
7796
7797 2010-04-04  Bruno Haible  <bruno@clisp.org>
7798
7799         math: Fix some C++ test errors on Solaris 8 and Cygwin.
7800         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
7801
7802 2010-04-04  Bruno Haible  <bruno@clisp.org>
7803
7804         Implement nanosleep for native Windows.
7805         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
7806
7807 2010-04-04  Bruno Haible  <bruno@clisp.org>
7808
7809         math: Fix some C++ test errors on Solaris 8.
7810         * lib/math.in.h (truncf, trunc): Use simpler idiom.
7811
7812 2010-04-04  Bruno Haible  <bruno@clisp.org>
7813
7814         math: Fix some C++ test errors on Cygwin.
7815         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
7816         truncl): Provide declaration if the system does not have it.
7817         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
7818         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
7819         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
7820         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
7821         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
7822         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
7823         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
7824         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
7825         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
7826         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
7827         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
7828         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
7829         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
7830         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
7831         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
7832         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
7833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
7834         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7835         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7836         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
7837         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7838         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7839
7840 2010-04-04  Bruno Haible  <bruno@clisp.org>
7841
7842         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7843         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7844         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7845         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7846         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7847         * m4/isinf.m4 (gl_ISINF): Likewise.
7848         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7849
7850 2010-04-04  Bruno Haible  <bruno@clisp.org>
7851
7852         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7853         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7854
7855 2010-04-04  Bruno Haible  <bruno@clisp.org>
7856
7857         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7858         * modules/tmpfile (configure.ac): Update.
7859
7860         tmpfile: Fix C++ test error on mingw.
7861         * lib/stdio.in.h (tmpfile): New declaration.
7862         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7863         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7864         * modules/tmpfile (Depends-on): Add stdio.
7865         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7866         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7867         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7868         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7869         REPLACE_TMPFILE.
7870         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7871
7872 2010-04-04  Bruno Haible  <bruno@clisp.org>
7873
7874         ioctl: Fix C++ test error on mingw.
7875         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7876         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7877         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7878
7879 2010-04-03  Bruno Haible  <bruno@clisp.org>
7880
7881         wcwidth: Fix C++ test error on mingw.
7882         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7884         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7885
7886 2010-04-03  Bruno Haible  <bruno@clisp.org>
7887
7888         nanosleep: Fix C++ test error on mingw.
7889         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7890         * lib/time.in.h (nanosleep): Use modern idiom.
7891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7892         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7893         REPLACE_NANOSLEEP to 1.
7894         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7895         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7896
7897 2010-04-03  Bruno Haible  <bruno@clisp.org>
7898
7899         strptime: Fix C++ test error on mingw.
7900         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7901         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7902         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7903         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7904         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7905         not REPLACE_STRPTIME.
7906         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7907         REPLACE_STRPTIME.
7908
7909 2010-04-03  Bruno Haible  <bruno@clisp.org>
7910
7911         timegm: Fix C++ test error on mingw.
7912         * lib/time.in.h (timegm): Use modern idiom.
7913         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7914         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7915         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7916         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7917
7918 2010-04-03  Bruno Haible  <bruno@clisp.org>
7919
7920         timegm: Assume declaration if function exists.
7921         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7922         if it exists. Don't clobber ac_cv_func_timegm.
7923
7924 2010-04-03  Bruno Haible  <bruno@clisp.org>
7925
7926         time_r: Fix C++ test error on mingw.
7927         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7928         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7929         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7930         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7931         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7932
7933 2010-04-03  Bruno Haible  <bruno@clisp.org>
7934
7935         time_r: Minor updates.
7936         * modules/time_r (Description): Mention the provided functions.
7937         * lib/time_r.c: Don't include <string.h>.
7938         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7939         * doc/posix-functions/localtime_r.texi: Likewise.
7940
7941 2010-04-03  Bruno Haible  <bruno@clisp.org>
7942
7943         time: Fix regression introduced on 2010-03-08.
7944         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7945         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7946
7947 2010-04-03  Jim Meyering  <meyering@redhat.com>
7948
7949         maint.mk: don't silently disable project-specific syntax-check rules
7950         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7951         that they need to convert their project-specific syntax-check rules
7952         to use the new _sc_search_regexp.
7953
7954 2010-04-03  Bruno Haible  <bruno@clisp.org>
7955
7956         fchdir: Fix regression introduced on 2010-03-08.
7957         * lib/unistd.in.h (fchdir): Fix declaration.
7958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7960         REPLACE_FCHDIR.
7961         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7962         REPLACE_FCHDIR.
7963
7964 2010-04-03  Bruno Haible  <bruno@clisp.org>
7965
7966         getpagesize: Fix C++ test error on mingw.
7967         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7968         system does not declare the function.
7969         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7970         declared.
7971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7972         HAVE_DECL_GETPAGESIZE.
7973         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7974
7975 2010-04-03  Bruno Haible  <bruno@clisp.org>
7976
7977         stdio: Make C++ tests work on mingw.
7978         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7979         does not declare the function.
7980
7981 2010-04-03  Bruno Haible  <bruno@clisp.org>
7982
7983         ftello: Fix C++ test error on mingw.
7984         * lib/stdio.in.h (ftello): Use modern idiom.
7985         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7986         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7987         is missing and that it needs to be replaced.
7988         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7990         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7991
7992 2010-04-03  Bruno Haible  <bruno@clisp.org>
7993
7994         fseeko: Fix C++ test error on mingw.
7995         * lib/stdio.in.h (fseeko): Use modern idiom.
7996         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7997         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7998         is missing and that it needs to be replaced.
7999         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
8000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
8001         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
8002
8003 2010-04-03  Bruno Haible  <bruno@clisp.org>
8004
8005         mkstemp: Fix C++ test error on mingw.
8006         * lib/stdlib.in.h (mkstemp): Use modern idiom.
8007         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
8008         function is missing and that it needs to be replaced.
8009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
8010         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
8011
8012 2010-04-03  Bruno Haible  <bruno@clisp.org>
8013
8014         stpncpy: Fix C++ test error on mingw.
8015         * lib/string.in.h (stpncpy): Use modern idiom.
8016         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
8017         function is missing and that it needs to be replaced.
8018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8019         REPLACE_STPNCPY.
8020         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
8021
8022 2010-04-03  Bruno Haible  <bruno@clisp.org>
8023
8024         sys_stat: Fix C++ test error on mingw.
8025         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
8026         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
8027
8028 2010-04-03  Bruno Haible  <bruno@clisp.org>
8029
8030         pty: Update doc.
8031         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
8032
8033 2010-04-03  Bruno Haible  <bruno@clisp.org>
8034
8035         unistd: Fix C++ test error on mingw.
8036         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
8037
8038 2010-04-03  Bruno Haible  <bruno@clisp.org>
8039
8040         Update doc regarding mingw.
8041         * doc/glibc-functions/openpty.texi: Update regarding mingw.
8042         * doc/glibc-functions/login_tty.texi: Likewise.
8043         * doc/glibc-functions/forkpty.texi: Likewise.
8044
8045 2010-04-03  Bruno Haible  <bruno@clisp.org>
8046
8047         stdlib: Avoid compilation failure of c-strtold on mingw.
8048         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
8049
8050 2010-04-03  Bruno Haible  <bruno@clisp.org>
8051
8052         locale: Make C++ tests work on Cygwin and mingw.
8053         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
8054         cannot provide the function.
8055         Reported by Simon Josefsson.
8056
8057 2010-04-03  Bruno Haible  <bruno@clisp.org>
8058
8059         localename: Port to MacOS X 10.6.
8060         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
8061         memory layout of the locales in MacOS X 10.6 as well.
8062         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
8063
8064 2010-04-02  Bruno Haible  <bruno@clisp.org>
8065
8066         gnulib-tool: Ensure that long-running tests are executed last.
8067         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
8068         running tests after the one for the other tests.
8069
8070 2010-04-02  Bruno Haible  <bruno@clisp.org>
8071
8072         gnulib-tool: Ensure the tests in the main directory are executed first.
8073         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
8074         start with the current directory.
8075
8076 2010-04-02  Bruno Haible  <bruno@clisp.org>
8077
8078         Tests for module 'havelib', moved here from GNU gettext.
8079         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
8080         modifications.
8081         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
8082         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
8083         with modifications.
8084         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
8085         modifications.
8086         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
8087         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
8088         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
8089         with modifications.
8090         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
8091         with modifications.
8092         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
8093         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
8094         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
8095         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
8096         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
8097         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
8098         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
8099         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
8100         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
8101         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
8102         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
8103         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
8104         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
8105         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
8106         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
8107         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
8108         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
8109         with modifications.
8110         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
8111         with modifications.
8112         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
8113         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
8114         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
8115         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
8116         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
8117         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
8118         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
8119         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
8120         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
8121         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
8122         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
8123         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
8124         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
8125         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
8126         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
8127         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
8128         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
8129         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
8130         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
8131         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
8132         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
8133         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
8134         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
8135         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
8136         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
8137         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
8138         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
8139         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
8140         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
8141         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
8142         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
8143         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
8144         * tests/havelib/rpathx/rpathx.c: New file, from
8145         gettext/autoconf-lib-link.
8146         * tests/havelib/rpathx/Makefile.am: New file, from
8147         gettext/autoconf-lib-link.
8148         * tests/havelib/rpathx/configure.ac: New file, from
8149         gettext/autoconf-lib-link with modifications.
8150         * tests/havelib/rpathy/rpathy.c: New file, from
8151         gettext/autoconf-lib-link.
8152         * tests/havelib/rpathy/Makefile.am: New file, from
8153         gettext/autoconf-lib-link.
8154         * tests/havelib/rpathy/configure.ac: New file, from
8155         gettext/autoconf-lib-link with modifications.
8156         * tests/havelib/rpathz/rpathz.c: New file, from
8157         gettext/autoconf-lib-link.
8158         * tests/havelib/rpathz/Makefile.am: New file, from
8159         gettext/autoconf-lib-link.
8160         * tests/havelib/rpathz/configure.ac: New file, from
8161         gettext/autoconf-lib-link with modifications.
8162         * tests/havelib/rpathlx/usex.c: New file, from
8163         gettext/autoconf-lib-link.
8164         * tests/havelib/rpathlx/Makefile.am: New file, from
8165         gettext/autoconf-lib-link.
8166         * tests/havelib/rpathlx/configure.ac: New file, from
8167         gettext/autoconf-lib-link with modifications.
8168         * tests/havelib/rpathly/usey.c: New file, from
8169         gettext/autoconf-lib-link.
8170         * tests/havelib/rpathly/Makefile.am: New file, from
8171         gettext/autoconf-lib-link.
8172         * tests/havelib/rpathly/configure.ac: New file, from
8173         gettext/autoconf-lib-link with modifications.
8174         * tests/havelib/rpathlz/usez.c: New file, from
8175         gettext/autoconf-lib-link.
8176         * tests/havelib/rpathlz/Makefile.am: New file, from
8177         gettext/autoconf-lib-link.
8178         * tests/havelib/rpathlz/configure.ac: New file, from
8179         gettext/autoconf-lib-link with modifications.
8180         * tests/havelib/rpathlyx/usey.c: New file, from
8181         gettext/autoconf-lib-link.
8182         * tests/havelib/rpathlyx/Makefile.am: New file, from
8183         gettext/autoconf-lib-link.
8184         * tests/havelib/rpathlyx/configure.ac: New file, from
8185         gettext/autoconf-lib-link with modifications.
8186         * tests/havelib/rpathlzyx/usez.c: New file, from
8187         gettext/autoconf-lib-link.
8188         * tests/havelib/rpathlzyx/Makefile.am: New file, from
8189         gettext/autoconf-lib-link.
8190         * tests/havelib/rpathlzyx/configure.ac: New file, from
8191         gettext/autoconf-lib-link with modifications.
8192         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
8193         with modifications.
8194
8195 2010-04-02  Bruno Haible  <bruno@clisp.org>
8196
8197         gnulib-tool: Create distributed built sources also for the tests.
8198         * gnulib-tool (func_create_testdir): Also generate distributed built
8199         sources in the tests directory.
8200
8201 2010-04-02  Bruno Haible  <bruno@clisp.org>
8202
8203         gnulib-tool: Obey user's environment variables.
8204         * gnulib-tool (func_create_testdir): When creating built sources,
8205         respect the environment variables for autoconf, automake, etc. given by
8206         the user.
8207
8208 2010-04-02  Bruno Haible  <bruno@clisp.org>
8209
8210         gnulib-tool: Provide the value of --m4-base to modules.
8211         * gnulib-tool (func_import, func_create_testdir): Emit a definition
8212         of gl_m4_base.
8213
8214 2010-04-02  Eric Blake  <eblake@redhat.com>
8215
8216         maint.mk: fix some fallout
8217         * NEWS: Document the incompatible change, and its effect on cfg.mk.
8218         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
8219
8220 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8221
8222         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
8223         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
8224         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
8225         (sc_cast_of_x_alloc_return_value): Likewise.
8226         (sc_cast_of_alloca_return_value): Likewise.
8227         (sc_space_tab): Likewise.
8228         (sc_prohibit_atoi_atof): Likewise.
8229         (sc_prohibit_magic_number_exit): Likewise.
8230         (sc_error_exit_success): Likewise.
8231         (sc_file_system): Likewise.
8232         (sc_prohibit_have_config_h): Likewise.
8233         (sc_require_config_h): Likewise.
8234         (sc_prohibit_HAVE_MBRTOWC): Likewise.
8235         (sc_obsolete_symbols): Likewise.
8236         (sc_changelog): Likewise.
8237         (sc_program_name): Likewise.
8238         (sc_the_the): Likewise.
8239         (sc_trailing_blank): Likewise.
8240         (sc_two_space_separator_in_usage): Likewise.
8241         (sc_useless_cpp_parens): Likewise.
8242         (sc_GPL_version): Likewise.
8243         (sc_GFDL_version): Likewise.
8244         (sc_texinfo_acronym): Likewise.
8245         (sc_prohibit_cvs_keyword): Likewise.
8246         (sc_prohibit_stat_st_blocks): Likewise.
8247         (sc_prohibit_S_IS_definition): Likewise.
8248         (sc_redundant_const): Likewise.
8249         (sc_makefile_TAB_only_indentation): Likewise.
8250         (sc_m4_quote_check): Likewise.
8251         (sc_makefile_path_separator_check): Likewise.
8252         (sc_copyright_check): Likewise.
8253         (sc_Wundef_boolean): Likewise.
8254         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8255
8256         maint.mk: match 0 or more whitespace-before-function-call '('
8257         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
8258         that have zero or two-and-more spaces between the function name
8259         and the open parenthesis.
8260         (sc_error_message_warn_fatal): Likewise.
8261         (sc_error_message_uppercase): Likewise.
8262         (sc_error_message_period): Likewise.
8263
8264 2010-03-31  Eric Blake  <eblake@redhat.com>
8265
8266         maint.mk: check for [ as well as test
8267         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
8268         Based on a libvirt report by Matthias Bolte.
8269
8270         gnumakefile: don't squelch _version output
8271         * top/GNUmakefile (_version): Create one-shot dependency rather
8272         than using $(shell) when version must be regenerated.
8273         (_autoreconf): Run verbosely, by default.
8274
8275         sys_time: avoid compiler warnings
8276         * lib/sys_time.in.h (includes): Ensure gcc pragma is
8277         unconditional, fixing regression from 2010-03-29.
8278         Reported by Simon Josefsson.
8279
8280 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8281
8282         maint.mk: s/_header_without_use/_sc_header_without_use/
8283         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
8284         (sc_prohibit_assert_without_use): Use the new name.
8285         (sc_prohibit_close_stream_without_use): Likewise.
8286         (sc_prohibit_getopt_without_use): Likewise.
8287         (sc_prohibit_quotearg_without_use): Likewise.
8288         (sc_prohibit_quote_without_use): Likewise.
8289         (sc_prohibit_long_options_without_use): Likewise.
8290         (sc_prohibit_inttostr_without_use): Likewise.
8291         (sc_prohibit_ignore_value_without_use): Likewise.
8292         (sc_prohibit_error_without_use): Likewise.
8293         (sc_prohibit_xalloc_without_use): Likewise.
8294         (sc_prohibit_hash_without_use): Likewise.
8295         (sc_prohibit_hash_pjw_without_use): Likewise.
8296         (sc_prohibit_safe_read_without_use): Likewise.
8297         (sc_prohibit_argmatch_without_use): Likewise.
8298         (sc_prohibit_canonicalize_without_use): Likewise.
8299         (sc_prohibit_root_dev_ino_without_use): Likewise.
8300         (sc_prohibit_openat_without_use): Likewise.
8301         (sc_prohibit_c_ctype_without_use): Likewise.
8302         (sc_prohibit_signal_without_use): Likewise.
8303         (sc_prohibit_intprops_without_use): Likewise.
8304
8305 2010-03-30  Eric Blake  <eblake@redhat.com>
8306
8307         maint: improve module indicators
8308         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
8309         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
8310         columns, and avoid extra macro expansion.
8311
8312         fdopendir: work around FreeBSD bug
8313         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8314         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
8315         * modules/dirent (Makefile.am): Substitute it.
8316         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
8317         declaration.
8318         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
8319         fix.
8320         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8321
8322 2010-03-29  Bruno Haible  <bruno@clisp.org>
8323
8324         Emit #pragma system_header after the inclusion guard, not before.
8325         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
8326         guard that spans the entire file, not before. This enables an
8327         optimization in GCC's preprocessor.
8328         * lib/ctype.in.h: Likewise.
8329         * lib/dirent.in.h: Likewise.
8330         * lib/errno.in.h: Likewise.
8331         * lib/float.in.h: Likewise.
8332         * lib/getopt.in.h: Likewise.
8333         * lib/iconv.in.h: Likewise.
8334         * lib/langinfo.in.h: Likewise.
8335         * lib/locale.in.h: Likewise.
8336         * lib/math.in.h: Likewise.
8337         * lib/netdb.in.h: Likewise.
8338         * lib/netinet_in.in.h: Likewise.
8339         * lib/pty.in.h: Likewise.
8340         * lib/sched.in.h: Likewise.
8341         * lib/se-selinux.in.h: Likewise.
8342         * lib/search.in.h: Likewise.
8343         * lib/spawn.in.h: Likewise.
8344         * lib/stdarg.in.h: Likewise.
8345         * lib/stdint.in.h: Likewise.
8346         * lib/string.in.h: Likewise.
8347         * lib/strings.in.h: Likewise.
8348         * lib/sys_file.in.h: Likewise.
8349         * lib/sys_ioctl.in.h: Likewise.
8350         * lib/sys_time.in.h: Likewise.
8351         * lib/sys_times.in.h: Likewise.
8352         * lib/sys_utsname.in.h: Likewise.
8353         * lib/sys_wait.in.h: Likewise.
8354         * lib/sysexits.in.h: Likewise.
8355         * lib/wctype.in.h: Likewise.
8356
8357 2010-03-28  James Youngman  <jay@gnu.org>
8358
8359         save-cwd: don't leak a file descriptor when the caller execs.
8360         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
8361         saved file descriptor.
8362         * modules/save-cwd (Depends-on): Depend on cloexec.
8363
8364 2010-03-29  Bruno Haible  <bruno@clisp.org>
8365
8366         Remove vestiges of fts-lgpl module.
8367         * lib/fts_.h: Assume GNULIB_FTS is 1.
8368         * lib/fts.c: Likewise.
8369         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8370
8371 2010-03-28  Bruno Haible  <bruno@clisp.org>
8372
8373         Fix definition of tests witness macro.
8374         * gnulib-tool (func_import): Fix definition of witness macro.
8375
8376 2010-03-28  Bruno Haible  <bruno@clisp.org>
8377
8378         Fix ioctl's protoype on glibc systems.
8379         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
8380         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
8381         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
8382         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8383         signature. If not, arrange to replace the ioctl function.
8384         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8385         REPLACE_IOCTL.
8386         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
8387         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
8388         Reported by Ludovic Courtès <ludo@gnu.org>.
8389
8390 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
8391
8392         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
8393         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8394         made it so grep -r --include=GLOB* ... did not work.
8395
8396 2010-03-26  Jim Meyering  <meyering@redhat.com>
8397             Eric Blake  <eblake@redhat.com>
8398
8399         maint.mk: prohibit use of test's -o and -a operators
8400         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8401
8402 2010-03-28  Bruno Haible  <bruno@clisp.org>
8403
8404         Remove unused GNULIB_XYZ macro definitions.
8405         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8406         invocation.
8407
8408 2010-03-28  Bruno Haible  <bruno@clisp.org>
8409
8410         Mark privileged tests modules.
8411         * modules/idpriv-drop-tests (Status): New section.
8412         * modules/idpriv-droptemp-tests (Status): New section.
8413
8414 2010-03-28  Bruno Haible  <bruno@clisp.org>
8415
8416         Split C++ tests into separate tests modules.
8417         * modules/dirent-c++-tests: New file, extracted from
8418         modules/dirent-tests.
8419         * modules/dirent-tests: Depend on it.
8420         * modules/fcntl-h-c++-tests: New file, extracted from
8421         modules/fcntl-h-tests.
8422         * modules/fcntl-h-tests: Depend on it.
8423         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8424         * modules/glob-tests: Depend on it.
8425         * modules/iconv-h-c++-tests: New file, extracted from
8426         modules/iconv-h-tests.
8427         * modules/iconv-h-tests: Depend on it.
8428         * modules/langinfo-c++-tests: New file, extracted from
8429         modules/langinfo-tests.
8430         * modules/langinfo-tests: Depend on it.
8431         * modules/locale-c++-tests: New file, extracted from
8432         modules/locale-tests.
8433         * modules/locale-tests: Depend on it.
8434         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8435         * modules/math-tests: Depend on it.
8436         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8437         * modules/pty-tests: Depend on it.
8438         * modules/search-c++-tests: New file, extracted from
8439         modules/search-tests.
8440         * modules/search-tests: Depend on it.
8441         * modules/signal-c++-tests: New file, extracted from
8442         modules/signal-tests.
8443         * modules/signal-tests: Depend on it.
8444         * modules/spawn-c++-tests: New file, extracted from
8445         modules/spawn-tests.
8446         * modules/spawn-tests: Depend on it.
8447         * modules/stdio-c++-tests: New file, extracted from
8448         modules/stdio-tests.
8449         * modules/stdio-tests: Depend on it.
8450         * modules/stdlib-c++-tests: New file, extracted from
8451         modules/stdlib-tests.
8452         * modules/stdlib-tests: Depend on it.
8453         * modules/string-c++-tests: New file, extracted from
8454         modules/string-tests.
8455         * modules/string-tests: Depend on it.
8456         * modules/sys_ioctl-c++-tests: New file, extracted from
8457         modules/sys_ioctl-tests.
8458         * modules/sys_ioctl-tests: Depend on it.
8459         * modules/sys_select-c++-tests: New file, extracted from
8460         modules/sys_select-tests.
8461         * modules/sys_select-tests: Depend on it.
8462         * modules/sys_socket-c++-tests: New file, extracted from
8463         modules/sys_socket-tests.
8464         * modules/sys_socket-tests: Depend on it.
8465         * modules/sys_stat-c++-tests: New file, extracted from
8466         modules/sys_stat-tests.
8467         * modules/sys_stat-tests: Depend on it.
8468         * modules/sys_time-c++-tests: New file, extracted from
8469         modules/sys_time-tests.
8470         * modules/sys_time-tests: Depend on it.
8471         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8472         * modules/time-tests: Depend on it.
8473         * modules/unistd-c++-tests: New file, extracted from
8474         modules/unistd-tests.
8475         * modules/unistd-tests: Depend on it.
8476         * modules/wchar-c++-tests: New file, extracted from
8477         modules/wchar-tests.
8478         * modules/wchar-tests: Depend on it.
8479         * modules/wctype-c++-tests: New file, extracted from
8480         modules/wctype-tests.
8481         * modules/wctype-tests: Depend on it.
8482         Reported by Simon Josefsson.
8483
8484 2010-03-28  Bruno Haible  <bruno@clisp.org>
8485
8486         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8487         * gnulib-tool (func_exists_module): New function, extracted from
8488         func_verify_module.
8489         (func_verify_module): Use it.
8490         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8491         'foo' only if 'foo' exists.
8492         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8493         module.
8494
8495 2010-03-28  Bruno Haible  <bruno@clisp.org>
8496
8497         gnulib-tool: Add support for special categories of tests.
8498         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8499         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8500         (func_usage): Document them.
8501         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8502         inc_unportable_tests, inc_all_tests): New variables.
8503         (func_acceptable): Consider these variables.
8504         (func_modules_transitive_closure): Make it work when the 'Status' field
8505         consists of multiple words.
8506         (func_import): Store and restore the values of inc_cxx_tests,
8507         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8508         inc_all_tests in gnulib-comp.m4.
8509         (func_create_testdir): Set inc_all_tests to true.
8510         * doc/gnulib.texi (Extra tests modules): New section.
8511         Suggested by Jim Meyering.
8512
8513 2010-03-28  Bruno Haible  <bruno@clisp.org>
8514
8515         ansi-c++-opt: Allow turning off the C++ build by default.
8516         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8517         gl_CXX_CHOICE_DEFAULT_NO is defined.
8518         Requested by Eric Blake.
8519
8520 2010-03-28  Bruno Haible  <bruno@clisp.org>
8521
8522         unistd: Avoid #define replacements in C++ mode.
8523         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8524         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8525         setsockopt, shutdown, select): In C++, attach a warning to the function
8526         if possible, rather than #defining the symbol to a dysfunctional alias.
8527         Reported by John W. Eaton <jwe@gnu.org>.
8528
8529 2010-03-28  Bruno Haible  <bruno@clisp.org>
8530
8531         Fix link errors on mingw.
8532         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8533         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8534         $(LIBSOCKET).
8535         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8536         $(LIBSOCKET).
8537
8538 2010-03-28  Bruno Haible  <bruno@clisp.org>
8539             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8540
8541         lib-ignore: Determine different options for different compilers.
8542         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8543         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8544         Add comments.
8545         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8546         * NEWS: Mention the change.
8547
8548 2010-03-27  Bruno Haible  <bruno@clisp.org>
8549
8550         Remove unused GNULIB_XYZ macro definitions.
8551         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8552         * modules/fseek (configure.ac): Likewise.
8553         * modules/ioctl (configure.ac): Likewise.
8554         * modules/open (configure.ac): Likewise.
8555         * modules/stdlib-safer (configure.ac): Likewise.
8556
8557 2010-03-27  Bruno Haible  <bruno@clisp.org>
8558
8559         Add a remark about certain modules.
8560         * modules/malloc (Comment): New section.
8561         * modules/realloc (Comment): Likewise.
8562         * modules/sigpipe (Comment): Likewise.
8563
8564 2010-03-27  Bruno Haible  <bruno@clisp.org>
8565
8566         Resolve conflict between the two kinds of module indicators.
8567         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8568         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8569         * modules/canonicalize (configure.ac): Invoke
8570         gl_MODULE_INDICATOR_FOR_TESTS.
8571         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8572         GNULIB_XYZ.
8573         * tests/test-dirent-c++.cc: Likewise.
8574         * tests/test-dirent-safer.c: Likewise.
8575         * tests/test-dup2.c: Likewise.
8576         * tests/test-fchdir.c: Likewise.
8577         * tests/test-fcntl-h-c++.cc: Likewise.
8578         * tests/test-getopt.c: Likewise.
8579         * tests/test-getopt.h: Likewise.
8580         * tests/test-langinfo-c++.cc: Likewise.
8581         * tests/test-locale-c++.cc: Likewise.
8582         * tests/test-math-c++.cc: Likewise.
8583         * tests/test-pty-c++.cc: Likewise.
8584         * tests/test-search-c++.cc: Likewise.
8585         * tests/test-signal-c++.cc: Likewise.
8586         * tests/test-spawn-c++.cc: Likewise.
8587         * tests/test-stdio-c++.cc: Likewise.
8588         * tests/test-stdlib-c++.cc: Likewise.
8589         * tests/test-string-c++.cc: Likewise.
8590         * tests/test-sys_ioctl-c++.cc: Likewise.
8591         * tests/test-sys_select-c++.cc: Likewise.
8592         * tests/test-sys_socket-c++.cc: Likewise.
8593         * tests/test-sys_stat-c++.cc: Likewise.
8594         * tests/test-sys_time-c++.cc: Likewise.
8595         * tests/test-time-c++.cc: Likewise.
8596         * tests/test-unistd-c++.cc: Likewise.
8597         * tests/test-wchar-c++.cc: Likewise.
8598         * tests/uninorm/test-u8-nfc.c: Likewise.
8599         * tests/uninorm/test-u8-nfd.c: Likewise.
8600         * tests/uninorm/test-u8-nfkc.c: Likewise.
8601         * tests/uninorm/test-u8-nfkd.c: Likewise.
8602         * tests/uninorm/test-u16-nfc.c: Likewise.
8603         * tests/uninorm/test-u16-nfd.c: Likewise.
8604         * tests/uninorm/test-u16-nfkc.c: Likewise.
8605         * tests/uninorm/test-u16-nfkd.c: Likewise.
8606         * tests/uninorm/test-u32-nfc.c: Likewise.
8607         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8608         * tests/uninorm/test-u32-nfd.c: Likewise.
8609         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8610         * tests/uninorm/test-u32-nfkc.c: Likewise.
8611         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8612         * tests/uninorm/test-u32-nfkd.c: Likewise.
8613         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8614         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8615
8616 2010-03-27  Bruno Haible  <bruno@clisp.org>
8617
8618         Distinguish two kinds of module indicators.
8619         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8620         gl_MODULE_INDICATOR.
8621         (gl_MODULE_INDICATOR): New macro.
8622         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8623         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8624         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8625         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8626         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8627         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8628         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8629         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8630         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8631         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8632         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8633         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8635         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8636         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8637         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8638         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8639         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8640         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8641         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8642         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8643         * modules/cloexec (configure.ac): Likewise.
8644         * modules/getopt-gnu (configure.ac): Likewise.
8645         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8646         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8647         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8648         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8649
8650 2010-03-27  Bruno Haible  <bruno@clisp.org>
8651
8652         New module description field 'Comment'.
8653         * gnulib-tool: New option --extract-comment.
8654         (func_usage): Document it.
8655         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8656         (func_get_comment): New function.
8657         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8658
8659 2010-03-27  Bruno Haible  <bruno@clisp.org>
8660
8661         Addendum to 2010-02-07 commit.
8662         * gnulib-tool (func_usage): Document --extract-applicability option.
8663
8664 2010-03-27  Bruno Haible  <bruno@clisp.org>
8665
8666         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8667         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8668         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8669         rather than link errors.
8670
8671 2010-03-27  Bruno Haible  <bruno@clisp.org>
8672
8673         Avoid side effects from tests-related modules on the compilation of lib.
8674         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
8675         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
8676         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
8677         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8678         macro.
8679         (func_import): Define a witness macro. Assign it a value that depends
8680         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
8681         tests-related modules.
8682         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
8683         Reported by Jim Meyering.
8684
8685 2010-03-27  Bruno Haible  <bruno@clisp.org>
8686
8687         Factorize common .m4 code.
8688         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
8689         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
8690         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
8691         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
8692         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8693         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
8694         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
8695         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8696         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8697         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8698         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
8699         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8700         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8701         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8702         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8703         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
8704         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8705         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8707         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
8708         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
8709         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8710         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8711         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8712         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8713         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8714         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
8715         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
8716         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
8717         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8718         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8719         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8720
8721 2010-03-27  Bruno Haible  <bruno@clisp.org>
8722
8723         Fix a compilation error on Cygwin with g++ >= 4.3.
8724         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
8725         if it is undefined or if we alias it to chmod.
8726         (lstat): Don't warn about the use of this function if it is undefined
8727         or if we alias it to stat.
8728         Reported by Simon Josefsson.
8729
8730 2010-03-27  Bruno Haible  <bruno@clisp.org>
8731
8732         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
8733         * modules/getlogin (configure.ac): Update.
8734
8735         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
8736         * modules/getlogin_r (configure.ac): Update.
8737
8738         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
8739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
8740         * modules/inet_ntop (configure.ac): Update.
8741
8742         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
8743         * modules/inet_pton (configure.ac): Update.
8744
8745         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
8746         * modules/mbslen (configure.ac): Update.
8747
8748         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
8749         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
8750         * modules/forkpty (configure.ac): Update.
8751         * modules/openpty (configure.ac): Update.
8752
8753 2010-03-26  Simon Josefsson  <simon@josefsson.org>
8754
8755         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
8756         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
8757
8758 2010-03-25  Eric Blake  <eblake@redhat.com>
8759
8760         maint: use pragma consistently across replacement headers
8761         * lib/ctype.in.h (system_header): Hoist for consistent placement.
8762         * lib/dirent.in.h (system_header): Likewise.
8763         * lib/errno.in.h (system_header): Likewise.
8764         * lib/float.in.h (system_header): Likewise.
8765         * lib/getopt.in.h (system_header): Likewise.
8766         * lib/iconv.in.h (system_header): Likewise.
8767         * lib/inttypes.in.h (system_header): Likewise.
8768         * lib/langinfo.in.h (system_header): Likewise.
8769         * lib/locale.in.h (system_header): Likewise.
8770         * lib/math.in.h (system_header): Likewise.
8771         * lib/netdb.in.h (system_header): Likewise.
8772         * lib/netinet_in.in.h (system_header): Likewise.
8773         * lib/pty.in.h (system_header): Likewise.
8774         * lib/sched.in.h (system_header): Likewise.
8775         * lib/se-selinux.in.h (system_header): Likewise.
8776         * lib/search.in.h (system_header): Likewise.
8777         * lib/spawn.in.h (system_header): Likewise.
8778         * lib/stdarg.in.h (system_header): Likewise.
8779         * lib/stdint.in.h (system_header): Likewise.
8780         * lib/string.in.h (system_header): Likewise.
8781         * lib/strings.in.h (system_header): Likewise.
8782         * lib/sys_file.in.h (system_header): Likewise.
8783         * lib/sys_ioctl.in.h (system_header): Likewise.
8784         * lib/sys_socket.in.h (system_header): Likewise.
8785         * lib/sys_times.in.h (system_header): Likewise.
8786         * lib/sys_utsname.in.h (system_header): Likewise.
8787         * lib/sys_wait.in.h (system_header): Likewise.
8788         * lib/sysexits.in.h (system_header): Likewise.
8789         * lib/unistd.in.h (system_header): Likewise.
8790         * lib/wctype.in.h (system_header): Likewise.
8791
8792         arpa/inet: fix mingw compilation warning
8793         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
8794         Reported by Matthew Bolte.
8795
8796 2010-03-25  Bruno Haible  <bruno@clisp.org>
8797
8798         Avoid collision between gnulib wrapper and libintl wrapper.
8799         * lib/printf.c (printf): Don't define if a printf wrapper is already
8800         defined in intl/printf.c.
8801         Reported by Michel Boaventura <michel@michelboaventura.com>.
8802
8803 2010-03-25  Bruno Haible  <bruno@clisp.org>
8804
8805         Use ANSI C.
8806         * lib/readutmp.h (getutent): Provide ANSI C prototype.
8807
8808 2010-03-25  Bruno Haible  <bruno@clisp.org>
8809
8810         Minor formatting changes.
8811         * lib/acosl.c: Insert space before function argument list.
8812         * lib/argz.c: Likewise.
8813         * lib/asinl.c: Likewise.
8814         * lib/expl.c: Likewise.
8815         * lib/gen-uni-tables.c: Likewise.
8816         * lib/gettext.h: Likewise.
8817         * lib/glthread/lock.h: Likewise.
8818         * lib/tanl.c: Likewise.
8819         * lib/uniname/uniname.c: Likewise.
8820         * tests/test-idpriv-drop.c: Likewise.
8821         * tests/test-idpriv-droptemp.c: Likewise.
8822         * tests/test-lock.c: Likewise.
8823         * tests/test-tls.c: Likewise.
8824         * lib/argp-help.c: Insert space before function-like macro argument
8825         list.
8826         * lib/memcmp.c: Likewise.
8827         * tests/test-base64.c: Likewise.
8828         * lib/localename.c: Insert space before sizeof's argument list.
8829         * lib/safe-alloc.h: Likewise.
8830         * lib/file-set.h: Insert space before macro argument list.
8831         * tests/test-argp.c: Likewise.
8832         * lib/argp-namefrob.h: Insert space before function parameter list.
8833         * lib/getaddrinfo.c: Likewise.
8834         * lib/netdb.in.h: Likewise.
8835         * lib/parse-duration.h: Likewise.
8836         * lib/parse-duration.c: Likewise.
8837         * lib/poll.c: Likewise.
8838         * lib/select.c: Likewise.
8839         * lib/trim.h: Likewise.
8840         * tests/test-usleep.c: Likewise.
8841         * lib/ldexpl.c: Insert space before function parameter list and before
8842         function argument list.
8843         * lib/logl.c: Likewise.
8844         * lib/sqrtl.c: Likewise.
8845         * lib/trim.c: Likewise.
8846         * lib/cosl.c: Use GNU style indentation. Insert space before function
8847         argument list.
8848         * lib/sinl.c: Likewise.
8849         * lib/tsearch.c: Insert space after 'for'.
8850         Reported by Jim Meyering.
8851
8852 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8853
8854         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8855         config header before grepping, as it's not present before
8856         autoreconf/configure are run.  Reported by Simon Josefsson.
8857
8858 2010-03-23  Bruno Haible  <bruno@clisp.org>
8859
8860         pt_chown: Make it work with automake < 1.11.
8861         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8862         Reported by Simon Josefsson.
8863
8864 2010-03-23  Bruno Haible  <bruno@clisp.org>
8865
8866         pt_chown: Don't depend on GPLed modules.
8867         * lib/pt_chown.c: Don't include idpriv.h.
8868         (main): Don't drop privileges.
8869         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8870         Reported by Simon Josefsson.
8871
8872 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8873
8874         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8875         suggestions from karl@freefriends.org (Karl Berry).
8876
8877 2010-03-22  Eric Blake  <eblake@redhat.com>
8878
8879         gethostname: further tweaks
8880         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8881         are overriding gethostname.
8882         Suggested by Bruno Haible.
8883
8884 2010-03-21  Bruno Haible  <bruno@clisp.org>
8885
8886         Fix comments.
8887         * lib/forkpty.c (rpl_forkpty): Fix comment.
8888         * lib/openpty.c (rpl_openpty): Likewise.
8889         Reported by Eric Blake.
8890
8891 2010-03-22  Eric Blake  <eblake@redhat.com>
8892
8893         gethostname: fix build on mingw
8894         * lib/unistd.in.h (includes): Work around fact that mingw
8895         <winsock2.h> re-includes <unistd.h>, by avoiding any
8896         redeclarations if we are being included by <winsock2.h>.
8897         Reported by Matthias Bolte.
8898
8899 2010-03-21  Bruno Haible  <bruno@clisp.org>
8900
8901         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8902         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8903         modifications.
8904         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8905         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8906         provide the replacement.
8907         * modules/forkpty (Depends-on): Add openpty, login_tty.
8908         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8909         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8910         * doc/glibc-functions/forkpty.texi: More supported platforms.
8911         * config/srclist.txt: Add forkpty.c (commented).
8912
8913 2010-03-21  Bruno Haible  <bruno@clisp.org>
8914
8915         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8916         (Makefile.am): Verify that PTY_LIB is defined.
8917
8918         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8919
8920 2010-03-21  Bruno Haible  <bruno@clisp.org>
8921
8922         Tests for module 'login_tty'.
8923         * modules/login_tty-tests: New file.
8924         * tests/test-login_tty.c: New file.
8925
8926         New module 'login_tty'.
8927         * lib/login_tty.c: New file.
8928         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8929         * modules/login_tty: New file.
8930         * doc/glibc-functions/login_tty.texi: Mention the new module.
8931
8932 2010-03-21  Bruno Haible  <bruno@clisp.org>
8933
8934         login_tty: Documentation.
8935         * doc/glibc-functions/login_tty.texi: New file.
8936         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8937
8938 2010-03-21  Bruno Haible  <bruno@clisp.org>
8939
8940         pty: Consistent macro naming.
8941         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8942         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8943         * modules/pty (configure.ac): Update.
8944
8945 2010-03-21  Bruno Haible  <bruno@clisp.org>
8946
8947         Tests for openpty: Make stricter.
8948         * tests/test-openpty.c (main): Add test of canonical processing and
8949         erase.
8950         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8951
8952         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8953         * lib/openpty.c (openpty): New replacement function.
8954         * lib/pty.in.h: Include <termios.h>.
8955         (openpty): Update declaration. Add comments.
8956         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8957         is not declared, arrange to provide the replacement. Check for _getpty
8958         and posix_openpt.
8959         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8960         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8961         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8962         * modules/pty-tests (test_pty_c___LDADD): New variable.
8963         * doc/glibc-functions/openpty.texi: More supported platforms.
8964
8965 2010-03-21  Bruno Haible  <bruno@clisp.org>
8966
8967         setenv: Tweaks.
8968         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8969         the test program.
8970         * doc/posix-functions/setenv.texi: Update platforms list.
8971
8972 2010-03-21  Bruno Haible  <bruno@clisp.org>
8973
8974         New module 'unlockpt'.
8975         * lib/unlockpt.c: New file, from glibc with modifications.
8976         * m4/unlockpt.m4: New file.
8977         * modules/unlockpt: New file.
8978         * lib/stdlib.in.h (unlockpt): New declaration.
8979         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8980         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8981         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8982         HAVE_UNLOCKPT.
8983         * doc/posix-functions/unlockpt.texi: Mention the new module.
8984         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8985         * config/srclist.txt: Add unlockpt.c (commented).
8986
8987 2010-03-21  Jim Meyering  <meyering@redhat.com>
8988
8989         maint.mk: prohibit inclusion of "intprops.h" without use
8990         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8991
8992 2010-03-21  Bruno Haible  <bruno@clisp.org>
8993
8994         New module 'grantpt'.
8995         * lib/grantpt.c: New file, from glibc with modifications.
8996         * m4/grantpt.m4: New file.
8997         * modules/grantpt: New file.
8998         * lib/stdlib.in.h (grantpt): New declaration.
8999         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
9000         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
9001         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
9002         HAVE_GRANTPT.
9003         * doc/posix-functions/grantpt.texi: Mention the new module.
9004         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
9005         * config/srclist.txt: Add grantpt.c (commented).
9006
9007 2010-03-21  Bruno Haible  <bruno@clisp.org>
9008
9009         New module 'pt_chown'.
9010         * lib/pt_chown.c: New file, from glibc with modifications.
9011         * lib/pty-private.h: New file, from glibc with modifications.
9012         * modules/pt_chown: New file.
9013         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
9014
9015 2010-03-21  Bruno Haible  <bruno@clisp.org>
9016
9017         Tests for module 'ptsname'.
9018         * modules/ptsname-tests: New file.
9019         * tests/test-ptsname.c: New file.
9020
9021         New module 'ptsname'.
9022         * lib/ptsname.c: New file, from glibc with modifications.
9023         * m4/ptsname.m4: New file.
9024         * modules/ptsname: New file.
9025         * lib/stdlib.in.h (ptsname): New declaration.
9026         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
9027         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
9028         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
9029         HAVE_PTSNAME.
9030         * doc/posix-functions/ptsname.texi: Mention the new module.
9031         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
9032         * config/srclist.txt: Add ptsname.c (commented).
9033
9034 2010-03-21  Bruno Haible  <bruno@clisp.org>
9035
9036         Tests for module 'ttyname_r'.
9037         * modules/ttyname_r-tests: New file.
9038         * tests/test-ttyname_r.c: New file.
9039
9040         New module 'ttyname_r'.
9041         * lib/ttyname_r.c: New file.
9042         * m4/ttyname_r.m4: New file.
9043         * modules/ttyname_r: New file.
9044         * lib/unistd.in.h (ttyname_r): New declaration.
9045         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
9046         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
9047         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
9048         HAVE_TTYNAME_R.
9049         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
9050         * doc/posix-functions/ttyname_r.texi: Mention the new module.
9051
9052 2010-03-20  Bruno Haible  <bruno@clisp.org>
9053
9054         signal: Undefine macro definitions in C++ mode.
9055         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
9056         sigfillset): Undefine macro definitions from the system header in C++
9057         mode.
9058         Reported by John W. Eaton <jwe@gnu.org>.
9059
9060 2010-03-20  Bruno Haible  <bruno@clisp.org>
9061
9062         Ensure no #include statements inside extern "C" { ... }.
9063         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
9064         contain #include statements.
9065         * lib/time.in.h: Likewise.
9066
9067 2010-03-20  Bruno Haible  <bruno@clisp.org>
9068
9069         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
9070         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
9071         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
9072         Reported by John W. Eaton <jwe@gnu.org>.
9073
9074 2010-03-20  Bruno Haible  <bruno@clisp.org>
9075
9076         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
9077         Reported by Jim Meyering.
9078
9079 2010-03-20  Bruno Haible  <bruno@clisp.org>
9080
9081         pipe: Set errno upon failure.
9082         * lib/pipe.h: Specify that when -1 is returned, errno is set.
9083         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
9084         errno value in error message.
9085
9086 2010-03-20  Bruno Haible  <bruno@clisp.org>
9087             Jim Meyering  <meyering@redhat.com>
9088
9089         lchown: Avoid "unused variable" warning.
9090         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
9091
9092 2010-03-20  Bruno Haible  <bruno@clisp.org>
9093
9094         Work around unlink() bug on MacOS X 10.5.6.
9095         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
9096         attempting to unlink a parent directory.
9097         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
9098         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
9099         activate for the replacement function.
9100         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
9101
9102 2010-03-20  Bruno Haible  <bruno@clisp.org>
9103
9104         Fix link errors on Solaris 8.
9105         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
9106         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
9107
9108 2010-03-19  Jim Meyering  <meyering@redhat.com>
9109
9110         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
9111         The _LIBC implementation of build_range_exp correctly honors the
9112         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
9113         However, the non-_LIBC implementation would ignore that syntax-bit
9114         flag and return REG_ERANGE unconditionally.
9115         This change makes it honor that flag.
9116         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
9117         Make two pointer parameters "const".
9118         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
9119         (parse_bracket_exp): Update caller.
9120
9121         regex.m4: correct the reversed range endpoint ([b-a]) test
9122         * m4/regex.m4: When requiring that [b-a] evoke failure,
9123         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
9124         test pass once again for x86-based systems.
9125
9126 2010-03-19  Bruno Haible  <bruno@clisp.org>
9127
9128         scandir: Fix link error on Solaris 8.
9129         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
9130         macros.
9131
9132 2010-03-19  Bruno Haible  <bruno@clisp.org>
9133
9134         getusershell: Fix documentation.
9135         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
9136         module.
9137         * doc/glibc-functions/setusershell.texi: Likewise.
9138
9139         getusershell: Provide declaration, missing on Solaris 9.
9140         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
9141         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
9142         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
9143         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
9144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9145         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
9146         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
9147         HAVE_GETUSERSHELL.
9148         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
9149
9150 2010-03-19  Bruno Haible  <bruno@clisp.org>
9151
9152         wctype: Provide iswblank function.
9153         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
9154         exists and is fine.
9155         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
9156         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
9157         * tests/test-wctype.c (main): Re-enable the iswblank tests.
9158         * doc/posix-functions/iswblank.texi: Update.
9159
9160 2010-03-19  Bruno Haible  <bruno@clisp.org>
9161
9162         Tests of module 'pty' in C++ mode.
9163         * modules/pty-tests: New file.
9164         * tests/test-pty-c++.cc: New file.
9165         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9166
9167 2010-03-19  Eric Blake  <eblake@redhat.com>
9168
9169         logb: fix documentation
9170         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
9171         1.5 declaration bug.
9172
9173         forkpty, openpty: prefer glibc's const-safe prototype
9174         * lib/forkpty.c (rpl_forkpty): New file.
9175         * lib/openpty.c (rpl_openpty): Likewise.
9176         * modules/forkpty (Files): Distribute it.
9177         * modules/openpty (Files): Likewise.
9178         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
9179         check...
9180         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
9181         replacement for for non-const BSD signature.
9182         * modules/pty (Makefile.am): Substitute witnesses.
9183         * lib/pty.in.h (forkpty, openpty): Declare replacements.
9184         * tests/test-forkpty.c: Update signature check.
9185         * tests/test-openpty.c: Likewise.
9186         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
9187         * doc/glibc-functions/openpty.texi (openpty): Likewise.
9188
9189         forkpty, openpty: split functions into new modules
9190         * modules/pty (Makefile.am): Substitute new witnesses.
9191         (Libraries): Move library detection...
9192         * modules/forkpty: ...into new module.
9193         * modules/openpty: Another new module.
9194         * modules/pty-tests: Rename and split...
9195         * modules/forkpty-tests: ...to this...
9196         * modules/openpty-tests: ...and this.
9197         * tests/test-pty.c: Rename and split...
9198         * tests/test-forkpty.c: ...to this...
9199         * tests/test-openpty.c: ...and this.
9200         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
9201         (gl_PTY): Split library searching...
9202         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
9203         (gl_FORKPTY, gl_OPENPTY): New macros.
9204         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
9205         * NEWS: Mention the split.
9206         * MODULES.html.sh (Misc): Document the modules.
9207         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
9208         * doc/glibc-functions/openpty.texi (openpty): Likewise.
9209
9210         pty: improve replacement header
9211         * lib/pty.in.h: New file.
9212         * modules/pty (Files): Ship it.
9213         (Makefile.am): Always build replacement.
9214         * m4/pty.m4: Rename...
9215         * m4/pty_h.m4: ...to this.
9216         (gl_PTY): Modernize setting of witness macros; update check of
9217         forkpty to take proper advantage of cache.
9218         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
9219
9220         getopt: avoid compiler warning
9221         * lib/getopt.c (attribute_hidden): Remove unused macro.
9222
9223 2010-03-18  Bruno Haible  <bruno@clisp.org>
9224
9225         Fix link errors on Solaris 8.
9226         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
9227         * modules/search-tests (test_search_c___LDADD): Likewise.
9228         * modules/signal-tests (test_signal_c___LDADD): Likewise.
9229         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
9230         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
9231         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
9232         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
9233         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
9234         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
9235
9236 2010-03-18  Bruno Haible  <bruno@clisp.org>
9237
9238         Fix bug introduced on 2010-03-14.
9239         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
9240         (gl_SPAWN_H): Require it.
9241         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
9242         Reported by Simon Josefsson.
9243
9244 2010-03-18  Bruno Haible  <bruno@clisp.org>
9245
9246         Fix typo introduced on 2009-12-31.
9247         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
9248         posix_spawn_file_actions_adddup2.
9249
9250 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
9251         and Eric Blake  <eblake@redhat.com>
9252
9253         test-vc-list-files-git: make more robust
9254         * tests/test-vc-list-files-git.sh: Unset problematic environment
9255         variables.  Chain commands together.
9256
9257 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
9258
9259         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
9260         `AC_CHECK_DECL' invocation.
9261
9262 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
9263
9264         * lib/inttostr.c (inttostr): Make sure the invocation of verify
9265         appears before executable statements. Suggested by Petr Sumbera
9266         <Petr.Sumbera@Sun.COM>.
9267
9268 2010-03-14  Bruno Haible  <bruno@clisp.org>
9269
9270         * tests/test-flock.c (test_exclusive): Comment out a test that causes
9271         portability problems. Instead use a simpler test.
9272         (main): Check that invalid arguments are rejected only on Linux.
9273
9274 2010-03-14  Bruno Haible  <bruno@clisp.org>
9275
9276         Fix bug introduced on 2009-12-31.
9277         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9278         gl_PREREQ_SYS_H_WINSOCK2 always.
9279         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
9280         SYS_SOCKET_H variable.
9281         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
9282         Update comments.
9283         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
9284         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9285         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9286         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9287         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9288
9289 2010-03-14  Bruno Haible  <bruno@clisp.org>
9290
9291         Fix values returned by sinl, cosl.
9292         * lib/trigl.h: Add specification comments.
9293         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
9294         that combines the values from the precomputed table with the values of
9295         the Chebyshev polynomials.
9296
9297 2010-03-14  Bruno Haible  <bruno@clisp.org>
9298
9299         Fix compilation error when modules 'posix_spawn[p]' are not used.
9300         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
9301         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
9302
9303 2010-03-14  Bruno Haible  <bruno@clisp.org>
9304
9305         Fix compilation error on mingw when module 'time_r' is not used.
9306         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
9307         is 1.
9308         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
9309         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9310         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
9311         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
9312
9313 2010-03-14  Bruno Haible  <bruno@clisp.org>
9314
9315         Fix compilation error with Sun C.
9316         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
9317         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
9318         instead of GCC specific ULONG_LONG_MAX.
9319         * lib/xstrtoll.c: Likewise.
9320         * lib/xstrtoull.c: Likewise.
9321
9322 2010-03-13  Bruno Haible  <bruno@clisp.org>
9323
9324         Allow the user to disable C++ code and tests.
9325         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
9326         (gl_PROG_ANSI_CXX): Require it.
9327
9328 2010-03-13  Bruno Haible  <bruno@clisp.org>
9329
9330         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
9331         cases.
9332
9333 2010-03-13  Bruno Haible  <bruno@clisp.org>
9334
9335         Test that gnulib does not break the standard C++ headers.
9336         * tests/test-locale-c++2.cc: New file.
9337         * modules/locale-tests (Files): Add it.
9338         (Makefile.am): Compile it for test-locale-c++.
9339         * tests/test-math-c++2.cc: New file.
9340         * modules/math-tests (Files): Add it.
9341         (Makefile.am): Compile it for test-math-c++.
9342         * tests/test-signal-c++2.cc: New file.
9343         * modules/signal-tests (Files): Add it.
9344         (Makefile.am): Compile it for test-signal-c++.
9345         * tests/test-stdio-c++2.cc: New file.
9346         * modules/stdio-tests (Files): Add it.
9347         (Makefile.am): Compile it for test-stdio-c++.
9348         * tests/test-stdlib-c++2.cc: New file.
9349         * modules/stdlib-tests (Files): Add it.
9350         (Makefile.am): Compile it for test-stdlib-c++.
9351         * tests/test-string-c++2.cc: New file.
9352         * modules/string-tests (Files): Add it.
9353         (Makefile.am): Compile it for test-string-c++.
9354         * tests/test-time-c++2.cc: New file.
9355         * modules/time-tests (Files): Add it.
9356         (Makefile.am): Compile it for test-time-c++.
9357         Reported by John W. Eaton <jwe@gnu.org>.
9358
9359 2010-03-13  Bruno Haible  <bruno@clisp.org>
9360
9361         * gnulib-tool (func_usage): Clarify which options are available for
9362         --create-testdir and --create-megatestdir.
9363
9364 2010-03-13  Bruno Haible  <bruno@clisp.org>
9365
9366         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
9367         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
9368         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
9369         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9370         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
9371         when appropriate.
9372         Reported by Jim Meyering.
9373
9374 2010-03-12  Simon Josefsson  <simon@josefsson.org>
9375
9376         * gnulib-tool (func_import): Explain origin of code.
9377
9378 2010-03-12  Bruno Haible  <bruno@clisp.org>
9379
9380         Fix problem with automake's definition of CXXLINK.
9381         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
9382         Reported by Simon Josefsson and Ludovic Courtès.
9383
9384 2010-03-12  Bruno Haible  <bruno@clisp.org>
9385
9386         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
9387         stable releases.
9388
9389 2010-03-11  Bruno Haible  <bruno@clisp.org>
9390
9391         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
9392         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
9393         whether the system provides one variant or multiple variants of the
9394         function.
9395         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9396         C++ compilers.
9397         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9398         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9399         Reported by Jim Meyering.
9400
9401 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9402
9403         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9404
9405 2010-03-08  Bruno Haible  <bruno@clisp.org>
9406
9407         gnulib-tool: Add support for --libtool in --create-testdir.
9408         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9409         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9410
9411 2010-03-08  Eric Blake  <eblake@redhat.com>
9412
9413         gnulib-tool.texi: mention possibility of git submodule
9414         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9415         submodules.
9416         * doc/.gitignore: Ignore another generated file.
9417
9418 2010-03-08  Karl Berry  <karl@gnu.org>
9419
9420         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9421         of committing gnulib files while skipping others.
9422
9423 2010-03-07  Bruno Haible  <bruno@clisp.org>
9424
9425         Tests of module 'wctype' in C++ mode.
9426         * tests/test-wctype-c++.cc: New file.
9427         * modules/wctype-tests (Files): Add it and tests/signature.h.
9428         (Depends-on): Add ansi-c++-opt.
9429         (Makefile.am): Arrange to compile and run test-wctype-c++.
9430
9431         Tests of module 'wchar' in C++ mode.
9432         * tests/test-wchar-c++.cc: New file.
9433         * modules/wchar-tests (Files): Add it and tests/signature.h.
9434         (Depends-on): Add ansi-c++-opt.
9435         (Makefile.am): Arrange to compile and run test-wchar-c++.
9436         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9437         gl_MODULE_INDICATOR.
9438
9439         Tests of module 'unistd' in C++ mode.
9440         * tests/test-unistd-c++.cc: New file.
9441         * modules/unistd-tests (Files): Add it and tests/signature.h.
9442         (Depends-on): Add ansi-c++-opt.
9443         (Makefile.am): Arrange to compile and run test-unistd-c++.
9444         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9445         gl_MODULE_INDICATOR.
9446
9447         Tests of module 'time' in C++ mode.
9448         * tests/test-time-c++.cc: New file.
9449         * modules/time-tests (Files): Add it and tests/signature.h.
9450         (Depends-on): Add ansi-c++-opt.
9451         (Makefile.am): Arrange to compile and run test-time-c++.
9452         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9453
9454         Tests of module 'sys_time' in C++ mode.
9455         * tests/test-sys_time-c++.cc: New file.
9456         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9457         (Depends-on): Add ansi-c++-opt.
9458         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9459         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9460         gl_MODULE_INDICATOR.
9461
9462         Tests of module 'sys_stat' in C++ mode.
9463         * tests/test-sys_stat-c++.cc: New file.
9464         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9465         (Depends-on): Add ansi-c++-opt.
9466         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9467         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9468         gl_MODULE_INDICATOR.
9469
9470         Tests of module 'sys_socket' in C++ mode.
9471         * tests/test-sys_socket-c++.cc: New file.
9472         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9473         (Depends-on): Add ansi-c++-opt.
9474         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9475         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9476         gl_MODULE_INDICATOR.
9477
9478         Tests of module 'sys_select' in C++ mode.
9479         * tests/test-sys_select-c++.cc: New file.
9480         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9481         (Depends-on): Add ansi-c++-opt.
9482         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9483         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9484         gl_MODULE_INDICATOR.
9485
9486         Tests of module 'sys_ioctl' in C++ mode.
9487         * tests/test-sys_ioctl-c++.cc: New file.
9488         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9489         (Depends-on): Add ansi-c++-opt.
9490         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9491         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9492         gl_MODULE_INDICATOR.
9493
9494         Tests of module 'string' in C++ mode.
9495         * tests/test-string-c++.cc: New file.
9496         * modules/string-tests (Files): Add it and tests/signature.h.
9497         (Depends-on): Add ansi-c++-opt.
9498         (Makefile.am): Arrange to compile and run test-string-c++.
9499         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9500         gl_MODULE_INDICATOR.
9501
9502         Tests of module 'stdlib' in C++ mode.
9503         * tests/test-stdlib-c++.cc: New file.
9504         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9505         (Depends-on): Add ansi-c++-opt.
9506         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9507         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9508         gl_MODULE_INDICATOR.
9509
9510         Tests of module 'stdio' in C++ mode.
9511         * tests/test-stdio-c++.cc: New file.
9512         * modules/stdio-tests (Files): Add it and tests/signature.h.
9513         (Depends-on): Add ansi-c++-opt.
9514         (Makefile.am): Arrange to compile and run test-stdio-c++.
9515         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9516         gl_MODULE_INDICATOR.
9517
9518         Tests of module 'spawn' in C++ mode.
9519         * tests/test-spawn-c++.cc: New file.
9520         * modules/spawn-tests (Files): Add it and tests/signature.h.
9521         (Depends-on): Add ansi-c++-opt.
9522         (Makefile.am): Arrange to compile and run test-spawn-c++.
9523         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9524         gl_MODULE_INDICATOR.
9525
9526         Tests of module 'signal' in C++ mode.
9527         * tests/test-signal-c++.cc: New file.
9528         * modules/signal-tests (Files): Add it and tests/signature.h.
9529         (Depends-on): Add ansi-c++-opt.
9530         (Makefile.am): Arrange to compile and run test-signal-c++.
9531         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9532         gl_MODULE_INDICATOR.
9533
9534         Tests of module 'search' in C++ mode.
9535         * tests/test-search-c++.cc: New file.
9536         * modules/search-tests (Files): Add it and tests/signature.h.
9537         (Depends-on): Add ansi-c++-opt.
9538         (Makefile.am): Arrange to compile and run test-search-c++.
9539         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9540         gl_MODULE_INDICATOR.
9541
9542         Tests of module 'math' in C++ mode.
9543         * tests/test-math-c++.cc: New file.
9544         * modules/math-tests (Files): Add it and tests/signature.h.
9545         (Depends-on): Add ansi-c++-opt.
9546         (Makefile.am): Arrange to compile and run test-math-c++.
9547         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9548
9549         Tests of module 'locale' in C++ mode.
9550         * tests/test-locale-c++.cc: New file.
9551         * modules/locale-tests (Files): Add it and tests/signature.h.
9552         (Depends-on): Add ansi-c++-opt.
9553         (Makefile.am): Arrange to compile and run test-locale-c++.
9554         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9555         gl_MODULE_INDICATOR.
9556
9557         Tests of module 'langinfo' in C++ mode.
9558         * tests/test-langinfo-c++.cc: New file.
9559         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9560         (Depends-on): Add ansi-c++-opt.
9561         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9562         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9563         gl_MODULE_INDICATOR.
9564
9565         Tests of module 'iconv-h' in C++ mode.
9566         * tests/test-iconv-h-c++.cc: New file.
9567         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9568         (Depends-on): Add ansi-c++-opt.
9569         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9570
9571         Tests of module 'glob' in C++ mode.
9572         * tests/test-glob-c++.cc: New file.
9573         * modules/glob-tests (Files): Add it.
9574         (Depends-on): Add ansi-c++-opt.
9575         (Makefile.am): Arrange to compile and run test-glob-c++.
9576
9577         Tests of module 'fcntl-h' in C++ mode.
9578         * tests/test-fcntl-h-c++.cc: New file.
9579         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9580         (Depends-on): Add ansi-c++-opt.
9581         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9582         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9583         gl_MODULE_INDICATOR.
9584
9585         Tests of module 'dirent' in C++ mode.
9586         * tests/test-dirent-c++.cc: New file.
9587         * modules/dirent-tests (Files): Add it and tests/signature.h.
9588         (Depends-on): Add ansi-c++-opt.
9589         (Makefile.am): Arrange to compile and run test-dirent-c++.
9590         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9591         gl_MODULE_INDICATOR.
9592
9593         New module 'ansi-c++-opt'.
9594         * modules/ansi-c++-opt: New file.
9595         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9596
9597         Document C++ namespace mode.
9598         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9599
9600         wctype: Avoid #define replacements in C++ mode.
9601         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9602         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9603         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9604         In C++, define a namespaced alias symbol.
9605         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9606         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9607         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9608         rule.
9609
9610         wchar: Avoid #define replacements in C++ mode.
9611         * lib/wchar.in.h: Include c++defs.h.
9612         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9613         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9614         symbol.
9615         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9616         * modules/wchar (Depends-on): Add c++defs.
9617         (Makefile.am): Update wchar.h rule.
9618
9619         unistd: Avoid #define replacements in C++ mode.
9620         * lib/unistd.in.h: Include c++defs.h.
9621         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9622         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9623         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9624         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9625         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9626         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9627         symbol.
9628         (environ): Update.
9629         * modules/unistd (Depends-on): Add c++defs.
9630         (Makefile.am): Update unistd.h rule.
9631
9632         time: Avoid #define replacements in C++ mode.
9633         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9634         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9635         define a namespaced alias symbol.
9636         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9637         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9638         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9639         * modules/time (Depends-on): Add c++defs, warn-on-use.
9640         (Makefile.am): Update time.h rule.
9641         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9642         * modules/nanosleep (configure.ac): Likewise.
9643         * modules/strptime (configure.ac): Likewise.
9644         * modules/timegm (configure.ac): Likewise.
9645
9646         sys_time: Avoid #define replacements in C++ mode.
9647         * lib/sys_time.in.h: Include c++defs.h.
9648         (gettimeofday): In C++, define a namespaced alias symbol.
9649         * modules/sys_time (Depends-on): Add c++defs.
9650         (Makefile.am): Update sys/time.h rule.
9651
9652         sys_stat: Avoid #define replacements in C++ mode.
9653         * lib/sys_stat.in.h: Include c++defs.h.
9654         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9655         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9656         namespaced alias symbol.
9657         In C++, define a namespaced alias symbol.
9658         * modules/sys_stat (Depends-on): Add c++defs.
9659         (Makefile.am): Update sys/stat.h rule.
9660
9661         sys_socket: Avoid #define replacements in C++ mode.
9662         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9663         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9664         definitions also when the system has a <sys/socket.h>.
9665         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9666         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9667         In C++, define a namespaced alias symbol.
9668         * modules/sys_socket (Depends-on): Add c++defs.
9669         (Makefile.am): Update sys/socket.h rule.
9670
9671         sys_select: Avoid #define replacements in C++ mode.
9672         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9673         definitions also when the system has a <sys/select.h>.
9674         (select): In C++, define a namespaced alias symbol.
9675         * modules/sys_select (Depends-on): Add c++defs.
9676         (Makefile.am): Update sys/select.h rule.
9677
9678         sys_ioctl: Avoid #define replacements in C++ mode.
9679         * lib/sys_ioctl.in.h: Include c++defs.h.
9680         (ioctl): In C++, define a namespaced alias symbol.
9681         * modules/sys_ioctl (Depends-on): Add c++defs.
9682         (Makefile.am): Update sys/ioctl.h rule.
9683
9684         string: Avoid #define replacements in C++ mode.
9685         * lib/string.in.h: Include c++defs.h.
9686         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
9687         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9688         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9689         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
9690         strsignal, strverscmp): In C++, define a namespaced alias symbol.
9691         * modules/string (Depends-on): Add c++defs.
9692         (Makefile.am): Update string.h rule.
9693
9694         stdlib: Avoid #define replacements in C++ mode.
9695         * lib/stdlib.in.h: Include c++defs.h.
9696         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
9697         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
9698         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
9699         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
9700         symbol.
9701         * modules/stdlib (Depends-on): Add c++defs.
9702         (Makefile.am): Update stdlib.h rule.
9703
9704         stdio: Avoid #define replacements in C++ mode.
9705         * lib/stdio.in.h: Include c++defs.h.
9706         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
9707         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
9708         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
9709         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
9710         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
9711         namespaced alias symbol.
9712         * modules/stdio (Depends-on): Add c++defs.
9713         (Makefile.am): Update stdio.h rule.
9714
9715         spawn: Avoid #define replacements in C++ mode.
9716         * lib/spawn.in.h: Include c++defs.h.
9717         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9718         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9719         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9720         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9721         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9722         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9723         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9724         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9725         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9726         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9727         In C++, define a namespaced alias symbol.
9728         * modules/spawn (Depends-on): Add c++defs.
9729         (Makefile.am): Update spawn.h rule.
9730
9731         signal: Avoid #define replacements in C++ mode.
9732         * lib/signal.in.h: Include c++defs.h.
9733         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9734         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
9735         namespaced alias symbol.
9736         * modules/signal (Depends-on): Add c++defs.
9737         (Makefile.am): Update signal.h rule.
9738
9739         search: Avoid #define replacements in C++ mode.
9740         * lib/search.in.h: Include c++defs.h.
9741         (_gl_search_compar_fn, _gl_search_action_fn): New types.
9742         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
9743         symbol.
9744         * modules/search (Depends-on): Add c++defs.
9745         (Makefile.am): Update search.h rule.
9746
9747         math: Avoid #define replacements in C++ mode.
9748         * lib/math.in.h: Include c++defs.h.
9749         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
9750         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
9751         trunc, truncl): In C++, define a namespaced alias symbol.
9752         * modules/math (Depends-on): Add c++defs.
9753         (Makefile.am): Update math.h rule.
9754
9755         locale: Avoid #define replacements in C++ mode.
9756         * lib/locale.in.h: Include c++defs.h.
9757         (duplocale): In C++, define a namespaced alias symbol.
9758         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
9759         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
9760         * modules/locale (Depends-on): Add c++defs.
9761         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
9762
9763         langinfo: Avoid #define replacements in C++ mode.
9764         * lib/langinfo.in.h: Include c++defs.h.
9765         (nl_langinfo): In C++, define a namespaced alias symbol.
9766         * modules/langinfo (Depends-on): Add c++defs.
9767         (Makefile.am): Update langinfo.h rule.
9768
9769         iconv-h: Avoid #define replacements in C++ mode.
9770         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
9771         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
9772         symbol.
9773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9774         whenever iconv is present.
9775         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
9776         (Makefile.am): Update iconv.h rule.
9777
9778         glob: Avoid #define replacements in C++ mode.
9779         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
9780         (_gl_glob_errfunc_fn): New type.
9781         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
9782         symbol.
9783         * modules/glob (Depends-on): Add c++defs, warn-on-use.
9784         (Makefile.am): Update glob.h rule.
9785
9786         fcntl-h: Avoid #define replacements in C++ mode.
9787         * lib/fcntl.in.h: Include c++defs.h.
9788         (fcntl, open, openat): In C++, define a namespaced alias symbol.
9789         * modules/fcntl-h (Depends-on): Add c++defs.
9790         (Makefile.am): Update fcntl.h rule.
9791
9792         dirent: Avoid #define replacements in C++ mode.
9793         * lib/dirent.in.h: Include c++defs.h.
9794         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
9795         namespaced alias symbol.
9796         (dirfd): Update declaration.
9797         * modules/dirent (Depends-on): Add c++defs.
9798         (Makefile.am): Update dirent.h rule.
9799
9800         ctype: Make it usable in C++ code.
9801         * lib/ctype.in.h: Include c++defs.h.
9802         (isblank): Declare as extern "C".
9803         * modules/ctype (Depends-on): Add c++defs.
9804         (Makefile.am): Update ctype.h rule.
9805
9806         New module 'c++defs'.
9807         * modules/c++defs: New file.
9808         * build-aux/c++defs.h: New file.
9809         Reported by John W. Eaton <jwe@gnu.org>.
9810
9811 2010-03-07  Bruno Haible  <bruno@clisp.org>
9812
9813         logb: Provide missing declaration for Cygwin.
9814         * lib/math.in.h (logb): New declaration.
9815         * m4/logb.m4: New file.
9816         * modules/logb (Files): Add m4/logb.m4.
9817         (Depends-on): Add math.
9818         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
9819         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
9820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
9821         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
9822         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
9823
9824 2010-03-07  Bruno Haible  <bruno@clisp.org>
9825
9826         Fix test-cond link error.
9827         * tests/test-cond.c: Include <stdio.h>.
9828
9829 2010-03-07  Bruno Haible  <bruno@clisp.org>
9830
9831         Fix test-dirent-safer link error.
9832         * modules/dirent-safer-tests (Makefile.am): Define
9833         test_dirent_safer_LDADD.
9834
9835 2010-03-07  Bruno Haible  <bruno@clisp.org>
9836
9837         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9838         among default module list.
9839
9840 2010-03-07  Bruno Haible  <bruno@clisp.org>
9841
9842         Fix link error on platforms with GNU libiconv.
9843         * modules/unistr/u8-strcoll-tests (Makefile): Define
9844         test_u8_strcoll_LDADD.
9845         * modules/unistr/u16-strcoll-tests (Makefile): Define
9846         test_u16_strcoll_LDADD.
9847         * modules/unistr/u32-strcoll-tests (Makefile): Define
9848         test_u32_strcoll_LDADD.
9849
9850 2010-03-07  Bruno Haible  <bruno@clisp.org>
9851
9852         Use POSIX declarations for socket functions.
9853         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9854         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9855         rpl_sendto): Change declaration to match POSIX.
9856         * lib/connect.c (rpl_connect): Likewise.
9857         * lib/accept.c (rpl_accept): Likewise.
9858         * lib/bind.c (rpl_bind): Likewise.
9859         * lib/getpeername.c (rpl_getpeername): Likewise.
9860         * lib/getsockname.c (rpl_getsockname): Likewise.
9861         * lib/recv.c (rpl_recv): Likewise.
9862         * lib/send.c (rpl_send): Likewise.
9863         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9864         * lib/sendto.c (rpl_sendto): Likewise.
9865
9866 2010-03-06  Bruno Haible  <bruno@clisp.org>
9867
9868         Clarify access, euidaccess, faccessat.
9869         * doc/posix-functions/faccessat.texi: Mention security problem under
9870         "Other problems", not "Portability problems".
9871         * doc/posix-functions/access.texi: Likewise. Mention a related security
9872         problem.
9873         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9874         * lib/euidaccess.c: Add comments about platforms.
9875         * lib/unistd.in.h (access, euidaccess): Add warnings.
9876
9877 2010-03-07  Bruno Haible  <bruno@clisp.org>
9878
9879         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9880         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9881         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9882         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9883         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9884         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9885         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9886         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9887         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9888         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9889         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9890         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9891         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9892         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9893         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9894         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9895         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9896         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9897         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9898         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9899         Likewise.
9900         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9901         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9902         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9903         Likewise.
9904         * tests/test-spawn.c (main): Make it work when
9905         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9906
9907 2010-03-07  Bruno Haible  <bruno@clisp.org>
9908
9909         Fix incorrect Makefile.am generation in German locale.
9910         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9911         Execute sed command with character range in C locale.
9912
9913 2010-03-06  Bruno Haible  <bruno@clisp.org>
9914
9915         Tests for module 'iconv-h'.
9916         * modules/iconv-h-tests: New file.
9917         * tests/test-iconv-h.c: New file.
9918
9919         New module 'iconv-h'.
9920         * modules/iconv-h: New file.
9921         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9922         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9923         (configure.ac): Remove gl_ICONV_H.
9924         (Makefile.am): Remove rule for iconv.h.
9925
9926 2010-03-06  Bruno Haible  <bruno@clisp.org>
9927
9928         More consistent naming of *.m4 files.
9929         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9930         * modules/wctype (Files): Update.
9931
9932         More consistent naming of *.m4 files.
9933         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9934         * modules/wchar (Files): Update.
9935
9936 2010-03-06  Jim Meyering  <meyering@redhat.com>
9937
9938         euidaccess: relax license to LGPLv2+
9939         * modules/euidaccess (License): Relax to LGPLv2+.
9940
9941 2010-03-06  Bruno Haible  <bruno@clisp.org>
9942
9943         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9944         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9945         (Makefile.am): Augment lib_SOURCES instead.
9946
9947 2010-03-04  Jim Meyering  <meyering@redhat.com>
9948
9949         utime: remove obsolete module
9950         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9951         unnecessary for years, and has been marked as obsolete for 10 months.
9952         * modules/utime: Remove file.
9953         * lib/utime.c: Remove file.
9954         * m4/utime.m4: Remove file.
9955         * m4/utimes-null.m4: Remove file.
9956         * doc/posix-functions/utime.texi (utime): Remove reference to
9957         the module.  Move the sole "fixed by gnulib" item into the
9958         "problems not fixed by Gnulib" list.
9959         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9960
9961 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9962
9963         * modules/exit (License): Relax license to LGPLv2+.
9964         (Status): Mark as obsolete.
9965         * NEWS: Mention deprecated 'exit' module.
9966         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9967         of now obsolete 'exit'.
9968
9969 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9970
9971         fts-lgpl: remove unused module
9972         * modules/fts-lgpl: Remove.
9973         * MODULES.html.sh (func_all_modules): Adjust.
9974         * check-module (find_included_lib_files): Adjust.
9975         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9976
9977 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9978
9979         copy-acl: enhance Solaris ACL error handling
9980         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9981         * lib/set-mode-acl.c (qset_acl): Likewise.
9982
9983 2010-03-02  Bruno Haible  <bruno@clisp.org>
9984
9985         spawn: Don't override the system defined values on FreeBSD 8.
9986         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9987         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9988         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9989         if HAVE_POSIX_SPAWN is 1.
9990         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9991
9992 2010-03-01  Bruno Haible  <bruno@clisp.org>
9993
9994         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9995         regarding Automake.
9996
9997 2010-02-25  Bruno Haible  <bruno@clisp.org>
9998
9999         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
10000         * gnulib-tool: Define 'echo' as a function only before the ksh alias
10001         setting, not afterwards.
10002         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10003
10004 2010-02-24  Eric Blake  <eblake@redhat.com>
10005
10006         bootstrap, git-version-gen: use timestamp
10007         * build-aux/git-version-gen (scriptversion): Force UTC.
10008         * build-aux/bootstrap (scriptversion): New variable.
10009
10010         bootstrap: allow older git
10011         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
10012         older than 1.6.4.  Requested by the libvirt project.
10013
10014 2010-02-23  Eric Blake  <eblake@redhat.com>
10015
10016         warn-on-use: work with old autoconf
10017         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
10018         AS_VAR semantics of autoconf 2.60.
10019         Reported by Bruno Haible.
10020
10021         bootstrap: improve some comments
10022         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
10023         clarification comments.
10024
10025         gettimeofday: provide correct function
10026         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
10027         when replacement is declared, otherwise provide gettimeofday.
10028         Reported by Michael Goffioul.
10029
10030 2010-02-23  Jim Meyering  <meyering@redhat.com>
10031
10032         lib-ignore: relax license to "unlimited", not LGPLv2+
10033         * modules/lib-ignore (License): Relax to "unlimited".
10034
10035 2010-02-23  Jim Meyering  <meyering@redhat.com>
10036
10037         lib-ignore: relax license to LGPLv2+
10038         * modules/lib-ignore (License): Relax to LGPLv2+.
10039
10040 2010-02-22  Eric Blake  <eblake@redhat.com>
10041
10042         lseek: avoid bash 3.2 broken pipe bug
10043         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
10044         warning from bash 3.2.
10045         Reported by Ben Pfaff, with analysis from Bruno Haible.
10046
10047         bootstrap: support non-FSF copyright holder
10048         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
10049         bootstrap.conf override of COPYRIGHT_HOLDER.
10050         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
10051
10052         bootstrap: interoperate with gettext 0.14.1
10053         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
10054
10055         bootstrap: allow for alternate submodule location
10056         * build-aux/bootstrap (gnulib_path): New variable; use instead of
10057         hardcoding submodule location.
10058         (gnulib_mk): Allow direct use of Makefile.am.
10059
10060         bootstrap: use GNULIB_SRCDIR to reduce disk usage
10061         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
10062         rather than reconfiguring where the submodule points.
10063
10064         gettimeofday: restore support for platforms that lack function
10065         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
10066         replacement if function is missing.
10067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
10068         * modules/sys_time (Makefile.am): Substitute it.
10069         * lib/sys_time.in.h (gettimeofday): Check it.
10070         Reported by Michael Goffioul.
10071
10072 2010-02-21  Bruno Haible  <bruno@clisp.org>
10073
10074         * lib/stdio.in.h (obstack_printf): Fix typo.
10075
10076 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
10077
10078         vc-list-files: use bzr ls's -R option
10079         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
10080         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
10081
10082 2010-02-21  Jim Meyering  <meyering@redhat.com>
10083
10084         init.sh: fix EXEEXT shims to work also for names like test-prog
10085         * tests/init.sh: Re-exec a better shell, when needed.
10086         If the current shell lacks support for posix $(...), an init.sh-using
10087         test will now try to find a shell that supports that.  If EXEEXT is
10088         nonempty, we also require support for hyphen-in-alias-name and shell
10089         substitutions like ${var#glob}.  Failure to find such a shell results
10090         in a skipped test.
10091
10092 2010-02-21  Bruno Haible  <bruno@clisp.org>
10093
10094         Really work around around "broken pipe" error message from bash 3.2.
10095         * gnulib-tool (func_reset_sigpipe): Remove function.
10096         (echo): In bash 3.2, define to a function that uses printf.
10097         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
10098
10099 2010-02-20  Bruno Haible  <bruno@clisp.org>
10100
10101         Restore support for automake 1.9.6 with autoconf 2.61.
10102         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
10103         Reported by James Youngman <jay@gnu.org>.
10104
10105 2010-02-20  Bruno Haible  <bruno@clisp.org>
10106
10107         Improve *printf warning condition.
10108         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
10109         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
10110         and the function is overridden due to SIGPIPE emulation.
10111
10112 2010-02-20  Bruno Haible  <bruno@clisp.org>
10113
10114         * lib/stdio.in.h: Tweak comments.
10115
10116 2010-02-19  Bruno Haible  <bruno@clisp.org>
10117
10118         Make it easier to find modules. New gnulib-tool option '--find'.
10119         * gnulib-tool: New option --find.
10120         (func_usage): Document it.
10121         (func_sanitize_modulelist): New function, extracted from
10122         func_all_modules.
10123         (func_all_modules): Invoke it.
10124         * doc/gnulib-tool.texi (Which modules?): New node.
10125
10126 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
10127
10128         * lib/sys_select.in.h: Provide select replacement even if
10129         sys/select.h exists on a system, for Interix.
10130
10131 2010-02-18  Jim Meyering  <meyering@redhat.com>
10132
10133         init.sh: don't use $(...) just yet
10134         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
10135         to accommodate e.g., Solaris' /bin/sh.
10136
10137 2010-02-17  Bruno Haible  <bruno@clisp.org>
10138
10139         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
10140         Reported by Ludovic Courtès <ludo@gnu.org>.
10141
10142 2010-02-16  Simon Josefsson  <simon@josefsson.org>
10143
10144         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
10145         linking with -lintl.
10146
10147 2010-02-17  Simon Josefsson  <simon@josefsson.org>
10148
10149         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
10150         if not provided by the system's netdb.h.  Reported by
10151         ludo@gnu.org (Ludovic Courtès).
10152
10153 2010-02-15  Jim Meyering  <meyering@redhat.com>
10154
10155         init.sh: improve portability and efficiency
10156         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
10157         "dummy" in a for loop.
10158         Use '!', not '^' to select the complement of a character set used
10159         in a "case" statement.
10160         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
10161         Suggestions from Eric Blake.
10162
10163         init.sh: automatically accommodate programs with the .exe suffix
10164         Automatically arrange for an invocation of "prog" to execute the
10165         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
10166         may use the simpler "prog", yet still work when built on a system
10167         that requires specifying the added suffix.
10168         Do this by constructing a function named "prog" that invokes
10169         "prog.exe" for each .exe file in selected directories.
10170         * tests/init.sh (find_exe_basenames_): New function.
10171         (create_exe_shim_functions_): New function.
10172         (path_prepend_): Use it.
10173
10174         maint.mk: mark syntax-check sc_*.m rules as .PHONY
10175         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
10176         "make -t syntax-check" doesn't create a ton of sc_*.m files.
10177
10178 2010-02-14  Jim Meyering  <meyering@redhat.com>
10179
10180         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
10181         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
10182         (sc_prohibit_hash_pjw_without_use): New rule.
10183
10184         maint.mk: allow the default upload destination dir to be overridden
10185         * top/maint.mk (upload_dest_dir_): Define with a default that
10186         preserves the status quo.
10187         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
10188         Reported by Peter Simons.
10189
10190         maint.mk: prohibit inclusion of "hash.h" without_use
10191         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
10192
10193 2010-02-10  Jim Meyering  <meyering@redhat.com>
10194
10195         maint.mk: prohibit inclusion of "ignore-value.h" without_use
10196         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
10197
10198 2010-02-09  Eric Blake  <ebb9@byu.net>
10199         and Bruno Haible  <bruno@clisp.org>
10200
10201         obstack-printf-posix: ensure declaration
10202         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
10203         extracted from gl_FUNC_OBSTACK_PRINTF.
10204         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
10205         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
10206         Likewise.
10207         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
10208         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
10209         0.
10210
10211 2010-02-08  Bruno Haible  <bruno@clisp.org>
10212
10213         gnulib-tool: Fix typo in 2010-02-07 commit.
10214         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
10215         Reported by Eric Blake.
10216
10217 2010-02-07  Bruno Haible  <bruno@clisp.org>
10218
10219         gnulib-tool: Fix up caching patches.
10220         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
10221         option --no-cache. Use associative arrays when supported by the shell.
10222         (sed_comments): New variable.
10223         (modcache): Renamed from do_cache.
10224         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
10225         abbreviate unnecessarily.
10226         (have_associative): New variable.
10227         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
10228         way also for ksh and zsh.
10229         (func_init_sed_convert_to_cache_statements): New function, extracted
10230         from func_cache_lookup_module. Add support for associative arrays.
10231         Don't set the c_MODULE_cached variable here. Ignore all lines before
10232         the first field header. Remove only the final newline, not all trailing
10233         newlines. Support empty fields correctly. Limit the use of 'eval' to
10234         assignments.
10235         (func_get_description, func_get_status, func_get_notice,
10236         func_get_applicability, func_get_filelist, func_get_dependencies,
10237         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
10238         func_get_automake_snippet, func_get_include_directive,
10239         func_get_link_directive, func_get_license, func_get_maintainer):
10240         Update documentation. List the unoptimized code first. Add support for
10241         associative arrays. Limit the use of 'eval' to assignments.
10242         (func_get_applicability): Undo stylistic pessimisations.
10243         (func_get_automake_snippet, func_get_include_directive): Reduce code
10244         duplication.
10245         (func_modules_transitive_closure, func_modules_add_dummy,
10246         func_modules_notice, func_modules_to_filelist, func_add_file,
10247         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
10248         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
10249         func_create_testdir, func_create_megatestdir): Update documentation.
10250
10251 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10252
10253         * gnulib-tool (func_cache_lookup_module): Store the module name
10254         belonging to the cache variable; error out if two different
10255         module names map to the same cache variable name.
10256
10257 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10258
10259         gnulib-tool: Make caching optional.
10260         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
10261         Update matching short versions of --no-changelog.
10262         (func_usage): Update.
10263         (sed_extract_cache_prog): Renamed from ...
10264         (sed_extract_prog): ... this; revert to old extraction script.
10265         (func_get_description, func_get_status)
10266         (func_get_notice, func_get_applicability, func_get_filelist)
10267         (func_get_dependencies, func_get_autoconf_early_snippet)
10268         (func_get_autoconf_snippet, func_get_automake_snippet)
10269         (func_get_include_directive, func_get_link_directive)
10270         (func_get_license, func_get_maintainer): If $do_cache is false,
10271         use old, non-caching extraction scripts.
10272         Suggestion by Bruno Haible.
10273
10274 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10275
10276         gnulib-tool: cache module metainformation.
10277         * gnulib-tool (sed_extract_prog): Match newline before each
10278         header, and rewrite header to a shell variable suffix.
10279         (func_cache_var, func_cache_lookup_module): New functions,
10280         to turn a module name into a cache variable prefix, and to
10281         look up and cache module metainformation.
10282         (func_get_description, func_get_status)
10283         (func_get_notice, func_get_applicability, func_get_filelist)
10284         (func_get_dependencies, func_get_autoconf_early_snippet)
10285         (func_get_autoconf_snippet, func_get_automake_snippet)
10286         (func_get_include_directive, func_get_link_directive)
10287         (func_get_license, func_get_maintainer): Use
10288         func_cache_lookup_module.
10289
10290 2010-02-07  Bruno Haible  <bruno@clisp.org>
10291
10292         fnctl: Fix missing dependency.
10293         * modules/fcntl (Depends-on): Add getdtablesize.
10294         Reported by John W. Eaton <jwe@gnu.org>.
10295
10296 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10297
10298         Argp: fix recognition of short alias options.
10299
10300         * lib/argp-parse.c (convert_options): Fix improper use of
10301         `|' between character values.
10302         * tests/test-argp.c (group1_option): New alias option
10303         --read (-r).
10304         (group1_parser): Special handling for 'r'.
10305         (test15): New test case.
10306         (test_fun): Add test15.
10307         * tests/test-argp-2.sh: Update expected --help and --usage
10308         outputs.
10309
10310 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10311
10312         * tests/test-argp.c: Fix indentation.
10313
10314 2010-02-04  Eric Blake  <ebb9@byu.net>
10315
10316         gettimeofday: expose type of second argument
10317         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
10318         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
10319         * tests/test-gettimeofday.c: Use it to silence warning.
10320         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
10321         the issue.
10322
10323 2010-02-03  Jim Meyering  <meyering@redhat.com>
10324
10325         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
10326         * lib/regcomp.c (TYPE_SIGNED): Define.
10327         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
10328
10329         regcomp.c: avoid a new -Wshadow warning
10330         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
10331
10332 2010-02-01  Jim Meyering  <meyering@redhat.com>
10333
10334         removing useless parentheses in cpp #define directives
10335         For motivation, see commit c0221df4, "define STREQ(a,b)
10336         consistently, removing useless parentheses"
10337         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
10338         * lib/mountlist.c (MNT_IGNORE): Likewise.
10339         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
10340
10341 2010-02-01  Eric Blake  <ebb9@byu.net>
10342
10343         sys_time: use link-warning
10344         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
10345         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
10346         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
10347         * modules/sys_time (Depends-on): Add warn-on-use.
10348         (Makefile.am): Always build replacement.
10349         (configure.ac): Update substitutions.
10350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
10351         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
10352         bother with SYS_TIME_H.
10353         * modules/gettimeofday (configure.ac): Declare indicator.
10354         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
10355         in use.
10356
10357         closein-tests: silence compiler warning
10358         * tests/test-closein.c (main): Ignore fread result.
10359         * modules/closein-tests (Depends-on): Add ignore-value.
10360
10361         tests: silence warning about system return
10362         * tests/test-areadlink-with-size.c (main): Ignore system result.
10363         * tests/test-areadlink.c (main): Likewise.
10364         * tests/test-areadlinkat-with-size.c (main): Likewise.
10365         * tests/test-areadlinkat.c (main): Likewise.
10366         * tests/test-canonicalize-lgpl.c (main): Likewise.
10367         * tests/test-canonicalize.c (main): Likewise.
10368         * tests/test-chown.c (main): Likewise.
10369         * tests/test-fchownat.c (main): Likewise.
10370         * tests/test-fdutimensat.c (main): Likewise.
10371         * tests/test-fstatat.c (main): Likewise.
10372         * tests/test-futimens.c (main): Likewise.
10373         * tests/test-lchown.c (main): Likewise.
10374         * tests/test-link.c (main): Likewise.
10375         * tests/test-linkat.c (main): Likewise.
10376         * tests/test-lstat.c (main): Likewise.
10377         * tests/test-mkdir.c (main): Likewise.
10378         * tests/test-mkdirat.c (main): Likewise.
10379         * tests/test-mkfifo.c (main): Likewise.
10380         * tests/test-mkfifoat.c (main): Likewise.
10381         * tests/test-mknod.c (main): Likewise.
10382         * tests/test-readlink.c (main): Likewise.
10383         * tests/test-remove.c (main): Likewise.
10384         * tests/test-rename.c (main): Likewise.
10385         * tests/test-renameat.c (main): Likewise.
10386         * tests/test-rmdir.c (main): Likewise.
10387         * tests/test-symlink.c (main): Likewise.
10388         * tests/test-symlinkat.c (main): Likewise.
10389         * tests/test-unlink.c (main): Likewise.
10390         * tests/test-unlinkat.c (main): Likewise.
10391         * tests/test-utimens.c (main): Likewise.
10392         * tests/test-utimensat.c (main): Likewise.
10393         * modules/areadlink-tests (Depends-on): Add ignore-value.
10394         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10395         * modules/areadlinkat-tests (Depends-on): Likewise.
10396         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10397         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10398         * modules/canonicalize-tests (Depends-on): Likewise.
10399         * modules/chown-tests (Depends-on): Likewise.
10400         * modules/fdutimensat-tests (Depends-on): Likewise.
10401         * modules/futimens-tests (Depends-on): Likewise.
10402         * modules/lchown-tests (Depends-on): Likewise.
10403         * modules/link-tests (Depends-on): Likewise.
10404         * modules/linkat-tests (Depends-on): Likewise.
10405         * modules/lstat-tests (Depends-on): Likewise.
10406         * modules/mkdir-tests (Depends-on): Likewise.
10407         * modules/mkfifo-tests (Depends-on): Likewise.
10408         * modules/mkfifoat-tests (Depends-on): Likewise.
10409         * modules/mknod-tests (Depends-on): Likewise.
10410         * modules/openat-tests (Depends-on): Likewise.
10411         * modules/readlink-tests (Depends-on): Likewise.
10412         * modules/remove-tests (Depends-on): Likewise.
10413         * modules/rename-tests (Depends-on): Likewise.
10414         * modules/renameat-tests (Depends-on): Likewise.
10415         * modules/rmdir-tests (Depends-on): Likewise.
10416         * modules/symlink-tests (Depends-on): Likewise.
10417         * modules/symlinkat-tests (Depends-on): Likewise.
10418         * modules/unlink-tests (Depends-on): Likewise.
10419         * modules/utimens-tests (Depends-on): Likewise.
10420         * modules/utimensat-tests (Depends-on): Likewise.
10421
10422 2010-01-31  Bruno Haible  <bruno@clisp.org>
10423
10424         Perform the same test for many <math.h> functions.
10425         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10426         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10427         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10428         of gl_MATHFUNC.
10429         * modules/acos (configure.ac): Likewise.
10430         * modules/asin (configure.ac): Likewise.
10431         * modules/atan (configure.ac): Likewise.
10432         * modules/atan2 (configure.ac): Likewise.
10433         * modules/cbrt (configure.ac): Likewise.
10434         * modules/copysign (configure.ac): Likewise.
10435         * modules/cos (configure.ac): Likewise.
10436         * modules/cosh (configure.ac): Likewise.
10437         * modules/erf (configure.ac): Likewise.
10438         * modules/erfc (configure.ac): Likewise.
10439         * modules/exp (configure.ac): Likewise.
10440         * modules/fmod (configure.ac): Likewise.
10441         * modules/hypot (configure.ac): Likewise.
10442         * modules/j0 (configure.ac): Likewise.
10443         * modules/j1 (configure.ac): Likewise.
10444         * modules/jn (configure.ac): Likewise.
10445         * modules/lgamma (configure.ac): Likewise.
10446         * modules/log (configure.ac): Likewise.
10447         * modules/log10 (configure.ac): Likewise.
10448         * modules/log1p (configure.ac): Likewise.
10449         * modules/pow (configure.ac): Likewise.
10450         * modules/remainder (configure.ac): Likewise.
10451         * modules/sin (configure.ac): Likewise.
10452         * modules/sinh (configure.ac): Likewise.
10453         * modules/tan (configure.ac): Likewise.
10454         * modules/tanh (configure.ac): Likewise.
10455         * modules/y0 (configure.ac): Likewise.
10456         * modules/y1 (configure.ac): Likewise.
10457         * modules/yn (configure.ac): Likewise.
10458         Suggested by Paolo Bonzini.
10459
10460 2010-01-31  Bruno Haible  <bruno@clisp.org>
10461
10462         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10463
10464 2010-01-31  Bruno Haible  <bruno@clisp.org>
10465
10466         Work around getdelim() bug on FreeBSD 8.0.
10467         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10468         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10469         not work.
10470         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10471         is 1.
10472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10473         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10474         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10475         a non-zero size.
10476         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10477
10478 2010-01-31  Bruno Haible  <bruno@clisp.org>
10479
10480         Work around getline() bug on FreeBSD 8.0.
10481         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10482         and a non-zero size.
10483         * tests/test-getline.c (main): Likewise.
10484         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10485         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10486
10487 2010-01-28  Eric Blake  <ebb9@byu.net>
10488
10489         regex: fix build failure
10490         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10491         platforms.
10492
10493 2010-01-28  Jim Meyering  <meyering@redhat.com>
10494
10495         regex: do not ignore memory allocation failure
10496         * lib/regex_internal.c (create_cd_newstate): Detect
10497         re_node_set_init_copy failure.   Extracted from glibc commit
10498         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10499
10500         regex: sync more white-space changes from libc
10501         * lib/regex_internal.c: White-space only changes.
10502         * lib/regexec.c: Likewise.
10503
10504         regex: add many uses of __attribute_warn_unused_result__
10505         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10506         * lib/regexec.c: Likewise.
10507         Extracted from a messy glibc commit.
10508
10509         regcomp.c: spelling and merge-artifact from glibc
10510         * lib/regcomp.c: Merge remainder of glibc's
10511         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10512
10513         regcomp.c: sync white-space changes from glibc
10514         * lib/regcomp.c: Merge to accommodate white space
10515         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10516
10517         regcomp.c: do not ignore internal return values
10518         * lib/regcomp.c: Do not ignore internal return values.
10519         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10520         but without its white-space changes and spelling fixes.
10521
10522         regex_internal.h: define __attribute_warn_unused_result__
10523         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10524
10525         maint: add a syntax-check rule to check for vulnerable Makefile.in
10526         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10527
10528 2010-01-27  Jim Meyering  <meyering@redhat.com>
10529
10530         ncftpput-ftp: clean up spaces
10531         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10532         Remove trailing blanks.
10533
10534 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10535
10536         * build-aux/git-version-gen: Fix copyright statement.
10537         * build-aux/gnupload: Likewise.
10538         * tests/test-arcfour.c: Likewise.
10539         * tests/test-arctwo.c: Likewise.
10540         * tests/test-count-one-bits.c: Likewise.
10541         * tests/test-crc.c: Likewise.
10542         * tests/test-des.c: Likewise.
10543         * tests/test-gc-arcfour.c: Likewise.
10544         * tests/test-gc-arctwo.c: Likewise.
10545         * tests/test-gc-des.c: Likewise.
10546         * tests/test-gc-hmac-md5.c: Likewise.
10547         * tests/test-gc-hmac-sha1.c: Likewise.
10548         * tests/test-gc-md2.c: Likewise.
10549         * tests/test-gc-md4.c: Likewise.
10550         * tests/test-gc-md5.c: Likewise.
10551         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10552         * tests/test-gc-rijndael.c: Likewise.
10553         * tests/test-gc-sha1.c: Likewise.
10554         * tests/test-gc.c: Likewise.
10555         * tests/test-gethostname.c: Likewise.
10556         * tests/test-gettimeofday.c: Likewise.
10557         * tests/test-hash.c: Likewise.
10558         * tests/test-hmac-md5.c: Likewise.
10559         * tests/test-hmac-sha1.c: Likewise.
10560         * tests/test-md2.c: Likewise.
10561         * tests/test-md4.c: Likewise.
10562         * tests/test-md5.c: Likewise.
10563         * tests/test-memchr.c: Likewise.
10564         * tests/test-memchr2.c: Likewise.
10565         * tests/test-memcmp.c: Likewise.
10566         * tests/test-memmem.c: Likewise.
10567         * tests/test-memrchr.c: Likewise.
10568         * tests/test-rawmemchr.c: Likewise.
10569         * tests/test-read-file.c: Likewise.
10570         * tests/test-rijndael.c: Likewise.
10571         * tests/test-sockets.c: Likewise.
10572         * tests/test-strchrnul.c: Likewise.
10573         * tests/test-strstr.c: Likewise.
10574         * tests/test-strtod.c: Likewise.
10575         * build-aux/ncftpput-ftp: Likewise.
10576
10577 2010-01-26  Eric Blake  <ebb9@byu.net>
10578
10579         ignore-value: update recommended header name
10580         * modules/ignore-value (Include): Only use <> for headers that
10581         exist in glibc.
10582
10583 2010-01-26  Jim Meyering  <meyering@redhat.com>
10584
10585         test-userspec.c: avoid compiler warnings
10586         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10587         and "initialization discards qualifiers..." warnings.
10588         Put the first "uid" in its own scope, and make char* members "const".
10589
10590 2010-01-25  Bruno Haible  <bruno@clisp.org>
10591
10592         gnulib-tool: Make warning diagnostics consistent.
10593         * gnulib-tool (func_warning): New function.
10594         Use it everywhere where gnulib-tool produces output to stderr and it is
10595         not a fatal error.
10596
10597 2010-01-25  Bruno Haible  <bruno@clisp.org>
10598
10599         Fix test dependencies.
10600         * modules/xstrtol-tests (Depends-on): Add inttypes.
10601         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10602
10603 2010-01-25 Pádraig Brady <P@draigBrady.com>
10604
10605         syntax-check: detect incorrect boolean macro values in config.h
10606         * modules/maintainer-makefile (configure.ac): Parameterize the location
10607         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10608         The logic is from Eric Blake and the location indicated by Jim Meyering.
10609         Note the more natural CONFIG_HEADER name is prohibited by automake
10610         for backwards compatibility reasons.
10611         * top/maint.mk (sc_Wundef_boolean): New rule.
10612
10613 2010-01-25  Jim Meyering  <meyering@redhat.com>
10614
10615         bootstrap: detect MacOS 10.6's shasum, too
10616         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10617         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10618
10619 2010-01-23  Jim Meyering  <meyering@redhat.com>
10620
10621         xstrtoll: new module
10622         * modules/xstrtoll: New file.
10623         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10624         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10625         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10626         ./configure fails if you use this module and lack "long long".
10627         * modules/xstrtoll-tests: New module.
10628         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10629         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10630         new init.sh-based test framework.
10631
10632 2010-01-24  Bruno Haible  <bruno@clisp.org>
10633
10634         Tests for module 'yn'.
10635         * modules/yn-tests: New file.
10636         * tests/test-yn.c: New file.
10637
10638         Tests for module 'y1'.
10639         * modules/y1-tests: New file.
10640         * tests/test-y1.c: New file.
10641
10642         Tests for module 'y0'.
10643         * modules/y0-tests: New file.
10644         * tests/test-y0.c: New file.
10645
10646         Tests for module 'tanh'.
10647         * modules/tanh-tests: New file.
10648         * tests/test-tanh.c: New file.
10649
10650         Tests for module 'tan'.
10651         * modules/tan-tests: New file.
10652         * tests/test-tan.c: New file.
10653
10654         Tests for module 'sqrt'.
10655         * modules/sqrt-tests: New file.
10656         * tests/test-sqrt.c: New file.
10657
10658         Tests for module 'sinh'.
10659         * modules/sinh-tests: New file.
10660         * tests/test-sinh.c: New file.
10661
10662         Tests for module 'sin'.
10663         * modules/sin-tests: New file.
10664         * tests/test-sin.c: New file.
10665
10666         Tests for module 'rint'.
10667         * modules/rint-tests: New file.
10668         * tests/test-rint.c: New file.
10669
10670         Tests for module 'remainder'.
10671         * modules/remainder-tests: New file.
10672         * tests/test-remainder.c: New file.
10673
10674         Tests for module 'pow'.
10675         * modules/pow-tests: New file.
10676         * tests/test-pow.c: New file.
10677
10678         Tests for module 'nextafter'.
10679         * modules/nextafter-tests: New file.
10680         * tests/test-nextafter.c: New file.
10681
10682         Tests for module 'modf'.
10683         * modules/modf-tests: New file.
10684         * tests/test-modf.c: New file.
10685
10686         Tests for module 'logb'.
10687         * modules/logb-tests: New file.
10688         * tests/test-logb.c: New file.
10689
10690         Tests for module 'log1p'.
10691         * modules/log1p-tests: New file.
10692         * tests/test-log1p.c: New file.
10693
10694         Tests for module 'log10'.
10695         * modules/log10-tests: New file.
10696         * tests/test-log10.c: New file.
10697
10698         Tests for module 'log'.
10699         * modules/log-tests: New file.
10700         * tests/test-log.c: New file.
10701
10702         Tests for module 'lgamma'.
10703         * modules/lgamma-tests: New file.
10704         * tests/test-lgamma.c: New file.
10705
10706         Tests for module 'ldexp'.
10707         * modules/ldexp-tests: New file.
10708         * tests/test-ldexp.c: New file.
10709
10710         Tests for module 'jn'.
10711         * modules/jn-tests: New file.
10712         * tests/test-jn.c: New file.
10713
10714         Tests for module 'j1'.
10715         * modules/j1-tests: New file.
10716         * tests/test-j1.c: New file.
10717
10718         Tests for module 'j0'.
10719         * modules/j0-tests: New file.
10720         * tests/test-j0.c: New file.
10721
10722         Tests for module 'hypot'.
10723         * modules/hypot-tests: New file.
10724         * tests/test-hypot.c: New file.
10725
10726         Tests for module 'fmod'.
10727         * modules/fmod-tests: New file.
10728         * tests/test-fmod.c: New file.
10729
10730         Tests for module 'fabs'.
10731         * modules/fabs-tests: New file.
10732         * tests/test-fabs.c: New file.
10733
10734         Tests for module 'exp'.
10735         * modules/exp-tests: New file.
10736         * tests/test-exp.c: New file.
10737
10738         Tests for module 'erfc'.
10739         * modules/erfc-tests: New file.
10740         * tests/test-erfc.c: New file.
10741
10742         Tests for module 'erf'.
10743         * modules/erf-tests: New file.
10744         * tests/test-erf.c: New file.
10745
10746         Tests for module 'cosh'.
10747         * modules/cosh-tests: New file.
10748         * tests/test-cosh.c: New file.
10749
10750         Tests for module 'cos'.
10751         * modules/cos-tests: New file.
10752         * tests/test-cos.c: New file.
10753
10754         Tests for module 'copysign'.
10755         * modules/copysign-tests: New file.
10756         * tests/test-copysign.c: New file.
10757
10758         Tests for module 'cbrt'.
10759         * modules/cbrt-tests: New file.
10760         * tests/test-cbrt.c: New file.
10761
10762         Tests for module 'atan2'.
10763         * modules/atan2-tests: New file.
10764         * tests/test-atan2.c: New file.
10765
10766         Tests for module 'atan'.
10767         * modules/atan-tests: New file.
10768         * tests/test-atan.c: New file.
10769
10770         Tests for module 'asin'.
10771         * modules/asin-tests: New file.
10772         * tests/test-asin.c: New file.
10773
10774         Tests for module 'acos'.
10775         * modules/acos-tests: New file.
10776         * tests/test-acos.c: New file.
10777
10778 2010-01-24  Bruno Haible  <bruno@clisp.org>
10779
10780         Fix tests for common <math.h> functions.
10781         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
10782         code snippet that references the function pointer, rather than merely
10783         calling the function. Substitute the FUNC_LIBM variable.
10784         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
10785         * modules/acos (configure.ac): Likewise.
10786         * modules/asin (configure.ac): Likewise.
10787         * modules/atan (configure.ac): Likewise.
10788         * modules/atan2 (configure.ac): Likewise.
10789         * modules/cbrt (configure.ac): Likewise.
10790         * modules/copysign (configure.ac): Likewise.
10791         * modules/cos (configure.ac): Likewise.
10792         * modules/cosh (configure.ac): Likewise.
10793         * modules/erf (configure.ac): Likewise.
10794         * modules/erfc (configure.ac): Likewise.
10795         * modules/exp (configure.ac): Likewise.
10796         * modules/fabs (configure.ac): Likewise.
10797         * modules/fmod (configure.ac): Likewise.
10798         * modules/hypot (configure.ac): Likewise.
10799         * modules/j0 (configure.ac): Likewise.
10800         * modules/j1 (configure.ac): Likewise.
10801         * modules/jn (configure.ac): Likewise.
10802         * modules/ldexp (configure.ac): Likewise.
10803         * modules/lgamma (configure.ac): Likewise.
10804         * modules/log (configure.ac): Likewise.
10805         * modules/log10 (configure.ac): Likewise.
10806         * modules/log1p (configure.ac): Likewise.
10807         * modules/logb (configure.ac): Likewise.
10808         * modules/modf (configure.ac): Likewise.
10809         * modules/nextafter (configure.ac): Likewise.
10810         * modules/pow (configure.ac): Likewise.
10811         * modules/remainder (configure.ac): Likewise.
10812         * modules/rint (configure.ac): Likewise.
10813         * modules/sin (configure.ac): Likewise.
10814         * modules/sinh (configure.ac): Likewise.
10815         * modules/tan (configure.ac): Likewise.
10816         * modules/tanh (configure.ac): Likewise.
10817         * modules/y0 (configure.ac): Likewise.
10818         * modules/y1 (configure.ac): Likewise.
10819         * modules/yn (configure.ac): Likewise.
10820
10821 2010-01-24  Bruno Haible  <bruno@clisp.org>
10822
10823         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
10824         * tests/test-acosl.c (x): New variable.
10825         (main): Store argument in x and fetch it from x.
10826         * tests/test-asinl.c (x): New variable.
10827         (main): Store argument in x and fetch it from x.
10828         * tests/test-atanl.c (x): New variable.
10829         (main): Store argument in x and fetch it from x.
10830         * tests/test-cosl.c (x): New variable.
10831         (main): Store argument in x and fetch it from x.
10832         * tests/test-expl.c (x): New variable.
10833         (main): Store argument in x and fetch it from x.
10834         * tests/test-logl.c (x): New variable.
10835         (main): Store argument in x and fetch it from x.
10836         * tests/test-sinl.c (x): New variable.
10837         (main): Store argument in x and fetch it from x.
10838         * tests/test-sqrtl.c (x): New variable.
10839         (main): Store argument in x and fetch it from x.
10840         * tests/test-tanl.c (x): New variable.
10841         (main): Store argument in x and fetch it from x.
10842
10843 2010-01-24  Bruno Haible  <bruno@clisp.org>
10844
10845         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10846         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10847         assignments to the initial TESTS_ENVIRONMENT.
10848         * doc/gnulib.texi (Unit test modules): Document it.
10849         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10850         TESTS_ENVIRONMENT.
10851         * modules/btowc-tests (Makefile.am): Likewise.
10852         * modules/c-stack-tests (Makefile.am): Likewise.
10853         * modules/c-strcase-tests (Makefile.am): Likewise.
10854         * modules/copy-file-tests (Makefile.am): Likewise.
10855         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10856         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10857         * modules/mbrtowc-tests (Makefile.am): Likewise.
10858         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10859         * modules/mbscasestr-tests (Makefile.am): Likewise.
10860         * modules/mbschr-tests (Makefile.am): Likewise.
10861         * modules/mbscspn-tests (Makefile.am): Likewise.
10862         * modules/mbsinit-tests (Makefile.am): Likewise.
10863         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10864         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10865         * modules/mbspbrk-tests (Makefile.am): Likewise.
10866         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10867         * modules/mbsrchr-tests (Makefile.am): Likewise.
10868         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10869         * modules/mbsspn-tests (Makefile.am): Likewise.
10870         * modules/mbsstr-tests (Makefile.am): Likewise.
10871         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10872         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10873         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10874         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10875         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10876         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10877         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10878         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10879         * modules/wcrtomb-tests (Makefile.am): Likewise.
10880         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10881         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10882         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10883         assignments from TESTS_ENVIRONMENT.
10884         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10885         augmentation.
10886         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10887         * modules/atexit-tests (Makefile.am): Likewise.
10888         * modules/binary-io-tests (Makefile.am): Likewise.
10889         * modules/closein-tests (Makefile.am): Likewise.
10890         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10891         * modules/exclude-tests (Makefile.am): Likewise.
10892         * modules/fflush-tests (Makefile.am): Likewise.
10893         * modules/fpending-tests (Makefile.am): Likewise.
10894         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10895         * modules/freadahead-tests (Makefile.am): Likewise.
10896         * modules/freadptr-tests (Makefile.am): Likewise.
10897         * modules/freadseek-tests (Makefile.am): Likewise.
10898         * modules/fseek-tests (Makefile.am): Likewise.
10899         * modules/fseeko-tests (Makefile.am): Likewise.
10900         * modules/ftell-tests (Makefile.am): Likewise.
10901         * modules/ftello-tests (Makefile.am): Likewise.
10902         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10903         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10904         * modules/lseek-tests (Makefile.am): Likewise.
10905         * modules/parse-duration-tests (Makefile.am): Likewise.
10906         * modules/perror-tests (Makefile.am): Likewise.
10907         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10908         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10909         * modules/pipe-tests (Makefile.am): Likewise.
10910         * modules/pread-tests (Makefile.am): Likewise.
10911         * modules/printf-posix-tests (Makefile.am): Likewise.
10912         * modules/select-tests (Makefile.am): Likewise.
10913         * modules/sigpipe-tests (Makefile.am): Likewise.
10914         * modules/tsearch-tests (Makefile.am): Likewise.
10915         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10916         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10917         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10918         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10919         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10920         * modules/version-etc-tests (Makefile.am): Likewise.
10921         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10922         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10923         * modules/xalloc-die-tests (Makefile.am): Likewise.
10924         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10925         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10926         * modules/xstrtol-tests (Makefile.am): Likewise.
10927         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10928         * modules/yesno-tests (Makefile.am): Likewise.
10929         Suggested by Jim Meyering.
10930
10931 2010-01-24  Bruno Haible  <bruno@clisp.org>
10932
10933         More documentation.
10934         * doc/gnulib.texi (Writing modules): New chapter.
10935         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10936         the new chapter.
10937
10938 2010-01-24  Jim Meyering  <meyering@redhat.com>
10939
10940         maint.mk: do not prepend "./" after filtering
10941         * top/maint.mk (_prepend_srcdir_prefix): New variable
10942         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10943         "./" when $(srcdir) is ".".
10944
10945         define STREQ(a,b) consistently, removing useless parentheses
10946         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10947         since the only risk is that "a" or "b" contains an unparenthesized
10948         comma, but if either did that, STREQ would have 3 or more arguments.
10949         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10950         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10951         * lib/hash-triple.c (STREQ): Likewise.
10952         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10953         * lib/getugroups.c (STREQ): Likewise.
10954
10955 2010-01-23  Jim Meyering  <meyering@redhat.com>
10956
10957         maint.mk: fix syntax-check in a non-srcdir build directory
10958         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10959         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10960
10961 2010-01-22  Jim Meyering  <meyering@redhat.com>
10962
10963         userspec: add unit tests
10964         * tests/test-userspec.c: New file.
10965         * modules/userspec-tests: Likewise.
10966
10967 2010-01-21  Jim Meyering  <meyering@redhat.com>
10968
10969         maint.mk: handle source file names containing "." robustly
10970         * top/maint.mk (_dot_escaped_srcdir): Define.
10971         (VC_LIST): Use it in LHS of sed substitution.
10972
10973 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10974
10975         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10976         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10977         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10978         from a non-srcdir build.
10979
10980 2010-01-20  Eric Blake  <ebb9@byu.net>
10981
10982         warn-on-use: use instead of link-warning
10983         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10984         * modules/unistd (Depends-on, Makefile.am): Likewise.
10985         * modules/arpa_inet (Depends-on): Replace link-warning with
10986         warn-on-use.
10987         (Makefile.am): Update rules accordingly.
10988         * modules/ctype (Depends-on, Makefile.am): Likewise.
10989         * modules/dirent (Depends-on, Makefile.am): Likewise.
10990         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10991         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10992         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10993         * modules/locale (Depends-on, Makefile.am): Likewise.
10994         * modules/math (Depends-on, Makefile.am): Likewise.
10995         * modules/search (Depends-on, Makefile.am): Likewise.
10996         * modules/signal (Depends-on, Makefile.am): Likewise.
10997         * modules/spawn (Depends-on, Makefile.am): Likewise.
10998         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10999         * modules/string (Depends-on, Makefile.am): Likewise.
11000         * modules/strings (Depends-on, Makefile.am): Likewise.
11001         * modules/sys_file (Depends-on, Makefile.am): Likewise.
11002         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
11003         * modules/sys_select (Depends-on, Makefile.am): Likewise.
11004         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
11005         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
11006         * modules/sys_times (Depends-on, Makefile.am): Likewise.
11007         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11008         * modules/wchar (Depends-on, Makefile.am): Likewise.
11009         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
11010         should be poisoned.
11011         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
11012         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
11013         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
11014         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11015         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11016         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11017         * m4/math_h.m4 (gl_MATH_H): Likewise.
11018         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11019         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11020         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11021         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11022         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11023         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11024         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11025         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
11026         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11027         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11028         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11029         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11030         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11031         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11032         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11033         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11034         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
11035         GL_LINK_WARNING.
11036         * lib/ctype.in.h: Likewise.
11037         * lib/dirent.in.h: Likewise.
11038         * lib/fcntl.in.h: Likewise.
11039         * lib/inttypes.in.h: Likewise.
11040         * lib/langinfo.in.h: Likewise.
11041         * lib/locale.in.h: Likewise.
11042         * lib/math.in.h: Likewise.
11043         * lib/search.in.h: Likewise.
11044         * lib/signal.in.h: Likewise.
11045         * lib/spawn.in.h: Likewise.
11046         * lib/stdio.in.h: Likewise.
11047         * lib/stdlib.in.h: Likewise.
11048         * lib/string.in.h: Likewise.
11049         * lib/strings.in.h: Likewise.
11050         * lib/sys_file.in.h: Likewise.
11051         * lib/sys_ioctl.in.h: Likewise.
11052         * lib/sys_select.in.h: Likewise.
11053         * lib/sys_socket.in.h: Likewise.
11054         * lib/sys_stat.in.h: Likewise.
11055         * lib/sys_times.in.h: Likewise.
11056         * lib/sys_utsname.in.h: Likewise.
11057         * lib/unistd.in.h: Likewise.
11058         * lib/wchar.in.h: Likewise.
11059
11060 2010-01-20  Bruno Haible  <bruno@clisp.org>
11061
11062         Avoid duplicate -lm.
11063         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
11064         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
11065         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
11066         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
11067         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
11068         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
11069         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
11070         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
11071         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
11072         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
11073         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
11074         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11075         Reported by Paolo Bonzini.
11076
11077 2010-01-19  Bruno Haible  <bruno@clisp.org>
11078
11079         langinfo, nl_langinfo: Relicense under LGPLv2+.
11080         * modules/langinfo (License): Change to LGPLv2+.
11081         * modules/nl_langinfo (License): Likewise.
11082         Patch by David Lutterkort <lutter@redhat.com>.
11083
11084 2010-01-19  Bruno Haible  <bruno@clisp.org>
11085
11086         Avoid compilation error with cc on OSF/1 5.1.
11087         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
11088         statement, not before.
11089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11090
11091 2010-01-18  Bruno Haible  <bruno@clisp.org>
11092
11093         Avoid a link error due to the __printf__ symbol.
11094         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
11095         and 2.6.x.
11096         (__format__, __printf__): Remove definitions.
11097         * lib/argp-fmtstream.h: Likewise.
11098         * lib/argp.h: Likewise.
11099         * lib/error.h: Likewise.
11100         * lib/vasnprintf.h: Likewise.
11101         * lib/xprintf.h: Likewise.
11102         * lib/xvasprintf.h: Likewise.
11103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11104
11105 2010-01-18  Bruno Haible  <bruno@clisp.org>
11106
11107         Tests for module 'tanl'.
11108         * modules/tanl-tests: New file.
11109         * tests/test-tanl.c: New file.
11110
11111         Tests for module 'sqrtl'.
11112         * modules/sqrtl-tests: New file.
11113         * tests/test-sqrtl.c: New file.
11114
11115         Tests for module 'sinl'.
11116         * modules/sinl-tests: New file.
11117         * tests/test-sinl.c: New file.
11118
11119         Tests for module 'logl'.
11120         * modules/logl-tests: New file.
11121         * tests/test-logl.c: New file.
11122
11123         Tests for module 'expl'.
11124         * modules/expl-tests: New file.
11125         * tests/test-expl.c: New file.
11126
11127         Tests for module 'cosl'.
11128         * modules/cosl-tests: New file.
11129         * tests/test-cosl.c: New file.
11130
11131         Tests for module 'atanl'.
11132         * modules/atanl-tests: New file.
11133         * tests/test-atanl.c: New file.
11134
11135         Tests for module 'asinl'.
11136         * modules/asinl-tests: New file.
11137         * tests/test-asinl.c: New file.
11138
11139         Tests for module 'acosl'.
11140         * modules/acosl-tests: New file.
11141         * tests/test-acosl.c: New file.
11142
11143         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
11144         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
11145         tanl): Use the standard gnulib idiom.
11146         * lib/cosl.c: Don't include trigl.c and sincosl.c.
11147         * lib/sinl.c: Likewise.
11148         * lib/tanl.c: Don't include trigl.c.
11149         (kernel_tanl): Make static.
11150         * lib/sincosl.c: Include trigl.h first.
11151         * lib/trigl.c: Likewise.
11152         * m4/acosl.m4: New file.
11153         * m4/asinl.m4: New file.
11154         * m4/atanl.m4: New file.
11155         * m4/cosl.m4: New file.
11156         * m4/expl.m4: New file.
11157         * m4/logl.m4: New file.
11158         * m4/sinl.m4: New file.
11159         * m4/sqrtl.m4: New file.
11160         * m4/tanl.m4: New file.
11161         * m4/mathl.m4: Remove file.
11162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
11163         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
11164         Don't initialize GNULIB_MATHL.
11165         * modules/acosl: New file.
11166         * modules/asinl: New file.
11167         * modules/atanl: New file.
11168         * modules/cosl: New file.
11169         * modules/expl: New file.
11170         * modules/logl: New file.
11171         * modules/sinl: New file.
11172         * modules/sqrtl: New file.
11173         * modules/tanl: New file.
11174         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
11175         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
11176         substitute GNULIB_MATHL.
11177         * modules/mathl: Rewritten.
11178         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
11179         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
11180         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
11181         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
11182         * doc/posix-functions/expl.texi: Mention the 'expl' module.
11183         * doc/posix-functions/logl.texi: Mention the 'logl' module.
11184         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
11185         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
11186         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
11187
11188 2010-01-18  Bruno Haible  <bruno@clisp.org>
11189
11190         sqrt: Make gl_FUNC_SQRT requirable.
11191         * m4/sqrt.m4: New file.
11192         * modules/sqrt (Files): Add it.
11193         (configure.ac): Invoke gl_FUNC_SQRT.
11194
11195 2010-01-18  Bruno Haible  <bruno@clisp.org>
11196
11197         New modules for common <math.h> functions.
11198         * m4/mathfunc.m4: New file.
11199         * modules/acos: New file.
11200         * modules/asin: New file.
11201         * modules/atan: New file.
11202         * modules/atan2: New file.
11203         * modules/cbrt: New file.
11204         * modules/copysign: New file.
11205         * modules/cos: New file.
11206         * modules/cosh: New file.
11207         * modules/erf: New file.
11208         * modules/erfc: New file.
11209         * modules/exp: New file.
11210         * modules/fabs: New file.
11211         * modules/fmod: New file.
11212         * modules/hypot: New file.
11213         * modules/j0: New file.
11214         * modules/j1: New file.
11215         * modules/jn: New file.
11216         * modules/ldexp: New file.
11217         * modules/lgamma: New file.
11218         * modules/log: New file.
11219         * modules/log10: New file.
11220         * modules/log1p: New file.
11221         * modules/logb: New file.
11222         * modules/modf: New file.
11223         * modules/nextafter: New file.
11224         * modules/pow: New file.
11225         * modules/remainder: New file.
11226         * modules/rint: New file.
11227         * modules/sin: New file.
11228         * modules/sinh: New file.
11229         * modules/sqrt: New file.
11230         * modules/tan: New file.
11231         * modules/tanh: New file.
11232         * modules/y0: New file.
11233         * modules/y1: New file.
11234         * modules/yn: New file.
11235         * doc/posix-functions/acos.texi: Mention the 'acos' module.
11236         * doc/posix-functions/asin.texi: Mention the 'asin' module.
11237         * doc/posix-functions/atan.texi: Mention the 'atan' module.
11238         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
11239         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
11240         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
11241         * doc/posix-functions/cos.texi: Mention the 'cos' module.
11242         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
11243         * doc/posix-functions/erf.texi: Mention the 'erf' module.
11244         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
11245         * doc/posix-functions/exp.texi: Mention the 'exp' module.
11246         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
11247         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
11248         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
11249         * doc/posix-functions/j0.texi: Mention the 'j0' module.
11250         * doc/posix-functions/j1.texi: Mention the 'j1' module.
11251         * doc/posix-functions/jn.texi: Mention the 'jn' module.
11252         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
11253         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
11254         * doc/posix-functions/log.texi: Mention the 'log' module.
11255         * doc/posix-functions/log10.texi: Mention the 'log10' module.
11256         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
11257         * doc/posix-functions/logb.texi: Mention the 'logb' module.
11258         * doc/posix-functions/modf.texi: Mention the 'modf' module.
11259         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
11260         * doc/posix-functions/pow.texi: Mention the 'pow' module.
11261         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
11262         * doc/posix-functions/rint.texi: Mention the 'rint' module.
11263         * doc/posix-functions/sin.texi: Mention the 'sin' module.
11264         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
11265         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
11266         * doc/posix-functions/tan.texi: Mention the 'tan' module.
11267         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
11268         * doc/posix-functions/y0.texi: Mention the 'y0' module.
11269         * doc/posix-functions/y1.texi: Mention the 'y1' module.
11270         * doc/posix-functions/yn.texi: Mention the 'yn' module.
11271
11272 2010-01-18  Jim Meyering  <meyering@redhat.com>
11273
11274         ignore-value: relax license to LGPLv2+
11275         * modules/ignore-value (License): Relax to LGPLv2+.
11276
11277         getdate: don't leak when TZ contains two or more '"'s
11278         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
11279         double quote in TZ after the first one.
11280
11281         readtokens: do not leak internal token_lengths buffer
11282         * lib/readtokens.c (readtokens): Free the local, lengths,
11283         when the supplied "token_lengths" parameter is NULL.
11284
11285 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11286
11287         Fix a couple of missing LIBTHREAD link failures on AIX.
11288         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
11289         $(LIBTHREAD).
11290         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
11291
11292         Link test-poll against INET_PTON_LIB.
11293         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
11294         for inet_pton on Solaris 10.
11295
11296 2010-01-17  Bruno Haible  <bruno@clisp.org>
11297
11298         unistdio/*-sprintf: Fix typo in module description.
11299         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
11300         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
11301         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
11302         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
11303         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
11304         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
11305         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
11306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11307
11308 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11309
11310         gnulib-tool: fix filelist for AIX, HP-UX ksh.
11311         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
11312         variables in shell case patterns, for AIX and HP-UX ksh.
11313
11314         Split large sed scripts, for HP-UX sed.
11315         * modules/stdio: Split sed scripts around 50 sed commands,
11316         to avoid HP-UX limit of 99 commands, in the near future.
11317         * modules/string: Likewise.
11318         * modules/unistd: Likewise.
11319
11320         gnulib-tool: avoid writing in the current directory.
11321         * gnulib-tool (func_emit_lib_Makefile_am)
11322         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
11323         not in the current directory, so concurrent gnulib-tool
11324         instances do not interfere.
11325
11326 2010-01-16  Jim Meyering  <meyering@redhat.com>
11327
11328         doc: update users.txt
11329         * users.txt: Add grep.
11330         (diffutils, gzip): Update URLs.
11331
11332 2010-01-12  Bruno Haible  <bruno@clisp.org>
11333
11334         posix_spawn: Avoid test failure on Cygwin.
11335         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
11336         characters.
11337         Reported by Simon Josefsson.
11338
11339 2010-01-12  Bruno Haible  <bruno@clisp.org>
11340
11341         * tests/test-cond.c (main): When skipping the test, show the reason.
11342
11343 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11344
11345         * lib/striconv.c (str_cd_iconv): Avoid if before free.
11346
11347 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11348
11349         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
11350         VC_LIST_ALWAYS_EXCLUDE_REGEX.
11351
11352 2010-01-12  Eric Blake  <ebb9@byu.net>
11353
11354         build: guarantee AS_VAR_IF
11355         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
11356         (gl_AS_VAR_IF): Move...
11357         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
11358         Reported by Simon Josefsson.
11359
11360 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11361
11362         * lib/stdio.in.h: Fix typo.
11363
11364 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11365
11366         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
11367         libgpg-error.
11368
11369 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11370
11371         * tests/test-xalloc-die.sh: Use $EXEEXT.
11372
11373 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11374             Bruno Haible  <bruno@clisp.org>
11375
11376         getlogin, getlogin_r: Avoid test failure.
11377         * tests/test-getlogin.c: Include <stdio.h>.
11378         (main): Skip the test when the function fails because stdin is not a
11379         tty.
11380         * tests/test-getlogin_r.c: Include <stdio.h>.
11381         (main): Skip the test when the function fails because stdin is not a
11382         tty.
11383
11384 2010-01-11  Eric Blake  <ebb9@byu.net>
11385
11386         tests: avoid more large file warnings
11387         * tests/test-fflush.c: Avoid warning about ftell use.
11388         * tests/test-fseek.c: Avoid warning about fseek use.
11389
11390 2010-01-10  Bruno Haible  <bruno@clisp.org>
11391
11392         nproc: Work better on Linux when /proc and /sys are not mounted.
11393         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11394         as lower bound when, on glibc/Linux systems,
11395         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11396         Suggested by Pádraig Brady <P@draigbrady.com>.
11397         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11398
11399         nproc: Refactor.
11400         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11401         extracted from num_processors.
11402         (num_processors): Call it.
11403
11404 2010-01-11  Jim Meyering  <meyering@redhat.com>
11405
11406         utimecmp: avoid new warning from upcoming gcc-4.5.0
11407         * lib/utimecmp.c (BILLION): Define using #define rather than an
11408         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11409
11410 2010-01-11  Eric Blake  <ebb9@byu.net>
11411
11412         math: add portability warnings for classification macros
11413         * modules/math (Depends-on): Add warn-on-use.
11414         (Makefile.am): Provide new substitutions.
11415         * m4/math_h.m4 (gl_MATH_H): Require inline.
11416         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11417         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11418         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11419         implement warnings.
11420
11421         unistd: warn on use of environ without module
11422         * modules/unistd (Depends-on): Add warn-on-use.
11423         (Makefile.am): Provide new substitutions.
11424         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11425         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11426
11427         stdio: warn on suspicious uses
11428         * modules/stdio (Depends-on): Add warn-on-use.
11429         (Makefile.am): Provide new substitutions.
11430         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11431         fseeko.
11432         * lib/stdio.in.h (gets): Always warn on use.
11433         (fseek, ftell): Adjust when warnings are issued, and honor
11434         _GL_NO_LARGE_FILES as a way to silence the warning.
11435         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11436         any warning about large file offsets.
11437         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11438         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11439         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11440         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11441         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11442         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11443         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11444         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11445
11446         warn-on-use: new module
11447         * modules/warn-on-use: New file.
11448         * build-aux/warn-on-use.h: Likewise.
11449         * m4/warn-on-use.m4: Likewise.
11450         * MODULES.html.sh (Support for building): Mention it.
11451
11452 2010-01-10  Bruno Haible  <bruno@clisp.org>
11453
11454         Tests for module 'unistr/u32-strdup'.
11455         * modules/unistr/u32-strdup-tests: New file.
11456         * tests/unistr/test-u32-strdup.c: New file.
11457
11458         Tests for module 'unistr/u16-strdup'.
11459         * modules/unistr/u16-strdup-tests: New file.
11460         * tests/unistr/test-u16-strdup.c: New file.
11461
11462         Tests for module 'unistr/u8-strdup'.
11463         * modules/unistr/u8-strdup-tests: New file.
11464         * tests/unistr/test-u8-strdup.c: New file.
11465         * tests/unistr/test-strdup.h: New file.
11466
11467         Tests for module 'unistr/u32-strncmp'.
11468         * modules/unistr/u32-strncmp-tests: New file.
11469         * tests/unistr/test-u32-strncmp.c: New file.
11470
11471         Tests for module 'unistr/u16-strncmp'.
11472         * modules/unistr/u16-strncmp-tests: New file.
11473         * tests/unistr/test-u16-strncmp.c: New file.
11474
11475         Tests for module 'unistr/u8-strncmp'.
11476         * modules/unistr/u8-strncmp-tests: New file.
11477         * tests/unistr/test-u8-strncmp.c: New file.
11478         * tests/unistr/test-strncmp.h: New file.
11479
11480         Tests for module 'unistr/u32-strcoll'.
11481         * modules/unistr/u32-strcoll-tests: New file.
11482         * tests/unistr/test-u32-strcoll.c: New file.
11483
11484         Tests for module 'unistr/u16-strcoll'.
11485         * modules/unistr/u16-strcoll-tests: New file.
11486         * tests/unistr/test-u16-strcoll.c: New file.
11487
11488         Tests for module 'unistr/u8-strcoll'.
11489         * modules/unistr/u8-strcoll-tests: New file.
11490         * tests/unistr/test-u8-strcoll.c: New file.
11491
11492         Tests for module 'unistr/u32-strcmp'.
11493         * modules/unistr/u32-strcmp-tests: New file.
11494         * tests/unistr/test-u32-strcmp.c: New file.
11495         * tests/unistr/test-u32-strcmp.h: New file.
11496
11497         Tests for module 'unistr/u16-strcmp'.
11498         * modules/unistr/u16-strcmp-tests: New file.
11499         * tests/unistr/test-u16-strcmp.c: New file.
11500         * tests/unistr/test-u16-strcmp.h: New file.
11501
11502         Tests for module 'unistr/u8-strcmp'.
11503         * modules/unistr/u8-strcmp-tests: New file.
11504         * tests/unistr/test-u8-strcmp.c: New file.
11505         * tests/unistr/test-u8-strcmp.h: New file.
11506         * tests/unistr/test-strcmp.h: New file.
11507
11508         Tests for module 'unistr/u32-strncat'.
11509         * modules/unistr/u32-strncat-tests: New file.
11510         * tests/unistr/test-u32-strncat.c: New file.
11511
11512         Tests for module 'unistr/u16-strncat'.
11513         * modules/unistr/u16-strncat-tests: New file.
11514         * tests/unistr/test-u16-strncat.c: New file.
11515
11516         Tests for module 'unistr/u8-strncat'.
11517         * modules/unistr/u8-strncat-tests: New file.
11518         * tests/unistr/test-u8-strncat.c: New file.
11519         * tests/unistr/test-strncat.h: New file.
11520
11521         Tests for module 'unistr/u32-strcat'.
11522         * modules/unistr/u32-strcat-tests: New file.
11523         * tests/unistr/test-u32-strcat.c: New file.
11524
11525         Tests for module 'unistr/u16-strcat'.
11526         * modules/unistr/u16-strcat-tests: New file.
11527         * tests/unistr/test-u16-strcat.c: New file.
11528
11529         Tests for module 'unistr/u8-strcat'.
11530         * modules/unistr/u8-strcat-tests: New file.
11531         * tests/unistr/test-u8-strcat.c: New file.
11532         * tests/unistr/test-strcat.h: New file.
11533
11534         Tests for module 'unistr/u32-stpncpy'.
11535         * modules/unistr/u32-stpncpy-tests: New file.
11536         * tests/unistr/test-u32-stpncpy.c: New file.
11537
11538         Tests for module 'unistr/u16-stpncpy'.
11539         * modules/unistr/u16-stpncpy-tests: New file.
11540         * tests/unistr/test-u16-stpncpy.c: New file.
11541
11542         Tests for module 'unistr/u8-stpncpy'.
11543         * modules/unistr/u8-stpncpy-tests: New file.
11544         * tests/unistr/test-u8-stpncpy.c: New file.
11545         * tests/unistr/test-stpncpy.h: New file.
11546
11547         Tests for module 'unistr/u32-strncpy'.
11548         * modules/unistr/u32-strncpy-tests: New file.
11549         * tests/unistr/test-u32-strncpy.c: New file.
11550
11551         Tests for module 'unistr/u16-strncpy'.
11552         * modules/unistr/u16-strncpy-tests: New file.
11553         * tests/unistr/test-u16-strncpy.c: New file.
11554
11555         Tests for module 'unistr/u8-strncpy'.
11556         * modules/unistr/u8-strncpy-tests: New file.
11557         * tests/unistr/test-u8-strncpy.c: New file.
11558         * tests/unistr/test-strncpy.h: New file.
11559
11560         Tests for module 'unistr/u32-stpcpy'.
11561         * modules/unistr/u32-stpcpy-tests: New file.
11562         * tests/unistr/test-u32-stpcpy.c: New file.
11563
11564         Tests for module 'unistr/u16-stpcpy'.
11565         * modules/unistr/u16-stpcpy-tests: New file.
11566         * tests/unistr/test-u16-stpcpy.c: New file.
11567
11568         Tests for module 'unistr/u8-stpcpy'.
11569         * modules/unistr/u8-stpcpy-tests: New file.
11570         * tests/unistr/test-u8-stpcpy.c: New file.
11571         * tests/unistr/test-stpcpy.h: New file.
11572
11573         Tests for module 'unistr/u32-strcpy'.
11574         * modules/unistr/u32-strcpy-tests: New file.
11575         * tests/unistr/test-u32-strcpy.c: New file.
11576
11577         Tests for module 'unistr/u16-strcpy'.
11578         * modules/unistr/u16-strcpy-tests: New file.
11579         * tests/unistr/test-u16-strcpy.c: New file.
11580
11581         Tests for module 'unistr/u8-strcpy'.
11582         * modules/unistr/u8-strcpy-tests: New file.
11583         * tests/unistr/test-u8-strcpy.c: New file.
11584         * tests/unistr/test-strcpy.h: New file.
11585
11586         Tests for module 'unistr/u32-strnlen'.
11587         * modules/unistr/u32-strnlen-tests: New file.
11588         * tests/unistr/test-u32-strnlen.c: New file.
11589
11590         Tests for module 'unistr/u16-strnlen'.
11591         * modules/unistr/u16-strnlen-tests: New file.
11592         * tests/unistr/test-u16-strnlen.c: New file.
11593
11594         Tests for module 'unistr/u8-strnlen'.
11595         * modules/unistr/u8-strnlen-tests: New file.
11596         * tests/unistr/test-u8-strnlen.c: New file.
11597         * tests/unistr/test-strnlen.h: New file.
11598
11599         Tests for module 'unistr/u32-strlen'.
11600         * modules/unistr/u32-strlen-tests: New file.
11601         * tests/unistr/test-u32-strlen.c: New file.
11602
11603         Tests for module 'unistr/u16-strlen'.
11604         * modules/unistr/u16-strlen-tests: New file.
11605         * tests/unistr/test-u16-strlen.c: New file.
11606
11607         Tests for module 'unistr/u8-strlen'.
11608         * modules/unistr/u8-strlen-tests: New file.
11609         * tests/unistr/test-u8-strlen.c: New file.
11610
11611         Tests for module 'unistr/u32-prev'.
11612         * modules/unistr/u32-prev-tests: New file.
11613         * tests/unistr/test-u32-prev.c: New file.
11614
11615         Tests for module 'unistr/u16-prev'.
11616         * modules/unistr/u16-prev-tests: New file.
11617         * tests/unistr/test-u16-prev.c: New file.
11618
11619         Tests for module 'unistr/u8-prev'.
11620         * modules/unistr/u8-prev-tests: New file.
11621         * tests/unistr/test-u8-prev.c: New file.
11622
11623         Tests for module 'unistr/u32-next'.
11624         * modules/unistr/u32-next-tests: New file.
11625         * tests/unistr/test-u32-next.c: New file.
11626
11627         Tests for module 'unistr/u16-next'.
11628         * modules/unistr/u16-next-tests: New file.
11629         * tests/unistr/test-u16-next.c: New file.
11630
11631         Tests for module 'unistr/u8-next'.
11632         * modules/unistr/u8-next-tests: New file.
11633         * tests/unistr/test-u8-next.c: New file.
11634
11635         Tests for module 'unistr/u32-strmbtouc'.
11636         * modules/unistr/u32-strmbtouc-tests: New file.
11637         * tests/unistr/test-u32-strmbtouc.c: New file.
11638
11639         Tests for module 'unistr/u16-strmbtouc'.
11640         * modules/unistr/u16-strmbtouc-tests: New file.
11641         * tests/unistr/test-u16-strmbtouc.c: New file.
11642
11643         Tests for module 'unistr/u8-strmbtouc'.
11644         * modules/unistr/u8-strmbtouc-tests: New file.
11645         * tests/unistr/test-u8-strmbtouc.c: New file.
11646
11647         Tests for module 'unistr/u32-strmblen'.
11648         * modules/unistr/u32-strmblen-tests: New file.
11649         * tests/unistr/test-u32-strmblen.c: New file.
11650
11651         Tests for module 'unistr/u16-strmblen'.
11652         * modules/unistr/u16-strmblen-tests: New file.
11653         * tests/unistr/test-u16-strmblen.c: New file.
11654
11655         Tests for module 'unistr/u8-strmblen'.
11656         * modules/unistr/u8-strmblen-tests: New file.
11657         * tests/unistr/test-u8-strmblen.c: New file.
11658
11659         Tests for module 'unistr/u32-cpy-alloc'.
11660         * modules/unistr/u32-cpy-alloc-tests: New file.
11661         * tests/unistr/test-u32-cpy-alloc.c: New file.
11662
11663         Tests for module 'unistr/u16-cpy-alloc'.
11664         * modules/unistr/u16-cpy-alloc-tests: New file.
11665         * tests/unistr/test-u16-cpy-alloc.c: New file.
11666
11667         Tests for module 'unistr/u8-cpy-alloc'.
11668         * modules/unistr/u8-cpy-alloc-tests: New file.
11669         * tests/unistr/test-u8-cpy-alloc.c: New file.
11670         * tests/unistr/test-cpy-alloc.h: New file.
11671
11672         Tests for module 'unistr/u32-mbsnlen'.
11673         * modules/unistr/u32-mbsnlen-tests: New file.
11674         * tests/unistr/test-u32-mbsnlen.c: New file.
11675
11676         Tests for module 'unistr/u16-mbsnlen'.
11677         * modules/unistr/u16-mbsnlen-tests: New file.
11678         * tests/unistr/test-u16-mbsnlen.c: New file.
11679
11680         Tests for module 'unistr/u8-mbsnlen'.
11681         * modules/unistr/u8-mbsnlen-tests: New file.
11682         * tests/unistr/test-u8-mbsnlen.c: New file.
11683
11684         Tests for module 'unistr/u32-chr'.
11685         * modules/unistr/u32-chr-tests: New file.
11686         * tests/unistr/test-u32-chr.c: New file.
11687
11688         Tests for module 'unistr/u16-chr'.
11689         * modules/unistr/u16-chr-tests: New file.
11690         * tests/unistr/test-u16-chr.c: New file.
11691
11692         Tests for module 'unistr/u8-chr'.
11693         * modules/unistr/u8-chr-tests: New file.
11694         * tests/unistr/test-u8-chr.c: New file.
11695         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11696
11697         Tests for module 'unistr/u32-cmp2'.
11698         * modules/unistr/u32-cmp2-tests: New file.
11699         * tests/unistr/test-u32-cmp2.c: New file.
11700
11701         Tests for module 'unistr/u16-cmp2'.
11702         * modules/unistr/u16-cmp2-tests: New file.
11703         * tests/unistr/test-u16-cmp2.c: New file.
11704
11705         Tests for module 'unistr/u8-cmp2'.
11706         * modules/unistr/u8-cmp2-tests: New file.
11707         * tests/unistr/test-u8-cmp2.c: New file.
11708         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
11709
11710         Tests for module 'unistr/u32-cmp'.
11711         * modules/unistr/u32-cmp-tests: New file.
11712         * tests/unistr/test-u32-cmp.c: New file.
11713
11714         Tests for module 'unistr/u16-cmp'.
11715         * modules/unistr/u16-cmp-tests: New file.
11716         * tests/unistr/test-u16-cmp.c: New file.
11717
11718         Tests for module 'unistr/u8-cmp'.
11719         * modules/unistr/u8-cmp-tests: New file.
11720         * tests/unistr/test-u8-cmp.c: New file.
11721         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
11722
11723         Tests for module 'unistr/u32-set'.
11724         * modules/unistr/u32-set-tests: New file.
11725         * tests/unistr/test-u32-set.c: New file.
11726
11727         Tests for module 'unistr/u16-set'.
11728         * modules/unistr/u16-set-tests: New file.
11729         * tests/unistr/test-u16-set.c: New file.
11730
11731         Tests for module 'unistr/u8-set'.
11732         * modules/unistr/u8-set-tests: New file.
11733         * tests/unistr/test-u8-set.c: New file.
11734         * tests/unistr/test-set.h: New file.
11735
11736         Tests for module 'unistr/u32-move'.
11737         * modules/unistr/u32-move-tests: New file.
11738         * tests/unistr/test-u32-move.c: New file.
11739
11740         Tests for module 'unistr/u16-move'.
11741         * modules/unistr/u16-move-tests: New file.
11742         * tests/unistr/test-u16-move.c: New file.
11743
11744         Tests for module 'unistr/u8-move'.
11745         * modules/unistr/u8-move-tests: New file.
11746         * tests/unistr/test-u8-move.c: New file.
11747         * tests/unistr/test-move.h: New file.
11748
11749         Tests for module 'unistr/u32-cpy'.
11750         * modules/unistr/u32-cpy-tests: New file.
11751         * tests/unistr/test-u32-cpy.c: New file.
11752
11753         Tests for module 'unistr/u16-cpy'.
11754         * modules/unistr/u16-cpy-tests: New file.
11755         * tests/unistr/test-u16-cpy.c: New file.
11756
11757         Tests for module 'unistr/u8-cpy'.
11758         * modules/unistr/u8-cpy-tests: New file.
11759         * tests/unistr/test-u8-cpy.c: New file.
11760         * tests/unistr/test-cpy.h: New file.
11761
11762 2010-01-09  Bruno Haible  <bruno@clisp.org>
11763
11764         Tests for module 'unistr/u32-uctomb'.
11765         * modules/unistr/u32-uctomb-tests: New file.
11766         * tests/unistr/test-u32-uctomb.c: New file.
11767
11768         Tests for module 'unistr/u16-uctomb'.
11769         * modules/unistr/u16-uctomb-tests: New file.
11770         * tests/unistr/test-u16-uctomb.c: New file.
11771
11772         Tests for module 'unistr/u8-uctomb'.
11773         * modules/unistr/u8-uctomb-tests: New file.
11774         * tests/unistr/test-u8-uctomb.c: New file.
11775
11776         Tests for module 'unistr/u32-mbtoucr'.
11777         * modules/unistr/u32-mbtoucr-tests: New file.
11778         * tests/unistr/test-u32-mbtoucr.c: New file.
11779
11780         Tests for module 'unistr/u16-mbtoucr'.
11781         * modules/unistr/u16-mbtoucr-tests: New file.
11782         * tests/unistr/test-u16-mbtoucr.c: New file.
11783
11784         Tests for module 'unistr/u8-mbtoucr'.
11785         * modules/unistr/u8-mbtoucr-tests: New file.
11786         * tests/unistr/test-u8-mbtoucr.c: New file.
11787
11788         Tests for module 'unistr/u32-mbtouc'.
11789         * modules/unistr/u32-mbtouc-tests: New file.
11790         * tests/unistr/test-u32-mbtouc.c: New file.
11791
11792         Tests for module 'unistr/u16-mbtouc'.
11793         * modules/unistr/u16-mbtouc-tests: New file.
11794         * tests/unistr/test-u16-mbtouc.c: New file.
11795
11796         Tests for module 'unistr/u8-mbtouc'.
11797         * modules/unistr/u8-mbtouc-tests: New file.
11798         * tests/unistr/test-u8-mbtouc.c: New file.
11799
11800         Tests for module 'unistr/u32-mbtouc-unsafe'.
11801         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
11802         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
11803         * tests/unistr/test-u32-mbtouc.h: New file.
11804
11805         Tests for module 'unistr/u16-mbtouc-unsafe'.
11806         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
11807         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
11808         * tests/unistr/test-u16-mbtouc.h: New file.
11809
11810         Tests for module 'unistr/u8-mbtouc-unsafe'.
11811         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
11812         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
11813         * tests/unistr/test-u8-mbtouc.h: New file.
11814
11815         Tests for module 'unistr/u32-mblen'.
11816         * modules/unistr/u32-mblen-tests: New file.
11817         * tests/unistr/test-u32-mblen.c: New file.
11818
11819         Tests for module 'unistr/u16-mblen'.
11820         * modules/unistr/u16-mblen-tests: New file.
11821         * tests/unistr/test-u16-mblen.c: New file.
11822
11823         Tests for module 'unistr/u8-mblen'.
11824         * modules/unistr/u8-mblen-tests: New file.
11825         * tests/unistr/test-u8-mblen.c: New file.
11826
11827         Tests for module 'unistr/u32-to-u16'.
11828         * modules/unistr/u32-to-u16-tests: New file.
11829         * tests/unistr/test-u32-to-u16.c: New file.
11830
11831         Tests for module 'unistr/u32-to-u8'.
11832         * modules/unistr/u32-to-u8-tests: New file.
11833         * tests/unistr/test-u32-to-u8.c: New file.
11834
11835         Tests for module 'unistr/u16-to-u32'.
11836         * modules/unistr/u16-to-u32-tests: New file.
11837         * tests/unistr/test-u16-to-u32.c: New file.
11838
11839         Tests for module 'unistr/u16-to-u8'.
11840         * modules/unistr/u16-to-u8-tests: New file.
11841         * tests/unistr/test-u16-to-u8.c: New file.
11842
11843         Tests for module 'unistr/u8-to-u32'.
11844         * modules/unistr/u8-to-u32-tests: New file.
11845         * tests/unistr/test-u8-to-u32.c: New file.
11846
11847         Tests for module 'unistr/u8-to-u16'.
11848         * modules/unistr/u8-to-u16-tests: New file.
11849         * tests/unistr/test-u8-to-u16.c: New file.
11850
11851         Tests for module 'unistr/u32-check'.
11852         * modules/unistr/u32-check-tests: New file.
11853         * tests/unistr/test-u32-check.c: New file.
11854
11855         Tests for module 'unistr/u16-check'.
11856         * modules/unistr/u16-check-tests: New file.
11857         * tests/unistr/test-u16-check.c: New file.
11858
11859         Tests for module 'unistr/u8-check'.
11860         * modules/unistr/u8-check-tests: New file.
11861         * tests/unistr/test-u8-check.c: New file.
11862
11863         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11864         (category_equals): New function.
11865         (main): Add more tests.
11866         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11867
11868         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11869
11870 2010-01-10  Bruno Haible  <bruno@clisp.org>
11871
11872         unistr/u*-strcoll: Try harder to distinguish different strings.
11873         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11874         compare s1 and s2 to see if they are different.
11875
11876 2010-01-10  Bruno Haible  <bruno@clisp.org>
11877
11878         unistr/u*-stpncpy: Fix the return value.
11879         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11880         description of the return value consistent with stpncpy in glibc.
11881         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11882         written non-NUL unit.
11883
11884 2010-01-10  Bruno Haible  <bruno@clisp.org>
11885
11886         unistr/u*-next: Add missing dependencies.
11887         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11888         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11889         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11890
11891 2010-01-10  Bruno Haible  <bruno@clisp.org>
11892
11893         unistr/u8-mbsnlen: Fix return value for incomplete character.
11894         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11895         u8_mblen.
11896         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11897         Remove unistr/u8-mblen.
11898         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11899         u16_mblen.
11900         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11901         Remove unistr/u16-mblen.
11902
11903 2010-01-10  Bruno Haible  <bruno@clisp.org>
11904
11905         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11906         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11907         Reported by Brian Gough <bjg@gnu.org> and
11908         Chris Clayton <chris2553@googlemail.com> via
11909         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11910
11911 2010-01-09  Bruno Haible  <bruno@clisp.org>
11912
11913         unistr/u16-to-u32: Reject invalid input.
11914         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11915         u16_mbtouc.
11916         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11917         Remove unistr/u16-mbtouc.
11918
11919         unistr/u16-to-u8: Reject invalid input.
11920         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11921         u16_mbtouc.
11922         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11923         Remove unistr/u16-mbtouc.
11924
11925         unistr/u8-to-u32: Reject invalid input.
11926         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11927         u8_mbtouc.
11928         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11929         Remove unistr/u8-mbtouc.
11930
11931         unistr/u8-to-u16: Reject invalid input.
11932         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11933         u8_mbtouc.
11934         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11935         Remove unistr/u8-mbtouc.
11936
11937 2010-01-09  Bruno Haible  <bruno@clisp.org>
11938
11939         Tests for module 'getlogin'.
11940         * modules/getlogin-tests: New file.
11941         * tests/test-getlogin.c: New file.
11942
11943         New module 'getlogin'.
11944         * lib/unistd.in.h (getlogin): New declaration.
11945         * lib/getlogin.c: New file.
11946         * m4/getlogin.m4: New file.
11947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11948         HAVE_GETLOGIN.
11949         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11950         HAVE_GETLOGIN.
11951         * modules/getlogin: New file.
11952         * doc/posix-functions/getlogin.texi: Mention the new module.
11953         Reported by John W. Eaton <jwe@gnu.org>.
11954
11955 2010-01-09  Bruno Haible  <bruno@clisp.org>
11956
11957         getlogin_r: Support for native Windows.
11958         * lib/getlogin_r.c: Include <windows.h>
11959         (getlogin_r): Implement for native Windows.
11960         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11961         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11962         via John W. Eaton <jwe@gnu.org>.
11963
11964 2010-01-09  Bruno Haible  <bruno@clisp.org>
11965
11966         getlogin_r: Small fixes.
11967         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11968         succeeds.
11969         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11970         before testing whether getlogin_r is declared. No need to set
11971         HAVE_DECL_GETLOGIN_R to 1.
11972         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11973
11974 2010-01-09  Bruno Haible  <bruno@clisp.org>
11975
11976         * lib/unistd.in.h (getlogin_r): Add comment.
11977
11978 2010-01-09  Bruno Haible  <bruno@clisp.org>
11979
11980         Tests for module 'getlogin_r'.
11981         * modules/getlogin_r-tests: New file.
11982         * tests/test-getlogin_r.c: New file.
11983
11984 2010-01-09  Jim Meyering  <meyering@redhat.com>
11985
11986         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11987         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11988         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11989
11990 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11991
11992         * lib/dup2.c (rpl_dup2): Improve comment.
11993
11994 2010-01-08  Eric Blake  <ebb9@byu.net>
11995
11996         maint.mk: allow packages to add makefile @@ exceptions
11997         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11998         (sc_makefile_check): Rename...
11999         (sc_makefile_at_at_check): ...to this, and use hook.
12000
12001         dup2: work around mingw bug
12002         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
12003         Reported by Simon Josefsson.
12004
12005 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
12006
12007         glob: Fix C++ compilation.
12008         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
12009         C++.
12010
12011 2010-01-07  Bruno Haible  <bruno@clisp.org>
12012
12013         Fix indentation of wctype.in.h, broken since 2007-01-06.
12014         * lib/wctype.in.h: Fix indentation of preprocessor directives.
12015
12016 2010-01-07  Bruno Haible  <bruno@clisp.org>
12017
12018         mbslen: Avoid collision with system function.
12019         * lib/string.in.h [MirBSD]: Include <wchar.h>.
12020         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
12021         * m4/mbslen.m4: New file.
12022         * modules/mbslen (Files): Add it.
12023         (configure.ac): Invoke gl_MBSLEN.
12024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
12025         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
12026         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
12027         via Ian Beckwith <ianb@erislabs.net>.
12028
12029 2010-01-07  Bruno Haible  <bruno@clisp.org>
12030
12031         dirent: Document the last fix.
12032         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
12033
12034 2010-01-07  Bruno Haible  <bruno@clisp.org>
12035
12036         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
12037         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
12038         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
12039         va_list are defined.
12040         * doc/posix-headers/stdio.texi: Document the bug of missing types.
12041         Reported by Eric Blake.
12042
12043 2010-01-07  Bruno Haible  <bruno@clisp.org>
12044
12045         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
12046         * modules/xlist (Depends-on): Add 'list',
12047         * modules/xoset (Depends-on): Add 'oset'.
12048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12049
12050 2010-01-07  Bruno Haible  <bruno@clisp.org>
12051
12052         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
12053         * doc/posix-functions/strncasecmp.texi: Likewise.
12054
12055 2010-01-07  Bruno Haible  <bruno@clisp.org>
12056
12057         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
12058
12059 2010-01-07  John W. Eaton  <jwe@octave.org>
12060
12061         wctype: allow C++ use
12062         * lib/wctype.in.h: Add extern "C" block for C++.
12063
12064 2010-01-06  Eric Blake  <ebb9@byu.net>
12065
12066         maint.mk: detect incorrect GFDL usage
12067         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
12068
12069 2010-01-06  Jim Meyering  <meyering@redhat.com>
12070         and Eric Blake  <ebb9@byu.net>
12071
12072         maint.mk: ignore multi-line copyright in NEWS
12073         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
12074
12075 2010-01-06  Eric Blake  <ebb9@byu.net>
12076
12077         select: add missing dependency
12078         * modules/select-tests (Depends-on): Move sockets dependency...
12079         * modules/select (Depends-on): ...here.
12080         Reported by Ian Beckwith.
12081
12082         doc: regenerate INSTALL
12083         * doc/INSTALL: Reflect recent autoconf update.
12084         * doc/INSTALL.ISO: Likewise.
12085         * doc/INSTALL.UTF-8: Likewise.
12086
12087         pread: fix compilation on glibc
12088         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
12089         Reported by Ralf Wildenhues.
12090
12091         dirent: fix test failure
12092         * lib/dirent.in.h (includes): Guarantee ino_t.
12093         Reported by Ralf Wildenhues.
12094
12095 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
12096
12097         linkat, renameat: avoid bad free
12098         * lib/at-func2.c (at_func2): Fix typo.
12099         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
12100
12101 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12102
12103         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
12104         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
12105         to avoid failure of symlink test later.
12106
12107 2010-01-06  Eric Blake  <ebb9@byu.net>
12108
12109         stdio, unistd: guarantee ssize_t
12110         * lib/unistd.in.h (includes): Ensure that types required by POSIX
12111         2008 are exposed when needed.
12112         * lib/stdio.in.h (includes): Likewise.
12113         Reported by Ralf Wildenhues.
12114
12115 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
12116
12117         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
12118         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
12119         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
12120
12121 2010-01-06  Jim Meyering  <meyering@redhat.com>
12122
12123         readtokens: this module *does* require xalloc.h
12124         It uses only functions that were omitted by the old syntax-check rule.
12125         * lib/readtokens.c: Include "xalloc.h" once again.
12126         * modules/readtokens (Depends-on): Add xalloc.
12127         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
12128
12129 2010-01-05  Eric Blake  <ebb9@byu.net>
12130
12131         maint: support 'make announcement' from a VPATH build
12132         * top/maint.mk (announcement): Look for correct NEWS file.
12133
12134 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
12135
12136         utimens (fdutimens): ignore a negative FD, per contract
12137         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
12138         when we have a valid file descriptor.  Otherwise, using a brand
12139         new glibc (with just-patched futimens that now fails with EBADF)
12140         would cause this function to fail with ENOSYS.
12141         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
12142         See also http://bugzilla.redhat.com/552320.
12143
12144 2010-01-05  Eric Blake  <ebb9@byu.net>
12145
12146         strcase: document what it provides
12147         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
12148         gnulib module.
12149         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
12150         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
12151
12152 2010-01-05  Jim Meyering  <meyering@redhat.com>
12153
12154         maint: remove useless inclusions of "xalloc.h"
12155         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
12156         * lib/readtokens.c: Likewise.
12157         * lib/same.c: Likewise.
12158         * modules/getloadavg (Depends-on): Remove xalloc.
12159         * modules/readtokens: Likewise.
12160         * modules/same: Likewise.
12161
12162         maint.mk: include 4 more function names in alloca.h-checking regexp
12163         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
12164         regexp.  Before, we would give a false-positive (saying alloca.h
12165         is included unnecessarily) when the only uses involved omitted symbols.
12166
12167         xalloc.h: use consistent formatting
12168         * lib/xalloc.h: Move declarations to start in the first column.
12169
12170 2010-01-05  Eric Blake  <ebb9@byu.net>
12171
12172         mkdir: avoid xalloc
12173         * lib/mkdir.c (includes): Drop unused header.
12174         Reported by John W. Eaton.
12175
12176 2010-01-04  Jim Meyering  <meyering@redhat.com>
12177
12178         nl_langinfo: avoid configure-time syntax error
12179         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
12180         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
12181         the empty string.  Don't let that provoke a shell syntax error.
12182
12183         regcomp, regexec, fnmatch: avoid array bounds read error
12184         * lib/regcomp.c (build_equiv_class): From glibc:
12185         Use only the low 24 bits of a findidx return value as an index
12186         into the weights array.  Patch by Ulrich Drepper:
12187         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
12188         * lib/regexec.c (check_node_accept_bytes): Likewise.
12189         * lib/fnmatch_loop.c (FCT): Likewise.
12190
12191         regcomp: skip collseq lookup when there are no rules
12192         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
12193         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
12194
12195         regcomp: recognize ill-formed { } expressions
12196         * lib/regcomp.c (parse_dup_op): From glibc:
12197         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
12198
12199         regcomp: fix typo in comment
12200         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
12201         s/satisfy/satisfies/.
12202
12203         regcomp: sync from glibc: remove dead store
12204         * lib/regcomp.c (duplicate_node_closure): Remove useless
12205         search_duplicated_node call and dead store.
12206
12207         regcomp: sync from glibc; always use nl_langinfo
12208         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
12209         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
12210         * modules/regex (Depends-on): Add nl_langinfo.
12211
12212 2010-01-04  Eric Blake  <ebb9@byu.net>
12213
12214         fdopendir: fix configure test
12215         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
12216
12217 2010-01-01  Bruno Haible  <bruno@clisp.org>
12218
12219         wchar: Remove unused configure check.
12220         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
12221
12222 2010-01-01  Eric Blake  <ebb9@byu.net>
12223
12224         headers: make check of system header explicit
12225         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
12226         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
12227         ourselves.
12228         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12229         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12230         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12231         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
12232         internals.
12233         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
12234         missing.
12235         Suggested by Bruno Haible.
12236
12237 2010-01-01  Jim Meyering  <meyering@redhat.com>
12238
12239         ChangeLog: tweak to eliminate unnecessary copyright line
12240         * ChangeLog: Remove a copyright line that was mistakenly updated
12241         by today's update-copyright run.  Reported by Eric Blake.
12242
12243         test-update-copyright: don't let envvar setting cause test failure
12244         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12245
12246 2010-01-01  Bruno Haible  <bruno@clisp.org>
12247
12248         localename: Avoid gcc warning.
12249         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
12250         function if it is not used.
12251
12252 2010-01-01  Jim Meyering  <meyering@redhat.com>
12253
12254         update nearly all FSF copyright year lists to include 2010
12255         Use the same procedure as for 2009, outlined in
12256         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
12257
12258         version-etc: set COPYRIGHT_YEAR to 2010
12259         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
12260
12261 2009-12-31  Eric Blake  <ebb9@byu.net>
12262
12263         doc: correct availability of cygwin 1.5.x getopt
12264         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
12265         variables.
12266         * doc/posix-functions/opterr.texi (opterr): Likewise.
12267         * doc/posix-functions/optind.texi (optind): Likewise.
12268         * doc/posix-functions/optopt.texi (optopt): Likewise.
12269         * doc/posix-functions/tzname.texi (tzname): Likewise.
12270
12271         openat: update maintainer
12272         * modules/openat (Maintainer): Add myself.
12273
12274         utimens: avoid shadowing warning
12275         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
12276         buffers into one, to avoid shadowing, as well as avoiding a
12277         redundant stat.
12278         Reported by Jim Meyering.
12279
12280         test-dup2: avoid compiler warning
12281         * tests/test-dup2.c (is_inheritable): Only define if used.
12282
12283 2010-01-01  Bruno Haible  <bruno@clisp.org>
12284
12285         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
12286         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
12287         defined, use wctomb instead of wcrtomb.
12288
12289 2010-01-01  Bruno Haible  <bruno@clisp.org>
12290
12291         iconv: Reject native Solaris iconv.
12292         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
12293         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
12294
12295 2009-12-31  Bruno Haible  <bruno@clisp.org>
12296
12297         * tests/test-signal.c (main): Remove test of 'SIG'.
12298
12299 2009-12-31  Bruno Haible  <bruno@clisp.org>
12300
12301         spawn: Fix incomplete fix.
12302         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12303         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12304         warnings for GNULIB_POSIXCHECK again.
12305         Reported by Eric Blake.
12306
12307 2009-12-31  Bruno Haible  <bruno@clisp.org>
12308
12309         Avoid namespace pollution on glibc systems.
12310         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
12311         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
12312         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
12313         glibc systems.
12314
12315 2009-12-31  Bruno Haible  <bruno@clisp.org>
12316
12317         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
12318         (gl_REPLACE_WCHAR_H): Turn into a no-op.
12319         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
12320         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12321         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12322         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12323         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12324
12325 2009-12-31  Bruno Haible  <bruno@clisp.org>
12326
12327         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12328         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
12329         afterwards.
12330
12331 2009-12-31  Bruno Haible  <bruno@clisp.org>
12332
12333         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
12334         SYS_UTSNAME_H.
12335
12336 2009-12-31  Bruno Haible  <bruno@clisp.org>
12337
12338         spawn: Fix misapplied patch.
12339         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12340         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12341         warnings for GNULIB_POSIXCHECK.
12342
12343 2009-12-31  Bruno Haible  <bruno@clisp.org>
12344
12345         times: Update after sys_times changed.
12346         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
12347         * modules/times (Files): Add it.
12348         (configure.ac): Invoke gl_FUNC_TIMES.
12349
12350 2009-12-31  Bruno Haible  <bruno@clisp.org>
12351
12352         Use AC_C_INLINE where necessary.
12353         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
12354         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12355         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12356         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12357         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12358         * m4/mbiter.m4 (gl_MBITER): Likewise.
12359         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12360         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12361         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
12362         * modules/u64 (configure.ac): Likewise.
12363
12364 2009-12-31  Bruno Haible  <bruno@clisp.org>
12365
12366         Use AC_C_INLINE instead of module 'inline' where possible.
12367         * modules/inline (Description): Clarify purpose.
12368         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
12369         * modules/count-one-bits (Depends-on): Remove inline.
12370         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
12371         * modules/openat (Depends-on): Remove inline.
12372         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
12373         instead of depending on module 'inline'.
12374         * modules/filevercmp (Depends-on, configure.ac): Likewise.
12375         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
12376         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
12377         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
12378         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
12379         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
12380         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
12381         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
12382         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
12383         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
12384         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
12385         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
12386         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
12387         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
12388         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
12389         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
12390         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
12391         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
12392         Likewise.
12393         * modules/unictype/property-ascii-hex-digit (Depends-on,
12394         configure.ac): Likewise.
12395         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12396         configure.ac): Likewise.
12397         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12398         configure.ac): Likewise.
12399         * modules/unictype/property-bidi-block-separator (Depends-on,
12400         configure.ac): Likewise.
12401         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12402         configure.ac): Likewise.
12403         * modules/unictype/property-bidi-common-separator (Depends-on,
12404         configure.ac): Likewise.
12405         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12406         Likewise.
12407         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12408         configure.ac): Likewise.
12409         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12410         configure.ac): Likewise.
12411         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12412         configure.ac): Likewise.
12413         * modules/unictype/property-bidi-european-digit (Depends-on,
12414         configure.ac): Likewise.
12415         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12416         configure.ac): Likewise.
12417         * modules/unictype/property-bidi-left-to-right (Depends-on,
12418         configure.ac): Likewise.
12419         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12420         configure.ac): Likewise.
12421         * modules/unictype/property-bidi-other-neutral (Depends-on,
12422         configure.ac): Likewise.
12423         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12424         Likewise.
12425         * modules/unictype/property-bidi-segment-separator (Depends-on,
12426         configure.ac): Likewise.
12427         * modules/unictype/property-bidi-whitespace (Depends-on,
12428         configure.ac): Likewise.
12429         * modules/unictype/property-combining (Depends-on, configure.ac):
12430         Likewise.
12431         * modules/unictype/property-composite (Depends-on, configure.ac):
12432         Likewise.
12433         * modules/unictype/property-currency-symbol (Depends-on,
12434         configure.ac): Likewise.
12435         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12436         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12437         Likewise.
12438         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12439         configure.ac): Likewise.
12440         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12441         Likewise.
12442         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12443         Likewise.
12444         * modules/unictype/property-extender (Depends-on, configure.ac):
12445         Likewise.
12446         * modules/unictype/property-format-control (Depends-on, configure.ac):
12447         Likewise.
12448         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12449         Likewise.
12450         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12451         Likewise.
12452         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12453         Likewise.
12454         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12455         Likewise.
12456         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12457         Likewise.
12458         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12459         Likewise.
12460         * modules/unictype/property-id-start (Depends-on, configure.ac):
12461         Likewise.
12462         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12463         Likewise.
12464         * modules/unictype/property-ids-binary-operator (Depends-on,
12465         configure.ac): Likewise.
12466         * modules/unictype/property-ids-trinary-operator (Depends-on,
12467         configure.ac): Likewise.
12468         * modules/unictype/property-ignorable-control (Depends-on,
12469         configure.ac): Likewise.
12470         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12471         Likewise.
12472         * modules/unictype/property-join-control (Depends-on, configure.ac):
12473         Likewise.
12474         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12475         Likewise.
12476         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12477         Likewise.
12478         * modules/unictype/property-logical-order-exception (Depends-on,
12479         configure.ac): Likewise.
12480         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12481         Likewise.
12482         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12483         * modules/unictype/property-non-break (Depends-on, configure.ac):
12484         Likewise.
12485         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12486         Likewise.
12487         * modules/unictype/property-numeric (Depends-on, configure.ac):
12488         Likewise.
12489         * modules/unictype/property-other-alphabetic (Depends-on,
12490         configure.ac): Likewise.
12491         * modules/unictype/property-other-default-ignorable-code-point
12492         (Depends-on, configure.ac): Likewise.
12493         * modules/unictype/property-other-grapheme-extend (Depends-on,
12494         configure.ac): Likewise.
12495         * modules/unictype/property-other-id-continue (Depends-on,
12496         configure.ac): Likewise.
12497         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12498         Likewise.
12499         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12500         Likewise.
12501         * modules/unictype/property-other-math (Depends-on, configure.ac):
12502         Likewise.
12503         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12504         Likewise.
12505         * modules/unictype/property-paired-punctuation (Depends-on,
12506         configure.ac): Likewise.
12507         * modules/unictype/property-paragraph-separator (Depends-on,
12508         configure.ac): Likewise.
12509         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12510         Likewise.
12511         * modules/unictype/property-pattern-white-space (Depends-on,
12512         configure.ac): Likewise.
12513         * modules/unictype/property-private-use (Depends-on, configure.ac):
12514         Likewise.
12515         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12516         Likewise.
12517         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12518         Likewise.
12519         * modules/unictype/property-radical (Depends-on, configure.ac):
12520         Likewise.
12521         * modules/unictype/property-sentence-terminal (Depends-on,
12522         configure.ac): Likewise.
12523         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12524         Likewise.
12525         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12526         * modules/unictype/property-terminal-punctuation (Depends-on,
12527         configure.ac): Likewise.
12528         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12529         Likewise.
12530         * modules/unictype/property-unassigned-code-value (Depends-on,
12531         configure.ac): Likewise.
12532         * modules/unictype/property-unified-ideograph (Depends-on,
12533         configure.ac): Likewise.
12534         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12535         Likewise.
12536         * modules/unictype/property-variation-selector (Depends-on,
12537         configure.ac): Likewise.
12538         * modules/unictype/property-white-space (Depends-on, configure.ac):
12539         Likewise.
12540         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12541         Likewise.
12542         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12543         Likewise.
12544         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12545         Likewise.
12546         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12547         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12548         Likewise.
12549
12550 2009-12-31  Bruno Haible  <bruno@clisp.org>
12551
12552         Remove unnecessary AC_C_INLINE invocation.
12553         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12554         since 2009-08-21.
12555
12556 2009-12-31  Jim Meyering  <meyering@redhat.com>
12557
12558         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12559         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12560         With this change, we can all remove the gpg_key_ID = ... definition
12561         from our respective cfg.mk files.
12562
12563         maint.mk: create announcement template in ~/, not in /tmp
12564         * top/maint.mk (emit_upload_commands): Adjust.
12565         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12566         Remove temporary file, .ci-msg.
12567
12568 2009-12-31  Eric Blake  <ebb9@byu.net>
12569
12570         link-warning: always build headers with link warnings
12571         * modules/arpa_inet (Makefile.am): Always build replacement
12572         header.
12573         * modules/ctype (Makefile.am): Likewise.
12574         * modules/dirent (Makefile.am): Likewise.
12575         * modules/inttypes (Makefile.am): Likewise.
12576         * modules/langinfo (Makefile.am): Likewise.
12577         * modules/locale (Makefile.am): Likewise.
12578         * modules/spawn (Makefile.am): Likewise.
12579         * modules/sys_file (Makefile.am): Likewise.
12580         * modules/sys_ioctl (Makefile.am): Likewise.
12581         * modules/sys_select (Makefile.am): Likewise.
12582         * modules/sys_socket (Makefile.am): Likewise.
12583         * modules/sys_times (Makefile.am): Likewise.
12584         * modules/sys_utsname (Makefile.am): Likewise.
12585         * modules/sys_wait (Makefile.am): Likewise.
12586         * modules/wchar (Makefile.am): Likewise.
12587         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12588         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12589         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12590         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12591         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12592         Likewise.
12593         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12594         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12595         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12596         Likewise.
12597         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12598         Likewise.
12599         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12600         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12601         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12602         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12603         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12604         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12605         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12606         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12607         (gl_WCHAR_H_DEFAULTS): Likewise.
12608
12609 2009-12-31  Eric Blake  <ebb9@byu.net>
12610
12611         signal, spawn: use link warnings
12612         * lib/signal.in.h (sigset_t): Make unconditional.
12613         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12614         (sigpending, sigprocmask, sigaction): Add link warnings.
12615         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12616         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12617         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12618         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12619         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12620         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12621         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12622         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12623         (posix_spawn_file_actions_destroy)
12624         (posix_spawn_file_actions_addopen)
12625         (posix_spawn_file_actions_addclose)
12626         (posix_spawn_file_actions_adddup2): Likewise.
12627         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12628         * tests/test-signal.c (main): Enhance test.
12629
12630         spawn: improve wrapper support
12631         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12632         (gl_SPAWN_H_DEFAULTS): New defaults.
12633         * modules/spawn (Makefile.am): Substitute them.
12634         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12635         Only declare if missing or broken.
12636
12637         sys_times, sys_utsname: use include_next
12638         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12639         header.
12640         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12641         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12642         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12643         * modules/sys_times (Depends-on): Add include_next.
12644         (Makefile.am): Substitute additional values.
12645         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12646         * lib/sys_times.in.h (includes): Include native header, if
12647         available.
12648         * lib/sys_utsname.in.h (includes): Likewise.
12649         * tests/test-sys_times.c (main): Enhance test.
12650
12651         fdutimensat: revert prior patch
12652         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12653         utimens.h.
12654         Reported by Bruno Haible.
12655
12656 2009-12-30  Eric Blake  <ebb9@byu.net>
12657
12658         sys_wait: drop link-warning dependency
12659         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12660         link-warning efforts.
12661         * lib/sys_wait.in.h: Likewise.
12662
12663         fdutimensat: remove bogus dependency
12664         * modules/fdutimensat (Depends-on): Drop inline.
12665
12666         unistd: fix typo
12667         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12668
12669 2009-12-30  Bruno Haible  <bruno@clisp.org>
12670
12671         Fix compilation error with Solaris cc.
12672         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12673         * lib/unicase/u16-is-invariant.c: Likewise.
12674         * lib/unicase/u32-is-invariant.c: Likewise.
12675         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12676
12677 2009-12-30  Bruno Haible  <bruno@clisp.org>
12678
12679         Fix test crash.
12680         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
12681         locales.
12682         Reported by Simon Josefsson <simon@josefsson.org>.
12683
12684 2009-12-30  Bruno Haible  <bruno@clisp.org>
12685
12686         Fix compilation error on most platforms.
12687         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
12688         Reported by Simon Josefsson <simon@josefsson.org>
12689         and Nelson H. F. Beebe <beebe@math.utah.edu>.
12690
12691 2009-12-30  Eric Blake  <ebb9@byu.net>
12692
12693         futimens, utimensat: work around ntfs-3g bug
12694         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
12695         a ctime bug is present, and expand workaround to cover ntfs-3g.
12696         * lib/utimens.c (fdutimens, lutimens): Likewise.
12697         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
12698         (validate_timespec): Adjust return value.
12699         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
12700         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12701         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
12702
12703 2009-12-29  Eric Blake  <ebb9@byu.net>
12704
12705         link-warning: make usage consistent
12706         * modules/ctype (Depends-on): Add link-warning.
12707         (Makefile.am): Update rules accordingly.
12708         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12709         * modules/locale (Depends-on, Makefile.am): Likewise.
12710         * modules/sys_file (Makefile.am): Likewise.
12711         * modules/getopt-posix (Makefile.am): Delete unused link warning
12712         efforts.
12713         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
12714         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
12715         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
12716         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
12717
12718         stdio: remove unused variables
12719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
12720         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
12721         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12722
12723         tests: test more substitute headers
12724         * modules/ctype-tests: New file.
12725         * modules/dirent-tests: Likewise.
12726         * modules/spawn-tests: Likewise.
12727         * modules/sys_file-tests: Likewise.
12728         * modules/sys_ioctl-tests: Likewise.
12729         * modules/sys_wait-tests: Likewise.
12730         * tests/test-ctype.c: Likewise.
12731         * tests/test-dirent.c: Likewise.
12732         * tests/test-spawn.c: Likewise.
12733         * tests/test-sys_file.c: Likewise.
12734         * tests/test-sys_ioctl.c: Likewise.
12735         * tests/test-sys_wait.c: Likewise.
12736         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
12737         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
12738         whether or not flock is in use.
12739
12740         tests: remove License section from module
12741         * modules/arpa_inet-tests: Remove unneeded section.
12742         * modules/byteswap-tests: Likewise.
12743         * modules/ceilf-tests: Likewise.
12744         * modules/ceill-tests: Likewise.
12745         * modules/crypto/des-tests: Likewise.
12746         * modules/crypto/gc-arcfour-tests: Likewise.
12747         * modules/crypto/gc-arctwo-tests: Likewise.
12748         * modules/crypto/gc-des-tests: Likewise.
12749         * modules/crypto/gc-hmac-md5-tests: Likewise.
12750         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12751         * modules/crypto/gc-md2-tests: Likewise.
12752         * modules/crypto/gc-md4-tests: Likewise.
12753         * modules/crypto/gc-md5-tests: Likewise.
12754         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12755         * modules/crypto/gc-rijndael-tests: Likewise.
12756         * modules/crypto/gc-sha1-tests: Likewise.
12757         * modules/crypto/gc-tests: Likewise.
12758         * modules/crypto/md2-tests: Likewise.
12759         * modules/crypto/md4-tests: Likewise.
12760         * modules/fcntl-h-tests: Likewise.
12761         * modules/floorf-tests: Likewise.
12762         * modules/floorl-tests: Likewise.
12763         * modules/frexp-nolibm-tests: Likewise.
12764         * modules/frexp-tests: Likewise.
12765         * modules/frexpl-nolibm-tests: Likewise.
12766         * modules/frexpl-tests: Likewise.
12767         * modules/getaddrinfo-tests: Likewise.
12768         * modules/inttypes-tests: Likewise.
12769         * modules/isfinite-tests: Likewise.
12770         * modules/isinf-tests: Likewise.
12771         * modules/ldexpl-tests: Likewise.
12772         * modules/locale-tests: Likewise.
12773         * modules/math-tests: Likewise.
12774         * modules/netdb-tests: Likewise.
12775         * modules/netinet_in-tests: Likewise.
12776         * modules/printf-frexp-tests: Likewise.
12777         * modules/printf-frexpl-tests: Likewise.
12778         * modules/priv-set-tests: Likewise.
12779         * modules/random_r-tests: Likewise.
12780         * modules/round-tests: Likewise.
12781         * modules/roundf-tests: Likewise.
12782         * modules/roundl-tests: Likewise.
12783         * modules/search-tests: Likewise.
12784         * modules/select-tests: Likewise.
12785         * modules/signal-tests: Likewise.
12786         * modules/stdbool-tests: Likewise.
12787         * modules/stddef-tests: Likewise.
12788         * modules/stdint-tests: Likewise.
12789         * modules/stdio-tests: Likewise.
12790         * modules/stdlib-tests: Likewise.
12791         * modules/string-tests: Likewise.
12792         * modules/strings-tests: Likewise.
12793         * modules/sys_select-tests: Likewise.
12794         * modules/sys_socket-tests: Likewise.
12795         * modules/sys_stat-tests: Likewise.
12796         * modules/sys_time-tests: Likewise.
12797         * modules/sys_utsname-tests: Likewise.
12798         * modules/sysexits-tests: Likewise.
12799         * modules/time-tests: Likewise.
12800         * modules/trunc-tests: Likewise.
12801         * modules/truncf-tests: Likewise.
12802         * modules/truncl-tests: Likewise.
12803         * modules/tsearch-tests: Likewise.
12804         * modules/unistd-tests: Likewise.
12805         * modules/wchar-tests: Likewise.
12806         * modules/wctype-tests: Likewise.
12807
12808         tests: fix license on several tests
12809         * tests/test-des.c: Update to GPLv3+.
12810         * tests/test-flock.c: Likewise.
12811         * tests/test-fsync.c: Likewise.
12812         * tests/test-futimens.h: Likewise.
12813         * tests/test-gc-arcfour.c: Likewise.
12814         * tests/test-gc-arctwo.c: Likewise.
12815         * tests/test-gc-des.c: Likewise.
12816         * tests/test-gc-hmac-md5.c: Likewise.
12817         * tests/test-gc-hmac-sha1.c: Likewise.
12818         * tests/test-gc-md2.c: Likewise.
12819         * tests/test-gc-md4.c: Likewise.
12820         * tests/test-gc-md5.c: Likewise.
12821         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12822         * tests/test-gc-rijndael.c: Likewise.
12823         * tests/test-gc-sha1.c: Likewise.
12824         * tests/test-gc.c: Likewise.
12825         * tests/test-getcwd.c: Likewise.
12826         * tests/test-link.c: Likewise.
12827         * tests/test-link.h: Likewise.
12828         * tests/test-lutimens.h: Likewise.
12829         * tests/test-md2.c: Likewise.
12830         * tests/test-md4.c: Likewise.
12831         * tests/test-mkdir.h: Likewise.
12832         * tests/test-rename.c: Likewise.
12833         * tests/test-rename.h: Likewise.
12834         * tests/test-safe-alloc.c: Likewise.
12835         * tests/test-utimens-common.h: Likewise.
12836         * tests/test-utimens.h: Likewise.
12837
12838         maint: sync license texts
12839         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12840         * doc/gpl-3.0.texi: Revert copyright year update.
12841         * doc/lgpl-3.0.texi: Likewise.
12842
12843 2009-12-29  Jim Meyering  <meyering@redhat.com>
12844
12845         update nearly all FSF copyright year lists to include 2009
12846         The files named by the following are exempted:
12847             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12848               test -f "$dst" && { echo "$dst"; continue; }
12849               test -d "$dst" || continue
12850               echo "$dst"/$(basename "$src")
12851             done > exempt
12852             git ls-files tests/unictype >> exempt
12853         In the remaining files, convert to all-interval notation if
12854         - there is already at least one year interval like 2000-2003
12855         - the file is maintained by me
12856         - the file is in lib/uni*/, where that style already prevails
12857         Otherwise, use update-copyright's default.
12858
12859 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12860         and Eric Blake  <ebb9@byu.net>
12861
12862         tests: don't require debug system() to pass
12863         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12864         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12865         * tests/test-unlink.h (test_unlink_func): Likewise.
12866         * tests/test-fstatat.c (main): ...into callers.
12867         * tests/test-lstat.c (main): Likewise.
12868         * tests/test-rmdir.c (main): Likewise.
12869         * tests/test-unlink.c (main): Likewise.
12870         * tests/test-unlinkat.c (main): Likewise.
12871         * tests/test-areadlink-with-size.c (main): Don't require a
12872         debug-only system call to pass, aiding cross-testing to mingw.
12873         * tests/test-areadlink.c (main): Likewise.
12874         * tests/test-areadlinkat-with-size.c (main): Likewise.
12875         * tests/test-areadlinkat.c (main): Likewise.
12876         * tests/test-canonicalize-lgpl.c (main): Likewise.
12877         * tests/test-canonicalize.c (main): Likewise.
12878         * tests/test-chown.c (main): Likewise.
12879         * tests/test-fchownat.c (main): Likewise.
12880         * tests/test-lchown.c (main): Likewise.
12881         * tests/test-fdutimensat.c (main): Likewise.
12882         * tests/test-futimens.c (main): Likewise.
12883         * tests/test-link.c (main): Likewise.
12884         * tests/test-linkat.c (main): Likewise.
12885         * tests/test-mkdir.c (main): Likewise.
12886         * tests/test-mkdirat.c (main): Likewise.
12887         * tests/test-mkfifo.c (main): Likewise.
12888         * tests/test-mkfifoat.c (main): Likewise.
12889         * tests/test-mknod.c (main): Likewise.
12890         * tests/test-readlink.c (main): Likewise.
12891         * tests/test-remove.c (main): Likewise.
12892         * tests/test-rename.c (main): Likewise.
12893         * tests/test-renameat.c (main): Likewise.
12894         * tests/test-symlink.c (main): Likewise.
12895         * tests/test-symlinkat.c (main): Likewise.
12896         * tests/test-utimens.c (main): Likewise.
12897         * tests/test-utimensat.c (main): Likewise.
12898
12899 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12900
12901         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12902         on $(UNUSED_PARAMETER_H) to avoid build failure.
12903
12904 2009-12-28  Jim Meyering  <meyering@redhat.com>
12905
12906         update-copyright: you may specify a max. line length other than 72
12907         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12908
12909         maint: use consistent FSF copyright line syntax
12910         * lib/posixtm.c: Add missing comma in FSF copyright line.
12911         * lib/posixtm.h: Likewise.
12912         * lib/getugroups.c: Add missing ", Inc.".
12913
12914         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12915         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12916         FSF copyright line.  Remove trailing blanks.
12917
12918 2009-12-28  Eric Blake  <ebb9@byu.net>
12919
12920         test-dup2: reduce dependencies
12921         * modules/cloexec (Configure.ac): Set witness.
12922         * modules/dup2-tests (Depends-on): Drop cloexec.
12923         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12924         not present.
12925         Suggested by Bruno Haible.
12926
12927 2009-12-26  Bruno Haible  <bruno@clisp.org>
12928
12929         Remove an unneeded dependency.
12930         * modules/fseterr (Depends-on): Remove dup2.
12931
12932 2009-12-26  Eric Blake  <ebb9@byu.net>
12933
12934         tests: use macros.h in more places
12935         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12936         (ASSERT_STREAM): Provide default of stderr.
12937         * tests/test-dirent-safer.c: Include macros.h, using alternate
12938         stream for assertions.
12939         * tests/test-dup-safer.c: Likewise.
12940         * tests/test-freopen-safer.c: Likewise.
12941         * tests/test-getopt.c: Likewise.
12942         * tests/test-openat-safer.c: Likewise.
12943         * tests/test-pipe.c: Likewise.
12944         * tests/test-popen-safer.c: Likewise.
12945         * modules/dirent-safer-tests (Files): Include macros.h.
12946         * modules/unistd-safer-tests (Files): Likewise.
12947         * modules/freopen-safer-tests (Files): Likewise.
12948         * modules/getopt-posix-tests (Files): Likewise.
12949         * modules/openat-safer-tests (Files): Likewise.
12950         * modules/pipe-tests (Files): Likewise.
12951
12952 2009-12-26  Bruno Haible  <bruno@clisp.org>
12953
12954         javacomp: Portability fix.
12955         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12956         that it also works on Solaris.
12957
12958 2009-12-26  Bruno Haible  <bruno@clisp.org>
12959
12960         localename: Fix storage allocation of gl_locale_name_thread's result.
12961         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12962         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12963         all platforms that have 'uselocale'.
12964         (gl_locale_name_thread_unsafe): New function, extracted from
12965         gl_locale_name_thread.
12966         (gl_locale_name_thread): Call struniq on all platforms that have
12967         'uselocale'.
12968         * tests/test-localename.c (test_locale_name_thread): Check that the
12969         resulting strings are permanently allocated.
12970         * modules/localename-tests (Depends-on): Add strdup.
12971
12972 2009-12-26  Bruno Haible  <bruno@clisp.org>
12973
12974         * tests/test-localename.c (categories): Fill in the strings.
12975
12976 2009-12-26  Jim Meyering  <meyering@redhat.com>
12977
12978         isdir: complete the removal of m4/isdir.m4
12979         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12980
12981         isdir: clean up, since at least grep still uses it
12982         * lib/isdir.c: Include "isdir.h".
12983         (S_ISDIR): Remove now-unneeded definition.
12984         * modules/isdir (Files): Add lib/isdir.h.
12985         * lib/isdir.h: New file, with declaration.
12986         * m4/isdir.m4: Remove file -- unneeded.
12987
12988 2009-12-25  Bruno Haible  <bruno@clisp.org>
12989
12990         selinux-h: Make generated .h files standalone.
12991         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12992         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12993         * lib/se-selinux.in.h: Likewise.
12994         * modules/selinux-h (Depends-on): Add unused-parameter.
12995         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12996         selinux/selinux.h and selinux/context.h.
12997         Suggested by Eric Blake.
12998
12999 2009-12-25  Bruno Haible  <bruno@clisp.org>
13000
13001         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
13002         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
13003         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
13004         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
13005         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
13006
13007 2009-12-24  Bruno Haible  <bruno@clisp.org>
13008
13009         openat: Fix warning.
13010         * lib/openat-proc.c: Include <unistd.h>.
13011
13012 2009-12-24  Bruno Haible  <bruno@clisp.org>
13013
13014         New module 'unused-parameter'.
13015         * build-aux/unused-parameter.h: New file, extracted from earlier
13016         gnulib-common.m4.
13017         * modules/unused-parameter: New file.
13018         * lib/unistr.h: Include unused-parameter.h.
13019         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
13020         _GL_UNUSED.
13021         * modules/unistr/base (Depends-on): Add unused-parameter.
13022
13023 2009-12-24  Bruno Haible  <bruno@clisp.org>
13024
13025         Add missing dependencies to 'extensions' module.
13026         * m4/extensions.m4: Add comment.
13027         * modules/accept4 (Depends-on): Add extensions.
13028         * modules/dup3 (Depends-on): Likewise.
13029         * modules/fcntl (Depends-on): Likewise.
13030         * modules/futimens (Depends-on): Likewise.
13031         * modules/mknod (Depends-on): Likewise.
13032         * modules/pipe2 (Depends-on): Likewise.
13033         * modules/stat-time (Depends-on): Likewise.
13034         * modules/strcasestr-simple (Depends-on): Likewise.
13035         * modules/strsignal (Depends-on): Likewise.
13036         * modules/utimensat (Depends-on): Likewise.
13037         * modules/localcharset (Depends-on): Likewise. Needed because of
13038         gl_FCNTL_O_FLAGS.
13039         * modules/wcrtomb (Depends-on): Likewise. Needed because of
13040         AC_TYPE_MBSTATE_T.
13041         * modules/wcsnrtombs (Depends-on): Likewise.
13042         * modules/wcsrtombs (Depends-on): Likewise.
13043
13044 2009-12-24  Bruno Haible  <bruno@clisp.org>
13045
13046         binary-io: Avoid gcc warning due to SET_BINARY.
13047         * lib/binary-io.h (SET_BINARY): Cast the result to void.
13048         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
13049
13050 2009-12-24  Bruno Haible  <bruno@clisp.org>
13051
13052         Avoid future namespace pollution on glibc systems.
13053         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
13054         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
13055         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
13056         glibc systems.
13057
13058 2009-12-24  Bruno Haible  <bruno@clisp.org>
13059
13060         Refactor common macros used in tests.
13061         * tests/macros.h: New file.
13062         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
13063         and/or <stdlib.h>, if appropriate.
13064         (ASSERT, SIZEOF): Remove macros.
13065         * tests/test-areadlink-with-size.c: Likewise.
13066         * tests/test-areadlinkat.c: Likewise.
13067         * tests/test-areadlinkat-with-size.c: Likewise.
13068         * tests/test-argmatch.c: Likewise.
13069         * tests/test-argv-iter.c: Likewise.
13070         * tests/test-array-mergesort.c: Likewise.
13071         * tests/test-array_list.c: Likewise.
13072         * tests/test-array_oset.c: Likewise.
13073         * tests/test-avltree_list.c: Likewise.
13074         * tests/test-avltree_oset.c: Likewise.
13075         * tests/test-avltreehash_list.c: Likewise.
13076         * tests/test-base64.c: Likewise.
13077         * tests/test-binary-io.c: Likewise.
13078         * tests/test-bitrotate.c: Likewise.
13079         * tests/test-btowc.c: Likewise.
13080         * tests/test-byteswap.c: Likewise.
13081         * tests/test-c-ctype.c: Likewise.
13082         * tests/test-c-stack.c: Likewise.
13083         * tests/test-c-strcasecmp.c: Likewise.
13084         * tests/test-c-strcasestr.c: Likewise.
13085         * tests/test-c-strncasecmp.c: Likewise.
13086         * tests/test-c-strstr.c: Likewise.
13087         * tests/test-canonicalize-lgpl.c: Likewise.
13088         * tests/test-canonicalize.c: Likewise.
13089         * tests/test-carray_list.c: Likewise.
13090         * tests/test-ceilf1.c: Likewise.
13091         * tests/test-ceilf2.c: Likewise.
13092         * tests/test-ceill.c: Likewise.
13093         * tests/test-chown.c: Likewise.
13094         * tests/test-cloexec.c: Likewise.
13095         * tests/test-copy-acl.c: Likewise.
13096         * tests/test-copy-file.c: Likewise.
13097         * tests/test-count-one-bits.c: Likewise.
13098         * tests/test-dprintf-posix.c: Likewise.
13099         * tests/test-dup2.c: Likewise.
13100         * tests/test-dup3.c: Likewise.
13101         * tests/test-duplocale.c: Likewise.
13102         * tests/test-fbufmode.c: Likewise.
13103         * tests/test-fchdir.c: Likewise.
13104         * tests/test-fchownat.c: Likewise.
13105         * tests/test-fcntl-safer.c: Likewise.
13106         * tests/test-fcntl.c: Likewise.
13107         * tests/test-fdopendir.c: Likewise.
13108         * tests/test-fdutimensat.c: Likewise.
13109         * tests/test-fflush2.c: Likewise.
13110         * tests/test-file-has-acl.c: Likewise.
13111         * tests/test-filevercmp.c: Likewise.
13112         * tests/test-flock.c: Likewise.
13113         * tests/test-floorf1.c: Likewise.
13114         * tests/test-floorf2.c: Likewise.
13115         * tests/test-floorl.c: Likewise.
13116         * tests/test-fnmatch.c: Likewise.
13117         * tests/test-fopen.h: Likewise.
13118         * tests/test-fpending.c: Likewise.
13119         * tests/test-fprintf-posix.c: Likewise.
13120         * tests/test-fpurge.c: Likewise.
13121         * tests/test-freadable.c: Likewise.
13122         * tests/test-freadahead.c: Likewise.
13123         * tests/test-freading.c: Likewise.
13124         * tests/test-freadptr.c: Likewise.
13125         * tests/test-freadptr2.c: Likewise.
13126         * tests/test-freadseek.c: Likewise.
13127         * tests/test-freopen.c: Likewise.
13128         * tests/test-frexp.c: Likewise.
13129         * tests/test-frexpl.c: Likewise.
13130         * tests/test-fseek.c: Likewise.
13131         * tests/test-fseeko.c: Likewise.
13132         * tests/test-fstatat.c: Likewise.
13133         * tests/test-fstrcmp.c: Likewise.
13134         * tests/test-fsync.c: Likewise.
13135         * tests/test-ftell.c: Likewise.
13136         * tests/test-ftello.c: Likewise.
13137         * tests/test-func.c: Likewise.
13138         * tests/test-futimens.c: Likewise.
13139         * tests/test-fwritable.c: Likewise.
13140         * tests/test-fwriting.c: Likewise.
13141         * tests/test-getcwd.c: Likewise.
13142         * tests/test-getdate.c: Likewise.
13143         * tests/test-getdelim.c: Likewise.
13144         * tests/test-getdtablesize.c: Likewise.
13145         * tests/test-getgroups.c: Likewise.
13146         * tests/test-getline.c: Likewise.
13147         * tests/test-getndelim2.c: Likewise.
13148         * tests/test-glob.c: Likewise.
13149         * tests/test-hash.c: Likewise.
13150         * tests/test-i-ring.c: Likewise.
13151         * tests/test-iconv-utf.c: Likewise.
13152         * tests/test-iconv.c: Likewise.
13153         * tests/test-idpriv-drop.c: Likewise.
13154         * tests/test-idpriv-droptemp.c: Likewise.
13155         * tests/test-inet_ntop.c: Likewise.
13156         * tests/test-inet_pton.c: Likewise.
13157         * tests/test-isblank.c: Likewise.
13158         * tests/test-isfinite.c: Likewise.
13159         * tests/test-isinf.c: Likewise.
13160         * tests/test-isnan.c: Likewise.
13161         * tests/test-isnand.h: Likewise.
13162         * tests/test-isnanf.h: Likewise.
13163         * tests/test-isnanl.h: Likewise.
13164         * tests/test-lchown.c: Likewise.
13165         * tests/test-ldexpl.c: Likewise.
13166         * tests/test-link.c: Likewise.
13167         * tests/test-linkat.c: Likewise.
13168         * tests/test-linked_list.c: Likewise.
13169         * tests/test-linkedhash_list.c: Likewise.
13170         * tests/test-localename.c: Likewise.
13171         * tests/test-lseek.c: Likewise.
13172         * tests/test-lstat.c: Likewise.
13173         * tests/test-mbmemcasecmp.c: Likewise.
13174         * tests/test-mbmemcasecoll.c: Likewise.
13175         * tests/test-mbrtowc.c: Likewise.
13176         * tests/test-mbscasecmp.c: Likewise.
13177         * tests/test-mbscasestr1.c: Likewise.
13178         * tests/test-mbscasestr2.c: Likewise.
13179         * tests/test-mbscasestr3.c: Likewise.
13180         * tests/test-mbscasestr4.c: Likewise.
13181         * tests/test-mbschr.c: Likewise.
13182         * tests/test-mbscspn.c: Likewise.
13183         * tests/test-mbsinit.c: Likewise.
13184         * tests/test-mbsncasecmp.c: Likewise.
13185         * tests/test-mbsnrtowcs.c: Likewise.
13186         * tests/test-mbspbrk.c: Likewise.
13187         * tests/test-mbspcasecmp.c: Likewise.
13188         * tests/test-mbsrchr.c: Likewise.
13189         * tests/test-mbsrtowcs.c: Likewise.
13190         * tests/test-mbsspn.c: Likewise.
13191         * tests/test-mbsstr1.c: Likewise.
13192         * tests/test-mbsstr2.c: Likewise.
13193         * tests/test-mbsstr3.c: Likewise.
13194         * tests/test-memchr.c: Likewise.
13195         * tests/test-memchr2.c: Likewise.
13196         * tests/test-memcmp.c: Likewise.
13197         * tests/test-memmem.c: Likewise.
13198         * tests/test-memrchr.c: Likewise.
13199         * tests/test-mkdir.c: Likewise.
13200         * tests/test-mkdirat.c: Likewise.
13201         * tests/test-mkfifo.c: Likewise.
13202         * tests/test-mkfifoat.c: Likewise.
13203         * tests/test-mknod.c: Likewise.
13204         * tests/test-nanosleep.c: Likewise.
13205         * tests/test-nl_langinfo.c: Likewise.
13206         * tests/test-obstack-printf.c: Likewise.
13207         * tests/test-open.c: Likewise.
13208         * tests/test-openat.c: Likewise.
13209         * tests/test-pipe-filter-gi1.c: Likewise.
13210         * tests/test-pipe-filter-gi2-main.c: Likewise.
13211         * tests/test-pipe-filter-ii1.c: Likewise.
13212         * tests/test-pipe-filter-ii2-main.c: Likewise.
13213         * tests/test-pipe2.c: Likewise.
13214         * tests/test-popen.h: Likewise.
13215         * tests/test-posixtm.c: Likewise.
13216         * tests/test-pread.c: Likewise.
13217         * tests/test-printf-frexp.c: Likewise.
13218         * tests/test-printf-frexpl.c: Likewise.
13219         * tests/test-printf-posix.c: Likewise.
13220         * tests/test-priv-set.c: Likewise.
13221         * tests/test-quotearg.c: Likewise.
13222         * tests/test-random_r.c: Likewise.
13223         * tests/test-rawmemchr.c: Likewise.
13224         * tests/test-rbtree_list.c: Likewise.
13225         * tests/test-rbtree_oset.c: Likewise.
13226         * tests/test-rbtreehash_list.c: Likewise.
13227         * tests/test-readlink.c: Likewise.
13228         * tests/test-remove.c: Likewise.
13229         * tests/test-rename.c: Likewise.
13230         * tests/test-renameat.c: Likewise.
13231         * tests/test-rmdir.c: Likewise.
13232         * tests/test-round1.c: Likewise.
13233         * tests/test-roundf1.c: Likewise.
13234         * tests/test-roundl.c: Likewise.
13235         * tests/test-safe-alloc.c: Likewise.
13236         * tests/test-sameacls.c: Likewise.
13237         * tests/test-set-mode-acl.c: Likewise.
13238         * tests/test-setenv.c: Likewise.
13239         * tests/test-sigaction.c: Likewise.
13240         * tests/test-signbit.c: Likewise.
13241         * tests/test-sleep.c: Likewise.
13242         * tests/test-snprintf-posix.c: Likewise.
13243         * tests/test-snprintf.c: Likewise.
13244         * tests/test-sprintf-posix.c: Likewise.
13245         * tests/test-stat-time.c: Likewise.
13246         * tests/test-stat.c: Likewise.
13247         * tests/test-strcasestr.c: Likewise.
13248         * tests/test-strchrnul.c: Likewise.
13249         * tests/test-strerror.c: Likewise.
13250         * tests/test-striconv.c: Likewise.
13251         * tests/test-striconveh.c: Likewise.
13252         * tests/test-striconveha.c: Likewise.
13253         * tests/test-strsignal.c: Likewise.
13254         * tests/test-strstr.c: Likewise.
13255         * tests/test-strtod.c: Likewise.
13256         * tests/test-strverscmp.c: Likewise.
13257         * tests/test-symlink.c: Likewise.
13258         * tests/test-symlinkat.c: Likewise.
13259         * tests/test-trunc1.c: Likewise.
13260         * tests/test-trunc2.c: Likewise.
13261         * tests/test-truncf1.c: Likewise.
13262         * tests/test-truncf2.c: Likewise.
13263         * tests/test-truncl.c: Likewise.
13264         * tests/test-uname.c: Likewise.
13265         * tests/test-unlink.c: Likewise.
13266         * tests/test-unlinkat.c: Likewise.
13267         * tests/test-unsetenv.c: Likewise.
13268         * tests/test-usleep.c: Likewise.
13269         * tests/test-utimens.c: Likewise.
13270         * tests/test-utimensat.c: Likewise.
13271         * tests/test-vasnprintf-posix.c: Likewise.
13272         * tests/test-vasnprintf-posix2.c: Likewise.
13273         * tests/test-vasnprintf.c: Likewise.
13274         * tests/test-vasprintf-posix.c: Likewise.
13275         * tests/test-vasprintf.c: Likewise.
13276         * tests/test-vdprintf-posix.c: Likewise.
13277         * tests/test-vfprintf-posix.c: Likewise.
13278         * tests/test-vprintf-posix.c: Likewise.
13279         * tests/test-vsnprintf-posix.c: Likewise.
13280         * tests/test-vsnprintf.c: Likewise.
13281         * tests/test-vsprintf-posix.c: Likewise.
13282         * tests/test-wcrtomb.c: Likewise.
13283         * tests/test-wcsnrtombs.c: Likewise.
13284         * tests/test-wcsrtombs.c: Likewise.
13285         * tests/test-wctype.c: Likewise.
13286         * tests/test-wcwidth.c: Likewise.
13287         * tests/test-xfprintf-posix.c: Likewise.
13288         * tests/test-xmemdup0.c: Likewise.
13289         * tests/test-xprintf-posix.c: Likewise.
13290         * tests/test-xvasprintf.c: Likewise.
13291         * tests/unicase/test-locale-language.c: Likewise.
13292         * tests/unicase/test-mapping-part1.h: Likewise.
13293         * tests/unicase/test-predicate-part1.h: Likewise.
13294         * tests/unicase/test-u8-casecmp.c: Likewise.
13295         * tests/unicase/test-u8-casecoll.c: Likewise.
13296         * tests/unicase/test-u8-casefold.c: Likewise.
13297         * tests/unicase/test-u8-is-cased.c: Likewise.
13298         * tests/unicase/test-u8-is-casefolded.c: Likewise.
13299         * tests/unicase/test-u8-is-lowercase.c: Likewise.
13300         * tests/unicase/test-u8-is-titlecase.c: Likewise.
13301         * tests/unicase/test-u8-is-uppercase.c: Likewise.
13302         * tests/unicase/test-u8-tolower.c: Likewise.
13303         * tests/unicase/test-u8-totitle.c: Likewise.
13304         * tests/unicase/test-u8-toupper.c: Likewise.
13305         * tests/unicase/test-u16-casecmp.c: Likewise.
13306         * tests/unicase/test-u16-casecoll.c: Likewise.
13307         * tests/unicase/test-u16-casefold.c: Likewise.
13308         * tests/unicase/test-u16-is-cased.c: Likewise.
13309         * tests/unicase/test-u16-is-casefolded.c: Likewise.
13310         * tests/unicase/test-u16-is-lowercase.c: Likewise.
13311         * tests/unicase/test-u16-is-titlecase.c: Likewise.
13312         * tests/unicase/test-u16-is-uppercase.c: Likewise.
13313         * tests/unicase/test-u16-tolower.c: Likewise.
13314         * tests/unicase/test-u16-totitle.c: Likewise.
13315         * tests/unicase/test-u16-toupper.c: Likewise.
13316         * tests/unicase/test-u32-casecmp.c: Likewise.
13317         * tests/unicase/test-u32-casecoll.c: Likewise.
13318         * tests/unicase/test-u32-casefold.c: Likewise.
13319         * tests/unicase/test-u32-is-cased.c: Likewise.
13320         * tests/unicase/test-u32-is-casefolded.c: Likewise.
13321         * tests/unicase/test-u32-is-lowercase.c: Likewise.
13322         * tests/unicase/test-u32-is-titlecase.c: Likewise.
13323         * tests/unicase/test-u32-is-uppercase.c: Likewise.
13324         * tests/unicase/test-u32-tolower.c: Likewise.
13325         * tests/unicase/test-u32-totitle.c: Likewise.
13326         * tests/unicase/test-u32-toupper.c: Likewise.
13327         * tests/unicase/test-ulc-casecmp.c: Likewise.
13328         * tests/unicase/test-ulc-casecoll.c: Likewise.
13329         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13330         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13331         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13332         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13333         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13334         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13335         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13336         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13337         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13338         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13339         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13340         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13341         * tests/unictype/test-bidi_byname.c: Likewise.
13342         * tests/unictype/test-bidi_name.c: Likewise.
13343         * tests/unictype/test-bidi_of.c: Likewise.
13344         * tests/unictype/test-bidi_test.c: Likewise.
13345         * tests/unictype/test-block_list.c: Likewise.
13346         * tests/unictype/test-block_of.c: Likewise.
13347         * tests/unictype/test-block_test.c: Likewise.
13348         * tests/unictype/test-categ_and.c: Likewise.
13349         * tests/unictype/test-categ_and_not.c: Likewise.
13350         * tests/unictype/test-categ_byname.c: Likewise.
13351         * tests/unictype/test-categ_name.c: Likewise.
13352         * tests/unictype/test-categ_none.c: Likewise.
13353         * tests/unictype/test-categ_of.c: Likewise.
13354         * tests/unictype/test-categ_or.c: Likewise.
13355         * tests/unictype/test-categ_test_withtable.c: Likewise.
13356         * tests/unictype/test-combining.c: Likewise.
13357         * tests/unictype/test-decdigit.c: Likewise.
13358         * tests/unictype/test-digit.c: Likewise.
13359         * tests/unictype/test-mirror.c: Likewise.
13360         * tests/unictype/test-numeric.c: Likewise.
13361         * tests/unictype/test-pr_byname.c: Likewise.
13362         * tests/unictype/test-pr_test.c: Likewise.
13363         * tests/unictype/test-predicate-part1.h: Likewise.
13364         * tests/unictype/test-scripts.c: Likewise.
13365         * tests/unictype/test-sy_c_ident.c: Likewise.
13366         * tests/unictype/test-sy_java_ident.c: Likewise.
13367         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
13368         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
13369         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
13370         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
13371         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
13372         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
13373         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
13374         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
13375         * tests/uninorm/test-canonical-decomposition.c: Likewise.
13376         * tests/uninorm/test-compat-decomposition.c: Likewise.
13377         * tests/uninorm/test-composition.c: Likewise.
13378         * tests/uninorm/test-decomposing-form.c: Likewise.
13379         * tests/uninorm/test-decomposition.c: Likewise.
13380         * tests/uninorm/test-u8-nfc.c: Likewise.
13381         * tests/uninorm/test-u8-nfd.c: Likewise.
13382         * tests/uninorm/test-u8-nfkc.c: Likewise.
13383         * tests/uninorm/test-u8-nfkd.c: Likewise.
13384         * tests/uninorm/test-u8-normcmp.c: Likewise.
13385         * tests/uninorm/test-u8-normcoll.c: Likewise.
13386         * tests/uninorm/test-u16-nfc.c: Likewise.
13387         * tests/uninorm/test-u16-nfd.c: Likewise.
13388         * tests/uninorm/test-u16-nfkc.c: Likewise.
13389         * tests/uninorm/test-u16-nfkd.c: Likewise.
13390         * tests/uninorm/test-u16-normcmp.c: Likewise.
13391         * tests/uninorm/test-u16-normcoll.c: Likewise.
13392         * tests/uninorm/test-u32-nfc.c: Likewise.
13393         * tests/uninorm/test-u32-nfd.c: Likewise.
13394         * tests/uninorm/test-u32-nfkc.c: Likewise.
13395         * tests/uninorm/test-u32-nfkd.c: Likewise.
13396         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13397         * tests/uninorm/test-u32-normcmp.c: Likewise.
13398         * tests/uninorm/test-u32-normcoll.c: Likewise.
13399         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13400         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13401         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13402         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13403         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13404         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13405         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13406         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13407         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13408         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13409         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13410         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13411         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13412         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13413         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13414         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13415         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13416         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13417         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13418         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13419         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13420         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13421         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13422         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13423         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13424         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13425         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13426         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13427         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13428         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13429         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13430         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13431         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13432         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13433         * tests/uniwidth/test-u8-width.c: Likewise.
13434         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13435         * tests/uniwidth/test-u16-width.c: Likewise.
13436         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13437         * tests/uniwidth/test-u32-width.c: Likewise.
13438         * tests/uniwidth/test-uc_width.c: Likewise.
13439         * tests/uniwidth/test-uc_width2.c: Likewise.
13440         * modules/acl-tests (Files): Add tests/macros.h.
13441         * modules/areadlink-tests (Files): Likewise.
13442         * modules/areadlink-with-size-tests (Files): Likewise.
13443         * modules/areadlinkat-tests (Files): Likewise.
13444         * modules/areadlinkat-with-size-tests (Files): Likewise.
13445         * modules/argmatch-tests (Files): Likewise.
13446         * modules/argv-iter-tests (Files): Likewise.
13447         * modules/array-list-tests (Files): Likewise.
13448         * modules/array-mergesort-tests (Files): Likewise.
13449         * modules/array-oset-tests (Files): Likewise.
13450         * modules/avltree-list-tests (Files): Likewise.
13451         * modules/avltree-oset-tests (Files): Likewise.
13452         * modules/avltreehash-list-tests (Files): Likewise.
13453         * modules/base64-tests (Files): Likewise.
13454         * modules/binary-io-tests (Files): Likewise.
13455         * modules/bitrotate-tests (Files): Likewise.
13456         * modules/btowc-tests (Files): Likewise.
13457         * modules/byteswap-tests (Files): Likewise.
13458         * modules/c-ctype-tests (Files): Likewise.
13459         * modules/c-stack-tests (Files): Likewise.
13460         * modules/c-strcase-tests (Files): Likewise.
13461         * modules/c-strcasestr-tests (Files): Likewise.
13462         * modules/c-strstr-tests (Files): Likewise.
13463         * modules/canonicalize-lgpl-tests (Files): Likewise.
13464         * modules/canonicalize-tests (Files): Likewise.
13465         * modules/carray-list-tests (Files): Likewise.
13466         * modules/ceilf-tests (Files): Likewise.
13467         * modules/ceill-tests (Files): Likewise.
13468         * modules/chown-tests (Files): Likewise.
13469         * modules/cloexec-tests (Files): Likewise.
13470         * modules/copy-file-tests (Files): Likewise.
13471         * modules/count-one-bits-tests (Files): Likewise.
13472         * modules/dprintf-posix-tests (Files): Likewise.
13473         * modules/dup2-tests (Files): Likewise.
13474         * modules/dup3-tests (Files): Likewise.
13475         * modules/duplocale-tests (Files): Likewise.
13476         * modules/fbufmode-tests (Files): Likewise.
13477         * modules/fchdir-tests (Files): Likewise.
13478         * modules/fcntl-safer-tests (Files): Likewise.
13479         * modules/fcntl-tests (Files): Likewise.
13480         * modules/fdopendir-tests (Files): Likewise.
13481         * modules/fdutimensat-tests (Files): Likewise.
13482         * modules/fflush-tests (Files): Likewise.
13483         * modules/filevercmp-tests (Files): Likewise.
13484         * modules/flock-tests (Files): Likewise.
13485         * modules/floorf-tests (Files): Likewise.
13486         * modules/floorl-tests (Files): Likewise.
13487         * modules/fnmatch-tests (Files): Likewise.
13488         * modules/fopen-safer-tests (Files): Likewise.
13489         * modules/fopen-tests (Files): Likewise.
13490         * modules/fpending-tests (Files): Likewise.
13491         * modules/fprintf-posix-tests (Files): Likewise.
13492         * modules/fpurge-tests (Files): Likewise.
13493         * modules/freadable-tests (Files): Likewise.
13494         * modules/freadahead-tests (Files): Likewise.
13495         * modules/freading-tests (Files): Likewise.
13496         * modules/freadptr-tests (Files): Likewise.
13497         * modules/freadseek-tests (Files): Likewise.
13498         * modules/freopen-tests (Files): Likewise.
13499         * modules/frexp-nolibm-tests (Files): Likewise.
13500         * modules/frexp-tests (Files): Likewise.
13501         * modules/frexpl-nolibm-tests (Files): Likewise.
13502         * modules/frexpl-tests (Files): Likewise.
13503         * modules/fseek-tests (Files): Likewise.
13504         * modules/fseeko-tests (Files): Likewise.
13505         * modules/fstrcmp-tests (Files): Likewise.
13506         * modules/fsync-tests (Files): Likewise.
13507         * modules/ftell-tests (Files): Likewise.
13508         * modules/ftello-tests (Files): Likewise.
13509         * modules/func-tests (Files): Likewise.
13510         * modules/futimens-tests (Files): Likewise.
13511         * modules/fwritable-tests (Files): Likewise.
13512         * modules/fwriting-tests (Files): Likewise.
13513         * modules/getcwd-tests (Files): Likewise.
13514         * modules/getdate-tests (Files): Likewise.
13515         * modules/getdelim-tests (Files): Likewise.
13516         * modules/getdtablesize-tests (Files): Likewise.
13517         * modules/getgroups-tests (Files): Likewise.
13518         * modules/getline-tests (Files): Likewise.
13519         * modules/getndelim2-tests (Files): Likewise.
13520         * modules/glob-tests (Files): Likewise.
13521         * modules/hash-tests (Files): Likewise.
13522         * modules/i-ring-tests (Files): Likewise.
13523         * modules/iconv-tests (Files): Likewise.
13524         * modules/iconv_open-utf-tests (Files): Likewise.
13525         * modules/idpriv-drop-tests (Files): Likewise.
13526         * modules/idpriv-droptemp-tests (Files): Likewise.
13527         * modules/inet_ntop-tests (Files): Likewise.
13528         * modules/inet_pton-tests (Files): Likewise.
13529         * modules/isblank-tests (Files): Likewise.
13530         * modules/isfinite-tests (Files): Likewise.
13531         * modules/isinf-tests (Files): Likewise.
13532         * modules/isnan-tests (Files): Likewise.
13533         * modules/isnand-nolibm-tests (Files): Likewise.
13534         * modules/isnand-tests (Files): Likewise.
13535         * modules/isnanf-nolibm-tests (Files): Likewise.
13536         * modules/isnanf-tests (Files): Likewise.
13537         * modules/isnanl-nolibm-tests (Files): Likewise.
13538         * modules/isnanl-tests (Files): Likewise.
13539         * modules/lchown-tests (Files): Likewise.
13540         * modules/ldexpl-tests (Files): Likewise.
13541         * modules/link-tests (Files): Likewise.
13542         * modules/linkat-tests (Files): Likewise.
13543         * modules/linked-list-tests (Files): Likewise.
13544         * modules/linkedhash-list-tests (Files): Likewise.
13545         * modules/localename-tests (Files): Likewise.
13546         * modules/lseek-tests (Files): Likewise.
13547         * modules/lstat-tests (Files): Likewise.
13548         * modules/mbmemcasecmp-tests (Files): Likewise.
13549         * modules/mbmemcasecoll-tests (Files): Likewise.
13550         * modules/mbrtowc-tests (Files): Likewise.
13551         * modules/mbscasecmp-tests (Files): Likewise.
13552         * modules/mbscasestr-tests (Files): Likewise.
13553         * modules/mbschr-tests (Files): Likewise.
13554         * modules/mbscspn-tests (Files): Likewise.
13555         * modules/mbsinit-tests (Files): Likewise.
13556         * modules/mbsncasecmp-tests (Files): Likewise.
13557         * modules/mbsnrtowcs-tests (Files): Likewise.
13558         * modules/mbspbrk-tests (Files): Likewise.
13559         * modules/mbspcasecmp-tests (Files): Likewise.
13560         * modules/mbsrchr-tests (Files): Likewise.
13561         * modules/mbsrtowcs-tests (Files): Likewise.
13562         * modules/mbsspn-tests (Files): Likewise.
13563         * modules/mbsstr-tests (Files): Likewise.
13564         * modules/memchr-tests (Files): Likewise.
13565         * modules/memchr2-tests (Files): Likewise.
13566         * modules/memcmp-tests (Files): Likewise.
13567         * modules/memmem-tests (Files): Likewise.
13568         * modules/memrchr-tests (Files): Likewise.
13569         * modules/mkdir-tests (Files): Likewise.
13570         * modules/mkfifo-tests (Files): Likewise.
13571         * modules/mkfifoat-tests (Files): Likewise.
13572         * modules/mknod-tests (Files): Likewise.
13573         * modules/nanosleep-tests (Files): Likewise.
13574         * modules/nl_langinfo-tests (Files): Likewise.
13575         * modules/obstack-printf-tests (Files): Likewise.
13576         * modules/open-tests (Files): Likewise.
13577         * modules/openat-tests (Files): Likewise.
13578         * modules/pipe-filter-gi-tests (Files): Likewise.
13579         * modules/pipe-filter-ii-tests (Files): Likewise.
13580         * modules/pipe2-tests (Files): Likewise.
13581         * modules/popen-safer-tests (Files): Likewise.
13582         * modules/popen-tests (Files): Likewise.
13583         * modules/posixtm-tests (Files): Likewise.
13584         * modules/pread-tests (Files): Likewise.
13585         * modules/printf-frexp-tests (Files): Likewise.
13586         * modules/printf-frexpl-tests (Files): Likewise.
13587         * modules/printf-posix-tests (Files): Likewise.
13588         * modules/priv-set-tests (Files): Likewise.
13589         * modules/quotearg-tests (Files): Likewise.
13590         * modules/random_r-tests (Files): Likewise.
13591         * modules/rawmemchr-tests (Files): Likewise.
13592         * modules/rbtree-list-tests (Files): Likewise.
13593         * modules/rbtree-oset-tests (Files): Likewise.
13594         * modules/rbtreehash-list-tests (Files): Likewise.
13595         * modules/readlink-tests (Files): Likewise.
13596         * modules/remove-tests (Files): Likewise.
13597         * modules/rename-tests (Files): Likewise.
13598         * modules/renameat-tests (Files): Likewise.
13599         * modules/rmdir-tests (Files): Likewise.
13600         * modules/round-tests (Files): Likewise.
13601         * modules/roundf-tests (Files): Likewise.
13602         * modules/roundl-tests (Files): Likewise.
13603         * modules/safe-alloc-tests (Files): Likewise.
13604         * modules/setenv-tests (Files): Likewise.
13605         * modules/sigaction-tests (Files): Likewise.
13606         * modules/signbit-tests (Files): Likewise.
13607         * modules/sleep-tests (Files): Likewise.
13608         * modules/snprintf-posix-tests (Files): Likewise.
13609         * modules/snprintf-tests (Files): Likewise.
13610         * modules/sprintf-posix-tests (Files): Likewise.
13611         * modules/stat-tests (Files): Likewise.
13612         * modules/stat-time-tests (Files): Likewise.
13613         * modules/strcasestr-tests (Files): Likewise.
13614         * modules/strchrnul-tests (Files): Likewise.
13615         * modules/strerror-tests (Files): Likewise.
13616         * modules/striconv-tests (Files): Likewise.
13617         * modules/striconveh-tests (Files): Likewise.
13618         * modules/striconveha-tests (Files): Likewise.
13619         * modules/strsignal-tests (Files): Likewise.
13620         * modules/strstr-tests (Files): Likewise.
13621         * modules/strtod-tests (Files): Likewise.
13622         * modules/strverscmp-tests (Files): Likewise.
13623         * modules/symlink-tests (Files): Likewise.
13624         * modules/symlinkat-tests (Files): Likewise.
13625         * modules/trunc-tests (Files): Likewise.
13626         * modules/truncf-tests (Files): Likewise.
13627         * modules/truncl-tests (Files): Likewise.
13628         * modules/uname-tests (Files): Likewise.
13629         * modules/unicase/cased-tests (Files): Likewise.
13630         * modules/unicase/ignorable-tests (Files): Likewise.
13631         * modules/unicase/locale-language-tests (Files): Likewise.
13632         * modules/unicase/tolower-tests (Files): Likewise.
13633         * modules/unicase/totitle-tests (Files): Likewise.
13634         * modules/unicase/toupper-tests (Files): Likewise.
13635         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13636         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13637         * modules/unicase/u8-casefold-tests (Files): Likewise.
13638         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13639         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13640         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13641         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13642         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13643         * modules/unicase/u8-tolower-tests (Files): Likewise.
13644         * modules/unicase/u8-totitle-tests (Files): Likewise.
13645         * modules/unicase/u8-toupper-tests (Files): Likewise.
13646         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13647         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13648         * modules/unicase/u16-casefold-tests (Files): Likewise.
13649         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13650         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13651         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13652         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13653         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13654         * modules/unicase/u16-tolower-tests (Files): Likewise.
13655         * modules/unicase/u16-totitle-tests (Files): Likewise.
13656         * modules/unicase/u16-toupper-tests (Files): Likewise.
13657         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13658         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13659         * modules/unicase/u32-casefold-tests (Files): Likewise.
13660         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13661         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13662         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13663         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13664         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13665         * modules/unicase/u32-tolower-tests (Files): Likewise.
13666         * modules/unicase/u32-totitle-tests (Files): Likewise.
13667         * modules/unicase/u32-toupper-tests (Files): Likewise.
13668         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13669         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13670         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13671         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13672         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13673         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
13674         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
13675         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
13676         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
13677         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
13678         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
13679         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
13680         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
13681         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
13682         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
13683         * modules/unictype/bidicategory-name-tests (Files): Likewise.
13684         * modules/unictype/bidicategory-of-tests (Files): Likewise.
13685         * modules/unictype/bidicategory-test-tests (Files): Likewise.
13686         * modules/unictype/block-list-tests (Files): Likewise.
13687         * modules/unictype/block-of-tests (Files): Likewise.
13688         * modules/unictype/block-test-tests (Files): Likewise.
13689         * modules/unictype/category-C-tests (Files): Likewise.
13690         * modules/unictype/category-Cc-tests (Files): Likewise.
13691         * modules/unictype/category-Cf-tests (Files): Likewise.
13692         * modules/unictype/category-Cn-tests (Files): Likewise.
13693         * modules/unictype/category-Co-tests (Files): Likewise.
13694         * modules/unictype/category-Cs-tests (Files): Likewise.
13695         * modules/unictype/category-L-tests (Files): Likewise.
13696         * modules/unictype/category-Ll-tests (Files): Likewise.
13697         * modules/unictype/category-Lm-tests (Files): Likewise.
13698         * modules/unictype/category-Lo-tests (Files): Likewise.
13699         * modules/unictype/category-Lt-tests (Files): Likewise.
13700         * modules/unictype/category-Lu-tests (Files): Likewise.
13701         * modules/unictype/category-M-tests (Files): Likewise.
13702         * modules/unictype/category-Mc-tests (Files): Likewise.
13703         * modules/unictype/category-Me-tests (Files): Likewise.
13704         * modules/unictype/category-Mn-tests (Files): Likewise.
13705         * modules/unictype/category-N-tests (Files): Likewise.
13706         * modules/unictype/category-Nd-tests (Files): Likewise.
13707         * modules/unictype/category-Nl-tests (Files): Likewise.
13708         * modules/unictype/category-No-tests (Files): Likewise.
13709         * modules/unictype/category-P-tests (Files): Likewise.
13710         * modules/unictype/category-Pc-tests (Files): Likewise.
13711         * modules/unictype/category-Pd-tests (Files): Likewise.
13712         * modules/unictype/category-Pe-tests (Files): Likewise.
13713         * modules/unictype/category-Pf-tests (Files): Likewise.
13714         * modules/unictype/category-Pi-tests (Files): Likewise.
13715         * modules/unictype/category-Po-tests (Files): Likewise.
13716         * modules/unictype/category-Ps-tests (Files): Likewise.
13717         * modules/unictype/category-S-tests (Files): Likewise.
13718         * modules/unictype/category-Sc-tests (Files): Likewise.
13719         * modules/unictype/category-Sk-tests (Files): Likewise.
13720         * modules/unictype/category-Sm-tests (Files): Likewise.
13721         * modules/unictype/category-So-tests (Files): Likewise.
13722         * modules/unictype/category-Z-tests (Files): Likewise.
13723         * modules/unictype/category-Zl-tests (Files): Likewise.
13724         * modules/unictype/category-Zp-tests (Files): Likewise.
13725         * modules/unictype/category-Zs-tests (Files): Likewise.
13726         * modules/unictype/category-and-not-tests (Files): Likewise.
13727         * modules/unictype/category-and-tests (Files): Likewise.
13728         * modules/unictype/category-byname-tests (Files): Likewise.
13729         * modules/unictype/category-name-tests (Files): Likewise.
13730         * modules/unictype/category-none-tests (Files): Likewise.
13731         * modules/unictype/category-of-tests (Files): Likewise.
13732         * modules/unictype/category-or-tests (Files): Likewise.
13733         * modules/unictype/category-test-withtable-tests (Files): Likewise.
13734         * modules/unictype/combining-class-tests (Files): Likewise.
13735         * modules/unictype/ctype-alnum-tests (Files): Likewise.
13736         * modules/unictype/ctype-alpha-tests (Files): Likewise.
13737         * modules/unictype/ctype-blank-tests (Files): Likewise.
13738         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
13739         * modules/unictype/ctype-digit-tests (Files): Likewise.
13740         * modules/unictype/ctype-graph-tests (Files): Likewise.
13741         * modules/unictype/ctype-lower-tests (Files): Likewise.
13742         * modules/unictype/ctype-print-tests (Files): Likewise.
13743         * modules/unictype/ctype-punct-tests (Files): Likewise.
13744         * modules/unictype/ctype-space-tests (Files): Likewise.
13745         * modules/unictype/ctype-upper-tests (Files): Likewise.
13746         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
13747         * modules/unictype/decimal-digit-tests (Files): Likewise.
13748         * modules/unictype/digit-tests (Files): Likewise.
13749         * modules/unictype/mirror-tests (Files): Likewise.
13750         * modules/unictype/numeric-tests (Files): Likewise.
13751         * modules/unictype/property-alphabetic-tests (Files): Likewise.
13752         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
13753         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
13754         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
13755         Likewise.
13756         * modules/unictype/property-bidi-block-separator-tests (Files):
13757         Likewise.
13758         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
13759         Likewise.
13760         * modules/unictype/property-bidi-common-separator-tests (Files):
13761         Likewise.
13762         * modules/unictype/property-bidi-control-tests (Files): Likewise.
13763         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
13764         Likewise.
13765         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
13766         Likewise.
13767         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
13768         Likewise.
13769         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
13770         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
13771         Likewise.
13772         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
13773         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
13774         Likewise.
13775         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
13776         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
13777         * modules/unictype/property-bidi-segment-separator-tests (Files):
13778         Likewise.
13779         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
13780         * modules/unictype/property-byname-tests (Files): Likewise.
13781         * modules/unictype/property-combining-tests (Files): Likewise.
13782         * modules/unictype/property-composite-tests (Files): Likewise.
13783         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
13784         * modules/unictype/property-dash-tests (Files): Likewise.
13785         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
13786         * modules/unictype/property-default-ignorable-code-point-tests (Files):
13787         Likewise.
13788         * modules/unictype/property-deprecated-tests (Files): Likewise.
13789         * modules/unictype/property-diacritic-tests (Files): Likewise.
13790         * modules/unictype/property-extender-tests (Files): Likewise.
13791         * modules/unictype/property-format-control-tests (Files): Likewise.
13792         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
13793         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
13794         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
13795         * modules/unictype/property-hex-digit-tests (Files): Likewise.
13796         * modules/unictype/property-hyphen-tests (Files): Likewise.
13797         * modules/unictype/property-id-continue-tests (Files): Likewise.
13798         * modules/unictype/property-id-start-tests (Files): Likewise.
13799         * modules/unictype/property-ideographic-tests (Files): Likewise.
13800         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
13801         * modules/unictype/property-ids-trinary-operator-tests (Files):
13802         Likewise.
13803         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
13804         * modules/unictype/property-iso-control-tests (Files): Likewise.
13805         * modules/unictype/property-join-control-tests (Files): Likewise.
13806         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
13807         * modules/unictype/property-line-separator-tests (Files): Likewise.
13808         * modules/unictype/property-logical-order-exception-tests (Files):
13809         Likewise.
13810         * modules/unictype/property-lowercase-tests (Files): Likewise.
13811         * modules/unictype/property-math-tests (Files): Likewise.
13812         * modules/unictype/property-non-break-tests (Files): Likewise.
13813         * modules/unictype/property-not-a-character-tests (Files): Likewise.
13814         * modules/unictype/property-numeric-tests (Files): Likewise.
13815         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
13816         * modules/unictype/property-other-default-ignorable-code-point-tests
13817         (Files): Likewise.
13818         * modules/unictype/property-other-grapheme-extend-tests (Files):
13819         Likewise.
13820         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
13821         * modules/unictype/property-other-id-start-tests (Files): Likewise.
13822         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
13823         * modules/unictype/property-other-math-tests (Files): Likewise.
13824         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
13825         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
13826         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
13827         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
13828         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
13829         * modules/unictype/property-private-use-tests (Files): Likewise.
13830         * modules/unictype/property-punctuation-tests (Files): Likewise.
13831         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
13832         * modules/unictype/property-radical-tests (Files): Likewise.
13833         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
13834         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
13835         * modules/unictype/property-space-tests (Files): Likewise.
13836         * modules/unictype/property-terminal-punctuation-tests (Files):
13837         Likewise.
13838         * modules/unictype/property-test-tests (Files): Likewise.
13839         * modules/unictype/property-titlecase-tests (Files): Likewise.
13840         * modules/unictype/property-unassigned-code-value-tests (Files):
13841         Likewise.
13842         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13843         * modules/unictype/property-uppercase-tests (Files): Likewise.
13844         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13845         * modules/unictype/property-white-space-tests (Files): Likewise.
13846         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13847         * modules/unictype/property-xid-start-tests (Files): Likewise.
13848         * modules/unictype/property-zero-width-tests (Files): Likewise.
13849         * modules/unictype/scripts-tests (Files): Likewise.
13850         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13851         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13852         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13853         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13854         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13855         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13856         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13857         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13858         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13859         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13860         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13861         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13862         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13863         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13864         * modules/uninorm/composition-tests (Files): Likewise.
13865         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13866         * modules/uninorm/decomposition-tests (Files): Likewise.
13867         * modules/uninorm/filter-tests (Files): Likewise.
13868         * modules/uninorm/nfc-tests (Files): Likewise.
13869         * modules/uninorm/nfd-tests (Files): Likewise.
13870         * modules/uninorm/nfkc-tests (Files): Likewise.
13871         * modules/uninorm/nfkd-tests (Files): Likewise.
13872         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13873         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13874         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13875         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13876         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13877         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13878         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13879         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13880         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13881         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13882         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13883         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13884         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13885         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13886         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13887         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13888         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13889         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13890         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13891         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13892         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13893         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13894         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13895         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13896         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13897         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13898         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13899         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13900         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13901         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13902         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13903         * modules/uniwidth/u8-width-tests (Files): Likewise.
13904         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13905         * modules/uniwidth/u16-width-tests (Files): Likewise.
13906         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13907         * modules/uniwidth/u32-width-tests (Files): Likewise.
13908         * modules/uniwidth/width-tests (Files): Likewise.
13909         * modules/unlink-tests (Files): Likewise.
13910         * modules/unsetenv-tests (Files): Likewise.
13911         * modules/usleep-tests (Files): Likewise.
13912         * modules/utimens-tests (Files): Likewise.
13913         * modules/utimensat-tests (Files): Likewise.
13914         * modules/vasnprintf-posix-tests (Files): Likewise.
13915         * modules/vasnprintf-tests (Files): Likewise.
13916         * modules/vasprintf-posix-tests (Files): Likewise.
13917         * modules/vasprintf-tests (Files): Likewise.
13918         * modules/vdprintf-posix-tests (Files): Likewise.
13919         * modules/vfprintf-posix-tests (Files): Likewise.
13920         * modules/vprintf-posix-tests (Files): Likewise.
13921         * modules/vsnprintf-posix-tests (Files): Likewise.
13922         * modules/vsnprintf-tests (Files): Likewise.
13923         * modules/vsprintf-posix-tests (Files): Likewise.
13924         * modules/wcrtomb-tests (Files): Likewise.
13925         * modules/wcsnrtombs-tests (Files): Likewise.
13926         * modules/wcsrtombs-tests (Files): Likewise.
13927         * modules/wctype-tests (Files): Likewise.
13928         * modules/wcwidth-tests (Files): Likewise.
13929         * modules/xmemdup0-tests (Files): Likewise.
13930         * modules/xprintf-posix-tests (Files): Likewise.
13931         * modules/xvasprintf-tests (Files): Likewise.
13932
13933 2009-12-24  Eric Blake  <ebb9@byu.net>
13934
13935         test-nanosleep: fix typo
13936         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13937         patch.
13938         Reported by Bruno Haible.
13939
13940 2009-12-24  Bruno Haible  <bruno@clisp.org>
13941
13942         Reduce namespace pollution on glibc systems.
13943         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13944         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13945         systems.
13946         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13947         <getopt.h> on glibc systems.
13948         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13949         systems.
13950         * lib/fcntl.c: Include <unistd.h> here instead.
13951
13952 2009-12-24  Bruno Haible  <bruno@clisp.org>
13953
13954         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13955
13956 2009-12-24  Eric Blake  <ebb9@byu.net>
13957
13958         tests: add signature checks
13959         * tests/signature.h (SIGNATURE_CHECK): New file.
13960         * modules/atexit-tests (Files): Use it.
13961         * modules/btowc-tests (Files): Likewise.
13962         * modules/canonicalize-lgpl-tests (Files): Likewise.
13963         * modules/ceilf-tests (Files): Likewise.
13964         * modules/ceill-tests (Files): Likewise.
13965         * modules/chown-tests (Files): Likewise.
13966         * modules/dprintf-posix-tests (Files): Likewise.
13967         * modules/dup2-tests (Files): Likewise.
13968         * modules/dup3-tests (Files): Likewise.
13969         * modules/duplocale-tests (Files): Likewise.
13970         * modules/fchdir-tests (Files): Likewise.
13971         * modules/fcntl-tests (Files): Likewise.
13972         * modules/fdopendir-tests (Files): Likewise.
13973         * modules/fflush-tests (Files): Likewise.
13974         * modules/flock-tests (Files): Likewise.
13975         * modules/floorf-tests (Files): Likewise.
13976         * modules/floorl-tests (Files): Likewise.
13977         * modules/fnmatch-tests (Files): Likewise.
13978         * modules/fopen-tests (Files): Likewise.
13979         * modules/fprintf-posix-tests (Files): Likewise.
13980         * modules/freopen-tests (Files): Likewise.
13981         * modules/frexp-nolibm-tests (Files): Likewise.
13982         * modules/frexp-tests (Files): Likewise.
13983         * modules/frexpl-nolibm-tests (Files): Likewise.
13984         * modules/frexpl-tests (Files): Likewise.
13985         * modules/fseek-tests (Files): Likewise.
13986         * modules/fseeko-tests (Files): Likewise.
13987         * modules/fsync-tests (Files): Likewise.
13988         * modules/ftell-tests (Files): Likewise.
13989         * modules/ftello-tests (Files): Likewise.
13990         * modules/futimens-tests (Files): Likewise.
13991         * modules/getaddrinfo-tests (Files): Likewise.
13992         * modules/getcwd-tests (Files): Likewise.
13993         * modules/getdelim-tests (Files): Likewise.
13994         * modules/getdtablesize-tests (Files): Likewise.
13995         * modules/getgroups-tests (Files): Likewise.
13996         * modules/gethostname-tests (Files): Likewise.
13997         * modules/getline-tests (Files): Likewise.
13998         * modules/getopt-posix-tests (Files): Likewise.
13999         * modules/gettimeofday-tests (Files): Likewise.
14000         * modules/glob-tests (Files): Likewise.
14001         * modules/iconv-tests (Files): Likewise.
14002         * modules/inet_ntop-tests (Files): Likewise.
14003         * modules/inet_pton-tests (Files): Likewise.
14004         * modules/isblank-tests (Files): Likewise.
14005         * modules/lchown-tests (Files): Likewise.
14006         * modules/ldexpl-tests (Files): Likewise.
14007         * modules/link-tests (Files): Likewise.
14008         * modules/linkat-tests (Files): Likewise.
14009         * modules/lseek-tests (Files): Likewise.
14010         * modules/lstat-tests (Files): Likewise.
14011         * modules/mbrtowc-tests (Files): Likewise.
14012         * modules/mbsinit-tests (Files): Likewise.
14013         * modules/mbsnrtowcs-tests (Files): Likewise.
14014         * modules/mbsrtowcs-tests (Files): Likewise.
14015         * modules/memchr-tests (Files): Likewise.
14016         * modules/memcmp-tests (Files): Likewise.
14017         * modules/memmem-tests (Files): Likewise.
14018         * modules/memrchr-tests (Files): Likewise.
14019         * modules/mkdir-tests (Files): Likewise.
14020         * modules/mkfifo-tests (Files): Likewise.
14021         * modules/mkfifoat-tests (Files): Likewise.
14022         * modules/mknod-tests (Files): Likewise.
14023         * modules/nanosleep-tests (Files): Likewise.
14024         * modules/nl_langinfo-tests (Files): Likewise.
14025         * modules/obstack-printf-tests (Files): Likewise.
14026         * modules/open-tests (Files): Likewise.
14027         * modules/openat-tests (Files): Likewise.
14028         * modules/perror-tests (Files): Likewise.
14029         * modules/pipe2-tests (Files): Likewise.
14030         * modules/poll-tests (Files): Likewise.
14031         * modules/popen-tests (Files): Likewise.
14032         * modules/posix_spawn-tests (Files): Likewise.
14033         * modules/posix_spawnp-tests (Files): Likewise.
14034         * modules/pread-tests (Files): Likewise.
14035         * modules/printf-posix-tests (Files): Likewise.
14036         * modules/pty-tests (Files): Likewise.
14037         * modules/random_r-tests (Files): Likewise.
14038         * modules/rawmemchr-tests (Files): Likewise.
14039         * modules/readlink-tests (Files): Likewise.
14040         * modules/remove-tests (Files): Likewise.
14041         * modules/rename-tests (Files): Likewise.
14042         * modules/renameat-tests (Files): Likewise.
14043         * modules/rmdir-tests (Files): Likewise.
14044         * modules/round-tests (Files): Likewise.
14045         * modules/roundf-tests (Files): Likewise.
14046         * modules/roundl-tests (Files): Likewise.
14047         * modules/select-tests (Files): Likewise.
14048         * modules/setenv-tests (Files): Likewise.
14049         * modules/sigaction-tests (Files): Likewise.
14050         * modules/sleep-tests (Files): Likewise.
14051         * modules/snprintf-posix-tests (Files): Likewise.
14052         * modules/snprintf-tests (Files): Likewise.
14053         * modules/sprintf-posix-tests (Files): Likewise.
14054         * modules/stat-tests (Files): Likewise.
14055         * modules/strcasestr-tests (Files): Likewise.
14056         * modules/strchrnul-tests (Files): Likewise.
14057         * modules/strerror-tests (Files): Likewise.
14058         * modules/strsignal-tests (Files): Likewise.
14059         * modules/strstr-tests (Files): Likewise.
14060         * modules/strtod-tests (Files): Likewise.
14061         * modules/strverscmp-tests (Files): Likewise.
14062         * modules/symlink-tests (Files): Likewise.
14063         * modules/symlinkat-tests (Files): Likewise.
14064         * modules/times-tests (Files): Likewise.
14065         * modules/trunc-tests (Files): Likewise.
14066         * modules/truncf-tests (Files): Likewise.
14067         * modules/truncl-tests (Files): Likewise.
14068         * modules/tsearch-tests (Files): Likewise.
14069         * modules/uname-tests (Files): Likewise.
14070         * modules/unlink-tests (Files): Likewise.
14071         * modules/unsetenv-tests (Files): Likewise.
14072         * modules/usleep-tests (Files): Likewise.
14073         * modules/utimensat-tests (Files): Likewise.
14074         * modules/vasprintf-tests (Files): Likewise.
14075         * modules/vdprintf-posix-tests (Files): Likewise.
14076         * modules/vfprintf-posix-tests (Files): Likewise.
14077         * modules/vprintf-posix-tests (Files): Likewise.
14078         * modules/vsnprintf-posix-tests (Files): Likewise.
14079         * modules/vsnprintf-tests (Files): Likewise.
14080         * modules/vsprintf-posix-tests (Files): Likewise.
14081         * modules/wcrtomb-tests (Files): Likewise.
14082         * modules/wcsnrtombs-tests (Files): Likewise.
14083         * modules/wcsrtombs-tests (Files): Likewise.
14084         * modules/wcwidth-tests (Files): Likewise.
14085         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
14086         * tests/test-isinf.c (isinf): Likewise.
14087         * tests/test-isnan.c (isnan): Likewise.
14088         * tests/test-signbit.c (signbit): Likewise.
14089         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
14090         declaration, either as macro or with correct signature.
14091         (select): Ensure function under test is declared with correct
14092         signature in correct header.
14093         * tests/test-atexit.c (atexit): Likewise.
14094         * tests/test-btowc.c (btowc): Likewise.
14095         * tests/test-canonicalize-lgpl.c (realpath)
14096         (canonicalize_file_name): Likewise.
14097         * tests/test-ceilf1.c (ceilf): Likewise.
14098         * tests/test-ceill.c (ceill): Likewise.
14099         * tests/test-chown.c (chown): Likewise.
14100         * tests/test-dprintf-posix.c (dprintf): Likewise.
14101         * tests/test-dup2.c (dup2): Likewise.
14102         * tests/test-dup3.c (dup3): Likewise.
14103         * tests/test-duplocale.c (duplocale): Likewise.
14104         * tests/test-fchdir.c (fchdir): Likewise.
14105         * tests/test-fchownat.c (fchownat): Likewise.
14106         * tests/test-fcntl.c (fcntl): Likewise.
14107         * tests/test-fdopendir.c (fdopendir): Likewise.
14108         * tests/test-fflush.c (fflush): Likewise.
14109         * tests/test-flock.c (flock): Likewise.
14110         * tests/test-floorf1.c (floorf): Likewise.
14111         * tests/test-floorl.c (floorl): Likewise.
14112         * tests/test-fnmatch.c (fnmatch): Likewise.
14113         * tests/test-fopen.c (fopen): Likewise.
14114         * tests/test-fprintf-posix.c (fprintf): Likewise.
14115         * tests/test-freopen.c (freopen): Likewise.
14116         * tests/test-frexp.c (frexp): Likewise.
14117         * tests/test-frexpl.c (frexpl): Likewise.
14118         * tests/test-fseek.c (fseek): Likewise.
14119         * tests/test-fseeko.c (fseeko): Likewise.
14120         * tests/test-fstatat.c (fstatat): Likewise.
14121         * tests/test-fsync.c (fsync): Likewise.
14122         * tests/test-ftell.c (ftell): Likewise.
14123         * tests/test-ftello.c (ftello): Likewise.
14124         * tests/test-futimens.c (futimens): Likewise.
14125         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
14126         (gai_strerror): Likewise.
14127         * tests/test-getcwd.c (getcwd): Likewise.
14128         * tests/test-getdelim.c (getdelim): Likewise.
14129         * tests/test-getdtablesize.c (getdtablesize): Likewise.
14130         * tests/test-getgroups.c (getgroups): Likewise.
14131         * tests/test-gethostname.c (gethostname): Likewise.
14132         * tests/test-getline.c (getline): Likewise.
14133         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
14134         Likewise.
14135         * tests/test-gettimeofday.c (gettimeofday): Likewise.
14136         * tests/test-glob.c (glob, globfree): Likewise.
14137         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
14138         * tests/test-inet_ntop.c (inet_ntop): Likewise.
14139         * tests/test-inet_pton.c (inet_pton): Likewise.
14140         * tests/test-isblank.c (isblank): Likewise.
14141         * tests/test-lchown.c (lchown): Likewise.
14142         * tests/test-ldexpl.c (ldexpl): Likewise.
14143         * tests/test-link.c (link): Likewise.
14144         * tests/test-linkat.c (linkat): Likewise.
14145         * tests/test-lseek.c (lseek): Likewise.
14146         * tests/test-lstat.c (lstat): Likewise.
14147         * tests/test-mbrtowc.c (mbrtowc): Likewise.
14148         * tests/test-mbsinit.c (mbsinit): Likewise.
14149         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
14150         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
14151         * tests/test-memchr.c (memchr): Likewise.
14152         * tests/test-memcmp.c (memcmp): Likewise.
14153         * tests/test-memmem.c (memmem): Likewise.
14154         * tests/test-memrchr.c (memrchr): Likewise.
14155         * tests/test-mkdir.c (mkdir): Likewise.
14156         * tests/test-mkdirat.c (mkdirat): Likewise.
14157         * tests/test-mkfifo.c (mkfifo): Likewise.
14158         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
14159         * tests/test-mknod.c (mknod): Likewise.
14160         * tests/test-nanosleep.c (nanosleep): Likewise.
14161         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
14162         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
14163         Likewise.
14164         * tests/test-open.c (open): Likewise.
14165         * tests/test-openat.c (openat): Likewise.
14166         * tests/test-perror.c (perror): Likewise.
14167         * tests/test-pipe2.c (pipe2): Likewise.
14168         * tests/test-poll.c (poll): Likewise.
14169         * tests/test-popen.c (popen, pclose): Likewise.
14170         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
14171         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
14172         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
14173         (posix_spawn_file_actions_destroy)
14174         (posix_spawn_file_actions_addclose)
14175         (posix_spawn_file_actions_addopen)
14176         (posix_spawn_file_actions_adddup2): Likewise.
14177         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
14178         * tests/test-pread.c (pread): Likewise.
14179         * tests/test-printf-posix.c (printf): Likewise.
14180         * tests/test-pty.c (openpty, forkpty): Likewise.
14181         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
14182         (random_r): Likewise.
14183         * tests/test-rawmemchr.c (rawmemchr): Likewise.
14184         * tests/test-readlink.c (readlink): Likewise.
14185         * tests/test-remove.c (remove): Likewise.
14186         * tests/test-rename.c (rename): Likewise.
14187         * tests/test-renameat.c (renameat): Likewise.
14188         * tests/test-rmdir.c (rmdir): Likewise.
14189         * tests/test-round1.c (round): Likewise.
14190         * tests/test-roundf1.c (roundf): Likewise.
14191         * tests/test-roundl.c (roundl): Likewise.
14192         * tests/test-setenv.c (setenv): Likewise.
14193         * tests/test-sigaction.c (sigaction): Likewise.
14194         * tests/test-sleep.c (sleep): Likewise.
14195         * tests/test-snprintf.c (snprintf): Likewise.
14196         * tests/test-sprintf-posix.c (sprintf): Likewise.
14197         * tests/test-stat.c (stat): Likewise.
14198         * tests/test-stpncpy.c (stpncpy): Likewise.
14199         * tests/test-strcasestr.c (strcasestr): Likewise.
14200         * tests/test-strchrnul.c (strchrnul): Likewise.
14201         * tests/test-strerror.c (strerror): Likewise.
14202         * tests/test-strsignal.c (strsignal): Likewise.
14203         * tests/test-strstr.c (strstr): Likewise.
14204         * tests/test-strtod.c (strtod): Likewise.
14205         * tests/test-strverscmp.c (strverscmp): Likewise.
14206         * tests/test-symlink.c (symlink): Likewise.
14207         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
14208         * tests/test-times.c (times): Likewise.
14209         * tests/test-trunc1.c (trunc): Likewise.
14210         * tests/test-truncf1.c (truncf): Likewise.
14211         * tests/test-truncl.c (truncl): Likewise.
14212         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
14213         Likewise.
14214         * tests/test-uname.c (uname): Likewise.
14215         * tests/test-unlink.c (unlink): Likewise.
14216         * tests/test-unlinkat.c (unlinkat): Likewise.
14217         * tests/test-unsetenv.c (unsetenv): Likewise.
14218         * tests/test-usleep.c (usleep): Likewise.
14219         * tests/test-utimensat.c (utimensat): Likewise.
14220         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
14221         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
14222         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
14223         * tests/test-vprintf-posix.c (vprintf): Likewise.
14224         * tests/test-vsnprintf.c (vsnprintf): Likewise.
14225         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
14226         * tests/test-wcrtomb.c (wcrtomb): Likewise.
14227         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
14228         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
14229         * tests/test-wcwidth.c (wcwidth): Likewise.
14230
14231         build: pull in conditional headers during GNULIB_POSIXCHECK
14232         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
14233         definitions from any conditionally-included headers.
14234         * lib/stdlib.in.h (includes): Likewise.
14235         * lib/unistd.in.h (includes): Likewise.
14236
14237 2009-12-24  Bruno Haible  <bruno@clisp.org>
14238
14239         * tests/test-argv-iter.c: Include header file being tested immediately
14240         after config.h.
14241         * tests/test-base64.c: Likewise.
14242         * tests/test-flock.c: Likewise.
14243         * tests/test-fsync.c: Likewise.
14244         * tests/test-getdate.c: Likewise.
14245         * tests/test-getndelim2.c: Likewise.
14246         * tests/test-isfinite.c: Likewise.
14247         * tests/test-isinf.c: Likewise.
14248         * tests/test-strerror.c: Likewise.
14249         * tests/test-strsignal.c: Likewise.
14250
14251 2009-12-23  Eric Blake  <ebb9@byu.net>
14252
14253         unistd: work around cygwin bug
14254         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
14255         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
14256         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14257
14258 2009-12-23  Bruno Haible  <bruno@clisp.org>
14259
14260         localename: More tests.
14261         * tests/test-localename.c (SIZEOF): New macro.
14262         (categories): New variable.
14263         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
14264         test_locale_name_default): Add test w.r.t. thread locale.
14265         (test_locale_name_thread): New function.
14266         (main): Invoke it.
14267
14268         localename: Make aware of thread locale.
14269         * lib/localename.h (gl_locale_name_thread): New declaration.
14270         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
14271         behaviour with respect to thread locale.
14272         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
14273         <langinfo.h>, glthread/lock.h.
14274         (SIZE_BITS): New macro.
14275         (string_hash): New function.
14276         (struct hash_node): New type.
14277         (HASH_TABLE_SIZE): New macro.
14278         (struniq_hash_table, struniq_lock): New variables.
14279         (struniq): New function.
14280         (gl_locale_name_thread): New function.
14281         (gl_locale_name): Invoke it.
14282         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
14283         * modules/localename (Depends-on): Add lock.
14284         Reported by Mike Gran <spk121@yahoo.com>.
14285
14286 2009-12-23  Eric Blake  <ebb9@byu.net>
14287
14288         va-args: new module
14289         * modules/va-args: New file.
14290         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
14291         * MODULES.html.sh (Core language properties): Mention it.
14292
14293         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
14294         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
14295         named alias for __attribute__((__unused__)).
14296         * lib/chown.c: Update client.
14297         * lib/fchmodat.c: Likewise.
14298         * lib/fts.c: Likewise.
14299         * lib/getdate.y: Likewise.
14300         * lib/getgroups.c: Likewise.
14301         * lib/getopt.c: Likewise.
14302         * lib/getugroups.c: Likewise.
14303         * lib/mkdir.c: Likewise.
14304         * lib/mkfifo.c: Likewise.
14305         * lib/mkfifoat.c: Likewise.
14306         * lib/mknod.c: Likewise.
14307         * lib/mknodat.c: Likewise.
14308         * lib/readlink.c: Likewise.
14309         * lib/se-context.in.h: Likewise.
14310         * lib/se-selinux.in.h: Likewise.
14311         * lib/sockets.c: Likewise.
14312         * lib/symlink.c: Likewise.
14313         * lib/symlinkat.c: Likewise.
14314         * lib/unicodeio.c: Likewise.
14315         * lib/unistr.h: Likewise.
14316         * tests/test-areadlink.c: Likewise.
14317         * tests/test-areadlinkat.c: Likewise.
14318         * tests/test-filenamecat.c: Likewise.
14319         * tests/test-fseeko.c: Likewise.
14320         * tests/test-ftello.c: Likewise.
14321         * tests/test-getdate.c: Likewise.
14322         * tests/test-getgroups.c: Likewise.
14323         * tests/test-gethostname.c: Likewise.
14324         * tests/test-quotearg.c: Likewise.
14325         * tests/test-version-etc.c: Likewise.
14326         * tests/test-xalloc-die.c: Likewise.
14327         * tests/test-xfprintf-posix.c: Likewise.
14328         * tests/test-xprintf-posix.c: Likewise.
14329         * tests/test-xvasprintf.c: Likewise.
14330
14331         tests: avoid compiler warnings
14332         * tests/test-fcntl.c (main): Delete unused parameters.
14333         * tests/test-freopen-safer.c (main): Likewise.
14334         * tests/test-xalloc-die.c (main): Mark unused parameters.
14335         * tests/test-fseeko.c (main): Likewise.
14336         * tests/test-ftello.c (main): Likewise.
14337         * tests/test-nanosleep.c (main): Avoid declaration warning.
14338         * tests/test-sleep.c (main): Likewise.
14339         * tests/test-unsetenv.c (main): Silence warning about string
14340         literal.
14341         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14342
14343 2009-12-23  Bruno Haible  <bruno@clisp.org>
14344
14345         * tests/test-localename.c (test_locale_name): New function, extracted
14346         from main. Also test mixed situations.
14347         (test_locale_name_posix, test_locale_name_environ,
14348         test_locale_name_default): New functions.
14349         (main): Invoke them all.
14350         * modules/localename-tests (configure.ac): Test for newlocale.
14351
14352 2009-12-23  Bruno Haible  <bruno@clisp.org>
14353
14354         unistd: Ensure getcwd gets declared before being overridden.
14355         * lib/unistd.in.h: Conditionally include <io.h>.
14356
14357 2009-12-22  Bruno Haible  <bruno@clisp.org>
14358
14359         wchar: Diagnose broken combination of glibc and gcc versions and flags.
14360         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
14361         (gl_WCHAR_H): Invoke it.
14362         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
14363         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
14364         Reported by Karl Berry <karl@freefriends.org>.
14365
14366 2009-12-22  Eric Blake  <ebb9@byu.net>
14367
14368         math, unistd: avoid redundant includes
14369         * lib/math.in.h (isnan): No need to re-include <math.h>.
14370         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
14371
14372         getsubopt: work around cygwin bug
14373         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
14374         avoid conflicting with system getsubopt.
14375         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
14376         bug.
14377
14378         getopt: synchronize from glibc
14379         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
14380         parameter order.  Adjust all callers.
14381         (_getopt_internal_r, main): Adjust quoting in error messages.
14382         Drop considerations for outdated POSIX 1003.2 error message.
14383         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
14384         callers.
14385         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
14386
14387         test-getopt: test stderr behavior
14388         * modules/getopt-posix-tests (Depends-on): Add dup2.
14389         * tests/test-getopt.c (ASSERT): Avoid stderr.
14390         (main): Move stderr to a temporary file.
14391         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
14392         Instead, add parameter to inform caller if output occurred.
14393         (test_getopt): Adjust all existing tests to expect silence, and
14394         add new tests of leading ":".
14395         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14396         glibc shortcomings with leading "-:" or "+:" in optstring.
14397         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14398         Likewise.
14399         * doc/posix-functions/getopt.texi (getopt): Likewise.
14400
14401         test-getopt: enhance test
14402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14403         supports optind=0.
14404         * tests/test-getopt.c (OPTIND_MIN): Move...
14405         * tests/test-getopt.h (OPTIND_MIN): ...here.
14406         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14407         Require that optind=0 works, since modern BSD supports it in
14408         addition to optreset, and since coreutils expects it.
14409         (test_getopt_long_only): New test.
14410         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14411         glibc shortcomings with 'W;', and enforcement of optind=0.
14412         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14413         Likewise.
14414
14415 2009-12-21  Bruno Haible  <bruno@clisp.org>
14416
14417         localename: Improvements for MacOS X and Cygwin.
14418         * lib/localename.h (gl_locale_name_environ): New declaration.
14419         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14420         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14421         (gl_locale_name_posix): Invoke it.
14422         (gl_locale_name_default): Add comments. Use Windows native API also on
14423         Cygwin.
14424
14425 2009-12-21  Bruno Haible  <bruno@clisp.org>
14426
14427         Update list of Win32 locale ids.
14428         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14429         (LANG_SAMI): Renamed from LANG_SAAMI.
14430         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14431         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14432         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14433         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14434         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14435         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14436         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14437         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14438         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14439         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14440         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14441         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14442         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14443         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14444         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14445         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14446         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14447         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14448         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14449         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14450         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14451         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14452         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14453         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14454         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14455         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14456         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14457         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14458         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14459         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14460         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14461         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14462         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14463         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14464         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14465         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14466         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14467         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14468         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14469         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14470         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14471         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14472         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14473         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14474         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14475         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14476         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14477         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14478         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14479         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14480         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14481         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14482         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14483         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14484         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14485         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14486         Add more languages and countries for Sami, Sorbian. Add more countries
14487         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14488         for Pashto. Change country for Syriac, Tswana.
14489
14490 2009-12-21  Eric Blake  <ebb9@byu.net>
14491
14492         test-utimens: avoid spurious failure
14493         * tests/test-chown.h (nap): Factor...
14494         * tests/nap.h: ...into new file.
14495         * tests/test-lchown.h (nap): Avoid duplication.
14496         * tests/test-utimens-common.h (nap): Use shared implementation,
14497         necessary on file systems with 1-second resolution.
14498         * modules/chown-tests (Files): Include new file.
14499         * modules/fdutimensat-tests (Files): Likewise.
14500         * modules/futimens-tests (Files): Likewise.
14501         * modules/lchown-tests (Files): Likewise.
14502         * modules/openat-tests (Files): Likewise.
14503         * modules/utimens-tests (Files): Likewise.
14504         * modules/utimensat-tests (Files): Likewise.
14505
14506 2009-12-19  Eric Blake  <ebb9@byu.net>
14507
14508         futimens, utimensat: work around Linux bug
14509         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14510         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14511         * lib/utimensat.c (rpl_utimensat): Work around it.
14512         * lib/futimens.c (rpl_futimens): Adjust comment.
14513
14514         utimens: work around Linux ctime bug
14515         * lib/utimens.c (detect_ctime_bug): New helper function.
14516         (update_timespec): Differentiate between workaround needed for
14517         this bug vs. what is needed for systems that lack utimensat.
14518         (fdutimens, lutimens): Work around bug.
14519
14520         utimens: check for ctime update
14521         * tests/test-utimens-common.h (check_ctime): Define.
14522         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14523         * tests/test-futimens.h (test_futimens): Likewise.
14524         * tests/test-lutimens.h (test_lutimens): Likewise.
14525         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14526         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14527
14528 2009-12-19  Bruno Haible  <bruno@clisp.org>
14529
14530         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14531         * tests/test-dprintf-posix2.sh: New file.
14532         * tests/test-dprintf-posix2.c: New file.
14533         * modules/dprintf-posix-tests (Files): Add them.
14534         (configure.ac): Check for getrlimit and setrlimit.
14535         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14536
14537 2009-12-19  Bruno Haible  <bruno@clisp.org>
14538
14539         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14540         * tests/test-fprintf-posix3.sh: New file.
14541         * tests/test-fprintf-posix3.c: New file.
14542         * modules/fprintf-posix-tests (Files): Add them.
14543         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14544
14545 2009-12-19  Eric Blake  <ebb9@byu.net>
14546
14547         dirfd: fix prototype
14548         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14549         * lib/dirfd.c (dirfd): Likewise.
14550
14551         canonicalize: reduce memory usage
14552         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14553         allocation to size.
14554         Reported by Solar Designer <solar@openwall.com>.
14555
14556 2009-12-19  Bruno Haible  <bruno@clisp.org>
14557
14558         New module attribute 'Applicability'.
14559         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14560         * gnulib-tool: New option --extract-applicability.
14561         (func_usage): Document it.
14562         (sed_extract_prog): Recognize it.
14563         (func_get_applicability): New function.
14564         (func_import): Generalize handling of 'link-warning' module.
14565         * modules/link-warning (Applicability): New section.
14566         * modules/arg-nonnull (Applicability): New section.
14567         Repoted by Simon Josefsson <simon@josefsson.org>.
14568
14569 2009-12-19  Bruno Haible  <bruno@clisp.org>
14570
14571         fflush: tweak
14572         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14573         * lib/fseeko.c (rpl_fseeko): Likewise.
14574
14575 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14576
14577         * lib/gl_list.h: Fix typo in comment.
14578
14579 2009-12-16  Eric Blake  <ebb9@byu.net>
14580
14581         fcntl: use to simplify other modules
14582         * modules/cloexec (Depends-on): Add fcntl.
14583         * modules/fchdir (Depends-on): Likewise.
14584         * modules/fd-safer-flag (Depends-on): Likewise.
14585         * modules/unistd-safer (Depends-on): Likewise.
14586         * modules/dup3 (configure.ac): Set module indicator.
14587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14588         missing.
14589         * lib/fchdir.c (_gl_register_dup): Fix comment.
14590         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14591         * lib/dup-safer.c (dup_safer): Likewise.
14592         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14593         * lib/dup3.c (dup3): Likewise.
14594         * tests/test-fchdir.c (main): Enhance test.
14595         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14596
14597         fcntl: port portions of fcntl to mingw
14598         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14599         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14600         replacement for mingw.
14601         * modules/fcntl (Description): Update.
14602         (Depends-on): Add dup2.
14603         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14604         * modules/fcntl-h (Makefile.am): Substitute it.
14605         * lib/fcntl.in.h (fcntl): Update declaration.
14606         (F_DUPFD, F_GETFD): New macros, when needed.
14607         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14608         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14609         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14610         we now guarantee.
14611
14612         fcntl: work around cygwin bug in F_DUPFD
14613         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14614         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14615         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14616         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14617         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14618
14619         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14620         * modules/fcntl (Files): List new files.
14621         (configure.ac): Run a test.
14622         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14623         * lib/fcntl.c (rpl_fcntl): Likewise.
14624         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14625         (gl_FCNTL_H): Always replace fcntl.h.
14626         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14627         * lib/fcntl.in.h (fcntl): Declare replacement.
14628         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14629         needed, plus a witness.
14630         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14631         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14632         * tests/test-fcntl.c: New file.
14633         * modules/fcntl-tests: Likewise.
14634
14635         binary-io: avoid potential compilation warning
14636         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14637         directives.
14638
14639         fflush: avoid compilation error on NetBSD
14640         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14641         between off_t and fpos_t, since the latter is sometimes a struct.
14642         * lib/fseeko.c (rpl_fseeko): Likewise.
14643         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14644
14645 2009-12-15  Eric Blake  <ebb9@byu.net>
14646
14647         fcntl-h, stdio, sys_ioctl: fix declarations
14648         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14649         function must not take arguments.
14650         * lib/sys_ioctl.in.h (ioctl): Likewise.
14651         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14652         (open): Add a link warning.
14653
14654 2009-12-15  Jim Meyering  <meyering@redhat.com>
14655
14656         areadlink, areadlink-with-size: relax license to LGPLv2+
14657         * modules/areadlink (License): Relax to LGPLv2+.
14658         * modules/areadlink-with-size (License): Likewise.
14659
14660 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14661             Bruno Haible  <bruno@clisp.org>
14662
14663         *printf: Fix memory leak.
14664         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14665         * lib/vfprintf.c (vfprintf): Likewise.
14666         * lib/dprintf.c (dprintf): Likewise.
14667         * lib/vdprintf.c (vdprintf): Likewise.
14668
14669 2009-12-14  Eric Blake  <ebb9@byu.net>
14670
14671         accept4: adjust module dependencies
14672         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14673
14674         utimens: one more try at avoiding compiler warning
14675         * lib/utimens.c (lutimens): Lower scope of result.
14676
14677 2009-12-13  Bruno Haible  <bruno@clisp.org>
14678
14679         Move the malloc checking from module 'list' to new module 'xlist'.
14680         * modules/xlist: New file.
14681         * lib/gl_xlist.h: New file.
14682         * lib/gl_xlist.c: New file.
14683         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
14684         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
14685         gl_list_add_last, gl_list_add_before, gl_list_add_after,
14686         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
14687         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
14688         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
14689         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
14690         gl_sortedlist_nx_add): New declarations.
14691         (struct gl_list_implementation): Rename and change methods accordingly.
14692         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
14693         (gl_list_nx_create): Renamed from gl_list_create.
14694         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14695         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14696         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14697         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14698         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14699         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14700         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14701         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14702         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
14703         gl_list_create_empty.
14704         (gl_list_nx_create): Renamed from gl_list_create.
14705         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14706         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14707         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14708         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14709         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14710         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14711         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14712         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14713         * lib/gl_array_list.c: Don't include xalloc.h.
14714         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
14715         NULL upon out-of-memory.
14716         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
14717         out-of-memory.
14718         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
14719         Change return type to 'int'.
14720         (gl_array_nx_set_at): Renamed from gl_array_set_at.
14721         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14722         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
14723         upon out-of-memory.
14724         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
14725         upon out-of-memory.
14726         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
14727         upon out-of-memory.
14728         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
14729         upon out-of-memory.
14730         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
14731         out-of-memory.
14732         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
14733         Update.
14734         (gl_array_list_implementation): Update.
14735         * lib/gl_carray_list.c: Don't include xalloc.h.
14736         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
14737         Return NULL upon out-of-memory.
14738         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
14739         out-of-memory.
14740         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
14741         Change return type to 'int'.
14742         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
14743         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14744         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
14745         upon out-of-memory.
14746         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
14747         upon out-of-memory.
14748         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
14749         out-of-memory.
14750         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
14751         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
14752         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
14753         Update.
14754         (gl_carray_list_implementation): Update.
14755         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
14756         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
14757         gl_linked_create_empty. Return NULL upon out-of-memory.
14758         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
14759         out-of-memory.
14760         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
14761         Change return type to 'int'. Return -1 upon out-of-memory.
14762         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
14763         out-of-memory.
14764         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
14765         upon out-of-memory.
14766         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
14767         upon out-of-memory.
14768         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
14769         NULL upon out-of-memory.
14770         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
14771         upon out-of-memory.
14772         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
14773         out-of-memory.
14774         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
14775         Update.
14776         * lib/gl_linked_list.c: Don't include xalloc.h.
14777         (gl_linked_list_implementation): Update.
14778         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
14779         (add_to_bucket): Change return type to 'int'.
14780         (gl_linkedhash_list_implementation): Update.
14781         * lib/gl_anytree_list1.h (free_subtree): New function.
14782         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
14783         gl_tree_create_empty. Return NULL upon out-of-memory.
14784         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
14785         Change return type to 'int'. Return -1 upon out-of-memory.
14786         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
14787         out-of-memory.
14788         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
14789         (gl_tree_remove_node): New function, moved here from
14790         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
14791         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
14792         Update.
14793         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
14794         malloc, not xmalloc. Return NULL upon out-of-memory.
14795         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14796         out-of-memory.
14797         (gl_tree_remove_node_from_tree): New function, extracted from
14798         gl_tree_remove_node.
14799         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14800         upon out-of-memory.
14801         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14802         out-of-memory.
14803         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14804         upon out-of-memory.
14805         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14806         upon out-of-memory.
14807         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14808         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
14809         not xmalloc. Return NULL upon out-of-memory.
14810         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14811         out-of-memory.
14812         (gl_tree_remove_node_from_tree): New function, extracted from
14813         gl_tree_remove_node.
14814         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14815         upon out-of-memory.
14816         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14817         out-of-memory.
14818         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14819         upon out-of-memory.
14820         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14821         upon out-of-memory.
14822         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14823         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
14824         gl_anytree_list1.h before gl_anyavltree_list2.h.
14825         (gl_avltree_list_implementation): Update.
14826         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
14827         gl_anytree_list1.h before gl_anyavltree_list2.h.
14828         (gl_rbtree_list_implementation): Update.
14829         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
14830         Change return type to 'int'. Return -1 upon out-of-memory. Use
14831         __builtin_expect.
14832         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
14833         (gl_avltreehash_list_implementation): Update.
14834         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
14835         (gl_rbtreehash_list_implementation): Update.
14836         * modules/array-list (Depends-on): Remove xalloc.
14837         * modules/carray-list (Depends-on): Likewise.
14838         * modules/linked-list (Depends-on): Likewise.
14839         * modules/linkedhash-list (Depends-on): Likewise.
14840         * modules/avltree-list (Depends-on): Likewise.
14841         * modules/rbtree-list (Depends-on): Likewise.
14842         * modules/avltreehash-list (Depends-on): Likewise.
14843         * modules/rbtreehash-list (Depends-on): Likewise.
14844
14845         * modules/xsublist: New file.
14846         * lib/gl_xsublist.h: New file.
14847         * lib/gl_xsublist.c: New file.
14848         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14849         (gl_sublist_nx_create): New declaration.
14850         * lib/gl_sublist.c: Don't include xalloc.h.
14851         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14852         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14853         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14854         Change return type to 'int'. Return -1 upon out-of-memory.
14855         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14856         upon out-of-memory.
14857         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14858         NULL upon out-of-memory.
14859         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14860         upon out-of-memory.
14861         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14862         NULL upon out-of-memory.
14863         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14864         NULL upon out-of-memory.
14865         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14866         upon out-of-memory.
14867         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14868         (gl_sublist_list_implementation): Update.
14869         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14870         upon out-of-memory.
14871         * modules/sublist (Depends-on): Remove xalloc.
14872
14873         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14874         * tests/test-carray_list.c: Likewise.
14875         * tests/test-linked_list.c: Likewise.
14876         * tests/test-linkedhash_list.c: Likewise.
14877         * tests/test-avltree_list.c: Likewise.
14878         * tests/test-rbtree_list.c: Likewise.
14879         * tests/test-avltreehash_list.c: Likewise.
14880         * tests/test-rbtreehash_list.c: Likewise.
14881         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14882         * modules/carray-list-tests (Makefile.am): Likewise.
14883         * modules/linked-list-tests (Makefile.am): Likewise.
14884         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14885         * modules/avltree-list-tests (Makefile.am): Likewise.
14886         * modules/rbtree-list-tests (Makefile.am): Likewise.
14887         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14888         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14889
14890         * NEWS: Mention the changes.
14891
14892         * lib/clean-temp.c: Include gl_xlist.h.
14893         * modules/clean-temp (Depends-on): Add xlist.
14894
14895         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14896         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14897
14898         * tests/test-array_oset.c: Include gl_xlist.h.
14899         * modules/array-oset-tests (Depends-on): Add xlist.
14900
14901         Reported by José E. Marchesi <jemarch@gnu.org>.
14902
14903 2009-12-13  Bruno Haible  <bruno@clisp.org>
14904
14905         Move the malloc checking from module 'oset' to new module 'xoset'.
14906         * modules/xoset: New file.
14907         * lib/gl_xoset.h: New file.
14908         * lib/gl_xoset.c: New file.
14909         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14910         declarations.
14911         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14912         (struct gl_oset_implementation): Rename and change methods accordingly.
14913         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14914         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14915         'int'. Mark as __warn_unused_result__.
14916         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14917         gl_oset_create_empty.
14918         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14919         'int'.
14920         * lib/gl_array_oset.c: Don't include xalloc.h.
14921         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14922         malloc, not xmalloc.
14923         (grow): Change return type to 'int'. Don't call xalloc_die.
14924         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14925         to 'int'.
14926         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14927         'int'.
14928         (gl_array_oset_implementation): Update.
14929         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14930         gl_tree_create_empty.
14931         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14932         'int'.
14933         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14934         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14935         xmalloc.
14936         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14937         not xmalloc.
14938         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14939         xmalloc.
14940         (gl_avltree_oset_implementation): Update.
14941         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14942         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14943         xmalloc.
14944         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14945         not xmalloc.
14946         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14947         xmalloc.
14948         (gl_rbtree_oset_implementation): Update.
14949         * modules/array-oset (Depends-on): Remove xalloc.
14950         * modules/avltree-oset (Depends-on): Likewise.
14951         * modules/rbtree-oset (Depends-on): Likewise.
14952         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14953         * tests/test-avltree_oset.c: Likewise.
14954         * tests/test-rbtree_oset.c: Likewise.
14955         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14956         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14957         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14958         * NEWS: Mention the change.
14959
14960 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14961
14962         maint.mk: allow a project to override release-prep commands
14963         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14964         commands into a new rule.
14965         (release-prep): New rule.
14966         (release-prep-hook): New overridable variable.
14967
14968 2009-12-13  Bruno Haible  <bruno@clisp.org>
14969
14970         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14971
14972 2009-12-13  Jim Meyering  <meyering@redhat.com>
14973
14974         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14975         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14976
14977 2009-12-12  Bruno Haible  <bruno@clisp.org>
14978
14979         duplocale: Tweak.
14980         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14981
14982 2009-12-12  Karl Berry  <karl@gnu.org>
14983
14984         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14985
14986 2009-12-12  Bruno Haible  <bruno@clisp.org>
14987
14988         * m4/po.m4: Undo incorrect untabification.
14989
14990 2009-12-12  Bruno Haible  <bruno@clisp.org>
14991
14992         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14993         * modules/c-strtod (Depends-on): Add locale.
14994         * modules/c-strtold (Depends-on): Likewise.
14995
14996 2009-12-12  Bruno Haible  <bruno@clisp.org>
14997
14998         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14999
15000 2009-12-11  Eric Blake  <ebb9@byu.net>
15001
15002         setenv: relax requirement in light of POSIX ruling
15003         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
15004         not NULL.
15005         * tests/test-setenv.c (main): Relax test.
15006         * tests/test-unsetenv.c (main): Likewise.
15007         * doc/posix-functions/setenv.texi (setenv): Document this.
15008         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15009
15010 2009-12-11  Bruno Haible  <bruno@clisp.org>
15011
15012         New module 'fd-safer-flag'.
15013         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
15014         * lib/dup-safer.c (dup_safer_flag): Remove function.
15015         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
15016         * lib/fd-safer.c (fd_safer_flag): Remove function.
15017         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
15018         * modules/cloexec (configure.ac): Drop indicator macro.
15019         * modules/fd-safer-flag: New file.
15020         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
15021         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
15022         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
15023
15024 2009-12-11  Bruno Haible  <bruno@clisp.org>
15025
15026         Tests for module 'nl_langinfo'.
15027         * modules/nl_langinfo-tests: New file.
15028         * tests/test-nl_langinfo.sh: New file.
15029         * tests/test-nl_langinfo.c: New file.
15030
15031         New module 'nl_langinfo'.
15032         * lib/nl_langinfo.c: New file.
15033         * m4/nl_langinfo.m4: New file.
15034         * modules/nl_langinfo: New file.
15035         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
15036
15037 2009-12-11  Bruno Haible  <bruno@clisp.org>
15038
15039         Tests for module 'langinfo'.
15040         * modules/langinfo-tests: New file.
15041         * tests/test-langinfo.c: New file.
15042
15043         New module 'langinfo'.
15044         * lib/langinfo.in.h: New file.
15045         * m4/langinfo_h.m4: New file.
15046         * modules/langinfo: New file.
15047         * doc/posix-headers/langinfo.texi: Mention the new module.
15048
15049 2009-12-11  Bruno Haible  <bruno@clisp.org>
15050
15051         * lib/config.charset: Untabify.
15052
15053 2009-12-11  Bruno Haible  <bruno@clisp.org>
15054
15055         * modules/unistd-safer (configure.ac): Drop indicator macro.
15056
15057 2009-12-11  Bruno Haible  <bruno@clisp.org>
15058
15059         Move pipe2-safer code to its own file.
15060         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
15061         * lib/pipe-safer.c (pipe2_safer): Remove function.
15062         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
15063         (Makefile.am): Add it to lib_SOURCES.
15064
15065 2009-12-10  Bruno Haible  <bruno@clisp.org>
15066
15067         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
15068
15069 2009-12-10  Bruno Haible  <bruno@clisp.org>
15070
15071         Declare which arguments expect non-NULL values, for GCC and clang.
15072         * build-aux/arg-nonnull.h: New file.
15073         * modules/arg-nonnull: New file.
15074         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
15075         (inet_ntop, inet_pton): Use it.
15076         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
15077         (closedir, dirfd, opendir, scandir, alphasort): Use it.
15078         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
15079         (open, openat): Use it.
15080         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
15081         (fnmatch): Use it.
15082         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
15083         (getopt, getopt_long, getopt_long_only): Use it.
15084         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
15085         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
15086         Use it.
15087         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
15088         (iconv_open): Use it.
15089         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
15090         (strtoimax, strtoumax): Use it.
15091         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
15092         (duplocale): Use it.
15093         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
15094         (frexp, frexpl): Use it.
15095         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
15096         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
15097         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
15098         (tsearch, tfind, tdelete, twalk): Use it.
15099         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
15100         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15101         sigpending): Use it.
15102         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
15103         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15104         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15105         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15106         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15107         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15108         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15109         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15110         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15111         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15112         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15113         Use it.
15114         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
15115         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
15116         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
15117         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
15118         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
15119         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
15120         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
15121         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
15122         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
15123         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
15124         strtoull, unsetenv): Use it.
15125         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
15126         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15127         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15128         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
15129         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
15130         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
15131         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
15132         (strcasecmp, strncasecmp): Use it.
15133         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
15134         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
15135         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
15136         rpl_setsockopt): Use it.
15137         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
15138         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
15139         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
15140         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
15141         (gettimeofday): Use it.
15142         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
15143         (times): Use it.
15144         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
15145         (uname): Use it.
15146         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
15147         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
15148         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
15149         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
15150         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
15151         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
15152         unlinkat, write): Use it.
15153         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
15154         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
15155         * lib/argv-iter.h: Include arg-nonnull.h.
15156         (_ATTRIBUTE_NONNULL_): Remove macro.
15157         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
15158         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
15159         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
15160         optimization.
15161         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
15162         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
15163         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
15164         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
15165         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
15166         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
15167         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
15168         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
15169         * modules/arpa_inet (Depends-on): Add arg-nonnull.
15170         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
15171         * modules/dirent (Depends-on): Add arg-nonnull.
15172         (Makefile.am): Insert arg-nonnull.h into dirent.h.
15173         * modules/fcntl-h (Depends-on): Add arg-nonnull.
15174         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
15175         * modules/fnmatch (Depends-on): Add arg-nonnull.
15176         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
15177         * modules/getopt-posix (Depends-on): Add arg-nonnull.
15178         (Makefile.am): Insert arg-nonnull.h into getopt.h.
15179         * modules/glob (Depends-on): Add arg-nonnull.
15180         (Makefile.am): Insert arg-nonnull.h into glob.h.
15181         * modules/iconv_open (Depends-on): Add arg-nonnull.
15182         (Makefile.am): Insert arg-nonnull.h into iconv.h.
15183         * modules/inttypes (Depends-on): Add arg-nonnull.
15184         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
15185         * modules/locale (Depends-on): Add arg-nonnull.
15186         (Makefile.am): Insert arg-nonnull.h into locale.h.
15187         * modules/math (Depends-on): Add arg-nonnull.
15188         (Makefile.am): Insert arg-nonnull.h into math.h.
15189         * modules/netdb (Depends-on): Add arg-nonnull.
15190         (Makefile.am): Insert arg-nonnull.h into netdb.h.
15191         * modules/search (Depends-on): Add arg-nonnull.
15192         (Makefile.am): Insert arg-nonnull.h into search.h.
15193         * modules/signal (Depends-on): Add arg-nonnull.
15194         (Makefile.am): Insert arg-nonnull.h into signal.h.
15195         * modules/spawn (Depends-on): Add arg-nonnull.
15196         (Makefile.am): Insert arg-nonnull.h into spawn.h.
15197         * modules/stdio (Depends-on): Add arg-nonnull.
15198         (Makefile.am): Insert arg-nonnull.h into stdio.h.
15199         * modules/stdlib (Depends-on): Add arg-nonnull.
15200         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
15201         * modules/string (Depends-on): Add arg-nonnull.
15202         (Makefile.am): Insert arg-nonnull.h into string.h.
15203         * modules/strings (Depends-on): Add arg-nonnull.
15204         (Makefile.am): Insert arg-nonnull.h into strings.h.
15205         * modules/sys_socket (Depends-on): Add arg-nonnull.
15206         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
15207         * modules/sys_stat (Depends-on): Add arg-nonnull.
15208         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
15209         * modules/sys_time (Depends-on): Add arg-nonnull.
15210         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
15211         * modules/sys_times (Depends-on): Add arg-nonnull.
15212         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
15213         * modules/sys_utsname (Depends-on): Add arg-nonnull.
15214         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
15215         * modules/time (Depends-on): Add arg-nonnull.
15216         (Makefile.am): Insert arg-nonnull.h into time.h.
15217         * modules/unistd (Depends-on): Add arg-nonnull.
15218         (Makefile.am): Insert arg-nonnull.h into unistd.h.
15219         * modules/wchar (Depends-on): Add arg-nonnull.
15220         (Makefile.am): Insert arg-nonnull.h into wchar.h.
15221         * modules/argv-iter (Depends-on): Add arg-nonnull.
15222         * tests/test-canonicalize.c (null_ptr): New function.
15223         (main): Use it.
15224         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
15225         (main): Use it.
15226         * tests/test-memmem.c (null_ptr): New function.
15227         (main): Use it.
15228         Reported by Jim Meyering.
15229
15230 2009-12-10  Bruno Haible  <bruno@clisp.org>
15231
15232         Use spaces for indentation, not tabs.
15233         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15234         * m4/*.m4: Untabify.
15235         * build-aux/*.h: Untabify.
15236         * tests/**/*.[hc]: Untabify.
15237         * README: New section "Indent with spaces, not TABs", based on
15238         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
15239         * NEWS: Mention the change.
15240
15241 2009-12-10  Bruno Haible  <bruno@clisp.org>
15242
15243         pty test: Fix link error.
15244         * modules/pty-tests (Makefile.am): Add the default LDADD value to
15245         test_pty_LDADD.
15246
15247 2009-12-07  Simon Josefsson  <simon@josefsson.org>
15248
15249         * modules/pty: New file.
15250         * modules/pty-tests: New file.
15251         * m4/pty.m4: New file.
15252         * tests/test-pty.c: New file.
15253         * doc/glibc-headers/pty.texi: Modified.
15254         * doc/glibc-functions/forkpty.texi: Modified.
15255         * doc/glibc-functions/openpty.texi: Modified.
15256
15257 2009-12-10  Bruno Haible  <bruno@clisp.org>
15258
15259         Avoid syntax error in C++ mode.
15260         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
15261
15262 2009-12-10  Bruno Haible  <bruno@clisp.org>
15263
15264         Use sed with option -e.
15265         * gnulib-tool (func_version, func_emit_copyright_notice,
15266         func_emit_initmacro_end, func_import, func_create_testdir): Pass
15267         option -e to sed.
15268         * modules/link-warning (Makefile.am): Likewise.
15269
15270 2009-12-10  Jim Meyering  <meyering@redhat.com>
15271
15272         mgetgroups: do not write bytes beyond end of malloc'd buffer
15273         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
15274         username, we call getgroups with a one-element-shorter buffer,
15275         but still told it the length was original, max_n_groups.
15276
15277 2009-12-09  Eric Blake  <ebb9@byu.net>
15278
15279         cloexec: relax license
15280         * modules/cloexec (Maintainer): Add myself.
15281         (License): Use LGPL, not GPL.
15282
15283         link-warning: optimize generation
15284         * modules/link-warning (Makefile.am): Reduce process usage.
15285
15286 2009-12-09  Bruno Haible  <bruno@clisp.org>
15287
15288         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
15289         workaround was added on 2009-11-17.
15290
15291 2009-12-09  Jim Meyering  <meyering@redhat.com>
15292             Bruno Haible  <bruno@clisp.org>
15293
15294         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
15295         * modules/link-warning (Makefile.am): Make the comment-removing sed
15296         command more robust in the face of bootstrap-prepended comment lines.
15297
15298 2009-12-09  Bruno Haible  <bruno@clisp.org>
15299
15300         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
15301         most one group.
15302
15303 2009-12-09  Simon Josefsson <simon@josefsson.org>
15304             Bruno Haible  <bruno@clisp.org>
15305
15306         * build-aux/link-warning.h: Add copyright notice.
15307         * modules/link-warning (Makefile.am): Generate link-warning.h from
15308         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
15309         * NEWS: Mention change in link-warning module.
15310         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
15311         * modules/dirent (Makefile.am): Add dependency to dirent.h.
15312         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
15313         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
15314         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
15315         * modules/math (Makefile.am): Add dependency to math.h.
15316         * modules/search (Makefile.am): Add dependency to search.h.
15317         * modules/signal (Makefile.am): Add dependency to signal.h.
15318         * modules/spawn (Makefile.am): Add dependency to spawn.h.
15319         * modules/stdio (Makefile.am): Add dependency to stdio.h.
15320         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
15321         * modules/string (Makefile.am): Add dependency to string.h.
15322         * modules/strings (Makefile.am): Add dependency to strings.h.
15323         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
15324         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
15325         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
15326         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
15327         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
15328         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
15329         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
15330         * modules/unistd (Makefile.am): Add dependency to unistd.h.
15331         * modules/wchar (Makefile.am): Add dependency to wchar.h.
15332
15333 2009-12-09  Bruno Haible  <bruno@clisp.org>
15334
15335         fchdir: Optimize away rpl_fstat when possible.
15336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
15337         REPLACE_OPEN_DIRECTORY.
15338         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
15339
15340 2009-12-09  Bruno Haible  <bruno@clisp.org>
15341
15342         * lib/fchdir.c: Update comment.
15343
15344 2009-12-09  Bruno Haible  <bruno@clisp.org>
15345
15346         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
15347
15348 2009-12-08  Eric Blake  <ebb9@byu.net>
15349
15350         fchdir: avoid memory leak on re-registration.
15351         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
15352
15353 2009-12-08  Jim Meyering  <meyering@redhat.com>
15354
15355         init.sh: avoid Solaris 10 /bin/sh portability problem
15356         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
15357         sourced script:
15358           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
15359           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
15360           bar
15361         tests/init.sh relied on that, accepting a --set-path=DIR argument,
15362         and two tests used that idiom.
15363         * tests/init.sh: Update suggested usage comments.
15364         (path_prepend_): New function, to be used in place
15365         of the --src-path=DIR option.
15366         (setup_): Move PATH-prepending code into path_prepend_.
15367         * tests/test-pread.sh: Adapt to new usage.
15368         * tests/test-xalloc-die.sh: Likewise.
15369
15370 2009-12-08  Simon Josefsson  <simon@josefsson.org>
15371
15372         * doc/gnulib.texi (Glibc pty.h): Add.
15373         * doc/glibc-functions/forkpty.texi: Add.
15374         * doc/glibc-functions/openpty.texi: Add.
15375         Suggested by Bruno Haible.
15376
15377 2009-12-08  Eric Blake  <ebb9@byu.net>
15378
15379         fchdir: fix logic bugs
15380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
15381         * tests/test-fchdir.c (main): Enhance test.
15382         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
15383         is in use.
15384
15385         dup2: fix logic bugs
15386         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
15387         REPLACE_DUP2 to decide when rpl_dup2 is needed.
15388         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
15389         exists.
15390         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
15391
15392 2009-12-07  Eric Blake  <ebb9@byu.net>
15393
15394         unlink: fix m4 detection
15395         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15396
15397         unistd-safer: add unit test
15398         * modules/unistd-safer-tests: New file.
15399         * tests/test-dup-safer.c: Likewise.
15400         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15401         * tests/test-dup2.c (setmode): Likewise.
15402         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15403
15404         cloexec: preserve text vs. binary across dup_cloexec
15405         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15406         mode.
15407         * modules/dup2-tests (Depends-on): Add binary-io.
15408         * modules/cloexec-tests (Depends-on): Likewise.
15409         * tests/test-dup2.c (setmode, is_mode): New helpers.
15410         (main): Add tests that translation mode is preserved.
15411         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15412         Reported by Bruno Haible.
15413
15414         mgetgroups: reduce duplicate listings
15415         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15416         resulting array.
15417         * tests/test-chown.h (test_chown): Simplify client.
15418         * tests/test-lchown.h (test_lchown): Likewise.
15419
15420 2009-12-06  Bruno Haible  <bruno@clisp.org>
15421
15422         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15423         value.
15424
15425 2009-12-06  Bruno Haible  <bruno@clisp.org>
15426
15427         * lib/progname.c: Include stdio.h, stdlib.h.
15428         (set_program_name): Reject a NULL argument.
15429
15430 2009-12-05  Eric Blake  <ebb9@byu.net>
15431
15432         pipe2-safer: new module
15433         * modules/pipe2-safer: New file.
15434         * lib/unistd-safer.h (pipe2_safer): New prototype.
15435         * lib/unistd--.h (pipe2): New wrapper.
15436         * lib/pipe-safer.c (pipe2_safer): New function.
15437         * modules/pipe (Depends-on): Add pipe2-safer.
15438         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15439
15440         stdlib-safer: preserve cloexec flag for mkostemp[s]
15441         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15442         fd_safer_flag.
15443
15444         unistd-safer: allow preservation of cloexec status via flag
15445         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15446         prototypes.
15447         * lib/dup-safer.c (dup_safer_flag): New function.
15448         * lib/fd-safer.c (fd_safer_flag): Likewise.
15449         * modules/cloexec (configure.ac): Set witness.
15450
15451         test-dup2: enhance test
15452         * modules/dup2-tests (Depends-on): Add cloexec.
15453         * tests/test-dup2.c (main): Enhance test.
15454
15455         cloexec: add dup_cloexec
15456         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15457         header and comments.
15458         * lib/cloexec.c (set_cloexec_flag): Add comments.
15459         (dup_cloexec): New function, with mingw implementation borrowed
15460         from...
15461         * lib/w32spawn.h (dup_noinherit): ...here.
15462         * modules/execute (Depends-on): Add cloexec.
15463         * modules/pipe (Depends-on): Likewise.
15464         * modules/cloexec (Depends-on): Add dup2.
15465         * modules/cloexec-tests (Files): New file.
15466         * tests/test-cloexec.c: Likewise.
15467
15468         test-xalloc-die: fix test for mingw
15469         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15470         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15471         directory and .exe suffix off argv[0] output.
15472
15473         test-fseeko: fix test for mingw
15474         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15475         than undefining fseek, so test will pass on mingw.
15476
15477 2009-12-05  Bruno Haible  <bruno@clisp.org>
15478
15479         * lib/progname.h (set_program_name): Clarify specification.
15480         * lib/progname.c (set_program_name): Likewise.
15481         Reported by Jim Meyering.
15482
15483 2009-12-05  Jim Meyering  <meyering@redhat.com>
15484
15485         maint.mk: backslash-escape parens in default regexp
15486         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15487         backslash-escape the literal parentheses.
15488
15489         maint.mk: news-date-check: use grep -E
15490         * top/maint.mk (today): Define a Make variable, not a...
15491         (news-date-check): ...shell variable.
15492         (news-date-regexp): Use the Make variable.
15493         Use grep's -E option.  Change the failing diagnostic to mention
15494         the variable, $(news-date-regexp).
15495
15496 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15497
15498         maintainer-makefile: allow customization of NEWS entry format
15499         * top/maint.mk (news-date-regexp): New overridable variable.
15500         (news-date-check): Use it.
15501
15502 2009-12-04  Eric Blake  <ebb9@byu.net>
15503
15504         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15505         * lib/mgetgroups.h (xgetgroups): New prototype.
15506         * lib/mgetgroups.c (xgetgroups): New wrapper.
15507         (mgetgroups): Handle ENOSYS.
15508         * modules/mgetgroups (Depends-on): Add realloc.
15509         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15510
15511         mgetgroups: avoid argument promotion issues with -1
15512         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15513         for invalid gid_t.
15514         * tests/test-chown.h (getegid, test_chown): Likewise.
15515         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15516
15517 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15518
15519         exclude: Fix header file problems.
15520         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15521
15522 2009-12-01  Jim Meyering  <meyering@redhat.com>
15523
15524         fts: fts_open: do not let an empty string cause immediate failure
15525         This is required in support of GNU rm, for which the command
15526         "rm A '' B" must process and remove both A and B, in spite of
15527         the empty string argument.
15528         * lib/fts.c (fts_open): Do not let the presence of an empty string
15529         cause fts_open to fail immediately.  Most fts-using tools must be
15530         able to process all arguments, in order, and can be expected to
15531         diagnose such arguments themselves.
15532
15533 2009-11-30  Eric Blake  <ebb9@byu.net>
15534
15535         utimens: fix compilation error
15536         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15537         Declare variable at right scope.
15538
15539 2009-11-29  Jim Meyering  <meyering@redhat.com>
15540
15541         bootstrap: handle perl-5.11's changed --version output
15542         * build-aux/bootstrap (get_version): Handle perl separately,
15543         since perl-5.11's --version output is different.
15544
15545 2009-11-28  Jim Meyering  <meyering@redhat.com>
15546
15547         userspec: depend on the inttostr module, too
15548         * modules/userspec (Depends-on): Add inttostr.
15549
15550         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15551         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15552         number of MAXUID when it evaluates to (uid_t) -1.
15553         Likewise for group ID.  Reported by Matt McCutchen in
15554         <http://savannah.gnu.org/bugs/?28113>
15555
15556         userspec: reformat to use spaces, not TABs
15557         * lib/userspec.c: Expand TABs to spaces.
15558         Add Emacs' "indent-tabs-mode: nil" hint.
15559
15560 2009-11-27  Eric Blake  <ebb9@byu.net>
15561
15562         getopt-gnu: flush out another BSD bug
15563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15564         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15565         flush out BSD bug.
15566         * tests/test-getopt.h (test_getopt): End lists with NULL.
15567         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15568         (test_getopt_long_posix): Enhance test.
15569         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15570         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15571         getopt-gnu.
15572         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15573         Likewise.
15574
15575 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15576
15577         * modules/idpriv-droptemp-tests (Notice): Fix text.
15578
15579 2009-11-27  Jim Meyering  <meyering@redhat.com>
15580
15581         test-xalloc-die: avoid spurious failure due to libtool argv difference
15582         In a libtool-enabled project, this test would fail due to a difference
15583         in the emitted program name, e.g.,
15584         -test-xalloc-die: memory exhausted
15585         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15586         Use program to avoid that.
15587         * modules/xalloc-die-tests (Depends-on): Add progname.
15588         * tests/test-xalloc-die.c: Include progname.h".
15589         (program_name): Remove decl.
15590         (main): Call set_program_name.
15591         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15592
15593 2009-11-26  Richard Jones  <rjones@redhat.com>
15594
15595         w32sock: leave win32 error in place.
15596         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15597
15598 2009-11-26  Eric Blake  <ebb9@byu.net>
15599
15600         init.sh: suggest to use skip_ and fail_ functions in comments
15601         * tests/init.sh: Add a sentence.
15602
15603 2009-11-25  Bruno Haible  <bruno@clisp.org>
15604
15605         init.sh: add documentation in comments
15606         * tests/init.sh: Add some developer and user documentation.
15607
15608 2009-11-26  Jim Meyering  <meyering@redhat.com>
15609
15610         init.sh: accommodate even those who specify bogus srcdir manually
15611         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15612         configure-time tests to be sanitized, so that there is no need to
15613         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15614         (with no double quotes) suffices.  However, since tests may be
15615         invoked manually, and since you may explicitly set srcdir to the
15616         name of a directory containing spaces, do quote its uses here.
15617         * tests/test-pread.sh: Likewise.
15618         Suggested by Bruno Haible.
15619
15620         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15621         * tests/test-pread.sh: Write no data into the pipe, because
15622         test-pread actually reads none.  This avoids a diagnostic,
15623         "bash: echo: write error: Broken pipe", that arises in the unusual
15624         event something is ignoring SIGPIPE, and might be interpreted
15625         as some sort of failure.  Reported by Bruno Haible.
15626
15627 2009-11-25  Jim Meyering  <meyering@redhat.com>
15628
15629         test-pread: cover failure with ESPIPE and EINVAL
15630         * tests/test-pread.c (main): Test for failure, too.
15631         * tests/test-pread.sh: Invoke with stdin on a pipe.
15632         Suggested by Eric Blake.
15633
15634         pread: improvement and fix
15635         * modules/pread (Depends-on): Depend on lseek, for portability to
15636         e.g., mingw.  Suggested by Eric Blake.
15637         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15638
15639         unistd.in.h: correct declaration of pread
15640         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15641         Reported by Richard W.M. Jones.
15642
15643         test-pread.sh: distribute the test script
15644         * modules/pread-tests (Files): Include test-pread.sh.
15645
15646         test-pread.sh: clean up
15647         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15648         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15649         That is unnecessary, since it's always ".".
15650         Suggestion from Eric Blake.
15651
15652         test-pread.sh: make executable
15653         * tests/test-pread.sh: Set executable bit.
15654         Reported by Eric Blake.
15655
15656         correct typo in test-pread.sh
15657         * tests/test-pread.sh: Add #! line.
15658
15659         test pread
15660         * tests/test-pread.c: New file.
15661         * tests/test-pread.sh: Likewise.
15662         * modules/pread-tests: Likewise.
15663
15664         pread: new module
15665         * modules/pread: New file.
15666         * lib/unistd.in.h (pread): Define/declare.
15667         * lib/pread.c (pread): New file.
15668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15669         * modules/unistd (Makefile.am): Substitute witnesses.
15670         * doc/posix-functions/pread.texi (pread): Update.
15671         * MODULES.html.sh: Add pread.
15672
15673 2009-11-25  Jim Meyering  <meyering@redhat.com>
15674
15675         tests/init.sh: new file to be used via most *.sh tests
15676         * tests/init.sh: New file.
15677
15678 2009-11-25  Eric Blake  <ebb9@byu.net>
15679
15680         utimens: work around older Linux failure with symlinks
15681         * lib/utimens.c (lutimensat_works_really): New variable.
15682         (fdutimens, lutimens): Use it to manage kernels that support
15683         nanosecond times on files, but not on symlinks.
15684         Reported by OndÅ™ej Vašík.
15685
15686         utimes: fix configure grammar
15687         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
15688
15689 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
15690
15691         regex: Fix fastmap for multibyte character ranges.
15692         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
15693         characters when a multibyte character range is included.
15694
15695 2009-11-22  Andy Wingo  <wingo@pobox.com>
15696
15697         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
15698         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
15699
15700 2009-11-24  Bruno Haible  <bruno@clisp.org>
15701
15702         doc: Most *_l functions exist in MacOS X 10.5.
15703         * doc/posix-functions/duplocale.texi: Update platforms list.
15704         * doc/posix-functions/freelocale.texi: Likewise.
15705         * doc/posix-functions/newlocale.texi: Likewise.
15706         * doc/posix-functions/uselocale.texi: Likewise.
15707         * doc/posix-functions/isalnum_l.texi: Likewise.
15708         * doc/posix-functions/isalpha_l.texi: Likewise.
15709         * doc/posix-functions/isblank_l.texi: Likewise.
15710         * doc/posix-functions/iscntrl_l.texi: Likewise.
15711         * doc/posix-functions/isdigit_l.texi: Likewise.
15712         * doc/posix-functions/isgraph_l.texi: Likewise.
15713         * doc/posix-functions/islower_l.texi: Likewise.
15714         * doc/posix-functions/isprint_l.texi: Likewise.
15715         * doc/posix-functions/ispunct_l.texi: Likewise.
15716         * doc/posix-functions/isspace_l.texi: Likewise.
15717         * doc/posix-functions/isupper_l.texi: Likewise.
15718         * doc/posix-functions/iswalnum_l.texi: Likewise.
15719         * doc/posix-functions/iswalpha_l.texi: Likewise.
15720         * doc/posix-functions/iswblank_l.texi: Likewise.
15721         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15722         * doc/posix-functions/iswctype_l.texi: Likewise.
15723         * doc/posix-functions/iswdigit_l.texi: Likewise.
15724         * doc/posix-functions/iswgraph_l.texi: Likewise.
15725         * doc/posix-functions/iswlower_l.texi: Likewise.
15726         * doc/posix-functions/iswprint_l.texi: Likewise.
15727         * doc/posix-functions/iswpunct_l.texi: Likewise.
15728         * doc/posix-functions/iswspace_l.texi: Likewise.
15729         * doc/posix-functions/iswupper_l.texi: Likewise.
15730         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15731         * doc/posix-functions/isxdigit_l.texi: Likewise.
15732         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
15733         * doc/posix-functions/strcasecmp_l.texi: Likewise.
15734         * doc/posix-functions/strcoll_l.texi: Likewise.
15735         * doc/posix-functions/strfmon_l.texi: Likewise.
15736         * doc/posix-functions/strftime_l.texi: Likewise.
15737         * doc/posix-functions/strncasecmp_l.texi: Likewise.
15738         * doc/posix-functions/strxfrm_l.texi: Likewise.
15739         * doc/posix-functions/tolower_l.texi: Likewise.
15740         * doc/posix-functions/toupper_l.texi: Likewise.
15741         * doc/posix-functions/towctrans_l.texi: Likewise.
15742         * doc/posix-functions/towlower_l.texi: Likewise.
15743         * doc/posix-functions/towupper_l.texi: Likewise.
15744         * doc/posix-functions/wcscoll_l.texi: Likewise.
15745         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15746         * doc/posix-functions/wctrans_l.texi: Likewise.
15747         * doc/posix-functions/wctype_l.texi: Likewise.
15748         * doc/glibc-functions/strptime_l.texi: Likewise.
15749         * doc/glibc-functions/strtod_l.texi: Likewise.
15750         * doc/glibc-functions/strtof_l.texi: Likewise.
15751         * doc/glibc-functions/strtol_l.texi: Likewise.
15752         * doc/glibc-functions/strtold_l.texi: Likewise.
15753         * doc/glibc-functions/strtoll_l.texi: Likewise.
15754         * doc/glibc-functions/strtoul_l.texi: Likewise.
15755         * doc/glibc-functions/strtoull_l.texi: Likewise.
15756         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15757         * doc/glibc-functions/wcstod_l.texi: Likewise.
15758         * doc/glibc-functions/wcstof_l.texi: Likewise.
15759         * doc/glibc-functions/wcstol_l.texi: Likewise.
15760         * doc/glibc-functions/wcstold_l.texi: Likewise.
15761         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15762         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15763         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15764
15765 2009-11-24  Bruno Haible  <bruno@clisp.org>
15766
15767         duplocale: Fix logic bug.
15768         * lib/duplocale.c: Don't include <langinfo.h>.
15769         (_NL_LOCALE_NAME): Remove macro.
15770         (rpl_duplocale): Use setlocale instead of nl_langinfo.
15771         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
15772
15773 2009-11-23  Jim Meyering  <meyering@redhat.com>
15774
15775         test-update-copyright: don't hard-code /usr/bin/perl
15776         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
15777         perl to print the current year.  Gilles Espinasse reported that
15778         the replaced use of perl was hard-coded as /usr/bin/perl.
15779
15780 2009-11-23  Bruno Haible  <bruno@clisp.org>
15781
15782         duplocale: Add support for glibc 2.3.x.
15783         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
15784
15785 2009-11-22  Bruno Haible  <bruno@clisp.org>
15786
15787         vasnprintf: Tiny optimization.
15788         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
15789         MacOS X.
15790
15791 2009-11-22  Bruno Haible  <bruno@clisp.org>
15792
15793         Tests for module 'duplocale'.
15794         * modules/duplocale-tests: New file.
15795         * tests/test-duplocale.c: New file.
15796
15797         New module 'duplocale'.
15798         * m4/duplocale.m4: New file.
15799         * lib/locale.in.h (duplocale): New declaration.
15800         * lib/duplocale.c: New file.
15801         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
15802         gl_LOCALE_H_DEFAULTS): New macros.
15803         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
15804         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
15805         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
15806         REPLACE_DUPLOCALE.
15807         * modules/duplocale: New file.
15808         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
15809
15810 2009-11-22  Bruno Haible  <bruno@clisp.org>
15811
15812         * modules/locale-tests (configure.ac): Test for newlocale function.
15813         * tests/test-locale.c: When the system has extended locale functions,
15814         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
15815
15816         locale: Make locale_t available when possible.
15817         * lib/locale.in.h: Include <xlocale.h> when it exists.
15818         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
15819         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
15820         * modules/locale (Depends-on): Add extensions.
15821         (Makefile.am): Also substitute HAVE_XLOCALE_H.
15822         * doc/posix-headers/locale.texi: Document the problem with locale_t.
15823
15824 2009-11-22  Bruno Haible  <bruno@clisp.org>
15825
15826         Add comments.
15827         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
15828         invocation.
15829         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
15830         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15831         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15832
15833 2009-11-22  Bruno Haible  <bruno@clisp.org>
15834
15835         error: account for the possibility of freopen (stdout).
15836         * lib/error.c: Include <unistd.h>.
15837         (flush_stdout): New function, extracted from error and error_at_line.
15838         Determine stdout's fd dynamically.
15839         (error, error_at_line): Invoke flush_stdout.
15840         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15841         * modules/error (Depends-on): Add unistd.
15842
15843 2009-11-22  Bruno Haible  <bruno@clisp.org>
15844
15845         diffseq: Add comment.
15846         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15847
15848 2009-11-22  Jim Meyering  <meyering@redhat.com>
15849
15850         c-stack: avoid defining an unused static function
15851         * lib/c-stack.c (find_stack_direction): Do not define this function
15852         when it will not be used.
15853
15854         diffseq: avoid spurious gcc warnings
15855         * lib/diffseq.h (IF_LINT2): Define.
15856         (compareseq): Use it to initialize two members of "part".
15857         This avoids two used-uninitialized warnings.
15858
15859 2009-11-21  Jim Meyering  <meyering@redhat.com>
15860
15861         c-stack: avoid "ignoring return value of `write'" warning
15862         * lib/c-stack.c: Include "ignore-value.h".
15863         (die): Explicitly ignore each write return value.
15864         * modules/c-stack (Depends-on): Add ignore-value.
15865
15866 2009-11-21  Bruno Haible  <bruno@clisp.org>
15867
15868         diffseq: reduce scope of variable 'best'.
15869         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15870         variable, earlier used for two different purposes.
15871
15872 2009-11-21  Jim Meyering  <meyering@redhat.com>
15873
15874         diffseq: remove useless assignment to "best"
15875         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15876         assignment.  At that point "best" is already guaranteed to be zero.
15877
15878 2009-11-20  Eric Blake  <ebb9@byu.net>
15879
15880         build: mention ftp redirector in release announcements
15881         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15882         values that used to come from cfg.mk; mention FTP redirect URL.
15883         * build-aux/announce-gen: Mention the mirror list.
15884         Suggested by Karl Berry.
15885
15886         nanosleep: improve port to mingw
15887         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15889         LIB_NANOSLEEP, but only when needed.
15890         * modules/select (Link): Document LIBSOCKET.
15891         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15892         enough.
15893
15894         nanosleep: work around cygwin bug
15895         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15896         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15897         bug.
15898         (getnow): Delete, not needed.
15899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15900         LIB_CLOCK_GETTIME.
15901         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15902         clock-time, gettime.
15903         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15904         bug.
15905         * modules/nanosleep-tests: New test.
15906         * tests/test-nanosleep.c: New file.
15907
15908         sleep: work around cygwin bug
15909         * lib/sleep.c (rpl_sleep): Work around the bug.
15910         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15911         (gl_PREREQ_SLEEP): Delete unused macro.
15912         * modules/sleep (Depends-on): Add verify.
15913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15914         * modules/unistd (Makefile.am): Substitute witness.
15915         * lib/unistd.in.h (sleep): Update prototype.
15916         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15917         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15918         * modules/sleep-tests (Depends-on): Check for alarm.
15919
15920 2009-11-20  Jim Meyering  <meyering@redhat.com>
15921
15922         maint.mk: improve sc_prohibit_magic_number_exit
15923         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15924         so it does not match uses like System.exit(1).
15925         Add comments showing how to correct all offenders.
15926
15927 2009-11-19  Eric Blake  <ebb9@byu.net>
15928
15929         xalloc-die-tests: add missing library
15930         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15931
15932         test-xvasprintf: silence compiler warnings
15933         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15934         empty string from gcc.
15935
15936 2009-11-19  Jim Meyering  <meyering@redhat.com>
15937
15938         xfreopen: new module, from coreutils
15939         * modules/xfreopen: New module.
15940         * lib/xfreopen.c: New file.
15941         * lib/xfreopen.h: New file.
15942         * MODULES.html.sh (File stream based Input/Output"): Add it.
15943
15944 2009-11-19  Eric Blake  <ebb9@byu.net>
15945
15946         manywarnings: depend on warnings
15947         * modules/manywarnings (Depends-on): Add warnings.
15948
15949         build: avoid compiler warnings
15950         * lib/select.c (rpl_select): Delete unused variable.
15951         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15952
15953 2009-11-18  Eric Blake  <ebb9@byu.net>
15954
15955         tests: avoid false negative with --with-packager
15956         * tests/test-version-etc.sh: Discard packager information.
15957         * tests/test-argp-version-etc-1.sh: Likewise.
15958         Reported by Mike Frysinger.
15959
15960         utimens: fix regression on Solaris
15961         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15962         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15963         can only change fd timestamps via futimesat.  Instead, use an
15964         additional witness macro to avoid BSD bug.
15965         Reported by Jim Meyering.
15966
15967 2009-11-17  Eric Blake  <ebb9@byu.net>
15968
15969         usleep: use it to simplify tests
15970         * modules/stat-time-tests (Depends-on): Add usleep.
15971         (configure.ac): Drop usleep check.
15972         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15973         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15974         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15975         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15976         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15977         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15978         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15979         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15980         Likewise.
15981         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15982         * tests/test-lchown.h (nap): Likewise.
15983         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15984         * tests/test-stat-time.c (nap): Likewise.
15985         * tests/test-utimens-common.h (nap): Update comments.
15986
15987         usleep: new module
15988         * modules/usleep: New file.
15989         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15990         * lib/usleep.c (usleep): Likewise.
15991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15992         * modules/unistd (Makefile.am): Substitute witnesses.
15993         * lib/unistd.in.h (usleep): Add declaration.
15994         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15995         * MODULES.html.sh (Date and time): Likewise.
15996         * modules/usleep-tests (Depends-on): New test.
15997         * tests/test-usleep.c: New file.
15998
15999         chown: work around OpenBSD bug
16000         * lib/chown.c (rpl_chown): Work around the bug.
16001         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
16002         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
16003         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
16004         * modules/chown (Depends-on): Add stdbool.
16005         * modules/lchown (Depends-on): Likewise.
16006         * doc/posix-functions/chown.texi (chown): Document the bug.
16007         * doc/posix-functions/lchown.texi (lchown): Likewise.
16008         * tests/test-lchown.h (test_chown): Relax test.
16009
16010         mkstemp: avoid conflict with C++ keyword template
16011         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
16012         * lib/mkostemp.c (mkostemp): Likewise.
16013         * lib/mkostemps.c (mkostemps): Likewise.
16014         * lib/mkstemp.c (mkstemp): Likewise.
16015         * lib/mkstemps.c (mkstemps): Likewise.
16016
16017         xalloc-die-tests: optimize
16018         * tests/test-xalloc-die.sh: Reduce number of processes.
16019
16020 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16021
16022         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
16023         patch from ludo@gnu.org (Ludovic Courtès).
16024
16025 2009-11-17  Jim Meyering  <meyering@redhat.com>
16026
16027         version-etc: use proper license string
16028         * modules/version-etc (License): Use LGPL, not LGPLv3+.
16029         * modules/version-etc-fsf: Likewise.
16030
16031 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16032
16033         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
16034         printed to stdout.  Deal with EOL differences.
16035
16036 2009-11-17  Eric Blake  <ebb9@byu.net>
16037
16038         unsetenv: work around Solaris bug
16039         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
16040         * lib/unsetenv.c (rpl_unsetenv): Work around it.
16041         Reported by Jim Meyering.
16042
16043         vasnprintf: avoid compiler warnings
16044         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
16045         variables.
16046         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
16047
16048 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16049
16050         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
16051         settings since xalloc-die is no longer the self test,
16052         xalloc-die.sh is.
16053
16054 2009-11-17  Jim Meyering  <meyering@redhat.com>
16055
16056         test-xalloc-die.sh: make the code agree with the commit log
16057         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
16058         at the end, just in case you happen to have a test-xalloc-die
16059         program in some other PATH directory.
16060
16061         test-xalloc-die.sh: fix a portability bug
16062         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
16063         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
16064         Otherwise, argv[0] (as often seen in diagnostics) would be too
16065         system-dependent, sometimes with, and sometimes without the leading "./".
16066
16067         version-etc-fsf: relax license to LGPLv3+
16068         * modules/version-etc-fsf (License): Relax license.
16069
16070 2009-11-16  Eric Blake  <ebb9@byu.net>
16071
16072         xalloc-die-tests: avoid printing null pointer
16073         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
16074         shell script.
16075         * tests/test-xalloc-die.c (program_name): Declare.
16076         * tests/test-xalloc-die.sh (tmpfiles): New file.
16077
16078         setenv, unsetenv: work around various bugs
16079         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
16080         (setenv) [HAVE_SETENV]: Work around bugs.
16081         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
16082         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
16083         for bugs.
16084         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
16085         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
16086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
16087         * modules/stdlib (Makefile.am): Update substitutions.
16088         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
16089         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
16090         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16091         * modules/setenv-tests: New test.
16092         * modules/unsetenv-tests: Likewise.
16093         * tests/test-setenv.c: New file.
16094         * tests/test-unsetenv.c: Likewise.
16095
16096 2009-11-16  Jim Meyering  <meyering@redhat.com>
16097
16098         version-etc: relax license to LGPLv3+
16099         * modules/version-etc (License): Relax license.
16100
16101         better AC_REQUIRE expanded-before-required-warning avoidance
16102         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
16103         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
16104         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
16105         which is no longer needed.
16106
16107 2009-11-16  Eric Blake  <ebb9@byu.net>
16108
16109         test-freading: clean up temporary file
16110         * tests/test-freading.c (main): Remove file on success, and use
16111         ASSERT more liberally.
16112         Reported by Jim Meyering.
16113
16114 2009-11-16  Jim Meyering  <meyering@redhat.com>
16115
16116         avoid new AC_REQUIRE expanded-before-required warnings
16117         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
16118         merely using it.
16119         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
16120         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
16121
16122 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16123
16124         * tests/test-xalloc-die.c: New file.
16125         * modules/xalloc-die-tests: New file.
16126         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
16127         XFAIL_TESTS so it can be appended by modules.
16128
16129 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16130
16131         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
16132         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
16133
16134 2009-11-14  Eric Blake  <ebb9@byu.net>
16135
16136         fnmatch: avoid compiler warning
16137         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
16138         to silence compiler warning about mismatch signedness in ?:.
16139         Reported by Robert Millan.
16140
16141         intprops: add double-inclusion guard
16142         * lib/intprops.h: Allow idempotent includes.
16143         Suggested by Bruce Korb.
16144
16145         openat: detect Solaris fchownat bug
16146         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
16147         penalizing glibc chownat when only lchownat is broken.
16148         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
16149         trailing slash bugs.
16150         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
16151         * modules/openat-tests (Files): Include more files.
16152         (Depends-on): Add mgetgroups, sleep, stat-time.
16153         (configure.ac): Add additional checks.
16154         (Makefile.am): Build new test.
16155         * tests/test-fchownat.c: New file.
16156
16157         lchown: detect Solaris and FreeBSD bug
16158         * lib/lchown.c (rpl_lchown): Work around bug.
16159         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
16160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16161         * modules/unistd (Makefile.am): Populate it.
16162         * lib/unistd.in.h (lchown): Update declaration.
16163         * doc/posix-functions/lchown.texi (lchown): Document the bug.
16164         * modules/lchown-tests: New file.
16165         * tests/test-lchown.h (test_lchown): Likewise.
16166         * tests/test-lchown.c (main): Likewise.
16167
16168         chown: detect Solaris and FreeBSD bug
16169         * lib/chown.c (rpl_chown): Work around bug.
16170         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
16171         (gl_PREREQ_CHOWN): Delete.
16172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16173         * modules/unistd (Makefile.am): Populate it.
16174         * lib/unistd.in.h (chown): Update declaration.
16175         * lib/lchown.c (chown): Update client.
16176         * modules/lchown (Depends-on): Add lstat.
16177         * doc/posix-functions/chown.texi (chown): Document the bug.
16178         * doc/posix-functions/getgroups.texi (getgroups): Document
16179         getgroups pitfall.
16180         * modules/chown-tests: New file.
16181         * tests/test-chown.h (test_chown): Likewise.
16182         * tests/test-chown.c (main): Likewise.
16183
16184 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
16185
16186         gnulib-tool: correctly detect absence of m4 directories
16187         * gnulib-tool: Avoid extra newline on data passed to wc -l.
16188
16189 2009-11-14  Jim Meyering  <meyering@redhat.com>
16190
16191         maint.mk: Prohibit inclusion of "xalloc.h" without use.
16192         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16193
16194 2009-11-14  John W. Eaton  <jwe@gnu.org>
16195
16196         strftime.h: wrap funtion declaration in extern "C" block
16197         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
16198
16199 2009-11-13  Eric Blake  <ebb9@byu.net>
16200
16201         getgroups: avoid compiler warning
16202         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
16203
16204         getgroups: work around FreeBSD bug
16205         * lib/getgroups.c (rpl_getgroups): Work around the bug.
16206         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
16207         * doc/posix-functions/getgroups.texi (getgroups): Document it.
16208         * tests/test-getgroups.c (main): Fix buffer overrun.
16209
16210         getgroups: avoid compilation failure
16211         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
16212         * modules/getgroups (Depends-on): Add stdint.
16213
16214 2009-11-13  Jim Meyering  <meyering@redhat.com>
16215
16216         test-getgroups: avoid compilation failure
16217         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
16218
16219 2009-11-13  Eric Blake  <ebb9@byu.net>
16220
16221         mgetgroups: new module, taken from coreutils
16222         * modules/mgetgroups: New file.
16223         * lib/mgetgroups.h: Likewise.
16224         * lib/mgetgroups.c (mgetgroups): Likewise.
16225         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
16226         * MODULES.html.sh (Users and groups): Mention it.
16227
16228         getgroups: don't expose GETGROUPS_T to user
16229         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
16230         an element at a time if GETGROUPS_T is wrong size.
16231         * lib/getugroups.h (getugroups): Change signature.
16232         * lib/unistd.in.h (getgroups): Likewise.
16233         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
16234         signature needs fixing.
16235         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
16236         AC_TYPE_GETGROUPS.
16237         * modules/group-member (Depends-on): Add getgroups.
16238         * lib/group-member.c (group_info, get_group_info): Use gid_t.
16239         (group_member): Rely on getgroups replacement.
16240         * lib/getugroups.c (getugroups): Use gid_t.
16241         * tests/test-getgroups.c (main): Likewise.
16242         * NEWS: Mention the signature change.
16243         * doc/posix-functions/getgroups.texi (getgroups): Mention the
16244         problem with signature.
16245         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
16246         GETGROUPS_T is still useful for setgroups.
16247
16248         getgroups, getugroups: provide stubs for mingw
16249         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
16250         * lib/getugroups.c (getugroups): Likewise.
16251         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
16252         function.  Modernize replacement scheme.
16253         (gl_PREREQ_GETGROUPS): Delete.
16254         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
16255         * modules/getgroups (configure.ac): Declare witness.
16256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16257         * modules/unistd (Depends-on): Substitute witness.
16258         * lib/unistd.in.h (getgroups): Declare replacement.
16259
16260         getgroups: avoid calling exit
16261         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
16262         drop xalloc.
16263         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
16264         dependencies.
16265         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
16266         exiting, in the rare case of malloc failure.
16267
16268         getgroups: fix logic error
16269         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
16270         has more than 20 groups.
16271         * modules/getgroups-tests: New test.
16272         * tests/test-getgroups.c: New file.
16273
16274 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16275
16276         * tests/test-base64.c: Improve.
16277
16278 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16279
16280         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
16281         Blake <ebb9@byu.net>.
16282
16283 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16284
16285         * tests/test-xvasprintf.c: Add %s%s related checks.
16286
16287 2009-11-12  Eric Blake  <ebb9@byu.net>
16288
16289         version-etc: match standards.texi style
16290         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
16291         and use <> only for URLs.
16292
16293 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
16294
16295         fts: do not fail on a submount during traversal
16296         * lib/fts.c (fts_build): Read the stat info again after opening
16297         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
16298         Original report at http://bugzilla.redhat.com/501848.
16299
16300 2009-11-12  Jim Meyering  <meyering@redhat.com>
16301
16302         bootstrap: sync from coreutils
16303         * build-aux/bootstrap (bootstrap_epilogue): New function.
16304         Use git_modules_config in one more place.  This make bootstrap's
16305         --gnulib-srcdir option more useful for testing.
16306
16307         bootstrap: generalize autoheader check
16308         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
16309         AC_CONFIG_HEADERS.
16310
16311 2009-11-11  Eric Blake  <ebb9@byu.net>
16312
16313         mkfifoat: use new modules for Solaris and BSD bugs
16314         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
16315         * lib/mkfifoat.c (mknodat): Split...
16316         * lib/mknodat.c (mknodat): ...into new file.
16317         * modules/mkfifoat (Files): Ship new file.
16318         (Depends-on): Add mkfifo, mknod.
16319         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
16320         (Depends-on): Add symlink.
16321         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
16322         redundant with test_mkfifo.h.
16323         (do_mkfifoat, do_mknodat): New helpers.
16324
16325         mknod: new module
16326         * modules/mknod: New file.
16327         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16328         * lib/mknod.c (mknod): Likewise.
16329         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16330         defaults.
16331         * modules/sys_stat (Makefile.am): Substitute them.
16332         * lib/sys_stat.in.h (mknod): Declare replacement.
16333         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16334         Document it.
16335         * doc/posix-functions/mknod.texi (mknod): Likewise.
16336         * modules/mknod-tests: New test.
16337         * tests/test-mknod.c: Likewise.
16338
16339         mkfifo: new module
16340         * modules/mkfifo: New file.
16341         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16342         * lib/mkfifo.c (mkfifo): Likewise.
16343         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16344         defaults.
16345         * modules/sys_stat (Makefile.am): Substitute them.
16346         * lib/sys_stat.in.h (mkfifo): Declare replacement.
16347         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16348         Document it.
16349         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
16350         * modules/mkfifo-tests: New test.
16351         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
16352         from test-mkfifoat.c.
16353         * tests/test-mkfifo.c: New file.
16354
16355         readlink: detect FreeBSD bug
16356         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
16357         slash on symlink.
16358         * doc/posix-functions/readlink.texi (readlink): Document the bug.
16359         * tests/test-readlink.h (test_readlink): Enhance test.
16360
16361         symlink: detect FreeBSD bug
16362         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
16363         slash on symlink.
16364         * doc/posix-functions/symlink.texi (symlink): Document the bug.
16365         * tests/test-symlink.h (test_symlink): Enhance test.
16366
16367 2009-11-10  Eric Blake  <ebb9@byu.net>
16368
16369         link: detect FreeBSD bug
16370         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
16371         symlink.
16372         * doc/posix-functions/link.texi (link): Document the bug.
16373         * tests/test-link.h (test_link): Enhance test.
16374         * tests/test-linkat.c (main): Update caller.
16375
16376         unlink, remove: detect FreeBSD bug
16377         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
16378         slash on symlink.
16379         * doc/posix-functions/unlink.texi (unlink): Document the bug.
16380         * doc/posix-functions/remove.texi (remove): Likewise.
16381         * tests/test-unlink.h (test_unlink): Enhance test.
16382         * tests/test-remove.c (main): Likewise.
16383
16384 2009-11-09  Eric Blake  <ebb9@byu.net>
16385
16386         rename: detect FreeBSD bug
16387         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
16388         slash on symlink.
16389         * modules/renameat-tests (Depends-on): Add filenamecat.
16390         * tests/test-rename.h (test_rename): Allow one more errno.
16391         * tests/test-renameat.c (main): Likewise.
16392         * doc/posix-functions/rename.texi (rename): Document the bug.
16393
16394         open: detect FreeBSD bug
16395         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16396         symlink.
16397         * doc/posix-functions/open.texi (open): Document the bug.
16398         * doc/posix-functions/utimes.texi (utimes): Likewise.
16399         * tests/test-open.h (test_open): Add parameters, and test symlink
16400         handling.
16401         * tests/test-open.c (main): Adjust caller.
16402         * tests/test-fcntl-safer.c (main): Likewise.
16403         * modules/open-tests (Depends-on): Add stdbool, symlink.
16404         * modules/fcntl-safer-tests (Depends-on): Likewise.
16405         * tests/test-openat.c (main): Add test-open tests.
16406
16407         stat: detect FreeBSD bug
16408         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16409         symlink.
16410         * doc/posix-functions/stat.texi (stat): Document the bug.
16411         * tests/test-stat.h (test_stat_func): Add argument.
16412         * tests/test-stat.c (main): Adjust caller.
16413         * tests/test-fstatat.c (main): Likewise.
16414         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16415         Reported by Jim Meyering.
16416
16417 2009-11-09  James Youngman  <jay@gnu.org>
16418
16419         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16420         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16421
16422 2009-11-08  Jim Meyering  <meyering@redhat.com>
16423
16424         utimens: remove invalid futimesat call
16425         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16426         It used the file descriptor of the target file as the DIR_FD
16427         parameter and NULL as the file name.  That caused failure with
16428         errno == EFAULT on FreeBSD-8.0-rc2
16429
16430 2009-11-07  Eric Blake  <ebb9@byu.net>
16431
16432         fflush, freadseek: use fseeko, not fseek
16433         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16434         (clear_ungetc_buffer): Avoid potential problems on large files.
16435         * lib/freadseek.c (freadseek): Likewise.
16436         * modules/freadseek (Depends-on): Add fseeko.
16437         * modules/fseek (configure.ac): Set a witness.
16438         * tests/test-fflush.c (main): Use fseeko.
16439         * tests/test-fpurge.c (fseek): Disable link warning.
16440         * tests/test-freadable.c (fseek): Likewise.
16441         * tests/test-freading.c (fseek): Likewise.
16442         * tests/test-fseeko.c (fseek): Likewise.
16443         * tests/test-ftell.c (fseek): Likewise.
16444         * tests/test-ftello.c (fseek): Likewise.
16445         * tests/test-fwritable.c (fseek): Likewise.
16446         * tests/test-fwriting.c (fseek): Likewise.
16447
16448 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16449
16450         * modules/memchr (Depends-on): Drop getpagesize dependency.
16451
16452 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16453
16454         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16455         Reported by Ludovic Courtès.
16456         * build-aux/pmccabe2html: Improve example usage.
16457         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16458
16459 2009-11-06  Jim Meyering  <meyering@redhat.com>
16460
16461         do-release-commit-and-tag: New module.
16462         Automate the release-commit and tag process.
16463         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16464         * modules/do-release-commit-and-tag: New file.
16465         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16466
16467 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16468
16469         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16470         because test-select.c uses inet_pton.
16471
16472 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16473
16474         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16475         GETADDRINFO_LIB.  Bump serial number.
16476         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16477         Suggested by Eric Blake <ebb9@byu.net>.
16478
16479 2009-11-05  Eric Blake  <ebb9@byu.net>
16480
16481         strtod: detect darwin bug
16482         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16483         Reported by Leo Davis.
16484
16485         freopen-safer: new module
16486         * modules/freopen-safer: New module.
16487         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16488         * lib/freopen-safer.c (freopen_safer): New file.
16489         * lib/stdio-safer.h (freopen_safer): New declaration.
16490         * lib/stdio--.h (freopen): New override.
16491         * MODULES.html.sh (File stream based Input/Output): Mention it.
16492         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16493         freopen-safer module.
16494         * doc/posix-functions/stderr.texi (stderr): Likewise.
16495         * doc/posix-functions/stdin.texi (stdin): Likewise.
16496         * doc/posix-functions/stdout.texi (stdout): Likewise.
16497         * modules/freopen-safer-tests: New test.
16498         * tests/test-reopen-safer.c: New file.
16499
16500 2009-11-05  Jim Meyering  <meyering@redhat.com>
16501
16502         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16503         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16504
16505 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16506
16507         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16508
16509 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16510
16511         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16512
16513 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16514
16515         Fix link error.
16516         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16517         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16518
16519 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16520
16521         * tests/test-func.c: Also test value of __func__.
16522
16523 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16524
16525         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16526         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16527
16528 2009-11-05  Bruno Haible  <bruno@clisp.org>
16529
16530         Fix link error.
16531         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16532         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16533         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16534
16535 2009-11-05  Bruno Haible  <bruno@clisp.org>
16536
16537         Tests for module 'inet_pton'.
16538         * modules/inet_pton-tests: New file.
16539         * tests/test-inet_pton.c: New file.
16540
16541 2009-11-05  Bruno Haible  <bruno@clisp.org>
16542
16543         Tests for module 'inet_ntop'.
16544         * modules/inet_ntop-tests: New file.
16545         * tests/test-inet_ntop.c: New file.
16546
16547 2009-11-04  Eric Blake  <ebb9@byu.net>
16548
16549         stdlib-safer: wrap all mkstemp variants
16550         * modules/mkostemp (configure.ac): Set witness.
16551         * modules/mkostemps (configure.ac): Likewise.
16552         * modules/mkstemps (configure.ac): Likewise.
16553         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16554         (mkstemps_safer): Wrap more functions.
16555         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16556         wrapping.
16557         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16558         (mkstemps_safer): Implement the wrappers.
16559
16560         mkstemps, mkostemps: new modules
16561         * modules/mkostemps: New module.
16562         * modules/mkstemps: Likewise.
16563         * lib/mkostemps.c (mkostemps): New file.
16564         * lib/mkstemps.c (mkstemps): Likewise.
16565         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16566         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16568         * modules/stdlib (Makefile.am): Substitute them.
16569         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16570         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16571         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16572         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16573         * MODULES.html.sh (File system functions): Mention them.
16574
16575         tempname: resync from glibc
16576         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16577         same values for __GT_FILE as glibc.  Abort even when assertions
16578         are disabled.
16579         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16580         match its value otherwise.  Allow idempotent inclusion.
16581         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16582         * lib/mkostemp.c (mkostemp): Likewise.
16583         * lib/mkstemp.c (mkstemp): Likewise.
16584         * lib/tmpfile.c (tmpfile): Likewise.
16585         * NEWS: Document this.
16586
16587         utimens: fix use of futimens on older Linux
16588         * lib/utimens.c (fdutimens): Use updated, rather than original,
16589         timespec to avoid bug in older Linux kernel.
16590         Reported by Simon Josefsson.
16591
16592 2009-11-04  Bruno Haible  <bruno@clisp.org>
16593
16594         Make num_processors more flexible and consistent.
16595         * lib/nproc.h (enum nproc_query): New type.
16596         (num_processors): Add a 'query' argument.
16597         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16598         (num_processors): Add a 'query' argument. Test the value of the
16599         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16600         mingw, count the number of CPUs available for the current process.
16601         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16602         Check for sched_getaffinity and sched_getaffinity_np.
16603         * modules/nproc (Depends-on): Add c-ctype, extensions.
16604         * NEWS: Mention the change.
16605
16606 2009-11-03  Bruno Haible  <bruno@clisp.org>
16607
16608         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16609
16610 2009-11-03  Jim Meyering  <meyering@redhat.com>
16611
16612         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16613         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16614         if it is defined.
16615
16616 2009-11-02  Eric Blake  <ebb9@byu.net>
16617
16618         mktime, timegm: share common declaration
16619         * lib/mktime-internal.h: New file.
16620         * lib/mktime.c: Use it rather than open-coding a declaration.
16621         * lib/timegm.c: Likewise.
16622         * modules/mktime (Files): Ship it.
16623         * modules/timegm (Files): Likewise.
16624         Suggested by Bruno Haible.
16625
16626         test-update-copyright: update test to match script changes
16627         * tests/test-update-copyright.sh: Avoid hard-coding perl
16628         location.  Don't update *.bak created by earlier runs.
16629
16630 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16631             Simon Josefsson  <simon@josefsson.org>
16632             Bruno Haible  <bruno@clisp.org>
16633
16634         Fix link error on Solaris 8.
16635         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16636         also in libnsl. Define also INET_PTON_LIB.
16637         * modules/inet_pton (Link): New section.
16638
16639 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16640             Bruno Haible  <bruno@clisp.org>
16641
16642         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16643         * modules/inet_ntop (Link): New section.
16644         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16645
16646 2009-11-02  Eric Blake  <ebb9@byu.net>
16647
16648         maint: avoid compiler warnings in m4 macros
16649         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16650         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16651
16652 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16653
16654         * m4/pmccabe2html.m4: Remove file.
16655         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16656         function.  Change maintainer.
16657         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16658         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16659         Courtès).
16660
16661 2009-10-31  Eric Blake  <ebb9@byu.net>
16662
16663         fseeko: fix m4 regression
16664         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16665         regression from 2009-10-27.
16666         Reported by Ralf Wildenhues.
16667
16668 2009-10-31  Jim Meyering  <meyering@redhat.com>
16669
16670         inttostr: aesthetics and improved (compile-time) safety
16671         Define inttype_is_signed rather than inttype_is_unsigned,
16672         since the sole use is via "#if inttype_is_signed".
16673         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
16674         inttype_is_unsigned.
16675         * lib/offtostr.c (inttype_is_signed): Likewise.
16676         * lib/uinttostr.c (inttype_is_signed): Likewise.
16677         * lib/umaxtostr.c (inttype_is_signed): Likewise.
16678         * lib/inttostr.c (inttostr): Use verify to cross-check the
16679         inttype_is_signed value and the signedness of the actual type.
16680         * modules/inttostr (Depends-on): Add verify.
16681
16682 2009-10-30  Eric Blake  <ebb9@byu.net>
16683
16684         build: avoid compiler warnings
16685         * lib/fchmodat.c (lchmod): Mark unused variables.
16686         * lib/getopt.c (_getopt_initialize): Likewise.
16687         * lib/mktime.c (__mktime_internal): Provide prototype.
16688         * lib/inttostr.c (inttostr): Avoid compiler warning even with
16689         older gcc that do not understand #pragma GCC diagnostic.
16690         * lib/uinttostr.c (inttype_is_unsigned): Define.
16691         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
16692
16693 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16694
16695         stat: fix compilation on AIX
16696         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
16697         only see struct stat64.
16698
16699 2009-10-30  Eric Blake  <ebb9@byu.net>
16700
16701         exclude: make more robust
16702         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
16703         rather than masking a coding bug.
16704         Suggested by Bruno Haible.
16705
16706 2009-10-30  Jim Meyering  <meyering@redhat.com>
16707
16708         perl scripts: remove #!/usr/bin/perl in favor of more portable...
16709         Rather than putting #!/usr/bin/perl on the first line,
16710         start with a variant of what's recommended by "man perlrun" that
16711         invokes the first "perl" program from your shell's search path.
16712         * build-aux/gitlog-to-changelog: Replace #!... as above.
16713         Add a "Local Variables" perl mode setting.
16714         Prompted by a patch from Ludovic Courtès.
16715         Improved by Eric Blake.
16716         * build-aux/useless-if-before-free: Likewise.
16717         * build-aux/announce-gen: Likewise.
16718         * build-aux/update-copyright: Likewise.
16719
16720 2009-10-29  Eric Blake  <ebb9@byu.net>
16721
16722         filenamecat-lgpl: adjust clients
16723         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
16724         filenamecat.
16725         * modules/renameat (Depends-on): Likewise.
16726
16727         filenamecat: split into filenamecat-lgpl
16728         * modules/filenamecat-lgpl: New module.
16729         * modules/filenamecat (Files): Move library-safe files into
16730         filenamecat-lgpl.
16731         (Depends-on): Add filenamecat-lgpl.
16732         (configure.ac): Declare witness.
16733         * lib/filenamecat.h (file_name_concat): Only declare when using
16734         GPL module.
16735         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
16736         Move...
16737         * lib/filenamecat-lgpl.c: ...into new file.
16738         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
16739         (gl_FILE_NAME_CONCAT): Use it.
16740         * MODULES.html.sh (File system functions): Mention new module.
16741
16742         argp: avoid memory leak
16743         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
16744         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
16745         base_name, since the latter malloc()s and can call exit().
16746         Leak introduced 2006-07-03.
16747
16748         dirname-lgpl: adjust clients that don't need full dirname
16749         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
16750         * modules/filenamecat (Depends-on): Likewise.
16751         * modules/linkat (Depends-on): Likewise.
16752         * modules/mkancesdirs (Depends-on): Likewise.
16753         * modules/mkdir (Depends-on): Likewise.
16754         * modules/openat (Depends-on): Likewise.
16755         * modules/savewd (Depends-on): Likewise.
16756         * modules/rename (Depends-on): Likewise.
16757         (License): Relax license.
16758         * modules/mkdir-tests (Depends-on): Drop progname.
16759         (Makefile.am): Delete unneeded LDADD.
16760         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
16761
16762         dirname: split into dirname-lgpl
16763         * modules/dirname-lgpl: New module.
16764         * modules/dirname (Files): Move library-safe files into
16765         dirname-lgpl.
16766         (Depends-on): Add dirname-lgpl.
16767         (configure.ac): Declare witness.
16768         * modules/double-slash-root (License): Relax license.
16769         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
16770         module.
16771         * lib/dirname.c (dir_len, mdir_name): Move...
16772         * lib/dirname-lgpl.c: ...into new file.
16773         * lib/basename.c (last_component, base_len): Move...
16774         * lib/basename-lgpl.c: ...into new file.
16775         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
16776         (gl_DIRNAME): Use it.
16777         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
16778         Mention new module.
16779         * modules/dirname-tests (Depends-on): Add progname.
16780         * tests/test-dirname.c (program_name): Delete.
16781
16782         mkdir: make safe for libraries
16783         * modules/mkdir (Depends-on): Drop xalloc.
16784         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
16785         exit.
16786
16787         tests: avoid some compiler warnings
16788         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
16789         literals.
16790         * tests/test-memchr.c (main): Avoid type mismatch.
16791         * tests/test-arpa_inet.c (main): Avoid unused parameters.
16792         * tests/test-base64.c (main): Likewise.
16793         * tests/test-getdelim.c (main): Likewise.
16794         * tests/test-gethostname.c (main): Likewise.
16795         * tests/test-getline.c (main): Likewise.
16796         * tests/test-netinet_in.c (main): Likewise.
16797         * tests/test-select.c (open_server_socket, main): Likewise.
16798         * tests/test-select-stdin.c (main): Likewise.
16799         * tests/test-sockets.c (main): Likewise.
16800         * tests/test-strsignal.c (main): Likewise.
16801         * tests/test-sys_select.c (main): Likewise.
16802         * tests/test-sys_socket.c (main): Likewise.
16803         * tests/test-u64.c (main): Likewise.
16804         * tests/test-xfprintf-posix.c (main): Likewise.
16805         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
16806
16807         sockets: avoid compiler warning
16808         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
16809
16810         maint: detect usage(1) and other suspicious exits
16811         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
16812
16813 2009-10-29  Jim Meyering  <meyering@redhat.com>
16814
16815         timespec: long-to-int truncation could make timespec_cmp malfunction
16816         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
16817         a multiple of 2^32 nanoseconds as no difference.
16818
16819 2009-10-28  Jim Meyering  <meyering@redhat.com>
16820
16821         fprintftime: wrap macro code argument in "do {...} while(0)"
16822         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
16823         cpy macro must be a statement that can be followed by a semicolon.
16824         Now that the else clause contains a comment and is hence longer
16825         than one line, I require curly braces.  That in turn requires
16826         that we wrap this code block in the standard do...while(0).
16827
16828         fprintftime: remove stray semicolon from previous change
16829         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
16830
16831         fprintftime: avoid a warning about ignored fwrite return value
16832         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
16833         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
16834         that is unsafe.
16835         * modules/fprintftime (Depends-on): Add ignore-value.
16836
16837         exclude: avoid an unwarranted warning
16838         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16839
16840 2009-10-27  Eric Blake  <ebb9@byu.net>
16841
16842         fseek: avoid compilation failure when fflush is replaced
16843         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16844         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16845         module is in use.
16846         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16847         module is not in use; since REPLACE_FSEEK worked otherwise.
16848         (GNULIB_FTELLO): Likewise for ftell.
16849         Reported by Ian Beckwith and others.
16850
16851 2009-10-27  Bruno Haible  <bruno@clisp.org>
16852
16853         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16854         Reported by Jim Meyering.
16855
16856 2009-10-27  Jim Meyering  <jim@meyering.net>
16857             Bruno Haible  <bruno@clisp.org>
16858
16859         Avoid warning despite dropping the return value of fwrite.
16860         * lib/unicodeio.c: Include ignore-value.h.
16861         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16862         * modules/unicodeio (Depends-on): Add ignore-value.
16863
16864 2009-10-26  Eric Blake  <ebb9@byu.net>
16865
16866         areadlinkat: fix fallback path
16867         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16868         pointer and zero.
16869
16870 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16871
16872         Use a better IO block size for modern systems
16873         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16874         * lib/md2.c: Likewise.
16875         * lib/md4.c: Likewise.
16876         * lib/md5.c: Likewise.
16877         * lib/sha1.c: Likewise.
16878         * lib/sha256.c: Likewise.
16879         * lib/sha512.c: Likewise.
16880
16881 2009-10-22  Eric Blake  <ebb9@byu.net>
16882
16883         tests: avoid several compiler warnings
16884         * tests/test-getcwd.c (main): Avoid buffer underflow.
16885         * tests/test-getdate.c (main): String literals are not safe with
16886         putenv, so use setenv.  Declare unused argument.
16887         * modules/getdate-tests (Depends-on): Add setenv.
16888         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16889         problems with string literals in char *.
16890         * tests/test-hash.c (main): Avoid shadowing declaration.
16891         (insert_new): Treat string literals as char const *.
16892         * tests/test-getopt.h (test_getopt): Likewise.
16893         (getopt_loop): Alter types to minimize casting elsewhere.
16894         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16895         (test_getopt_long_posix): Likewise.
16896         (do_getopt_long): Add wrapper to minimize casting.
16897         * tests/test-atexit.c (clear_temp_file): Use void.
16898         * tests/test-areadlink-with-size.c (main): Declare unused
16899         arguments.
16900         * tests/test-areadlink.c (main): Likewise.
16901         * tests/test-areadlinkat-with-size.c (main): Likewise.
16902         * tests/test-areadlinkat.c (main): Likewise.
16903         * tests/test-canonicalize-lgpl.c (main): Likewise.
16904         * tests/test-canonicalize.c (main): Likewise.
16905         * tests/test-dirent-safer.c (main): Likewise.
16906         * tests/test-dirname.c (main): Likewise.
16907         * tests/test-dup2.c (main): Likewise.
16908         * tests/test-fchdir.c (main): Likewise.
16909         * tests/test-fcntl-h.c (main): Likewise.
16910         * tests/test-fcntl-safer.c (main): Likewise.
16911         * tests/test-fdopendir.c (main): Likewise.
16912         * tests/test-fdutimensat.c (main): Likewise.
16913         * tests/test-fflush.c (main): Likewise.
16914         * tests/test-filenamecat.c (main): Likewise.
16915         * tests/test-filevercmp.c (main): Likewise.
16916         * tests/test-fopen-safer.c (main): Likewise.
16917         * tests/test-fopen.c (main): Likewise.
16918         * tests/test-fpending.c (main): Likewise.
16919         * tests/test-fpurge.c (main): Likewise.
16920         * tests/test-freading.c (main): Likewise.
16921         * tests/test-fstatat.c (main): Likewise.
16922         * tests/test-fsync.c (main): Likewise.
16923         * tests/test-futimens.c (main): Likewise.
16924         * tests/test-getndelim2.c (main): Likewise.
16925         * tests/test-gettimeofday.c (main): Likewise.
16926         * tests/test-getopt.c (main): Likewise.
16927         * tests/test-i-ring.c (main): Likewise.
16928         * tests/test-inttypes.c (main): Likewise.
16929         * tests/test-link.c (main): Likewise.
16930         * tests/test-lstat.c (main): Likewise.
16931         * tests/test-math.c (main): Likewise.
16932         * tests/test-md5.c (main): Likewise.
16933         * tests/test-memchr2.c (main): Likewise.
16934         * tests/test-memrchr.c (main): Likewise.
16935         * tests/test-mkdir.c (main): Likewise.
16936         * tests/test-mkdirat.c (main): Likewise.
16937         * tests/test-mkfifoat.c (main): Likewise.
16938         * tests/test-open.c (main): Likewise.
16939         * tests/test-openat-safer.c (main): Likewise.
16940         * tests/test-openat.c (main): Likewise.
16941         * tests/test-quotearg.c (main): Likewise.
16942         * tests/test-rawmemchr.c (main): Likewise.
16943         * tests/test-readlink.c (main): Likewise.
16944         * tests/test-remove.c (main): Likewise.
16945         * tests/test-rename.c (main): Likewise.
16946         * tests/test-renameat.c (main): Likewise.
16947         * tests/test-rmdir.c (main): Likewise.
16948         * tests/test-sha1.c (main): Likewise.
16949         * tests/test-signal.c (main): Likewise.
16950         * tests/test-sigaction.c (main): Likewise.
16951         * tests/test-stat.c (main): Likewise.
16952         * tests/test-stat-time.c (main): Likewise.
16953         * tests/test-stddef.c (main): Likewise.
16954         * tests/test-stdint.c (main): Likewise.
16955         * tests/test-stdio.c (main): Likewise.
16956         * tests/test-stdlib.c (main): Likewise.
16957         * tests/test-strchrnul.c (main): Likewise.
16958         * tests/test-strerror.c (main): Likewise.
16959         * tests/test-string.c (main): Likewise.
16960         * tests/test-strtod.c (main): Likewise.
16961         * tests/test-strverscmp.c (main): Likewise.
16962         * tests/test-symlink.c (main): Likewise.
16963         * tests/test-symlinkat.c (main): Likewise.
16964         * tests/test-sys_stat.c (main): Likewise.
16965         * tests/test-sys_time.c (main): Likewise.
16966         * tests/test-time.c (main): Likewise.
16967         * tests/test-unistd.c (main): Likewise.
16968         * tests/test-unlink.c (main): Likewise.
16969         * tests/test-unlinkat.c (main): Likewise.
16970         * tests/test-utimens.c (main): Likewise.
16971         * tests/test-utimensat.c (main): Likewise.
16972         * tests/test-version-etc.c (main): Likewise.
16973         * tests/test-wchar.c (main): Likewise.
16974         * tests/test-wctype.c (main): Likewise.
16975         * tests/test-xprintf-posix.c (main): Likewise.
16976         * tests/test-posixtm.c (main): Likewise.
16977         (STREQ): Delete unused macro.
16978         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16979         shadowed variables.
16980         * tests/test-memchr.c (main): Likewise.
16981
16982 2009-10-21  Eric Blake  <ebb9@byu.net>
16983
16984         areadlinkat: avoid failure on older glibc
16985         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16986         rather than mis-comparing 0 against FUNC_RESULT of char*.
16987
16988 2009-10-21  Bruno Haible  <bruno@clisp.org>
16989
16990         * modules/stpncpy (License): Relicense under LGPLv2+.
16991         Reported by David Lutterkort <lutter@redhat.com>.
16992
16993 2009-10-20  Eric Blake  <ebb9@byu.net>
16994
16995         utimensat: work around Solaris 9 bug
16996         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16997         has trailing slash bugs.
16998         * tests/test-lutimens.h (test_lutimens): Enhance test.
16999         * tests/test-utimens.h (test_utimens): Likewise.
17000         * doc/posix-functions/utime.texi (utime): Enhance documentation.
17001         * doc/posix-functions/utimes.texi (utimes): Likewise.
17002         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17003         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
17004         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
17005         * doc/posix-functions/futimens.texi (futimens): Likewise.
17006
17007         fdutimensat: new module
17008         * modules/fdutimensat: New file.
17009         * lib/fdutimensat.c (fdutimensat): Likewise.
17010         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
17011         * MODULES.html.sh (File system functions): Mention module.
17012         * modules/fdutimensat-tests: New test.
17013         * tests/test-fdutimensat.c: Likewise.
17014
17015         doc: regenerate INSTALL
17016         * doc/INSTALL: Reflect recent autoconf update.
17017         * doc/INSTALL.ISO: Likewise.
17018         * doc/INSTALL.UTF-8: Likewise.
17019
17020 2009-10-20  Pádraig Brady  <P@draigBrady.com>
17021
17022         acl: warn if ACL support is not detected
17023         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
17024
17025 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
17026
17027         * lib/nproc.h: Add extern "C" block for C++.
17028
17029 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
17030             Bruno Haible  <bruno@clisp.org>
17031
17032         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
17033         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
17034         * doc/posix-functions/isalpha.texi: Likewise.
17035         * doc/posix-functions/isblank.texi: Likewise.
17036         * doc/posix-functions/iscntrl.texi: Likewise.
17037         * doc/posix-functions/isdigit.texi: Likewise.
17038         * doc/posix-functions/isgraph.texi: Likewise.
17039         * doc/posix-functions/islower.texi: Likewise.
17040         * doc/posix-functions/isprint.texi: Likewise.
17041         * doc/posix-functions/ispunct.texi: Likewise.
17042         * doc/posix-functions/isspace.texi: Likewise.
17043         * doc/posix-functions/isupper.texi: Likewise.
17044         * doc/posix-functions/isxdigit.texi: Likewise.
17045
17046 2009-10-18  Bruno Haible  <bruno@clisp.org>
17047
17048         Tests for module 'isblank'.
17049         * modules/isblank-tests: New file.
17050         * tests/test-isblank.c: New file.
17051
17052         New module 'isblank'.
17053         * lib/isblank.c: New file.
17054         * m4/isblank.m4: New file.
17055         * modules/isblank: New file.
17056         * doc/posix-functions/isblank.texi: Mention the new module.
17057
17058 2009-10-18  Bruno Haible  <bruno@clisp.org>
17059
17060         New module 'ctype'.
17061         * lib/ctype.in.h: New file.
17062         * m4/ctype.m4: New file.
17063         * modules/ctype: New file.
17064         * doc/posix-headers/ctype.texi: Mention the new module.
17065
17066 2009-10-18  Jim Meyering  <meyering@redhat.com>
17067
17068         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
17069         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
17070         right after its initialization, rather than farther down.
17071         Keeping these in close proximity makes it easier to ensure
17072         that each such variable is initialized.  E.g.,
17073
17074             LIB_CLOCK_GETTIME=
17075             AC_SUBST([LIB_CLOCK_GETTIME])
17076
17077         This change also increments these serial numbers.
17078         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
17079         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17081
17082 2009-10-18  Bruno Haible  <bruno@clisp.org>
17083
17084         Don't let environment variables perturb build.
17085         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
17086         (gl_PREREQ_GETHRXTIME): ... not here.
17087
17088 2009-10-18  Bruno Haible  <bruno@clisp.org>
17089
17090         Avoid symlink attack in localcharset module.
17091         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
17092         (O_NOFOLLOW): Define fallback.
17093         (get_charset_aliases): Don't open the file if it is a symbolic link.
17094         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
17095         gl_FCNTL_H.
17096         (gl_FCNTL_H): Require it.
17097         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
17098         * modules/localcharset (Files): Add m4/fcntl_h.m4.
17099         Reported by Fergal Glynn <fglynn@veracode.com>.
17100
17101 2009-10-18  Bruno Haible  <bruno@clisp.org>
17102
17103         Implement nproc for mingw.
17104         * lib/nproc.c: Include <windows.h>
17105         (num_processors): On native Windows platforms, try GetSystemInfo.
17106
17107 2009-10-18  Bruno Haible  <bruno@clisp.org>
17108
17109         Implement nproc for IRIX.
17110         * lib/nproc.c: Include <sys/sysmp.h>.
17111         (num_processors): On IRIX systems, try sysmp.
17112         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
17113
17114 2009-10-18  Bruno Haible  <bruno@clisp.org>
17115
17116         Implement nproc for HP-UX.
17117         * lib/nproc.c: Include <sys/pstat.h>
17118         (num_processors): On HP-UX systems, try pstat_getdynamic.
17119         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
17120         pstat_getdynamic.
17121
17122 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
17123             Bruno Haible  <bruno@clisp.org>
17124
17125         Implement nproc for NetBSD, OpenBSD.
17126         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
17127         (ARRAY_SIZE): New macro.
17128         (num_processors): On BSD systems, try sysctl of HW_NCPU.
17129         * m4/nproc.m4: New file.
17130         * modules/nproc (Files): Add m4/nproc.m4.
17131         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
17132         (Makefile.am): Instead, augment lib_SOURCES.
17133
17134 2009-10-18  Bruno Haible  <bruno@clisp.org>
17135
17136         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
17137         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
17138         sys/param.h.
17139
17140 2009-10-16  Eric Blake  <ebb9@byu.net>
17141
17142         utimensat: new module
17143         * modules/utimensat: New file.
17144         * lib/utimensat.c (utimensat): Likewise.
17145         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17146         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
17147         so we can work around Linux bugs.
17148         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17149         * modules/sys_stat (Makefile.am): Substitute them.
17150         * lib/sys_stat.in.h (utimensat): Declare it.
17151         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17152         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17153         * modules/utimensat-tests: New test.
17154         * tests/test-utimensat.c: Likewise.
17155
17156         utimens: let lutimens work on non-symlinks
17157         * lib/utimens.c (lutimens): Fall back to utimens rather than
17158         failing with ENOSYS, when file is not a symlink.
17159         (utimens): Reduce redirection.
17160         * tests/test-lutimens.h (test_lutimens): Update test to cover
17161         non-symlinks.
17162         * tests/test-utimens.h (test_utimens): Update test to cover
17163         symlinks.
17164         * tests/test-utimens.c (main): Update caller.
17165
17166         utimens: cache whether utimensat syscall works
17167         * lib/utimens.c (utimensat_works_really): New cache variable.
17168         (fdutimens, lutimens): Use it to avoid failing syscall.
17169
17170         test-stat-time, test-utimens: improve portability
17171         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
17172         ext4 on alpha, and for cygwin.
17173         * tests/test-utimens-common.h: New file.
17174         (nap): Factor delays into single function.
17175         * tests/test-lutimens.h (test_lutimens): Use new header.
17176         * tests/test-futimens.h (test_futimens): Likewise.
17177         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
17178         timestamps to occur from same machine, as was done previously for
17179         test_utimens.
17180         * modules/utimens-tests (Files): Ship new file.
17181         * modules/futimens-tests (Files): Likewise.
17182         Reported in part by Jim Meyering.
17183
17184         sys_stat: sort replacement declarations
17185         * lib/sys_stat.in.h: Sort declarations.
17186         * lib/futimens.c (futimens): Fix typo.
17187
17188 2009-10-15  Jim Meyering  <meyering@redhat.com>
17189
17190         don't let environment settings perturb build
17191         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
17192         could cause a configure-time and/or build-time malfunction.
17193         Typically, a configure-time function-in-library test is performed
17194         via code like this:
17195
17196           LIB_VAR=
17197           AC_SUBST([LIB_VAR])
17198           prefix_saved_LIBS=$LIBS
17199             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
17200                        [test "$ac_cv_search_FUNC" = "none required" ||
17201                         LIB_VAR=$ac_cv_search_FUNC])
17202           LIBS=$prefix_saved_LIBS
17203
17204         However, in each of the files affected by this change, the LIB_VAR=
17205         initialization was omitted.  Thus, when set in the environment, its
17206         value would propagate into generated Makefiles when FUNC is not found
17207         in LIB_NAME.
17208         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
17209         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17211
17212 2009-10-14  Eric Blake  <ebb9@byu.net>
17213
17214         fchdir: avoid infinite recursion in mingw
17215         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
17216         recursing.
17217
17218         test-stat-time: port to mingw
17219         * tests/test-stat-time.c (force_unlink): Return a value.
17220         (test_ctime) [W32]: Fix compilation error.
17221         (nap): Don't call usleep with too large an argument.  Use
17222         force_unlink.
17223         * doc/pastposix-functions/usleep.texi (usleep): Document the
17224         portability issue.
17225
17226 2009-10-13  Jim Meyering  <meyering@redhat.com>
17227
17228         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
17229         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
17230         * modules/pipe-filter-ii: Likewise.
17231         * modules/sys_socket-tests: Likewise.
17232         * modules/tsearch-tests: Likewise.
17233         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
17234         (check): Depend on it.
17235
17236 2009-10-12  Eric Blake  <ebb9@byu.net>
17237
17238         utimens-tests: port to NFS file systems
17239         * tests/test-utimens.h (test_utimens): Refactor utimecmp
17240         comparisons to avoid spurious failures from timestamp drift
17241         between NFS machines.
17242
17243 2009-10-12  Eric Blake  <ebb9@byu.net>
17244
17245         stat-time-tests: minor cleanups
17246         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
17247         * tests/test-stat-time.c (nap): Separate assignment from call.
17248         Suggested by Paolo Bonzini and Bruno Haible.
17249
17250         sys_stat: guarantee struct timespec
17251         * lib/sys_stat.in.h (includes): Always include <time.h>
17252         * modules/sys_stat (Depends-on): Add time.
17253         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
17254         mode_t permission values.
17255         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
17256         get at subsecond timestamps.
17257
17258 2009-10-10  Eric Blake  <ebb9@byu.net>
17259
17260         futimens: new module
17261         * modules/futimens: New file.
17262         * lib/futimens.c (futimens): Likewise.
17263         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
17264         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
17265         we can work around Linux bugs.
17266         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17267         * modules/sys_stat (Makefile.am): Substitute them.
17268         * lib/sys_stat.in.h (futimens): Declare it.
17269         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17270         * doc/posix-functions/futimens.texi (futimens): Likewise.
17271         * modules/futimens-tests: New test.
17272         * tests/test-futimens.c: Likewise.
17273
17274         utimens: introduce fdutimens
17275         * lib/utimens.h (fdutimens): New prototype.
17276         * lib/utimens.c (gl_futimens): Move guts...
17277         (fdutimens): ...to new interface.
17278         * tests/test-utimens.c (do_fdutimens): Use it.
17279
17280         utimens: add UTIME_NOW and UTIME_OMIT support
17281         * lib/utimens.c (validate_timespec, update_timespec): New helper
17282         functions.
17283         (gl_futimens, lutimens): Use them.
17284         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
17285         stdbool, sys_stat.
17286         (Link): Mention resulting library dependency.
17287         * modules/utimecmp (Link): Likewise.
17288         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
17289         (Makefile.am): Pick up library dependency.
17290         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
17291         definition.
17292         * tests/test-sys_stat.c: Test the definitions.
17293         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
17294         * NEWS: Document library dependency.
17295
17296         utimecmp: support symlink timestamps
17297         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
17298         hashing when possible.  Use pathconf when available.
17299         (SYSCALL_RESOLUTION): Recognize tighter resolution.
17300         * modules/utimecmp (Depends-on): Add lstat.
17301
17302         utimens: add lutimens interface
17303         * lib/utimens.c (lutimens): New function.
17304         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
17305         * lib/utimens.h (lutimens): Declare new interface.
17306         * tests/test-utimens.c (main): Enhance test.
17307         * tests/test-lutimens.h (test_lutimens): New file.
17308         * modules/utimens-tests (Files): Distribute it.
17309         (Depends-on): Add symlink.
17310         (configure.ac): Check for usleep.
17311
17312         utimens: validate futimens usage
17313         * lib/utimens.c (gl_futimens): Require valid fd up front, using
17314         fewer syscalls on failure later on.  Avoid compiler warning on
17315         mingw.
17316         * modules/utimens (Depends-on): Add dup2.
17317
17318         utimens: add test
17319         * modules/utimens-tests: New test.
17320         * tests/test-utimens.h: New file.
17321         * tests/test-futimens.h: Likewise.
17322         * tests/test-utimens.c: Likewise.
17323
17324         doc: mention timestamp portability issues
17325         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
17326         instead.
17327         * doc/posix-functions/utime.texi (utime): Likewise.
17328         * doc/posix-functions/utimes.texi (utimes): Likewise.
17329         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
17330         instead.
17331         * doc/posix-functions/futimens.texi (futimens): Mention utimens
17332         module.
17333         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17334         Mention weakness with symlink timestamps.
17335         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
17336         to utimensat/futimens instead.
17337         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
17338
17339         test-dup2: enhance test
17340         * tests/test-dup2.c (main): Also check AT_FDCWD.
17341
17342         test-stat-time: avoid more spurious failures
17343         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
17344         xfs; and avoid race if the two timestamps cross quantization edge.
17345
17346         relocatable: prefer 'file system' over 'filesystem'
17347         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
17348         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
17349         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
17350         * doc/relocatable.texi (Enabling Relocatability): Likewise.
17351         * lib/relocatable.c (compute_curr_prefix): Likewise.
17352
17353 2009-10-10  Jim Meyering  <meyering@redhat.com>
17354
17355         stat-time-tests: check for the usleep function
17356         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
17357
17358 2009-10-10  Bruno Haible  <bruno@clisp.org>
17359
17360         * modules/xnanosleep: Put the Link section after the Include section.
17361
17362 2009-10-09  Eric Blake  <ebb9@byu.net>
17363
17364         dup2: work around FreeBSD 6.1 bug
17365         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
17366         * doc/posix-functions/dup2.texi (dup2): Document it.
17367         Reported by Nelson H. F. Beebe and Jim Meyering.
17368
17369         test-stat-time: port to buggy NFS clients
17370         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
17371         (test_ctime): Also skip test if mtime and ctime are skewed.
17372
17373         maint: prefer 'file system' over 'filesystem'
17374         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17375         * doc/posix-functions/lstat.texi (lstat): Likewise.
17376         * lib/file-has-acl.c (file_has_acl): Likewise.
17377         * lib/fwriteerror.c [TEST]: Likewise.
17378         * tests/test-areadlink.h (test_areadlink): Likewise.
17379         * tests/test-areadlinkat-with-size.c (main): Likewise.
17380         * tests/test-areadlinkat.c (main): Likewise.
17381         * tests/test-canonicalize-lgpl.c (main): Likewise.
17382         * tests/test-canonicalize.c (main): Likewise.
17383         * tests/test-fstatat.c (main): Likewise.
17384         * tests/test-linkat.c (main): Likewise.
17385         * tests/test-lstat.h (test_lstat_func): Likewise.
17386         * tests/test-mkdir.h (test_mkdir): Likewise.
17387         * tests/test-readlink.h (test_readlink): Likewise.
17388         * tests/test-remove.c (main): Likewise.
17389         * tests/test-rename.h (test_rename): Likewise.
17390         * tests/test-renameat.c (main): Likewise.
17391         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17392         * tests/test-symlink.h (test_symlink): Likewise.
17393         * tests/test-symlinkat.c (main): Likewise.
17394         * tests/test-unlink.h (test_unlink_func): Likewise.
17395         * tests/test-unlinkat.c (main): Likewise.
17396
17397         maint: make realtime library usage explicit
17398         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17399         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17400         * modules/settime (Link): Likewise.
17401         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17402
17403         test-stat-time: speed up execution
17404         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17405         warning on mingw.
17406         (nap): New helper function.
17407         (prepare_test): Use it to reduce sleep time.
17408         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17409         execution.
17410         * modules/stat-time-tests (configure.ac): Check for usleep.
17411
17412 2009-10-09  Jim Meyering  <meyering@redhat.com>
17413
17414         selinux-h: always use getfilecon wrappers
17415         * lib/getfilecon.c: New file.
17416         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17417         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17418         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17419         (fgetfilecon): Provide a stub.
17420         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17421         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17422         file unconditionally.
17423         When <selinux/selinux.h> is found, arrange to use wrappers.
17424         * modules/selinux-h (Files): Add getfilecon.c.
17425         (Makefile.am): Substitute include-next-related bits
17426         into the now-always-generated selinux/selinux.h file.
17427         * doc/glibc-functions/lgetfilecon.texi: New file.
17428         * doc/glibc-functions/fgetfilecon.texi: New file.
17429         * doc/glibc-functions/getfilecon.texi: New file.
17430         * doc/glibc-functions/getfilecon-desc.texi: New file.
17431         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17432         which to pull in the new files.
17433         * MODULES.html.sh (Misc): Add selinux-h.
17434
17435 2009-10-08  Jim Meyering  <meyering@redhat.com>
17436
17437         unistd: fix comment typo
17438         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17439
17440 2009-10-08  Eric Blake  <ebb9@byu.net>
17441
17442         areadlink: use SIZE_MAX consistently
17443         * modules/areadlink (Depends-on): Add stdint.
17444         * modules/areadlink-with-size (Depends-on): Likewise.
17445         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17446         gives NULL; drop sys/types, since unistd gives size_t; and add
17447         stdint for SIZE_MAX.
17448         (SIZE_MAX): Rely on headers.
17449         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17450         and add stdint.
17451         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17452         (SIZE_MAX): Likewise.
17453         (INITIAL_BUF_SIZE): Turn into enum.
17454         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17455
17456 2009-10-08  Jim Meyering  <meyering@redhat.com>
17457
17458         areadlinkat: avoid compilation failure
17459         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17460         Fix typo in comment.
17461
17462 2009-10-07  Eric Blake  <ebb9@byu.net>
17463
17464         areadlinkat-with-size: new module
17465         * modules/areadlinkat-with-size: New module.
17466         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17467         * lib/areadlink.h (areadlinkat): Declare it.
17468         * MODULES.html.sh (File system functions): Mention it.
17469         * modules/areadlinkat-with-size-tests: New test.
17470         * tests/test-areadlinkat-with-size.c: New file.
17471
17472         xreadlinkat: new module
17473         * modules/xreadlinkat: New module.
17474         * lib/xreadlinkat.c (xreadlinkat): New file.
17475         * lib/xreadlink.h (xreadlinkat): Declare it.
17476         * MODULES.html.sh (File system functions): Mention it.
17477
17478         areadlinkat: new module
17479         * lib/at-func.c (FUNC_FAIL): New define.
17480         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17481         * modules/areadlinkat: New module.
17482         * lib/linkat.c (areadlinkat): Move...
17483         * lib/areadlinkat.c (areadlinkat): ...to new file.
17484         * lib/areadlink.h (areadlinkat): Declare it.
17485         * modules/linkat (Depends-on): Add areadlinkat.
17486         * MODULES.html.sh (File system functions): Mention it.
17487         * modules/areadlinkat-tests: New test.
17488         * tests/test-areadlinkat.c: New file.
17489
17490         areadlink, areadlink-with-size: add tests
17491         * modules/areadlink-tests: New test.
17492         * modules/areadlink-with-size-tests: Likewise.
17493         * tests/test-areadlink.h: New file.
17494         * tests/test-areadlink.c: Likewise.
17495         * tests/test-areadlink-with-size.c: Likewise.
17496
17497         maint: minor cleanups
17498         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17499         _UNUSED_PARAMETER_ instead.
17500         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17501         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17502         * modules/linkat-tests (Files): Distribute test-link.h.
17503
17504         openat, utimens: whitespace cleanup
17505         * lib/openat.c: Prefer space throughout, rather than mix of 8
17506         spaces vs. tabs.
17507         * lib/at-func.c: Likewise.
17508         * lib/utimens.c: Likewise.
17509
17510         openat: avoid using wrong fd
17511         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17512         working directory chooses same fd.
17513         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17514
17515         mkdir, mkdirat: fix cygwin 1.5.x bug
17516         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17517         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17518         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17519         bug.
17520         (gl_PREREQ_MKDIR): Delete unused macro.
17521         * modules/mkdir (Files): Track file rename.
17522         (configure.ac): Update macro name.
17523         * modules/openat (Depends-on): Add mkdir.
17524         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17525
17526         mkdir, mkdirat: add tests
17527         * modules/mkdir-tests: New test.
17528         * tests/test-mkdir.h: New file.
17529         * tests/test-mkdir.c: Likewise.
17530         * tests/test-mkdirat.c: Likewise.
17531         * modules/openat-tests (Files): Add new files.
17532         (Makefile.am): Run new test.
17533
17534 2009-10-06  Eric Blake  <ebb9@byu.net>
17535
17536         doc: tweak *at function documentation
17537         * doc/posix-functions/faccessat.texi (faccessat): Mention
17538         known issue with replacement.
17539         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17540         * doc/posix-functions/linkat.texi (linkat): Likewise.
17541         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17542         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17543         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17544         * doc/posix-functions/renameat.texi (renameat): Likewise.
17545         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17546
17547         openat: fix GNU/Hurd bug in unlinkat
17548         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17549         broken.
17550         * doc/posix-functions/unlink.texi (unlink): Document this.
17551         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17552
17553         fdopendir: fix GNU/Hurd bug
17554         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17555         allowing non-directory fds.
17556         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17557         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17558         * modules/dirent (Makefile.am): Substitute it.
17559         * lib/dirent.in.h (fdopendir): Declare replacement.
17560         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17561         * tests/test-fdopendir.c (main): Test something other than
17562         /dev/null, since on Hurd that behaves like a directory.
17563
17564         test-symlink: port to GNU/Hurd
17565         * tests/test-symlink.h (test_symlink): Relax expected errno.
17566
17567         doc: tweak more cygwin information
17568         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17569         now compatible with glibc.
17570         * doc/posix-functions/getopt.texi (getopt): Likewise.
17571
17572         getopt-gnu: add another test
17573         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17574         guarantee behavior relied on by m4.
17575         * tests/test-getopt.c (main): Use it.
17576         * modules/getopt-posix-tests (Depends-on): Add setenv.
17577         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17578
17579         getopt: fix compilation on darwin
17580         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17581         include.
17582         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17583         Reported by Ludovic Courtès.
17584
17585 2009-10-06  Bruno Haible  <bruno@clisp.org>
17586
17587         * modules/size_max (Description): Discourage its use.
17588         Reported by Simon Josefsson.
17589
17590 2009-10-06  Jim Meyering  <meyering@redhat.com>
17591
17592         linkat: avoid compilation failure
17593         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17594
17595 2009-10-05  Eric Blake  <ebb9@byu.net>
17596
17597         linkat: support Linux 2.6.17
17598         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17599         linkat on Linux, but allow cache variable override.
17600         * lib/linkat.c (rpl_linkat): Define override.
17601         * modules/linkat (Depends-on): Add symlinkat.
17602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17603         * modules/unistd (Makefile.am): Substitute it.
17604         * lib/unistd.in.h (linkat): Declare replacement.
17605         Reported by Pádraig Brady.
17606
17607         quotearg: port test to systems with C.UTF-8 locale
17608         * tests/test-quotearg.c (struct result_strings): Add another
17609         member, differentiating between C.ASCII and C.UTF-8 handling.
17610         (compare_strings): Add parameter.
17611         (main): Adjust all callers.
17612
17613         getopt: avoid clash with FreeBSD _getopt_internal
17614         * lib/getopt.in.h (_getopt_internal): Override the name.
17615         * lib/getopt_int.h (includes): Pick up any overrides.
17616         Reported by Reuben Thomas.
17617
17618         hash: allow C89 compilation
17619         * lib/hash.c (check_tuning): Move declaration before statement.
17620         Reported by Reuben Thomas.
17621
17622 2009-10-05  Karl Berry  <karl@gnu.org>
17623
17624         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17625
17626 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17627             Bruno Haible  <bruno@clisp.org>
17628
17629         * lib/uname.c (uname): Use a table-driven algorithm to compute
17630         Windows NT versions.
17631
17632 2009-10-04  Bruno Haible  <bruno@clisp.org>
17633
17634         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17635         program_invocation_short_name.
17636         * modules/progname (configure.ac): Test for presence of
17637         program_invocation_short_name.
17638         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17639
17640 2009-10-04  Bruno Haible  <bruno@clisp.org>
17641
17642         * lib/progname.c (set_program_name): Fix comment.
17643         Reported by Jim Meyering.
17644
17645 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17646             Bruno Haible  <bruno@clisp.org>
17647
17648         * lib/uname.c: Include <string.h>.
17649         (uname): Do only one call to GetVersionEx in the common case.
17650
17651 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17652             Bruno Haible  <bruno@clisp.org>
17653
17654         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17655         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17656         (uname): Add support for Windows CE and various non-x86 CPU types.
17657
17658 2009-10-03  Bruno Haible  <bruno@clisp.org>
17659
17660         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17661         invocation to tests/configure.ac.
17662         Reported by Ian Beckwith <ianb@erislabs.net>.
17663
17664 2009-10-02  Eric Blake  <ebb9@byu.net>
17665
17666         fchdir: avoid compiler warning
17667         * lib/fchdir.c (canonicalize_file_name)
17668         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17669
17670         test-open: support mingw errno values
17671         * tests/test-open.h (test_open): Relax test.
17672         * tests/test-fopen.h (test_fopen): Likewise.
17673         * tests/test-openat-safer.c (main): Likewise.
17674
17675         open: fix opening directory on mingw
17676         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
17677
17678         test-open: on GNU/Hurd, /dev/null is a directory
17679         * tests/test-fopen.h (main): Rename...
17680         (test_fopen): ...to this.  Use a guaranteed non-directory when
17681         confirming open behavior on trailing slash.
17682         * tests/test-openat-safer.c (main): Likewise.
17683         * tests/test-open.h (main): Likewise....
17684         (test_open): ...to this.
17685         * tests/test-fopen.c (main): Adjust caller.
17686         * tests/test-fopen-safer.c (main): Likewise.
17687         * tests/test-open.c (main): Likewise.
17688         * tests/test-fcntl-safer.c (main): Likewise.
17689         Reported by Samuel Thibault.
17690
17691         rename, fchdir: don't ignore chdir failure
17692         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
17693         * lib/rename.c (rpl_rename) [W32]: Likewise.
17694         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
17695         an empty destination directory if source cannot be renamed,
17696         although there is still possibility for failure.
17697         * doc/posix-functions/rename.texi (rename): Document the race.
17698         Reported by Jim Meyering.
17699
17700         maint: cleanup whitespace in recent commits
17701         * lib/rename.c (rpl_rename): Remove tabs.
17702         * tests/test-link.h (test_link): Likewise.
17703         * lib/fchdir.c (get_name): Likewise.
17704         Reported by Jim Meyering.
17705
17706 2009-10-02  Ben Pfaff  <blp@gnu.org>
17707
17708         relocatable-prog-wrapper: Add missing dependency on
17709         double-slash-root.
17710         * modules/relocatable-prog-wrapper: Add dependency.
17711         Reported by Ian Beckwith <ianb@erislabs.net>.
17712
17713 2009-10-02  Eric Blake  <ebb9@byu.net>
17714
17715         renameat: fix Solaris bugs
17716         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
17717         needed fixing.
17718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
17719         * modules/stdio (Makefile.am): Substitute it.
17720         * lib/stdio.in.h (renameat): Declare replacement.
17721         * lib/renameat.c (rpl_renameat): Implement fix.
17722
17723         renameat: new module
17724         * modules/renameat: New file.
17725         * lib/renameat.c (renameat): Likewise.
17726         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
17727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17728         * modules/stdio (Makefile.am): Substitute them.
17729         * lib/stdio.in.h (renameat): Declare it.
17730         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17731         * doc/posix-functions/renameat.texi (renameat): Likewise.
17732         * modules/renameat-tests: New test.
17733         * tests/test-renameat.c: Likewise.
17734
17735         rename: fix mingw bugs
17736         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
17737         directory overwrite bugs.
17738
17739         rename: fix another cygwin 1.5 bug
17740         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
17741         checks.
17742         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
17743         unnecessary cygwin workarounds.  Also work around bug with moving
17744         full directory onto an empty one.
17745         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
17746
17747         rename-dest-slash: merge into rename module
17748         * modules/rename-dest-slash (Status): Mark obsolete.
17749         (Depends-on): Add rename.
17750         (Files): Let rename do it all.
17751         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
17752         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
17753         * m4/rename-dest-slash.m4: ...so this file can be deleted.
17754         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
17755         * lib/rename.c (rpl_rename): Update comments.
17756
17757         rename: fix cygwin 1.5.x bugs
17758         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
17759         * lib/rename.c (rpl_rename): Work around them.
17760         * modules/rename (Depends-on): Add same-inode.
17761
17762         rename: fix Solaris 10 bug
17763         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17764         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
17765         was the only bug.
17766
17767         rename: fix Solaris 9 bug
17768         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
17769         on non-directory.  Avoid calling exit.
17770         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
17771         strdup.
17772         * modules/rename-tests (Depends-on): Drop lstat.
17773         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17774         (gl_PREREQ_RENAME): Delete unused macro.
17775
17776         rename-dest-slash: fix NetBSD bug
17777         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
17778         links.
17779         * modules/rename-dest-slash (Depends-on): Add same-inode.
17780
17781         rename-tests: new test, exposes several platform bugs
17782         * modules/rename-tests: New file.
17783         * tests/test-rename.h: Likewise.
17784         * tests/test-rename.c: Likewise.
17785         * doc/posix-functions/rename.texi (rename): Improve documentation,
17786         including bugs that will eventually be fixed in gnulib.
17787
17788 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
17789
17790         * lib/uname.c: Include <stdlib.h>
17791         (uname): Assume version info is available.
17792
17793 2009-10-02  Jim Meyering  <meyering@redhat.com>
17794
17795         gnu-web-doc-update: correct --help output
17796         * build-aux/gnu-web-doc-update: Make --help output relevant.
17797
17798         gnu-web-doc-update: add standard options
17799         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
17800
17801         gnu-web-doc-update: New module.
17802         Use this script to automatically update the on-line web documentation
17803         for your GNU project at http://www.gnu.org/software/$pkg/manual/
17804         * modules/gnu-web-doc-update: New file, from coreutils.
17805         * build-aux/gnu-web-doc-update: New script.
17806
17807 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
17808
17809         link: LoadLibrary is not needed.
17810         * lib/link.c: Use GetModuleHandle.
17811
17812 2009-10-01  Eric Blake  <ebb9@byu.net>
17813
17814         getopt: bump serial number
17815         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
17816         change.
17817
17818         tests: tighten link, rmdir, and remove tests
17819         * tests/test-link.h (includes): No need to use <config.h> here.
17820         Clean up if directory hard link was created, otherwise test for
17821         trailing '.'.
17822         * tests/test-linkat.c (main): Simplify.
17823         * tests/test-remove.c (main): Enhance test for trailing '.'.
17824         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17825
17826 2009-10-01  Jim Meyering  <meyering@redhat.com>
17827
17828         maint.mk: requiring "make major" was annoying, for a "minor" release.
17829         What is intended is "stable", to contrast with alpha and beta,
17830         so require "make stable", not "make major".
17831         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
17832         (get_tool_versions): Likewise.
17833         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
17834
17835 2009-09-30  Ben Pfaff  <blp@gnu.org>
17836
17837         Fix broken build of replacement for Windows tmpfile().
17838         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17839         flags argument added along with the 'mkostemp' module.
17840
17841 2009-09-28  Bruno Haible  <bruno@clisp.org>
17842
17843         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17844         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17845         to 'remove_elt'.
17846         (gl_list_remove): Update.
17847         * lib/gl_list.c (gl_list_remove): Update.
17848         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17849         to 'remove_elt'.
17850         (gl_oset_remove): Update.
17851         * lib/gl_list.c (gl_oset_remove): Update.
17852         Reported by Eric Blake.
17853
17854 2009-09-28  Eric Blake  <ebb9@byu.net>
17855
17856         doc: mention yet more cygwin 1.7 status
17857         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17858         cygwin.
17859         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17860         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17861
17862         argp: fix test failure
17863         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17864         that are not upper-case.  Pass correct range to tolower.
17865
17866 2009-09-27  Jim Meyering  <meyering@redhat.com>
17867
17868         test-yesno: work around sparc-dash here-document infelicity
17869         Without this change, the literal \177 byte in a here document
17870         would make dash 0.5.5.1-3 access uninitialized memory.
17871         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17872         Instead, use a marker, "@", and filter through tr to create the desired
17873         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17874
17875 2009-09-27  Bruno Haible  <bruno@clisp.org>
17876
17877         Disable untested support for new flavours of ACLs on AIX.
17878         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17879         progress.
17880         * lib/set-mode-acl.c (qset_acl): Likewise.
17881
17882 2008-12-07  Bruno Haible  <bruno@clisp.org>
17883
17884         Add support for new flavours of ACLs on AIX. (Untested.)
17885         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17886         (file_has_acl): Add support for newer AIX.
17887         * lib/set-mode-acl.c (qset_acl): Likewise.
17888         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17889         Rainer Tammer <tammer@tammer.net>.
17890
17891 2009-09-26  Eric Blake  <ebb9@byu.net>
17892
17893         argp: fix compilation of getopt
17894         * lib/getopt.in.h (includes): Use different guard than glibc.
17895         Reported by Sergey Poznyakoff.
17896
17897         doc: mention more cygwin 1.7 status
17898         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17899         bug.
17900         * doc/posix-functions/execl.texi (execl): Likewise.
17901         * doc/posix-functions/execle.texi (execle): Likewise.
17902         * doc/posix-functions/execlp.texi (execlp): Likewise.
17903         * doc/posix-functions/execv.texi (execv): Likewise.
17904         * doc/posix-functions/execve.texi (execve): Likewise.
17905         * doc/posix-functions/execvp.texi (execvp): Likewise.
17906         * doc/glibc-functions/canonicalize_file_name.texi
17907         (canonicalize_file_name): Cygwin 1.7 now provides this.
17908         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17909         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17910         on AT_SYMLINK_NOFOLLOW.
17911
17912 2009-09-24  Eric Blake  <ebb9@byu.net>
17913
17914         test-linkat: make test more robust
17915         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17916
17917         getopt: fix inclusion guards for cygwin
17918         * modules/getopt-posix (Depends-on): Add include-next.
17919         (Makefile.am): Substitute more items in replacement header.
17920         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17921         <getopt.h>.
17922         * lib/getopt.in.h (includes): Use split inclusion guard, and
17923         prefer <getopt.h> over include <unistd.h> when one is present.
17924         (option): Also override name of 'struct option'.
17925
17926         same-inode: revert prior change; it is not yet ready
17927         * NEWS: Undo mention of this change.
17928         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17929         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17930         * lib/cycle-check.c (cycle_check): Likewise.
17931         * lib/same.c (same_name): Likewise.
17932         * lib/at-func2.c (at_func2): Likewise.
17933
17934 2009-09-23  Eric Blake  <ebb9@byu.net>
17935
17936         linkat: new module
17937         * modules/linkat: New file.
17938         * lib/at-func2.c (at_func2): Likewise.
17939         * lib/linkat.c (linkat): Likewise.
17940         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17941         * lib/openat-priv.h (at_func2): Add declaration.
17942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17943         * modules/unistd (Makefile.am): Substitute them.
17944         * lib/unistd.in.h (linkat): Declare it.
17945         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17946         * doc/posix-functions/linkat.texi (linkat): Likewise.
17947         * doc/posix-functions/link.texi (link): Tweak wording.
17948         * tests/test-link.c (main): Move guts...
17949         * tests/test-link.h (test_link): ...into new file.
17950         * modules/linkat-tests: New test.
17951         * tests/test-linkat.c: Likewise.
17952         * modules/link-tests (Files): Ship new file.
17953         (Depends-on): Add stdbool.
17954
17955         dirname: add library-safe mdir_name
17956         * lib/dirname.h (mdir_name): New prototype.
17957         * lib/dirname.c (dir_name): Move guts...
17958         (mdir_name): ...to new function that avoids xalloc_die.
17959
17960         fchdir: another mingw fix
17961         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17962         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17963         on mingw (where it has not yet been ported), and make it optional
17964         elsewhere.
17965         (_gl_register_fd): Use it.
17966
17967         same-inode: make SAME_INODE tri-state, to port to mingw
17968         * NEWS: Mention this change.
17969         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17970         st_ino always being 0.
17971         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17972         * lib/cycle-check.c (cycle_check): Likewise.
17973         * lib/same.c (same_name): Likewise.
17974
17975         lstat: avoid mingw compilation error
17976         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17977         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17978         lstat ourselves.
17979         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17980         was adequate.
17981         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17982         the checks for lstat.
17983         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17984
17985         link: fix test failure on Solaris 9
17986         * lib/link.c (rpl_link): Don't assume link will catch bogus
17987         trailing slash on source.
17988
17989         test-symlinkat: enhance test
17990         * tests/test-readlink.c (main): Move guts...
17991         * tests/test-readlink.h (test_readlink): ...into new file.
17992         * tests/test-symlink.c (main): Move guts...
17993         * tests/test-symlink.h (test_symlink): ...into new file.
17994         * tests/test-symlinkat.c (main): Use new files for further
17995         coverage.
17996         (do_symlink, do_readlink): New helper functions.
17997         * modules/symlink-tests (Files): Ship new file.
17998         (Depends-on): Add stdbool.
17999         * modules/readlink-tests (Files): Ship new file.
18000         (Depends-on): Add stdbool.
18001         * modules/symlinkat-tests (Files): Use new files.
18002
18003 2009-09-23  Eric Blake  <ebb9@byu.net>
18004
18005         readlink: document portability issue with symlink length
18006         * doc/posix-functions/lstat.texi (lstat): Mention that some file
18007         systems have bogus st_size on symlinks, and mention the
18008         areadlink-with-size module.
18009         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18010         * doc/posix-functions/readlink.texi (readlink): Mention the
18011         areadlink module, and ERANGE failure.
18012         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18013         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
18014
18015         readlink: fix Solaris 9 bug with trailing slash
18016         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
18017         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
18018         * doc/posix-functions/readlink.texi (readlink): Document this.
18019         * modules/readlink-tests: New test.
18020         * tests/test-readlink.c: Likewise.
18021
18022         readlink: fix cygwin 1.5.x bug with return type
18023         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
18024         * lib/unistd.in.h (readlink): Use ssize_t.
18025         * lib/readlink.c (readlink): Likewise.
18026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18027         * modules/unistd (Makefile.am): Substitute it.
18028         * lib/unistd.in.h (readlink): Declare replacement.
18029         * doc/posix-functions/readlink.texi (readlink): Document this.
18030
18031         symlink: use throughout gnulib
18032         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
18033         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
18034         symlink is not used.
18035         * modules/symlinkat (Depends-on): Add symlink.
18036         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18037         * modules/canonicalize-tests (Depends-on): Likewise.
18038         * modules/lstat-tests (Depends-on): Likewise.
18039         * modules/openat-tests (Depends-on): Likewise.
18040         * modules/remove-tests (Depends-on): Likewise.
18041         * modules/rmdir-tests (Depends-on): Likewise.
18042         * modules/unlink-tests (Depends-on): Likewise.
18043         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
18044         * tests/test-canonicalize.c (symlink): Likewise.
18045         * tests/test-fstatat.c (symlink): Likewise.
18046         * tests/test-lstat.c (symlink): Likewise.
18047         * tests/test-remove.c (symlink): Likewise.
18048         * tests/test-rmdir.c (symlink): Likewise.
18049         * tests/test-unlink.c (symlink): Likewise.
18050         * tests/test-unlinkat.c (symlink): Likewise.
18051
18052         symlink: new module, for Solaris 9 bug
18053         * modules/symlink: New file.
18054         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18055         * lib/symlink.c: Likewise.
18056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18057         * modules/unistd (Makefile.am): Substitute them.
18058         * lib/unistd.in.h (symlink): Declare replacement.
18059         * MODULES.html.sh (File system functions): Mention it.
18060         * doc/posix-functions/symlink.texi (symlink): Likewise.
18061         * modules/symlink-tests: New test.
18062         * tests/test-symlink.c: Likewise.
18063
18064 2009-09-23  Bruno Haible  <bruno@clisp.org>
18065
18066         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
18067         when needed.
18068         Test case: gnulib-tool --import --with-tests atexit inttypes.
18069         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
18070
18071 2009-09-23  Bruno Haible  <bruno@clisp.org>
18072
18073         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
18074         subcommand, not in a subshell.
18075
18076 2009-09-22  Eric Blake  <ebb9@byu.net>
18077
18078         unistd: sort replacement declarations
18079         * lib/unistd.in.h: Sort declarations.
18080
18081         open, openat: minor optimization
18082         * lib/open.c (open): If open succeeded, len is non-zero.
18083         * lib/openat.c (rpl_openat): Likewise.
18084
18085         link-follow: ensure correct result
18086         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
18087         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
18088         distinguish between possible failures.
18089
18090 2009-09-21  Eric Blake  <ebb9@byu.net>
18091
18092         fts: avoid compiler warning
18093         * lib/fts.c (dirent_inode_sort_may_be_useful)
18094         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
18095
18096 2009-09-19  Bruno Haible  <bruno@clisp.org>
18097
18098         * lib/progreloc.c (canonicalize_file_name): New declaration.
18099
18100 2009-09-19  Eric Blake  <ebb9@byu.net>
18101
18102         link: fix quoting
18103         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
18104
18105         openat: fix openat bugs on Solaris 9
18106         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
18107         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
18108         * modules/openat (Depends-on): Add open.
18109         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
18110         * modules/fcntl-h (Makefile.am): Substitute it.
18111         * lib/fcntl.in.h (openat): Declare replacement.
18112         * doc/posix-functions/openat.texi (openat): Document this.
18113
18114         openat: move fstatat and unlinkat into correct files
18115         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
18116         compiled.
18117         * lib/openat.c (fstatat, unlinkat): Move...
18118         * lib/fstatat.c (fstatat): ...into correct files.
18119         * lib/unlinkat.c (unlinkat): Likewise.
18120
18121         openat: fix unlinkat bugs on Solaris 9
18122         * lib/unlinkat.c (unlinkat): New file.
18123         * modules/openat (Depends-on): Add unlink.
18124         (Files): Distribute it.
18125         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
18126         trailing slash behavior is broken.
18127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18128         * modules/unistd (Makefile.am): Substitute it.
18129         * lib/unistd.in.h (unlinkat): Declare replacement.
18130         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
18131
18132         openat: fix fstatat bugs on Solaris 9
18133         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
18134         stat.
18135         * doc/posix-functions/fstatat.texi (fstatat): Document this.
18136
18137         test-unlinkat: enhance test, to expose Solaris 9 bug
18138         * tests/test-unlink.c (main): Factor guts...
18139         * tests/test-unlink.h (test_rmdir_func): ...into new file.
18140         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
18141         * tests/test-rmdir.c (main): Adjust caller.
18142         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
18143         (unlinker): New helper function.
18144         (rmdirat): Enhance check.
18145         * modules/rmdir-tests (Depends-on): Add stdbool.
18146         * modules/unlink-tests (Depends-on): Likewise.
18147         (Files): Add test-unlink.h.
18148         * modules/openat-tests (Files): Likewise.
18149         (Depends-on): Add unlinkdir.
18150
18151         test-fstatat: new test, to expose Solaris 9 bugs
18152         * tests/test-stat.c (main): Factor guts...
18153         * tests/test-stat.h (test_stat_func): ...into new file.
18154         * tests/test-lstat.c (main): Factor guts...
18155         * tests/test-lstat.h (test_lstat_func): ...into new file.
18156         * tests/test-fstatat.c: New file.
18157         * modules/stat-tests (Files): Add test-stat.h.
18158         * modules/lstat-tests (Files): Add test-lstat.h.
18159         (Depends-on): Add stdbool.
18160         * modules/openat-tests (Depends-on): Add pathmax.
18161         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
18162         (Makefile.am): Run new test.
18163
18164         remove: new module, for mingw and Solaris 9 bugs
18165         * modules/remove: New file.
18166         * lib/remove.c: Likewise.
18167         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
18168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
18169         * modules/stdio (Makefile.am): Use them.
18170         * lib/stdio.in.h (remove): Declare replacement.
18171         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18172         * doc/posix-functions/remove.texi (remove): Likewise.
18173         * modules/remove-tests: New test.
18174         * tests/test-remove.c: Likewise.
18175
18176         unlink: new module, for Solaris 9 bug
18177         * modules/unlink: New file.
18178         * lib/unlink.c: Likewise.
18179         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18181         * modules/unistd (Makefile.am): Use them.
18182         * lib/unistd.in.h (stat): Declare replacement.
18183         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18184         * doc/posix-functions/unlink.texi (unlink): Likewise.
18185         * modules/unlink-tests: New test.
18186         * tests/test-unlink.c: Likewise.
18187
18188         lstat: fix Solaris 9 bug
18189         * lib/lstat.c (lstat): Also check for trailing slash on
18190         non-symlink, non-directories.  Use stat module to simplify logic.
18191         * doc/posix-functions/lstat.texi (lstat): Document it.
18192         * modules/lstat-tests (Depends-on): Add errno, same-inode.
18193         (configure.ac): Check for symlink.
18194         * tests/test-lstat.c (main): Add more tests.
18195
18196         stat: add as dependency to other modules
18197         * modules/chown (Depends-on): Add stat.
18198         * modules/euidaccess (Depends-on): Likewise.
18199         * modules/fchdir (Depends-on): Likewise.
18200         * modules/isdir (Depends-on): Likewise.
18201         * modules/link (Depends-on): Likewise.
18202         * modules/lstat (Depends-on): Likewise.
18203         * modules/mkdir-p (Depends-on): Likewise.
18204         * modules/modechange (Depends-on): Likewise.
18205         * modules/open (Depends-on): Likewise.
18206         * modules/readlink (Depends-on): Likewise.
18207         * modules/same (Depends-on): Likewise.
18208
18209         stat: fix Solaris 9 bug
18210         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
18211         slash.
18212         * lib/stat.c (rpl_stat): Work around it.
18213         * doc/posix-functions/stat.texi (stat): Update documentation.
18214
18215         stat: new module, for mingw bug
18216         * modules/stat: New file.
18217         * lib/stat.c: Likewise.
18218         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18220         * modules/sys_stat (Makefile.am): Use them.
18221         * lib/sys_stat.in.h (stat): Declare replacement.
18222         * lib/openat.c (fstatat): Deal with lstat and stat being function
18223         macros.
18224         * modules/openat (Depends-on): Add inline.
18225         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18226         * doc/posix-functions/stat.texi (stat): Likewise.
18227         * modules/stat-tests: New test.
18228         * tests/test-stat.c: Likewise.
18229
18230 2009-09-19  Jim Meyering  <meyering@redhat.com>
18231
18232         syntax-check: detect unnecessary inclusion of canonicalize.h
18233         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
18234
18235 2009-09-19  Eric Blake  <ebb9@byu.net>
18236
18237         canonicalize-lgpl: adjust clients to use correct header
18238         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18239         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
18240         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
18241         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
18242         * lib/progreloc.c (includes): Likewise.
18243
18244 2009-09-19  Jim Meyering  <meyering@redhat.com>
18245
18246         test-posixtm.c: correct a comment
18247         * tests/test-posixtm.c: Correct first-line comment.
18248         Spotted by Eric Blake.
18249
18250 2009-09-16  Jim Meyering  <meyering@redhat.com>
18251
18252         posixtm-tests: make T const-correct; add a test case
18253         * tests/test-posixtm.c (T): Declare const.
18254         Add a test for -(2^31+1).
18255         Remove useless can-succeed-only-in-2002 test.
18256
18257         posixtm-tests: adjust the sole failing test
18258         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
18259         expected output matches what mktime now produces.  Cross-checked via
18260         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
18261
18262         posixtm: move #ifdef'd tests into a new module
18263         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
18264         * tests/test-posixtm.c: ... this new file.
18265         * modules/posixtm-tests: New module.
18266
18267 2009-09-19  Eric Blake  <ebb9@byu.net>
18268
18269         openat: simplify use of at-func.c
18270         * lib/at-func.c (includes): Include prerequisites here, to
18271         simplify requirements on client files.
18272         * lib/openat-priv.h: Add double-inclusion guard.
18273         * lib/faccessat.c (includes): Simplify.
18274         * lib/fchmodat.c (includes): Likewise.
18275         * lib/fchownat.c (includes): Likewise.
18276         * lib/mkdirat.c (includes): Likewise.
18277         * lib/mkfifoat.c (includes): Likewise.
18278         * lib/symlinkat.c (includes): Likewise.
18279
18280         openat: allow return of fd 0
18281         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
18282         * modules/save-cwd (Depends-on): Replace fcntl-safer with
18283         unistd-safer.
18284         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
18285         <fcntl.h>; this module does not leak fds.
18286         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
18287         must be allowed to return 0, leaving openat_safer to add the
18288         safety.
18289         (openat_permissive): Avoid writing to just-opened fd 2 if
18290         restoring the current directory fails.
18291         * lib/openat-die.c (openat_restore_fail): Add comment.
18292         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
18293         (save_cwd): Guarantee safe fd, but without use of open_safer.
18294         * tests/test-openat.c: New test.
18295         * modules/openat-tests (Files, Makefile.am): Distribute and build
18296         new file.
18297
18298         relocatable-prog-wrapper: fix build
18299         * modules/relocatable-prog-wrapper (Files): Update name of
18300         canonicalize m4 file, broken on 2009-09-17.
18301         Reported by emad hajjar <aleppos@hotmail.com>.
18302
18303 2009-09-19  Bruno Haible  <bruno@clisp.org>
18304
18305         * lib/safe-alloc.h: Use the standard header with GPL copyright.
18306         * lib/safe-alloc.c: Likewise.
18307         Reported by Ian Beckwith <ianb@erislabs.net>.
18308
18309 2009-09-18  Bruno Haible  <bruno@clisp.org>
18310
18311         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
18312         Reported by <erobles@sensacd.com.mx>.
18313
18314 2009-09-17  Eric Blake  <ebb9@byu.net>
18315
18316         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
18317         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
18318         slashes when checking if last component is missing.
18319         * tests/test-canonicalize.c (main): Test this.
18320
18321         canonicalize, canonicalize-lgpl: honor // if distinct from /
18322         * modules/canonicalize (Files): Add double-slash-root.m4.
18323         * modules/canonicalize-lgpl (Files): Likewise.
18324         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18325         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
18326         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
18327         fallback definition.
18328         (canonicalize_filename_mode): Use it to protect //.
18329         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
18330         (__realpath): Likewise.
18331         * tests/test-canonicalize.c (main): Test this.
18332         * tests/test-canonicalize-lgpl.c (main): Likewise.
18333         * modules/canonicalize-tests (Depends-on): Add same-inode.
18334         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18335
18336         canonicalize-lgpl: fix glibc bug with trailing slash
18337         * m4/canonicalize-lgpl.m4: Move contents...
18338         * m4/canonicalize.m4: ...here.
18339         (gl_CANONICALIZE_LGPL): Factor realpath check...
18340         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
18341         glibc 2.3.5 bug, fixed 2005-04-27.
18342         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
18343         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
18344         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
18345         * modules/canonicalize-lgpl (Files): Manage file rename.
18346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18347         * modules/stdlib (Makefile.am): Substitute witness.
18348         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
18349         is needed.
18350         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
18351         replacement is required.
18352         * lib/canonicalize.c (canonicalize_file_name): Likewise.
18353         * doc/glibc-functions/canonicalize_file_name.texi
18354         (canonicalize_file_name): Document this.
18355         * doc/posix-functions/realpath.texi (realpath): Likewise.
18356
18357         canonicalize-lgpl: reject non-directory with trailing slash
18358         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
18359         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
18360         catches failures in glibc 2.3.5.
18361         * tests/test-canonicalize.c (main): Likewise.
18362
18363         canonicalize-lgpl: use native realpath if it works
18364         * lib/canonicalize-lgpl.c (realpath): Guard with
18365         FUNC_REALPATH_WORKS.
18366         * lib/stdlib.in.h (realpath): Make declaration optional based on
18367         HAVE_REALPATH.
18368         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
18369         native realpath works.
18370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18371         * modules/stdlib (Makefile.am): Substitute witness.
18372
18373         canonicalize, canonicalize-lgpl: use <stdlib.h>
18374         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
18375         (Include): Mention <stdlib.h>.
18376         (configure.ac): Mention functions we provide.
18377         * modules/canonicalize (configure.ac): Likewise.
18378         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
18379         realpath if canonicalize_file_name is missing.
18380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
18381         * modules/stdlib (Makefile.am): Substitute witnesses.
18382         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
18383         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
18384         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
18385         * NEWS: Document this.
18386         * doc/glibc-functions/canonicalize_file_name.texi
18387         (canonicalize_file_name): Likewise.
18388         * doc/posix-functions/realpath.texi (realpath): Likewise.
18389         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
18390
18391         test-canonicalize: consolidate into single C program
18392         * tests/test-canonicalize.sh: Delete; move setup into...
18393         * tests/test-canonicalize.c (main): ...the program, making it
18394         easier to run in debugger.  Add some tests.
18395         * modules/canonicalize-tests (Files): Remove unused file.
18396         (Depends-on): Add progname.
18397         (configure.ac, Makefile.am): Simplify.
18398
18399         test-canonicalize-lgpl: consolidate into single C program
18400         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18401         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18402         easier to run in debugger.  Add some tests.
18403         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18404         (configure.ac, Makefile.am): Simplify.
18405
18406         canonicalize: avoid resolvepath
18407         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18408         unnecessary checks.
18409         * lib/canonicalize.c (includes): Simplify.
18410         (canonicalize_file_name): Drop resolvepath implementation.
18411         * modules/canonicalize (Depends-on): Drop filenamecat.
18412
18413         canonicalize: don't lose errno
18414         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18415         over calls to free.
18416
18417         canonicalize: simplify errno handling
18418         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18419         assignment.
18420
18421         canonicalize, canonicalize-lgpl: update module dependencies
18422         * modules/canonicalize (Depends-on): Add extensions, lstat,
18423         pathmax, stdlib.
18424         (Files): Drop pathmax.h.
18425         (configure.ac): Adjust macro name.
18426         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18427         lstat, stdlib, sys_stat.
18428         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18429         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18430         extensions.
18431         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18432         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18433         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18434         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18435         declaration, if available.
18436         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18437         we can rely on the readlink module.
18438         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18439         (includes): Use <unistd.h> unconditionally.
18440
18441 2009-09-17  Eric Blake  <ebb9@byu.net>
18442
18443         maint: make Include sections of modules consistent
18444         * modules/alloca: Use only header name; no need to list #include.
18445         * modules/alloca-opt: Likewise.
18446         * modules/arpa_inet: Likewise.
18447         * modules/canon-host: Likewise.
18448         * modules/configmake: Likewise.
18449         * modules/dirent: Likewise.
18450         * modules/eealloc: Likewise.
18451         * modules/environ: Likewise.
18452         * modules/fchdir: Likewise.
18453         * modules/fcntl: Likewise.
18454         * modules/fcntl-h: Likewise.
18455         * modules/gethrxtime: Likewise.
18456         * modules/gettime: Likewise.
18457         * modules/ignore-value: Likewise.
18458         * modules/inet_ntop: Likewise.
18459         * modules/inet_pton: Likewise.
18460         * modules/inttypes: Likewise.
18461         * modules/isnand-nolibm: Likewise.
18462         * modules/isnanf-nolibm: Likewise.
18463         * modules/mbchar: Likewise.
18464         * modules/mbfile: Likewise.
18465         * modules/mbiter: Likewise.
18466         * modules/mbuiter: Likewise.
18467         * modules/netdb: Likewise.
18468         * modules/netinet_in: Likewise.
18469         * modules/nproc: Likewise.
18470         * modules/pagealign_alloc: Likewise.
18471         * modules/poll: Likewise.
18472         * modules/printf-frexp: Likewise.
18473         * modules/pthread: Likewise.
18474         * modules/putenv: Likewise.
18475         * modules/random_r: Likewise.
18476         * modules/relocatable-prog: Likewise.
18477         * modules/search: Likewise.
18478         * modules/select: Likewise.
18479         * modules/selinux-h: Likewise.
18480         * modules/settime: Likewise.
18481         * modules/signal: Likewise.
18482         * modules/size_max: Likewise.
18483         * modules/socklen: Likewise.
18484         * modules/ssize_t: Likewise.
18485         * modules/stdarg: Likewise.
18486         * modules/stdbool: Likewise.
18487         * modules/stddef: Likewise.
18488         * modules/stdint: Likewise.
18489         * modules/stdio: Likewise.
18490         * modules/stdlib: Likewise.
18491         * modules/string: Likewise.
18492         * modules/strings: Likewise.
18493         * modules/sys_file: Likewise.
18494         * modules/sys_ioctl: Likewise.
18495         * modules/sys_select: Likewise.
18496         * modules/sys_socket: Likewise.
18497         * modules/sys_stat: Likewise.
18498         * modules/sys_time: Likewise.
18499         * modules/sys_times: Likewise.
18500         * modules/sys_utsname: Likewise.
18501         * modules/sys_wait: Likewise.
18502         * modules/sysexits: Likewise.
18503         * modules/time: Likewise.
18504         * modules/times: Likewise.
18505         * modules/tmpfile: Likewise.
18506         * modules/trim: Likewise.
18507         * modules/unistd: Likewise.
18508         * modules/wchar: Likewise.
18509         * modules/wctype: Likewise.
18510
18511 2009-09-17  Bruno Haible  <bruno@clisp.org>
18512
18513         Make getdate.y compile on QNX and NetBSD 5 / i386.
18514         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18515         TIME_T_FITS_IN_LONG_INT.
18516         * lib/getdate.y (long_time_t): New type.
18517         (relative_time): Change type of 'seconds' field to long_time_t.
18518         (get_date): Update types of local variables. Check against overflow
18519         during conversion from long_time_t to time_t.
18520         Reported by Matt Kraai <kraai@ftbfs.org>
18521         and Hasso Tepper <hasso@netbsd.org>.
18522
18523 2009-09-17  Bruno Haible  <bruno@clisp.org>
18524
18525         * modules/COPYING: Update copyright years.
18526         * modules/README: Likeiwse.
18527         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18528         Reported by Ian Beckwith <ianb@erislabs.net>.
18529
18530 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18531
18532         * users.txt: Update references for gnuit package.
18533
18534 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18535
18536         * m4/getdelim.m4: Fix typo in copyright line.
18537
18538 2009-09-17  Bruno Haible  <bruno@clisp.org>
18539
18540         * lib/atoll.c: Use the standard header with GPL copyright.
18541         * lib/argz.in.h: Likewise.
18542         * lib/glob.c: Likewise.
18543         * lib/glob-libc.h: Likewise.
18544         * lib/random_r.c: Likewise.
18545         * lib/siglist.h: Likewise.
18546         * lib/strsignal.c: Likewise.
18547         Reported by Ian Beckwith <ianb@erislabs.net>.
18548
18549 2009-09-17  Eric Blake  <ebb9@byu.net>
18550
18551         rmdir: ensure correct dependency order
18552         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18553
18554 2009-09-17  Bruno Haible  <bruno@clisp.org>
18555
18556         Disable assertion that fails on NetBSD 5 / i386.
18557         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18558         Reported by Sam Steingold <sds@gnu.org>
18559         and Hasso Tepper <hasso@netbsd.org>.
18560
18561 2009-09-16  Eric Blake  <ebb9@byu.net>
18562
18563         unlinkdir: port to mingw
18564         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18565         on which no one can unlink a directory.
18566
18567         stdlib: sort witness names
18568         * modules/stdlib (Makefile.am): Sort replacements.
18569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18570         * lib/stdlib.in.h: Likewise.
18571
18572         parse-duration-tests: avoid link failure
18573         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18574         LIBINTL.
18575         Reported by Tom G. Christensen.
18576
18577         openat-tests: ensure unlinkat behaves like rmdir
18578         * tests/test-rmdir.c (main): Factor guts...
18579         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18580         * modules/rmdir-tests (Files): Ship new file.
18581         * modules/openat-tests: New test.
18582         * tests/test-unlinkat.c: Likewise.
18583
18584         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18585         * modules/rmdir-errno (Status, Notice): Now obsolete.
18586
18587         rmdir: work around cygwin 1.5.x and mingw bugs
18588         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18589         * lib/rmdir.c (rmdir): Work around it.
18590         * modules/rmdir (Status, Notice): No longer obsolete.
18591         (Files): Add dos.m4.
18592         (Depends-on): Add unistd.
18593         (configure.ac): Set witnesses.
18594         (License): Relax to LGPLv2+.
18595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18596         * modules/unistd (Makefile.am): Substitute witnesses.
18597         * lib/unistd.in.h (rmdir): Declare replacement.
18598         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18599         * modules/rmdir-tests: New tests.
18600         * tests/test-rmdir.c: Likewise.
18601
18602 2009-09-15  Eric Blake  <ebb9@byu.net>
18603
18604         fchdir: improve use of replacement functions
18605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18606         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18607         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18608         REPLACE_CLOSEDIR.
18609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18610         * modules/sys_stat (Makefile.am): Substitute correct witness.
18611         * modules/dirent (Makefile.am): Likewise.
18612         * modules/unistd (Makefile.am): Likewise.
18613         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18614         * lib/unistd.in.h (dup): Likewise.
18615         * lib/sys_stat.in.h (fstat): Likewise.
18616
18617         maint: ignore gnulib-tool temp files
18618         * .gitignore: Ignore files created during gnulib-tool --test.
18619
18620 2009-09-13  Jim Meyering  <meyering@redhat.com>
18621
18622         posixtm: don't reject a time that specify "60" as the number of seconds
18623         * lib/posixtm.c (posixtime): The code to reject invalid dates
18624         would also reject a time specified with the .60 suffix.
18625         But POSIX allows that, in order to accommodate leap seconds.
18626         So don't reject it.
18627         (main): Adjust tests accordingly.
18628         * modules/posixtm (Depends-on): Add stpcpy.
18629
18630 2009-09-11  Jim Meyering  <meyering@redhat.com>
18631
18632         announce-gen: include [$release_type] in emitted Subject:
18633         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18634         e.g., [stable] in the emitted Subject: line.
18635
18636 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18637
18638         Remove obsolete macros from several modules.
18639         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18640         obsolete Autoconf macros with their modern counterparts.
18641         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18642         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18643         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18644         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18645         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18646         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18647         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18648         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18649         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18650         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18651         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18653         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18654         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18655         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18656         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18657         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18658         * m4/time_r.m4 (gl_TIME_R): Likewise.
18659         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18660         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18661         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18662
18663         Fix copyright header in build-aux scripts.
18664         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18665         recommendation.
18666         * build-aux/ncftpput-ftp: Likewise.
18667         * build-aux/update-copyright: Likewise.
18668
18669 2009-09-09  Eric Blake  <ebb9@byu.net>
18670
18671         test-link: allow Linux choice of errno
18672         * tests/test-link.c (main): Relax test for alternate error.
18673
18674         strndup: fix improper m4 caching
18675         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
18676         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
18677         (gl_PREREQ_STRNDUP): Delete.
18678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
18679         * modules/string (Makefile.am): Substitute it.
18680         * lib/string.in.h (strndup): Modernize prototype.
18681
18682         getcwd: port to mingw
18683         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
18684         different from the POSIX assumptions made throughout the getcwd
18685         module; fortunately, the mingw getcwd does not need replacement.
18686         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
18687         * modules/getcwd-tests: New test.
18688         * tests/test-getcwd.c: Likewise.
18689
18690         link: fix platform bugs
18691         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
18692         * lib/link.c (link): Work around them.  Fix related mingw bug.
18693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
18694         * modules/unistd (Makefile.am): Substitute it.
18695         * lib/unistd.in.h (link): Declare replacement.
18696         * doc/posix-functions/link.texi (link): Document this.
18697         * modules/link (Depends-on): Add strdup-posix, sys_stat.
18698
18699         test-link: consolidate into single C program, test more cases
18700         * tests/test-link.sh: Delete.
18701         * tests/test-link.c: Test more error conditions.  Exposes bugs on
18702         at least Cygwin and Solaris.
18703         * modules/link-tests (Files): Remove unused file.
18704         (Depends-on): Add errno, sys_stat.
18705         (Makefile.am): Simplify.
18706
18707 2009-09-08  Bruno Haible  <bruno@clisp.org>
18708
18709         Work around towlower, towupper bug on mingw.
18710         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
18711         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
18712         * doc/posix-functions/towlower.texi: Mention the mingw bug.
18713         * doc/posix-functions/towupper.texi: Likewise.
18714         Reported by Eric Blake.
18715
18716 2009-09-08  Jim Meyering  <meyering@redhat.com>
18717
18718         build: don't try to run autoheader if we don't use it
18719         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
18720         is not used in configure.ac.
18721
18722 2009-09-08  Eric Blake  <ebb9@byu.net>
18723
18724         euidaccess: fix compilation error
18725         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
18726
18727         rawmemchr: relax license
18728         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
18729         okay.
18730         Reported by Jim Meyering.
18731
18732         mkfifoat: new module
18733         * modules/mkfifoat: New file.
18734         * lib/mkfifoat.c: Likewise.
18735         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
18736         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18737         * modules/sys_stat (Makefile.am): Use them.
18738         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
18739         * MODULES.html.sh (File system functions): Mention module.
18740         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18741         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18742         * modules/mkfifoat-tests: New test.
18743         * tests/test-mkfifoat.c: Likewise.
18744
18745         strchrnul: relax license
18746         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
18747         okay.
18748         Reported by Jim Meyering.
18749
18750 2009-09-08  Eric Blake  <ebb9@byu.net>
18751
18752         fstatat: fix compilation on Solaris
18753         * lib/fstatat.c (includes): Add fcntl.h.
18754         Reported by Pádraig Brady.
18755
18756 2009-09-07  Eric Blake  <ebb9@byu.net>
18757
18758         rename: modernize replacement
18759         * modules/rename (Depends-on): Add stdio.
18760         (configure.ac): Declare witness.
18761         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
18762         stdio take care of replacement.
18763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18764         * modules/stdio (Makefile.am): Substitute them.
18765         * lib/stdio.in.h (rename): Declare replacement.
18766         * lib/rename.c (includes): Allow cross-compilation to non-windows
18767         machines.
18768         * doc/posix-functions/rename.texi (rename): Improve
18769         documentation.
18770
18771         stdio: sort witness names
18772         * modules/stdio (Makefile.am): Sort replacements.
18773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18774         * lib/stdio.in.h: Likewise.
18775
18776         getcwd: minor cleanups
18777         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
18778         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
18779
18780         openat: provide more convenience names
18781         * modules/faccessat (configure.ac): Add C witness.
18782         * lib/unistd.in.h (readlinkat): Fix typo.
18783         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
18784         convenience wrappers.
18785         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
18786         wrappers in syntax checks.
18787
18788 2009-09-06  Eric Blake  <ebb9@byu.net>
18789
18790         doc: fix comments in recent patches
18791         * lib/faccessat.c: Mention correct function.
18792         * lib/fchmodat.c: Likewise.
18793         * lib/fchownat.c: Likewise.
18794         * lib/symlinkat.c: Likewise.
18795         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
18796         constants.
18797
18798         faccessat, symlinkat: continue cleanup of previous patch
18799         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
18800         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18801         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
18802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
18803         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
18804         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
18805         set.
18806
18807 2009-09-06  Bruno Haible  <bruno@clisp.org>
18808
18809         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
18810         (fstatat): Declare if GNULIB_FSTATAT is set.
18811         (mkdirat): Declare if GNULIB_MKDIRAT is set.
18812         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
18813         (unlinkat): Declare if GNULIB_UNLINKAT is set.
18814         * modules/fcntl-h (Files): Remove m4/openat.m4.
18815         * modules/sys_stat (Files): Remove m4/openat.m4.
18816         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
18817         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
18818         * modules/unistd (Files): Remove m4/openat.m4.
18819         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
18820         GNULIB_OPENAT.
18821         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
18822         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
18823         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18824         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
18825         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
18826         gl_OPENAT_DEFAULTS.
18827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
18828         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
18829         Don't require gl_OPENAT_DEFAULTS.
18830         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
18831         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
18832         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
18833         (gl_OPENAT_DEFAULTS): Remove macro.
18834
18835 2009-09-06  Bruno Haible  <bruno@clisp.org>
18836
18837         * modules/openat (configure.ac): Remove unneeded witness.
18838
18839 2009-09-06  Bruno Haible  <bruno@clisp.org>
18840
18841         Set errno to ENOSYS when a function is entirely unsupported.
18842         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18843         EOPNOTSUPP.
18844         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18845         * modules/chown (Depends-on): Remove errno.
18846
18847 2009-09-06  Bruno Haible  <bruno@clisp.org>
18848
18849         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18850
18851 2009-09-06  Bruno Haible  <bruno@clisp.org>
18852
18853         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18854
18855 2009-09-06  Ben Pfaff  <blp@gnu.org>
18856             Bruno Haible  <bruno@clisp.org>
18857
18858         Work around a glibc bug in strtok_r.
18859         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18860         Undefine if UNDEFINE_STRTOK_R is set.
18861         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18863         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18864         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18865         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18866         UNDEFINE_STRTOK_R.
18867         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18868
18869 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18870
18871         exclude: minor fix
18872         * lib/exclude.c: Include wctype.h
18873
18874 2009-09-06  Akim Demaille  <demaille@gostai.com>
18875
18876         bootstrap: improve error message
18877         * build-aux/bootstrap (find_tool): Upon failure, report the list
18878         of candidates.
18879         Honor the initial value of the envvar.
18880
18881 2009-09-05  Eric Blake  <ebb9@byu.net>
18882
18883         symlinkat: new module
18884         * modules/symlinkat: New file.
18885         * lib/symlinkat.c: Likewise.
18886         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18888         * modules/unistd (Makefile.am): Use them.
18889         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18890         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18891         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18892         * MODULES.html.sh (File system functions): Mention module.
18893         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18894         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18895         * modules/symlinkat-tests: New test.
18896         * tests/test-symlinkat.c: Likewise.
18897
18898         test-openat-safer: add more checks
18899         * tests/test-openat-safer.c (main): Check more code paths.
18900
18901 2009-09-05  Jim Meyering  <meyering@redhat.com>
18902
18903         syntax-check: detect unnecessary inclusion of openat.h
18904         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18905
18906 2009-09-05  Bruno Haible  <bruno@clisp.org>
18907
18908         Support towlower, towupper.
18909         * doc/posix-functions/towlower.texi: Mention module wctype.
18910         * doc/posix-functions/towupper.texi: Likewise.
18911         * lib/wctype.in.h (towlower, towupper): New functions.
18912         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18913         (ASSERT): New macro.
18914         (e): New variable.
18915         (main): Test also towlower, towupper. Test WEOF argument.
18916         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18917
18918 2009-09-05  Bruno Haible  <bruno@clisp.org>
18919
18920         Fix conversion behaviour when the input is invalid.
18921         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18922         mark occurring in first pass of indirect conversion.
18923         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18924         input.
18925         Found by clang's static analyzer.
18926
18927 2009-09-05  Bruno Haible  <bruno@clisp.org>
18928
18929         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18930         where direct conversion is possible.
18931
18932 2009-09-04  Eric Blake  <ebb9@byu.net>
18933
18934         openat: fail with ENOENT on empty name
18935         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18936         buffer.
18937
18938         link-follow: fix logic bug in prior patch
18939         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18940         reversed sense of yes and no in prior patch.  Avoid confusing
18941         compilation failure with desired semantics.
18942
18943         link-follow: accomodate mingw and cross-compilation
18944         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18945         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18946         cross-compilation results to -1, to make linkat easier to
18947         implement when cross-compiling.  Trivially support mingw.
18948         * modules/link-follow (configure.ac): Call new name.
18949         * NEWS: Mention this.
18950
18951 2009-09-03  Eric Blake  <ebb9@byu.net>
18952
18953         faccessat: compile replacement
18954         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18955         needed.
18956
18957         fts: fix compilation error
18958         * lib/fts.c (includes): Re-add "openat.h", for
18959         openat_needs_fchdir.
18960
18961         faccessat: new module
18962         * modules/faccessat: New file.
18963         * lib/faccessat.c: Likewise.
18964         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18966         * modules/unistd (Makefile.am): Use it.
18967         * lib/unistd.in.h (faccessat): Declare it.
18968         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18969         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18970         * MODULES.html.sh (File system functions): Mention it.
18971         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18972         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18973
18974         euidaccess: prefer POSIX over non-standard implementation
18975         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18976         * lib/euidaccess.c (euidaccess): Use it if available.
18977
18978         openat: make template easier to use
18979         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18980         AT_FUNC_F2 to be undefined.
18981         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18982         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18983         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18984         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18985         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18986         Likewise.
18987         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18988         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18989         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18990         Likewise.
18991
18992         openat: declare in POSIX headers
18993         * NEWS: Mention this.
18994         * modules/openat (configure.ac): Declare witnesses.
18995         (Depends-on): Add fcntl-h, sys_stat, unistd.
18996         (Include): Mention correct headers.
18997         * modules/fcntl-h (Depends-on): Add link-warning.
18998         (Files): Add openat.m4.
18999         (Makefile.am): Substitute witnesses.
19000         * modules/sys_stat (Files, Makefile.am): Likewise.
19001         * modules/unistd (Files, Makefile.am): Likewise.
19002         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
19003         (gl_OPENAT_DEFAULTS): New macro.
19004         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
19005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
19006         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
19007         (SYS_STAT_H): Remove unused variable.
19008         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
19009         * lib/fcntl--.h (includes): Remove unneeded header.
19010         * lib/openat-safer.c (includes): Likewise.
19011         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
19012         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
19013         appropriate headers.
19014         (__OPENAT_PREFIX): Delete.
19015         * lib/fcntl.in.h (openat): Provide declaration.
19016         (AT_FDCWD): Fix Solaris bug.
19017         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
19018         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
19019         * lib/fchmodat.c (includes):  Adjust to find declaration.
19020         * lib/fchownat.c (includes): Likewise.
19021         * lib/mkdirat.c (includes): Likewise.
19022         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
19023         still visible.
19024
19025 2009-09-02  Eric Blake  <ebb9@byu.net>
19026
19027         errno: use consistently
19028         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
19029         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
19030         * lib/canonicalize.c (ELOOP): Likewise.
19031         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
19032         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
19033         * lib/lchown.c (EOPNOTSUPP): Likewise.
19034         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
19035         * lib/savewd.c (ESTALE): Likewise.
19036         * lib/settime.c (ENOSYS): Likewise.
19037         * lib/utimens.c (ENOSYS): Likewise.
19038         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
19039         * lib/chdir-safer.c (ELOOP): Likewise.
19040         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
19041         * modules/c-stack (Depends-on): Add errno.
19042         * modules/canonicalize (Depends-on): Likewise.
19043         * modules/chdir-safer (Depends-on): Likewise.
19044         * modules/fdopendir (Depends-on): Likewise.
19045         * modules/inet_ntop (Depends-on): Likewise.
19046         * modules/inet_pton (Depends-on): Likewise.
19047         * modules/lchown (Depends-on): Likewise.
19048         * modules/openat (Depends-on): Likewise.
19049         * modules/savewd (Depends-on): Likewise.
19050         * modules/settime (Depends-on): Likewise.
19051         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
19052
19053         fts: avoid leaking fds
19054         * modules/fts (Depends-on): Add cloexec.
19055         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
19056         flag.
19057
19058         fts: make directory fds more robust
19059         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
19060         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
19061
19062         backupfile, chdir-long, fts, savedir: make safer
19063         * lib/backupfile.c (includes): Use "dirent--.h", since
19064         numbered_backup can write to stderr during readdir.
19065         * lib/savedir.c (includes): Likewise.
19066         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
19067         emulation can write to stderr on failure.
19068         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
19069         * lib/getcwd.c: Document why opendir_safer is unused.
19070         * lib/glob.c: Likewise.
19071         * lib/scandir.c: Likewise.
19072         * lib/openat-proc.c: Likewise, for open_safer.
19073         * modules/backupfile (Depends-on): Add dirent-safer.
19074         * modules/savedir (Depends-on): Likewise.
19075         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
19076         * modules/chdir-long (Depends-on): Add openat-safer.
19077
19078         openat-safer: new module
19079         * modules/openat-safer: New file.
19080         * lib/openat-safer.c: Likewise.
19081         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
19082         * lib/fcntl-safer.h (openat_safer): Declare.
19083         * lib/fcntl--.h (openat): Override.
19084         * MODULES.html.sh (File descriptor based I/O): Mention it.
19085         * lib/openat.h: Add double-inclusion guards.
19086         * lib/openat.c (includes): Only include "fcntl-safer.h", not
19087         "fcntl--.h", so we can implement openat.
19088         * modules/openat-safer-tests: New test.
19089         * tests/test-openat-safer.c: New file.
19090
19091         dirent-safer: new module
19092         * modules/dirent-safer: New file.
19093         * lib/dirent--.h: Likewise.
19094         * lib/dirent-safer.h: Likewise.
19095         * lib/opendir-safer.c: Likewise.
19096         * m4/dirent-safer.m4: Likewise.
19097         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
19098         * modules/dirent-safer-tests: New test.
19099         * tests/test-dirent-safer.c: New file.
19100         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
19101
19102         fdopendir: optimize on mingw
19103         * lib/unistd.in.h (_gl_directory_name): New prototype.
19104         * lib/fchdir.c (_gl_directory_name): Implement it.
19105         (fchdir): Use it to simplify implementation.
19106         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
19107         fchdir, when available, to avoid calling [f]chdir().
19108
19109         fdopendir: split into its own module
19110         * lib/openat.c (fdopendir): Move...
19111         * lib/fdopendir.c: ...into new file.
19112         * modules/fdopendir: New module.
19113         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
19114         * modules/openat (Depends-on): Add fdopendir.
19115         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
19116         fdopendir here.
19117         * modules/savedir (Depends-on): Only need fdopendir, not full
19118         openat.
19119         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
19120         * lib/openat.h (fdopendir): Drop prototype.
19121         * lib/dirent.in.h (fdopendir): Provide prototype.
19122         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
19123         * modules/dirent (Makefile.am): Substitute them.
19124         * MODULES.html.sh (File system functions): Mention it.
19125         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
19126         * modules/fdopendir-tests: New file.
19127         * tests/test-fdopendir.c: Likewise.
19128
19129         fchdir: use more consistent macro convention
19130         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
19131         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
19132         REPLACE_FCHDIR, rather than relying on config.h macros.
19133         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
19134         inside a single make-time REPLACE_FCHDIR block, rather than using
19135         the config.h FCHDIR_REPLACEMENT.
19136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
19137         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
19138         Manage fstat replacement.
19139         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
19140         REPLACE_FCHDIR.
19141         * modules/sys_stat (Files): Add m4/unistd_h.m4.
19142         (Makefile.am): Substitute REPLACE_FCHDIR.
19143         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
19144         FCHDIR_REPLACEMENT.
19145         * lib/dup-safer.c (dup_safer): Likewise.
19146         * lib/dup2.c (rpl_dup2): Likewise.
19147         * lib/dup3.c (rpl_dup3): Likewise.
19148         * lib/open.c (rpl_open): Likewise.
19149
19150         fchdir: simplify error handling, and support dup3
19151         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
19152         stdbool, malloc-posix, realloc-posix.
19153         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
19154         (ensure_dirs_slot): Return false on allocation failure.
19155         (rpl_dup2): Delete.
19156         (_gl_register_dup): New function.
19157         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
19158         (_gl_register_fd): Close fd on allocation failure.
19159         * lib/fcntl.in.h (_gl_register_fd): Update signature.
19160         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
19161         prototype.
19162         (rpl_dup2_fchdir): Delete prototype.
19163         * lib/open.c (open): Update caller.
19164         * lib/dup2.c (dup2): Track fchdir metadata.
19165         * lib/dup3.c (dup3): Likewise.
19166         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
19167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
19168
19169 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19170
19171         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
19172         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
19173         don't pass arguments to AC_OUTPUT.
19174
19175 2009-09-02  Bruno Haible  <bruno@clisp.org>
19176
19177         * modules/mkdtemp (License): Relicense under LGPLv2+.
19178         Reported by Paolo Bonzini.
19179
19180 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19181
19182         Replace uses of obsolete autoconf macros in Jim's modules.
19183         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
19184         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
19185         can evoke a warning from autoconf when run with -Wobsolete
19186         enabled.  They were declared obsolete for good reasons (see
19187         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
19188         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
19189         should not continue using the deprecated macros.
19190         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
19191         obsolete Autoconf macros with modern counterparts.
19192         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19193         * m4/dos.m4 (gl_AC_DOS): Likewise.
19194         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
19195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19196         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
19197         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
19198         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
19199         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19200         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
19201         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
19202         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
19203         Likewise.
19204         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19205         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19206         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
19207         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
19208         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19209         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
19210
19211 2009-09-01  Eric Blake  <ebb9@byu.net>
19212
19213         fchdir: fix off-by-one bug in previous patch
19214         * lib/fchdir.c (rpl_fstat): Use correct bounds.
19215         (_gl_unregister_fd): Delete useless if.
19216
19217 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
19218
19219         maint.mk: sort the list of syntax-check rules
19220         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
19221         easier to get a sense of progress when the rules are run sequentially
19222         and take a long time.
19223
19224 2009-09-01  Simon Josefsson  <simon@josefsson.org>
19225
19226         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
19227         * modules/netinet_in: Likewise.
19228         * modules/sys_file: Likewise.
19229         * modules/sys_ioctl: Likewise.
19230         * modules/sys_select: Likewise.
19231         * modules/sys_socket: Likewise.
19232         * modules/sys_stat: Likewise.
19233         * modules/sys_time: Likewise.
19234         * modules/sys_times: Likewise.
19235         * modules/sys_utsname: Likewise.
19236         * modules/sys_wait: Likewise.
19237
19238 2009-09-01  Jim Meyering  <meyering@redhat.com>
19239
19240         fts: help ensure that return values are not ignored
19241         * lib/fts_.h (__GNUC_PREREQ): Define.
19242         (__attribute_warn_unused_result__): Define.
19243         (fts_children, fts_close, fts_open, fts_read): Declare with
19244         __attribute_warn_unused_result__.
19245
19246         fts: fts_close now fails also when closing a dir file descriptor fails
19247         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
19248         and propagate to caller, along with errno.
19249
19250         announce-gen: correct formatting in --help output
19251         * build-aux/announce-gen (usage): Move the one-line description in
19252         --help output "up", to where it belongs, just after Usage:.
19253
19254 2009-08-31  Eric Blake  <ebb9@byu.net>
19255
19256         fchdir: port to mingw
19257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
19258         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
19259         opened, then use a substitute.
19260         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
19261         replacement.
19262         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
19263         (_gl_register_fd): No need to check stat if open already filters
19264         all directories.
19265         (fchdir): Fix error condition to match POSIX.
19266         * modules/fchdir (Depends-on): Add sys_stat.
19267         * doc/posix-functions/open.texi (open): Document the limitation.
19268         * modules/fchdir-tests: New file.
19269         * tests/test-fchdir.c: Likewise.
19270
19271         canonicalize: allow cross-testing from cygwin to mingw
19272         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
19273         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
19274         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
19275         Likewise.
19276         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
19277         target does not support symlinks.
19278         * tests/test-canonicalize-lgpl.sh: Likewise.
19279
19280         chown: avoid compilation warning on mingw
19281         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
19282         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
19283         mingw.
19284         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19285         * modules/chown (Depends-on): Add errno.
19286
19287 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19288
19289         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
19290         command.
19291
19292 2009-08-31  Jim Meyering  <meyering@redhat.com>
19293
19294         canonicalize: remove useless initialization
19295         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
19296         initialization of local, "end".
19297
19298 2009-08-30  Bruno Haible  <bruno@clisp.org>
19299
19300         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
19301         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
19302         ENOSYS.
19303
19304 2009-08-30  Bruno Haible  <bruno@clisp.org>
19305
19306         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
19307         /usr/xpg4/bin/tr when it exists.
19308         * tests/test-pipe-filter-gi1.sh: Likewise.
19309
19310 2009-08-30  Bruno Haible  <bruno@clisp.org>
19311
19312         Work around deficient /usr/bin/id program on Solaris.
19313         * tests/test-file-has-acl.sh (ID): New variable.
19314         * tests/test-set-mode-acl.sh (ID): Likewise.
19315         * tests/test-copy-acl.sh (ID): Likewise.
19316         * tests/test-copy-file.sh (ID): Likewise.
19317
19318 2009-08-30  Bruno Haible  <bruno@clisp.org>
19319
19320         New module 'xstriconveh'.
19321         * lib/xstriconveh.h: New file.
19322         * lib/xstriconveh.c: New file.
19323         * modules/xstriconveh: New file.
19324
19325 2009-08-30  Bruno Haible  <bruno@clisp.org>
19326
19327         Make it easier to use mem_cd_iconveh.
19328         * lib/striconveh.h (iconveh_t): New type.
19329         (iconveh_open, iconveh_close): New declarations.
19330         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19331         with a single 'const iconveh_t *' argument.
19332         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
19333         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19334         with a single 'const iconveh_t *' argument.
19335         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
19336         * tests/test-striconveh.c (main): Update.
19337         * NEWS: Mention the change.
19338
19339 2009-08-30  Bruno Haible  <bruno@clisp.org>
19340
19341         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
19342         problem.
19343
19344 2009-08-30  Bruno Haible  <bruno@clisp.org>
19345
19346         Work around iconv_open problem on Solaris.
19347         * lib/iconv_open-solaris.gperf: New file.
19348         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
19349         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
19350         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
19351         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
19352         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
19353         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
19354
19355 2009-08-29  Jim Meyering  <meyering@redhat.com>
19356
19357         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
19358         * top/maint.mk (cvs-check): Remove target; it was just an alias
19359         to the better-named vc-diff-check.
19360         (maintainer-distcheck): Remove rule.  It was used only from
19361         the (alpha/beta/major) target, and all of its commands but one
19362         were coreutils-specific.
19363         (vc-dist): Remove rule.
19364         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
19365         Run vc-diff-check, not vc-dist.
19366         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
19367
19368 2009-08-27  Bruno Haible  <bruno@clisp.org>
19369
19370         * tests/test-bitrotate.c (main): Remove test that uses a shift count
19371         of 0.
19372
19373 2009-08-27  Bruno Haible  <bruno@clisp.org>
19374
19375         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
19376         compilers.
19377         * doc/func.texi: Document the SunPRO C bug.
19378
19379 2009-08-27  Bruno Haible  <bruno@clisp.org>
19380
19381         Fix link error on Solaris.
19382         * tests/test-parse-duration.c (xstrdup): Remove function.
19383
19384 2009-08-26  Pádraig Brady  <P@draigbrady.com>
19385
19386         ignore-value: handle pointer types, too
19387         * lib/ignore-value.h (__attribute__): Remove definition.
19388         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
19389         of a more concise and more-often effective "(void) i" statement.
19390         (ignore_ptr): New function to suppress warnings from functions that
19391         return pointers, and to make it explicit that one function doesn't
19392         handle all cases.
19393
19394 2009-08-25  Bruno Haible  <bruno@clisp.org>
19395
19396         dup2: work around a Linux bug.
19397         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19398         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19399         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19400         Reported by Simon Josefsson.
19401
19402 2009-08-25  Jim Meyering  <meyering@redhat.com>
19403
19404         libguestfs uses gnulib
19405         * users.txt: Add libguestfs.
19406
19407 2009-08-24  Eric Blake  <ebb9@byu.net>
19408
19409         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19410         * lib/pipe2.c (includes): Add binary-io.h.
19411         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19412
19413 2009-08-24  Bruno Haible  <bruno@clisp.org>
19414
19415         Tolerate declared but missing accept4 syscall.
19416         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19417         available.
19418         * lib/sys_socket.in.h (accept4): If the function is already present,
19419         override it.
19420         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19421         * modules/accept4 (Makefile.am): Compile accept4.c always.
19422         Reported by Paolo Bonzini and Eric Blake.
19423
19424 2009-08-23  Bruno Haible  <bruno@clisp.org>
19425
19426         New module 'accept4'.
19427         * lib/sys_socket.in.h (accept4): New declaration.
19428         * lib/accept4.c: New file.
19429         * m4/accept4.m4: New file.
19430         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19431         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19432         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19433         HAVE_ACCEPT4.
19434         * modules/accept4: New file.
19435         * doc/glibc-functions/accept4.texi: Mention the new module.
19436
19437 2009-08-24  Jim Meyering  <meyering@redhat.com>
19438
19439         progname: also set global program_invocation_name, when possible
19440         Before this change, a libtool-enabled program that calls glibc's
19441         error function would report the program name as
19442         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19443         * modules/progname (configure.ac): Check for a declaration of
19444         program_invocation_name.
19445         * lib/progname.c:  Include <errno.h>.
19446         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19447         Set program_invocation_name.
19448
19449 2009-08-23  Bruno Haible  <bruno@clisp.org>
19450
19451         * lib/dup3.c: Include <string.h>.
19452
19453 2009-08-23  Bruno Haible  <bruno@clisp.org>
19454
19455         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19456         * lib/pipe2.c (pipe2): Likewise.
19457         Suggested by Eric Blake.
19458
19459 2009-08-23  Bruno Haible  <bruno@clisp.org>
19460
19461         Tolerate declared but missing dup3 syscall.
19462         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19463         * lib/unistd.in.h (dup3): If the function is already present,
19464         override it.
19465         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19466         * modules/dup3 (Makefile.am): Compile dup3.c always.
19467         Reported by Paolo Bonzini.
19468
19469 2009-08-23  Bruno Haible  <bruno@clisp.org>
19470
19471         Tolerate declared but missing pipe2 syscall.
19472         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19473         available.
19474         * lib/unistd.in.h (pipe2): If the function is already present,
19475         override it.
19476         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19477         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19478         Reported by Paolo Bonzini.
19479
19480 2009-08-23  Bruno Haible  <bruno@clisp.org>
19481
19482         * lib/pipe2.c (pipe2): Move #ifs inside function.
19483
19484 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19485
19486         quotearg: document limitations of quote_these_too
19487         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19488         those limitations are created.
19489         * lib/quotearg.h (set_char_quoting): Document that digits and
19490         letters that are special after backslash are not permitted.
19491         (quotearg_char): Cross-reference set_char_quoting documentation.
19492
19493 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19494
19495         quotearg: implement custom_quoting_style
19496         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19497         right_quote fields.
19498         (set_custom_quoting): New public function.
19499         (quotearg_buffer_restyled): Add left_quote and right_quote
19500         arguments, handle them very much like locale quoting, and update
19501         all uses.
19502         (quotearg_n_custom): New public function.
19503         (quotearg_n_custom_mem): New public function.
19504         (quotearg_custom): New public function.
19505         (quotearg_custom_mem): New public function.
19506         * lib/quotearg.h: Prototype and document new public functions.
19507         (enum quoting_style): For escape_quoting_style and
19508         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19509         ignored even though they're otherwise like c_quoting_style.
19510         Add custom_quoting_style member and document with comparison to
19511         clocale_quoting_style.
19512         * tests/test-quotearg.c (custom_quotes): New array.
19513         (custom_results): New array.
19514         (main): Extend to test custom quoting.
19515
19516 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19517
19518         quotearg: fix right quote escaping when it's in quote_these_too
19519         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19520         quote, be sure to prepend only one backslash.
19521         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19522         (main): Test it.
19523
19524 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19525
19526         quotearg-tests: test escaping of embedded locale quotes
19527         * tests/test-quotearg.c (struct result_strings): Add member for
19528         new input.
19529         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19530         (inputs): Add new input.
19531         (results_g): Add expected results.
19532         (flag_results): Likewise.
19533         (locale_results): Likewise.
19534         (compare_strings): Check those.
19535
19536 2009-08-23  Bruno Haible  <bruno@clisp.org>
19537
19538         Tests for module 'dup3'.
19539         * modules/dup3-tests: New file.
19540         * tests/test-dup3.c: New file.
19541
19542         New module 'dup3'.
19543         * lib/unistd.in.h (dup3): New declaration.
19544         * lib/dup3.c: New file.
19545         * m4/dup3.m4: New file.
19546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19547         HAVE_DUP3.
19548         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19549         * modules/dup3: New file.
19550         * doc/glibc-functions/dup3.texi: Mention the new module.
19551
19552 2009-08-23  Bruno Haible  <bruno@clisp.org>
19553
19554         Tweak the dup2 test.
19555         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19556         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19557         the test file is still empty. Fix argument order of lseek.
19558
19559 2009-08-23  Bruno Haible  <bruno@clisp.org>
19560
19561         Avoid test link errors when the modules getopt-gnu, gettext are used.
19562         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19564
19565 2009-08-23  Bruno Haible  <bruno@clisp.org>
19566
19567         Fix getdtablesize() on mingw.
19568         * lib/getdtablesize.c (getdtablesize): Implement differently.
19569         * lib/unistd.in.h (getdtablesize): Improve comment.
19570
19571 2009-08-23  Bruno Haible  <bruno@clisp.org>
19572
19573         New module 'mkostemp'.
19574         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19575         * lib/stdlib.in.h (mksotemp): New declaration.
19576         * lib/mkostemp.c: New file, from glibc with modifications.
19577         * lib/tempname.h (GT_FILE): Remove outdated comment.
19578         (gen_tempname): Add flags argument.
19579         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19580         (__GT_FILE): Map to 1.
19581         (small_open, large_open): Remove macros.
19582         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19583         * lib/mkstemp.c (mkstemp): Update.
19584         * lib/mkdtemp.c (mkdtemp): Likewise.
19585         * m4/mkostemp.m4: New file.
19586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19587         HAVE_MKOSTEMP.
19588         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19589         HAVE_MKOSTEMP.
19590         * modules/mkostemp: New file, based on modules/mkstemp.
19591         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19592         * NEWS: Mention the change.
19593
19594 2009-08-23  Bruno Haible  <bruno@clisp.org>
19595
19596         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19597         Reported by Eric Blake.
19598
19599 2009-08-23  Bruno Haible  <bruno@clisp.org>
19600
19601         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19602         Reported by Eric Blake.
19603
19604 2009-08-23  Bruno Haible  <bruno@clisp.org>
19605
19606         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19607         * modules/pipe2 (Depends-on): Likewise.
19608
19609 2009-08-23  Eric Blake  <ebb9@byu.net>
19610
19611         fcntl-h: add O_TTY_INIT support
19612         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19613         * tests/test-fcntl-h.c (o): Test it.
19614         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19615
19616         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19617         * modules/fcntl: Move <fcntl.h> header replacement...
19618         * modules/fcntl-h: ...to new name, so as not to collide with
19619         like-named function.
19620         * tests/test-fcntl.c: Rename...
19621         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19622         * modules/fcntl-tests: Rename...
19623         * modules/fcntl-h-tests: ...to this.  Update test file name.
19624         * modules/chdir-long (Depends-on): Update clients.
19625         * modules/chdir-safer (Depends-on): Likewise.
19626         * modules/fcntl-safer (Depends-on): Likewise.
19627         * modules/fts (Depends-on): Likewise.
19628         * modules/mkancesdirs (Depends-on): Likewise.
19629         * modules/mkdir-p (Depends-on): Likewise.
19630         * modules/open (Depends-on): Likewise.
19631         * modules/savewd (Depends-on): Likewise.
19632         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19633         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19634
19635 2009-08-22  Bruno Haible  <bruno@clisp.org>
19636
19637         * modules/binary-io (License): Relicense under LGPL.
19638         * modules/pipe2 (License): Likewise.
19639
19640 2009-08-22  Bruno Haible  <bruno@clisp.org>
19641
19642         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19643         return value.
19644         * lib/pipe-filter-gi.c (filter_init): Likewise.
19645         Reported by Eric Blake.
19646
19647 2009-08-22  Bruno Haible  <bruno@clisp.org>
19648
19649         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19650         * modules/pipe (Depends-on): Add pipe2.
19651
19652 2009-08-22  Bruno Haible  <bruno@clisp.org>
19653
19654         Tests for module 'pipe2'.
19655         * modules/pipe2-tests: New file.
19656         * tests/test-pipe2.c: New file.
19657
19658         New module 'pipe2'.
19659         * lib/unistd.in.h (pipe2): New declaration.
19660         * lib/pipe2.c: New file.
19661         * m4/pipe2.m4: New file.
19662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19663         HAVE_PIPE2.
19664         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19665         * modules/pipe2: New file.
19666         * doc/glibc-functions/pipe2.texi: Mention the new module.
19667
19668 2009-08-22  Bruno Haible  <bruno@clisp.org>
19669
19670         Reference some new glibc functions.
19671         * doc/glibc-functions/accept4.texi: New file.
19672         * doc/glibc-functions/dup3.texi: New file.
19673         * doc/glibc-functions/mkostemp.texi: New file.
19674         * doc/glibc-functions/pipe2.texi: New file.
19675         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
19676         (Glibc sys/socket.h): Refer to accept4.
19677         (Glibc unistd.h): Refer to dup3, pipe2.
19678         Reported by Eric Blake.
19679
19680 2009-08-22  Jim Meyering  <meyering@redhat.com>
19681             Bruno Haible  <bruno@clisp.org>
19682
19683         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
19684         This makes it so packages using automake-1.11's silent-rules option
19685         can print e.g., a single "GEN    configmake.h" line, rather than
19686         the 30+ statements that perform the job.  If you want to see the
19687         actual commands, you can still run "make V=1".
19688         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
19689         so that make output is abbreviated when those variables are defined
19690         appropriately.
19691         * modules/argz: Likewise.
19692         * modules/arpa_inet: Likewise.
19693         * modules/byteswap: Likewise.
19694         * modules/configmake: Likewise.
19695         * modules/dirent: Likewise.
19696         * modules/errno: Likewise.
19697         * modules/fcntl: Likewise.
19698         * modules/float: Likewise.
19699         * modules/fnmatch: Likewise.
19700         * modules/getopt-posix: Likewise.
19701         * modules/glob: Likewise.
19702         * modules/iconv_open: Likewise.
19703         * modules/inttypes: Likewise.
19704         * modules/localcharset: Likewise.
19705         * modules/locale: Likewise.
19706         * modules/math: Likewise.
19707         * modules/netdb: Likewise.
19708         * modules/netinet_in: Likewise.
19709         * modules/poll: Likewise.
19710         * modules/posix_spawnp-tests: Likewise.
19711         * modules/sched: Likewise.
19712         * modules/search: Likewise.
19713         * modules/selinux-h: Likewise.
19714         * modules/signal: Likewise.
19715         * modules/spawn: Likewise.
19716         * modules/stdarg: Likewise.
19717         * modules/stdbool: Likewise.
19718         * modules/stddef: Likewise.
19719         * modules/stdint: Likewise.
19720         * modules/stdio: Likewise.
19721         * modules/stdlib: Likewise.
19722         * modules/string: Likewise.
19723         * modules/strings: Likewise.
19724         * modules/sys_file: Likewise.
19725         * modules/sys_ioctl: Likewise.
19726         * modules/sys_select: Likewise.
19727         * modules/sys_socket: Likewise.
19728         * modules/sys_stat: Likewise.
19729         * modules/sys_time: Likewise.
19730         * modules/sys_times: Likewise.
19731         * modules/sys_utsname: Likewise.
19732         * modules/sys_wait: Likewise.
19733         * modules/sysexits: Likewise.
19734         * modules/time: Likewise.
19735         * modules/unistd: Likewise.
19736         * modules/wchar: Likewise.
19737         * modules/wctype: Likewise.
19738
19739 2009-08-22  Jim Meyering  <meyering@redhat.com>
19740
19741         announce-gen: detect write failure
19742         * build-aux/announce-gen: Add Coda at end.
19743         Remove equivalent-but-more-verbose block at top.
19744
19745 2009-08-19  Akim Demaille  <demaille@gostai.com>
19746
19747         bootstrap: --help to stdout.
19748         * bootstrap (usage): Don't send --help to stderr.
19749         Use a here doc instead of a long string.
19750
19751 2009-08-21  Eric Blake  <ebb9@byu.net>
19752
19753         test-popen-safer: split from test-popen
19754         * tests/test-popen.c (main): Move...
19755         * tests/test-popen.h: ...into new file.
19756         * tests/test-popen-safer2.c: New file.
19757         * modules/popen-tests (Files): Add test-popen.h.
19758         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
19759         Suggested by Bruno Haible.
19760
19761         test-fcntl-safer: split from test-open
19762         * tests/test-open.c (main): Move...
19763         * tests/test-open.h: ...into new file.
19764         * tests/test-fcntl-safer.c: New file.
19765         * modules/open-tests (Files): Add test-open.h.
19766         * modules/fcntl-safer-tests: New file.
19767         Suggested by Bruno Haible.
19768
19769         test-fopen-safer: split from test-fopen
19770         * tests/test-fopen.c (main): Move...
19771         * tests/test-fopen.h: ...into new file.
19772         * tests/test-fopen-safer.c: New file.
19773         * modules/fopen-tests (Files): Add test-fopen.h.
19774         * modules/fopen-safer-tests: New file.
19775         Suggested by Bruno Haible.
19776
19777 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19778
19779         popen-safer: test O_CLOEXEC at run-time.
19780         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
19781
19782 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19783
19784         fcntl: move more flags to the header
19785         * lib/cloexec.c: Do not define FD_CLOEXEC here.
19786         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
19787         * lib/fcntl.in.h: Do both things here.
19788
19789 2009-08-21  Jim Meyering  <meyering@redhat.com>
19790
19791         consistently remove $@-t before redirecting to it
19792         * modules/argz: Remove $@-t and $@ before redirecting to the former.
19793         * modules/alloca-opt: Likewise.
19794         * modules/byteswap: Likewise.
19795         * modules/fnmatch: Likewise.
19796         * modules/getopt-posix: Likewise.
19797         * modules/glob: Likewise.
19798         * modules/poll: Likewise.
19799         * modules/posix_spawnp-tests: Likewise.
19800         * modules/sys_socket: Likewise.
19801         * modules/sysexits: Likewise.
19802
19803 2009-08-21  Eric Blake  <ebb9@byu.net>
19804
19805         popen: simplify access to original popen
19806         * lib/popen.c (rpl_popen): No need to worry about popen being a
19807         macro.
19808         Reported by Bruno Haible.
19809
19810 2009-08-20  Eric Blake  <ebb9@byu.net>
19811
19812         build: avoid some compiler warnings
19813         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
19814         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
19815         type.
19816         (new_exclude_segment, excluded_file_pattern_p)
19817         (excluded_file_name_p): Reduce scope.
19818         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
19819         old-style declaration.
19820
19821 2009-08-20  Simon Josefsson  <simon@josefsson.org>
19822
19823         * tests/test-exclude1.sh: Handle Windows EOL.
19824         * tests/test-exclude2.sh: Likewise.
19825         * tests/test-exclude3.sh: Likewise.
19826         * tests/test-exclude4.sh: Likewise.
19827         * tests/test-exclude5.sh: Likewise.
19828         * tests/test-exclude6.sh: Likewise.
19829         * tests/test-exclude7.sh: Likewise.
19830
19831 2009-08-19  Akim Demaille  <demaille@gostai.com>
19832
19833         bootstrap: find sha1sum when named gsha1sum.
19834         * bootstrap (find_tool): New.
19835         ($SHA1SUM): New.
19836         Use it.
19837
19838 2009-08-20  Jim Meyering  <meyering@redhat.com>
19839
19840         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19841         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19842         expression that converts "." in a file name to "\." in the resulting
19843         regexp.  Start with a dummy statement, so that prior shell variable
19844         definitions are expanded portably.  Reported by Simon Josefsson.
19845
19846 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19847
19848         Fix polling for writeability of a screen buffer.
19849         * lib/poll.c: Distinguish input and screen buffers for the
19850         Win32 implementation.
19851         * lib/select.c: Likewise.
19852
19853 2009-08-19  Eric Blake  <ebb9@byu.net>
19854
19855         popen-safer: prevent popen from clobbering std descriptors
19856         * modules/popen-safer: New file.
19857         * lib/popen-safer.c: Likewise.
19858         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19859         * lib/stdio--.h (popen): Provide override.
19860         * lib/stdio-safer.h (popen_safer): Provide declaration.
19861         * tests/test-popen.c (includes): Partially test this.
19862         * modules/popen-safer-tests: New file, for more tests.
19863         * tests/test-popen-safer.c: Likewise.
19864         * MODULES.html.sh (file stream based Input/Output): Mention it.
19865
19866         tests: test some of the *-safer modules
19867         * modules/fopen-safer (Depends-on): Add fopen.
19868         * modules/fcntl-safer (Depends-on): Add fcntl.
19869         * modules/stdlib-safer (Depends-on): Add stdlib.
19870         (configure.ac): Set indicator.
19871         * modules/unistd-safer (configure.ac): Likewise.
19872         * modules/tmpfile-safer (configure.ac): Likewise.
19873         (Depends-on): Add tmpfile.
19874         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19875         active.
19876         * tests/test-fopen.c (includes): Test safer versions when they are
19877         in use.
19878         * tests/test-open.c (includes): Likewise.
19879
19880         popen: fix cygwin 1.5 bug when stdin closed
19881         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19882         * modules/popen: New file.
19883         * modules/popen-tests: Likewise.
19884         * tests/test-popen.c: Likewise.
19885         * m4/popen.m4: Likewise.
19886         * lib/popen.c: Likewise.
19887         * lib/stdio.in.h (popen): New declaration.
19888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19889         * modules/stdio (Makefile.am): Likewise.
19890         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19891
19892 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19893
19894         maint.mk: give full control over update-copyright exclusions
19895         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19896         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19897         (update-copyright): Don't force inclusion of top-level
19898         ChangeLog.  Don't force exclusion of all COPYING files, but make
19899         them the default exclusion instead.
19900
19901 2009-08-16  Bruno Haible  <bruno@clisp.org>
19902
19903         Fix test failures on Solaris 10.
19904         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19905         tests when Solaris iconv() is used.
19906         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19907         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19908         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19909         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19910         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19911
19912 2009-08-16  Bruno Haible  <bruno@clisp.org>
19913
19914         Fix test failures on Solaris 10.
19915         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19916         'tr' program and pass it as first argument.
19917         * tests/test-pipe-filter-gi1.sh: Likewise.
19918         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19919         program as first argument.
19920         * tests/test-pipe-filter-gi1.c (main): Likewise.
19921
19922 2009-08-16  Eric Blake  <ebb9@byu.net>
19923
19924         fpurge: fix previous commits
19925         * modules/fpurge (Makefile.am): Make replacement conditional,
19926         partially reverting 2007-04-29 change; missed in previous
19927         attempt.
19928         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19929         is missing.
19930
19931 2009-08-16  Bruno Haible  <bruno@clisp.org>
19932
19933         Clarify fpurge's effect on the file position.
19934         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19935         * tests/test-fpurge.c (main): Make a second pass for checking the file
19936         position.
19937
19938 2009-08-16  Bruno Haible  <bruno@clisp.org>
19939
19940         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19941         declaration of fpurge is missing.
19942         * tests/test-fpurge.c (main): Check that the file has not more contents
19943         than expected. Close the file before removing it.
19944
19945 2009-08-15  Eric Blake  <ebb9@byu.net>
19946
19947         fpurge: don't wrap working cygwin implementation
19948         * lib/fpurge.c (fpurge): Fix comment typo.
19949         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19950         1.7 to avoid replacement.
19951         * tests/test-fpurge.c (main): Enhance test.
19952
19953 2009-08-15  Eric Blake  <ebb9@byu.net>
19954         and Jim Meyering  <meyering@redhat.com>
19955
19956         test-update-copyright: skip if perl is insufficient
19957         * tests/test-update-copyright.sh: Failure to run maintainer tool
19958         should not cause testsuite failure on cygwin 1.5.
19959
19960 2009-08-14  Eric Blake  <ebb9@byu.net>
19961
19962         doc: mention more functions added in cygwin 1.7.0
19963         * doc/posix-headers/limits.texi (limits.h): Update for recent
19964         cygwin additions.
19965         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19966         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19967         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19968         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19969         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19970
19971 2009-08-14  Eric Blake  <ebb9@byu.net>
19972
19973         maint.mk: simplify update-copyright rule
19974         * top/maint.mk (update-copyright-local): Delete, and document how
19975         to do it in cfg.mk instead.
19976         (update-copyright-exclude-regexp): Delete, and document how to do
19977         it in .x-update-copyright instead.
19978         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19979         exclude ChangeLog.
19980
19981 2009-08-14  Bruno Haible  <bruno@clisp.org>
19982
19983         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19984
19985 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19986
19987         maint.mk: support update-copyright-env
19988         * top/maint.mk (update-copyright-env): Define place-holder.
19989         (update-copyright): Expand $(update-copyright-env) before
19990         invoking update-copyright.
19991
19992 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19993
19994         update-copyright: implement forced reformatting
19995         * build-aux/update-copyright: Implement and document
19996         UPDATE_COPYRIGHT_FORCE.
19997         * tests/test-update-copyright.sh: Test it.
19998
19999 2009-08-14  Eric Blake  <ebb9@byu.net>
20000         and Bruno Haible  <bruno@clisp.org>
20001
20002         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
20003         * tests/test-locale.c: Revert previous patch related to NULL.
20004         * tests/test-stdio.c: Likewise.
20005         * tests/test-stdlib.c: Likewise.
20006         * tests/test-string.c: Likewise.
20007         * tests/test-unistd.c: Likewise.
20008         * modules/time-tests (Depends-on): Add verify.
20009         * modules/wchar-tests (Depends-on): Likewise.
20010         * tests/test-time.c: Test for NULL compliance.
20011         * tests/test-wchar.c: Likewise.
20012         * modules/locale (Depends-on): Add stddef.
20013         * modules/stdio (Depends-on): Likewise.
20014         * modules/stdlib (Depends-on): Likewise.
20015         * modules/string (Depends-on): Likewise.
20016         * modules/time (Depends-on): Likewise.
20017         * modules/unistd (Depends-on): Likewise.
20018         * modules/wchar (Depends-on): Likewise.
20019         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
20020         * lib/stdlib.in.h (includes): Likewise.
20021         * lib/string.in.h (includes): Likewise.
20022         * lib/time.in.h (includes): Likewise.
20023         * lib/unistd.in.h (includes): Likewise.
20024         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
20025         replaced.
20026         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20027         * m4/stddef_h.m4: New file.
20028         * modules/stddef: Likewise.
20029         * lib/stddef.in.h: Likewise.
20030         * modules/stddef-tests: Likewise.
20031         * tests/test-stddef.c: Likewise.
20032         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
20033         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
20034         * doc/posix-headers/locale.texi (locale.h): Likewise.
20035         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
20036         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20037         * doc/posix-headers/string.texi (string.h): Likewise.
20038         * doc/posix-headers/time.texi (time.h): Likewise.
20039         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
20040         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
20041
20042 2009-08-14  Eric Blake  <ebb9@byu.net>
20043
20044         doc: improve git diff of texinfo files
20045         * .gitattributes: Add rule for *.texi files, with hint on how to
20046         use it.
20047         Copied from m4, and based on a report by Bruno Haible.
20048
20049 2009-08-14  Bruno Haible  <bruno@clisp.org>
20050
20051         Disable multithread support by default on Cygwin 1.5.x for real.
20052         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
20053
20054 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20055
20056         update-copyright: much ado about intervals
20057         * build-aux/update-copyright: Implement and document
20058         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
20059         of copyright year intervals.
20060         Also, document UPDATE_COPYRIGHT_YEAR.
20061         * tests/test-update-copyright.sh: Test it.
20062
20063         update-copyright: convert 2-digit to 4-digit years
20064         * build-aux/update-copyright: Implement and document.
20065         * tests/test-update-copyright.sh: Update.
20066
20067 2009-08-14  Jim Meyering  <meyering@redhat.com>
20068
20069         test-exclude: avoid coreutils "make check" failure
20070         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
20071         just as in test-argmatch.c.
20072
20073 2009-08-13  Eric Blake  <ebb9@byu.net>
20074
20075         test-dup2: fix bad assumption
20076         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
20077         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
20078
20079         test-version-etc: fix CRLF portability issue
20080         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
20081         recognize \r.
20082         * tests/test-argp-version-etc-1.sh: Likewise.
20083
20084         getopt: update client modules
20085         * modules/argp (Depends-on): Use getopt-gnu.
20086         * modules/git-merge-changelog (Depends-on): Likewise.
20087         * modules/long-options (Depends-on): Likewise.
20088         * modules/xstrtol (Depends-on): Likewise.
20089
20090 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20091
20092         * tests/test-version-etc.sh: Don't fail on different
20093         project/version.  Don't fail on CRLF differences.  Rewrite to use
20094         multiple -e instead of multiple sed forks, suggested by Eric Blake
20095         <ebb9@byu.net>.
20096         * tests/test-argp-version-etc-1.sh: Likewise.
20097
20098 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20099
20100         * tests/test-version-etc.sh: Don't fail on different
20101         project/version.
20102
20103 2009-08-12  Bruno Haible  <bruno@clisp.org>
20104
20105         Tests for modules 'getopt-posix', 'getopt-gnu'.
20106         * modules/getopt-posix-tests: New file.
20107         * tests/test-getopt.c: New file.
20108         * tests/test-getopt.h: New file.
20109         * tests/test-getopt_long.h: New file.
20110
20111         New modules 'getopt-posix', 'getopt-gnu'.
20112         * modules/getopt-gnu: New file, renamed from modules/getopt.
20113         * modules/getopt-posix: New file.
20114         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
20115         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
20116         (gl_GETOPT): Remove macro.
20117         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
20118         Disable the test against BSD systems that declare optreset. Test
20119         against mingw bug. Test against lack of support of optional arguments
20120         on many platforms.
20121         * doc/glibc-headers/getopt.texi: Update module name and list of
20122         relevant platforms.
20123         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
20124         'getopt-gnu' and more portability problems.
20125         * NEWS: Mention the changes.
20126
20127 2009-08-12  Bruno Haible  <bruno@clisp.org>
20128
20129         Ensure that optarg etc. get declared by <unistd.h>.
20130         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
20131         AC_USE_SYSTEM_EXTENSIONS.
20132         * modules/getopt (Depends-on): Add 'extensions'.
20133
20134 2009-08-12  Bruno Haible  <bruno@clisp.org>
20135
20136         Avoid test link errors.
20137         * modules/pipe-filter-ii-tests (Makefile.am): Define
20138         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
20139         * modules/pipe-filter-gi-tests (Makefile.am): Define
20140         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
20141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20142
20143 2009-08-12  Bruno Haible  <bruno@clisp.org>
20144
20145         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
20146         gl_GETOPT_SUBSTITUTE before.
20147         (gl_GETOPT): Use it.
20148         * m4/argp.m4 (gl_ARGP): Update.
20149         Reported by Sergey Poznyakoff.
20150
20151         * m4/getopt.m4: Reorder macros.
20152         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
20153         (gl_GETOPT_SUBSTITUTE): Remove macro.
20154
20155 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20156
20157         Minor improvement in gitlog-to-changelog
20158
20159         * build-aux/gitlog-to-changelog: New option `--format' makes
20160         output format string configurable.
20161
20162 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20163
20164         Optimize exclude: use hash tables for non-wildcard patterns.
20165
20166         * lib/exclude.c: Include hash.h and mbuiter.h
20167         (struct exclude_pattern, exclude_segment): New data types.
20168         (struct exclude): Rewrite.
20169         (fnmatch_pattern_has_wildcards): New function.
20170         (new_exclude_segment, free_exclude_segment): New functions.
20171         (excluded_file_pattern_p, excluded_file_name_p): New functions.
20172         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
20173         * lib/exclude.h (is_fnmatch_pattern): New prototype.
20174         * modules/exclude: Depend on hash and mbuiter.
20175
20176         * modules/exclude-tests: New file.
20177         * tests/test-exclude.c: New file.
20178         * tests/test-exclude1.sh: New file.
20179         * tests/test-exclude2.sh: New file.
20180         * tests/test-exclude3.sh: New file.
20181         * tests/test-exclude4.sh: New file.
20182         * tests/test-exclude5.sh: New file.
20183         * tests/test-exclude6.sh: New file.
20184         * tests/test-exclude7.sh: New file.
20185
20186 2009-08-12  Bruno Haible  <bruno@clisp.org>
20187
20188         Ensure that getopt() gets declared by <unistd.h>.
20189         * lib/unistd.in.h: Conditionally include getopt.h.
20190         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
20191         Set GNULIB_UNISTD_H_GETOPT.
20192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20193         GNULIB_UNISTD_H_GETOPT.
20194         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
20195
20196 2009-08-12  Bruno Haible  <bruno@clisp.org>
20197
20198         Clarify logic.
20199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
20200         gl_replace_getopt instead of GETOPT_H.
20201
20202 2009-08-12  Bruno Haible  <bruno@clisp.org>
20203
20204         * m4/getopt.m4: Add comments.
20205
20206 2009-08-12  Bruno Haible  <bruno@clisp.org>
20207
20208         Disable multithread support by default on Cygwin 1.5.x.
20209         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
20210         set gl_use_threads=no if not specified otherwise.
20211
20212 2009-08-11  Bruno Haible  <bruno@clisp.org>
20213
20214         Avoid compilation error on NetBSD 5.0.
20215         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
20216         * tests/test-stdio.c: Likewise.
20217         * tests/test-stdlib.c: Likewise.
20218         * tests/test-string.c: Likewise.
20219         * tests/test-unistd.c: Likewise.
20220         Reported by Greg Troxel <gdt@ir.bbn.com>
20221         at <https://savannah.gnu.org/support/?106973>.
20222
20223 2009-08-11  Bruno Haible  <bruno@clisp.org>
20224
20225         * modules/dup2-tests (Depends-on): Remove close.
20226
20227         Undo 2009-07-19 commit.
20228         * modules/acl-tests (Depends-on): Remove close.
20229         * modules/binary-io-tests (Depends-on): Likewise.
20230         * modules/closein-tests (Depends-on): Likewise.
20231         * modules/flock-tests (Depends-on): Likewise.
20232         * modules/fsync-tests (Depends-on): Likewise.
20233         * modules/lseek-tests (Depends-on): Likewise.
20234         * modules/pipe-tests (Depends-on): Likewise.
20235         * modules/posix_spawn-tests (Depends-on): Likewise.
20236         * modules/posix_spawnp-tests (Depends-on): Likewise.
20237         * modules/stat-time-tests (Depends-on): Likewise.
20238         * modules/yesno-tests (Depends-on): Likewise.
20239
20240 2009-08-10  Bruno Haible  <bruno@clisp.org>
20241
20242         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
20243
20244 2009-08-10  Bruno Haible  <bruno@clisp.org>
20245
20246         Fix a gcc warning.
20247         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
20248
20249 2009-08-10  Bruno Haible  <bruno@clisp.org>
20250
20251         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
20252         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
20253         not only the first time.
20254         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
20255         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
20256         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
20257         is 1, not only the the first time.
20258
20259 2009-08-10  Bruno Haible  <bruno@clisp.org>
20260
20261         Make it possible to use module 'gethostname' without module 'close'.
20262         * lib/unistd.in.h (close): Evoke a link error only if
20263         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20265         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20266         * modules/unistd (Makefile.am): Substitute
20267         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20268         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
20269         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20270         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20271         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20272         * modules/sys_ioctl (Makefile.am): Substitute
20273         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20274         * modules/socket (configure.ac): On native Windows, set
20275         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
20276         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20277         Reported by Sam Steingold <sds@gnu.org>.
20278
20279 2009-08-10  Bruno Haible  <bruno@clisp.org>
20280
20281         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
20282         * modules/ioctl (configure.ac): Likewise.
20283
20284 2009-08-10  Bruno Haible  <bruno@clisp.org>
20285
20286         Avoid collision between gnulib wrapper and libintl wrapper.
20287         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
20288         already defined in intl/printf.c.
20289         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
20290         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
20291
20292 2009-08-09  Bruno Haible  <bruno@clisp.org>
20293
20294         Make <sys/select.h> really self-contained, also on Solaris 10.
20295         * lib/sys_select.in.h: Include <string.h>.
20296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
20297         Solaris 10 problem.
20298         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
20299         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
20300         Reported by Jim Meyering.
20301
20302 2009-08-09  Bruno Haible  <bruno@clisp.org>
20303
20304         Avoid warnings from 'aclocal' that are due to a use of macro name
20305         AM_XGETTEXT_OPTION that is not defined in automake.
20306         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
20307         automake.
20308         * modules/error (configure.ac): Likewise.
20309         * modules/propername (configure.ac): Likewise.
20310         * modules/vasprintf (configure.ac): Likewise.
20311         * modules/verror (configure.ac): Likewise.
20312         * modules/xprintf (configure.ac): Likewise.
20313         * modules/xvasprintf (configure.ac): Likewise.
20314
20315 2009-08-08  Bruno Haible  <bruno@clisp.org>
20316
20317         Avoid compilation error in C++ mode.
20318         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
20319         Reported by Sam Steingold <sds@gnu.org>.
20320
20321 2009-08-08  Bruno Haible  <bruno@clisp.org>
20322
20323         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
20324         for the various Unix platforms.
20325         * doc/posix-headers/limits.texi: Update platforms list regarding
20326         HOST_NAME_MAX.
20327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20328
20329 2009-08-07  Jim Meyering  <meyering@redhat.com>
20330
20331         selinux-at: fix typo in a comment
20332         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
20333         Spotted by Paolo Bonzini.
20334
20335         selinux-at: remove redundant m4 code, add documentation
20336         * modules/selinux-at (configure.ac): Remove redundant code.
20337         LIB_SELINUX is already set via the dependent module, selinux-h.
20338         (Include): Add quotes around selinux-at.h.
20339         * lib/selinux-at.h: Add documentation.
20340         Reported by Bruno Haible in
20341         http://marc.info/?l=gnulib-bug&m=124958988300749
20342
20343 2009-08-07  Bruno Haible  <bruno@clisp.org>
20344
20345         Avoid link error on MacOS X 10.3 and 10.4.
20346         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
20347         on non-ELF systems.
20348         * lib/argp-pv.c (argp_program_version): Likewise.
20349         Reported by Simon Josefsson.
20350
20351 2009-08-07  Simon Josefsson  <simon@josefsson.org>
20352
20353         * tests/test-version-etc.sh: Use $EXEEXT.
20354
20355 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
20356
20357         update-copyright: update documentation to point to maint.mk
20358         * build-aux/update-copyright: Here.
20359
20360 2009-08-06  Jim Meyering  <meyering@redhat.com>
20361
20362         maint.mk: support update-copyright-local
20363         * top/maint.mk (update-copyright-local): Define place-holder.
20364         (update-copyright): Depend on $(update-copyright-local).
20365
20366 2009-08-06  Jim Meyering  <meyering@redhat.com>
20367
20368         selinux-at: new module
20369         Initially written for coreutils, this module will soon be
20370         used by findutils, too.
20371         * MODULES.html.sh [Misc]: Add selinux-at.
20372         * lib/selinux-at.h: New file, from coreutils.
20373         * lib/selinux-at.c: Likewise.
20374         * modules/selinux-at: Likewise.
20375         (License): Change from LGPL to GPL, since it depends
20376         on the GPL'd openat module.
20377
20378         doc: update README
20379         * README: Remove references to cogito.
20380         Remove cvs-repo-updating instructions from 2007.
20381         Don't imply that CVS is better if you have limited disk space.
20382
20383 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20384
20385         update-copyright: support C-style comments
20386         * build-aux/update-copyright: Implement and document.
20387         * tests/test-update-copyright.sh: Test.
20388
20389 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20390
20391         update-copyright: support omitted "(C)"
20392         * build-aux/update-copyright: Implement and document.  Also,
20393         allow variable whitespace before "(C)".
20394         * tests/test-update-copyright.sh: Test.
20395
20396 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20397
20398         update-copyright: don't trip on non-FSF copyright statements
20399         * build-aux/update-copyright: Fix so that the first correctly
20400         formatted FSF copyright statement is recognized no matter what
20401         appears before it.  Update documentation.
20402         * tests/test-update-copyright.sh: Test that.
20403
20404 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20405
20406         update-copyright: clean up code a little
20407         * build-aux/update-copyright: Append "_re" to the name of any
20408         variable holding a regular expression.
20409         Replace "old" and "new" with "stmt" in variable names.
20410         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20411         handled correctly.
20412         Format code more consistently.
20413
20414 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20415
20416         update-copyright-tests: improve portability
20417         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20418         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20419
20420 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20421
20422         update-copyright: support @copyright{} and &copy;
20423         * build-aux/update-copyright: Implement and document.
20424         * tests/test-update-copyright.sh: Test.
20425
20426 2009-08-04  Jim Meyering  <meyering@redhat.com>
20427
20428         update-copyright-tests: correctly test EOL=\r\n handling
20429         * tests/test-update-copyright.sh: Put \r at the end of some lines
20430         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20431
20432         maint.mk: make update-copyright exclusion list more configurable
20433         * top/maint.mk (update-copyright): Default to excluding COPYING,
20434         but allow an override, in case someone does want to update that file.
20435
20436         maint.mk: don't update copyright date in COPYING
20437         * top/maint.mk (update-copyright): Exclude COPYING.
20438
20439         maint.mk: add a copyright-updating rule
20440         * top/maint.mk (update-copyright): New rule.
20441         Derived from coreutils/Makefile.am.
20442
20443         update-copyright: rename some variables
20444         * build-aux/update-copyright: Rename a few variables for clarity.
20445         Tweak syntax.  List Joel E. Denny as coauthor.
20446
20447 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20448
20449         update-copyright: fix bug for 2-digit last year and add tests
20450         * build-aux/update-copyright: Fix bug.
20451         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20452         specified.
20453         * modules/update-copyright-tests: New
20454         * tests/test-update-copyright.sh: New.
20455
20456 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20457
20458         update-copyright: handle leading tabs in line prefix
20459         * build-aux/update-copyright: Count leading tabs as 8 spaces
20460         when computing margin.  This helps with the formatting of
20461         ChangeLogs, for example.
20462         Fix documentation a little.
20463
20464 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20465
20466         update-copyright: support EOL=\r\n
20467         * build-aux/update-copyright: Implement that.
20468
20469 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20470
20471         update-copyright: automatically format copyright statements
20472         * build-aux/update-copyright: Implement that.
20473         Also, be a little more predictable and safer by always failing
20474         when the full copyright format is not perfectly recognized as an
20475         unbroken whole.  Discussed at
20476         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20477         Rewrite documentation.
20478
20479 2009-08-03  Bruno Haible  <bruno@clisp.org>
20480
20481         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20482
20483 2009-08-02  Bruno Haible  <bruno@clisp.org>
20484
20485         Tests for module 'uname'.
20486         * modules/uname-tests: New file.
20487         * tests/test-uname.c: New file.
20488
20489         New module 'uname'.
20490         * lib/uname.c: New file.
20491         * m4/uname.m4: New file.
20492         * modules/uname: New file.
20493         * doc/posix-functions/uname.texi: Mention the new module.
20494
20495 2009-08-02  Bruno Haible  <bruno@clisp.org>
20496
20497         Tests for module 'sys_utsname'.
20498         * modules/sys_utsname-tests: New file.
20499         * tests/test-sys_utsname.c: New file.
20500
20501         New module 'sys_utsname'.
20502         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20503         * m4/sys_utsname_h.m4: New file.
20504         * modules/sys_utsname: New file.
20505         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20506
20507 2009-08-02  Bruno Haible  <bruno@clisp.org>
20508
20509         Implicitly initialize the sockets library.
20510         * lib/gethostname.c: Include sockets.h.
20511         (rpl_gethostname): Invoke gl_sockets_startup.
20512         * lib/socket.c: Include sockets.h.
20513         (rpl_socket): Invoke gl_sockets_startup.
20514         * modules/gethostname (Depends-on): Add sockets.
20515         * modules/socket (Depends-on): Likewise.
20516         * tests/test-poll.c: Don't include sockets.h.
20517         (main): Don't invoke gl_sockets_startup.
20518         * tests/test-select.c: Don't include sockets.h.
20519         (main): Don't invoke gl_sockets_startup.
20520
20521 2009-08-02  Bruno Haible  <bruno@clisp.org>
20522
20523         Allow multiple calls to gl_sockets_startup.
20524         * lib/sockets.c (initialized_sockets_version): New variable.
20525         (gl_sockets_startup): Do nothing if already called for this or a higher
20526         version.
20527         (gl_sockets_cleanup): Reset initialized_sockets_version.
20528
20529 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20530
20531         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20532         different project/version.
20533
20534 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20535             Bruno Haible  <bruno@clisp.org>
20536
20537         Tests for module 'pipe-filter-gi'.
20538         * modules/pipe-filter-gi-tests: New file.
20539         * tests/test-pipe-filter-gi1.sh: New file.
20540         * tests/test-pipe-filter-gi1.c: New file.
20541         * tests/test-pipe-filter-gi2.sh: New file.
20542         * tests/test-pipe-filter-gi2-main.c: New file.
20543         * tests/test-pipe-filter-gi2-child.c: New file.
20544
20545         New module 'pipe-filter-gi'.
20546         * lib/pipe-filter-gi.c: New file.
20547         * modules/pipe-filter-gi: New file.
20548
20549 2009-08-02  Bruno Haible  <bruno@clisp.org>
20550             Paolo Bonzini  <bonzini@gnu.org>
20551
20552         Tests for module 'pipe-filter-ii'.
20553         * modules/pipe-filter-ii-tests: New file.
20554         * tests/test-pipe-filter-ii1.sh: New file.
20555         * tests/test-pipe-filter-ii1.c: New file.
20556         * tests/test-pipe-filter-ii2.sh: New file.
20557         * tests/test-pipe-filter-ii2-main.c: New file.
20558         * tests/test-pipe-filter-ii2-child.c: New file.
20559
20560         New module 'pipe-filter-ii'.
20561         * lib/pipe-filter.h: New file.
20562         * lib/pipe-filter-ii.c: New file.
20563         * lib/pipe-filter-aux.h: New file.
20564         * modules/pipe-filter-ii: New file.
20565
20566 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20567
20568         * lib/gc-libgcrypt.c: Change copyright to FSF.
20569         * lib/gc-gnulib.c: Likewise.
20570
20571 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20572
20573         * lib/gethostname.c: Include limits.h.
20574
20575 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20576             Bruno Haible  <bruno@clisp.org>
20577
20578         Ensure HOST_NAME_MAX as part of the gethostname module.
20579         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20580         define also HOST_NAME_MAX.
20581         * tests/test-gethostname.c: Include <limits.h>.
20582         (main): Check also HOST_NAME_MAX.
20583         * doc/posix-headers/limits.texi: Document the mingw problem.
20584
20585 2009-08-02  Bruno Haible  <bruno@clisp.org>
20586
20587         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20588         Add comments.
20589
20590 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20591
20592         * lib/gethostname.c: Add Windows wrapper.
20593         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20594         * modules/gethostname: Depend on sys_socket & errno, for also
20595         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20596         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20597
20598 2009-07-31  Jim Meyering  <meyering@redhat.com>
20599
20600         getloadavg: fix symbol name in comment
20601         * lib/getloadavg.c: Correct a typo I introduced when adding
20602         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20603         Matt Kraai spotted the problem.
20604
20605 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20606
20607         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20608         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20609         code also if ! defined N_NAME_POINTER.
20610         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20611         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20612         but the n_name member is a 12-byte array.
20613
20614 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20615
20616         update-copyright: generalize comment handling
20617         * build-aux/update-copyright: Handle copyright statements
20618         within more comment styles.
20619         Document usage.
20620         Report any file with an external copyright holder or parse failure.
20621
20622 2009-07-29  Jim Meyering  <meyering@redhat.com>
20623
20624         mktime: correct setting of REPLACE_MKTIME
20625         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20626
20627         update-copyright: new module
20628         * modules/update-copyright: New file.
20629         * build-aux/update-copyright: New file.
20630         * MODULES.html.sh (maint+release support): Add update-copyright.
20631
20632 2009-07-27  Bruno Haible  <bruno@clisp.org>
20633
20634         Fix compilation error when <ctime> is used and mktime is replaced.
20635         * lib/time.in.h (mktime): New declaration.
20636         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20637         REPLACE_MKTIME instead of defining mktime in config.h.
20638         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20639         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20640         Reported by Ross McFarland <rwmcfa1@neces.com>.
20641
20642 2009-07-27  Bruno Haible  <bruno@clisp.org>
20643
20644         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20645         Reported by Matt Kraai <mkraai@beckman.com>.
20646
20647 2009-07-25  Jim Meyering  <meyering@redhat.com>
20648
20649         maint.mk: avoid warnings about missing files
20650         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20651         diagnostic when .prev-version does not exist.
20652         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20653         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20654         nonexistent cfg.mk.
20655         Suggestions from Simon Josefsson.
20656
20657 2009-07-25  Bruno Haible  <bruno@clisp.org>
20658
20659         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20660         defined as macros. Needed on QNX 6.4.1.
20661         Reported by Matt Kraai <mkraai@beckman.com>.
20662
20663 2009-07-23  Jim Meyering  <meyering@redhat.com>
20664
20665         maint.mk: invoke "make dist" with a working value of XZ_OPT
20666         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20667
20668 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20669
20670         Make fseeko.c compile on QNX.
20671         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20672
20673 2009-07-22  Peter Simons  <simons@cryp.to>
20674
20675         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
20676         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
20677         * lib/md4.h: Likewise.
20678         * lib/md5.h: Likewise.
20679         * lib/sha1.h: Likewise.
20680         * lib/sha256.h: Likewise.
20681         * lib/sha512.h: Likewise.
20682
20683         tests-sha1: don't assign literal string to 'char *' variable
20684         * tests/test-sha1.c (main): Declare locals with "const" to match
20685         attributes of the right hand side.
20686
20687 2009-07-21  Eric Blake  <ebb9@byu.net>
20688
20689         dup2: fix more mingw problems
20690         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
20691         fd to itself.
20692         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20693         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
20694         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
20695         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
20696         care of mingw bugs.
20697
20698 2009-07-21  Jim Meyering  <meyering@redhat.com>
20699
20700         vc-list-files: avoid failure when /bin/sh is dash
20701         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
20702         On some Debian based systems, /bin/sh is a symlink to dash, and running
20703         this command would omit the "/" following each 'tests' prefix:
20704           dash -x build-aux/vc-list-files -C . tests
20705         That is because bash and dash work differently:
20706           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
20707           bash ok
20708           dash odd
20709
20710 2009-07-21  Eric Blake  <ebb9@byu.net>
20711
20712         dup2-tests: test previous patch
20713         * modules/dup2-tests: New file.
20714         * tests/test-dup2.c: Likewise.
20715         * tests/test-open.c (main): Avoid unspecified behavior.
20716         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
20717         test.
20718
20719         dup2: work around mingw and cygwin 1.5 bug
20720         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
20721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20722         * modules/unistd (Makefile.am): Substitute it.
20723         * lib/unistd.in.h (dup2): Declare the replacement.
20724         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
20725         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
20726         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
20727         * modules/execute (Depends-on): Add dup2.
20728         * modules/fseterr (Depends-on): Likewise.
20729         * modules/pipe (Depends-on): Likewise.
20730         * modules/posix_spawn-internal (Depends-on): Likewise.
20731
20732 2009-07-21  Bruno Haible  <bruno@clisp.org>
20733
20734         * modules/.gitattributes: New file.
20735
20736 2009-07-20  Bruno Haible  <bruno@clisp.org>
20737
20738         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
20739         (main): Use it.
20740
20741 2009-07-20  Eric Blake  <ebb9@byu.net>
20742
20743         test-pipe: make a bit more robust.
20744         * tests/test-pipe.c (myerr): Allow error messages regardless of
20745         what we do to stderr.
20746         (test_pipe): Rearrange to avoid deadlock.
20747         (child_main): Try a larger read, to ensure we avoided deadlock.
20748         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
20749         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
20750         if misused.
20751
20752 2009-07-19  Jim Meyering  <meyering@redhat.com>
20753
20754         fts: avoid false-positive cycle-detection
20755         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
20756         for each new command line argument.
20757
20758 2009-07-19  Bruno Haible  <bruno@clisp.org>
20759
20760         Fix build error on mingw with the modules sys_select and unistd.
20761         * modules/acl-tests (Depends-on): Add close.
20762         * modules/binary-io-tests (Depends-on): Likewise.
20763         * modules/closein-tests (Depends-on): Likewise.
20764         * modules/flock-tests (Depends-on): Likewise.
20765         * modules/fsync-tests (Depends-on): Likewise.
20766         * modules/lseek-tests (Depends-on): Likewise.
20767         * modules/pipe-tests (Depends-on): Likewise.
20768         * modules/posix_spawn-tests (Depends-on): Likewise.
20769         * modules/posix_spawnp-tests (Depends-on): Likewise.
20770         * modules/stat-time-tests (Depends-on): Likewise.
20771         * modules/yesno-tests (Depends-on): Likewise.
20772
20773 2009-07-19  Bruno Haible  <bruno@clisp.org>
20774
20775         Unify conditionals.
20776         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
20777         macros, not at the compiler macros.
20778         * lib/pipe.c: Likewise.
20779         * lib/execute.c: Likewise.
20780         * lib/spawni.c: Likewise.
20781
20782 2009-07-19  Bruno Haible  <bruno@clisp.org>
20783
20784         Fix handling of closed stdin/stdout/stderr on mingw.
20785         * lib/w32spawn.h: Include unistd.h.
20786         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
20787         file descriptor with O_NOINHERIT flag.
20788         (fd_safer_noinherit): New function, based on fd-safer.c.
20789         (dup_safer_noinherit): New function, based on dup-safer.c.
20790         (undup_safer_noinherit): New function.
20791         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
20792         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
20793         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
20794         instead of fd_safer.
20795         * tests/test-pipe.c: Include <windows.h>.
20796         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
20797
20798         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
20799         from main.
20800         (test_pipe): Pass an extra argument for disambiguation.
20801         (main): Invoke parent_main or child_main.
20802
20803         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
20804         consistently.
20805
20806 2009-07-18  Eric Blake  <ebb9@byu.net>
20807
20808         test-pipe: fix mingw build
20809         * tests/test-pipe.c (main): Avoid fcntl on mingw.
20810
20811 2009-07-18  Bruno Haible  <bruno@clisp.org>
20812
20813         * modules/pipe-tests (Makefile.am): Fix typo.
20814
20815 2009-07-18  Eric Blake  <ebb9@byu.net>
20816
20817         error: fix mingw build
20818         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
20819         Reported by Bruno Haible.
20820
20821         error: avoid undefined use of stdout
20822         * lib/error.c (error, error_at_line): Check that fd 1 is open
20823         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
20824         is handling faults and the close_stdout module wants to report the
20825         detection of closed stdout as an error.
20826
20827 2009-07-17  Eric Blake  <ebb9@byu.net>
20828
20829         pipe: be robust in face of closed fds
20830         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
20831         should cause child to misbehave.
20832         * modules/pipe-tests: New module.
20833         * tests/test-pipe.c: New file.
20834         * tests/test-pipe.sh: New file.
20835         Reported by Akim Demaille.
20836
20837 2009-07-14  Bruno Haible  <bruno@clisp.org>
20838
20839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20840         Reported by anonymous kc.
20841
20842 2009-07-07  Jim Meyering  <meyering@redhat.com>
20843
20844         maint.mk: don't look for translatable strings in *.m4 or *.mk
20845         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20846         when searching for translatable strings.
20847
20848 2009-07-05  Jim Meyering  <meyering@redhat.com>
20849
20850         remove superfluous parentheses in STREQ definition
20851         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20852         * lib/getugroups.c (STREQ): Likewise.
20853         * lib/fnmatch.c (STREQ): Likewise.
20854         Spotted by Bruno Haible.
20855
20856 2009-07-04  Jim Meyering  <meyering@redhat.com>
20857
20858         argv-iter: new module
20859         * MODULES.html.sh: Add argv-iter.
20860         * lib/argv-iter.c, lib/argv-iter.h: New files.
20861         * modules/argv-iter: New file.
20862         * modules/argv-iter-tests: New file.
20863         * tests/test-argv-iter.c: Test it.
20864
20865 2009-07-04  Bruno Haible  <bruno@clisp.org>
20866
20867         Fix assertion.
20868         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20869         contains more exact copies of a given entry than file2, leave the extra
20870         copies unpaired rather than aborting.
20871         Reported by Eric Blake.
20872
20873 2009-07-02  Bruno Haible  <bruno@clisp.org>
20874
20875         Speedup git-merge-changelog for git cherry-pick.
20876         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20877         (entries_mapping_get): New function, extracted from compute_mapping.
20878         (entries_mapping_reverse_get): New function.
20879         (compute_mapping): Add a 'full' argument. Return the result in a
20880         'struct entries_mapping'.
20881         (main): Update. Access the mappings through entries_mapping_get.
20882         Reported by Eric Blake.
20883
20884 2009-07-02  Bruno Haible  <bruno@clisp.org>
20885
20886         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20887         best_i.
20888
20889 2009-07-02  Bruno Haible  <bruno@clisp.org>
20890
20891         Speed up approximate search for matching ChangeLog entries.
20892         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20893         argument. Call fstrcmp_bounded instead of fstrcmp.
20894         (compute_mapping, try_split_merged_entry, main): Update callers.
20895
20896 2009-07-02  Bruno Haible  <bruno@clisp.org>
20897
20898         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20899
20900 2009-06-30  Bruno Haible  <bruno@clisp.org>
20901
20902         Reduce the number of uc_is_cased calls.
20903         * lib/unicase.h (casing_suffix_context_t): Add
20904         'first_char_except_ignorable' field.
20905         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20906         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20907         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20908         Update initializer.
20909         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20910         case-ignorable characters.
20911         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20912         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20913         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20914         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20915         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20916
20917 2009-06-30  Bruno Haible  <bruno@clisp.org>
20918
20919         Tests for module 'unicase/ignorable'.
20920         * modules/unicase/ignorable-tests: New file.
20921         * tests/unicase/test-ignorable.c: New file, generated by
20922         gen-uni-tables.
20923
20924         Tests for module 'unicase/cased'.
20925         * modules/unicase/cased-tests: New file.
20926         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20927         * tests/unicase/test-predicate-part1.h: New file, derived from
20928         tests/unictype/test-predicate-part1.h.
20929         * tests/unicase/test-predicate-part2.h: New file, same as
20930         tests/unictype/test-predicate-part2.h.
20931
20932         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20933         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20934         (output_casing_properties): New function.
20935         (main): Call it.
20936         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20937         * lib/unicase/cased.c: Include unictype/bitmap.h.
20938         (uc_is_cased): Define through a bitmap lookup.
20939         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20940         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20941         (uc_is_case_ignorable): Define through a bitmap lookup.
20942         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20943         lib/unictype/bitmap.h.
20944         (Depends-on): Add inline. Clean up.
20945         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20946         lib/unictype/bitmap.h.
20947         (Depends-on): Add inline. Clean up.
20948         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20949         recognition.
20950         * tests/unicase/test-u16-tolower.c (main): Likewise.
20951         * tests/unicase/test-u32-tolower.c (main): Likewise.
20952
20953 2009-06-30  Bruno Haible  <bruno@clisp.org>
20954
20955         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20956         * lib/unicase/u16-casemap.c: Likewise.
20957         * lib/unicase/u32-casemap.c: Likewise.
20958
20959 2009-06-29  Bruno Haible  <bruno@clisp.org>
20960
20961         Define u32_casefold as a wrapper around u32_ct_casefold.
20962         * lib/unicase/u32-casefold.c: Update.
20963         * modules/unicase/u32-casefold (Depends-on): Add
20964         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20965         unicase/empty-suffix-context. Clean up.
20966
20967         Define u16_casefold as a wrapper around u16_ct_casefold.
20968         * lib/unicase/u16-casefold.c: Update.
20969         * modules/unicase/u16-casefold (Depends-on): Add
20970         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20971         unicase/empty-suffix-context. Clean up.
20972
20973         Define u8_casefold as a wrapper around u8_ct_casefold.
20974         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20975         * lib/unicase/u8-casefold.c: Update.
20976         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20977         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20978
20979         Define u32_totitle as a wrapper around u32_ct_totitle.
20980         * lib/unicase/u32-totitle.c: Update.
20981         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20982         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20983
20984         Define u16_totitle as a wrapper around u16_ct_totitle.
20985         * lib/unicase/u16-totitle.c: Update.
20986         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20987         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20988
20989         Define u8_totitle as a wrapper around u8_ct_totitle.
20990         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20991         functions.
20992         (FUNC): Delegate to U_CT_TOTITLE.
20993         * lib/unicase/u8-totitle.c: Update.
20994         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20995         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20996
20997         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20998         invocation.
20999         * modules/unicase/u32-tolower (Depends-on): Add
21000         unicase/empty-prefix-context, unicase/empty-suffix-context.
21001
21002         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
21003         invocation.
21004         * modules/unicase/u16-tolower (Depends-on): Add
21005         unicase/empty-prefix-context, unicase/empty-suffix-context.
21006
21007         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
21008         * modules/unicase/u8-tolower (Depends-on): Add
21009         unicase/empty-prefix-context, unicase/empty-suffix-context.
21010
21011         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
21012         invocation.
21013         * modules/unicase/u32-toupper (Depends-on): Add
21014         unicase/empty-prefix-context, unicase/empty-suffix-context.
21015
21016         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
21017         invocation.
21018         * modules/unicase/u16-toupper (Depends-on): Add
21019         unicase/empty-prefix-context, unicase/empty-suffix-context.
21020
21021         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
21022         * modules/unicase/u8-toupper (Depends-on): Add
21023         unicase/empty-prefix-context, unicase/empty-suffix-context.
21024
21025         New module 'unicase/u32-ct-casefold'.
21026         * lib/unicase/u32-ct-casefold.c: New file.
21027         * modules/unicase/u32-ct-casefold: New file.
21028
21029         New module 'unicase/u16-ct-casefold'.
21030         * lib/unicase/u16-ct-casefold.c: New file.
21031         * modules/unicase/u16-ct-casefold: New file.
21032
21033         New module 'unicase/u8-ct-casefold'.
21034         * lib/unicase/u8-ct-casefold.c: New file.
21035         * lib/unicase/u-ct-casefold.h: New file, derived from
21036         lib/unicase/u-casefold.h.
21037         * modules/unicase/u8-ct-casefold: New file.
21038
21039         New module 'unicase/u32-ct-totitle'.
21040         * lib/unicase/u32-ct-totitle.c: New file.
21041         * modules/unicase/u32-ct-totitle: New file.
21042
21043         New module 'unicase/u16-ct-totitle'.
21044         * lib/unicase/u16-ct-totitle.c: New file.
21045         * modules/unicase/u16-ct-totitle: New file.
21046
21047         New module 'unicase/u8-ct-totitle'.
21048         * lib/unicase/u8-ct-totitle.c: New file.
21049         * lib/unicase/u-ct-totitle.h: New file, derived from
21050         lib/unicase/u-totitle.h.
21051         * modules/unicase/u8-ct-totitle: New file.
21052
21053         New module 'unicase/u32-ct-tolower'.
21054         * lib/unicase/u32-ct-tolower.c: New file.
21055         * modules/unicase/u32-ct-tolower: New file.
21056
21057         New module 'unicase/u16-ct-tolower'.
21058         * lib/unicase/u16-ct-tolower.c: New file.
21059         * modules/unicase/u16-ct-tolower: New file.
21060
21061         New module 'unicase/u8-ct-tolower'.
21062         * lib/unicase/u8-ct-tolower.c: New file.
21063         * modules/unicase/u8-ct-tolower: New file.
21064
21065         New module 'unicase/u32-ct-toupper'.
21066         * lib/unicase/u32-ct-toupper.c: New file.
21067         * modules/unicase/u32-ct-toupper: New file.
21068
21069         New module 'unicase/u16-ct-toupper'.
21070         * lib/unicase/u16-ct-toupper.c: New file.
21071         * modules/unicase/u16-ct-toupper: New file.
21072
21073         New module 'unicase/u8-ct-toupper'.
21074         * lib/unicase/u8-ct-toupper.c: New file.
21075         * modules/unicase/u8-ct-toupper: New file.
21076
21077         Add context arguments to u*_casemap functions.
21078         * lib/unicase/unicasemap.h: Include unicase.h.
21079         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
21080         suffix_context arguments.
21081         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
21082         functions.
21083         (FUNC): Add prefix_context and suffix_context arguments. Use
21084         uc_is_cased and uc_is_case_ignorable.
21085         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
21086         * lib/unicase/u16-casemap.c: Likewise.
21087         * lib/unicase/u32-casemap.c: Likewise.
21088         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
21089         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21090         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
21091         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21092         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
21093         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21094
21095         New module 'unicase/u32-suffix-context'.
21096         * lib/unicase/u32-suffix-context.c: New file.
21097         * modules/unicase/u32-suffix-context: New file.
21098
21099         New module 'unicase/u16-suffix-context'.
21100         * lib/unicase/u16-suffix-context.c: New file.
21101         * modules/unicase/u16-suffix-context: New file.
21102
21103         New module 'unicase/u8-suffix-context'.
21104         * lib/unicase/u8-suffix-context.c: New file.
21105         * lib/unicase/u-suffix-context.h: New file.
21106         * modules/unicase/u8-suffix-context: New file.
21107
21108         New module 'unicase/empty-suffix-context'.
21109         * lib/unicase/empty-suffix-context.c: New file.
21110         * modules/unicase/empty-suffix-context: New file.
21111
21112         New module 'unicase/u32-prefix-context'.
21113         * lib/unicase/u32-prefix-context.c: New file.
21114         * modules/unicase/u32-prefix-context: New file.
21115
21116         New module 'unicase/u16-prefix-context'.
21117         * lib/unicase/u16-prefix-context.c: New file.
21118         * modules/unicase/u16-prefix-context: New file.
21119
21120         New module 'unicase/u8-prefix-context'.
21121         * lib/unicase/u8-prefix-context.c: New file.
21122         * lib/unicase/u-prefix-context.h: New file.
21123         * lib/unicase/context.h: New file.
21124         * modules/unicase/u8-prefix-context: New file.
21125
21126         New module 'unicase/empty-prefix-context'.
21127         * lib/unicase/empty-prefix-context.c: New file.
21128         * modules/unicase/empty-prefix-context: New file.
21129
21130         New module 'unicase/ignorable'.
21131         * lib/unicase/ignorable.c: New file.
21132         * modules/unicase/ignorable: New file.
21133
21134         New module 'unicase/cased'.
21135         * lib/unicase/caseprop.h: New file.
21136         * lib/unicase/cased.c: New file.
21137         * modules/unicase/cased: New file.
21138
21139         New functions for case mapping of substrings.
21140         * lib/unicase.h (casing_prefix_context_t): New type.
21141         (unicase_empty_prefix_context): New variable.
21142         (u8_casing_prefix_context, u16_casing_prefix_context,
21143         u32_casing_prefix_context, u8_casing_prefixes_context,
21144         u16_casing_prefixes_context, u32_casing_prefixes_context): New
21145         declarations.
21146         (casing_suffix_context_t): New type.
21147         (unicase_empty_suffix_context): New variable.
21148         (u8_casing_suffix_context, u16_casing_suffix_context,
21149         u32_casing_suffix_context, u8_casing_suffixes_context,
21150         u16_casing_suffixes_context, u32_casing_suffixes_context,
21151         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
21152         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
21153         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
21154         declarations.
21155
21156 2009-06-28  Jim Meyering  <meyering@redhat.com>
21157
21158         boostrap: indent only with spaces
21159         * build-aux/bootstrap: Indent only with spaces, never TABs.
21160
21161         bootstrap: split long lines
21162         * build-aux/bootstrap: Keep line length < 80.
21163
21164         bootstrap: sync from coreutils
21165         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
21166         just as autoreconf does.  Verify a list of prerequisite
21167         package-name,version-number pairs if defined in bootstrap.conf.
21168         Refer to README-prereq, if prerequisites are not satisfied.
21169
21170 2009-06-27  Eric Blake  <ebb9@byu.net>
21171
21172         tests: add test for bogus NULL definition
21173         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
21174         * tests/test-stdlib.c: Likewise.
21175         * tests/test-string.c: Likewise.
21176         * tests/test-locale.c: Likewise.
21177         * tests/test-unistd.c: Likewise.
21178         * modules/stdio-tests (Depends-on): Add verify.
21179         * modules/stdlib-tests (Depends-on): Likewise.
21180         * modules/string-tests (Depends-on): Likewise.
21181         * modules/locale-tests (Depends-on): Likewise.
21182         * modules/unistd-tests (Depends-on): Likewise.
21183
21184 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
21185
21186         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
21187         self-explaining comment.
21188         * m4/selinux-selinux-h: Update serial.
21189         (gl_LIBSELINUX): New macro, adding a warning for missing development
21190         packages to code extracted from...
21191         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
21192         Add warning for missing development packages here, too.
21193
21194 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
21195
21196         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
21197
21198 2009-06-25  Eric Blake  <ebb9@byu.net>
21199
21200         version-etc: fix regression
21201         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
21202         gcc.
21203         (version_etc): Use it, to catch bugs with trailing NULL.
21204         * lib/version-etc.c (version_etc_arn): Delete unused argument.
21205         (version_etc_va): Fix logic bug.
21206         * modules/version-etc-tests: Add test.
21207         * tests/test-version-etc.c: New file.
21208         * tests/test-version-etc.sh: Likewise.
21209
21210 2009-06-25  Sam Steingold  <sds@gnu.org>
21211
21212         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
21213         mbtowc declaration.
21214
21215 2009-06-25  Eric Blake  <ebb9@byu.net>
21216
21217         fpurge: migrate into <stdio.h>
21218         * lib/fpurge.h: Delete...
21219         * lib/stdio.in.h (fpurge): ...and declare here, instead.
21220         * lib/fpurge.c (fpurge): Change declaring header.
21221         * modules/fpurge (Files): Drop deleted file.
21222         (Depends-on): Add stdio.
21223         (configure.ac): Set witness.
21224         * modules/stdio (Makefile.am): Support fpurge macros.
21225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21226         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
21227         * lib/fflush.c: Update client.
21228         * tests/test-fpurge.c: Likewise.
21229         * NEWS: Mention the change.
21230
21231 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21232
21233         * lib/argp-version-etc.c (program_authors): Add const
21234         qualifier.
21235         * lib/version-etc.c: Fix typos in the comments.
21236         * modules/argp-version-etc: Depends on version-etc.
21237
21238 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21239
21240         argp-version-etc: new module.
21241
21242         * lib/argp-version-etc.c: New file.
21243         * lib/argp-version-etc.h: New file.
21244         * modules/argp-version-etc: New file.
21245         * modules/argp-version-etc-tests: New file.
21246         * tests/test-argp-version-etc.c: New test.
21247         * tests/test-argp-version-etc-1.sh: New test.
21248
21249 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21250
21251         Provide additional interfaces and documentation for version-etc
21252         module.
21253
21254         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
21255         interfaces.
21256         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
21257         prototypes.
21258
21259 2009-06-24  Bruno Haible  <bruno@clisp.org>
21260
21261         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
21262         HAVE_LIB${NAME} macro.
21263         Reported by Sam Steingold <sds@gnu.org>.
21264
21265 2009-06-23  Simon Josefsson  <simon@josefsson.org>
21266
21267         * modules/hash-tests (test_hash_LDADD): Link to libintl when
21268         needed.
21269
21270 2009-06-21  Bruno Haible  <bruno@clisp.org>
21271
21272         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
21273         work.
21274         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
21275         together with LIB${NAME}, LTLIB${NAME}.
21276         Reported by Sam Steingold <sds@gnu.org>.
21277
21278 2009-06-20  Jim Meyering  <meyering@redhat.com>
21279
21280         tests: make sc_require_test_exit_idiom more generic
21281         * top/maint.mk (Exit_witness_file): New overridable variable.
21282         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
21283         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
21284
21285 2009-06-19  Jim Meyering  <meyering@redhat.com>
21286
21287         hash: reverse order of src/dst parameters in an internal interface
21288         * lib/hash.c (transfer_entries): Reverse order of parameters to
21289         put DST before SRC.  Adjust callers.
21290
21291         tests: test-hash: avoid wholesale duplication
21292         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
21293         Instead, use a loop and add a single conditional.
21294
21295         tests: test-hash: allow seed selection via a command line argument
21296         * tests/test-hash.c (get_seed): New function.
21297         (main): Use it.
21298
21299 2009-06-19  Eric Blake  <ebb9@byu.net>
21300
21301         hash: avoid memory leak on allocation failure
21302         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
21303         failure.  Factor repeated algorithm...
21304         (transfer_entries): ...into new helper routine.
21305         (hash_delete): React to hash_rehash return value.
21306
21307         hash: reduce memory pressure in hash_rehash no-op case
21308         * lib/hash.c (next_prime): Avoid overflow.
21309         (hash_initialize): Factor bucket size computation...
21310         (compute_bucket_size): ...into new helper function.
21311         (hash_rehash): Use new function and open coding to reduce memory
21312         pressure, and avoid a memory leak in USE_OBSTACK code.
21313         Reported by Jim Meyering.
21314
21315 2009-06-18  Eric Blake  <ebb9@byu.net>
21316
21317         hash: make rotation more obvious
21318         * modules/hash (Depends-on): Add bitrotate and stdint.
21319         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
21320         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
21321         (SIZE_MAX): Rely on headers for definition.
21322         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
21323         (raw_hasher): Use rotr_sz.
21324         Suggested by Jim Meyering.
21325
21326         hash: fix memory leak in last patch
21327         * lib/hash.c (hash_rehash): Avoid memory leak.
21328
21329         hash: avoid no-op rehashing
21330         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
21331
21332         hash: provide default callback functions
21333         * lib/hash.c (raw_hasher, raw_comparator): New functions.
21334         (hash_initialize): Use them as defaults.
21335         * tests/test-hash.c (main): Test this.
21336
21337         hash: minor optimization
21338         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
21339         when possible.
21340         (hash_initialize): Document this promise.
21341         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
21342         * tests/test-hash.c (hash_compare_strings): Test this.
21343
21344 2009-06-18  Bruno Haible  <bruno@clisp.org>
21345
21346         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
21347         going to be replaced anyway.
21348
21349 2009-06-18  Bruno Haible  <bruno@clisp.org>
21350
21351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
21352         in one place.
21353         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
21354         be replaced anyway.
21355
21356 2009-06-18  Eric Blake  <ebb9@byu.net>
21357
21358         hash: check for resize before insertion
21359         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
21360         threshold before insertion, so that a pathological hash_rehash
21361         that fills every bucket can still trigger another rehash.
21362
21363 2009-06-18  Jim Meyering  <meyering@redhat.com>
21364
21365         hash-tests: add a loop around the small tests
21366         * tests/test-hash.c (main): Repeat small tests with selected
21367         small initial table sizes.
21368
21369 2009-06-17  Eric Blake  <ebb9@byu.net>
21370
21371         hash: minor cleanups
21372         * lib/hash.h (hash_entry): Make opaque, by moving...
21373         * lib/hash.c (hash_entry): ...here.
21374         (hash_insert): Clarify restrictions on what can be inserted.
21375         (hash_get_next): Clarify when it is safe to remove an element
21376         during traversal.
21377         (check_tuning): Skip verification when tuning is known safe.
21378         (hash_initialize): Clarify restrictions on tuning.
21379
21380 2009-06-17  Jim Meyering  <jim@meyering.net>
21381         and Eric Blake  <ebb9@byu.net>
21382
21383         hash-tests: new module
21384         * modules/hash-tests: New file.
21385         * tests/test-hash.c: New file.
21386
21387 2009-06-17  Eric Blake  <ebb9@byu.net>
21388
21389         strstr-simple: document new module
21390         * MODULES.html.sh: Document new module.
21391
21392         strstr, strcasestr: replace on platforms with broken memchr
21393         * modules/strstr: Split into...
21394         * modules/strstr-simple: ...new module that does not care about
21395         performance, but does care about glibc bug.
21396         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21397         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21398         if platform memchr is broken, per Debian bug 521737.
21399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21400         memchr.
21401         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21402         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21403         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21404         * modules/mountlist (Depends-on): Add strstr-simple.
21405         * modules/gen-uni-tables (Depends-on): Likewise.
21406         * modules/argz (Depends-on): Add strstr.
21407
21408 2009-06-17  Bruno Haible  <bruno@clisp.org>
21409
21410         * modules/posix_spawn-internal (Depends-on): Add errno.
21411
21412 2009-06-17  Bruno Haible  <bruno@clisp.org>
21413
21414         Define missing ESTALE on Interix 3.5.
21415         * lib/errno.in.h (ESTALE): Assign a value if missing.
21416         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21417         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21418         missing.
21419         * doc/posix-headers/errno.texi: Mention the Interix bug.
21420         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21421
21422 2009-06-15  Eric Blake  <ebb9@byu.net>
21423
21424         memchr, memchr2: add valgrind exception
21425         * lib/memchr.valgrind: New file.
21426         * lib/memchr2.valgrind: New file.
21427         * modules/memchr (Files): Distribute valgrind file.
21428         * modules/memchr2 (Files): Likewise.
21429
21430         docs: memchr is no longer obsolete
21431         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21432         * lib/string.in.h (memchr): Simplify logic.
21433
21434 2009-06-14  Jim Meyering  <meyering@redhat.com>
21435
21436         link-follow: fix the "checking..." message to not mention trailing slash
21437         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21438         never considered trailing slashes.
21439
21440 2009-06-14  Bruno Haible  <bruno@clisp.org>
21441
21442         * m4/memchr.m4: Mention also the bug on IA-64.
21443         * doc/posix-functions/memchr.texi: Likewise.
21444
21445 2009-06-12  Eric Blake  <ebb9@byu.net>
21446
21447         memchr: detect broken x86_64 and alpha implementations
21448         * modules/memchr-tests (Depends-on): Move mmap detection...
21449         * modules/memchr (Depends-on): ...here.
21450         (configure.ac): Set indicator.
21451         * lib/string.in.h (memchr): Declare replacement.
21452         * modules/string (Makefile.am): Trigger replacement.
21453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21454         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21455         bugs.
21456         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21457         * modules/getpagesize (License): Relax license.
21458
21459 2009-06-11  Bruno Haible  <bruno@clisp.org>
21460
21461         * lib/idpriv.h: Add more references.
21462
21463 2009-06-08  Bruno Haible  <bruno@clisp.org>
21464
21465         Tests for module 'idpriv-droptemp'.
21466         * modules/idpriv-droptemp-tests: New file.
21467         * tests/test-idpriv-droptemp.sh: New file.
21468         * tests/test-idpriv-droptemp.su.sh: New file.
21469         * tests/test-idpriv-droptemp.c: New file.
21470
21471         New module 'idpriv-droptemp'.
21472         * lib/idpriv-droptemp.c: New file.
21473         * modules/idpriv-droptemp: New file.
21474
21475 2009-06-08  Bruno Haible  <bruno@clisp.org>
21476
21477         Tests for module 'idpriv-drop'.
21478         * modules/idpriv-drop-tests: New file.
21479         * tests/test-idpriv-drop.sh: New file.
21480         * tests/test-idpriv-drop.su.sh: New file.
21481         * tests/test-idpriv-drop.c: New file.
21482
21483         New module 'idpriv-drop'.
21484         * lib/idpriv.h: New file.
21485         * lib-idpriv-drop.c: New file.
21486         * m4/idpriv.m4: New file.
21487         * modules/idpriv-drop: New file.
21488
21489 2009-06-08  Bruno Haible  <bruno@clisp.org>
21490
21491         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21492         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21493         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21494         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21495         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21496         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21497         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21498
21499 2009-06-08  Eric Blake  <ebb9@byu.net>
21500
21501         test-strstr: use memory fence, when possible
21502         * tests/test-strstr.c (main): Use memory fence, in order to be
21503         more likely to trigger Debian bug 521737.
21504         * modules/strstr-tests (Files): Pull in additional files.
21505
21506         memchr: no longer obsolete, for wider field testing
21507         * modules/memchr (Status, Notice): Delete, this module is no
21508         longer obsolete.
21509         * modules/vasnprintf (Depends-on): Add memchr.
21510
21511 2009-06-07  Jim Meyering  <meyering@redhat.com>
21512
21513         hash: declare some functions with the warn_unused_result attribute
21514         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21515
21516 2009-06-07  Bruno Haible  <bruno@clisp.org>
21517
21518         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21519         Reported by Eric Blake.
21520
21521 2009-06-06  Eric Blake  <ebb9@byu.net>
21522
21523         test-alignof: fix typo with long double
21524         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21525         compiler error.
21526
21527 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21528
21529         Escape non-texinfo { and }s.
21530         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21531         markup error.
21532
21533 2009-06-04  Jim Meyering  <meyering@redhat.com>
21534
21535         gitlog-to-changelog: don't infloop on an empty commit log
21536         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21537         Reported by Boris Petersen <transacid@centerim.org>.
21538
21539 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21540
21541         version-etc: extend for packagers
21542         Add three new configure options, intended for packagers:
21543           --with-packager="packager name"
21544           --with-packager-version="packager-specific version"
21545           --with-packager-bug-reports="packager bug reporting"
21546         An example with coreutils:
21547           $ ./configure \
21548             --with-packager=Gentoo \
21549             --with-packager-bug-report=http://bugs.gentoo.org/ \
21550             --with-packager-version="patchset 1.6"
21551           $ ./src/ls --version | head -n2
21552           ls (GNU coreutils) 7.1-dirty
21553           Packaged by Gentoo (patchset 1.6)
21554         Note that the bug reporting info via --help doesn't show up because
21555         coreutils uses its own custom emit_bug_reporting_address() implementation
21556         in src/system.h.  If it didn't, it'd look like:
21557           $ ./src/ls --help | tail -n4
21558           Report bugs to <bug-coreutils@gnu.org>.
21559           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21560           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21561           General help using GNU software: <http://www.gnu.org/gethelp/>.
21562         * lib/version-etc.c: Print new information, if provided.
21563         * m4/version-etc.m4: New file.
21564         * modules/version-etc (Files): Add m4/version-etc.m4.
21565         (configure.ac): Add gl_VERSION_ETC.
21566
21567 2009-05-31  Bruno Haible  <bruno@clisp.org>
21568
21569         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21570         and 'int64_t'.
21571         * modules/alignof-tests (Dependencies): Add stdint.
21572         Reported by Eric Blake.
21573
21574 2009-05-31  Bruno Haible  <bruno@clisp.org>
21575
21576         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21577         restriction due to compiler bugs.
21578         Reported by Eric Blake.
21579
21580 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21581             Bruno Haible  <bruno@clisp.org>
21582
21583         Fix test-alignof failure.
21584         * lib/alignof.h (alignof_slot): New macro.
21585         (alignof_type): New macro, with the same semantics as the previous
21586         'alignof'.
21587         (alignof): Alias to alignof_slot.
21588         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21589         check that the results are usable as constant expressions.
21590
21591 2009-05-31  Bruno Haible  <bruno@clisp.org>
21592
21593         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21594         * tests/test-memchr.c (main): Check that memchr does not read past the
21595         first occurrence of the byte.
21596         * tests/test-strstr.c (main): Update comment.
21597         Suggested by Eric Blake.
21598
21599 2009-05-30  Bruno Haible  <bruno@clisp.org>
21600
21601         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21602         detail how to use dumpbin.
21603         Reported by David Byron <dbyron@dbyron.com>.
21604
21605 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21606
21607         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21608
21609 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21610
21611         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21612
21613 2009-05-28  Bruno Haible  <bruno@clisp.org>
21614
21615         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21616         build-aux/ files.
21617
21618 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21619
21620         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21621
21622 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21623
21624         * gnulib-tool (sed_transform_main_lib_file)
21625         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21626         regexps.
21627
21628 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21629
21630         * tests/test-strstr.c: Add another self-test.
21631         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21632         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21633
21634 2009-05-23  Bruno Haible  <bruno@clisp.org>
21635
21636         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21637         change.
21638
21639 2009-05-21  Bruno Haible  <bruno@clisp.org>
21640
21641         Simplify use of mode_t varargs.
21642         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21643         uses 'mode_t' or 'int'.
21644         * lib/openat.c (openat): Likewise.
21645         * lib/open-safer.c (open_safer): Likewise.
21646         * m4/mode_t.m4: New file.
21647         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21648         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21649         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21650         * modules/open (Files): Add m4/mode_t.m4.
21651         * modules/openat (Files): Likewise.
21652         * modules/fcntl-safer (Files): Likewise.
21653         Suggested by Eric Blake.
21654
21655 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21656
21657         * doc/glibc-functions/fallocate.texi: New file.
21658         * doc/gnulib.texi: Include it.
21659
21660 2009-05-21  Eric Blake  <ebb9@byu.net>
21661             Bruno Haible  <bruno@clisp.org>
21662
21663         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21664         invocations.
21665         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21666
21667 2009-05-21  Eric Blake  <ebb9@byu.net>
21668             Bruno Haible  <bruno@clisp.org>
21669
21670         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21671         include_next. Fix of 2008-11-20 commit.
21672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21673         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
21674         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
21675         NEXT_MATH_H.
21676         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
21677         instead of NEXT_MATH_H.
21678
21679 2009-05-21  Bruno Haible  <bruno@clisp.org>
21680
21681         Avoid redefinition warnings for SIZE_MAX.
21682         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
21683         Reported by Simon Josefsson.
21684
21685 2009-05-21  Bruno Haible  <bruno@clisp.org>
21686
21687         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
21688         AC_CACHE_VAL.
21689
21690 2009-05-20  Bruno Haible  <bruno@clisp.org>
21691
21692         Make zeroptr.h work on mingw.
21693         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
21694         mprotect.
21695         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
21696         * modules/memchr2-tests (configure.ac): Likewise.
21697         * modules/memcmp-tests (configure.ac): Likewise.
21698         * modules/memmem-tests (configure.ac): Likewise.
21699         * modules/memrchr-tests (configure.ac): Likewise.
21700         Reported by Simon Josefsson.
21701
21702 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21703
21704         * tests/test-glob.c: Include string.h for strcmp prototype.
21705
21706 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21707
21708         * modules/getdelim (Depends-on): Add explicit stdint, although it
21709         was implicitly already pulled in via realloc-posix.
21710         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
21711
21712 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21713
21714         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
21715         G. Christensen" <tgc@jupiterrise.com>.
21716         * m4/sys_socket_h.m4: Check for sa_family_t.
21717         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
21718         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
21719         * tests/test-sys_socket.c: Check that sa_family_t works.
21720
21721 2009-05-18  Eric Blake  <ebb9@byu.net>
21722
21723         maint.mk: allow gnulib_dir in VPATH build
21724         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
21725
21726 2009-05-15  Jim Meyering  <meyering@redhat.com>
21727
21728         maint.mk: Give gnulib_dir a default definition.
21729         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
21730         Thus, most packages no longer need to specify this variable in cfg.mk
21731
21732 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
21733
21734         rename.m4: fix typos that would make non-mingw cross-configure fail
21735         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
21736
21737 2009-05-13  Eric Blake  <ebb9@byu.net>
21738
21739         mmap-anon: avoid out-of-order autoconf expansion
21740         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
21741         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
21742         * modules/memchr-tests (Depends-on): Add extensions.
21743         * modules/memchr2-tests (Depends-on): Add extensions.
21744         * modules/memcmp-tests (Depends-on): Add extensions.
21745         * modules/memmem-tests (Depends-on): Add extensions.
21746         * modules/memrchr-tests (Depends-on): Add extensions.
21747
21748 2009-05-13  Bruno Haible  <bruno@clisp.org>
21749
21750         Make some tests ISO C 99 compliant.
21751         * tests/zerosize-ptr.h: New file.
21752         * tests/test-memchr.c: Include zerosize-ptr.h.
21753         (main): Use a zero-size object pointer instead of NULL.
21754         * tests/test-memchr2.c: Include zerosize-ptr.h.
21755         (main): Use a zero-size object pointer instead of NULL.
21756         * tests/test-memcmp.c: Include zerosize-ptr.h.
21757         (main): Use a zero-size object pointer instead of NULL.
21758         * tests/test-memmem.c: Include zerosize-ptr.h.
21759         (main): Use a zero-size object pointer instead of NULL.
21760         * tests/test-memrchr.c: Include zerosize-ptr.h.
21761         (main): Use a zero-size object pointer instead of NULL.
21762         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
21763         m4/mmap-anon.m4.
21764         (Depends-on): Add getpagesize.
21765         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21766         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
21767         m4/mmap-anon.m4.
21768         (Depends-on): Add getpagesize.
21769         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21770         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
21771         m4/mmap-anon.m4.
21772         (Depends-on): Add getpagesize.
21773         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21774         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
21775         m4/mmap-anon.m4.
21776         (Depends-on): Add getpagesize.
21777         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21778         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
21779         m4/mmap-anon.m4.
21780         (Depends-on): Add getpagesize.
21781         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21782
21783 2009-05-12  Bruno Haible  <bruno@clisp.org>
21784
21785         Tests for module 'alignof'.
21786         * modules/alignof-tests: New file.
21787         * tests/test-alignof.c: New file.
21788
21789 2009-05-12  Bruno Haible  <bruno@clisp.org>
21790
21791         Fix alignof macro.
21792         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
21793         vendor compilers that are always correct.
21794
21795 2009-05-12  Bruno Haible  <bruno@clisp.org>
21796
21797         Make the MAP_ANONYMOUS detection work on HP-UX 11.
21798         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
21799         not whether its fully works.
21800
21801 2009-05-12  Bruno Haible  <bruno@clisp.org>
21802
21803         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
21804
21805 2009-05-12  Jim Meyering  <meyering@redhat.com>
21806
21807         * top/maint.mk: Adjust backslash alignment.
21808
21809 2009-05-11  Simon Josefsson  <simon@josefsson.org>
21810
21811         * top/maint.mk: Make $(srcdir)/build-aux configurable.
21812
21813 2009-05-11  Eric Blake  <ebb9@byu.net>
21814
21815         argp: avoid undefined behavior
21816         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
21817         macros.
21818
21819 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21820
21821         * tests/test-vc-list-files-git.sh: Do git config of user.email and
21822         user.name to prevent git commit from complaining.
21823
21824 2009-05-10  Bruno Haible  <bruno@clisp.org>
21825
21826         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
21827         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
21828         it rewrites every file name only once.
21829         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
21830
21831 2009-05-08  Bruno Haible  <bruno@clisp.org>
21832
21833         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
21834         instead of 'max'.
21835
21836 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21837
21838         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21839         sockaddr_storage test.
21840
21841 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21842
21843         * modules/sys_socket (Makefile.am): Substitute
21844         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21845         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21846         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21847         * tests/test-sys_socket.c: Check sockaddr_storage.
21848
21849 2009-05-08  Bruno Haible  <bruno@clisp.org>
21850
21851         New module 'alignof'.
21852         * lib/alignof.h: New file.
21853         * modules/alignof: New file.
21854
21855 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21856             Bruno Haible  <bruno@clisp.org>
21857
21858         Fix test-file-has-acl on FreeBSD.
21859         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21860         mask is implicitly added.
21861         * tests/test-file-has-acl.c: Include <signal.h>.
21862         (main): Terminate the test after 5 seconds.
21863         * modules/acl-tests (configure.ac): Check for alarm function.
21864
21865 2009-05-04  Bruno Haible  <bruno@clisp.org>
21866
21867         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21868         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21869         * modules/errno (configure.ac): Drop AC_REQUIRE.
21870         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21871         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21872
21873 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21874
21875         * modules/glob-tests: New module.
21876         * tests/test-glob.c: Add.
21877
21878 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21879
21880         * modules/fnmatch-tests: New module.
21881         * tests/test-fnmatch.c: Add.
21882
21883 2009-05-04  Eric Blake  <ebb9@byu.net>
21884
21885         maint: make the new no-submodule-changes rule VPATH-safe
21886         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21887
21888 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21889             Bruno Haible  <bruno@clisp.org>
21890
21891         acl: Fix infinite loop on FreeBSD.
21892         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21893         of return value from acl_get_entry.
21894         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21895         Likewise.
21896
21897 2009-05-03  Bruno Haible  <bruno@clisp.org>
21898
21899         * lib/acl-internal.h (acl_entries): Clarify return value.
21900         * lib/acl_entries.c (acl_entries): Likewise.
21901
21902 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21903
21904         Bug fix in acl module.
21905         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21906
21907 2009-05-03  Bruno Haible  <bruno@clisp.org>
21908
21909         Create gperf-generated file in the source dir, not in the build dir.
21910         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21911         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21912         * modules/unicase/locale-language (unicase/locale-languages.h):
21913         Likewise.
21914         * modules/unicase/special-casing (unicase/special-casing-table.h):
21915         Likewise.
21916         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21917         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21918         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21919         Reported by Ralf Wildenhues.
21920
21921 2009-05-03  Bruno Haible  <bruno@clisp.org>
21922
21923         * modules/fnmatch (Description, configure.ac): Taken from
21924         fnmatch-posix.
21925         * modules/fnmatch-posix: Turn into a symbolic reference to the
21926         'fnmatch' module, and deprecate.
21927         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21928
21929 2009-05-03  Bruno Haible  <bruno@clisp.org>
21930
21931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21932         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21933         Reported by Ralf Wildenhues.
21934
21935 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21936
21937         * m4/fnmatch.m4: Fix fnmatch re-define.
21938
21939 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21940
21941         priv-set: new module and tests; adapt write-any-file
21942         * lib/priv-set.c: New file.
21943         * lib/priv-set.h: New file.
21944         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21945         * lib/write-any-file.c: Simplify by using priv-set module.
21946         * m4/priv-set.m4: New file.
21947         * modules/priv-set: New file.
21948         * modules/unlinkdir: Add dependency on priv-set module.
21949         * modules/write-any-file: Likewise.
21950
21951         Tests for module 'priv-set'.
21952         * modules/priv-set-tests: New file.
21953         * tests/test-priv-set.c: New file.
21954
21955 2009-05-03  Jim Meyering  <meyering@redhat.com>
21956             Bruno Haible  <bruno@clisp.org>
21957
21958         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21959         use the converted UTF-8 variant of the name instead.
21960
21961 2009-05-03  Jim Meyering  <meyering@redhat.com>
21962
21963         tests: tighten some getdate tests
21964         * tests/test-getdate.c (main): Tighten tests: require equality,
21965         not just greater than.  Set TZ envvar to UTC0.
21966
21967 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21968
21969         getdate: correctly interpret "next monday" when run on a Monday
21970         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21971         that e.g., "next tues" (when run on a tuesday) results in a date
21972         that is one week in the future, and not today's date.
21973         I.e., add a week when the wday is the same as the current one.
21974         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21975         and earlier by Martin Bernreuther and Jan Minář.
21976         * tests/test-getdate.c (main): Check that "next DAY" is always in
21977         the future and that "last DAY" is always in the past.
21978
21979 2009-05-02  Jim Meyering  <meyering@redhat.com>
21980
21981         build: ensure that a release build fails when a submodule is unclean
21982         * top/maint.mk (no-submodule-changes): New rule.
21983         (alpha beta major): Depend on it.
21984
21985 2009-05-02  Bruno Haible  <bruno@clisp.org>
21986
21987         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21988         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21989         shell variable gl_fnmatch_required to detect which variant is
21990         requested.
21991         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21992         gl_FUNC_FNMATCH_POSIX.
21993         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21994         exclude fnmatch-posix.
21995
21996 2009-05-02  Bruno Haible  <bruno@clisp.org>
21997
21998         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21999         * modules/mbsrtowcs (License): Change to LGPLv2+.
22000         * modules/strnlen1 (License): Likewise.
22001         Reported by Simon Josefsson.
22002
22003 2009-05-02  Bruno Haible  <bruno@clisp.org>
22004
22005         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
22006         "cross".
22007         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
22008         gnulib-tool was called with option --source-base=lib.
22009
22010 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22011
22012         Use automake *-local hooks without commands, for extensibility.
22013         * modules/localcharset (Makefile.am): Rename install-exec-local
22014         rule to install-exec-localcharset, and make it a prerequisite of
22015         install-exec-local.  Likewise, rename the uninstall-local rule to
22016         uninstall-localcharset, and make it a prerequisite of the former.
22017
22018 2009-05-01  Bruno Haible  <bruno@clisp.org>
22019
22020         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
22021         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22022         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
22023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
22024         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
22025         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22026         m4/locale-zh.m4, m4/codeset.m4.
22027
22028         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22029         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
22030         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22031         m4/locale-zh.m4.
22032
22033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
22034         REPLACE_WCRTOMB if mbstate_t must be replaced.
22035         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
22036         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
22037
22038 2009-05-01  Bruno Haible  <bruno@clisp.org>
22039
22040         Avoid compiler warnings when redefining macros defined by <libintl.h>.
22041         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
22042         dngettext, dcngettext, textdomain, bindtextdomain,
22043         bind_textdomain_codeset): Undefine before redefining.
22044
22045 2009-04-30  Bruno Haible  <bruno@clisp.org>
22046
22047         Fix bug introduced on 2009-04-25.
22048         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
22049         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
22050         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
22051         is defined.
22052         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
22053         is defined.
22054         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
22055         is defined.
22056         Reported by Elbert_Pol <elbert.pol@gmail.com>.
22057
22058 2009-04-28  Bruno Haible  <bruno@clisp.org>
22059
22060         Comment tweaks.
22061         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
22062         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
22063         * lib/unicase.h (u*_casexfrm): Likewise.
22064         Reported by Paolo Bonzini.
22065
22066 2009-04-28  Bruno Haible  <bruno@clisp.org>
22067
22068         Fix a compilation error.
22069         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
22070         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22071         Reported by Jim Meyering.
22072
22073 2009-04-27  Bruno Haible  <bruno@clisp.org>
22074
22075         New module 'libunistring'.
22076         * modules/libunistring: New file.
22077         * m4/libunistring.m4: New file.
22078         * MODULES.html.sh (Unicode string functions): Add it.
22079
22080 2009-04-27  Eric Blake  <ebb9@byu.net>
22081
22082         maint.mk: allow package-specific header to provide <config.h>
22083         * top/maint.mk (sc_require_config_h): New variable.
22084         (sc_require_config_h, sc_require_config_h_first): Use it.
22085
22086 2009-04-27  Simon Josefsson  <simon@josefsson.org>
22087
22088         * top/maint.mk (sc_avoid_if_before_free): Except
22089         useless-if-before-free script.
22090
22091 2009-04-27  Eric Blake  <ebb9@byu.net>
22092
22093         maintainer-makefile: depend on all required helper scripts
22094         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
22095         useless-if-before-free.
22096         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
22097         version, rather than assuming gnulib checkout is available.
22098         Reported by Simen Josefsson.
22099
22100 2009-04-26  Bruno Haible  <bruno@clisp.org>
22101
22102         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
22103         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
22104         "../" or "..".
22105
22106 2009-04-26  Bruno Haible  <bruno@clisp.org>
22107
22108         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
22109         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
22110         AC_LIB_HAVE_LINKFLAGS.
22111
22112 2009-04-26  Bruno Haible  <bruno@clisp.org>
22113
22114         Simplify calling convention of u*_conv_from_encoding.
22115         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
22116         u32_conv_from_encoding): Expect a resultbuf argument and return the
22117         result directly as a pointer.
22118         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
22119         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
22120         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
22121         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
22122         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
22123         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22124         Update.
22125         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
22126         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
22127         * lib/vasnprintf.c (VASNPRINTF): Update.
22128         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
22129         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
22130         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
22131         * NEWS: Mention the change.
22132
22133 2009-04-26  Bruno Haible  <bruno@clisp.org>
22134
22135         Simplify calling convention of u*_conv_to_encoding.
22136         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22137         u32_conv_to_encoding): Expect a resultbuf argument and return the
22138         result directly as a pointer.
22139         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22140         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
22141         freeing scaled_offsets if mem_iconveha failed.
22142         * lib/unicase/u-casexfrm.h (FUNC): Update.
22143         * lib/uninorm/u-normxfrm.h (FUNC): Update.
22144         * lib/vasnprintf.c (VASNPRINTF): Update.
22145         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
22146         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
22147         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
22148         * NEWS: Mention the change.
22149
22150 2009-04-26  Bruno Haible  <bruno@clisp.org>
22151
22152         Avoid test failures on AIX and OSF/1.
22153         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
22154         malloc(0).
22155         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22156         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22157         Likewise.
22158         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
22159         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
22160         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
22161         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
22162         * doc/posix-functions/malloc.texi: Document the portability problem
22163         related to malloc(0).
22164
22165 2009-04-26  Bruno Haible  <bruno@clisp.org>
22166
22167         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
22168         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
22169         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
22170
22171 2009-04-25  Bruno Haible  <bruno@clisp.org>
22172
22173         Avoid link error when creating a namespace clean library.
22174         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
22175         as macro with arguments if already defined as an alias.
22176         * lib/signbitf.c (gl_signbitf): Don't undefine.
22177         * lib/signbitd.c (gl_signbitd): Don't undefine.
22178         * lib/signbitl.c (gl_signbitl): Don't undefine.
22179
22180 2009-04-25  Jim Meyering  <meyering@redhat.com>
22181
22182         vc-list-files: fix another quoting bug
22183         * build-aux/vc-list-files: Avoid sed backslash expansion
22184         of pathological directory names.
22185
22186 2009-04-25  Eric Blake  <ebb9@byu.net>
22187
22188         vc-list-files: fix shell quoting error
22189         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
22190         timestamp.
22191
22192 2009-04-25  Jim Meyering  <meyering@redhat.com>
22193
22194         vc-list-files: restore lost functionality with subdir argument
22195         * build-aux/vc-list-files: When given a non-"." sub-directory
22196         argument, substitute the $dir/ prefix back onto each resulting name.
22197         Otherwise, coreutils' root_tests check would fail.
22198
22199 2009-04-24  Eric Blake  <ebb9@byu.net>
22200
22201         vc-list-files: ignore git symlinks
22202         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
22203         than ls-files, to ignore git symlinks.
22204
22205         maint.mk: import improvements from m4
22206         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
22207         (move_if_change): Delete unused macro.
22208         (news-date-check, vc-diff-check): Support VPATH builds.
22209         (announcement): Likewise.  Split --bootstrap-tools list...
22210         (boostrap-tools): ...into separate list, which can be overridden
22211         in cfg.mk.
22212         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
22213         requiring dependency on useless-if-before-free module.
22214         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
22215         Support VPATH builds.
22216
22217 2009-04-24  Jim Meyering  <meyering@redhat.com>
22218
22219         maint.mk: remove coreutils-specific rules and variables
22220         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
22221         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
22222         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
22223
22224         maint.mk: remove obsolete rule
22225         * top/maint.mk (rel-check): Remove rule.
22226         (WGET, WGETFLAGS): Remove now-unused variables.
22227
22228 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22229
22230         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
22231         consistency.
22232
22233         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
22234         '$(PATH_SEPARATOR)' instead of ':'.
22235
22236 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22237
22238         * lib/getopt1.c (main): Use 'const' for static array.
22239
22240 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22241
22242         * top/maint.mk: Sync with coreutils.
22243         * NEWS: Explain incompatibilities.
22244
22245 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22246             Bruno Haible  <bruno@clisp.org>
22247
22248         Fix cross-compilation results.
22249         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
22250         statement, as third argument of AC_TRY_RUN.
22251         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22252         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22253         Likewise.
22254         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22255         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22256         Likewise.
22257         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22258         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
22259         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
22260
22261 2009-04-20  Bruno Haible  <bruno@clisp.org>
22262
22263         Avoid test failure on mingw.
22264         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
22265
22266 2009-04-20  Bruno Haible  <bruno@clisp.org>
22267
22268         Avoid compilation error on mingw.
22269         * modules/localename-tests (Depends-on): Add locale.
22270
22271 2009-04-19  Bruno Haible  <bruno@clisp.org>
22272
22273         Support for building a shared library on Windows platforms.
22274         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
22275         (main): Test the presence of UNINORM_NFC here.
22276         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
22277         (main): Test the presence of UNINORM_NFD here.
22278         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
22279         (main): Test the presence of UNINORM_NFKC here.
22280         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
22281         (main): Test the presence of UNINORM_NFKD here.
22282
22283 2009-04-19  Bruno Haible  <bruno@clisp.org>
22284
22285         Avoid a compiler warning.
22286         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
22287         Change type of variable 'sequence'.
22288
22289 2009-04-19  Bruno Haible  <bruno@clisp.org>
22290
22291         * modules/configmake (Makefile.am): When the contents of configmake.h
22292         does not change, arrange to preserve its modification time.
22293
22294 2009-04-17  Simon Josefsson  <simon@josefsson.org>
22295
22296         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
22297         gettext domain.
22298
22299 2009-04-16  Jim Meyering  <meyering@redhat.com>
22300
22301         useless-if-before-free: improve conversion code
22302         * build-aux/useless-if-before-free: Adjust code-in-comment to match
22303         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
22304
22305 2009-04-14  Bruno Haible  <bruno@clisp.org>
22306
22307         * modules/fcntl (Depends-on): Add extensions.
22308         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
22309
22310 2009-04-12  Ben Pfaff  <blp@gnu.org>
22311
22312         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
22313         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
22314
22315 2009-03-20  Ben Pfaff  <blp@gnu.org>
22316
22317         Make rename replace existing destinations on Windows.
22318         * m4/rename.m4: Add test for Mingw.
22319         * lib/rename.c: Add rename replacement that uses MoveFileEx with
22320         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
22321         * doc/posix-functions/rename.texi: Document.
22322
22323 2009-04-10  Bruno Haible  <bruno@clisp.org>
22324
22325         New include file "iconveh.h".
22326         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
22327         * lib/striconveh.h: Include it.
22328         (enum iconv_ilseq_handler): Remove definition.
22329         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
22330         striconveh.h.
22331         * lib/striconveha.c: Include striconveh.h.
22332         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
22333         * modules/striconveh (Files): Add lib/iconveh.h.
22334         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
22335         lib/striconveh.h.
22336
22337 2009-04-10  Bruno Haible  <bruno@clisp.org>
22338
22339         * lib/uniconv.h: Update comment.
22340
22341 2009-04-10  Bruno Haible  <bruno@clisp.org>
22342
22343         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
22344         always.
22345         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22346         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22347         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22348         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
22349         "unistring-notinline.h", so that the function gets defined always.
22350         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22351         * lib/unistr/u8-uctomb.c: Likewise.
22352         * lib/unistr/u16-mbtouc.c: Likewise.
22353         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22354         * lib/unistr/u16-uctomb.c: Likewise.
22355         * lib/unistr/u32-mbtouc.c: Likewise.
22356         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22357         * lib/unistr/u32-uctomb.c: Likewise.
22358
22359 2009-04-10  Bruno Haible  <bruno@clisp.org>
22360
22361         Mark 'utime' obsolete.
22362         * modules/utime (Status, Notice): New sections.
22363         Suggested by Jim Meyering.
22364
22365         Fix cross-compile guess for utime test.
22366         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
22367         autoconf.
22368         * doc/posix-functions/utime.texi: Give more precisions.
22369         Reported by Jan <ipif@ymail.com>.
22370
22371 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
22372
22373         filevercmp: correct today's change
22374         * lib/filevercmp.c: Also handle coreutils' test inputs.
22375         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
22376
22377         Fix regression in 'filevercmp' module. Thanks Sven Joachim
22378         for reporting it.
22379         * lib/filevercmp.c: Special handle for "", "." and "..".
22380         * tests/test-filevercmp.c: Enlarge the set suite.
22381
22382 2009-04-07  Jim Meyering  <meyering@redhat.com>
22383
22384         useless-if-before-free: show how to remove braced useless free, too
22385         * build-aux/useless-if-before-free: still only in a comment, though.
22386
22387 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
22388
22389         maint.mk: import changes to syntax-check macros from coreutils
22390         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
22391         Use them in the relevant macros.
22392
22393 2009-04-06  Bruno Haible  <bruno@clisp.org>
22394
22395         Fix unportable use of bit-fields.
22396         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22397         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22398         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22399
22400 2009-04-06  Bruno Haible  <bruno@clisp.org>
22401
22402         Avoid test failures on AIX and OSF/1.
22403         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22404         that malloc(0) = NULL.
22405         * tests/unicase/test-u8-tolower.c (check): Likewise.
22406         * tests/unicase/test-u8-totitle.c (check): Likewise.
22407         * tests/unicase/test-u8-toupper.c (check): Likewise.
22408         * tests/unicase/test-u16-casefold.c (check): Likewise.
22409         * tests/unicase/test-u16-tolower.c (check): Likewise.
22410         * tests/unicase/test-u16-totitle.c (check): Likewise.
22411         * tests/unicase/test-u16-toupper.c (check): Likewise.
22412         * tests/unicase/test-u32-casefold.c (check): Likewise.
22413         * tests/unicase/test-u32-tolower.c (check): Likewise.
22414         * tests/unicase/test-u32-totitle.c (check): Likewise.
22415         * tests/unicase/test-u32-toupper.c (check): Likewise.
22416         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22417         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22418         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22419         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22420         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22421         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22422         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22423         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22424         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22425         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22426         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22427         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22428
22429 2009-04-05  Bruno Haible  <bruno@clisp.org>
22430
22431         Work around an autoconf limitation.
22432         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22433         comment line if it would be longer than 3 KB.
22434
22435 2009-04-05  Bruno Haible  <bruno@clisp.org>
22436
22437         Avoid test failure with libiconv-1.13.
22438         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22439         of the expected test results.
22440
22441 2009-04-05  Bruno Haible  <bruno@clisp.org>
22442
22443         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22444         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22445         that it should be installed.
22446
22447 2009-04-05  Bruno Haible  <bruno@clisp.org>
22448
22449         * gnulib-tool: New option --copy-file.
22450         (func_usage): Document it.
22451         (func_dest_tmpfilename): Moved out of func_import.
22452         (func_add_file, func_update_file): New functions, extracted from
22453         func_import.
22454         (func_import): Update.
22455
22456 2009-04-05  Karl Berry  <karl@gnu.org>
22457
22458         * README: prominently mention gnulib-tool.
22459         Rearrange sections so getting the code is near the top.
22460
22461 2009-04-05  Bruno Haible  <bruno@clisp.org>
22462
22463         * lib/unicase.h: Mention u*_cmp2.
22464         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22465         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22466         * lib/unicase/ulc-casecmp.c: Likewise.
22467         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22468         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22469         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22470         unistr/u8-cmp.
22471         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22472         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22473         unistr/u16-cmp.
22474         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22475         unistr/u32-cmp.
22476
22477         * lib/uninorm.h: Mention u*_cmp2.
22478         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22479         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22480         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22481         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22482         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22483         unistr/u8-cmp.
22484         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22485         unistr/u16-cmp.
22486         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22487         unistr/u32-cmp.
22488
22489         New module 'unistr/u32-cmp2'.
22490         * lib/unistr/u32-cmp2.c: New file.
22491         * modules/unistr/u32-cmp2: New file.
22492
22493         New module 'unistr/u16-cmp2'.
22494         * lib/unistr/u16-cmp2.c: New file.
22495         * modules/unistr/u16-cmp2: New file.
22496
22497         New module 'unistr/u8-cmp2'.
22498         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22499         * lib/unistr/u8-cmp2.c: New file.
22500         * lib/unistr/u-cmp2.h: New file.
22501         * modules/unistr/u8-cmp2: New file.
22502
22503 2009-04-05  Bruno Haible  <bruno@clisp.org>
22504
22505         * lib/unictype.h (uc_property_is_valid): New macro.
22506         * tests/unictype/test-pr_byname.c (main): Use it.
22507
22508         * lib/unistr.h: Doc fixes.
22509         * lib/uniconv.h: Doc fixes.
22510         * lib/unictype.h: Doc fixes.
22511
22512 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22513
22514         Port coreutils 7.2 to Solaris 8.
22515
22516         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22517         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22518         for Solaris 8.  This is a bit of a hack, as it means it's the
22519         caller's responsibility to add -lnsl if needed, but most likely it
22520         won't be needed since only getaddrinfo uses this and getaddrinfo
22521         isn't needed on Solaris 8.
22522
22523         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22524         problem to Solaris 8 encountered with coreutils 7.2, which
22525         resulted in a message "fnmatch.c:292: warning: passing argument 4
22526         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22527         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22528
22529 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22530
22531         * m4/ld-version-script.m4: Add FIXME comment.
22532
22533 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22534
22535         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22536         SOVERSION variable.
22537
22538 2009-04-02  Bruno Haible  <bruno@clisp.org>
22539
22540         * Makefile (info, html, dvi, pdf): Combine the rules.
22541         Suggested by Jim Meyering.
22542
22543 2009-04-01  Bruno Haible  <bruno@clisp.org>
22544
22545         * Makefile (info, html, dvi, pdf): New targets.
22546         Reported by Reuben Thomas <rrt@sc3d.org>.
22547
22548 2009-04-01  Bruno Haible  <bruno@clisp.org>
22549
22550         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22551         can be put into PATH.
22552         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22553
22554 2009-04-01  Bruno Haible  <bruno@clisp.org>
22555
22556         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22557
22558 2009-04-01  Bruno Haible  <bruno@clisp.org>
22559
22560         Rename module 'visibility'.
22561         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22562         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22563         * doc/gnulib.texi: Update.
22564         * MODULES.html.sh (Misc): Update.
22565         * NEWS: Mention the change.
22566
22567 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22568
22569         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22570         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22571         Eric Blake <ebb9@byu.net> for review.
22572         * MODULES.html.sh: Add lib-msvc-compat.
22573         * doc/gnulib.texi: Link to new section.
22574         * m4/ld-output-def.m4: New file.
22575         * doc/ld-output-def.texi: New file.
22576
22577 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22578
22579         Rename ld-version-script to lib-symbol-versions.  Suggested by
22580         Bruno Haible <bruno@clisp.org>.
22581         * modules/ld-version-script: Renamed to lib-symbol-versions.
22582         * doc/ld-version-script.texi: Fix module name.
22583         * MODULES.html.sh: Add lib-symbol-versions.
22584
22585 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22586
22587         * modules/u64-tests: New file.
22588         * tests/test-u64.c: New file.
22589
22590 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22591
22592         * MODULES.html.sh: Mention u64.
22593         * modules/u64: New module.
22594         * modules/crypto/sha512: Depend on u64 module instead of providing
22595         u64.h.
22596
22597 2009-03-27  Eric Blake  <ebb9@byu.net>
22598
22599         test-strerror: make debugging EAI_SYSTEM easier
22600         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22601         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22602         failure was EAI_SYSTEM.
22603
22604 2009-03-25  Bruno Haible  <bruno@clisp.org>
22605
22606         Fix a problem with --enable-relocatable on Solaris 7.
22607         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22608         since 2008-02-24.
22609
22610 2009-03-25  Eric Blake  <ebb9@byu.net>
22611
22612         test-sockets: avoid gcc warning
22613         * tests/test-sockets.c (main): Silence compiler warning.
22614
22615 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22616
22617         New modules nproc, pthread, contributed by Glen Lenker.
22618
22619         * MODULES.html.sh: Add pthread, nproc.
22620         * lib/nproc.c: New file.
22621         * lib/nproc.h: New file.
22622         * lib/pthread.in.h: New file.
22623         * m4/pthread.m4: New file.
22624         * modules/nproc: New file.
22625         * modules/pthread: New file.
22626
22627 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22628
22629         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22630         New variable.
22631
22632 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22633
22634         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22635         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22636         * tests/test-filevercmp.c: Add tests for backup suffixes.
22637
22638 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22639
22640         * modules/stdlib (Depends-on): Add stdint, needed when defining
22641         struct random_data on, for example, HP-UX 10.20.  Reported by
22642         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22643
22644 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22645
22646         * lib/readline.c (readline): Call fflush on stdout after printing
22647         prompt.
22648
22649 2009-03-20  Bruno Haible  <bruno@clisp.org>
22650
22651         Remove dependency from 'close' module to -lws2_32 on native Windows.
22652         * lib/close-hook.h: New file.
22653         * lib/close-hook.c: New file.
22654         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22655         w32sock.h.
22656         (_gl_close_fd_maybe_socket): Remove function.
22657         (rpl_close): Invoke execute_all_close_hooks instead of
22658         _gl_close_fd_maybe_socket.
22659         * lib/sockets.c: Include close-hook.h, w32sock.h.
22660         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22661         (close_sockets_hook): New variable.
22662         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22663         (gl_sockets_cleanup): Unregister it.
22664         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22665         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22666         * modules/close-hook: New file.
22667         * modules/close (Files): Remove lib/w32sock.h.
22668         (Depends-on): Add close-hook.
22669         (Link): Remove section.
22670         * modules/sockets (Files): Add lib/w32sock.h.
22671         (Depends-on): Add close-hook.
22672         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22673         invocation.
22674         * NEWS: Mention that LIB_CLOSE is gone.
22675
22676 2009-03-23  Eric Blake  <ebb9@byu.net>
22677
22678         signal-tests: test previous patch
22679         * tests/test-signal.c: New file.
22680         * modules/signal-tests: Likewise.
22681
22682         signal.h: always support 'volatile sig_atomic_t'
22683         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
22684         (gl_SIGNAL_H_DEFAULTS): Add a default.
22685         * modules/signal (Makefile.am): Substitute if needed.
22686         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
22687         users can blindly add volatile.
22688         * doc/posix-headers/signal.texi (signal.h): Document it.
22689         Reported by Matthew Woehlke.
22690
22691 2009-03-23  Jim Meyering  <meyering@redhat.com>
22692
22693         pathmax: PATH_MAX: use pathconf only when available
22694         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
22695         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
22696         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
22697         This avoids a link failure in a PSP cross-compilation environment
22698         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
22699
22700         * lib/vasnprintf.c (divide): Fix typo in comment.
22701
22702 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22703
22704         * gnulib-tool (func_filter_filelist): Fix comment.
22705
22706 2009-03-20  Bruno Haible  <bruno@clisp.org>
22707
22708         Make sockets.h self-contained.
22709         * lib/sockets.c: Include sockets.h first.
22710         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
22711
22712 2009-03-19  Eric Blake  <ebb9@byu.net>
22713
22714         doc: mention more functions added in cygwin 1.7.0
22715         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
22716         addition.
22717         * doc/posix-functions/log2f.texi: Likewise.
22718
22719 2009-03-19  Jim Meyering  <meyering@redhat.com>
22720
22721         fsusage: avoid syntax error due to statement-before-declaration
22722         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22723         after all declarations.  Reported by Matthew Woehlke in
22724         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
22725
22726 2009-03-18  Eric Blake  <ebb9@byu.net>
22727
22728         build-aux/compile: sync from automake
22729         * build-aux/compile: New file, from automake.
22730         * config/srclist.txt: Mention build-aux/compile.
22731
22732 2009-03-17  Bruno Haible  <bruno@clisp.org>
22733
22734         * lib/git-merge-changelog.c: Fix typo in comment.
22735         Reported by Reuben Thomas <rrt@sc3d.org>.
22736
22737 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
22738
22739         * m4/regex.m4: update and improve help for
22740         --without-included-regex.
22741
22742 2009-03-17  Simon Josefsson  <simon@josefsson.org>
22743
22744         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
22745         failure on missing include files.
22746
22747 2009-03-17  Eric Blake  <ebb9@byu.net>
22748
22749         doc: mention more functions added in cygwin 1.7.0
22750         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
22751         addition.
22752         * doc/posix-functions/fwscanf.texi: Likewise.
22753         * doc/posix-functions/swprintf.texi: Likewise.
22754         * doc/posix-functions/swscanf.texi: Likewise.
22755         * doc/posix-functions/vfwprintf.texi: Likewise.
22756         * doc/posix-functions/vfwscanf.texi: Likewise.
22757         * doc/posix-functions/vswprintf.texi: Likewise.
22758         * doc/posix-functions/vswscanf.texi: Likewise.
22759         * doc/posix-functions/vwprintf.texi: Likewise.
22760         * doc/posix-functions/vwscanf.texi: Likewise.
22761         * doc/posix-functions/wcscasecmp.texi: Likewise.
22762         * doc/posix-functions/wcsdup.texi: Likewise.
22763         * doc/posix-functions/wcsftime.texi: Likewise.
22764         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22765         * doc/posix-functions/wprintf.texi: Likewise.
22766         * doc/posix-functions/wscanf.texi: Likewise.
22767         * doc/glibc-functions/gethostbyname2.texi: Likewise.
22768
22769 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22770
22771         maint.mk: really add $(AM_MAKEFLAGS)
22772         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
22773         was inadvertently omitted in the last commit.
22774         Spotted by Bruno Haible.
22775
22776         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
22777         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
22778         $(AM_MAKEFLAGS)' rather than plain `make'.
22779
22780         gnulib-tool: execute $MAKE not make
22781         * gnulib-tool: Default $MAKE to 'make'.
22782         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
22783         than make.  Initialize $MAKE in the do-autobuild script.
22784
22785         gnulib-tool: use $MAKE not make in generated files
22786         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
22787         make, in generated files.  Initialize $MAKE in the do-autobuild
22788         script.
22789
22790         * top/GNUmakefile (_have-git-version-gen): Fix typo.
22791
22792         GNUmakefile: disable parallelism only for multiple, recursive targets
22793         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
22794         additions in the Makefile.
22795         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
22796         by Automake.
22797         (.NOTPARALLEL): Only disable parallel builds if multiple targets
22798         are listed on the command line and at least one of them is
22799         listed in $(ALL_RECURSIVE_TARGETS).
22800
22801 2009-03-14  Bruno Haible  <bruno@clisp.org>
22802
22803         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
22804         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
22805         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
22806         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
22807         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
22808         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
22809         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
22810         unistr/u8-uctomb.
22811         * modules/unistr/u8-strchr (Depends-on): Likewise.
22812         * modules/unistr/u8-strrchr (Depends-on): Likewise.
22813         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
22814         unistr/u16-uctomb.
22815         * modules/unistr/u16-strchr (Depends-on): Likewise.
22816         * modules/unistr/u16-strrchr (Depends-on): Likewise.
22817
22818 2009-03-12  Bruno Haible  <bruno@clisp.org>
22819
22820         Work around select() bug on Interix 3.5.
22821         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
22822         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
22823         * m4/select.m4: New file.
22824         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
22825         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
22826         * modules/select (Files): Add m4/select.m4.
22827         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
22828         * modules/nanosleep (Depends-on): Add select.
22829         * modules/poll (Depends-on): Likewise.
22830         * doc/posix-functions/select.texi: Mention the Interix bug.
22831         Reported by Markus Duft <mduft@gentoo.org>.
22832
22833         * lib/select.c: Renamed from lib/winsock-select.c.
22834         * modules/select (Files): Add lib/select.c, remove
22835         lib/winsock-select.c.
22836         (configure.ac): Update.
22837
22838 2009-03-12  Jim Meyering  <meyering@redhat.com>
22839
22840         avoid gcc warnings about unused macro definitions
22841         * lib/readtokens.c (STREQ): Remove unused definition.
22842         * lib/xmalloc.c (SIZE_MAX): Likewise.
22843         * lib/openat-die.c (N_): Likewise.
22844         * lib/mountlist.c (SIZE_MAX): Remove definition.
22845         Instead, include <stdint.h>.
22846         * lib/readutmp.c: Likewise.
22847         * modules/readutmp (Depends-on): Add stdint.
22848         * modules/mountlist (Depends-on): Add stdint.
22849         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22850
22851 2009-03-10  Bruno Haible  <bruno@clisp.org>
22852
22853         Tests for module 'mbmemcasecoll'.
22854         * modules/mbmemcasecoll-tests: New file.
22855         * tests/test-mbmemcasecoll1.sh: New file.
22856         * tests/test-mbmemcasecoll2.sh: New file.
22857         * tests/test-mbmemcasecoll3.sh: New file.
22858         * tests/test-mbmemcasecoll.c: New file.
22859
22860         New module 'mbmemcasecoll'.
22861         * lib/mbmemcasecoll.h: New file.
22862         * lib/mbmemcasecoll.c: New file.
22863         * modules/mbmemcasecoll: New file.
22864
22865         * tests/test-mbmemcasecmp.h: New file, extracted from
22866         tests/test-mbmemcasecmp.c.
22867         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22868         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22869         (main): Update.
22870         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22871
22872 2009-03-09  Bruno Haible  <bruno@clisp.org>
22873
22874         Tests for module 'mbmemcasecmp'.
22875         * modules/mbmemcasecmp-tests: New file.
22876         * tests/test-mbmemcasecmp1.sh: New file.
22877         * tests/test-mbmemcasecmp2.sh: New file.
22878         * tests/test-mbmemcasecmp3.sh: New file.
22879         * tests/test-mbmemcasecmp.c: New file.
22880
22881         New module 'mbmemcasecmp'.
22882         * lib/mbmemcasecmp.h: New file.
22883         * lib/mbmemcasecmp.c: New file.
22884         * modules/mbmemcasecmp: New file.
22885
22886 2009-03-09  Bruno Haible  <bruno@clisp.org>
22887
22888         Tests for module 'unicase/ulc-casecoll'.
22889         * modules/unicase/ulc-casecoll-tests: New file.
22890         * tests/unicase/test-ulc-casecoll1.sh: New file.
22891         * tests/unicase/test-ulc-casecoll2.sh: New file.
22892         * tests/unicase/test-ulc-casecoll.c: New file.
22893
22894         New module 'unicase/ulc-casecoll'.
22895         * lib/unicase.h (ulc_casecoll): New declaration.
22896         * lib/unicase/ulc-casecoll.c: New file.
22897         * modules/unicase/ulc-casecoll: New file.
22898
22899         New module 'unicase/ulc-casexfrm'.
22900         * lib/unicase.h (ulc_casexfrm): New declaration.
22901         * lib/unicase/ulc-casexfrm.c: New file.
22902         * modules/unicase/ulc-casexfrm: New file.
22903
22904 2009-03-09  Bruno Haible  <bruno@clisp.org>
22905
22906         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22907         invocations.
22908
22909         * m4/mbscasecmp.m4: Remove file.
22910         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22911         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22912
22913         * m4/mbscasestr.m4: Remove file.
22914         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22915         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22916
22917         * m4/mbschr.m4: Remove file.
22918         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22919         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22920
22921         * m4/mbscspn.m4: Remove file.
22922         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22923         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22924
22925         * m4/mbslen.m4: Remove file.
22926         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22927         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22928
22929         * m4/mbsncasecmp.m4: Remove file.
22930         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22931         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22932
22933         * m4/mbsnlen.m4: Remove file.
22934         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22935         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22936
22937         * m4/mbspbrk.m4: Remove file.
22938         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22939         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22940
22941         * m4/mbspcasecmp.m4: Remove file.
22942         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22943         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22944
22945         * m4/mbsrchr.m4: Remove file.
22946         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22947         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22948
22949         * m4/mbssep.m4: Remove file.
22950         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22951         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22952
22953         * m4/mbsspn.m4: Remove file.
22954         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22955         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22956
22957         * m4/mbsstr.m4: Remove file.
22958         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22959         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22960
22961         * m4/mbstok_r.m4: Remove file.
22962         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22963         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22964
22965         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22966
22967         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22968         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22969
22970         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22971
22972 2009-03-08  Bruno Haible  <bruno@clisp.org>
22973
22974         Tests for module 'unicase/ulc-casecmp'.
22975         * modules/unicase/ulc-casecmp-tests: New file.
22976         * tests/unicase/test-ulc-casecmp1.sh: New file.
22977         * tests/unicase/test-ulc-casecmp2.sh: New file.
22978         * tests/unicase/test-ulc-casecmp.c: New file.
22979
22980         New module 'unicase/ulc-casecmp'.
22981         * lib/unicase.h (ulc_casecmp): New declaration.
22982         * lib/unicase/ulc-casecmp.c: New file.
22983         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22984         'const SRC_UNIT *'.
22985         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22986         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22987         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22988         * modules/unicase/ulc-casecmp: New file.
22989
22990         Tests for module 'unicase/u32-is-cased'.
22991         * modules/unicase/u32-is-cased-tests: New file.
22992         * tests/unicase/test-u32-is-cased.c: New file.
22993
22994         Tests for module 'unicase/u16-is-cased'.
22995         * modules/unicase/u16-is-cased-tests: New file.
22996         * tests/unicase/test-u16-is-cased.c: New file.
22997
22998         Tests for module 'unicase/u8-is-cased'.
22999         * modules/unicase/u8-is-cased-tests: New file.
23000         * tests/unicase/test-u8-is-cased.c: New file.
23001         * tests/unicase/test-is-cased.h: New file.
23002
23003         New module 'unicase/u32-is-cased'.
23004         * lib/unicase/u32-is-cased.c: New file.
23005         * modules/unicase/u32-is-cased: New file.
23006
23007         New module 'unicase/u16-is-cased'.
23008         * lib/unicase/u16-is-cased.c: New file.
23009         * modules/unicase/u16-is-cased: New file.
23010
23011         New module 'unicase/u8-is-cased'.
23012         * lib/unicase/u8-is-cased.c: New file.
23013         * lib/unicase/u-is-cased.h: New file.
23014         * modules/unicase/u8-is-cased: New file.
23015
23016         Tests for module 'unicase/u32-is-casefolded'.
23017         * modules/unicase/u32-is-casefolded-tests: New file.
23018         * tests/unicase/test-u32-is-casefolded.c: New file.
23019
23020         Tests for module 'unicase/u16-is-casefolded'.
23021         * modules/unicase/u16-is-casefolded-tests: New file.
23022         * tests/unicase/test-u16-is-casefolded.c: New file.
23023
23024         Tests for module 'unicase/u8-is-casefolded'.
23025         * modules/unicase/u8-is-casefolded-tests: New file.
23026         * tests/unicase/test-u8-is-casefolded.c: New file.
23027         * tests/unicase/test-is-casefolded.h: New file.
23028
23029         New module 'unicase/u32-is-casefolded'.
23030         * lib/unicase/u32-is-casefolded.c: New file.
23031         * modules/unicase/u32-is-casefolded: New file.
23032
23033         New module 'unicase/u16-is-casefolded'.
23034         * lib/unicase/u16-is-casefolded.c: New file.
23035         * modules/unicase/u16-is-casefolded: New file.
23036
23037         New module 'unicase/u8-is-casefolded'.
23038         * lib/unicase/u8-is-casefolded.c: New file.
23039         * modules/unicase/u8-is-casefolded: New file.
23040
23041         Tests for module 'unicase/u32-is-titlecase'.
23042         * modules/unicase/u32-is-titlecase-tests: New file.
23043         * tests/unicase/test-u32-is-titlecase.c: New file.
23044
23045         Tests for module 'unicase/u16-is-titlecase'.
23046         * modules/unicase/u16-is-titlecase-tests: New file.
23047         * tests/unicase/test-u16-is-titlecase.c: New file.
23048
23049         Tests for module 'unicase/u8-is-titlecase'.
23050         * modules/unicase/u8-is-titlecase-tests: New file.
23051         * tests/unicase/test-u8-is-titlecase.c: New file.
23052         * tests/unicase/test-is-titlecase.h: New file.
23053
23054         New module 'unicase/u32-is-titlecase'.
23055         * lib/unicase/u32-is-titlecase.c: New file.
23056         * modules/unicase/u32-is-titlecase: New file.
23057
23058         New module 'unicase/u16-is-titlecase'.
23059         * lib/unicase/u16-is-titlecase.c: New file.
23060         * modules/unicase/u16-is-titlecase: New file.
23061
23062         New module 'unicase/u8-is-titlecase'.
23063         * lib/unicase/u8-is-titlecase.c: New file.
23064         * modules/unicase/u8-is-titlecase: New file.
23065
23066         Tests for module 'unicase/u32-is-lowercase'.
23067         * modules/unicase/u32-is-lowercase-tests: New file.
23068         * tests/unicase/test-u32-is-lowercase.c: New file.
23069
23070         Tests for module 'unicase/u16-is-lowercase'.
23071         * modules/unicase/u16-is-lowercase-tests: New file.
23072         * tests/unicase/test-u16-is-lowercase.c: New file.
23073
23074         Tests for module 'unicase/u8-is-lowercase'.
23075         * modules/unicase/u8-is-lowercase-tests: New file.
23076         * tests/unicase/test-u8-is-lowercase.c: New file.
23077         * tests/unicase/test-is-lowercase.h: New file.
23078
23079         New module 'unicase/u32-is-lowercase'.
23080         * lib/unicase/u32-is-lowercase.c: New file.
23081         * modules/unicase/u32-is-lowercase: New file.
23082
23083         New module 'unicase/u16-is-lowercase'.
23084         * lib/unicase/u16-is-lowercase.c: New file.
23085         * modules/unicase/u16-is-lowercase: New file.
23086
23087         New module 'unicase/u8-is-lowercase'.
23088         * lib/unicase/u8-is-lowercase.c: New file.
23089         * modules/unicase/u8-is-lowercase: New file.
23090
23091         Tests for module 'unicase/u32-is-uppercase'.
23092         * modules/unicase/u32-is-uppercase-tests: New file.
23093         * tests/unicase/test-u32-is-uppercase.c: New file.
23094
23095         Tests for module 'unicase/u16-is-uppercase'.
23096         * modules/unicase/u16-is-uppercase-tests: New file.
23097         * tests/unicase/test-u16-is-uppercase.c: New file.
23098
23099         Tests for module 'unicase/u8-is-uppercase'.
23100         * modules/unicase/u8-is-uppercase-tests: New file.
23101         * tests/unicase/test-u8-is-uppercase.c: New file.
23102         * tests/unicase/test-is-uppercase.h: New file.
23103
23104         New module 'unicase/u32-is-uppercase'.
23105         * lib/unicase/u32-is-uppercase.c: New file.
23106         * modules/unicase/u32-is-uppercase: New file.
23107
23108         New module 'unicase/u16-is-uppercase'.
23109         * lib/unicase/u16-is-uppercase.c: New file.
23110         * modules/unicase/u16-is-uppercase: New file.
23111
23112         New module 'unicase/u8-is-uppercase'.
23113         * lib/unicase/u8-is-uppercase.c: New file.
23114         * modules/unicase/u8-is-uppercase: New file.
23115
23116         New module 'unicase/u32-is-invariant'.
23117         * lib/unicase/u32-is-invariant.c: New file.
23118         * modules/unicase/u32-is-invariant: New file.
23119
23120         New module 'unicase/u16-is-invariant'.
23121         * lib/unicase/u16-is-invariant.c: New file.
23122         * modules/unicase/u16-is-invariant: New file.
23123
23124         New module 'unicase/u8-is-invariant'.
23125         * lib/unicase/u8-is-invariant.c: New file.
23126         * lib/unicase/invariant.h: New file.
23127         * lib/unicase/u-is-invariant.h: New file.
23128         * modules/unicase/u8-is-invariant: New file.
23129
23130         Tests for module 'unicase/u32-casecoll'.
23131         * modules/unicase/u32-casecoll-tests: New file.
23132         * tests/unicase/test-u32-casecoll.c: New file.
23133
23134         Tests for module 'unicase/u16-casecoll'.
23135         * modules/unicase/u16-casecoll-tests: New file.
23136         * tests/unicase/test-u16-casecoll.c: New file.
23137
23138         Tests for module 'unicase/u8-casecoll'.
23139         * modules/unicase/u8-casecoll-tests: New file.
23140         * tests/unicase/test-u8-casecoll.c: New file.
23141
23142         New module 'unicase/u32-casecoll'.
23143         * lib/unicase/u32-casecoll.c: New file.
23144         * modules/unicase/u32-casecoll: New file.
23145
23146         New module 'unicase/u16-casecoll'.
23147         * lib/unicase/u16-casecoll.c: New file.
23148         * modules/unicase/u16-casecoll: New file.
23149
23150         New module 'unicase/u8-casecoll'.
23151         * lib/unicase/u8-casecoll.c: New file.
23152         * lib/unicase/u-casecoll.h: New file.
23153         * modules/unicase/u8-casecoll: New file.
23154
23155         New module 'unicase/u32-casexfrm'.
23156         * lib/unicase/u32-casexfrm.c: New file.
23157         * modules/unicase/u32-casexfrm: New file.
23158
23159         New module 'unicase/u16-casexfrm'.
23160         * lib/unicase/u16-casexfrm.c: New file.
23161         * modules/unicase/u16-casexfrm: New file.
23162
23163         New module 'unicase/u8-casexfrm'.
23164         * lib/unicase/u8-casexfrm.c: New file.
23165         * lib/unicase/u-casexfrm.h: New file.
23166         * modules/unicase/u8-casexfrm: New file.
23167
23168         Tests for module 'unicase/u32-casecmp'.
23169         * modules/unicase/u32-casecmp-tests: New file.
23170         * tests/unicase/test-u32-casecmp.c: New file.
23171
23172         Tests for module 'unicase/u16-casecmp'.
23173         * modules/unicase/u16-casecmp-tests: New file.
23174         * tests/unicase/test-u16-casecmp.c: New file.
23175
23176         Tests for module 'unicase/u8-casecmp'.
23177         * modules/unicase/u8-casecmp-tests: New file.
23178         * tests/unicase/test-u8-casecmp.c: New file.
23179         * tests/unicase/test-casecmp.h: New file.
23180
23181         New module 'unicase/u32-casecmp'.
23182         * lib/unicase/u32-casecmp.c: New file.
23183         * modules/unicase/u32-casecmp: New file.
23184
23185         New module 'unicase/u16-casecmp'.
23186         * lib/unicase/u16-casecmp.c: New file.
23187         * modules/unicase/u16-casecmp: New file.
23188
23189         New module 'unicase/u8-casecmp'.
23190         * lib/unicase/u8-casecmp.c: New file.
23191         * lib/unicase/u-casecmp.h: New file.
23192         * modules/unicase/u8-casecmp: New file.
23193
23194         Tests for module 'unicase/u32-casefold'.
23195         * modules/unicase/u32-casefold-tests: New file.
23196         * tests/unicase/test-u32-casefold.c: New file.
23197
23198         Tests for module 'unicase/u16-casefold'.
23199         * modules/unicase/u16-casefold-tests: New file.
23200         * tests/unicase/test-u16-casefold.c: New file.
23201
23202         Tests for module 'unicase/u8-casefold'.
23203         * modules/unicase/u8-casefold-tests: New file.
23204         * tests/unicase/test-u8-casefold.c: New file.
23205
23206         New module 'unicase/u32-casefold'.
23207         * lib/unicase/u32-casefold.c: New file.
23208         * modules/unicase/u32-casefold: New file.
23209
23210         New module 'unicase/u16-casefold'.
23211         * lib/unicase/u16-casefold.c: New file.
23212         * modules/unicase/u16-casefold: New file.
23213
23214         New module 'unicase/u8-casefold'.
23215         * lib/unicase/u8-casefold.c: New file.
23216         * lib/unicase/u-casefold.h: New file.
23217         * modules/unicase/u8-casefold: New file.
23218
23219         New module 'unicase/tocasefold'.
23220         * lib/unicase/casefold.h: New file.
23221         * lib/unicase/tocasefold.c: New file.
23222         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
23223         * modules/unicase/tocasefold: New file.
23224
23225         Tests for module 'unicase/u32-totitle'.
23226         * modules/unicase/u32-totitle-tests: New file.
23227         * tests/unicase/test-u32-totitle.c: New file.
23228
23229         Tests for module 'unicase/u16-totitle'.
23230         * modules/unicase/u16-totitle-tests: New file.
23231         * tests/unicase/test-u16-totitle.c: New file.
23232
23233         Tests for module 'unicase/u8-totitle'.
23234         * modules/unicase/u8-totitle-tests: New file.
23235         * tests/unicase/test-u8-totitle.c: New file.
23236
23237         New module 'unicase/u32-totitle'.
23238         * lib/unicase/u32-totitle.c: New file.
23239         * modules/unicase/u32-totitle: New file.
23240
23241         New module 'unicase/u16-totitle'.
23242         * lib/unicase/u16-totitle.c: New file.
23243         * modules/unicase/u16-totitle: New file.
23244
23245         New module 'unicase/u8-totitle'.
23246         * lib/unicase/u8-totitle.c: New file.
23247         * lib/unicase/u-totitle.h: New file.
23248         * modules/unicase/u8-totitle: New file.
23249
23250         Tests for module 'unicase/u32-tolower'.
23251         * modules/unicase/u32-tolower-tests: New file.
23252         * tests/unicase/test-u32-tolower.c: New file.
23253
23254         Tests for module 'unicase/u16-tolower'.
23255         * modules/unicase/u16-tolower-tests: New file.
23256         * tests/unicase/test-u16-tolower.c: New file.
23257
23258         Tests for module 'unicase/u8-tolower'.
23259         * modules/unicase/u8-tolower-tests: New file.
23260         * tests/unicase/test-u8-tolower.c: New file.
23261
23262         New module 'unicase/u32-tolower'.
23263         * lib/unicase/u32-tolower.c: New file.
23264         * modules/unicase/u32-tolower: New file.
23265
23266         New module 'unicase/u16-tolower'.
23267         * lib/unicase/u16-tolower.c: New file.
23268         * modules/unicase/u16-tolower: New file.
23269
23270         New module 'unicase/u8-tolower'.
23271         * lib/unicase/u8-tolower.c: New file.
23272         * modules/unicase/u8-tolower: New file.
23273
23274         Tests for module 'unicase/u32-toupper'.
23275         * modules/unicase/u32-toupper-tests: New file.
23276         * tests/unicase/test-u32-toupper.c: New file.
23277
23278         Tests for module 'unicase/u16-toupper'.
23279         * modules/unicase/u16-toupper-tests: New file.
23280         * tests/unicase/test-u16-toupper.c: New file.
23281
23282         Tests for module 'unicase/u8-toupper'.
23283         * modules/unicase/u8-toupper-tests: New file.
23284         * tests/unicase/test-u8-toupper.c: New file.
23285
23286         New module 'unicase/u32-toupper'.
23287         * lib/unicase/u32-toupper.c: New file.
23288         * modules/unicase/u32-toupper: New file.
23289
23290         New module 'unicase/u16-toupper'.
23291         * lib/unicase/u16-toupper.c: New file.
23292         * modules/unicase/u16-toupper: New file.
23293
23294         New module 'unicase/u8-toupper'.
23295         * lib/unicase/u8-toupper.c: New file.
23296         * modules/unicase/u8-toupper: New file.
23297
23298         New module 'unicase/u32-casemap'.
23299         * lib/unicase/u32-casemap.c: New file.
23300         * modules/unicase/u32-casemap: New file.
23301
23302         New module 'unicase/u16-casemap'.
23303         * lib/unicase/u16-casemap.c: New file.
23304         * modules/unicase/u16-casemap: New file.
23305
23306         New module 'unicase/u8-casemap'.
23307         * lib/unicase/unicasemap.h: New file.
23308         * lib/unicase/u8-casemap.c: New file.
23309         * lib/unicase/u-casemap.h: New file.
23310         * modules/unicase/u8-casemap: New file.
23311
23312         New module 'unicase/special-casing'.
23313         * lib/unicase/special-casing.h: New file.
23314         * lib/unicase/special-casing.c: New file.
23315         * lib/unicase/special-casing-table.gperf: New file, generated by
23316         gen-uni-tables.c.
23317         * modules/unicase/special-casing: New file.
23318
23319         Tests for module 'unicase/locale-language'.
23320         * modules/unicase/locale-language-tests: New file.
23321         * tests/unicase/test-locale-language.sh: New file.
23322         * tests/unicase/test-locale-language.c: New file.
23323
23324         New module 'unicase/locale-language'.
23325         * lib/unicase/locale-language.c: New file.
23326         * lib/unicase/locale-languages.gperf: New file.
23327         * modules/unicase/locale-language: New file.
23328
23329         Generate more tables for case conversion and case folding.
23330         * lib/gen-uni-tables.c (SCC_*): New enum items.
23331         (struct special_casing_rule): New type.
23332         (casing_rules, num_casing_rules, allocated_casing_rules): New
23333         variables.
23334         (add_casing_rule, fill_casing_rules): New functions.
23335         (struct casefold_rule): New type.
23336         (casefolding_rules, num_casefolding_rules,
23337         allocated_casefolding_rules): New variables.
23338         (fill_casefolding_rules): New function.
23339         (unicode_casefold): New variable.
23340         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
23341         sort_casing_rules, output_casing_rules): New functions.
23342         (main): Accept to more arguments: SpecialCasing.txt and
23343         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
23344         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
23345         Output mapping for casefolding.
23346
23347         * lib/unicase.h: Include stdbool.h, uninorm.h.
23348         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
23349         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
23350         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
23351         arguments.
23352         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
23353         resultp arguments.
23354         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
23355         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
23356         resultp arguments.
23357         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
23358         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
23359         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
23360         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
23361         declarations.
23362         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
23363
23364 2009-03-08  Bruno Haible  <bruno@clisp.org>
23365
23366         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23367         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
23368         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
23369         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23370
23371 2009-03-07  Bruno Haible  <bruno@clisp.org>
23372
23373         Adjust u*_normcmp, u*_normcoll API.
23374         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23375         u16_normcoll, u32_normcoll): Change failure conventions.
23376         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
23377         errno and return -1.
23378         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23379
23380 2009-03-07  Bruno Haible  <bruno@clisp.org>
23381
23382         Tests for module 'uninorm/u32-normcoll'.
23383         * modules/uninorm/u32-normcoll-tests: New file.
23384         * tests/uninorm/test-u32-normcoll.c: New file.
23385
23386         Tests for module 'uninorm/u16-normcoll'.
23387         * modules/uninorm/u16-normcoll-tests: New file.
23388         * tests/uninorm/test-u16-normcoll.c: New file.
23389
23390         Tests for module 'uninorm/u8-normcoll'.
23391         * modules/uninorm/u8-normcoll-tests: New file.
23392         * tests/uninorm/test-u8-normcoll.c: New file.
23393
23394 2009-03-07  Bruno Haible  <bruno@clisp.org>
23395
23396         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23397         tests/uninorm/test-u32-normcmp.c.
23398         * tests/uninorm/test-u32-normcmp.c: Include it.
23399         (test_nonascii): New function, extracted from main. Add some more
23400         tests.
23401         (main): Invoke test_ascii and test_nonascii.
23402         * modules/uninorm/u32-normcmp-tests (Files): Add
23403         tests/uninorm/test-u32-normcmp.h.
23404         (Depends-on): Remove uninorm/u32-normcmp.
23405
23406         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23407         tests/uninorm/test-u16-normcmp.c.
23408         * tests/uninorm/test-u16-normcmp.c: Include it.
23409         (test_nonascii): New function, extracted from main. Add some more
23410         tests.
23411         (main): Invoke test_ascii and test_nonascii.
23412         * modules/uninorm/u16-normcmp-tests (Files): Add
23413         tests/uninorm/test-u16-normcmp.h.
23414         (Depends-on): Remove uninorm/u16-normcmp.
23415
23416         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23417         tests/uninorm/test-u8-normcmp.c.
23418         * tests/uninorm/test-u8-normcmp.c: Include it.
23419         (test_nonascii): New function, extracted from main. Add some more
23420         tests.
23421         (main): Invoke test_ascii and test_nonascii.
23422         * modules/uninorm/u8-normcmp-tests (Files): Add
23423         tests/uninorm/test-u8-normcmp.h.
23424         (Depends-on): Remove uninorm/u8-normcmp.
23425
23426 2009-03-07  Bruno Haible  <bruno@clisp.org>
23427
23428         New module 'uninorm/u32-normcoll'.
23429         * lib/uninorm/u32-normcoll.c: New file.
23430         * modules/uninorm/u32-normcoll: New file.
23431
23432         New module 'uninorm/u16-normcoll'.
23433         * lib/uninorm/u16-normcoll.c: New file.
23434         * modules/uninorm/u16-normcoll: New file.
23435
23436         New module 'uninorm/u8-normcoll'.
23437         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23438         declarations.
23439         * lib/uninorm/u8-normcoll.c: New file.
23440         * lib/uninorm/u-normcoll.h: New file.
23441         * modules/uninorm/u8-normcoll: New file.
23442
23443         New module 'uninorm/u32-normxfrm'.
23444         * lib/uninorm/u32-normxfrm.c: New file.
23445         * modules/uninorm/u32-normxfrm: New file.
23446
23447         New module 'uninorm/u16-normxfrm'.
23448         * lib/uninorm/u16-normxfrm.c: New file.
23449         * modules/uninorm/u16-normxfrm: New file.
23450
23451         New module 'uninorm/u8-normxfrm'.
23452         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23453         declarations.
23454         * lib/uninorm/u8-normxfrm.c: New file.
23455         * lib/uninorm/u-normxfrm.h: New file.
23456         * modules/uninorm/u8-normxfrm: New file.
23457
23458 2009-03-07  Bruno Haible  <bruno@clisp.org>
23459
23460         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23461         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23462         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23463
23464 2009-03-07  Bruno Haible  <bruno@clisp.org>
23465
23466         New module 'memxfrm'.
23467         * lib/memxfrm.h: New file.
23468         * lib/memxfrm.c: New file.
23469         * modules/memxfrm: New file.
23470
23471 2009-03-07  Bruno Haible  <bruno@clisp.org>
23472
23473         New module 'memcmp2'.
23474         * lib/memcmp2.h: New file.
23475         * lib/memcmp2.c: New file.
23476         * modules/memcmp2: New file.
23477
23478 2009-03-07  Bruno Haible  <bruno@clisp.org>
23479
23480         Tests for module 'uninorm/decomposing-form'.
23481         * modules/uninorm/decomposing-form-tests: New file.
23482         * tests/uninorm/test-decomposing-form.c: New file.
23483
23484         New module 'uninorm/decomposing-form'.
23485         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23486         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23487         Add 'decomposing_variant' field.
23488         * lib/uninorm/decomposing-form.c: New file.
23489         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23490         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23491         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23492         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23493         * modules/uninorm/decomposing-form: New file.
23494         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23495         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23496
23497 2009-03-07  Bruno Haible  <bruno@clisp.org>
23498
23499         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23500         strings.
23501
23502 2009-03-06  Bruno Haible  <bruno@clisp.org>
23503
23504         Tests for module 'uninorm/u32-normcmp'.
23505         * tests/uninorm/test-u32-normcmp.c: New file.
23506         * modules/uninorm/u32-normcmp-tests: New file.
23507
23508         Tests for module 'uninorm/u16-normcmp'.
23509         * tests/uninorm/test-u16-normcmp.c: New file.
23510         * modules/uninorm/u16-normcmp-tests: New file.
23511
23512         Tests for module 'uninorm/u8-normcmp'.
23513         * tests/uninorm/test-u8-normcmp.c: New file.
23514         * modules/uninorm/u8-normcmp-tests: New file.
23515
23516         New module 'uninorm/u32-normcmp'.
23517         * lib/uninorm/u32-normcmp.c: New file.
23518         * modules/uninorm/u32-normcmp: New file.
23519
23520         New module 'uninorm/u16-normcmp'.
23521         * lib/uninorm/u16-normcmp.c: New file.
23522         * modules/uninorm/u16-normcmp: New file.
23523
23524         New module 'uninorm/u8-normcmp'.
23525         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23526         declarations.
23527         * lib/uninorm/u8-normcmp.c: New file.
23528         * lib/uninorm/u-normcmp.h: New file.
23529         * modules/uninorm/u8-normcmp: New file.
23530
23531 2009-03-06  Bruno Haible  <bruno@clisp.org>
23532
23533         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23534         Reported by Eric Blake.
23535
23536 2009-03-06  Eric Blake  <ebb9@byu.net>
23537             Bruno Haible  <bruno@clisp.org>
23538
23539         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23540         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23541         condition.
23542         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23543         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23544         condition.
23545         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23546
23547 2009-03-06  Eric Blake  <ebb9@byu.net>
23548
23549         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23550         to avoid compiler warnings.
23551         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23552
23553 2009-03-05  Bruno Haible  <bruno@clisp.org>
23554
23555         * tests/test-ftell.c (main): Disable test beyond end of file on
23556         FreeMiNT.
23557         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23558
23559 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23560
23561         * lib/filevercmp.c: Move hidden files up in ordering.
23562         * tests/test-filevercmp.c: Add tests for hidden files.
23563
23564 2009-03-04  Bruno Haible  <bruno@clisp.org>
23565
23566         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23567         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23568         AM_CFLAGS.
23569         Reported by Simon Josefsson.
23570
23571 2009-03-03  Bruno Haible  <bruno@clisp.org>
23572
23573         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23574         Reported by Simon Josefsson.
23575
23576         * doc/ld-version-script.texi: Update node reference.
23577
23578 2009-03-03  Bruno Haible  <bruno@clisp.org>
23579
23580         * modules/visibility (License): Change to 'unlimited'.
23581         Suggested by Simon Josefsson.
23582
23583 2009-03-03  Jim Meyering  <meyering@redhat.com>
23584
23585         unlinkdir: cannot_unlink_dir may modify process state
23586         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23587         it's neither thread-safe nor appropriate for use in a library.
23588
23589 2009-03-03  Eric Blake  <ebb9@byu.net>
23590
23591         test-closein: silence test under Darwin
23592         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23593         care if it dies from EPIPE or EBADF.
23594
23595 2009-03-03  Bruno Haible  <bruno@clisp.org>
23596
23597         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23598         earlier.
23599         * doc/visibility.texi: Fix @node and @section.
23600
23601 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23602
23603         * doc/gnulib.texi: Link to sections for ld version script and
23604         visibility.
23605         * doc/visibility.texi: Add @node and @section.
23606         * modules/ld-version-script: New module.
23607         * m4/ld-version-script.m4: New file.
23608         * doc/ld-version-script.texi: New file.
23609
23610 2009-03-02  David Lutterkort  <lutter@redhat.com>
23611
23612         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23614
23615 2009-03-02  Bruno Haible  <bruno@clisp.org>
23616
23617         * doc/visibility.texi: Mention libtool's -export-symbols option.
23618
23619 2009-03-02  Jim Meyering  <meyering@redhat.com>
23620
23621         announce-gen: new option: --no-print-checksums
23622         * build-aux/announce-gen (usage): Describe it.
23623         (print_checksums): Print a newline here, not in the [*] footnote.
23624         (main): Honor it.
23625
23626 2009-03-01  Bruno Haible  <bruno@clisp.org>
23627
23628         Use socklen_t in the native Windows replacements prototypes.
23629         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23630         instead of 'int'.
23631         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23632         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23633         * modules/getsockopt (Depends-on): Add socklen.
23634         * modules/setsockopt (Depends-on): Add socklen.
23635
23636 2009-03-01  Bruno Haible  <bruno@clisp.org>
23637
23638         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23639         least 4.2.
23640
23641 2009-03-01  Eric Blake  <ebb9@byu.net>
23642             Bruno Haible  <bruno@clisp.org>
23643
23644         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23645         error messages.
23646         * lib/wait-process.c (wait_subprocess): Omit error message about
23647         deadly signal sent to the child of termsigp != NULL.
23648
23649 2009-03-01  Eric Blake  <ebb9@byu.net>
23650
23651         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23652
23653 2009-03-01  Bruno Haible  <bruno@clisp.org>
23654
23655         Avoid a gcc warning.
23656         * tests/test-sched.c (b): Make global.
23657         Reported by Eric Blake.
23658
23659 2009-01-19  Martin Lambers  <marlam@marlam.de>
23660
23661         Provide POSIX semantics for socket timeout options on W32.
23662         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23663         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23664         * modules/setsockopt: Depend on sys_time module for struct timeval.
23665         * modules/getsockopt: Depend on sys_time module for struct timeval.
23666
23667 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23668
23669         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23670         __USE_GNU, for consistency with netdb.in.h.
23671         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23672
23673 2009-03-01  Bruno Haible  <bruno@clisp.org>
23674
23675         More support for FreeMiNT.
23676         * lib/fseeko.c (rpl_fseeko): Complete last commit.
23677         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23678
23679 2009-03-01  Bruno Haible  <bruno@clisp.org>
23680
23681         More support for FreeMiNT.
23682         * lib/fpurge.c (fpurge): Correct last commit.
23683         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23684
23685 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23686
23687         Fix unportable awk script in vc-list-files.
23688         * build-aux/vc-list-files: In the replacement awk script, use
23689         substr with a second argument of 1, not zero.
23690         Report by Simon Josefsson.
23691
23692 2009-02-28  Bruno Haible  <bruno@clisp.org>
23693
23694         More support for FreeMiNT.
23695         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
23696         to FreeMiNT today.
23697         * lib/fwriting.c (fwriting): Likewise.
23698         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
23699
23700 2009-02-28  Bruno Haible  <bruno@clisp.org>
23701
23702         * tests/test-freadseek.c (main): Disable test beyond end of file on
23703         FreeMiNT.
23704         * tests/test-ftello.c (main): Likewise.
23705         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23706
23707 2009-02-28  Bruno Haible  <bruno@clisp.org>
23708
23709         Add tentative support for FreeMiNT.
23710         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
23711         * lib/fpurge.c (fpurge): Likewise.
23712         * lib/freadable.c (freadable): Likewise.
23713         * lib/freading.c (freading): Likewise.
23714         * lib/freadptr.c (freadptr): Likewise.
23715         * lib/freadseek.c (freadptrinc): Likewise.
23716         * lib/fseeko.c (rpl_fseeko): Likewise.
23717         * lib/fseterr.c (fseterr): Likewise.
23718         * lib/fwritable.c (fwritable): Likewise.
23719         * lib/fwriting.c (fwriting): Likewise.
23720         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
23721         Hourihane.
23722         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23723
23724 2009-02-28  Bruno Haible  <bruno@clisp.org>
23725
23726         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
23727         SIGCHLD.
23728         Reported by Jim Meyering.
23729
23730 2009-02-28  Bruno Haible  <bruno@clisp.org>
23731
23732         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
23733         Mention the results of these tests on various platforms.
23734         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
23735         order.
23736         * doc/posix-functions/printf.texi: Likewise.
23737         * doc/posix-functions/snprintf.texi: Likewise.
23738         * doc/posix-functions/sprintf.texi: Likewise.
23739         * doc/posix-functions/vfprintf.texi: Likewise.
23740         * doc/posix-functions/vprintf.texi: Likewise.
23741         * doc/posix-functions/vsnprintf.texi: Likewise.
23742         * doc/posix-functions/vsprintf.texi: Likewise.
23743         * doc/glibc-functions/obstack_printf.texi: Likewise.
23744         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23745
23746 2009-02-28  Bruno Haible  <bruno@clisp.org>
23747
23748         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
23749         Reported by Loïc Minier <lool@dooz.org>.
23750
23751 2009-02-27  Bruno Haible  <bruno@clisp.org>
23752
23753         * gnulib-tool (func_import): Make the sed expression used to create the
23754         sed script for updating the .gitignore file POSIX compliant.
23755         Reported by Eric Blake.
23756
23757 2009-02-27  Bruno Haible  <bruno@clisp.org>
23758
23759         * gnulib-tool (sed): Don't alias as "sed --posix".
23760         Reported by Eric Blake.
23761
23762 2009-02-27  Bruno Haible  <bruno@clisp.org>
23763
23764         Avoid test link errors.
23765         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
23766         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
23767         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
23768         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
23769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23770
23771 2009-02-27  Bruno Haible  <bruno@clisp.org>
23772
23773         Avoid spurious "(cached)" in configure output.
23774         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
23775         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
23776         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23777         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23778         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23779         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23780         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23781         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23782         Reported by Eric Blake.
23783
23784 2009-02-27  Eric Blake  <ebb9@byu.net>
23785
23786         printf: fix regression in previous patch
23787         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
23788
23789 2009-02-27  Bruno Haible  <bruno@clisp.org>
23790
23791         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
23792         value.
23793         * lib/stdint.in.h: Likewise.
23794         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
23795
23796 2009-02-27  Eric Blake  <ebb9@byu.net>
23797
23798         doc: mention more functions added in cygwin 1.7.0
23799         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
23800         addition.
23801         * doc/posix-functions/open_wmemstream.texi: Likewise.
23802         * doc/posix-functions/wcsnlen.texi: Likewise.
23803         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23804         * doc/posix-functions/wcstod.texi: Likewise.
23805         * doc/posix-functions/wcstof.texi: Likewise.
23806         * doc/posix-functions/wcstoimax.texi: Likewise.
23807         * doc/posix-functions/wcstok.texi: Likewise.
23808         * doc/posix-functions/wcstoumax.texi: Likewise.
23809
23810         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
23811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
23812         * doc/posix-functions/fprintf.texi: Update.
23813         * doc/posix-functions/printf.texi: Update.
23814         * doc/posix-functions/snprintf.texi: Update.
23815         * doc/posix-functions/sprintf.texi: Update.
23816         * doc/posix-functions/vfprintf.texi: Update.
23817         * doc/posix-functions/vprintf.texi: Update.
23818         * doc/posix-functions/vsnprintf.texi: Update.
23819         * doc/posix-functions/vsprintf.texi: Update.
23820         * doc/glibc-functions/obstack_printf.texi: Update.
23821         * doc/glibc-functions/obstack_vprintf.texi: Update.
23822
23823 2009-02-26  Eric Blake  <ebb9@byu.net>
23824
23825         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
23826         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
23827         compilation bug by using runtime conversion.
23828         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23829         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
23830         * modules/ceill-tests (Files): Use nan.h.
23831         * modules/floorl-tests (Files): Likewise.
23832         * modules/frexpl-tests (Files): Likewise.
23833         * modules/isnanl-tests (Files): Likewise.
23834         * modules/ldexpl-tests (Files): Likewise.
23835         * modules/roundl-tests (Files): Likewise.
23836         * modules/truncl-tests (Files): Likewise.
23837         * tests/test-ceill.c (main): Use a working NaN.
23838         * tests/test-floorl.c (main): Likewise.
23839         * tests/test-frexpl.c (main): Likewise.
23840         * tests/test-isnan.c (test_long_double): Likewise.
23841         * tests/test-isnanl.h (main): Likewise.
23842         * tests/test-ldexpl.h (main): Likewise.
23843         * tests/test-roundl.h (main): Likewise.
23844         * tests/test-truncl.h (main): Likewise.
23845         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23846
23847 2009-02-26  Eric Blake  <ebb9@byu.net>
23848             Bruno Haible  <bruno@clisp.org>
23849
23850         Work around a *printf bug with %ls on Solaris.
23851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23852         precision is specified, sprintf stops converting the wide string
23853         argument when the number of bytes that have been produced by this
23854         conversion equals or exceeds the precision.
23855         * doc/posix-functions/fprintf.texi: Update.
23856         * doc/posix-functions/printf.texi: Update.
23857         * doc/posix-functions/snprintf.texi: Update.
23858         * doc/posix-functions/sprintf.texi: Update.
23859         * doc/posix-functions/vfprintf.texi: Update.
23860         * doc/posix-functions/vprintf.texi: Update.
23861         * doc/posix-functions/vsnprintf.texi: Update.
23862         * doc/posix-functions/vsprintf.texi: Update.
23863         * doc/glibc-functions/obstack_printf.texi: Update.
23864         * doc/glibc-functions/obstack_vprintf.texi: Update.
23865
23866 2009-02-26  Eric Blake  <ebb9@byu.net>
23867
23868         stdlib: favor compiler check of random.h
23869         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23870         to avoid an ObjC random.h installed by Swarm.
23871
23872 2009-02-26  Bruno Haible  <bruno@clisp.org>
23873
23874         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23875         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23876         Reported by Gary V. Vaughan <gary@gnu.org>.
23877
23878 2009-02-26  Bruno Haible  <bruno@clisp.org>
23879
23880         Fix *printf behaviour regarding the %ls directive.
23881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23882         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23883         NEED_PRINTF_DIRECTIVE_LS.
23884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23885         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23887         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23888         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23889         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23890         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23895         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23899         * doc/posix-functions/fprintf.texi: Update.
23900         * doc/posix-functions/printf.texi: Update.
23901         * doc/posix-functions/snprintf.texi: Update.
23902         * doc/posix-functions/sprintf.texi: Update.
23903         * doc/posix-functions/vfprintf.texi: Update.
23904         * doc/posix-functions/vprintf.texi: Update.
23905         * doc/posix-functions/vsnprintf.texi: Update.
23906         * doc/posix-functions/vsprintf.texi: Update.
23907         * doc/glibc-functions/obstack_printf.texi: Update.
23908         * doc/glibc-functions/obstack_vprintf.texi: Update.
23909         Reported by Eric Blake.
23910
23911 2009-02-25  Bruno Haible  <bruno@clisp.org>
23912
23913         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23914         with known value.
23915         Reported by Gary V. Vaughan <gary@gnu.org>.
23916
23917 2009-02-25  Bruno Haible  <bruno@clisp.org>
23918
23919         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23920         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23921         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23922         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23923         Reported by Gary V. Vaughan <gary@gnu.org>.
23924
23925 2009-02-25  Bruno Haible  <bruno@clisp.org>
23926
23927         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23928         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23929         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23930         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23931         Reported by Gary V. Vaughan <gary@gnu.org>.
23932
23933 2009-02-25  Eric Blake  <ebb9@byu.net>
23934
23935         tests: skip fseek/ftell tests if ungetc is broken
23936         * m4/ungetc.m4: New file.
23937         * modules/fseek-tests: Split test, so ungetc dependency is
23938         separate from rest of test.
23939         * modules/fseeko-tests: Likewise.
23940         * modules/ftell-tests: Likewise.
23941         * modules/ftello-tests: Likewise.
23942         * tests/test-fseek.c (main): Isolate ungetc dependency.
23943         * tests/test-fseeko.c (main): Likewise.
23944         * tests/test-ftell.c (main): Likewise.
23945         * tests/test-ftello.c (main): Likewise.
23946         * tests/test-fseek2.sh: New file.
23947         * tests/test-fseeko2.sh: Likewise.
23948         * tests/test-ftell2.sh: Likewise.
23949         * tests/test-ftello2.sh: Likewise.
23950
23951 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
23952
23953         test-getaddrinfo: fix usage of skip return code 77
23954         * tests/test-gettaddrinfo.c: Return skip code 77 only
23955         for first occurance of skip (4x77 is not 77)
23956
23957 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23958
23959         strtod: avoid C99 decl-after-statement
23960         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23961
23962 2009-02-24  Eric Blake  <ebb9@byu.net>
23963
23964         strtod: detect HP-UX 11.31 bug
23965         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23966         Reported by Gary V. Vaughan.
23967
23968 2009-02-23  Bruno Haible  <bruno@clisp.org>
23969
23970         Fix invalid read past end of memory block.
23971         * lib/vasnprintf.c (DCHAR_SET): Define.
23972         (local_wcslen): Define only when needed.
23973         (local_strnlen, local_wcsnlen): New functions.
23974         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23975         directives that involve a conversion ourselves.
23976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23977         wcsnlen, mbrtowc, wcrtomb.
23978         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23979         * tests/test-vasprintf-posix.c (test_function): Likewise.
23980         * tests/test-snprintf-posix.h (test_function): Likewise.
23981         * tests/test-sprintf-posix.h (test_function): Likewise.
23982         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23983
23984 2009-02-22  Bruno Haible  <bruno@clisp.org>
23985
23986         Implement new clarified decomposition of Hangul syllables.
23987         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23988         of type LTV, return only a pairwise decomposition.
23989         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23990         Likewise.
23991         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23992         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23993         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23994
23995 2009-02-22  Bruno Haible  <bruno@clisp.org>
23996
23997         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23998         zero-length results and shrink excess allocated memory.
23999         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
24000         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
24001         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
24002         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
24003         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
24004         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
24005         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
24006         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
24007         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
24008         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
24009         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
24010         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
24011
24012 2009-02-21  Bruno Haible  <bruno@clisp.org>
24013
24014         * doc/gnulib.texi: Include safe-alloc.texi earlier.
24015         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
24016         spaces after a period. Put a space between a macro name and its
24017         argument list. Trivial rewordings.
24018         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
24019         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
24020         (main): Return 0 explicitly.
24021
24022 2009-02-21  Bruno Haible  <bruno@clisp.org>
24023
24024         Tests for module 'uninorm/filter'.
24025         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
24026         * modules/uninorm/filter-tests: New file.
24027
24028         New module 'uninorm/filter'.
24029         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
24030         uninorm_filter_flush, uninorm_filter_free): New declarations.
24031         * lib/uninorm/uninorm-filter.c: New file.
24032         * modules/uninorm/filter: New file.
24033
24034 2009-02-21  Bruno Haible  <bruno@clisp.org>
24035
24036         Tests for module 'uninorm/nfkc'.
24037         * tests/uninorm/test-nfkc.c: New file.
24038         * tests/uninorm/test-u8-nfkc.c: New file.
24039         * tests/uninorm/test-u16-nfkc.c: New file.
24040         * tests/uninorm/test-u32-nfkc.c: New file.
24041         * tests/uninorm/test-u32-nfkc-big.sh: New file.
24042         * tests/uninorm/test-u32-nfkc-big.c: New file.
24043         * modules/uninorm/nfkc-tests: New file.
24044
24045         New module 'uninorm/nfkc'.
24046         * lib/uninorm/nfkc.c: New file.
24047         * modules/uninorm/nfkc: New file.
24048
24049         Tests for module 'uninorm/nfkd'.
24050         * tests/uninorm/test-nfkd.c: New file.
24051         * tests/uninorm/test-u8-nfkd.c: New file.
24052         * tests/uninorm/test-u16-nfkd.c: New file.
24053         * tests/uninorm/test-u32-nfkd.c: New file.
24054         * tests/uninorm/test-u32-nfkd-big.sh: New file.
24055         * tests/uninorm/test-u32-nfkd-big.c: New file.
24056         * modules/uninorm/nfkd-tests: New file.
24057
24058         New module 'uninorm/nfkd'.
24059         * lib/uninorm/nfkd.c: New file.
24060         * modules/uninorm/nfkd: New file.
24061
24062         Tests for module 'uninorm/nfc'.
24063         * tests/uninorm/test-nfc.c: New file.
24064         * tests/uninorm/test-u8-nfc.c: New file.
24065         * tests/uninorm/test-u16-nfc.c: New file.
24066         * tests/uninorm/test-u32-nfc.c: New file.
24067         * tests/uninorm/test-u32-nfc-big.sh: New file.
24068         * tests/uninorm/test-u32-nfc-big.c: New file.
24069         * modules/uninorm/nfc-tests: New file.
24070
24071         New module 'uninorm/nfc'.
24072         * lib/uninorm/nfc.c: New file.
24073         * modules/uninorm/nfc: New file.
24074
24075         Tests for module 'uninorm/nfd'.
24076         * tests/uninorm/test-nfd.c: New file.
24077         * tests/uninorm/test-u8-nfd.c: New file.
24078         * tests/uninorm/test-u16-nfd.c: New file.
24079         * tests/uninorm/test-u32-nfd.c: New file.
24080         * tests/uninorm/test-u32-nfd-big.sh: New file.
24081         * tests/uninorm/test-u32-nfd-big.c: New file.
24082         * tests/uninorm/test-u32-normalize-big.h: New file.
24083         * tests/uninorm/test-u32-normalize-big.c: New file.
24084         * tests/uninorm/NormalizationTest.txt: New file, created from
24085         Unicode 5.1.0 NormalizationTest.txt.
24086         * modules/uninorm/nfd-tests: New file.
24087
24088         New module 'uninorm/nfd'.
24089         * lib/uninorm/nfd.c: New file.
24090         * modules/uninorm/nfd: New file.
24091
24092         New module 'uninorm/u32-normalize'.
24093         * lib/uninorm/u32-normalize.c: New file.
24094         * modules/uninorm/u32-normalize: New file.
24095
24096         New module 'uninorm/u16-normalize'.
24097         * lib/uninorm/u16-normalize.c: New file.
24098         * modules/uninorm/u16-normalize: New file.
24099
24100         New module 'uninorm/u8-normalize'.
24101         * lib/uninorm/u8-normalize.c: New file.
24102         * lib/uninorm/normalize-internal.h: New file.
24103         * lib/uninorm/u-normalize-internal.h: New file.
24104         * modules/uninorm/u8-normalize: New file.
24105
24106         New module 'uninorm/decompose-internal'.
24107         * lib/uninorm/decompose-internal.c: New file.
24108         * modules/uninorm/decompose-internal: New file.
24109
24110         Tests for module 'uninorm/composition'.
24111         * tests/uninorm/test-composition.c: New file.
24112         * modules/uninorm/composition-tests: New file.
24113
24114         New module 'uninorm/composition'.
24115         * lib/uninorm/composition.c: New file.
24116         * lib/uninorm/composition-table.gperf: New file, generated by
24117         gen-uni-tables.
24118         * modules/uninorm/composition: New file.
24119
24120         Tests for module 'uninorm/compat-decomposition'.
24121         * tests/uninorm/test-compat-decomposition.c: New file.
24122         * modules/uninorm/compat-decomposition-tests: New file.
24123
24124         New module 'uninorm/compat-decomposition'.
24125         * lib/uninorm/decompose-internal.h: New file.
24126         * lib/uninorm/compat-decomposition.c: New file.
24127         * modules/uninorm/compat-decomposition: New file.
24128
24129         Tests for module 'uninorm/canonical-decomposition'.
24130         * tests/uninorm/test-canonical-decomposition.c: New file.
24131         * modules/uninorm/canonical-decomposition-tests: New file.
24132
24133         New module 'uninorm/canonical-decomposition'.
24134         * lib/uninorm/canonical-decomposition.c: New file.
24135         * modules/uninorm/canonical-decomposition: New file.
24136
24137         Tests for module 'uninorm/decomposition'.
24138         * tests/uninorm/test-decomposition.c: New file.
24139         * modules/uninorm/decomposition-tests: New file.
24140
24141         New module 'uninorm/decomposition'.
24142         * lib/uninorm/decomposition.c: New file.
24143         * modules/uninorm/decomposition: New file.
24144
24145         New module 'uninorm/decomposition-table'.
24146         * lib/uninorm/decomposition-table.h: New file.
24147         * lib/uninorm/decomposition-table.c: New file.
24148         * lib/uninorm/decomposition-table1.h: New file, generated by
24149         gen-uni-tables.
24150         * lib/uninorm/decomposition-table2.h: New file, generated by
24151         gen-uni-tables.
24152         * modules/uninorm/decomposition-table: New file.
24153
24154         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
24155         (UC_DECOMP_*): New enumeration items.
24156         (get_decomposition): New function.
24157         (struct decomp_table): New type.
24158         (output_decomposition, output_decomposition_tables): New functions.
24159         (unicode_composition_exclusions): New variable.
24160         (fill_composition_exclusions, debug_output_composition_tables): New
24161         functions.
24162         (main): Accept one more argument. Invoke fill_composition_exclusions.
24163         Output decomposition and composition tables.
24164
24165         New module 'uninorm/base'.
24166         * lib/uninorm.h: New file.
24167         * lib/unictype.h: Update comment.
24168         * modules/uninorm/base: New file.
24169
24170 2009-02-21  David Lutterkort  <lutter@redhat.com>
24171
24172         Tests for module 'safe-alloc'.
24173         * tests/test-safe-alloc.c: New file.
24174         * modules/safe-alloc-tests: New file.
24175
24176         New module 'safe-alloc'.
24177         * lib/safe-alloc.h: New file.
24178         * lib/safe-alloc.c: New file.
24179         * m4/safe-alloc.m4: New file.
24180         * modules/safe-alloc: New file.
24181         * doc/safe-alloc.texi: New file.
24182         * doc/gnulib.texi: Include it.
24183         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24184         safe-alloc.
24185
24186 2009-02-18  Bruno Haible  <bruno@clisp.org>
24187
24188         Fix link error on non-glibc systems.
24189         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
24190         variable.
24191         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24192
24193 2009-02-18  Jim Meyering  <meyering@redhat.com>
24194
24195         fts: avoid used-uninitialized error due to recent change
24196         * lib/fts.c (fts_read): Guard uses of the new member,
24197         parent->fts_n_dirs_remaining, since it's not relevant for
24198         the parent of a directory specified on the command-line.
24199
24200 2009-02-17  James Youngman  <jay@gnu.org>
24201             Bruno Haible  <bruno@clisp.org>
24202
24203         * m4/include_next.m4: Reformulate comment.
24204
24205 2009-02-16  Jim Meyering  <meyering@redhat.com>
24206
24207         fts: add #if guards so that the fts_lgpl module still builds
24208         * lib/fts.c: Guard just-added hash-table-using parts with
24209         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
24210         Reported by Simon Josefsson.
24211
24212 2009-02-15  Bruno Haible  <bruno@clisp.org>
24213
24214         * modules/array-mergesort-tests: New file.
24215         * tests/test-array-mergesort.c: New file.
24216
24217         New module 'array-mergesort'.
24218         * modules/array-mergesort: New file.
24219         * lib/array-mergesort.h: New file.
24220
24221 2009-02-15  Bruno Haible  <bruno@clisp.org>
24222
24223         Fix 2009-02-07 commit.
24224         * lib/gen-uni-tables.c (output_predicate, output_category,
24225         output_combclass, output_bidi_category, output_decimal_digit,
24226         output_digit, output_numeric, output_mirror, output_scripts,
24227         output_ident_category, output_simple_mapping): Fix format directives.
24228         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
24229
24230 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
24231
24232         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
24233         fixes are available from IBM.
24234
24235 2009-02-13  Jim Meyering  <meyering@redhat.com>
24236
24237         fts: arrange not to stat non-directories in more cases
24238         This makes GNU find (when it doesn't need to stat each file)
24239         *much* more efficient at traversing reiserfs file systems.
24240         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
24241         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
24242         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
24243         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
24244         (leaf_optimization_applies): New function.
24245         (LCO_hash, LCO_compare): New helper functions.
24246         (link_count_optimize_ok): New function.
24247         (fts_stat): Initialize new member (if dir).
24248         (fts_read): Decrement parent's fts_n_dirs_remaining count if
24249         we've just stat'ed a directory.  Skip the stat call when possible.
24250         ---
24251         Note this AFS-related exchange:
24252         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
24253         and note find's pioctl call in find/fstype.c.
24254         But that is necessary only if you want to enable the
24255         optimization for AFS, and for now, I don't.
24256
24257         fts: move a function definition "up" (no semantic change)
24258         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
24259         "up" to precede upcoming use of a related function.
24260
24261 2009-02-11  Jim Meyering  <meyering@redhat.com>
24262
24263         fts: correct internal computation of nlinks (optimization-related)
24264         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
24265         whether the current entry is a directory, so don't test it.
24266
24267 2009-02-10  Bruno Haible  <bruno@clisp.org>
24268
24269         Tests for module 'uniwbrk/ulc-wordbreaks'.
24270         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
24271         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
24272         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
24273
24274         Tests for module 'uniwbrk/u32-wordbreaks'.
24275         * modules/uniwbrk/u32-wordbreaks-tests: New file.
24276         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
24277
24278         Tests for module 'uniwbrk/u16-wordbreaks'.
24279         * modules/uniwbrk/u16-wordbreaks-tests: New file.
24280         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
24281
24282         Tests for module 'uniwbrk/u8-wordbreaks'.
24283         * modules/uniwbrk/u8-wordbreaks-tests: New file.
24284         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
24285
24286 2009-02-10  Bruno Haible  <bruno@clisp.org>
24287
24288         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
24289         property.
24290         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
24291         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
24292         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
24293
24294 2009-02-10  Simon Josefsson  <simon@josefsson.org>
24295
24296         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
24297         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
24298
24299 2009-02-10  Bruno Haible  <bruno@clisp.org>
24300
24301         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
24302         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
24303         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
24304         * lib/unilbrk/u8-possible-linebreaks.c: Update.
24305         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
24306         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
24307
24308 2009-02-09  Simon Josefsson  <simon@josefsson.org>
24309
24310         * lib/sockets.h (gl_fd_to_handle): New function.
24311
24312         * tests/test-sockets.c: Call gl_fd_to_handle.
24313
24314 2009-02-09  Bruno Haible  <bruno@clisp.org>
24315
24316         * doc/havelib.texi: Document the conventions on bi-arch systems.
24317
24318 2009-02-08  Bruno Haible  <bruno@clisp.org>
24319
24320         Document the AC_LIB_LINKFLAGS macro.
24321         * doc/havelib.texi: New file, mostly written on 2005-05-24.
24322         * doc/gnulib.texi: Include it.
24323
24324 2009-02-08  Bruno Haible  <bruno@clisp.org>
24325
24326         Fix wrong order of sections, compared to TOC.
24327         * doc/gnulib.texi: Include relocatable-maint.texi after the
24328         "Regular expressions" node, not before.
24329
24330 2009-02-08  Bruno Haible  <bruno@clisp.org>
24331
24332         Tests for module 'unicase/totitle'.
24333         * modules/unicase/totitle-tests: New file.
24334
24335         Tests for module 'unicase/tolower'.
24336         * modules/unicase/tolower-tests: New file.
24337
24338         Tests for module 'unicase/toupper'.
24339         * modules/unicase/toupper-tests: New file.
24340         * tests/unicase/test-mapping-part1.h: New file.
24341         * tests/unicase/test-mapping-part2.h: New file.
24342
24343         New module 'unicase/totitle'.
24344         * modules/unicase/totitle: New file.
24345         * lib/unicase/totitle.c: New file.
24346
24347         New module 'unicase/tolower'.
24348         * modules/unicase/tolower: New file.
24349         * lib/unicase/tolower.c: New file.
24350
24351         New module 'unicase/toupper'.
24352         * modules/unicase/toupper: New file.
24353         * lib/unicase/toupper.c: New file.
24354         * lib/unicase/simple-mapping.h: New file.
24355
24356         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
24357         (mapping_table): New structure.
24358         (output_simple_mapping): New function.
24359         (main): Invoke output_simple_mapping_test and output_simple_mapping.
24360         * modules/gen-uni-tables (Description): Update.
24361         * lib/unicase/toupper.h: New file, automatically generated by
24362         gen-uni-tables.
24363         * lib/unicase/tolower.h: New file, automatically generated by
24364         gen-uni-tables.
24365         * lib/unicase/totitle.h: New file, automatically generated by
24366         gen-uni-tables.
24367         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
24368         gen-uni-tables.
24369         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
24370         gen-uni-tables.
24371         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
24372         gen-uni-tables.
24373
24374         New module 'unicase/base'.
24375         * modules/unicase/base: New file.
24376         * lib/unicase.h: New file.
24377
24378 2009-02-08  Bruno Haible  <bruno@clisp.org>
24379
24380         New module 'uniwbrk/ulc-wordbreaks'.
24381         * modules/uniwbrk/ulc-wordbreaks: New file.
24382         * lib/uniwbrk/ulc-wordbreaks.c: New file.
24383
24384         New module 'uniwbrk/u32-wordbreaks'.
24385         * modules/uniwbrk/u32-wordbreaks: New file.
24386         * lib/uniwbrk/u32-wordbreaks.c: New file.
24387
24388         New module 'uniwbrk/u16-wordbreaks'.
24389         * modules/uniwbrk/u16-wordbreaks: New file.
24390         * lib/uniwbrk/u16-wordbreaks.c: New file.
24391
24392         New module 'uniwbrk/u8-wordbreaks'.
24393         * modules/uniwbrk/u8-wordbreaks: New file.
24394         * lib/uniwbrk/u8-wordbreaks.c: New file.
24395         * lib/uniwbrk/u-wordbreaks.h: New file.
24396
24397         New module 'uniwbrk/table'.
24398         * modules/uniwbrk/table: New file.
24399         * lib/uniwbrk/wbrktable.h: New file.
24400         * lib/uniwbrk/wbrktable.c: New file.
24401
24402         New module 'uniwbrk/wordbreak-property'.
24403         * modules/uniwbrk/wordbreak-property: New file.
24404         * lib/uniwbrk/wordbreak-property.c: New file.
24405
24406         * lib/gen-uni-tables.c (WBP_*): New enum items.
24407         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24408         (unicode_org_wbp): New variable.
24409         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24410         New functions.
24411         (wbp_table): New structure.
24412         (output_wbp, output_wbrk_tables): New functions.
24413         (main): Accept additional argument. Invoke fill_org_wbp,
24414         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24415         output_wbrk_tables.
24416         * modules/gen-uni-tables (Description): Update.
24417         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24418         gen-uni-tables.
24419
24420         New module 'uniwbrk/base'.
24421         * modules/uniwbrk/base: New file.
24422         * lib/uniwbrk.h: New file.
24423
24424 2009-02-08  Bruno Haible  <bruno@clisp.org>
24425
24426         Update to Unicode 5.1.0.
24427         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24428         U+2185..U+2188.
24429         (is_property_default_ignorable_code_point): Don't include characters
24430         of category Cc or Cs and not-a-characters.
24431         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24432         U+0D79, U+109E, U+109F, U+A60C.
24433         * lib/unictype/bidi_of.h: Regenerated.
24434         * lib/unictype/blocks.h: Regenerated.
24435         * lib/unictype/categ_C.h: Regenerated.
24436         * lib/unictype/categ_Cf.h: Regenerated.
24437         * lib/unictype/categ_Cn.h: Regenerated.
24438         * lib/unictype/categ_L.h: Regenerated.
24439         * lib/unictype/categ_Ll.h: Regenerated.
24440         * lib/unictype/categ_Lm.h: Regenerated.
24441         * lib/unictype/categ_Lo.h: Regenerated.
24442         * lib/unictype/categ_Lu.h: Regenerated.
24443         * lib/unictype/categ_M.h: Regenerated.
24444         * lib/unictype/categ_Mc.h: Regenerated.
24445         * lib/unictype/categ_Me.h: Regenerated.
24446         * lib/unictype/categ_Mn.h: Regenerated.
24447         * lib/unictype/categ_N.h: Regenerated.
24448         * lib/unictype/categ_Nd.h: Regenerated.
24449         * lib/unictype/categ_Nl.h: Regenerated.
24450         * lib/unictype/categ_No.h: Regenerated.
24451         * lib/unictype/categ_P.h: Regenerated.
24452         * lib/unictype/categ_Pd.h: Regenerated.
24453         * lib/unictype/categ_Pe.h: Regenerated.
24454         * lib/unictype/categ_Pf.h: Regenerated.
24455         * lib/unictype/categ_Pi.h: Regenerated.
24456         * lib/unictype/categ_Po.h: Regenerated.
24457         * lib/unictype/categ_Ps.h: Regenerated.
24458         * lib/unictype/categ_S.h: Regenerated.
24459         * lib/unictype/categ_Sk.h: Regenerated.
24460         * lib/unictype/categ_Sm.h: Regenerated.
24461         * lib/unictype/categ_So.h: Regenerated.
24462         * lib/unictype/categ_of.h: Regenerated.
24463         * lib/unictype/combining.h: Regenerated.
24464         * lib/unictype/ctype_alnum.h: Regenerated.
24465         * lib/unictype/ctype_alpha.h: Regenerated.
24466         * lib/unictype/ctype_graph.h: Regenerated.
24467         * lib/unictype/ctype_lower.h: Regenerated.
24468         * lib/unictype/ctype_print.h: Regenerated.
24469         * lib/unictype/ctype_punct.h: Regenerated.
24470         * lib/unictype/ctype_upper.h: Regenerated.
24471         * lib/unictype/decdigit.h: Regenerated.
24472         * lib/unictype/digit.h: Regenerated.
24473         * lib/unictype/mirror.h: Regenerated.
24474         * lib/unictype/numeric.h: Regenerated.
24475         * lib/unictype/pr_alphabetic.h: Regenerated.
24476         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24477         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24478         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24479         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24480         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24481         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24482         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24483         * lib/unictype/pr_combining.h: Regenerated.
24484         * lib/unictype/pr_dash.h: Regenerated.
24485         * lib/unictype/pr_decimal_digit.h: Regenerated.
24486         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24487         * lib/unictype/pr_deprecated.h: Regenerated.
24488         * lib/unictype/pr_diacritic.h: Regenerated.
24489         * lib/unictype/pr_extender.h: Regenerated.
24490         * lib/unictype/pr_format_control.h: Regenerated.
24491         * lib/unictype/pr_grapheme_base.h: Regenerated.
24492         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24493         * lib/unictype/pr_grapheme_link.h: Regenerated.
24494         * lib/unictype/pr_id_continue.h: Regenerated.
24495         * lib/unictype/pr_id_start.h: Regenerated.
24496         * lib/unictype/pr_ideographic.h: Regenerated.
24497         * lib/unictype/pr_ignorable_control.h: Regenerated.
24498         * lib/unictype/pr_lowercase.h: Regenerated.
24499         * lib/unictype/pr_math.h: Regenerated.
24500         * lib/unictype/pr_numeric.h: Regenerated.
24501         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24502         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24503         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24504         * lib/unictype/pr_other_id_continue.h: Regenerated.
24505         * lib/unictype/pr_other_lowercase.h: Regenerated.
24506         * lib/unictype/pr_other_math.h: Regenerated.
24507         * lib/unictype/pr_punctuation.h: Regenerated.
24508         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24509         * lib/unictype/pr_soft_dotted.h: Regenerated.
24510         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24511         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24512         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24513         * lib/unictype/pr_uppercase.h: Regenerated.
24514         * lib/unictype/pr_xid_continue.h: Regenerated.
24515         * lib/unictype/pr_xid_start.h: Regenerated.
24516         * lib/unictype/pr_zero_width.h: Regenerated.
24517         * lib/unictype/scripts.h: Regenerated.
24518         * lib/unictype/scripts_byname.gperf: Regenerated.
24519         * lib/unictype/sy_java_ident.h: Regenerated.
24520         * lib/unilbrk/lbrkprop1.h: Regenerated.
24521         * lib/unilbrk/lbrkprop2.h: Regenerated.
24522         * tests/unictype/test-categ_C.c: Regenerated.
24523         * tests/unictype/test-categ_Cf.c: Regenerated.
24524         * tests/unictype/test-categ_Cn.c: Regenerated.
24525         * tests/unictype/test-categ_L.c: Regenerated.
24526         * tests/unictype/test-categ_Ll.c: Regenerated.
24527         * tests/unictype/test-categ_Lm.c: Regenerated.
24528         * tests/unictype/test-categ_Lo.c: Regenerated.
24529         * tests/unictype/test-categ_Lu.c: Regenerated.
24530         * tests/unictype/test-categ_M.c: Regenerated.
24531         * tests/unictype/test-categ_Mc.c: Regenerated.
24532         * tests/unictype/test-categ_Me.c: Regenerated.
24533         * tests/unictype/test-categ_Mn.c: Regenerated.
24534         * tests/unictype/test-categ_N.c: Regenerated.
24535         * tests/unictype/test-categ_Nd.c: Regenerated.
24536         * tests/unictype/test-categ_Nl.c: Regenerated.
24537         * tests/unictype/test-categ_No.c: Regenerated.
24538         * tests/unictype/test-categ_P.c: Regenerated.
24539         * tests/unictype/test-categ_Pd.c: Regenerated.
24540         * tests/unictype/test-categ_Pe.c: Regenerated.
24541         * tests/unictype/test-categ_Pf.c: Regenerated.
24542         * tests/unictype/test-categ_Pi.c: Regenerated.
24543         * tests/unictype/test-categ_Po.c: Regenerated.
24544         * tests/unictype/test-categ_Ps.c: Regenerated.
24545         * tests/unictype/test-categ_S.c: Regenerated.
24546         * tests/unictype/test-categ_Sk.c: Regenerated.
24547         * tests/unictype/test-categ_Sm.c: Regenerated.
24548         * tests/unictype/test-categ_So.c: Regenerated.
24549         * tests/unictype/test-ctype_alnum.c: Regenerated.
24550         * tests/unictype/test-ctype_alpha.c: Regenerated.
24551         * tests/unictype/test-ctype_graph.c: Regenerated.
24552         * tests/unictype/test-ctype_lower.c: Regenerated.
24553         * tests/unictype/test-ctype_print.c: Regenerated.
24554         * tests/unictype/test-ctype_punct.c: Regenerated.
24555         * tests/unictype/test-ctype_upper.c: Regenerated.
24556         * tests/unictype/test-decdigit.h: Regenerated.
24557         * tests/unictype/test-digit.h: Regenerated.
24558         * tests/unictype/test-numeric.h: Regenerated.
24559         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24560         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24561         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24562         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24563         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24564         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24565         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24566         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24567         * tests/unictype/test-pr_combining.c: Regenerated.
24568         * tests/unictype/test-pr_dash.c: Regenerated.
24569         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24570         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24571         * tests/unictype/test-pr_deprecated.c: Regenerated.
24572         * tests/unictype/test-pr_diacritic.c: Regenerated.
24573         * tests/unictype/test-pr_extender.c: Regenerated.
24574         * tests/unictype/test-pr_format_control.c: Regenerated.
24575         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24576         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24577         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24578         * tests/unictype/test-pr_id_continue.c: Regenerated.
24579         * tests/unictype/test-pr_id_start.c: Regenerated.
24580         * tests/unictype/test-pr_ideographic.c: Regenerated.
24581         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24582         * tests/unictype/test-pr_lowercase.c: Regenerated.
24583         * tests/unictype/test-pr_math.c: Regenerated.
24584         * tests/unictype/test-pr_numeric.c: Regenerated.
24585         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24586         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24587         Regenerated.
24588         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24589         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24590         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24591         * tests/unictype/test-pr_other_math.c: Regenerated.
24592         * tests/unictype/test-pr_punctuation.c: Regenerated.
24593         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24594         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24595         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24596         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24597         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24598         * tests/unictype/test-pr_uppercase.c: Regenerated.
24599         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24600         * tests/unictype/test-pr_xid_start.c: Regenerated.
24601         * tests/unictype/test-pr_zero_width.c: Regenerated.
24602
24603         Update to Unicode 5.1.0.
24604         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24605         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24606         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24607         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24608         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24609         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24610         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24611         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24612         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24613         (nonspacing_table_ind): Update.
24614         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24615
24616         Update to Unicode 5.1.0.
24617         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24618         code transform.
24619         * lib/uniname/uniname.c (unicode_character_name,
24620         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24621         * lib/uniname/uninames.h: Regenerated.
24622         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24623
24624 2009-02-07  Bruno Haible  <bruno@clisp.org>
24625
24626         Merge gen-ctype and gen-lbrk into a single program.
24627         * lib/gen-uni-tables.c: New file, incorporating
24628         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24629         Add directory prefixes to the names of the generated files.
24630         * lib/unictype/gen-ctype.c: Remove file.
24631         * lib/unilbrk/gen-lbrk.c: Remove file.
24632         * modules/gen-uni-tables: New file.
24633         * modules/unictype/gen-ctype: Remove file.
24634         * modules/unilbrk/gen-lbrk: Remove file.
24635
24636 2009-02-07  Bruno Haible  <bruno@clisp.org>
24637
24638         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24639
24640         New module 'unistr/u32-strcoll'.
24641         * modules/unistr/u32-strcoll: New file.
24642         * lib/unistr/u32-strcoll.c: New file.
24643
24644         New module 'unistr/u16-strcoll'.
24645         * modules/unistr/u16-strcoll: New file.
24646         * lib/unistr/u16-strcoll.c: New file.
24647
24648         New module 'unistr/u8-strcoll'.
24649         * modules/unistr/u8-strcoll: New file.
24650         * lib/unistr/u8-strcoll.c: New file.
24651         * lib/unistr/u-strcoll.h: New file.
24652
24653 2009-02-07  Bruno Haible  <bruno@clisp.org>
24654
24655         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24656         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24657         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24658         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24659         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24660         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24661
24662 2009-02-07  Bruno Haible  <bruno@clisp.org>
24663
24664         Make 64-bit clean.
24665         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24666         output_combclass, output_bidi_category, output_decimal_digit,
24667         output_digit, output_numeric, output_mirror, output_scripts,
24668         output_ident_category): Use proper width specifier in format strings.
24669
24670 2009-02-07  Bruno Haible  <bruno@clisp.org>
24671
24672         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24673         failure behaviour.
24674
24675 2009-02-07  Jim Meyering  <meyering@redhat.com>
24676
24677         regex: avoid compilation failure with upcoming gcc-4.4
24678         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
24679         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
24680         "... error: integer overflow in preprocessor expression".
24681
24682 2009-02-05  Ben Pfaff  <blp@gnu.org>
24683
24684         Fix link errors on Windows when close module is used.
24685         * modules/close: Add $(LIB_CLOSE) to Link section.
24686         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
24687         $(LIB_CLOSE) on Windows.
24688
24689 2009-02-05  Jim Meyering  <meyering@redhat.com>
24690
24691         still avoid unused-parameter warnings, but do it cleanly
24692         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
24693         (get_fs_usage): Cast to void instead.
24694         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
24695         (dev_from_mount_options, read_file_system_list): Cast to void.
24696         Prompted by Bruno Haible.
24697
24698 2009-02-04  Jim Meyering  <meyering@redhat.com>
24699
24700         fsusage.c: correct copyright year
24701         * lib/fsusage.c: Reflect year in which the change is pushed into
24702
24703         avoid misc. warnings
24704         * lib/fsusage.c (UNUSED_PARAM): Define.
24705         (get_fs_usage): Mark parameter "disk" as unused.
24706         * lib/getugroups.c (getgrent): Use "void" in prototype.
24707         * lib/mountlist.c: Mark unused parameters.
24708         (read_file_system_list): Declare a local with "const".
24709         * lib/nanosleep.c (getnow): Declare static.
24710         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
24711
24712         dirfd: set errno upon failure
24713         * lib/dirfd.c: Include <errno.h>.
24714         Set errno to ENOTSUP when returning -1.
24715         * modules/dirfd (Depends-on): Add errno.
24716         Suggested by John Kodis <kodis@comcast.net>.
24717
24718 2009-02-01  Bruno Haible  <bruno@clisp.org>
24719
24720         Don't assume sizeof (long) >= sizeof (void *).
24721         * lib/memcmp.c: Include stdint.h.
24722         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
24723         srcp2 to 'const byte *'.
24724         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
24725         types to uintptr_t.
24726         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
24727         * modules/memcmp (Depends-on): Add stdint.
24728         Reported by Ozkan Sezer <sezeroz@gmail.com>.
24729
24730 2009-01-30  Eric Blake  <ebb9@byu.net>
24731
24732         fix more require-before-expand issues
24733         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
24734         expand, AC_PROG_AWK.
24735         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
24736
24737 2009-01-28  Eric Blake  <ebb9@byu.net>
24738
24739         version-etc: use consistent URL formatting
24740         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
24741         Improve formatting.  Use fputs for string without %.
24742
24743 2009-01-28  Jim Meyering  <meyering@redhat.com>
24744
24745         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
24746         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
24747         "underquoted definition of NAME" from autoconf-2.59.
24748
24749 2009-01-28  Bruno Haible  <bruno@clisp.org>
24750
24751         * doc/gnulib.texi: Add "Obsolete modules" to index.
24752
24753 2009-01-28  Jim Meyering  <meyering@redhat.com>
24754
24755         useless-if-before-free: recognize more variants
24756         * build-aux/useless-if-before-free: Also recognize e.g.,
24757         if (NULL != p) free (p);
24758
24759 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
24760
24761         test-getaddrinfo: skip (don't fail) this test when there's no network
24762         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
24763         on the presumption that it means you lack network access.
24764
24765 2009-01-26  Jim Meyering  <meyering@redhat.com>
24766
24767         fflush: avoid warnings on modern systems
24768         * lib/fflush.c (rpl_fflush): Move declarations of locals,
24769         pos and result, into scopes where they're used.
24770
24771 2009-01-26  Eric Blake  <ebb9@byu.net>
24772
24773         Silence warning reintroduced by recent extensions patch.
24774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
24775         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
24776         autoconf.
24777
24778         Backport improved autoconf semantics of AC_DEFUN_ONCE.
24779         * m4/00gnulib.m4: New file.
24780         * gnulib-tool (func_get_filelist): Always use it.
24781         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
24782         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
24783
24784 2009-01-25  Bruno Haible  <bruno@clisp.org>
24785
24786         Make test-quotearg work on MacOS X and AIX.
24787         * tests/test-quotearg.sh: New file.
24788         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
24789         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
24790         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
24791         include <libintl.h>.
24792         (fake_locale): Remove variable.
24793         (gettext, dgettext, dcgettext): Remove functions.
24794         (main): Instead of setting a fake locale, set a real locale. Call
24795         textdomain and bindtextdomain.
24796         * modules/quotearg-tests (Files): Add the new files.
24797         (Depends-on): Add gettext, setenv, unsetenv.
24798         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24799         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
24800         Augment TESTS_ENVIRONMENT.
24801
24802 2009-01-25  Bruno Haible  <bruno@clisp.org>
24803
24804         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
24805         fr_FR.ISO8859-1 locale on MacOS X.
24806         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
24807         ja_JP.eucJP locale on MacOS X.
24808         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
24809         zh_CN.GB18030 locale on MacOS X.
24810
24811 2009-01-25  Bruno Haible  <bruno@clisp.org>
24812
24813         Avoid link errors on MacOS X 10.3.
24814         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
24815         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24816
24817 2009-01-25  Bruno Haible  <bruno@clisp.org>
24818
24819         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24820         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
24821         * modules/pipe (Files): Remove m4/posix_spawn.m4.
24822         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24823         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
24824         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24825         posix_spawnattr_init, posix_spawnattr_setsigmask,
24826         posix_spawnattr_setflags, posix_spawnattr_destroy.
24827
24828         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24829         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
24830         * modules/execute (Files): Remove m4/posix_spawn.m4.
24831         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24832         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24833         posix_spawnattr_init, posix_spawnattr_setsigmask,
24834         posix_spawnattr_setflags, posix_spawnattr_destroy.
24835
24836 2009-01-25  Bruno Haible  <bruno@clisp.org>
24837
24838         * lib/glthread/threadlib.c: Include <stdlib.h>.
24839
24840 2009-01-25  Bruno Haible  <bruno@clisp.org>
24841
24842         * lib/glthread/threadlib.c (dummy): New declaration.
24843
24844 2009-01-25  Bruno Haible  <bruno@clisp.org>
24845
24846         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24847         multibyte characters also for the GB18030 encoding. Don't crash when
24848         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24849
24850 2009-01-25  Bruno Haible  <bruno@clisp.org>
24851
24852         Avoid redefining 'struct random_data' on OSF/1 5.1.
24853         * lib/stdlib.in.h: Include <random.h> if it exists.
24854         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24855         HAVE_RANDOM_H. Include <random.h> when testing whether
24856         'struct random_data' exists.
24857         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24858
24859 2009-01-25  Bruno Haible  <bruno@clisp.org>
24860
24861         Don't install charset.alias on MacOS X >= 10.3.
24862         * lib/localcharset.c (DARWIN7): New macro.
24863         (get_charset_aliases): Hardcode the result for Darwin7.
24864         * modules/localcharset (install-exec-local): Don't install
24865         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24866
24867 2009-01-25  Bruno Haible  <bruno@clisp.org>
24868
24869         Don't install charset.alias on mingw and Cygwin.
24870         * modules/localcharset (install-exec-local): Don't install
24871         charset.alias on mingw and Cygwin, if the file does not yet exist.
24872         The result for these platforms is hardcoded in localcharset.c.
24873
24874 2009-01-25  Bruno Haible  <bruno@clisp.org>
24875
24876         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24877         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24878         before requiring AC_USE_SYSTEM_EXTENSIONS.
24879
24880 2009-01-25  Jim Meyering  <meyering@redhat.com>
24881
24882         c-strtod: avoid warnings
24883         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24884         "assignment discards qualifiers from pointer target type" warnings.
24885
24886 2009-01-24  Bruno Haible  <bruno@clisp.org>
24887
24888         Add support for non-UTF-8 locales on MacOS X.
24889         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24890         canonical encodings. For Darwin 7 and newer, don't map traditional
24891         encodings to UTF-8.
24892         Reported by Vincent Lefevre <vincent@vinc17.org>
24893         at <http://savannah.gnu.org/bugs/?25235>.
24894
24895 2009-01-24  Bruno Haible  <bruno@clisp.org>
24896
24897         * doc/gnulib.texi (Obsolete modules): New section.
24898         Reported by Mike Frysinger <vapier@gentoo.org>.
24899
24900 2009-01-24  Bruno Haible  <bruno@clisp.org>
24901
24902         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24903         (%.dvi): New rule.
24904
24905 2009-01-24  Bruno Haible  <bruno@clisp.org>
24906
24907         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24908         Reported by Eric Blake.
24909
24910 2009-01-24  Bruno Haible  <bruno@clisp.org>
24911
24912         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24913         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24914         Reported by Gary V. Vaughan <gary@gnu.org>.
24915
24916 2009-01-24  Bruno Haible  <bruno@clisp.org>
24917
24918         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24919
24920 2009-01-23  Bruno Haible  <bruno@clisp.org>
24921
24922         Make c-strtod, c-strtold usable in libraries.
24923         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24924         (C_STRTOD): Call strdup instead of xstrdup.
24925         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24926         * modules/c-strtold (Depends-on): Likewise.
24927         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24928         * NEWS: Mention the change.
24929         Reported by Michael Gold <mgold@ncf.ca>.
24930
24931 2009-01-23  Jim Meyering  <meyering@redhat.com>
24932
24933         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24934         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24935         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24936
24937 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24938
24939         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24940         GNU CoreUtils.
24941         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24942         * modules/version-etc (Description): Update.
24943
24944 2009-01-22  Bruno Haible  <bruno@clisp.org>
24945
24946         Cache the C locale object.
24947         * lib/c-strtod.c (c_locale_cache): New variable.
24948         (c_locale): New function.
24949         (C_STRTOD): Use it, and don't call freelocale.
24950         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24951         Suggested by Paolo Bonzini.
24952
24953 2009-01-21  Bruno Haible  <bruno@clisp.org>
24954
24955         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24956         conditions other than overflow.
24957
24958 2009-01-21  Bruno Haible  <bruno@clisp.org>
24959
24960         * lib/c-strtod.c: Include errno.h.
24961         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24962         value from STRTOD_L and STRTOD.
24963
24964 2009-01-21  Bruno Haible  <bruno@clisp.org>
24965         and Jim Meyering  <meyering@redhat.com>
24966
24967         nanosleep: skip configure test (fail it) for apple universal builds
24968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24969         universal builds, assume that nanosleep does not work.
24970         * modules/nanosleep (Depends-on): Add multiarch.
24971
24972         mktime: skip configure test (fail it) for apple universal builds
24973         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24974         universal builds, assume that mktime does not work.
24975         * modules/mktime (Depends-on): Add multiarch.
24976
24977 2009-01-21  Eric Blake  <ebb9@byu.net>
24978
24979         multiarch: avoid expand-before-require warning
24980         * modules/multiarch (configure.ac): Require, rather than expand,
24981         gl_MULTIARCH.
24982         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24983         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24984         enforce that all clients require it.  Partial reversion of
24985         2008-12-29 patch.
24986
24987         error: avoid expand-before-require warning
24988         * modules/errno (configure.ac): Require, rather than expand,
24989         gl_HEADER_ERRNO_H.
24990         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24991         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24992         enforce that all clients require it.
24993
24994         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24995         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24996         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24997         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24998
24999 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
25000
25001         Revert:
25002         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25003
25004         regex: do not depend on obsolete modules.
25005         * modules/regex: Remove memcmp and memmove.
25006
25007 2009-01-20  Bruno Haible  <bruno@clisp.org>
25008
25009         Make the 'link' module link on Windows NT 4.
25010         * lib/link.c (_WIN32_WINNT): Don't define.
25011         (CreateHardLinkFuncType): New type.
25012         (CreateHardLinkFunc, initialized): New variables.
25013         (initialize): New function.
25014         (link): Invoke CreateHardLink indirectly through the function pointer.
25015
25016 2009-01-20  Bruno Haible  <bruno@clisp.org>
25017
25018         Fix compilation failure on mingw.
25019         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
25020
25021 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
25022
25023         * doc/c-strtod.texi: Mention a couple of restrictions.
25024
25025 2009-01-20  Jim Meyering  <meyering@redhat.com>
25026
25027         gettimeofday: move more declarations out of functions
25028         * lib/gettimeofday.c: Move extern declarations of tzset and
25029         gmtime out of containing functions.  Prompted by Bruno Haible.
25030
25031 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25032
25033         regex: do not depend on obsolete modules.
25034         * modules/regex: Remove memcmp and memmove.
25035
25036 2009-01-19  Bruno Haible  <bruno@clisp.org>
25037
25038         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25039         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
25040         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25041         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
25042         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
25043
25044 2009-01-19  Bruno Haible  <bruno@clisp.org>
25045
25046         * tests/test-link.c: Include <errno.h>.
25047         (main): Exit with code 77 when a hard link cannot be created due to
25048         the file system.
25049         * tests/test-link.sh: Skip test when a hard link cannot be created due
25050         to the file system.
25051         Suggested by Eric Blake.
25052
25053 2009-01-19  Martin Lambers  <marlam@marlam.de>
25054
25055         * modules/link-tests: New file.
25056         * tests/test-link.sh: New file.
25057         * tests/test-link.c: New file.
25058
25059 2009-01-19  Eric Blake  <ebb9@byu.net>
25060
25061         doc: mention another function added in cygwin 1.7.0
25062         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
25063         Another new function in cygwin 1.7.
25064
25065 2009-01-19  Bruno Haible  <bruno@clisp.org>
25066
25067         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25068         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
25069         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
25070         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25071         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25072         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
25073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25074         * m4/md4.m4 (gl_MD4): Likewise.
25075         * m4/md5.m4 (gl_MD5): Likewise.
25076         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
25077         * m4/sha1.m4 (gl_SHA1): Likewise.
25078         * m4/sha256.m4 (gl_SHA256): Likewise.
25079         * m4/sha512.m4 (gl_SHA512): Likewise.
25080
25081 2009-01-19  Bruno Haible  <bruno@clisp.org>
25082
25083         * modules/uniname/uniname-tests (Depends-on): Add progname.
25084         * tests/uniname/test-uninames.c: Include progname.h.
25085         (main): Call set_program_name.
25086
25087         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
25088         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
25089         (main): Call set_program_name.
25090
25091         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
25092         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
25093         (main): Call set_program_name.
25094
25095         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
25096         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
25097         (main): Call set_program_name.
25098
25099         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
25100         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
25101         (main): Call set_program_name.
25102
25103         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
25104         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
25105         (main): Call set_program_name.
25106
25107         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
25108         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
25109         (main): Call set_program_name.
25110
25111         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
25112         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
25113         (main): Call set_program_name.
25114
25115         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
25116         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
25117         (main): Call set_program_name.
25118
25119 2009-01-19  Eric Blake  <ebb9@byu.net>
25120
25121         test-unistd: test previous patch
25122         * tests/test-unistd.c: Test *_FILENO macros.
25123
25124         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
25125         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25126         Guarantee a definition.
25127         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
25128         * modules/unistd-safer (Depends-on): Add dependency on unistd.
25129         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
25130         * lib/dup-safer.c (STDERR_FILENO): Likewise.
25131         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25132         Likewise.
25133         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
25134         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
25135         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25136         Likewise.
25137         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
25138         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
25139         (STDERR_FILENO): Likewise.
25140         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
25141         (STDERR_FILENO): Likewise.
25142         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
25143         (STDERR_FILENO): Likewise.
25144         Reported by Elbert Pol.
25145
25146 2009-01-19  Eric Blake  <ebb9@byu.net>
25147
25148         doc: mention more functions added in cygwin 1.7.0
25149         * doc/posix-functions/abort.texi (abort): Update wording related
25150         to cygwin.
25151         * doc/posix-functions/daylight.texi (daylight): Likewise.
25152         * doc/posix-functions/optarg.texi (optarg): Likewise.
25153         * doc/posix-functions/optarg.texi (opterr): Likewise.
25154         * doc/posix-functions/optarg.texi (optind): Likewise.
25155         * doc/posix-functions/optarg.texi (optopt): Likewise.
25156         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
25157         worked in 1.5.x, and was withdrawn in 1.7.
25158         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
25159         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
25160         cygwin versions.
25161         * doc/posix-functions/perror.texi (perror): Likewise.
25162         * doc/posix-functions/printf.texi (printf): Likewise.
25163         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
25164         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
25165         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
25166         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
25167         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25168         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
25169         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
25170         Likewise.
25171         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
25172         Likewise.
25173         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
25174         this function.
25175         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
25176         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
25177         Likewise.
25178         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
25179         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
25180         * doc/posix-functions/confstr.texi (confstr): Likewise.
25181         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
25182         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
25183         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
25184         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
25185         * doc/posix-functions/fputws.texi (fputws): Likewise.
25186         * doc/posix-functions/fwide.texi (fwide): Likewise.
25187         * doc/posix-functions/getwc.texi (getwc): Likewise.
25188         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
25189         * doc/posix-functions/putwc.texi (putwc): Likewise.
25190         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
25191         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
25192         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
25193         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
25194         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
25195         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
25196         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
25197         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
25198         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
25199         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
25200         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
25201
25202 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
25203
25204         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
25205         * lib/ioctl.c: Include <sys/ioctl.h>.
25206
25207 2009-01-19  Simon Josefsson  <simon@josefsson.org>
25208
25209         * modules/getdate-tests (Depends-on): Add progname.
25210         * tests/test-getdate.c: Use progname module, to avoid link errors
25211         on non-glibc systems.
25212
25213 2009-01-18  Simon Josefsson  <simon@josefsson.org>
25214
25215         * modules/filenamecat-tests (Depends-on): Add progname.
25216         * modules/fstrcmp-tests (Depends-on): Likewise.
25217
25218         * tests/test-filenamecat.c: Use progname module, to avoid link
25219         errors on non-glibc systems.
25220         * tests/test-fstrcmp.c: Likewise.
25221
25222 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
25223
25224         gettimeofday: avoid warning: nested extern declaration of 'localtime'
25225         * lib/gettimeofday.c: Move extern declaration out of function.
25226
25227 2009-01-18  Bruno Haible  <bruno@clisp.org>
25228
25229         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
25230         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
25231         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
25232
25233 2009-01-18  Bruno Haible  <bruno@clisp.org>
25234
25235         * lib/strftime.c (MEMPCPY): Remove unused macro.
25236         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
25237
25238 2009-01-18  Martin Lambers  <marlam@marlam.de>
25239
25240         New module 'link'.
25241         * lib/unistd.in.h (link): New declaration.
25242         * lib/link.c: New file.
25243         * m4/link.m4: New file.
25244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
25245         HAVE_LINK.
25246         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
25247         * modules/link: New file.
25248         * doc/posix-functions/link.texi: Mention the new module.
25249
25250 2009-01-18  Bruno Haible  <bruno@clisp.org>
25251
25252         * tests/test-avltree_list.c (main): Call set_program_name.
25253         * tests/test-avltree_oset.c (main): Likewise.
25254         * tests/test-obstack-printf.c: Include progname.h.
25255         (main): Call set_program_name.
25256         * tests/test-quotearg.c: Include progname.h.
25257         (main): Call set_program_name.
25258         * tests/test-xmemdup0.c: Include progname.h.
25259         (main): Call set_program_name.
25260
25261 2009-01-18  Bruno Haible  <bruno@clisp.org>
25262
25263         New module 'alphasort'.
25264         * lib/dirent.in.h (alphasort): New declaration.
25265         * lib/alphasort.c: New file, from glibc with modifications.
25266         * m4/alphasort.m4: New file.
25267         * modules/alphasort: New file.
25268         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
25269         HAVE_ALPHASORT.
25270         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
25271         HAVE_ALPHASORT.
25272         * doc/posix-functions/alphasort.texi: Mention the new module and the
25273         portability problems.
25274
25275 2009-01-18  Bruno Haible  <bruno@clisp.org>
25276
25277         New module 'scandir'.
25278         * lib/dirent.in.h (scandir): New declaration.
25279         * lib/scandir.c: New file, from glibc with modifications.
25280         * m4/scandir.m4: New file.
25281         * modules/scandir: New file.
25282         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
25283         HAVE_SCANDIR.
25284         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
25285         HAVE_SCANDIR.
25286         * doc/posix-functions/scandir.texi: Mention the new module and the
25287         portability problems.
25288
25289 2009-01-17  Bruno Haible  <bruno@clisp.org>
25290
25291         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
25292         Update documentation.
25293         (func_remove_suffix): Escape all dots in the suffix. Update
25294         documentation.
25295         (func_filter_filelist): Update documentation.
25296         Reported by Ralf Wildenhues.
25297
25298 2009-01-17  Bruno Haible  <bruno@clisp.org>
25299
25300         * modules/dprintf-posix-tests: New file.
25301         * tests/test-dprintf-posix.sh: New file.
25302         * tests/test-dprintf-posix.c: New file.
25303
25304         New modules 'dprintf', 'dprintf-posix'.
25305         * lib/stdio.in.h (dprintf): New declaration.
25306         * lib/dprintf.c: New file.
25307         * m4/dprintf.m4: New file.
25308         * m4/dprintf-posix.m4: New file.
25309         * modules/dprintf: New file.
25310         * modules/dprintf-posix: New file.
25311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
25312         HAVE_DPRINTF, REPLACE_DPRINTF.
25313         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
25314         HAVE_DPRINTF, REPLACE_DPRINTF.
25315         * doc/posix-functions/dprintf.texi: Mention the new modules.
25316
25317 2009-01-17  Bruno Haible  <bruno@clisp.org>
25318
25319         * modules/vdprintf-posix-tests: New file.
25320         * tests/test-vdprintf-posix.sh: New file.
25321         * tests/test-vdprintf-posix.c: New file.
25322
25323         New modules 'vdprintf', 'vdprintf-posix'.
25324         * lib/stdio.in.h (vdprintf): New declaration.
25325         * lib/vdprintf.c: New file.
25326         * m4/vdprintf.m4: New file.
25327         * m4/vdprintf-posix.m4: New file.
25328         * modules/vdprintf: New file.
25329         * modules/vdprintf-posix: New file.
25330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
25331         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25332         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
25333         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25334         * doc/posix-functions/vdprintf.texi: Mention the new modules.
25335
25336 2009-01-17  Bruno Haible  <bruno@clisp.org>
25337
25338         Fix replacement of fopen on mingw.
25339         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
25340         mingw.
25341
25342 2009-01-17  Bruno Haible  <bruno@clisp.org>
25343
25344         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
25345         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
25346
25347 2009-01-17  Bruno Haible  <bruno@clisp.org>
25348
25349         Avoid test-fflush2.sh failure on mingw.
25350         * tests/test-fflush2.c: Include binary-io.h.
25351         (main): Put standard input into binary mode.
25352         * modules/fflush-tests (Depends-on): Add binary-io.
25353
25354 2009-01-17  Bruno Haible  <bruno@clisp.org>
25355
25356         * lib/wchar.in.h: In another particular situation, include only the
25357         system's <wchar.h> file.
25358         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
25359         Reported by Albert Chin-A-Young <china@thewrittenword.com>
25360         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
25361
25362 2009-01-17  Bruno Haible  <bruno@clisp.org>
25363
25364         Support for stripping executables in --enable-relocatable.
25365         * build-aux/install-reloc: Expect one more argument, or an environment
25366         variable RELOC_STRIP_PROG. If set, strip the destination program and
25367         its wrapper.
25368         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
25369         RELOC_STRIP_PROG.
25370         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
25371         to set RELOCATABLE_STRIP.
25372         * NEWS: Mention the new Makefile requirement.
25373
25374 2009-01-17  Bruno Haible  <bruno@clisp.org>
25375
25376         * build-aux/install-reloc: Remove debugging information left over by
25377         C compiler on MacOS X.
25378
25379 2009-01-17  Bruno Haible  <bruno@clisp.org>
25380
25381         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
25382         * lib/progreloc.c (find_executable): Fix type of pointer passed to
25383         _NSGetExecutablePath.
25384
25385 2009-01-16  Jim Meyering  <meyering@redhat.com>
25386
25387         strerror: avoid warnings about discarding "const"
25388         * lib/strerror.c (rpl_strerror): Instead of returning a const
25389         string from each and every "case", use a variable, and add a single
25390         cast after the switch.
25391
25392 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
25393
25394         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25395
25396 2009-01-16  Bruno Haible  <bruno@clisp.org>
25397
25398         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25399         array initializer syntax that also works in C++ mode.
25400         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25401
25402 2009-01-16  Jim Meyering  <meyering@redhat.com>
25403
25404         poll: suppress a warning
25405         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25406         to ignore "...unsigned expression < 0 is always false" warnings.
25407
25408 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25409
25410         poll: remove declarations of unused variables
25411         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25412         sockbuf and optlen.
25413
25414 2009-01-15  Bruno Haible  <bruno@clisp.org>
25415
25416         Make fflush-after-ungetc POSIX compliant on BSD systems.
25417         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25418         (clear_ungetc_buffer): Implement also for other systems.
25419         (rpl_fflush): On glibc systems, invoke
25420         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25421         clear_ungetc_buffer after fetching the stream's position, not before.
25422
25423 2009-01-15  Bruno Haible  <bruno@clisp.org>
25424
25425         Make fflush-after-ungetc POSIX compliant on glibc systems.
25426         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25427         after ungetc.
25428         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25429         (rpl_fflush): On glibc systems, simply call the system's fflush
25430         function after clearing the ungetc buffer.
25431         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25432         Instead, lseek only to the end of file, then use the system's fseeko
25433         for the rest. On glibc systems, reset the EOF indicator bit.
25434
25435 2009-01-15  Jim Meyering  <meyering@redhat.com>
25436
25437         openmp.m4: revert quote-adding change, for portability to older autoconf
25438         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25439         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25440         Simon Josefsson noticed the problem when using autoconf-2.61.
25441
25442 2009-01-15  Bruno Haible  <bruno@clisp.org>
25443
25444         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25445         * tests/test-fflush2.c (ASSERT): Always fail.
25446         (main): Add two tests for fflush() after ungetc(), taking into account
25447         the Austin Group's clarification.
25448         Suggested by Eric Blake.
25449
25450 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25451
25452         mktime.m4: remove K&R-style function prototypes
25453         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25454         for the Sun C++ compiler.
25455
25456 2009-01-14  Bruno Haible  <bruno@clisp.org>
25457
25458         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25459         while including <wchar.h>.
25460         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25461         the system's <wchar.h> file.
25462         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25463
25464 2009-01-14  Bruno Haible  <bruno@clisp.org>
25465
25466         * m4/csharp.m4: Don't mention gettext on the serial number line.
25467         * m4/csharpexec.m4: Likewise.
25468         * m4/eaccess.m4: Likewise.
25469         * m4/javaexec.m4: Likewise.
25470         * m4/sig_atomic_t.m4: Likewise.
25471         * m4/tmpdir.m4: Likewise.
25472         * m4/intldir.m4: Bump gettext version.
25473         * m4/lib-ld.m4: Likewise.
25474
25475 2009-01-14  Bruno Haible  <bruno@clisp.org>
25476
25477         * lib/progname.c (set_program_name): Add more comments.
25478         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25479
25480 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25481
25482         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25483         were sys/stat.h does not define it.
25484
25485 2009-01-14  Jim Meyering  <meyering@redhat.com>
25486
25487         many *.m4 files: improve m4 quoting
25488         99% of this change was performed by running the following commands:
25489         git ls-files | grep '\.m4$' | xargs perl -pi \
25490           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25491           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25492           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25493           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25494         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25495         The remainder were to add Copyright dates, increment serial numbers,
25496         undo some changes in comments, exclude m4/intl.m4, and add quotes
25497         around the "1" in ",1" where the unusual spacing prohibited the
25498         above regexps from doing the job.  For more details, see
25499         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25500         * m4/acl.m4: Modified.
25501         * m4/afs.m4: Likewise.
25502         * m4/alloca.m4: Likewise.
25503         * m4/argp.m4: Likewise.
25504         * m4/argz.m4: Likewise.
25505         * m4/atexit.m4: Likewise.
25506         * m4/bison-i18n.m4: Likewise.
25507         * m4/bison.m4: Likewise.
25508         * m4/byteswap.m4: Likewise.
25509         * m4/c-stack.m4: Likewise.
25510         * m4/c-strtod.m4: Likewise.
25511         * m4/calloc.m4: Likewise.
25512         * m4/canonicalize-lgpl.m4: Likewise.
25513         * m4/chown.m4: Likewise.
25514         * m4/clock_time.m4: Likewise.
25515         * m4/codeset.m4: Likewise.
25516         * m4/copy-file.m4: Likewise.
25517         * m4/csharp.m4: Likewise.
25518         * m4/csharpcomp.m4: Likewise.
25519         * m4/csharpexec.m4: Likewise.
25520         * m4/d-ino.m4: Likewise.
25521         * m4/d-type.m4: Likewise.
25522         * m4/dirfd.m4: Likewise.
25523         * m4/double-slash-root.m4: Likewise.
25524         * m4/eaccess.m4: Likewise.
25525         * m4/eealloc.m4: Likewise.
25526         * m4/environ.m4: Likewise.
25527         * m4/errno_h.m4: Likewise.
25528         * m4/euidaccess.m4: Likewise.
25529         * m4/execute.m4: Likewise.
25530         * m4/fatal-signal.m4: Likewise.
25531         * m4/fchdir.m4: Likewise.
25532         * m4/fcntl_h.m4: Likewise.
25533         * m4/fileblocks.m4: Likewise.
25534         * m4/filenamecat.m4: Likewise.
25535         * m4/findprog.m4: Likewise.
25536         * m4/flexmember.m4: Likewise.
25537         * m4/fnmatch.m4: Likewise.
25538         * m4/fopen.m4: Likewise.
25539         * m4/fpending.m4: Likewise.
25540         * m4/fprintf-posix.m4: Likewise.
25541         * m4/free.m4: Likewise.
25542         * m4/frexp.m4: Likewise.
25543         * m4/frexpl.m4: Likewise.
25544         * m4/fsusage.m4: Likewise.
25545         * m4/ftruncate.m4: Likewise.
25546         * m4/gc-camellia.m4: Likewise.
25547         * m4/gc-random.m4: Likewise.
25548         * m4/gc.m4: Likewise.
25549         * m4/getaddrinfo.m4: Likewise.
25550         * m4/getcwd-abort-bug.m4: Likewise.
25551         * m4/getcwd-path-max.m4: Likewise.
25552         * m4/getdate.m4: Likewise.
25553         * m4/getdomainname.m4: Likewise.
25554         * m4/getgroups.m4: Likewise.
25555         * m4/gethostname.m4: Likewise.
25556         * m4/gethrxtime.m4: Likewise.
25557         * m4/getline.m4: Likewise.
25558         * m4/getloadavg.m4: Likewise.
25559         * m4/getndelim2.m4: Likewise.
25560         * m4/getpass.m4: Likewise.
25561         * m4/gettext.m4: Likewise.
25562         * m4/gettime.m4: Likewise.
25563         * m4/gettimeofday.m4: Likewise.
25564         * m4/gnulib-common.m4: Likewise.
25565         * m4/group-member.m4: Likewise.
25566         * m4/host-os.m4: Likewise.
25567         * m4/iconv.m4: Likewise.
25568         * m4/iconv_open.m4: Likewise.
25569         * m4/inet_ntop.m4: Likewise.
25570         * m4/inet_pton.m4: Likewise.
25571         * m4/inline.m4: Likewise.
25572         * m4/intldir.m4: Likewise.
25573         * m4/intlmacosx.m4: Likewise.
25574         * m4/intmax.m4: Likewise.
25575         * m4/intmax_t.m4: Likewise.
25576         * m4/inttypes.m4: Likewise.
25577         * m4/inttypes_h.m4: Likewise.
25578         * m4/inttypes-pri.m4: Likewise.
25579         * m4/isapipe.m4: Likewise.
25580         * m4/isnand.m4: Likewise.
25581         * m4/isnanf.m4: Likewise.
25582         * m4/isnanl.m4: Likewise.
25583         * m4/javacomp.m4: Likewise.
25584         * m4/javaexec.m4: Likewise.
25585         * m4/jm-winsz1.m4: Likewise.
25586         * m4/jm-winsz2.m4: Likewise.
25587         * m4/lchown.m4: Likewise.
25588         * m4/lcmessage.m4: Likewise.
25589         * m4/ldexpl.m4: Likewise.
25590         * m4/lib-ld.m4: Likewise.
25591         * m4/lib-link.m4: Likewise.
25592         * m4/libsigsegv.m4: Likewise.
25593         * m4/link-follow.m4: Likewise.
25594         * m4/localcharset.m4: Likewise.
25595         * m4/locale-fr.m4: Likewise.
25596         * m4/locale-ja.m4: Likewise.
25597         * m4/locale-tr.m4: Likewise.
25598         * m4/locale-zh.m4: Likewise.
25599         * m4/lock.m4: Likewise.
25600         * m4/longlong.m4: Likewise.
25601         * m4/ls-mntd-fs.m4: Likewise.
25602         * m4/lstat.m4: Likewise.
25603         * m4/malloc.m4: Likewise.
25604         * m4/mathl.m4: Likewise.
25605         * m4/mbrtowc.m4: Likewise.
25606         * m4/mbstate_t.m4: Likewise.
25607         * m4/mbswidth.m4: Likewise.
25608         * m4/memchr.m4: Likewise.
25609         * m4/memcmp.m4: Likewise.
25610         * m4/memcpy.m4: Likewise.
25611         * m4/memmem.m4: Likewise.
25612         * m4/memmove.m4: Likewise.
25613         * m4/mempcpy.m4: Likewise.
25614         * m4/memrchr.m4: Likewise.
25615         * m4/memset.m4: Likewise.
25616         * m4/minmax.m4: Likewise.
25617         * m4/mkdir-slash.m4: Likewise.
25618         * m4/mkdtemp.m4: Likewise.
25619         * m4/mktime.m4: Likewise.
25620         * m4/mmap-anon.m4: Likewise.
25621         * m4/mountlist.m4: Likewise.
25622         * m4/nanosleep.m4: Likewise.
25623         * m4/nls.m4: Likewise.
25624         * m4/nocrash.m4: Likewise.
25625         * m4/open.m4: Likewise.
25626         * m4/openat.m4: Likewise.
25627         * m4/openmp.m4: Likewise.
25628         * m4/pathmax.m4: Likewise.
25629         * m4/perl.m4: Likewise.
25630         * m4/physmem.m4: Likewise.
25631         * m4/pipe.m4: Likewise.
25632         * m4/po.m4: Likewise.
25633         * m4/poll.m4: Likewise.
25634         * m4/posixtm.m4: Likewise.
25635         * m4/posixver.m4: Likewise.
25636         * m4/printf-frexp.m4: Likewise.
25637         * m4/printf-frexpl.m4: Likewise.
25638         * m4/printf-posix.m4: Likewise.
25639         * m4/printf-posix-rpl.m4: Likewise.
25640         * m4/printf.m4: Likewise.
25641         * m4/progtest.m4: Likewise.
25642         * m4/putenv.m4: Likewise.
25643         * m4/readline.m4: Likewise.
25644         * m4/readlink.m4: Likewise.
25645         * m4/readutmp.m4: Likewise.
25646         * m4/realloc.m4: Likewise.
25647         * m4/regex.m4: Likewise.
25648         * m4/relocatable.m4: Likewise.
25649         * m4/relocatable-lib.m4: Likewise.
25650         * m4/rename-dest-slash.m4: Likewise.
25651         * m4/rename.m4: Likewise.
25652         * m4/rmdir-errno.m4: Likewise.
25653         * m4/rmdir.m4: Likewise.
25654         * m4/roundf.m4: Likewise.
25655         * m4/roundl.m4: Likewise.
25656         * m4/rpmatch.m4: Likewise.
25657         * m4/save-cwd.m4: Likewise.
25658         * m4/selinux-selinux-h.m4: Likewise.
25659         * m4/setenv.m4: Likewise.
25660         * m4/settime.m4: Likewise.
25661         * m4/sig2str.m4: Likewise.
25662         * m4/sig_atomic_t.m4: Likewise.
25663         * m4/signalblocking.m4: Likewise.
25664         * m4/signbit.m4: Likewise.
25665         * m4/sigpipe.m4: Likewise.
25666         * m4/sockets.m4: Likewise.
25667         * m4/sockpfaf.m4: Likewise.
25668         * m4/st_dm_mode.m4: Likewise.
25669         * m4/stat-time.m4: Likewise.
25670         * m4/stdbool.m4: Likewise.
25671         * m4/stdint.m4: Likewise.
25672         * m4/stdint_h.m4: Likewise.
25673         * m4/stpcpy.m4: Likewise.
25674         * m4/stpncpy.m4: Likewise.
25675         * m4/strcase.m4: Likewise.
25676         * m4/strchrnul.m4: Likewise.
25677         * m4/strcspn.m4: Likewise.
25678         * m4/strdup.m4: Likewise.
25679         * m4/strftime.m4: Likewise.
25680         * m4/strndup.m4: Likewise.
25681         * m4/strnlen.m4: Likewise.
25682         * m4/strpbrk.m4: Likewise.
25683         * m4/strptime.m4: Likewise.
25684         * m4/strsep.m4: Likewise.
25685         * m4/strtod.m4: Likewise.
25686         * m4/strtoimax.m4: Likewise.
25687         * m4/strtok_r.m4: Likewise.
25688         * m4/strtol.m4: Likewise.
25689         * m4/strtoll.m4: Likewise.
25690         * m4/strtoul.m4: Likewise.
25691         * m4/strtoull.m4: Likewise.
25692         * m4/strtoumax.m4: Likewise.
25693         * m4/strverscmp.m4: Likewise.
25694         * m4/threadlib.m4: Likewise.
25695         * m4/timegm.m4: Likewise.
25696         * m4/tm_gmtoff.m4: Likewise.
25697         * m4/tmpdir.m4: Likewise.
25698         * m4/tmpfile.m4: Likewise.
25699         * m4/tzset.m4: Likewise.
25700         * m4/uintmax_t.m4: Likewise.
25701         * m4/unlinkdir.m4: Likewise.
25702         * m4/unlocked-io.m4: Likewise.
25703         * m4/uptime.m4: Likewise.
25704         * m4/userspec.m4: Likewise.
25705         * m4/utimbuf.m4: Likewise.
25706         * m4/utime.m4: Likewise.
25707         * m4/utimes-null.m4: Likewise.
25708         * m4/utimes.m4: Likewise.
25709         * m4/vararrays.m4: Likewise.
25710         * m4/vasnprintf.m4: Likewise.
25711         * m4/vfprintf-posix.m4: Likewise.
25712         * m4/vprintf-posix.m4: Likewise.
25713         * m4/wait-process.m4: Likewise.
25714         * m4/wchar_t.m4: Likewise.
25715         * m4/wint_t.m4: Likewise.
25716         * m4/write-any-file.m4: Likewise.
25717         * m4/yield.m4: Likewise.
25718
25719 2009-01-13  Bruno Haible  <bruno@clisp.org>
25720
25721         Avoid test-copy-file.sh failures when ACL support insufficient.
25722         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
25723         TESTS_ENVIRONMENT.
25724         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
25725         Reported by Jim Meyering.
25726
25727 2009-01-13  Bruno Haible  <bruno@clisp.org>
25728
25729         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
25730         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
25731         * modules/unistdio/u8-printf-parse (Files): Likewise.
25732         * modules/unistdio/u32-printf-parse (Files): Likewise.
25733         * modules/unistdio/ulc-printf-parse (Files): Likewise.
25734
25735 2009-01-13  Simon Josefsson  <simon@josefsson.org>
25736
25737         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
25738         and m4/inttypes_h.m4 too.
25739
25740 2009-01-12  Eric Blake  <ebb9@byu.net>
25741
25742         tests: IRIX 6.2 cc can't compile -0.0 into .data
25743         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
25744         rather than at compile-time.
25745         * tests/test-floorl.c (minus_zero): Likewise.
25746         * tests/test-frexpl.c (minus_zero): Likewise.
25747         * tests/test-isnan.c (minus_zerol): Likewise.
25748         * tests/test-isnanl.h (minus_zero): Likewise.
25749         * tests/test-ldexpl.c (minus_zero): Likewise.
25750         * tests/test-roundl.c (minus_zero): Likewise.
25751         * tests/test-signbit.c (minus_zerol): Likewise.
25752         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25753         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25754         * tests/test-truncl.c (minus_zero): Likewise.
25755         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25756         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25757         Reported by Tom G. Christensen and Nelson H. F. Beebe.
25758
25759 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25760
25761         regex: fix glibc bug 9697
25762         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
25763         handling.
25764
25765 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25766
25767         regex: fix glibc bug 697
25768         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
25769         being NULL also if there are no backreferences.
25770
25771 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25772
25773         regex: merge glibc changes
25774         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25775         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
25776         re_string_skip_chars, re_string_reconstruct): Likewise.
25777         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
25778
25779 2009-01-07  Jim Meyering  <meyering@redhat.com>
25780
25781         poll: filter through cppi
25782         * lib/poll.c: Indent cpp directives to reflect nesting.
25783
25784 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
25785
25786         poll: don't return uninitialized
25787         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
25788
25789 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
25790
25791         avoid compile failure on AIX 6.1
25792         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
25793         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
25794
25795 2009-01-04  Jim Meyering  <meyering@redhat.com>
25796
25797         remove duplicate inclusion of <stdio.h>
25798         * tests/test-fprintf-posix.c: Likewise.
25799         * tests/test-printf-posix.c: Likewise.
25800         * tests/test-snprintf-posix.c: Likewise.
25801         * tests/test-sprintf-posix.c: Likewise.
25802         * tests/test-vasprintf-posix.c: Likewise.
25803         * tests/test-vfprintf-posix.c: Likewise.
25804         * tests/test-vprintf-posix.c: Likewise.
25805         * tests/test-vsnprintf-posix.c: Likewise.
25806         * tests/test-vsprintf-posix.c: Likewise.
25807
25808 2009-01-03  Jim Meyering  <meyering@redhat.com>
25809
25810         gnulib-tool: fix sed-based filtering
25811         * gnulib-tool (func_filter_filelist): Remove extra backslash
25812         in sed_fff_filter definition.
25813
25814 2009-01-02  Jim Meyering  <meyering@redhat.com>
25815
25816         strftime: avoid compilation failure on Solaris 2.6
25817         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
25818         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
25819         Don't #define mbrlen or mbsinit, since now they're guaranteed to
25820         be available.  Reported by Tom G. Christensen.  Details in
25821         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
25822
25823 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25824             Bruno Haible  <bruno@clisp.org>
25825
25826         Speed up gnulib-tool by doing more string processing through shell
25827         built-ins.
25828         * gnulib-tool (fast_func_append): New variable.
25829         (func_remove_prefix, func_remove_suffix): New functions.
25830         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
25831         (func_filter_filelist): New function.
25832         (func_get_dependencies): Use func_remove_suffix instead of sed.
25833         (func_get_automake_snippet): Use func_filter_filelist instead of a
25834         subshell and sed invocation.
25835
25836 2009-01-01  Bruno Haible  <bruno@clisp.org>
25837
25838         Fix a security bug.
25839         * gnulib-tool (func_import, import, update): Don't allow the characters
25840         '"', '$', '`', '\' in macro arguments that become part of commands that
25841         are evaluated.
25842
25843 2009-01-01  Bruno Haible  <bruno@clisp.org>
25844
25845         * gnulib-tool (func_reset_sigpipe): Add more comments.
25846
25847 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25848
25849         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25850         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25851         already know the answer.
25852
25853 2009-01-01  Jim Meyering  <meyering@redhat.com>
25854
25855         * lib/version-etc.c (version_etc_va): Update copyright year.
25856
25857 2008-12-30  Bruno Haible  <bruno@clisp.org>
25858
25859         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25860         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25861         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25862
25863 2008-12-29  Eric Blake  <ebb9@byu.net>
25864
25865         multiarch: avoid autoconf AC_REQUIRE bug
25866         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25867         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25868         2.63 and older.
25869         Reported by Bruno Haible, and analyzed in
25870         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25871
25872 2008-12-29  Bruno Haible  <bruno@clisp.org>
25873
25874         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25875         files in subdirectories correctly.
25876         Reported by Ralf Wildenhues.
25877
25878 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25879
25880         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25881         rather than 'join FILE -', for Solaris join.
25882
25883 2008-12-29  Bruno Haible  <bruno@clisp.org>
25884
25885         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25886         quoting.
25887         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25888         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25889         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25890         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25891         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25892         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25893         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25894         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25895         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25896         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25897         * m4/nls.m4 (AM_NLS): Likewise.
25898         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25899         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25900         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25901         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25902         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25903         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25904         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25905         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25906         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25907         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25908         * m4/xsize.m4 (gl_XSIZE): Likewise.
25909         Suggested by Jim Meyering.
25910
25911 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25912
25913         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25914         * lib/parse-duration.c: use a switch instead of cascading if's.
25915
25916 2008-12-29  Eric Blake  <ebb9@byu.net>
25917
25918         wchar.h: supply WEOF on Irix 5.3
25919         * lib/wchar.in.h (wint_t): Also supply WEOF.
25920         * lib/wctype.in.h (wint_t): Likewise.
25921         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25922         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25923         Reported by Tom G. Christensen.
25924
25925 2008-12-26  Bruno Haible  <bruno@clisp.org>
25926
25927         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25928         i486, i586, i686.
25929
25930 2008-12-26  Bruno Haible  <bruno@clisp.org>
25931
25932         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25933
25934 2008-12-26  Bruno Haible  <bruno@clisp.org>
25935
25936         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25937         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25938         not __STDC_CONSTANT_MACROS.
25939         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25940
25941 2008-12-25  Bruno Haible  <bruno@clisp.org>
25942
25943         Add support for universal builds to vasnprintf.
25944         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25945         universal builds, guess no.
25946         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25947         * modules/vasprintf-posix (Depends-on): Likewise.
25948         * modules/fprintf-posix (Depends-on): Likewise.
25949         * modules/vfprintf-posix (Depends-on): Likewise.
25950         * modules/snprintf-posix (Depends-on): Likewise.
25951         * modules/vsnprintf-posix (Depends-on): Likewise.
25952         * modules/sprintf-posix (Depends-on): Likewise.
25953         * modules/vsprintf-posix (Depends-on): Likewise.
25954         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25955         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25956         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25957         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25958         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25959         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25960         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25961
25962         Add support for universal builds to <inttypes.h>.
25963         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25964         _SCNu64_PREFIX): In Apple
25965         universal builds, define directly, using _LP64.
25966         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25967         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25968         * modules/inttypes (Depends-on): Add multiarch.
25969         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25970
25971         Add support for universal builds to <stdint.h>.
25972         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25973         universal builds, define directly, using _LP64.
25974         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25975         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25976         and size_t.
25977         * modules/stdint (Depends-on): Add multiarch.
25978         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25979
25980         New module 'multiarch'.
25981         * modules/multiarch: New file.
25982         * m4/multiarch.m4: New file.
25983
25984 2008-12-25  Bruno Haible  <bruno@clisp.org>
25985
25986         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25987
25988 2008-12-25  Bruno Haible  <bruno@clisp.org>
25989
25990         * modules/btowc (License): Relicense under LGPLv2+.
25991         * modules/mbsinit (License): Likewise.
25992         * modules/mbrtowc (License): Likewise.
25993         * modules/wcrtomb (License): Likewise.
25994         * modules/streq (License): Likewise.
25995         Reported by David Lutterkort <lutter@redhat.com>.
25996
25997 2008-12-23  Bruno Haible  <bruno@clisp.org>
25998
25999         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
26000
26001 2008-12-23  Bruno Haible  <bruno@clisp.org>
26002
26003         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
26004         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
26005         GETADDRINFO_LIB, not in LIBS.
26006         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
26007         * modules/canon-host (Link): Likewise.
26008         * NEWS: Mention the change.
26009         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
26010         GETADDRINFO_LIB.
26011
26012 2008-12-22  Bruno Haible  <bruno@clisp.org>
26013
26014         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
26015         * doc/posix-functions/iswalpha_l.texi: Likewise.
26016         * doc/posix-functions/iswblank_l.texi: Likewise.
26017         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26018         * doc/posix-functions/iswctype_l.texi: Likewise.
26019         * doc/posix-functions/iswdigit_l.texi: Likewise.
26020         * doc/posix-functions/iswgraph_l.texi: Likewise.
26021         * doc/posix-functions/iswlower_l.texi: Likewise.
26022         * doc/posix-functions/iswprint_l.texi: Likewise.
26023         * doc/posix-functions/iswpunct_l.texi: Likewise.
26024         * doc/posix-functions/iswspace_l.texi: Likewise.
26025         * doc/posix-functions/iswupper_l.texi: Likewise.
26026         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26027         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
26028         * doc/posix-functions/open_wmemstream.texi: Likewise.
26029         * doc/posix-functions/swscanf.texi: Likewise.
26030         * doc/posix-functions/towctrans_l.texi: Likewise.
26031         * doc/posix-functions/towlower.texi: Likewise.
26032         * doc/posix-functions/towlower_l.texi: Likewise.
26033         * doc/posix-functions/towupper.texi: Likewise.
26034         * doc/posix-functions/towupper_l.texi: Likewise.
26035         * doc/posix-functions/vfwprintf.texi: Likewise.
26036         * doc/posix-functions/vfwscanf.texi: Likewise.
26037         * doc/posix-functions/vswscanf.texi: Likewise.
26038         * doc/posix-functions/vwprintf.texi: Likewise.
26039         * doc/posix-functions/vwscanf.texi: Likewise.
26040         * doc/posix-functions/wcpcpy.texi: Likewise.
26041         * doc/posix-functions/wcpncpy.texi: Likewise.
26042         * doc/posix-functions/wcscasecmp.texi: Likewise.
26043         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
26044         * doc/posix-functions/wcscoll_l.texi: Likewise.
26045         * doc/posix-functions/wcsdup.texi: Likewise.
26046         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26047         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
26048         * doc/posix-functions/wcsnlen.texi: Likewise.
26049         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26050         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26051         * doc/posix-functions/wctrans_l.texi: Likewise.
26052         * doc/posix-functions/wctype_l.texi: Likewise.
26053         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
26054         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
26055         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
26056         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
26057         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
26058         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
26059         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
26060         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
26061         * doc/glibc-functions/wcschrnul.texi: Likewise.
26062         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26063         * doc/glibc-functions/wcstod_l.texi: Likewise.
26064         * doc/glibc-functions/wcstof_l.texi: Likewise.
26065         * doc/glibc-functions/wcstol_l.texi: Likewise.
26066         * doc/glibc-functions/wcstold_l.texi: Likewise.
26067         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26068         * doc/glibc-functions/wcstoq.texi: Likewise.
26069         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26070         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26071         * doc/glibc-functions/wcstouq.texi: Likewise.
26072         * doc/glibc-functions/wmempcpy.texi: Likewise.
26073
26074 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
26075             Eric Blake  <ebb9@byu.net>
26076             Paolo Bonzini  <bonzini@gnu.org>
26077             Bruno Haible  <bruno@clisp.org>
26078
26079         Make c-stack work on Haiku.
26080         * lib/c-stack.c (SA_ONSTACK): Define fallback.
26081         (c_stack_action): Use SA_ONSTACK flag.
26082
26083 2008-12-22  Bruno Haible  <bruno@clisp.org>
26084
26085         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
26086
26087 2008-12-22  Bruno Haible  <bruno@clisp.org>
26088
26089         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
26090         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
26091         being overridden.
26092         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
26093         New macros.
26094         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
26095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
26096         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
26097         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
26098
26099 2008-12-22  Bruno Haible  <bruno@clisp.org>
26100
26101         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
26102         from test code.
26103
26104 2008-12-22  Eric Blake  <ebb9@byu.net>
26105
26106         Avoid gcc warnings on cygwin.
26107         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
26108         Avoid unused variable.
26109         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
26110         Likewise.
26111
26112 2008-12-22  Bruno Haible  <bruno@clisp.org>
26113
26114         Remove HAVE_MBRTOWC conditionals.
26115         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
26116         (mbscasecmp): Assume mbrtowc function.
26117         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
26118         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
26119         * lib/mbschr.c: Include mbuiter.h unconditionally.
26120         (mbschr): Assume mbrtowc function.
26121         * lib/mbscspn.c: Include mbuiter.h unconditionally.
26122         (mbscspn): Assume mbrtowc function.
26123         * lib/mbslen.c: Include mbuiter.h unconditionally.
26124         (mbslen): Assume mbrtowc function.
26125         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
26126         (mbsncasecmp): Assume mbrtowc function.
26127         * lib/mbsnlen.c: Include mbiter.h unconditionally.
26128         (mbsnlen): Assume mbrtowc function.
26129         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
26130         (mbspbrk): Assume mbrtowc function.
26131         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
26132         (mbspcasecmp): Assume mbrtowc function.
26133         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
26134         (mbsrchr): Assume mbrtowc function.
26135         * lib/mbssep.c: Include mbuiter.h unconditionally.
26136         (mbssep): Assume mbrtowc function.
26137         * lib/mbsspn.c: Include mbuiter.h unconditionally.
26138         (mbsspn): Assume mbrtowc function.
26139         * lib/mbsstr.c: Include mbuiter.h unconditionally.
26140         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
26141         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
26142         (mbstok_r): Assume mbrtowc function.
26143         * lib/propername.c: Include mbuiter.h unconditionally.
26144         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
26145         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
26146         (trim2): Assume mbrtowc function.
26147         * lib/mbswidth.c (mbsinit): Remove fallback definition.
26148         (mbsnwidth): Assume mbrtowc function.
26149         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
26150         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
26151         fallback definitions.
26152         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
26153
26154 2008-12-22  Bruno Haible  <bruno@clisp.org>
26155
26156         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
26157
26158 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
26159
26160         * modules/regex: Request emulations for the mb*/wc* functions we need.
26161         * m4/regex.m4: Don't look for those functions here.
26162         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
26163
26164 2008-12-22  Bruno Haible  <bruno@clisp.org>
26165
26166         * modules/fnmatch (Depends-on): Remove duplicated dependency.
26167
26168 2008-12-21  Bruno Haible  <bruno@clisp.org>
26169
26170         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
26171         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
26172         (Include): Remove conditionalization.
26173         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
26174         (Include): Remove conditionalization.
26175         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
26176         (Include): Remove conditionalization.
26177         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
26178         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26179         * NEWS: Mention the change.
26180         Reported by Alan Hourihane <alanh@fairlite.co.uk>
26181         via Sergey Poznyakoff <gray@gnu.org.ua>.
26182
26183 2008-12-21  Bruno Haible  <bruno@clisp.org>
26184
26185         * MODULES.html.sh (Extended multibyte and wide character utilities
26186         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
26187         wcrtomb, wcsrtombs.
26188         (Support for systems lacking POSIX:2008): Add accept, bind, close,
26189         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
26190         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
26191         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
26192
26193 2008-12-21  Bruno Haible  <bruno@clisp.org>
26194
26195         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
26196
26197 2008-12-21  Bruno Haible  <bruno@clisp.org>
26198
26199         * modules/wcsnrtombs-tests: New file.
26200         * tests/test-wcsnrtombs1.sh: New file.
26201         * tests/test-wcsnrtombs2.sh: New file.
26202         * tests/test-wcsnrtombs3.sh: New file.
26203         * tests/test-wcsnrtombs4.sh: New file.
26204         * tests/test-wcsnrtombs.c: New file.
26205
26206         New module 'wcsnrtombs'.
26207         * lib/wchar.in.h (wcsnrtombs): New declaration.
26208         * lib/wcsnrtombs.c: New file.
26209         * lib/wcsrtombs-state.c: New file.
26210         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
26211         (internal_state): Remove variable.
26212         * m4/wcsnrtombs.m4: New file.
26213         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
26214         compilation units.
26215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
26216         HAVE_WCSNRTOMBS.
26217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
26218         HAVE_WCSNRTOMBS.
26219         * modules/wcsnrtombs: New file.
26220         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
26221         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
26222
26223 2008-12-21  Bruno Haible  <bruno@clisp.org>
26224
26225         * modules/wcsrtombs-tests: New file.
26226         * tests/test-wcsrtombs1.sh: New file.
26227         * tests/test-wcsrtombs2.sh: New file.
26228         * tests/test-wcsrtombs3.sh: New file.
26229         * tests/test-wcsrtombs4.sh: New file.
26230         * tests/test-wcsrtombs.c: New file.
26231
26232         New module 'wcsrtombs'.
26233         * lib/wchar.in.h (wcsrtombs): New declaration.
26234         * lib/wcsrtombs.c: New file.
26235         * m4/wcsrtombs.m4: New file.
26236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
26237         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26238         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
26239         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26240         * modules/wcsrtombs: New file.
26241         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
26242         bugs.
26243
26244 2008-12-21  Bruno Haible  <bruno@clisp.org>
26245
26246         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
26247         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
26248         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
26249         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
26250         if not correct.
26251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
26252         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
26253         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26254         m4/locale-zh.m4, m4/codeset.m4.
26255         * doc/posix-functions/wcrtomb.texi: Document the bug.
26256
26257 2008-12-21  Bruno Haible  <bruno@clisp.org>
26258
26259         Work around a btowc() bug on IRIX 6.5.
26260         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
26261         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
26262         REPLACE_WTOBC if not.
26263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
26264         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
26265         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
26266
26267 2008-12-21  Bruno Haible  <bruno@clisp.org>
26268
26269         * modules/wcrtomb-tests: New file.
26270         * tests/test-wcrtomb.sh: New file.
26271         * tests/test-wcrtomb.c: New file.
26272
26273         New module 'wcrtomb'.
26274         * lib/wchar.in.h (wcrtomb): New declaration.
26275         * lib/wcrtomb.c: New file.
26276         * m4/wcrtomb.m4: New file.
26277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
26278         HAVE_WCRTOMB.
26279         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
26280         HAVE_WCRTOMB.
26281         * modules/wcrtomb: New file.
26282         * doc/posix-functions/wcrtomb.texi: Mention the new module.
26283
26284 2008-12-21  Bruno Haible  <bruno@clisp.org>
26285
26286         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
26287         * modules/mbsrtowcs (Files): Likewise.
26288         * modules/wctob (Files): Likewise.
26289         * modules/c-strcase-tests (Files): Likewise.
26290         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26291         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26292         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26293         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26294         * modules/vasnprintf-posix-tests (Files): Likewise.
26295
26296 2008-12-21  William Pursell  <bill.pursell@gmail.com>
26297
26298         gitlog-to-changelog: pass all command-line arguments to git-log
26299         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
26300         it is sometimes convenient to filter the commits in various ways.
26301         gitlog-to-changelog only allows --since to specify a start date,
26302         but git-log itself supports many other filtering mechanisms.
26303         At the moment, I want to filter by branch name.  Rather than
26304         adding a --branch option to gitlog-to-changelog, it seems more
26305         flexible to simply pass all options directly to git-log and let
26306         git do the work.  Notice that this effectively makes --since a
26307         redundant option for gitlog-to-changelog, but removing it would
26308         require current usage to change since calls would then require
26309         an additional '--'.
26310
26311 2008-12-21  Bruno Haible  <bruno@clisp.org>
26312
26313         * modules/mbsnrtowcs-tests: New file.
26314         * tests/test-mbsnrtowcs1.sh: New file.
26315         * tests/test-mbsnrtowcs2.sh: New file.
26316         * tests/test-mbsnrtowcs3.sh: New file.
26317         * tests/test-mbsnrtowcs4.sh: New file.
26318         * tests/test-mbsnrtowcs.c: New file.
26319
26320         New module 'mbsnrtowcs'.
26321         * lib/wchar.in.h (mbsnrtowcs): New declaration.
26322         * lib/mbsnrtowcs.c: New file.
26323         * lib/mbsrtowcs-state.c: New file.
26324         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
26325         (internal_state): Remove variable.
26326         * m4/mbsnrtowcs.m4: New file.
26327         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
26328         compilation units.
26329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
26330         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26331         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
26332         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26333         * modules/mbsnrtowcs: New file.
26334         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
26335         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
26336         portability problem.
26337
26338 2008-12-21  Bruno Haible  <bruno@clisp.org>
26339
26340         Work around mbsrtowcs bug.
26341         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
26342         (gl_FUNC_MBSRTOWCS): Invoke it.
26343         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26344         m4/locale-zh.m4.
26345         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
26346
26347 2008-12-21  Bruno Haible  <bruno@clisp.org>
26348
26349         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
26350
26351 2008-12-21  Bruno Haible  <bruno@clisp.org>
26352
26353         Update doc for AIX.
26354         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
26355         16-bit wchar_t type.
26356         * doc/posix-functions/btowc.texi: Likewise.
26357         * doc/posix-functions/fgetwc.texi: Likewise.
26358         * doc/posix-functions/fgetws.texi: Likewise.
26359         * doc/posix-functions/fputwc.texi: Likewise.
26360         * doc/posix-functions/fputws.texi: Likewise.
26361         * doc/posix-functions/fwide.texi: Likewise.
26362         * doc/posix-functions/fwprintf.texi: Likewise.
26363         * doc/posix-functions/fwscanf.texi: Likewise.
26364         * doc/posix-functions/getwchar.texi: Likewise.
26365         * doc/posix-functions/getwc.texi: Likewise.
26366         * doc/posix-functions/iswalnum.texi: Likewise.
26367         * doc/posix-functions/iswalpha.texi: Likewise.
26368         * doc/posix-functions/iswblank.texi: Likewise.
26369         * doc/posix-functions/iswcntrl.texi: Likewise.
26370         * doc/posix-functions/iswctype.texi: Likewise.
26371         * doc/posix-functions/iswdigit.texi: Likewise.
26372         * doc/posix-functions/iswgraph.texi: Likewise.
26373         * doc/posix-functions/iswlower.texi: Likewise.
26374         * doc/posix-functions/iswprint.texi: Likewise.
26375         * doc/posix-functions/iswpunct.texi: Likewise.
26376         * doc/posix-functions/iswspace.texi: Likewise.
26377         * doc/posix-functions/iswupper.texi: Likewise.
26378         * doc/posix-functions/iswxdigit.texi: Likewise.
26379         * doc/posix-functions/mbrtowc.texi: Likewise.
26380         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26381         * doc/posix-functions/mbstowcs.texi: Likewise.
26382         * doc/posix-functions/mbtowc.texi: Likewise.
26383         * doc/posix-functions/putwchar.texi: Likewise.
26384         * doc/posix-functions/putwc.texi: Likewise.
26385         * doc/posix-functions/swprintf.texi: Likewise.
26386         * doc/posix-functions/tolower.texi: Likewise.
26387         * doc/posix-functions/toupper.texi: Likewise.
26388         * doc/posix-functions/towctrans.texi: Likewise.
26389         * doc/posix-functions/ungetwc.texi: Likewise.
26390         * doc/posix-functions/vswprintf.texi: Likewise.
26391         * doc/posix-functions/wcrtomb.texi: Likewise.
26392         * doc/posix-functions/wcscat.texi: Likewise.
26393         * doc/posix-functions/wcschr.texi: Likewise.
26394         * doc/posix-functions/wcscmp.texi: Likewise.
26395         * doc/posix-functions/wcscoll.texi: Likewise.
26396         * doc/posix-functions/wcscpy.texi: Likewise.
26397         * doc/posix-functions/wcscspn.texi: Likewise.
26398         * doc/posix-functions/wcsftime.texi: Likewise.
26399         * doc/posix-functions/wcslen.texi: Likewise.
26400         * doc/posix-functions/wcsncat.texi: Likewise.
26401         * doc/posix-functions/wcsncmp.texi: Likewise.
26402         * doc/posix-functions/wcsncpy.texi: Likewise.
26403         * doc/posix-functions/wcspbrk.texi: Likewise.
26404         * doc/posix-functions/wcsrchr.texi: Likewise.
26405         * doc/posix-functions/wcsrtombs.texi: Likewise.
26406         * doc/posix-functions/wcsspn.texi: Likewise.
26407         * doc/posix-functions/wcsstr.texi: Likewise.
26408         * doc/posix-functions/wcstod.texi: Likewise.
26409         * doc/posix-functions/wcstof.texi: Likewise.
26410         * doc/posix-functions/wcstoimax.texi: Likewise.
26411         * doc/posix-functions/wcstok.texi: Likewise.
26412         * doc/posix-functions/wcstold.texi: Likewise.
26413         * doc/posix-functions/wcstoll.texi: Likewise.
26414         * doc/posix-functions/wcstol.texi: Likewise.
26415         * doc/posix-functions/wcstombs.texi: Likewise.
26416         * doc/posix-functions/wcstoull.texi: Likewise.
26417         * doc/posix-functions/wcstoul.texi: Likewise.
26418         * doc/posix-functions/wcstoumax.texi: Likewise.
26419         * doc/posix-functions/wcswidth.texi: Likewise.
26420         * doc/posix-functions/wcsxfrm.texi: Likewise.
26421         * doc/posix-functions/wctob.texi: Likewise.
26422         * doc/posix-functions/wctomb.texi: Likewise.
26423         * doc/posix-functions/wctrans.texi: Likewise.
26424         * doc/posix-functions/wctype.texi: Likewise.
26425         * doc/posix-functions/wcwidth.texi: Likewise.
26426         * doc/posix-functions/wmemchr.texi: Likewise.
26427         * doc/posix-functions/wmemcmp.texi: Likewise.
26428         * doc/posix-functions/wmemcpy.texi: Likewise.
26429         * doc/posix-functions/wmemmove.texi: Likewise.
26430         * doc/posix-functions/wmemset.texi: Likewise.
26431         * doc/posix-functions/wprintf.texi: Likewise.
26432         * doc/posix-functions/wscanf.texi: Likewise.
26433
26434 2008-12-21  Bruno Haible  <bruno@clisp.org>
26435
26436         Update doc for HP-UX 11.11.
26437         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26438         in HP-UX version 11.00, not in all versions of HP-UX 11.
26439         * doc/posix-functions/fwide.texi: Likewise.
26440         * doc/posix-functions/fwprintf.texi: Likewise.
26441         * doc/posix-functions/fwscanf.texi: Likewise.
26442         * doc/posix-functions/inet_ntop.texi: Likewise.
26443         * doc/posix-functions/inet_pton.texi: Likewise.
26444         * doc/posix-functions/mbrlen.texi: Likewise.
26445         * doc/posix-functions/mbrtowc.texi: Likewise.
26446         * doc/posix-functions/mbsinit.texi: Likewise.
26447         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26448         * doc/posix-functions/swprintf.texi: Likewise.
26449         * doc/posix-functions/swscanf.texi: Likewise.
26450         * doc/posix-functions/towctrans.texi: Likewise.
26451         * doc/posix-functions/vfwprintf.texi: Likewise.
26452         * doc/posix-functions/vswprintf.texi: Likewise.
26453         * doc/posix-functions/vwprintf.texi: Likewise.
26454         * doc/posix-functions/wcrtomb.texi: Likewise.
26455         * doc/posix-functions/wcsrtombs.texi: Likewise.
26456         * doc/posix-functions/wcsstr.texi: Likewise.
26457         * doc/posix-functions/wctob.texi: Likewise.
26458         * doc/posix-functions/wctrans.texi: Likewise.
26459         * doc/posix-functions/wmemchr.texi: Likewise.
26460         * doc/posix-functions/wmemcmp.texi: Likewise.
26461         * doc/posix-functions/wmemcpy.texi: Likewise.
26462         * doc/posix-functions/wmemmove.texi: Likewise.
26463         * doc/posix-functions/wmemset.texi: Likewise.
26464         * doc/posix-functions/wprintf.texi: Likewise.
26465         * doc/posix-functions/wscanf.texi: Likewise.
26466
26467 2008-12-21  Bruno Haible  <bruno@clisp.org>
26468
26469         Work around a portability problem.
26470         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26471         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26472
26473 2008-12-20  Bruno Haible  <bruno@clisp.org>
26474
26475         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26476         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26477         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26478         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26479         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26480
26481         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26482         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26483         set.
26484         (GNULIB_defined_mbstate_t): New macro.
26485         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26486         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26487         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26488         reuses the system's mbrtowc function but works around the bugs.
26489         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26490         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26491         macros.
26492         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26493         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26494         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26495         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26496         REPLACE_MBSINIT if mbsinit needs to be overridden.
26497         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26498         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26499         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26500         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26501         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26502         m4/locale-zh.m4.
26503         (Depends): Add mbsinit.
26504         * modules/mbsinit (Depends): Add mbrtowc.
26505         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26506
26507 2008-12-20  Bruno Haible  <bruno@clisp.org>
26508
26509         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26510         so that there are no conversion errors on AIX.
26511         * tests/test-mbsrtowcs.c (main): LIkewise.
26512
26513 2008-12-20  Bruno Haible  <bruno@clisp.org>
26514
26515         Work around wctob bug on Solaris <= 9.
26516         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26517         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26519         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26520         * modules/wctob (Files): Add m4/locale-fr.m4.
26521         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26522
26523 2008-12-20  Bruno Haible  <bruno@clisp.org>
26524
26525         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26526         /dev/null.
26527         * tests/test-select-in.sh: Likewise.
26528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26529
26530 2008-12-20  Bruno Haible  <bruno@clisp.org>
26531
26532         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26533         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26534         Cygwin 1.5.x.
26535
26536 2008-12-20  Bruno Haible  <bruno@clisp.org>
26537
26538         Ensure mbstate_t is defined on HP-UX 11.11.
26539         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26540         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26541         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26542         AC_USE_SYSTEM_EXTENSIONS.
26543         * modules/fnmatch (Depends-on): Add extensions.
26544         * modules/mbrlen (Depends-on): Likewise.
26545         * modules/mbrtowc (Depends-on): Likewise.
26546         * modules/mbsinit (Depends-on): Likewise.
26547         * modules/mbsrtowcs (Depends-on): Likewise.
26548         * modules/mbswidth (Depends-on): Likewise.
26549         * modules/quotearg (Depends-on): Likewise.
26550         * modules/strftime (Depends-on): Likewise.
26551
26552 2008-12-20  Bruno Haible  <bruno@clisp.org>
26553
26554         Ensure wctob is declared on IRIX 6.5.
26555         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26556         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26557         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26559         of HAVE_WCTOB.
26560         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26561         HAVE_WCTOB.
26562         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26563
26564 2008-12-19  Bruno Haible  <bruno@clisp.org>
26565
26566         * modules/mbsrtowcs-tests: New file.
26567         * tests/test-mbsrtowcs1.sh: New file.
26568         * tests/test-mbsrtowcs2.sh: New file.
26569         * tests/test-mbsrtowcs3.sh: New file.
26570         * tests/test-mbsrtowcs4.sh: New file.
26571         * tests/test-mbsrtowcs.c: New file.
26572
26573         New module 'mbsrtowcs'.
26574         * lib/wchar.in.h (mbsrtowcs): New declaration.
26575         * lib/mbsrtowcs.c: New file.
26576         * m4/mbsrtowcs.m4: New file.
26577         * modules/mbsrtowcs: New file.
26578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26579         HAVE_MBSRTOWCS.
26580         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26581         HAVE_MBSRTOWCS.
26582         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26583
26584 2008-12-19  Bruno Haible  <bruno@clisp.org>
26585
26586         New module 'mbrlen'.
26587         * lib/wchar.in.h (mbrlen): New declaration.
26588         * lib/mbrlen.c: New file.
26589         * m4/mbrlen.m4: New file.
26590         * modules/mbrlen: New file.
26591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26592         HAVE_MBRLEN.
26593         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26594         HAVE_MBRLEN.
26595         * doc/posix-functions/mbrlen.texi: Document the new module.
26596
26597 2008-12-19  Bruno Haible  <bruno@clisp.org>
26598
26599         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26600         * modules/mbrtowc (Depends-on): Add verify.
26601         Suggested by Paul Eggert.
26602
26603 2008-12-18  Bruno Haible  <bruno@clisp.org>
26604
26605         * modules/mbsinit-tests: New file.
26606         * tests/test-mbsinit.sh: New file.
26607         * tests/test-mbsinit.c: New file.
26608
26609 2008-12-18  Bruno Haible  <bruno@clisp.org>
26610
26611         * modules/mbrtowc-tests: New file.
26612         * tests/test-mbrtowc1.sh: New file.
26613         * tests/test-mbrtowc2.sh: New file.
26614         * tests/test-mbrtowc3.sh: New file.
26615         * tests/test-mbrtowc4.sh: New file.
26616         * tests/test-mbrtowc.c: New file.
26617
26618         New module 'mbrtowc'.
26619         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26620         mbsinit and mbrtowc.
26621         (mbrtowc): New declaration.
26622         * lib/mbrtowc.c: New file.
26623         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26624         * modules/mbrtowc: New file.
26625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26626         HAVE_MBRTOWC.
26627         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26628         HAVE_MBRTOWC.
26629         * doc/posix-functions/mbrtowc.texi: Document the new module.
26630
26631 2008-12-18  Bruno Haible  <bruno@clisp.org>
26632
26633         New module 'wctob'.
26634         * lib/wchar.in.h (wctob): New declaration.
26635         * lib/wctob.c: New file.
26636         * m4/wctob.m4: New file.
26637         * modules/wctob: New file.
26638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26639         HAVE_WCTOB.
26640         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26641         * doc/posix-functions/wctob.texi: Document the new module.
26642
26643 2008-12-18  Bruno Haible  <bruno@clisp.org>
26644
26645         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26646         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26647
26648 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26649
26650         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26651         G. Christensen" <tgc@jupiterrise.com>.
26652
26653         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26654         G. Christensen" <tgc@jupiterrise.com>.
26655
26656         * lib/flock.c: Need to include string.h.  Reported by "Tom
26657         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26658         <ebb9@byu.net>.
26659
26660 2008-12-18  Bruno Haible  <bruno@clisp.org>
26661
26662         * m4/locale-ja.m4: New file, from GNU gettext.
26663
26664 2008-12-17  Bruno Haible  <bruno@clisp.org>
26665
26666         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26667         Suggested by Eric Blake.
26668
26669 2008-12-17  Bruno Haible  <bruno@clisp.org>
26670
26671         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26672
26673 2008-12-17  Bruno Haible  <bruno@clisp.org>
26674
26675         * lib/mbsinit.c: Include verify.h. Verify an assumption.
26676         * modules/mbsinit (Depends-on): Add verify.
26677         Suggested by Paul Eggert.
26678
26679 2008-12-17  Bruno Haible  <bruno@clisp.org>
26680
26681         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
26682         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
26683         gl_FUNC_MBRTOWC.
26684         * m4/mbiter.m4 (gl_MBITER): LIkewise.
26685         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
26686         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
26687         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
26688         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
26689         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
26690         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
26691         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
26692         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
26693         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
26694         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
26695         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
26696         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
26697         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
26698         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
26699         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26700         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
26701         * modules/trim (configure.ac): Likewise.
26702
26703 2008-12-17  Bruno Haible  <bruno@clisp.org>
26704
26705         * modules/btowc-tests: New file.
26706         * tests/test-btowc1.sh: New file.
26707         * tests/test-btowc2.sh: New file.
26708         * tests/test-btowc.c: New file.
26709
26710         New module 'btowc'.
26711         * lib/wchar.in.h (btowc): New declaration.
26712         * lib/btowc.c: New file.
26713         * m4/btowc.m4: New file.
26714         * modules/btowc: New file.
26715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
26716         HAVE_BTOWC.
26717         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
26718         * doc/posix-functions/btowc.texi: Document the new module.
26719
26720 2008-12-17  Bruno Haible  <bruno@clisp.org>
26721
26722         New module 'mbsinit'.
26723         * lib/wchar.in.h (mbsinit): New declaration.
26724         * lib/mbsinit.c: New file.
26725         * m4/mbsinit.m4: New file.
26726         * modules/mbsinit: New file.
26727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
26728         HAVE_MBSINIT.
26729         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
26730         HAVE_MBSINIT.
26731         * doc/posix-functions/mbsinit.texi: Document the new module.
26732
26733 2008-12-16  Bruno Haible  <bruno@clisp.org>
26734
26735         * lib/unistd.in.h: Add comment.
26736         * tests/test-environ.c: Don't include <stdlib.h>.
26737
26738 2008-12-16  Bruno Haible  <bruno@clisp.org>
26739
26740         * lib/parse-duration.h (parse_duration): Document return value
26741         convention.
26742         * lib/parse-duration.c: Include specification header first. Add
26743         comments.
26744         (_): Remove macro.
26745         (parse_year_month_day, parse_hour_minute_second): Move side effects
26746         outside of strchr call.
26747         (parse_non_iso8601): Move side effects outside of isspace call.
26748         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
26749         call.
26750
26751 2008-12-16  Bruno Haible  <bruno@clisp.org>
26752
26753         * tests/test-parse-duration.sh: Produce no output when the test
26754         succeeds.
26755
26756 2008-12-16  Bruno Haible  <bruno@clisp.org>
26757
26758         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
26759         expressions.
26760
26761 2008-12-15  Bruno Haible  <bruno@clisp.org>
26762
26763         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
26764         * doc/glibc-functions/flistxattr.texi: Likewise.
26765         * doc/glibc-functions/fopencookie.texi: Likewise.
26766         * doc/glibc-functions/fremovexattr.texi: Likewise.
26767         * doc/glibc-functions/fsetxattr.texi: Likewise.
26768         * doc/glibc-functions/getxattr.texi: Likewise.
26769         * doc/glibc-functions/lgetxattr.texi: Likewise.
26770         * doc/glibc-functions/listxattr.texi: Likewise.
26771         * doc/glibc-functions/llistxattr.texi: Likewise.
26772         * doc/glibc-functions/lremovexattr.texi: Likewise.
26773         * doc/glibc-functions/lsetxattr.texi: Likewise.
26774         * doc/glibc-functions/removexattr.texi: Likewise.
26775         * doc/glibc-functions/setxattr.texi: Likewise.
26776         * doc/posix-functions/open_memstream.texi: Likewise.
26777
26778 2008-12-15  Eric Blake  <ebb9@byu.net>
26779
26780         Update doc for cygwin 1.7.
26781         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
26782         functions.
26783         * doc/posix-functions/fchmodat.texi: Likewise.
26784         * doc/posix-functions/fchownat.texi: Likewise.
26785         * doc/posix-functions/fdopendir.texi: Likewise.
26786         * doc/posix-functions/fmemopen.texi: Likewise.
26787         * doc/posix-functions/freeaddrinfo.texi: Likewise.
26788         * doc/posix-functions/fstatat.texi: Likewise.
26789         * doc/posix-functions/futimens.texi: Likewise.
26790         * doc/posix-functions/gai_strerror.texi: Likewise.
26791         * doc/posix-functions/getaddrinfo.texi: Likewise.
26792         * doc/posix-functions/getnameinfo.texi: Likewise.
26793         * doc/posix-functions/if_freenameindex.texi: Likewise.
26794         * doc/posix-functions/if_indextoname.texi: Likewise.
26795         * doc/posix-functions/if_nameindex.texi: Likewise.
26796         * doc/posix-functions/if_nametoindex.texi: Likewise.
26797         * doc/posix-functions/insque.texi: Likewise.
26798         * doc/posix-functions/linkat.texi: Likewise.
26799         * doc/posix-functions/llrint.texi: Likewise.
26800         * doc/posix-functions/llrintf.texi: Likewise.
26801         * doc/posix-functions/llrintl.texi: Likewise.
26802         * doc/posix-functions/lockf.texi: Likewise.
26803         * doc/posix-functions/lrintl.texi: Likewise.
26804         * doc/posix-functions/mkdirat.texi: Likewise.
26805         * doc/posix-functions/mkfifoat.texi: Likewise.
26806         * doc/posix-functions/mknodat.texi: Likewise.
26807         * doc/posix-functions/mq_close.texi: Likewise.
26808         * doc/posix-functions/mq_getattr.texi: Likewise.
26809         * doc/posix-functions/mq_notify.texi: Likewise.
26810         * doc/posix-functions/mq_open.texi: Likewise.
26811         * doc/posix-functions/mq_receive.texi: Likewise.
26812         * doc/posix-functions/mq_send.texi: Likewise.
26813         * doc/posix-functions/mq_setattr.texi: Likewise.
26814         * doc/posix-functions/mq_timedreceive.texi: Likewise.
26815         * doc/posix-functions/mq_timedsend.texi: Likewise.
26816         * doc/posix-functions/mq_unlink.texi: Likewise.
26817         * doc/posix-functions/open_memstream.texi: Likewise.
26818         * doc/posix-functions/openat.texi: Likewise.
26819         * doc/posix-functions/posix_fadvise.texi: Likewise.
26820         * doc/posix-functions/posix_fallocate.texi: Likewise.
26821         * doc/posix-functions/posix_madvise.texi: Likewise.
26822         * doc/posix-functions/posix_memalign.texi: Likewise.
26823         * doc/posix-functions/posix_openpt.texi: Likewise.
26824         * doc/posix-functions/readlinkat.texi: Likewise.
26825         * doc/posix-functions/remque.texi: Likewise.
26826         * doc/posix-functions/renameat.texi: Likewise.
26827         * doc/posix-functions/rintl.texi: Likewise.
26828         * doc/posix-functions/sem_unlink.texi: Likewise.
26829         * doc/posix-functions/shm_open.texi: Likewise.
26830         * doc/posix-functions/shm_unlink.texi: Likewise.
26831         * doc/posix-functions/signgam.texi: Likewise.
26832         * doc/posix-functions/sigset.texi: Likewise.
26833         * doc/posix-functions/stpcpy.texi: Likewise.
26834         * doc/posix-functions/stpncpy.texi: Likewise.
26835         * doc/posix-functions/strerror.texi: Likewise.
26836         * doc/posix-functions/strtod.texi: Likewise.
26837         * doc/posix-functions/symlinkat.texi: Likewise.
26838         * doc/posix-functions/unlinkat.texi: Likewise.
26839         * doc/posix-functions/utimensat.texi: Likewise.
26840         * doc/glibc-functions/bindresvport.texi: Likewise.
26841         * doc/glibc-functions/dn_expand.texi: Likewise.
26842         * doc/glibc-functions/exp10.texi: Likewise.
26843         * doc/glibc-functions/exp10f.texi: Likewise.
26844         * doc/glibc-functions/fgetxattr.texi: Likewise.
26845         * doc/glibc-functions/flistxattr.texi: Likewise.
26846         * doc/glibc-functions/fopencookie.texi: Likewise.
26847         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26848         * doc/glibc-functions/fremovexattr.texi: Likewise.
26849         * doc/glibc-functions/fsetxattr.texi: Likewise.
26850         * doc/glibc-functions/getifaddrs.texi: Likewise.
26851         * doc/glibc-functions/getxattr.texi: Likewise.
26852         * doc/glibc-functions/lgetxattr.texi: Likewise.
26853         * doc/glibc-functions/listxattr.texi: Likewise.
26854         * doc/glibc-functions/llistxattr.texi: Likewise.
26855         * doc/glibc-functions/lremovexattr.texi: Likewise.
26856         * doc/glibc-functions/lsetxattr.texi: Likewise.
26857         * doc/glibc-functions/pow10.texi: Likewise.
26858         * doc/glibc-functions/pow10f.texi: Likewise.
26859         * doc/glibc-functions/rcmd_af.texi: Likewise.
26860         * doc/glibc-functions/removexattr.texi: Likewise.
26861         * doc/glibc-functions/res_init.texi: Likewise.
26862         * doc/glibc-functions/res_mkquery.texi: Likewise.
26863         * doc/glibc-functions/res_query.texi: Likewise.
26864         * doc/glibc-functions/res_querydomain.texi: Likewise.
26865         * doc/glibc-functions/res_send.texi: Likewise.
26866         * doc/glibc-functions/rresvport_af.texi: Likewise.
26867         * doc/glibc-functions/setxattr.texi: Likewise.
26868         * doc/glibc-functions/strcasestr.texi: Likewise.
26869
26870 2008-12-15  Bruno Haible  <bruno@clisp.org>
26871
26872         Fix compilation error on OSF/1 4.0.
26873         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26874         <sys/time.h>, simply delegate to the system header.
26875         Reported by Daniel Richard G. <oss@teragram.com>.
26876
26877 2008-12-15  Bruno Haible  <bruno@clisp.org>
26878
26879         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26880         * doc/posix-functions/fchmodat.texi: Likewise.
26881         * doc/posix-functions/fchownat.texi: Likewise.
26882         * doc/posix-functions/fdopendir.texi: Likewise.
26883         * doc/posix-functions/fstatat.texi: Likewise.
26884         * doc/posix-functions/mkdirat.texi: Likewise.
26885         * doc/posix-functions/unlinkat.texi: Likewise.
26886
26887 2008-12-14  Bruno Haible  <bruno@clisp.org>
26888
26889         Update doc for POSIX:2008.
26890         * doc/posix-functions/faccessat.texi: New file.
26891         * doc/posix-functions/fchmodat.texi: New file.
26892         * doc/posix-functions/fchownat.texi: New file.
26893         * doc/posix-functions/fdopendir.texi: New file.
26894         * doc/posix-functions/fstatat.texi: New file.
26895         * doc/posix-functions/futimens.texi: New file.
26896         * doc/posix-functions/linkat.texi: New file.
26897         * doc/posix-functions/mkdirat.texi: New file.
26898         * doc/posix-functions/mkfifoat.texi: New file.
26899         * doc/posix-functions/mknodat.texi: New file.
26900         * doc/posix-functions/open_wmemstream.texi: New file.
26901         * doc/posix-functions/openat.texi: New file.
26902         * doc/posix-functions/psiginfo.texi: New file.
26903         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26904         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26905         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26906         * doc/posix-functions/readlinkat.texi: New file.
26907         * doc/posix-functions/renameat.texi: New file.
26908         * doc/posix-functions/strerror_l.texi: New file.
26909         * doc/posix-functions/symlinkat.texi: New file.
26910         * doc/posix-functions/unlinkat.texi: New file.
26911         * doc/posix-functions/utimensat.texi: New file.
26912         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26913
26914 2008-12-14  Bruno Haible  <bruno@clisp.org>
26915
26916         Update doc for POSIX:2008.
26917         * doc/posix-functions/alphasort.texi: Renamed from
26918         doc/glibc-functions/alphasort.texi.
26919         * doc/posix-functions/dirfd.texi: Renamed from
26920         doc/glibc-functions/dirfd.texi.
26921         * doc/posix-functions/dprintf.texi: Renamed from
26922         doc/glibc-functions/dprintf.texi.
26923         * doc/posix-functions/duplocale.texi: Renamed from
26924         doc/glibc-functions/duplocale.texi.
26925         * doc/posix-functions/fexecve.texi: Renamed from
26926         doc/glibc-functions/fexecve.texi.
26927         * doc/posix-functions/fmemopen.texi: Renamed from
26928         doc/glibc-functions/fmemopen.texi.
26929         * doc/posix-functions/freelocale.texi: Renamed from
26930         doc/glibc-functions/freelocale.texi.
26931         * doc/posix-functions/getdate_err.texi: Renamed from
26932         doc/glibc-functions/getdate_err.texi.
26933         * doc/posix-functions/isalnum_l.texi: Renamed from
26934         doc/glibc-functions/isalnum_l.texi.
26935         * doc/posix-functions/isalpha_l.texi: Renamed from
26936         doc/glibc-functions/isalpha_l.texi.
26937         * doc/posix-functions/isblank_l.texi: Renamed from
26938         doc/glibc-functions/isblank_l.texi.
26939         * doc/posix-functions/iscntrl_l.texi: Renamed from
26940         doc/glibc-functions/iscntrl_l.texi.
26941         * doc/posix-functions/isdigit_l.texi: Renamed from
26942         doc/glibc-functions/isdigit_l.texi.
26943         * doc/posix-functions/isgraph_l.texi: Renamed from
26944         doc/glibc-functions/isgraph_l.texi.
26945         * doc/posix-functions/islower_l.texi: Renamed from
26946         doc/glibc-functions/islower_l.texi.
26947         * doc/posix-functions/isprint_l.texi: Renamed from
26948         doc/glibc-functions/isprint_l.texi.
26949         * doc/posix-functions/ispunct_l.texi: Renamed from
26950         doc/glibc-functions/ispunct_l.texi.
26951         * doc/posix-functions/isspace_l.texi: Renamed from
26952         doc/glibc-functions/isspace_l.texi.
26953         * doc/posix-functions/isupper_l.texi: Renamed from
26954         doc/glibc-functions/isupper_l.texi.
26955         * doc/posix-functions/iswalnum_l.texi: Renamed from
26956         doc/glibc-functions/iswalnum_l.texi.
26957         * doc/posix-functions/iswalpha_l.texi: Renamed from
26958         doc/glibc-functions/iswalpha_l.texi.
26959         * doc/posix-functions/iswblank_l.texi: Renamed from
26960         doc/glibc-functions/iswblank_l.texi.
26961         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26962         doc/glibc-functions/iswcntrl_l.texi.
26963         * doc/posix-functions/iswctype_l.texi: Renamed from
26964         doc/glibc-functions/iswctype_l.texi.
26965         * doc/posix-functions/iswdigit_l.texi: Renamed from
26966         doc/glibc-functions/iswdigit_l.texi.
26967         * doc/posix-functions/iswgraph_l.texi: Renamed from
26968         doc/glibc-functions/iswgraph_l.texi.
26969         * doc/posix-functions/iswlower_l.texi: Renamed from
26970         doc/glibc-functions/iswlower_l.texi.
26971         * doc/posix-functions/iswprint_l.texi: Renamed from
26972         doc/glibc-functions/iswprint_l.texi.
26973         * doc/posix-functions/iswpunct_l.texi: Renamed from
26974         doc/glibc-functions/iswpunct_l.texi.
26975         * doc/posix-functions/iswspace_l.texi: Renamed from
26976         doc/glibc-functions/iswspace_l.texi.
26977         * doc/posix-functions/iswupper_l.texi: Renamed from
26978         doc/glibc-functions/iswupper_l.texi.
26979         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26980         doc/glibc-functions/iswxdigit_l.texi.
26981         * doc/posix-functions/isxdigit_l.texi: Renamed from
26982         doc/glibc-functions/isxdigit_l.texi.
26983         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26984         doc/glibc-functions/mbsnrtowcs.texi.
26985         * doc/posix-functions/mkdtemp.texi: Renamed from
26986         doc/glibc-functions/mkdtemp.texi.
26987         * doc/posix-functions/newlocale.texi: Renamed from
26988         doc/glibc-functions/newlocale.texi.
26989         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26990         doc/glibc-functions/nl_langinfo_l.texi.
26991         * doc/posix-functions/open_memstream.texi: Renamed from
26992         doc/glibc-functions/open_memstream.texi.
26993         * doc/posix-functions/opterr.texi: Renamed from
26994         doc/glibc-functions/opterr.texi.
26995         * doc/posix-functions/optind.texi: Renamed from
26996         doc/glibc-functions/optind.texi.
26997         * doc/posix-functions/optopt.texi: Renamed from
26998         doc/glibc-functions/optopt.texi.
26999         * doc/posix-functions/psignal.texi: Renamed from
27000         doc/glibc-functions/psignal.texi.
27001         * doc/posix-functions/scandir.texi: Renamed from
27002         doc/glibc-functions/scandir.texi.
27003         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
27004         doc/glibc-functions/sched_get_priority_min.texi.
27005         * doc/posix-functions/signgam.texi: Renamed from
27006         doc/glibc-functions/signgam.texi.
27007         * doc/posix-functions/stpcpy.texi: Renamed from
27008         doc/glibc-functions/stpcpy.texi.
27009         * doc/posix-functions/stpncpy.texi: Renamed from
27010         doc/glibc-functions/stpncpy.texi.
27011         * doc/posix-functions/strcasecmp_l.texi: Renamed from
27012         doc/glibc-functions/strcasecmp_l.texi.
27013         * doc/posix-functions/strcoll_l.texi: Renamed from
27014         doc/glibc-functions/strcoll_l.texi.
27015         * doc/posix-functions/strfmon_l.texi: Renamed from
27016         doc/glibc-functions/strfmon_l.texi.
27017         * doc/posix-functions/strftime_l.texi: Renamed from
27018         doc/glibc-functions/strftime_l.texi.
27019         * doc/posix-functions/strncasecmp_l.texi: Renamed from
27020         doc/glibc-functions/strncasecmp_l.texi.
27021         * doc/posix-functions/strndup.texi: Renamed from
27022         doc/glibc-functions/strndup.texi.
27023         * doc/posix-functions/strnlen.texi: Renamed from
27024         doc/glibc-functions/strnlen.texi.
27025         * doc/posix-functions/strsignal.texi: Renamed from
27026         doc/glibc-functions/strsignal.texi.
27027         * doc/posix-functions/strxfrm_l.texi: Renamed from
27028         doc/glibc-functions/strxfrm_l.texi.
27029         * doc/posix-functions/timer_gettime.texi: Renamed from
27030         doc/glibc-functions/timer_gettime.texi.
27031         * doc/posix-functions/tolower_l.texi: Renamed from
27032         doc/glibc-functions/tolower_l.texi.
27033         * doc/posix-functions/toupper_l.texi: Renamed from
27034         doc/glibc-functions/toupper_l.texi.
27035         * doc/posix-functions/towctrans_l.texi: Renamed from
27036         doc/glibc-functions/towctrans_l.texi.
27037         * doc/posix-functions/towlower_l.texi: Renamed from
27038         doc/glibc-functions/towlower_l.texi.
27039         * doc/posix-functions/towupper_l.texi: Renamed from
27040         doc/glibc-functions/towupper_l.texi.
27041         * doc/posix-functions/uselocale.texi: Renamed from
27042         doc/glibc-functions/uselocale.texi.
27043         * doc/posix-functions/vdprintf.texi: Renamed from
27044         doc/glibc-functions/vdprintf.texi.
27045         * doc/posix-functions/wcpcpy.texi:
27046         Renamed from doc/glibc-functions/wcpcpy.texi.
27047         * doc/posix-functions/wcpncpy.texi: Renamed from
27048         doc/glibc-functions/wcpncpy.texi.
27049         * doc/posix-functions/wcscasecmp.texi: Renamed from
27050         doc/glibc-functions/wcscasecmp.texi.
27051         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
27052         doc/glibc-functions/wcscasecmp_l.texi.
27053         * doc/posix-functions/wcscoll_l.texi: Renamed from
27054         doc/glibc-functions/wcscoll_l.texi.
27055         * doc/posix-functions/wcsdup.texi: Renamed from
27056         doc/glibc-functions/wcsdup.texi.
27057         * doc/posix-functions/wcsncasecmp.texi: Renamed from
27058         doc/glibc-functions/wcsncasecmp.texi.
27059         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
27060         doc/glibc-functions/wcsncasecmp_l.texi.
27061         * doc/posix-functions/wcsnlen.texi: Renamed from
27062         doc/glibc-functions/wcsnlen.texi.
27063         * doc/posix-functions/wcsnrtombs.texi: Renamed from
27064         doc/glibc-functions/wcsnrtombs.texi.
27065         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
27066         doc/glibc-functions/wcsxfrm_l.texi.
27067         * doc/posix-functions/wctrans_l.texi: Renamed from
27068         doc/glibc-functions/wctrans_l.texi.
27069         * doc/posix-functions/wctype_l.texi: Renamed from
27070         doc/glibc-functions/wctype_l.texi.
27071         * doc/gnulib.texi (Function Substitutes): Add these subsections.
27072         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
27073         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
27074         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
27075         these subsections.
27076         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
27077         Remove sections.
27078
27079 2008-12-14  Bruno Haible  <bruno@clisp.org>
27080
27081         Update doc for POSIX:2008.
27082         * doc/posix-functions/*.texi: Update URL of POSIX specification.
27083
27084 2008-12-14  Bruno Haible  <bruno@clisp.org>
27085
27086         Update doc for POSIX:2008.
27087         * doc/pastposix-functions/bcmp.texi: Renamed from
27088         doc/posix-functions/bcmp.texi.
27089         * doc/pastposix-functions/bcopy.texi: Renamed from
27090         doc/posix-functions/bcopy.texi.
27091         * doc/pastposix-functions/bsd_signal.texi: Renamed from
27092         doc/posix-functions/bsd_signal.texi.
27093         * doc/pastposix-functions/bzero.texi: Renamed from
27094         doc/posix-functions/bzero.texi.
27095         * doc/pastposix-functions/ecvt.texi: Renamed from
27096         doc/posix-functions/ecvt.texi.
27097         * doc/pastposix-functions/fcvt.texi: Renamed from
27098         doc/posix-functions/fcvt.texi.
27099         * doc/pastposix-functions/ftime.texi: Renamed from
27100         doc/posix-functions/ftime.texi.
27101         * doc/pastposix-functions/gcvt.texi: Renamed from
27102         doc/posix-functions/gcvt.texi.
27103         * doc/pastposix-functions/getcontext.texi: Renamed from
27104         doc/posix-functions/getcontext.texi.
27105         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
27106         doc/posix-functions/gethostbyaddr.texi.
27107         * doc/pastposix-functions/gethostbyname.texi: Renamed from
27108         doc/posix-functions/gethostbyname.texi.
27109         * doc/pastposix-functions/getwd.texi: Renamed from
27110         doc/posix-functions/getwd.texi.
27111         * doc/pastposix-functions/h_errno.texi: Renamed from
27112         doc/posix-functions/h_errno.texi.
27113         * doc/pastposix-functions/index.texi: Renamed from
27114         doc/posix-functions/index.texi.
27115         * doc/pastposix-functions/makecontext.texi: Renamed from
27116         doc/posix-functions/makecontext.texi.
27117         * doc/pastposix-functions/mktemp.texi: Renamed from
27118         doc/posix-functions/mktemp.texi.
27119         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
27120         doc/posix-functions/pthread_attr_getstackaddr.texi.
27121         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
27122         doc/posix-functions/pthread_attr_setstackaddr.texi.
27123         * doc/pastposix-functions/rindex.texi: Renamed from
27124         doc/posix-functions/rindex.texi.
27125         * doc/pastposix-functions/scalb.texi: Renamed from
27126         doc/posix-functions/scalb.texi.
27127         * doc/pastposix-functions/setcontext.texi: Renamed from
27128         doc/posix-functions/setcontext.texi.
27129         * doc/pastposix-functions/swapcontext.texi: Renamed from
27130         doc/posix-functions/swapcontext.texi.
27131         * doc/pastposix-functions/ualarm.texi: Renamed from
27132         doc/posix-functions/ualarm.texi.
27133         * doc/pastposix-functions/usleep.texi: Renamed from
27134         doc/posix-functions/usleep.texi.
27135         * doc/pastposix-functions/vfork.texi: Renamed from
27136         doc/posix-functions/vfork.texi.
27137         * doc/pastposix-functions/wcswcs.texi: Renamed from
27138         doc/posix-functions/wcswcs.texi.
27139         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
27140         (Function Substitutes): Update.
27141
27142 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27143
27144         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
27145         m4/strerror.m4.
27146
27147 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27148             Bruno Haible  <bruno@clisp.org>
27149
27150         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
27151
27152 2008-12-13  Bruno Haible  <bruno@clisp.org>
27153
27154         * modules/strtoull (Depends-on): Remove unistd.
27155
27156 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27157
27158         * modules/strtoull (Depends-on): Add stdlib.
27159
27160 2008-12-11  Simon Josefsson  <simon@josefsson.org>
27161
27162         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
27163
27164 2008-12-10  Jim Meyering  <meyering@redhat.com>
27165
27166         gl_ASSERT: don't say assertions are disabled when they're not
27167         * m4/assert.m4 (gl_ASSERT): Do not make configure report
27168         "checking whether to enable assertions... no", when they are in
27169         fact enabled.  This is solely a bug in the output of configure.
27170         In spite of saying "no", NDEBUG was not defined in that case.
27171         Also, as noted by Eric Blake, leave assertions enabled upon
27172         --enable-assert=INVALID.
27173
27174 2008-12-10  Bruno Haible  <bruno@clisp.org>
27175
27176         Change MODULES.html to refer to POSIX:2008 where possible.
27177         * MODULES.html.sh (POSIX2008_URL): New variable.
27178         (posix_headers): Remove sys/timeb, ucontext.
27179         (posix2001_headers): New variable.
27180         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
27181         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
27182         index, makecontext, mktemp, pthread_attr_getstackaddr,
27183         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
27184         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
27185         (posix2001_functions): New variable.
27186         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
27187         otherwise.
27188
27189 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27190
27191         add missing include to parse-duration.c
27192         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
27193         * modules/parse-duration (Depends-on): Add xalloc.
27194
27195         fix sed script reading maint.mk
27196         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
27197         (syntax-check-rules): Use it.
27198
27199 2008-12-09  Bruno Haible  <bruno@clisp.org>
27200
27201         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
27202         MacOS X 10.4/PowerPC.
27203         Reported by Simon Josefsson.
27204
27205 2008-12-08  Jim Meyering  <meyering@redhat.com>
27206
27207         work around mingw's lack of some S_IF definitions
27208         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
27209         Reported by Simon Josefsson.
27210
27211 2008-12-08  Bruno Haible  <bruno@clisp.org>
27212
27213         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
27214         applied to variables. Needed on MacOS X 10.4/PowerPC.
27215         Reported by Simon Josefsson.
27216
27217 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
27218         and Eric Blake  <ebb9@byu.net>
27219
27220         assert: honor --enable-assert
27221         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
27222         order to honor --enable-assert, rather than treating it as a
27223         synonym for --disable-assert.
27224
27225 2008-12-08  Jim Meyering  <meyering@redhat.com>
27226
27227         * lib/posixtm.c: Remove now-useless declaration of mktime.
27228
27229         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
27230
27231 2008-12-07  Bruno Haible  <bruno@clisp.org>
27232
27233         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
27234         test_once): Mark functions as static.
27235         * tests/test-tls.c (test_tls): Likewise.
27236
27237 2008-12-07  Bruno Haible  <bruno@clisp.org>
27238
27239         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
27240         iconv_register_autodetect.
27241
27242 2008-12-07  Jim Meyering  <meyering@redhat.com>
27243
27244         posixtm.c: avoid a warning
27245         * lib/posixtm.c (posixtime): Don't initialize tm0.
27246         It's no longer needed to placate gcc4's -Wuninitialized,
27247         and the attempt to placate would elicit a new warning.
27248
27249         unicodeio.c: mark unused parameters
27250         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27251         (fallback_failure_callback): Likewise.
27252
27253 2008-12-07  Bruno Haible  <bruno@clisp.org>
27254
27255         * gnulib-tool (func_create_testdir): When building the tests
27256         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
27257         Reported by Simon Josefsson.
27258
27259 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27260
27261         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
27262
27263 2008-12-06  Bruno Haible  <bruno@clisp.org>
27264
27265         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
27266         Suggested by Eric Blake.
27267
27268 2008-12-06  Bruno Haible  <bruno@clisp.org>
27269
27270         Fix a c-stack test failure on MacOS X.
27271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
27272         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
27273         handler for SIGBUS as well.
27274         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
27275         install a signal handler for SIGBUS as well.
27276         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
27277
27278 2008-12-06  Bruno Haible  <bruno@clisp.org>
27279
27280         Advocacy documentation.
27281         * doc/gnulib-intro.texi (Benefits): New section.
27282         * doc/gnulib.texi: Update.
27283
27284 2008-12-06  Bruno Haible  <bruno@clisp.org>
27285
27286         Document the 'manywarnings' module.
27287         * doc/manywarnings.texi: New file.
27288         * doc/gnulib.texi: Include it.
27289
27290 2008-12-05  Eric Blake  <ebb9@byu.net>
27291
27292         tests: silence some gcc warnings
27293         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
27294         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
27295         type mismatches.
27296
27297 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27298             Bruno Haible  <bruno@clisp.org>
27299
27300         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
27301
27302 2008-11-29  Jim Meyering  <meyering@redhat.com>
27303
27304         unicodeio.c: mark unused parameters
27305         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27306         (fallback_failure_callback): Likewise.
27307
27308         fts: fix a thinko
27309         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
27310         (set_stat_type): Return S_IF*-valued "type" directly.
27311         Prompted by James Youngman's spotting a related bug.
27312         Confirmed by further testing through find.
27313
27314         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
27315         * lib/fts.c (D_TYPE): Define.
27316         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
27317         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
27318         (s_ifmt_shift_bits): New function.
27319         (set_stat_type): New function.
27320         (fts_build): When not calling fts_stat, call set_stat_type
27321         to propagate dirent.d_type info to fts_read caller.
27322         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
27323         fts_statp->st_mode type information may be valid.
27324
27325 2008-11-28  Simon Josefsson  <simon@josefsson.org>
27326
27327         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
27328         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
27329         <sds@gnu.org>.
27330
27331 2008-11-20  Bruno Haible  <bruno@clisp.org>
27332
27333         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
27334         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
27335         INCLUDE_NEXT.
27336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
27337         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
27338         * modules/math (Makefile.am): Substitute
27339         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
27340         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27341
27342 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27343             Bruno Haible  <bruno@clisp.org>
27344
27345         * lib/stdint.in.h: Define all type macros so that their expansion is
27346         a single typedef'ed token. Fixes a compilation failure in Boost which
27347         does "using ::int8_t;".
27348
27349 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27350
27351         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
27352         gl_MANYWARN_ALL_GCC.
27353         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
27354         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
27355         * modules/manywarnings: New file.
27356         * MODULES.html.sh: Mention manywarnings module.
27357
27358 2008-11-18  Bruno Haible  <bruno@clisp.org>
27359
27360         * doc/gnulib-tool.texi (Unit tests): New section.
27361
27362 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27363
27364         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
27365         paths like 'lib/po/foo.po'.
27366
27367 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27368
27369         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
27370         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
27371
27372 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27373
27374         * m4/warnings.m4: Use CPPFLAGS to really check whether the
27375         parameter works.
27376
27377 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27378
27379         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
27380
27381 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27382
27383         * modules/parse-duration-tests: New file.
27384         * tests/test-parse-duration.sh: New file.
27385         * tests/test-parse-duration.c: New file.
27386
27387         New module 'parse-duration'.
27388         * lib/parse-duration.h: New file.
27389         * lib/parse-duration.c: New file.
27390         * modules/parse-duration: New file.
27391
27392 2008-11-17  Bruno Haible  <bruno@clisp.org>
27393
27394         * tests/test-select-out.sh: Comment out the first pipe test.
27395         Reported by Simon Josefsson.
27396
27397 2008-11-17  Bruno Haible  <bruno@clisp.org>
27398
27399         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27400         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27401         gl_HOSTENT.
27402
27403 2008-11-17  Bruno Haible  <bruno@clisp.org>
27404
27405         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27406         -lnetwork and -lnet. Needed for Haiku and BeOS.
27407
27408 2008-11-16  Bruno Haible  <bruno@clisp.org>
27409
27410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27411
27412 2008-11-16  Bruno Haible  <bruno@clisp.org>
27413
27414         Avoid test failure on Haiku.
27415         * tests/test-fsync.c: Include <errno.h>.
27416         (main): Don't require that fsync (0) fails.
27417
27418 2008-11-15  Bruno Haible  <bruno@clisp.org>
27419
27420         New module 'hostent'.
27421         * modules/hostent: New file.
27422         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27423
27424 2008-11-15  Bruno Haible  <bruno@clisp.org>
27425
27426         New module 'servent'.
27427         * modules/servent: New file.
27428         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27429
27430 2008-11-15  Bruno Haible  <bruno@clisp.org>
27431
27432         Avoid generating same test program with two different rules.
27433         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27434         test-frexp to test-frexp-nolibm.
27435         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27436         test-frexpl to test-frexpl-nolibm.
27437
27438 2008-11-15  Bruno Haible  <bruno@clisp.org>
27439
27440         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27441         $(FREXPL_LIBM).
27442
27443 2008-11-15  Bruno Haible  <bruno@clisp.org>
27444
27445         * lib/netdb.in.h: Activate the definitions also when the system's
27446         <netdb.h> has 'struct addrinfo'.
27447         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27448         EAI_OVERFLOW or AI_NUMERICSERV.
27449         * doc/posix-headers/netdb.texi: Document the problem.
27450
27451 2008-11-15  Bruno Haible  <bruno@clisp.org>
27452
27453         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27454
27455         Make the 'sched' module work on platforms where <sched.h> exists but
27456         is incomplete (such as Haiku).
27457         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27458         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27459         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27460         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27461         HAVE_STRUCT_SCHED_PARAM.
27462         * modules/sched (Depends-on): Add include_next.
27463         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27464         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27465         * doc/posix-headers/sched.texi: Document the issue.
27466
27467 2008-11-13  Jim Meyering  <meyering@redhat.com>
27468
27469         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27470         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27471         test would fail due to the difference in the Report bugs to ...
27472         line.  The expected address is empty, "<>", while the actual
27473         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27474
27475 2008-11-12  Bruno Haible  <bruno@clisp.org>
27476
27477         lstat: don't compile lstat.c on systems lacking lstat
27478         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27479         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27480         Reported by Daniel P. Berrange via Jim Meyering.
27481
27482 2008-11-12  Jim Meyering  <meyering@redhat.com>
27483
27484         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27485
27486 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27487
27488         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27489         instead.
27490
27491 2008-11-12  Bruno Haible  <bruno@clisp.org>
27492
27493         * lib/unicodeio.c: Include unistr.h.
27494         (utf8_wctomb): Remove function.
27495         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27496
27497 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27498
27499         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27500         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27501         <bruno@clisp.org>.
27502         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27503
27504 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27505
27506         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27507         * doc/gnulib.texi: Add section for warnings.
27508
27509 2008-11-11  Bruno Haible  <bruno@clisp.org>
27510
27511         * lib/sockets.h: Add a comment.
27512
27513 2008-11-11  Karl Berry  <karl@gnu.org>
27514
27515         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27516
27517 2008-11-11  Eric Blake  <ebb9@byu.net>
27518
27519         fdl.texi: avoid git symlinks
27520         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27521
27522 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27523
27524         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27525
27526 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27527
27528         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27529         (gl_WARN_ADD): Substitute $2 if literal.
27530
27531 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27532
27533         * m4/warning.m4: Remove.
27534
27535 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27536
27537         * m4/warnings.m4: Almost complete rewrite. :-)
27538
27539 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27540
27541         * modules/warnings: New module.
27542         * m4/warnings.m4: New file.
27543         * MODULES.html.sh: Mention warnings module.
27544         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27545         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27546
27547 2008-11-10  Eric Blake  <ebb9@byu.net>
27548
27549         fdl.texi: make a symlink to the latest version
27550         * doc/standards.texi: Revert today's earlier change.
27551         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27552         * doc/fdl.texi: ...and replace this with a symlink to the newer
27553         fdl-1.3.texi.
27554
27555 2008-11-10  Bruno Haible  <bruno@clisp.org>
27556
27557         * tests/test-select-fd.c (main): Accept the result file name as fourth
27558         argument.
27559         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27560         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27561
27562 2008-11-10  Bruno Haible  <bruno@clisp.org>
27563
27564         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27565         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27566         as autoconf-substituted macros.
27567         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27569         gl_NETDB_H_DEFAULTS. Set these variables.
27570         * modules/netdb (Makefile.am): Substitute these variables.
27571
27572 2008-11-10  Eric Blake  <ebb9@byu.net>
27573
27574         standards.texi: include correct file for FDL 1.3
27575         * doc/standards.texi (GNU Free Documentation License): Change
27576         include file to pull in FDL 1.3, not 1.2.
27577
27578         fdl.texi: revert accidental change to license
27579         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27580
27581 2008-11-10  Bruno Haible  <bruno@clisp.org>
27582
27583         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27584         cross-compiling guesses also when the native compile gives no result.
27585
27586 2008-11-10  Bruno Haible  <bruno@clisp.org>
27587
27588         * lib/spawni.c (__spawni): Force variable into the stack.
27589
27590 2008-11-10  Bruno Haible  <bruno@clisp.org>
27591
27592         Add support for Haiku.
27593         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27594         glibc and BeOS, but also on Haiku.
27595         * lib/fpurge.c (fpurge): Likewise.
27596         * lib/freadable.c (freadable): Likewise.
27597         * lib/freadahead.c (freadahead): Likewise.
27598         * lib/freading.c (freading): Likewise.
27599         * lib/freadptr.c (freadptr): Likewise.
27600         * lib/freadseek.c (freadptrinc): Likewise.
27601         * lib/fseeko.c (rpl_fseeko): Likewise.
27602         * lib/fseterr.c (fseterr): Likewise.
27603         * lib/fwritable.c (fwritable): Likewise.
27604         * lib/fwriting.c (fwriting): Likewise.
27605         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27606
27607 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27608
27609         * lib/config.charset: Treat Haiku like BeOS.
27610
27611 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27612
27613         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27614         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27615
27616 2008-11-08  Bruno Haible  <bruno@clisp.org>
27617
27618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27619         AC_CACHE_CHECK.
27620
27621 2008-11-08  Bruno Haible  <bruno@clisp.org>
27622
27623         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27624
27625 2008-11-08  Bruno Haible  <bruno@clisp.org>
27626
27627         * tests/test-select-fd.c: New file.
27628         * tests/test-select-in.sh: New file.
27629         * tests/test-select-out.sh: New file.
27630         * tests/test-select-stdin.c: New file.
27631         * modules/select-tests (Files): Add the new files.
27632         (Depends-on): Add gettimeofday.
27633         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27634         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27635         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27636
27637 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27638             Bruno Haible  <bruno@clisp.org>
27639
27640         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27641
27642 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27643
27644         * build-aux/pmccabe2html: Added support for C++ source files.
27645
27646 2008-11-05  Ben Pfaff  <blp@gnu.org>
27647
27648         Fix lib/close.c build on Windows.
27649         * modules/close (Files): Add lib/w32sock.h.
27650
27651 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27652
27653         Accept Bison's NEWS format.
27654         * build-aux/announce-gen (print_news_deltas): Tweak
27655         $re_prefix.
27656
27657 2008-11-04  Bruno Haible  <bruno@clisp.org>
27658
27659         * modules/random_r (Maintainer): Add glibc.
27660
27661 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27662
27663         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27664         by karl@freefriends.org (Karl Berry).
27665         * doc/alloca.texi: Likewise.
27666         * doc/c-ctype.texi: Likewise.
27667         * doc/c-strcase.texi: Likewise.
27668         * doc/c-strcaseeq.texi: Likewise.
27669         * doc/c-strcasestr.texi: Likewise.
27670         * doc/c-strstr.texi: Likewise.
27671         * doc/c-strtod.texi: Likewise.
27672         * doc/c-strtold.texi: Likewise.
27673         * doc/ctime.texi: Likewise.
27674         * doc/error.texi: Likewise.
27675         * doc/fdl.texi: Likewise.
27676         * doc/gcd.texi: Likewise.
27677         * doc/getdate.texi: Likewise.
27678         * doc/gnulib-intro.texi: Likewise.
27679         * doc/gnulib-tool.texi: Likewise.
27680         * doc/gnulib.texi: Likewise.
27681         * doc/inet_ntoa.texi: Likewise.
27682         * doc/maintain.texi: Likewise.
27683         * doc/make-stds.texi: Likewise.
27684         * doc/quote.texi: Likewise.
27685         * doc/regexprops-generic.texi: Likewise.
27686         * doc/standards.texi: Likewise.
27687         * doc/verify.texi: Likewise.
27688         * doc/visibility.texi: Likewise.
27689         * doc/gnulib.texi (GNU Free Documentation License): Include
27690         fdl-1.3.texi instead of fdl.texi.
27691
27692 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27693
27694         * doc/fdl-1.3.texi: New file, from
27695         <http://www.gnu.org/licenses/fdl-1.3.texi>.
27696         * modules/fdl-1.3: Add.
27697         * MODULES.html.sh: Add fdl-1.3.
27698
27699 2008-11-03  Bruno Haible  <bruno@clisp.org>
27700
27701         Make determination of absolute name of header file work with AIX xlc.
27702         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
27703         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
27704         preprocessing.
27705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27706         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27707
27708 2008-11-03  Simon Josefsson  <simon@josefsson.org>
27709
27710         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
27711         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
27712         <ludo@gnu.org>.
27713
27714 2008-11-02  Bruno Haible  <bruno@clisp.org>
27715
27716         Mark 'strpbrk' obsolete.
27717         * modules/strpbrk (Status, Notice): New sections.
27718         * modules/strtok_r (Depends-on): Add strpbrk.
27719
27720 2008-11-02  Bruno Haible  <bruno@clisp.org>
27721
27722         Mark 'strdup' obsolete.
27723         * modules/strdup (Status, Notice): New sections.
27724         * modules/findprog (Depends-on): Add strdup.
27725         * modules/getaddrinfo (Depends-on): Likewise.
27726         * modules/localename (Depends-on): Likewise.
27727         * modules/relocatable-lib (Depends-on): Likewise.
27728         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
27729         * modules/relocatable-prog (Depends-on): Likewise.
27730         * modules/trim (Depends-on): Likewise.
27731         * modules/unictype/gen-ctype (Depends-on): Likewise.
27732         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27733
27734 2008-11-02  Bruno Haible  <bruno@clisp.org>
27735
27736         Mark 'strcspn' obsolete.
27737         * modules/strcspn (Status, Notice): New sections.
27738
27739 2008-11-02  Bruno Haible  <bruno@clisp.org>
27740
27741         Mark 'rmdir' obsolete.
27742         * modules/rmdir (Status, Notice): New sections.
27743         * modules/clean-temp (Depends-on): Add rmdir.
27744         * modules/openat (Depends-on): Likewise.
27745
27746 2008-11-02  Bruno Haible  <bruno@clisp.org>
27747
27748         Mark 'raise' obsolete.
27749         * modules/raise (Status, Notice): New sections.
27750         (Include): Specify <signal.h>.
27751         * modules/stdio (Depends-on): Add raise.
27752         * modules/write (Depends-on): Likewise.
27753
27754 2008-11-02  Bruno Haible  <bruno@clisp.org>
27755
27756         Mark 'memset' obsolete.
27757         * modules/memset (Status, Notice): New sections.
27758
27759 2008-11-02  Bruno Haible  <bruno@clisp.org>
27760
27761         Mark 'memmove' obsolete.
27762         * modules/memmove (Status, Notice): New sections.
27763         * modules/argp (Depends-on): Add memmove.
27764         * modules/argz (Depends-on): Likewise.
27765         * modules/canonicalize (Depends-on): Likewise.
27766         * modules/canonicalize-lgpl (Depends-on): Likewise.
27767         * modules/fts (Depends-on): Likewise.
27768         * modules/getcwd (Depends-on): Likewise.
27769         * modules/human (Depends-on): Likewise.
27770         * modules/regex (Depends-on): Likewise.
27771         * modules/striconveh (Depends-on): Likewise.
27772         * modules/trim (Depends-on): Likewise.
27773         * modules/unistr/u8-move (Depends-on): Likewise.
27774         * modules/unistr/u16-move (Depends-on): Likewise.
27775         * modules/unistr/u32-move (Depends-on): Likewise.
27776
27777 2008-11-02  Bruno Haible  <bruno@clisp.org>
27778
27779         Mark 'memcpy' obsolete.
27780         * modules/memcpy (Status, Notice): New sections.
27781
27782 2008-11-02  Bruno Haible  <bruno@clisp.org>
27783
27784         Mark 'memcmp' obsolete.
27785         * modules/memcmp (Status, Notice): New sections.
27786         * modules/argmatch (Depends-on): Add memchr.
27787         * modules/backupfile (Depends-on): Likewise.
27788         * modules/c-strcasestr (Depends-on): Likewise.
27789         * modules/crypto/des (Depends-on): Likewise.
27790         * modules/csharpcomp (Depends-on): Likewise.
27791         * modules/fnmatch (Depends-on): Likewise.
27792         * modules/git-merge-changelog (Depends-on): Likewise.
27793         * modules/isnand (Depends-on): Likewise.
27794         * modules/isnand-nolibm (Depends-on): Likewise.
27795         * modules/isnanf (Depends-on): Likewise.
27796         * modules/isnanf-nolibm (Depends-on): Likewise.
27797         * modules/isnanl (Depends-on): Likewise.
27798         * modules/isnanl-nolibm (Depends-on): Likewise.
27799         * modules/mbchar (Depends-on): Likewise.
27800         * modules/memcoll (Depends-on): Likewise.
27801         * modules/quotearg (Depends-on): Likewise.
27802         * modules/regex (Depends-on): Likewise.
27803         * modules/relocatable-prog (Depends-on): Likewise.
27804         * modules/same (Depends-on): Likewise.
27805         * modules/signbit (Depends-on): Likewise.
27806         * modules/strcasestr-simple (Depends-on): Likewise.
27807         * modules/unictype/gen-ctype (Depends-on): Likewise.
27808         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27809         * modules/uniname/uniname (Depends-on): Likewise.
27810         * modules/unistr/u8-cmp (Depends-on): Likewise.
27811
27812 2008-11-02  Bruno Haible  <bruno@clisp.org>
27813
27814         Mark 'memchr' obsolete.
27815         * modules/memchr (Status, Notice): New sections.
27816         * modules/argp (Depends-on): Add memchr.
27817         * modules/base64 (Depends-on): Likewise.
27818         * modules/c-strcasestr (Depends-on): Likewise.
27819         * modules/chdir-long (Depends-on): Likewise.
27820         * modules/fnmatch (Depends-on): Likewise.
27821         * modules/getsubopt (Depends-on): Likewise.
27822         * modules/git-merge-changelog (Depends-on): Likewise.
27823         * modules/glob (Depends-on): Likewise.
27824         * modules/strcasestr-simple (Depends-on): Likewise.
27825         * modules/strnlen (Depends-on): Likewise.
27826
27827 2008-11-02  Bruno Haible  <bruno@clisp.org>
27828
27829         Mark 'atexit' obsolete.
27830         * modules/atexit (Status, Notice): New sections.
27831         * modules/chdir-long (Depends-on): Add atexit.
27832         * modules/wait-process (Depends-on): Likewise.
27833
27834 2008-11-02  Bruno Haible  <bruno@clisp.org>
27835
27836         * gnulib-tool: New option --with-obsolete.
27837         (func_usage): Document it.
27838         (func_modules_transitive_closure): Drop obsolete dependencies if
27839         incobsolete is not true.
27840         (func_import): Read and save the incobsolete variable to the cache.
27841
27842 2008-11-02  Bruno Haible  <bruno@clisp.org>
27843
27844         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27845         * gnulib-tool: New option --extract-status.
27846         (func_usage): Document it.
27847         (sed_extract_prog): Recognize it.
27848         (func_get_status): New function.
27849
27850 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27851
27852         * modules/sockets (License): Change from LGPL to LGPLv2+.
27853
27854 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27855
27856         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27857
27858 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27859
27860         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27861         Mention times and sys_times.
27862         * modules/sys_times, modules/sys_times-tests: New modules.
27863         * modules/times, modules/times-tests: Likewise
27864         * m4/sys_times_h.m4: New file.
27865         * lib/sys_times.in.h: Likewise
27866         * lib/times.c: Likewise.
27867         * tests/test-sys_times.c: Likewise.
27868         * tests/test-times.c: Likewise.
27869         * doc/posix-headers/sys_times.texi: Update.
27870         * doc/posix-functions/times.texi: Update.
27871
27872 2008-10-28  Jim Meyering  <meyering@redhat.com>
27873
27874         * modules/tempname (Depends-on): Add lstat.
27875
27876         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27877
27878 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27879
27880         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27881         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27882         using idiom used elsewhere in gnulib.
27883
27884 2008-10-27  Jim Meyering  <meyering@redhat.com>
27885
27886         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27887
27888 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27889
27890         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27891         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27892         programs.
27893         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27894
27895 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27896
27897         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27898
27899 2008-10-27  Bruno Haible  <bruno@clisp.org>
27900
27901         * tests/test-lstat.c: Include <stdio.h>.
27902
27903 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27904
27905         * modules/lstat-tests: New module.
27906         * tests/test-lstat.c: New file.
27907
27908 2008-10-26  Jim Meyering  <meyering@redhat.com>
27909
27910         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27911
27912 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27913             Bruno Haible  <bruno@clisp.org>
27914
27915         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27916         * modules/configmake (Include): Add a note that the include must come
27917         after all system headers.
27918         * lib/javaversion.c: Include configmake.h after all other includes.
27919
27920 2008-10-26  Bruno Haible  <bruno@clisp.org>
27921
27922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27923         HAVE_STRUCT_RANDOM_DATA to 1.
27924         (gl_STDLIB_H): Simplify.
27925
27926 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27927
27928         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27929         substitute HAVE_STRUCT_RANDOM_DATA.
27930         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27931         random_data.
27932         * modules/stdlib (Makefile.am): Substitute
27933         HAVE_STRUCT_RANDOM_DATA.
27934
27935 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27936
27937         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27938         * doc/gnulib-intro.texi (Copyright): Likewise.
27939
27940 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27941
27942         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27943         findings.
27944
27945 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27946             Bruno Haible  <bruno@clisp.org>
27947
27948         * lib/unistd.in.h: Include <winsock2.h>.
27949         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27950         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27951         Provide dummy declarations.
27952         (gethostname): Override.
27953         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27954         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27955         gl_PREREQ_SYS_H_WINSOCK2.
27956         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27957         * doc/posix-functions/gethostname.texi: More details.
27958
27959 2008-10-25  Bruno Haible  <bruno@clisp.org>
27960
27961         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27962         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27963         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27964
27965         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27966         here ...
27967         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27968         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27969         gl_UNISTD_H_DEFAULTS.
27970
27971 2008-10-25  Eric Blake  <ebb9@byu.net>
27972
27973         signbit: avoid spurious compiler failure
27974         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27975         declarations inside function.
27976
27977 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27978             Bruno Haible  <bruno@clisp.org>
27979
27980         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27981         * modules/random_r (Depends-on): Add stdint.
27982
27983 2008-10-24  Bruno Haible  <bruno@clisp.org>
27984
27985         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27986         Eggert.
27987         * modules/strerror (License): Likewise.
27988
27989 2008-10-24  Jim Meyering  <meyering@redhat.com>
27990
27991         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27992         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27993
27994 2008-10-24  Eric Blake  <ebb9@byu.net>
27995
27996         getgroups: fix compilation when getgroups is available
27997         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27998         but with <config.h> override of getgroups disabled.
27999
28000 2008-10-24  Simon Josefsson  <simon@josefsson.org>
28001
28002         * doc/gnulib.texi (Header files): Add note about C++ problems.
28003         Explained by Bruno Haible <bruno@clisp.org>.
28004
28005 2008-10-23  Bruno Haible  <bruno@clisp.org>
28006
28007         Define a dummy SA_NODEFER macro on Interix.
28008         * lib/signal.in.h (SA_NODEFER): Define fallback.
28009         Reported by Aleksey Cheusov <cheusov@tut.by> via
28010         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
28011
28012 2008-10-23  Bruno Haible  <bruno@clisp.org>
28013
28014         * modules/freadahead (License): Change to LGPLv2+.
28015         Suggested by Simon Josefsson.
28016
28017 2008-10-23  Jim Meyering  <meyering@redhat.com>
28018
28019         random_r: new module
28020         * modules/random_r: New file.
28021         * m4/random_r.m4: New file.
28022         * lib/random_r.c: New file, from glibc.
28023         * modules/random_r-tests: New file.
28024         * tests/test-random_r.c: New file.
28025         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
28026          Declare.
28027         (RAND_MAX): Define.
28028         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
28029         * modules/stdlib: Substitute them, too.
28030         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
28031         * doc/glibc-functions/initstate_r.texi: Mention the new module.
28032         * doc/glibc-functions/random_r.texi: Likewise.
28033         * doc/glibc-functions/setstate_r.texi: Likewise.
28034         * doc/glibc-functions/srandom_r.texi: Likewise.
28035         * config/srclist.txt: Mention it.
28036
28037 2008-10-23  David Lutterkort  <lutter@redhat.com>
28038
28039         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
28040         link requirement
28041
28042 2008-10-23  Jim Meyering  <meyering@redhat.com>
28043
28044         selinux-h: mark parameters of stub functions as intentionally unused
28045         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
28046         * lib/se-context.in.h: Likewise.
28047
28048 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28049
28050         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
28051
28052 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28053
28054         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
28055
28056 2008-10-22  Eric Blake  <ebb9@byu.net>
28057
28058         glthread/thread: avoid compiler warning
28059         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
28060         Add unreachable abort to silence compiler.
28061
28062 2008-10-22  Eric Blake  <ebb9@byu.net>
28063
28064         netdb: also supply struct addrinfo for cygwin 1.5.x
28065         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
28066         older cygwin.
28067         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
28068         cygwin.
28069         * doc/posix-headers/netdb.texi (netdb.h): Document this.
28070
28071 2008-10-22  Bruno Haible  <bruno@clisp.org>
28072
28073         * users.txt: Update entry about pspp.
28074
28075 2008-10-21  Bruno Haible  <bruno@clisp.org>
28076
28077         Simplification.
28078         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
28079         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
28080
28081         Simplification.
28082         * lib/ioctl.c (ioctl): Don't undefine.
28083         * lib/socket.c (socket): Don't undefine.
28084
28085         Remove unused module indicator macros.
28086         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
28087         GNULIB_$1 as a C macro.
28088
28089         * doc/posix-functions/close.texi: Undo last change.
28090         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
28091         Windows platforms.
28092
28093 2008-10-21  Bruno Haible  <bruno@clisp.org>
28094
28095         Add gethostname() declaration to <unistd.h>.
28096         * lib/unistd.in.h (gethostname): New declaration.
28097         * lib/gethostname.c: Include <unistd.h>.
28098         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
28099         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
28100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
28101         and HAVE_GETHOSTNAME.
28102         * modules/gethostname (Depends-on): Add unistd.
28103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28104         (Include): Specify <unistd.h>.
28105         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
28106         HAVE_GETHOSTNAME.
28107         * tests/test-gethostname.c: Include <unistd.h> first.
28108
28109 2008-10-21  Bruno Haible  <bruno@clisp.org>
28110
28111         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
28112         * modules/select-tests (Depends-on): Likewise.
28113         Reported by Simon Josefsson.
28114
28115 2008-10-21  Simon Josefsson  <simon@josefsson.org>
28116
28117         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
28118         * lib/accept.c: New file, based on winsock.c.
28119         * lib/bind.c: New file, based on winsock.c.
28120         * lib/connect.c: New file, based on winsock.c.
28121         * lib/getpeername.c: New file, based on winsock.c.
28122         * lib/getsockname.c: New file, based on winsock.c.
28123         * lib/getsockopt.c: New file, based on winsock.c.
28124         * lib/ioctl.c: New file, based on winsock.c.
28125         * lib/listen.c: New file, based on winsock.c.
28126         * lib/recv.c: New file, based on winsock.c.
28127         * lib/recvfrom.c: New file, based on winsock.c.
28128         * lib/send.c: New file, based on winsock.c.
28129         * lib/sendto.c: New file, based on winsock.c.
28130         * lib/setsockopt.c: New file, based on winsock.c.
28131         * lib/shutdown.c: New file, based on winsock.c.
28132         * lib/socket.c: New file, based on winsock.c.
28133         * lib/w32sock.h: New file, based on winsock.c.
28134         * lib/winsock.c: Remove file.
28135         * modules/accept: Likewise.
28136         * modules/bind: Likewise.
28137         * modules/connect: Likewise.
28138         * modules/getpeername: Likewise.
28139         * modules/getsockname: Likewise.
28140         * modules/getsockopt: Likewise.
28141         * modules/ioctl: Likewise.
28142         * modules/listen: Likewise.
28143         * modules/recv: Likewise.
28144         * modules/recvfrom: Likewise.
28145         * modules/send: Likewise.
28146         * modules/sendto: Likewise.
28147         * modules/setsockopt: Likewise.
28148         * modules/shutdown: Likewise.
28149         * modules/socket: Use socket.c instead of winsock.c.
28150         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
28151         * doc/posix-functions/accept.texi: Doc fix.
28152         * doc/posix-functions/bind.texi: Doc fix.
28153         * doc/posix-functions/close.texi: Doc fix.
28154         * doc/posix-functions/connect.texi: Doc fix.
28155         * doc/posix-functions/getpeername.texi: Doc fix.
28156         * doc/posix-functions/getsockname.texi: Doc fix.
28157         * doc/posix-functions/getsockopt.texi: Doc fix.
28158         * doc/posix-functions/ioctl.texi: Doc fix.
28159         * doc/posix-functions/listen.texi: Doc fix.
28160         * doc/posix-functions/recv.texi: Doc fix.
28161         * doc/posix-functions/recvfrom.texi: Doc fix.
28162         * doc/posix-functions/send.texi: Doc fix.
28163         * doc/posix-functions/sendto.texi: Doc fix.
28164         * doc/posix-functions/setsockopt.texi: Doc fix.
28165         * doc/posix-functions/shutdown.texi: Doc fix.
28166         * doc/posix-functions/socket.texi: Doc fix.
28167
28168 2008-10-20  Bruno Haible  <bruno@clisp.org>
28169
28170         Take into account the role of SIGABRT_COMPAT on Windows 2008.
28171         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
28172         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
28173         as an alias for SIGABRT.
28174         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
28175         (sigaction): Map it to SIGABRT.
28176         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
28177
28178 2008-10-20  Bruno Haible  <bruno@clisp.org>
28179
28180         * lib/fts.c: Don't include lstat.h.
28181         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
28182
28183         Move the lstat() declaration to <sys/stat.h>.
28184         * lib/lstat.h: Remove file.
28185         * lib/sys_stat.in.h: Add special invocation convention.
28186         (lstat): New declaration.
28187         * lib/lstat.c (orig_lstat): New function.
28188         (rpl_lstat): Use orig_lstat instead of lstat.
28189         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
28190         AC_C_INLINE. Set REPLACE_LSTAT.
28191         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
28192         and REPLACE_LSTAT.
28193         * modules/lstat (Files): Remove lib/lstat.h.
28194         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28195         (Include): Specify <sys/stat.h> instead of lstat.h.
28196         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
28197         REPLACE_LSTAT.
28198         * NEWS: Mention the change.
28199
28200 2008-10-20  Bruno Haible  <bruno@clisp.org>
28201
28202         * modules/posix_spawn-tests: New file.
28203         * tests/test-posix_spawn3.c: New file.
28204
28205 2008-10-20  Bruno Haible  <bruno@clisp.org>
28206
28207         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
28208         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
28209         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
28210         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
28211         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
28212
28213 2008-10-20  Bruno Haible  <bruno@clisp.org>
28214
28215         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
28216         of posix_spawn on AIX 5.3.
28217
28218 2008-10-20  Bruno Haible  <bruno@clisp.org>
28219
28220         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
28221
28222 2008-10-20  Bruno Haible  <bruno@clisp.org>
28223
28224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
28225         of AC_LANG_PROGRAM.
28226
28227 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28228
28229         * lib/netdb.in.h: Don't define GNU specific constants until they
28230         are supported or needed.  Reported by Bruno Haible
28231         <bruno@clisp.org>.
28232
28233 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28234
28235         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
28236
28237 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28238
28239         * lib/getaddrinfo.h: Remove file.
28240         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
28241         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
28242         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
28243         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
28244         * modules/netdb: Substitute GNULIB_GETADDRINFO.
28245         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
28246         * tests/test-getaddrinfo.c: Likewise.
28247         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
28248         * NEWS: Mention change.
28249
28250 2008-10-19  Bruno Haible  <bruno@clisp.org>
28251
28252         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
28253
28254 2008-10-19  Bruno Haible  <bruno@clisp.org>
28255
28256         * lib/wait-process.c: Include simply <sys/wait.h>.
28257         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
28258         WIFSTOPPED): Remove fallback definitions.
28259         * modules/wait-process (Depends-on): Add sys_wait.
28260
28261         New module 'sys_wait'.
28262         * modules/sys_wait: New file.
28263         * lib/sys_wait.in.h: New file, partially copied from
28264         lib/wait-process.c.
28265         * m4/sys_wait_h.m4: New file.
28266         * doc/posix-headers/sys_wait.texi: Mention the new module.
28267
28268 2008-10-19  Bruno Haible  <bruno@clisp.org>
28269
28270         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
28271
28272 2008-10-19  Bruno Haible  <bruno@clisp.org>
28273
28274         Assume that waitpid() fills an 'int' status, not a 'union wait'.
28275         * lib/wait-process.c (WAIT_T): Remove type.
28276         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
28277         (wait_subprocess): Update.
28278
28279 2008-10-19  Bruno Haible  <bruno@clisp.org>
28280
28281         New module 'atoll'.
28282         * modules/atoll: New file.
28283         * lib/stdlib.in.h (atoll): New declaration.
28284         * lib/atoll.c: New file, from glibc with modifications.
28285         * m4/atoll.m4: New file.
28286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
28287         HAVE_ATOLL.
28288         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
28289         * doc/posix-functions/atoll.texi: Mention the new module.
28290
28291 2008-10-19  Bruno Haible  <bruno@clisp.org>
28292
28293         Add strtoull() declaration to <stdlib.h>.
28294         * lib/stdlib.in.h (strtoull): New declaration.
28295         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28296         Set HAVE_STRTOULL.
28297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
28298         HAVE_STRTOULL.
28299         * modules/strtoull (Depends-on): Add stdlib.
28300         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28301         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
28302         HAVE_STRTOULL.
28303
28304 2008-10-19  Bruno Haible  <bruno@clisp.org>
28305
28306         Add strtoll() declaration to <stdlib.h>.
28307         * lib/stdlib.in.h (strtoll): New declaration.
28308         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28309         Set HAVE_STRTOLL.
28310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
28311         HAVE_STRTOLL.
28312         * modules/strtoll (Depends-on): Add stdlib.
28313         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28314         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
28315
28316 2008-10-19  Bruno Haible  <bruno@clisp.org>
28317
28318         * modules/bcopy (Depends-on): Add strings.
28319         (Include): Specify <strings.h>.
28320
28321 2008-10-19  Bruno Haible  <bruno@clisp.org>
28322
28323         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
28324
28325 2008-10-19  Bruno Haible  <bruno@clisp.org>
28326
28327         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
28328         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
28329         mingw.
28330
28331 2008-10-19  Bruno Haible  <bruno@clisp.org>
28332
28333         * lib/atanl.c: Don't include isnanl.h.
28334         * lib/cosl.c: Likewise.
28335         * lib/ldexpl.c: Likewise.
28336         * lib/logl.c: Likewise.
28337         * lib/sinl.c: Likewise.
28338         * lib/sqrtl.c: Likewise.
28339         * lib/tanl.c: Likewise.
28340
28341         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
28342         * lib/isnanf.h: Remove file.
28343         * lib/isnand.h: Remove file.
28344         * lib/isnanl.h: Remove file.
28345         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
28346         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
28347         macros.
28348         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
28349         HAVE_ISNANF, don't define it as a C macro.
28350         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
28351         HAVE_ISNAND, don't define it as a C macro.
28352         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
28353         HAVE_ISNANL, don't define it as a C macro.
28354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
28355         HAVE_ISNAN[FDL].
28356         * modules/isnanf (Files): Remove lib/isnanf.h.
28357         (Depends-on): Add math.
28358         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28359         (Include): Specify <math.h> instead of isnanf.h.
28360         * modules/isnand (Files): Remove lib/isnand.h.
28361         (Depends-on): Add math.
28362         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28363         (Include): Specify <math.h> instead of isnand.h.
28364         * modules/isnanl (Files): Remove lib/isnanl.h.
28365         (Depends-on): Add math.
28366         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28367         (Include): Specify <math.h> instead of isnanl.h.
28368         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
28369         HAVE_ISNAN[FDL].
28370         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
28371         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
28372         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
28373         * NEWS: Mention the change.
28374
28375 2008-10-18  Bruno Haible  <bruno@clisp.org>
28376
28377         Add getusershell(), setusershell(), endusershell() declarations to
28378         <unistd.h>.
28379         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
28380         declarations.
28381         * lib/getusershell.c: Include unistd.h.
28382         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
28383         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28384         HAVE_GETUSERSHELL.
28385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
28386         and HAVE_GETUSERSHELL.
28387         * modules/getusershell (Depends-on): Add unistd, extensions.
28388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28389         (Include): Specify <unistd.h>.
28390         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
28391         HAVE_GETUSERSHELL.
28392
28393 2008-10-18  Bruno Haible  <bruno@clisp.org>
28394
28395         Add a getloadavg() declaration to <stdlib.h>.
28396         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28397         getloadavg declaration.
28398         (getloadavg): New declaration.
28399         * lib/getloadavg.c: Include <stdlib.h> first.
28400         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28401         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28402         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28404         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28405         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28406         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28407         (Include): Specify <stdlib.h>.
28408         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28409         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28410
28411 2008-10-18  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/dirchownmod.c: Don't include lchmod.h.
28414
28415         Move the lchmod() declaration to <sys/stat.h>.
28416         * lib/lchmod.h: Remove file.
28417         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28418         (lchmod): New declaration, moved here from lib/lchown.h.
28419         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28420         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28421         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28422         and HAVE_LCHMOD.
28423         * modules/lchmod (Files): Remove lib/lchmod.h.
28424         (Depends-on): Add sys_stat, extensions.
28425         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28426         (Include): Specify <sys/stat.h> instead of lchmod.h.
28427         * modules/sys_stat (Depends-on): Add link-warning.
28428         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28429         definition of GL_LINK_WARNING.
28430         * NEWS: Mention the change.
28431
28432 2008-10-18  Bruno Haible  <bruno@clisp.org>
28433
28434         * lib/fchdir.c: Don't include dirfd.h.
28435         * lib/fts.c: Likewise.
28436         * lib/getcwd.c: Likewise.
28437         * lib/glob.c: Likewise.
28438
28439         Move the dirfd() declaration to <dirent.h>.
28440         * lib/dirfd.h: Remove file.
28441         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28442         (dirfd): New declaration.
28443         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28444         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28445         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28446         HAVE_DECL_DIRFD.
28447         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28448         HAVE_DECL_DIRFD.
28449         * modules/dirfd (Files): Remove lib/dirfd.h.
28450         (Depends-on): Add dirent, extensions.
28451         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28452         (Include): Specify <dirent.h> instead of dirfd.h.
28453         * modules/dirent (Depends-on): Add link-warning.
28454         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28455         definition of GL_LINK_WARNING.
28456         * NEWS: Mention the change.
28457
28458 2008-10-18  Bruno Haible  <bruno@clisp.org>
28459
28460         Move the euidaccess() declaration to <unistd.h>.
28461         * lib/euidaccess.h: Remove file.
28462         * lib/unistd.in.h (euidaccess): New declaration.
28463         * lib/euidaccess.c: Don't include euidaccess.h.
28464         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28465         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28467         and HAVE_EUIDACCESS.
28468         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28469         (Depends-on): Add unistd.
28470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28471         (Include): Specify <unistd.h> instead of euidaccess.h.
28472         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28473         HAVE_EUIDACCESS.
28474         * NEWS: Mention the change.
28475
28476 2008-10-18  Bruno Haible  <bruno@clisp.org>
28477
28478         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28479
28480         Move the getdomainname() declaration to <unistd.h>.
28481         * lib/getdomainname.h: Remove file.
28482         * lib/unistd.in.h (getdomainname): New declaration.
28483         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28484         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28485         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28486         HAVE_GETDOMAINNAME.
28487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28488         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28489         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28490         (Depends-on): Add unistd, extensions.
28491         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28492         (Includes): Specify <unistd.h> instead of getdomainname.h.
28493         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28494         HAVE_GETDOMAINNAME.
28495         * NEWS: Mention the change.
28496
28497 2008-10-18  Bruno Haible  <bruno@clisp.org>
28498
28499         * modules/dirent: New file.
28500         * m4/dirent_h.m4: New file.
28501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28502         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28503         * modules/fchdir (Files): Remove lib/dirent.in.h.
28504         (Depends-on): Add dirent.
28505         (Makefile.am): Move rules to modules/dirent.
28506         * doc/posix-headers/dirent.texi: Mention the new module.
28507
28508 2008-10-18  Bruno Haible  <bruno@clisp.org>
28509
28510         Avoid -Wunused-parameter warnings in public gnulib header files.
28511         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28512         macro.
28513         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28514
28515 2008-10-18  Bruno Haible  <bruno@clisp.org>
28516
28517         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28518         * doc/glibc-functions/error.texi: Mention the module 'error'.
28519         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28520         * doc/glibc-functions/getdomainname.texi: Mention the module
28521         'getdomainname'.
28522         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28523         * doc/glibc-functions/getpagesize.texi: Mention the module
28524         'getpagesize'.
28525         * doc/glibc-functions/getusershell.texi: Mention the module
28526         'getusershell'.
28527         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28528         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28529         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28530         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28531         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28532         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28533         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28534         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28535         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28536         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28537         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28538         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28539         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28540         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28541
28542 2008-10-17  Bruno Haible  <bruno@clisp.org>
28543
28544         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28545         HP-UX and IRIX, use -0.0L.
28546         * tests/test-ceill.c (minus_zero): Likewise.
28547         * tests/test-floorl.c (minus_zero): Likewise.
28548         * tests/test-frexpl.c (minus_zero): Likewise.
28549         * tests/test-isnan.c (minus_zerol): Likewise.
28550         * tests/test-isnanl.h (minus_zero): Likewise.
28551         * tests/test-ldexpl.c (minus_zero): Likewise.
28552         * tests/test-roundl.c (minus_zero): Likewise.
28553         * tests/test-signbit.c (minus_zerol): Likewise.
28554         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28555         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28556         * tests/test-truncl.c (minus_zero): Likewise.
28557         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28558         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28559         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28560         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28561
28562 2008-10-17  Bruno Haible  <bruno@clisp.org>
28563
28564         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28565         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28566         that it gets activated only for gcc >= 3.0.
28567         * lib/dirent.in.h: Likewise.
28568         * lib/errno.in.h: Likewise.
28569         * lib/fcntl.in.h: Likewise.
28570         * lib/float.in.h: Likewise.
28571         * lib/iconv.in.h: Likewise.
28572         * lib/inttypes.in.h: Likewise.
28573         * lib/locale.in.h: Likewise.
28574         * lib/math.in.h: Likewise.
28575         * lib/netdb.in.h: Likewise.
28576         * lib/netinet_in.in.h: Likewise.
28577         * lib/search.in.h: Likewise.
28578         * lib/signal.in.h: Likewise.
28579         * lib/spawn.in.h: Likewise.
28580         * lib/stdarg.in.h: Likewise.
28581         * lib/stdint.in.h: Likewise.
28582         * lib/stdio.in.h: Likewise.
28583         * lib/stdlib.in.h: Likewise.
28584         * lib/string.in.h: Likewise.
28585         * lib/strings.in.h: Likewise.
28586         * lib/sys_file.in.h: Likewise.
28587         * lib/sys_ioctl.in.h: Likewise.
28588         * lib/sys_select.in.h: Likewise.
28589         * lib/sys_socket.in.h: Likewise.
28590         * lib/sys_stat.in.h: Likewise.
28591         * lib/sys_time.in.h: Likewise.
28592         * lib/sysexits.in.h: Likewise.
28593         * lib/time.in.h: Likewise.
28594         * lib/unistd.in.h: Likewise.
28595         * lib/wchar.in.h: Likewise.
28596         * lib/wctype.in.h: Likewise.
28597         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28598
28599 2008-10-17  Jim Meyering  <meyering@redhat.com>
28600
28601         ignore-value: don't depend on inline module
28602         * modules/ignore-value (Depends-on): Remove 'inline'.
28603         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28604         Suggestion from Bruno Haible.
28605
28606 2008-10-17  Bruno Haible  <bruno@clisp.org>
28607
28608         New implementation of condition variables for Win32.
28609         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28610         (gl_linked_waitqueue_t): New type.
28611         (gl_cond_t): Use it.
28612         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28613         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28614         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28615         (glthread_cond_init_func, glthread_cond_wait_func,
28616         glthread_cond_timedwait_func, glthread_cond_signal_func,
28617         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28618         Reimplemented on the basis of gl_linked_waitqueue_t.
28619         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28620         gl_waitqueue_t.
28621         (gl_rwlock_t): Update.
28622         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28623
28624 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28625
28626         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28627         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28628
28629 2008-10-17  Jim Meyering  <meyering@redhat.com>
28630
28631         ignore-value: new module
28632         * modules/ignore-value: New file.
28633         * lib/ignore-value.h: New file.
28634         * MODULES.html.sh (Compiler warning management): New section,
28635         just for this module.  More to come.
28636
28637 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28638
28639         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28640         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28641         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28642
28643 2008-10-16  Jim Meyering  <meyering@redhat.com>
28644
28645         openat-die.c: avoid 'no previous prototype' warning
28646         * lib/openat-die.c: Include "openat.h".
28647         Reported by Reuben Thomas <rrt@sc3d.org>.
28648
28649 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28650
28651         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28652         * lib/netdb.in.h: Fix typo.
28653         Reported by Bruno Haible  <bruno@clisp.org>
28654
28655         * lib/netdb.in.h: Include sys/socket.h for platforms without
28656         netdb.h, to get structures like hostent on MinGW.
28657         * modules/netdb (Depends-on): Add sys_socket.
28658
28659 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28660
28661         * modules/netdb, modules/netdb-tests: New file.
28662         * m4/netdb_h.m4: New file.
28663         * lib/netdb.in.h: Add, currently just an empty file pending
28664         definitions.
28665         * tests/test-netdb.c: New file.
28666         * doc/posix-headers/netdb.texi: Mention that we replace it if
28667         needed.
28668         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28669         netdb.
28670
28671 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28672
28673         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
28674         with code.
28675
28676 2008-10-13  Bruno Haible  <bruno@clisp.org>
28677
28678         * lib/glthread/cond.c (glthread_cond_wait_func,
28679         glthread_cond_timedwait_func): Add a comment.
28680
28681 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28682
28683         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
28684         * tests/test-select.c: Likewise,
28685
28686 2008-10-13  Bruno Haible  <bruno@clisp.org>
28687
28688         * lib/glthread/cond.c (glthread_cond_wait_func,
28689         glthread_cond_timedwait_func): Fix variable name.
28690         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28691
28692 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
28693
28694         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
28695         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
28696         struct sockaddr.sa_len.
28697         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
28698
28699 2008-10-13  Simon Josefsson  <simon@josefsson.org>
28700
28701         * build-aux/pmccabe2html: Add css and css_url parameters.
28702
28703 2008-10-12  Bruno Haible  <bruno@clisp.org>
28704
28705         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
28706         calling aclx_get.
28707         Reported by Rainer Tammer <tammer@tammer.net>.
28708
28709 2008-10-12  Bruno Haible  <bruno@clisp.org>
28710
28711         Use msvcrt aware primitives for creation/termination of Win32 threads.
28712         * lib/glthread/thread.c: Include <process.h>.
28713         (glthread_create_func): Use _beginthreadex instead of CreateThread.
28714         (wrapper_func): Update signature.
28715         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
28716
28717 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28718             Bruno Haible  <bruno@clisp.org>
28719
28720         Provide a Win32 implementation of the 'cond' module.
28721         * lib/glthread/cond.h [USE_WIN32]: New implementation.
28722         * lib/glthread/cond.c (glthread_cond_init_func,
28723         glthread_cond_wait_func, glthread_cond_timedwait_func,
28724         glthread_cond_signal_func, glthread_cond_broadcast_func,
28725         glthread_cond_destroy_func) [USE_WIN32]: New functions.
28726         * modules/cond (Dependencies): Add gettimeofday.
28727
28728 2008-10-11  Bruno Haible  <bruno@clisp.org>
28729
28730         Make sleep work on older versions of mingw.
28731         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
28732         only whether it exists.
28733         * doc/posix-functions/sleep.texi: Mention the problem with older
28734         versions of mingw.
28735
28736 2008-10-11  Bruno Haible  <bruno@clisp.org>
28737
28738         New module 'shutdown'.
28739         * modules/shutdown: New file.
28740         * lib/sys_socket.in.h (shutdown): New declaration.
28741         * lib/winsock.c (shutdown): New function.
28742         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28743         GNULIB_SHUTDOWN.
28744         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
28745         * doc/posix-functions/shutdown.texi: Document the new module.
28746
28747 2008-10-11  Jim Meyering  <meyering@redhat.com>
28748
28749         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
28750
28751 2008-10-11  Bruno Haible  <bruno@clisp.org>
28752
28753         New module 'fclose'.
28754         * modules/fclose: New file.
28755         * lib/stdio.in.h (fclose): New declaration.
28756         * lib/fclose.c: New file.
28757         * m4/fclose.m4: New file.
28758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
28759         REPLACE_FCLOSE.
28760         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
28761         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
28762         REPLACE_FCLOSE.
28763         * modules/close (Depends-on): fclose.
28764         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
28765
28766 2008-10-11  Bruno Haible  <bruno@clisp.org>
28767
28768         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
28769         set errno and don't call _close.
28770
28771 2008-10-10  Bruno Haible  <bruno@clisp.org>
28772
28773         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28774         ACL, not afterwards. Fixes test failure on Cygwin.
28775
28776 2008-10-09  Ben Pfaff  <blp@gnu.org>
28777
28778         * build-aux/announce-gen: Fix gnulib version related part of usage
28779         message.  Die with a useful error message if no tarballs are
28780         found.
28781
28782 2008-10-10  Jim Meyering  <meyering@redhat.com>
28783
28784         bootstrap: use git's --depth=N option only if it's supported
28785         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
28786         recognize the --depth option.  Reported by Pádraig Brady.
28787
28788 2008-10-09  Bruno Haible  <bruno@clisp.org>
28789
28790         New module 'ioctl'.
28791         * modules/ioctl: New file.
28792         * lib/sys_socket.in.h (ioctl): Remove declaration.
28793         * lib/winsock.c: Include <sys/ioctl.h>.
28794         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
28795         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28796         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
28797         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
28798         * doc/posix-functions/ioctl.texi: Mention the new module.
28799
28800 2008-10-09  Bruno Haible  <bruno@clisp.org>
28801
28802         New module 'sys_ioctl'.
28803         * lib/sys_ioctl.in.h: New file.
28804         * m4/sys_ioctl_h.m4: New file.
28805         * modules/sys_ioctl: New file.
28806         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
28807
28808 2008-10-09  Bruno Haible  <bruno@clisp.org>
28809
28810         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
28811         * lib/winsock.c: Include <stdarg.h>.
28812         (rpl_ioctl): Change to second argument 'int' and then varargs.
28813
28814 2008-10-09  Bruno Haible  <bruno@clisp.org>
28815
28816         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
28817         when the sys_socket module is present and the system has <winsock2.h>.
28818
28819 2008-10-09  Bruno Haible  <bruno@clisp.org>
28820
28821         * doc/posix-functions/close.texi: Mention module 'close' instead of
28822         module 'sys_socket'.
28823
28824 2008-10-09  Bruno Haible  <bruno@clisp.org>
28825
28826         * doc/glibc-headers/sys_ioctl.texi: New file.
28827         * doc/gnulib.texi: Include it.
28828
28829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28830             Bruno Haible  <bruno@clisp.org>
28831
28832         Combine the two replacements of 'close'.
28833         * lib/sys_socket.in.h (close): Define to a reminder to include
28834         <unistd.h>.
28835         (_gl_close_fd_maybe_socket): New declaration.
28836         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
28837         * lib/winsock.c (close): Remove undefinition.
28838         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28839         needed for the gnulib module 'close'.
28840         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28841         define to an error symbol or to a warning, if suitable.
28842         * lib/close.c: Include <sys/socket.h>.
28843         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28844         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28845         UNISTD_H_HAVE_WINSOCK2_H.
28846         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28848         UNISTD_H_HAVE_WINSOCK2_H.
28849         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28850         (configure.ac): Set a module indicator.
28851         (Makefile.am): Substitute GNULIB_CLOSE.
28852         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28853         * modules/poll-tests (Depends-on): Add close.
28854         * modules/select-tests (Depends-on): Likewise.
28855
28856 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28857             Bruno Haible  <bruno@clisp.org>
28858
28859         New module 'close'.
28860         * modules/close: New file.
28861         * lib/unistd.in.h (close): Move declaration out of the
28862         FCHDIR_REPLACEMENT scope.
28863         (_gl_unregister_fd): New declaration.
28864         * lib/close.c: New file.
28865         * lib/fchdir.c (rpl_close): Remove function.
28866         * m4/close.m4: New file.
28867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28868         close.
28869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28870         REPLACE_CLOSE.
28871         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28872         REPLACE_CLOSE.
28873         * modules/fchdir (Depends-on): Add close.
28874
28875 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28876             Bruno Haible  <bruno@clisp.org>
28877
28878         * lib/fcntl.in.h (open): Simplify conditionals.
28879         (_gl_register_fd): New declaration.
28880         * lib/fchdir.c (rpl_open): Remove function.
28881         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28882         also.
28883         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28885         open.
28886
28887 2008-10-09  Jim Meyering  <meyering@redhat.com>
28888
28889         GNUmakefile: use the more name-space-friendly "_version"
28890         * top/GNUmakefile (_dummy): Update.
28891         (_version): Rename from "version".
28892
28893 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28894             Bruno Haible  <bruno@clisp.org>
28895
28896         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28897         rpl_close.
28898         (_gl_register_fd): New function, extracted from rpl_open.
28899         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28900         (rpl_open, rpl_opendir): Use _gl_register_fd.
28901
28902 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28903
28904         Fix organization of 'open' replacement.
28905         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28906         (gl_FUNC_OPEN): Use it.
28907         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28908
28909 2008-10-08  Bruno Haible  <bruno@clisp.org>
28910
28911         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28912
28913 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28914
28915         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28916         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28917         listen).
28918
28919 2008-10-08  Eric Blake  <ebb9@byu.net>
28920
28921         GNUmakefile: add 'make version' target
28922         * top/GNUmakefile (_curr-ver): Split version update rules...
28923         (version): ...into a target.
28924
28925 2008-10-07  Bruno Haible  <bruno@clisp.org>
28926
28927         Use a more portable replacement expression for -0.0L.
28928         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28929         instead of -0.0L. Fix m4 quotation.
28930
28931         * tests/test-signbit.c: Include <float.h>.
28932         (minus_zero): New variable.
28933         (test_signbitl): Use minus_zero instead of -zero.
28934         * modules/signbit-tests (Depends-on): Add float.
28935
28936         * tests/test-ceill.c: Include <float.h>.
28937         (zero): Remove variable.
28938         (minus_zero): New variable.
28939         (main): Use minus_zero instead of -zero.
28940         * modules/ceill-tests (Depends-on): Add float.
28941
28942         * tests/test-floorl.c: Include <float.h>.
28943         (zero): Remove variable.
28944         (minus_zero): New variable.
28945         (main): Use minus_zero instead of -zero.
28946         * modules/floorl-tests (Depends-on): Add float.
28947
28948         * tests/test-roundl.c: Include <float.h>.
28949         (zero): Remove variable.
28950         (minus_zero): New variable.
28951         (main): Use minus_zero instead of -zero.
28952         * modules/roundl-tests (Depends-on): Add float.
28953
28954         * tests/test-truncl.c: Include <float.h>.
28955         (zero): Remove variable.
28956         (minus_zero): New variable.
28957         (main): Use minus_zero instead of -zero.
28958         * modules/truncl-tests (Depends-on): Add float.
28959
28960         * tests/test-frexpl.c (zero): Remove variable.
28961         (minus_zero): New variable.
28962         (main): Use minus_zero instead of -zero.
28963         * modules/frexpl-tests (Depends-on): Add float.
28964
28965         * tests/test-isnan.c (zerol): Remove variable.
28966         (minus_zerol): New variable.
28967         (test_long_double): Use minus_zerol instead of -zerol.
28968         * modules/isnan-tests (Depends-on): Add float.
28969
28970         * tests/test-isnanl.h (zero): Remove variable.
28971         (minus_zero): New variable.
28972         (main): Use minus_zero instead of -zero.
28973         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28974         * modules/isnanl-tests (Depends-on): Add float.
28975
28976         * tests/test-ldexpl.c (zero): Remove variable.
28977         (minus_zero): New variable.
28978         (main): Use minus_zero instead of -zero.
28979         * modules/ldexpl-tests (Depends-on): Add float.
28980
28981         * tests/test-snprintf-posix.h (zerol): Remove variable.
28982         (minus_zerol): New variable.
28983         (test_function): Use minus_zerol instead of -zerol.
28984         * modules/snprintf-posix-tests (Depends-on): Add float.
28985         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28986
28987         * tests/test-sprintf-posix.h (zerol): Remove variable.
28988         (minus_zerol): New variable.
28989         (test_function): Use minus_zerol instead of -zerol.
28990         * modules/sprintf-posix-tests (Depends-on): Add float.
28991         * modules/vsprintf-posix-tests (Depends-on): Add float.
28992
28993         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28994         (minus_zerol): New variable.
28995         (test_function): Use minus_zerol instead of -zerol.
28996         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28997
28998         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28999         (minus_zerol): New variable.
29000         (test_function): Use minus_zerol instead of -zerol.
29001         * modules/vasprintf-posix-tests (Depends-on): Add float.
29002
29003 2008-10-07  Simon Josefsson  <simon@josefsson.org>
29004
29005         * MODULES.html.sh (Support for building documentation): Mention
29006         pmccabe2html.  Sort entries.
29007
29008         Add pmccabe2html module, from gnupdf.
29009         * build-aux/pmccabe.css: New file.
29010         * build-aux/pmccabe2html: New file.
29011         * m4/pmccabe2html.m4: New file.
29012         * modules/pmccabe2html: New file.
29013
29014 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
29015
29016         flock: new module
29017         * MODULES.html.sh: Add to list of modules.
29018         * lib/flock.c: flock implementation for Windows and Unix systems
29019         which have fcntl.
29020         * doc/glibc-functions/flock.texi: Update documentation.
29021         * lib/sys_file.in.h: <sys/file.h> header file.
29022         * m4/flock.m4: M4 macros.
29023         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
29024         * modules/flock: flock module.
29025         * modules/flock-tests: flock tests module.
29026         * modules/sys_file: sys/file.h module.
29027         * tests/test-flock.c: test suite for flock.
29028
29029 2008-10-06  Jim Meyering  <meyering@redhat.com>
29030
29031         bootstrap: check for LT_INIT more portably still ;-)
29032         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
29033         Spotted by Bruno Haible.
29034
29035 2008-10-06  Eric Blake  <ebb9@byu.net>
29036
29037         test-signbit: avoid tripping Irix cc bug on -0.0L
29038         * tests/test-signbit.c (minus_zerol): Delete, and replace with
29039         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
29040         entire testsuite consistent and avoids an Irix 6.2 bug.
29041
29042 2008-10-05  Bruno Haible  <bruno@clisp.org>
29043             Jim Meyering  <jim@meyering.net>
29044
29045         Add an option for ignoring EPIPE during close_stdout.
29046         * lib/closeout.h: Include <stdbool.h>.
29047         (close_stdout_set_ignore_EPIPE): New declaration.
29048         * lib/closeout.c: Include <stdbool.h>.
29049         (ignore_EPIPE): New variable.
29050         (close_stdout_set_ignore_EPIPE): New function.
29051         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
29052         * lib/close-stream.c (close_stream): Mention the possible EPIPE
29053         failure.
29054         * modules/closeout (Depends-on): Add stdbool.
29055
29056 2008-10-05  Bruno Haible  <bruno@clisp.org>
29057
29058         * modules/accept: New file.
29059         * modules/bind: New file.
29060         * modules/connect: New file.
29061         * modules/getpeername: New file.
29062         * modules/getsockname: New file.
29063         * modules/getsockopt: New file.
29064         * modules/listen: New file.
29065         * modules/recv: New file.
29066         * modules/recvfrom: New file.
29067         * modules/send: New file.
29068         * modules/sendto: New file.
29069         * modules/setsockopt: New file.
29070         * modules/socket: New file.
29071         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
29072         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29073         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
29074         the particular module is requested. Add a link warning when the
29075         particular module is not requested.
29076         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
29077         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
29078         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
29079         the particular module is requested.
29080         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
29081         gl_SYS_SOCKET_H_DEFAULTS): New macros.
29082         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
29083         * modules/sys_socket (Depends-on): Add link-warning.
29084         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
29085         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
29086         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
29087         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
29088         GL_LINK_WARNING.
29089         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
29090         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
29091         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
29092         * doc/posix-functions/getpeername.texi: Mention the new module
29093         'getpeername'.
29094         * doc/posix-functions/getsockname.texi: Mention the new module
29095         'getsockname'.
29096         * doc/posix-functions/getsockopt.texi: Mention the new module
29097         'getsockopt'.
29098         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
29099         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
29100         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
29101         * doc/posix-functions/send.texi: Mention the new module 'send'.
29102         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
29103         * doc/posix-functions/setsockopt.texi: Mention the new module
29104         'setsockopt'.
29105         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
29106         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
29107         listen, connect, accept.
29108         * modules/select-tests (Depends-on): Likewise.
29109
29110 2008-10-05  Bruno Haible  <bruno@clisp.org>
29111
29112         * lib/winsock.c (strerror): Remove unused #undef.
29113         (rpl_close): Remove unused local variable.
29114
29115         * modules/sys_socket (Depends-on); Add errno.
29116
29117 2008-10-05  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
29120         (select): Add a link warning when the 'select' module is not used.
29121         * modules/sys_select (Depends-on): Add link-warning.
29122         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
29123         Suggested by Paolo Bonzini.
29124
29125 2008-10-05  Jim Meyering  <meyering@redhat.com>
29126
29127         bootstrap: check for LT_INIT more portably
29128         * build-aux/bootstrap: Avoid using grep -E, since it's not
29129         portable enough.  Suggestion from Bruno Haible.
29130
29131 2008-10-05  Bruno Haible  <bruno@clisp.org>
29132
29133         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
29134         as being fixed by gnulib.
29135
29136 2008-10-05  Bruno Haible  <bruno@clisp.org>
29137
29138         * modules/select-tests: New file, mostly copied from
29139         modules/sys_select-tests.
29140         * tests/test-select.c: New file, mostly copied from
29141         tests/test-sys_select.c.
29142         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
29143         * modules/sys_select-tests (Depends-on): Remove all dependencies.
29144         (Makefile.am): Remove test_sys_select_LDADD.
29145
29146         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
29147         to an undefined symbol, for an error message.
29148         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
29149         (gl_SYS_SELECT_H_DEFAULTS): New macro.
29150         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
29151         winsock-select.c here.
29152         * modules/sys_select (Files): Remove lib/winsock-select.c.
29153         (Depends-on): Remove alloca.
29154         (Makefile.am): Substitute GNULIB_SELECT.
29155         * modules/select: New file.
29156         * doc/posix-functions/select.texi: Update.
29157
29158 2008-10-05  Bruno Haible  <bruno@clisp.org>
29159
29160         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
29161         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
29162         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
29163         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
29164         getdtablesize.
29165         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
29166         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
29167
29168 2008-10-05  Bruno Haible  <bruno@clisp.org>
29169
29170         * modules/getdtablesize-tests: New file.
29171         * tests/test-getdtablesize.c: New file.
29172
29173         New module 'getdtablesize'.
29174         * lib/unistd.in.h (getdtablesize): New declaration.
29175         * lib/getdtablesize.c: New file.
29176         * m4/getdtablesize.m4: New file.
29177         * modules/getdtablesize: New file.
29178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29179         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
29180         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
29181         HAVE_GETDTABLESIZE.
29182         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
29183
29184 2008-10-05  Bruno Haible  <bruno@clisp.org>
29185
29186         * modules/sched (Makefile.am): Fix typo.
29187         Reported by Simon Josefsson.
29188
29189 2008-10-05  Jim Meyering  <meyering@redhat.com>
29190
29191         bootstrap: check for LT_INIT, too
29192         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
29193         are deprecated.  Suggestion from Ralf Wildenhues.
29194
29195 2008-10-05  Bruno Haible  <bruno@clisp.org>
29196
29197         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
29198         overriding them by ours.
29199         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
29200
29201 2008-10-05  Jim Meyering  <meyering@redhat.com>
29202
29203         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
29204         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
29205         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
29206
29207 2008-10-04  Bruno Haible  <bruno@clisp.org>
29208
29209         * modules/dup2 (License): Change to LGPLv2+.
29210         * modules/sleep (License): Likewise.
29211         * modules/perror (License): Likewise.
29212         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
29213         Blake.
29214         * modules/signal (License): Likewise.
29215         * modules/sigprocmask (License): Likewise.
29216         * modules/raise (License): Change to LGPLv2+, with approval by Jim
29217         Meyering.
29218
29219 2008-10-04  Bruno Haible  <bruno@clisp.org>
29220
29221         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
29222         Reported by Rainer Tammer <tammer@tammer.net>.
29223
29224 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
29225             Bruno Haible  <bruno@clisp.org>
29226
29227         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
29228         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
29229         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
29230
29231 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
29232
29233         filevercmp: new module
29234         * lib/filevercmp.h: New function filevercmp comparing version strings.
29235         * lib/filevercmp.c: Implementation of filevercmp function.
29236         * modules/filevercmp: Module metadata.
29237         * tests/test-filevercmp.c: Unit test for new module.
29238         * modules/filevercmp-tests: Unit test metadata.
29239         * MODULES.html.sh: Add filevercmp module.
29240
29241 2008-10-03  Bruno Haible  <bruno@clisp.org>
29242
29243         * lib/c-ctype.h: Add comment.
29244         Reported by Jim Meyering.
29245
29246 2008-10-02  Bruno Haible  <bruno@clisp.org>
29247
29248         * modules/posix_spawn-internal (Depends-on): Add 'open'.
29249
29250 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29251
29252         * build-aux/bootstrap: Allow renaming bootstrap, and change the
29253         name of bootstrap.conf accordingly.
29254
29255 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29256
29257         * build-aux/bootstrap: Install git-merge-changelog configuration
29258         items into .gitconfig if needed.
29259
29260 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29261
29262         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
29263         git repository, and initialize/update it accordingly.
29264
29265 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
29266
29267         * modules/fsync-tests: New file.
29268         * tests/test-fsync.c: New file.
29269
29270         New module 'fsync'.
29271         * lib/fsync.c: New file.
29272         * m4/fsync.m4: New file.
29273         * modules/fsync: New file.
29274         * lib/unistd.in.h (fsync): New declaration.
29275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
29276         GNULIB_FSYNC and HAVE_FSYNC.
29277         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
29278         * MODULES.html.sh (posix_functions): Add fsync.
29279         * doc/posix-functions/fsync.texi: Mention the new module.
29280
29281 2008-10-02  Jim Meyering  <meyering@redhat.com>
29282
29283         fts.c: sync with similar code from coreutils' remove.c
29284         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
29285         Guard also with "#if defined __linux__", since for now at least,
29286         this code is Linux-kernel-specific.
29287
29288 2008-10-02  Jim Meyering  <meyering@redhat.com>
29289
29290         fts: bug fixes
29291         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
29292         Include <sys/vfs.h>, not <sys/statfs.h>.
29293
29294         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
29295         Include <sys/vfs.h>, not <sys/statfs.h>.
29296
29297 2008-10-01  Bruno Haible  <bruno@clisp.org>
29298
29299         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
29300         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
29301         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
29302         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
29303         * doc/posix-functions/posix_spawnp.texi: Likewise.
29304         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
29305         whether posix_spawn actually works.
29306         * m4/pipe.m4 (gl_PIPE): Likewise.
29307         * modules/execute (Files): Add m4/posix_spawn.m4.
29308         * modules/pipe (Files): Add m4/posix_spawn.m4.
29309         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
29310
29311 2008-10-01  Jim Meyering  <meyering@redhat.com>
29312
29313         remove trailing spaces
29314         * NEWS: Likewise.
29315         * lib/poll.c (poll): Likewise.
29316         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
29317         * lib/winsock.c (rpl_close): Likewise.
29318         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
29319         * modules/yield: Likewise.
29320         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
29321         * tests/test-sys_select.c (connect_to_socket): Likewise.
29322
29323         fts.c: adjust a new interface to be more generally useful
29324         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
29325         (fts_build): Adjust caller.
29326
29327 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29328
29329         * modules/cond-tests: New file.
29330         * tests/test-cond.c: New file.
29331
29332 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29333             Bruno Haible  <bruno@clisp.org>
29334
29335         * modules/cond (Dependencies): Add errno, time.
29336         * lib/glthread/cond.h: Include <time.h>.
29337         (gl_cond_define, gl_cond_define_initialized): Use the same definition
29338         across platforms.
29339
29340 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29341             Bruno Haible  <bruno@clisp.org>
29342
29343         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
29344
29345 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29346             Bruno Haible  <bruno@clisp.org>
29347
29348         * modules/tls-tests (Depends-on): Add thread, yield.
29349         (configure.ac): Remove all checks.
29350         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
29351         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29352         gl_thread_self): Remove definitions. Include glthread/thread.h and
29353         glthread/yield.h instead.
29354         (test_tls): Pass an additional NULL argument to gl_thread_join.
29355
29356 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29357             Bruno Haible  <bruno@clisp.org>
29358
29359         * modules/lock-tests (Depends-on): Add thread, yield.
29360         (configure.ac): Remove all checks.
29361         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
29362         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29363         gl_thread_self): Remove definitions. Include glthread/thread.h and
29364         glthread/yield.h instead.
29365         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
29366         additional NULL argument to gl_thread_join.
29367
29368 2008-09-30  Bruno Haible  <bruno@clisp.org>
29369
29370         Fix the Win32 implementation of the 'thread' module.
29371         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
29372         pointer type.
29373         (gl_thread_self): Invoke gl_thread_self_func.
29374         (gl_thread_self_func): New declaration.
29375         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
29376         (do_init_self_key, init_self_key): New functions.
29377         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
29378         Remove some fields.
29379         (running_threads, running_lock): Remove variables.
29380         (get_current_thread_handle): New function.
29381         (gl_thread_self_func, wrapper_func, glthread_create_func,
29382         glthread_join_func, gl_thread_exit_func): Largely rewritten and
29383         simplified.
29384
29385 2008-09-30  Bruno Haible  <bruno@clisp.org>
29386
29387         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
29388         files.
29389
29390 2008-09-30  Jim Meyering  <meyering@redhat.com>
29391
29392         fts.m4: correct the test for statfs.f_type
29393         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29394         when checking for statfs.f_type.
29395
29396 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29397
29398         tests: avoid some compiler warnings
29399         * tests/test-memchr.c (main): Pass NULL indirectly.
29400         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29401
29402 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29403
29404         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29405         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29406         exactly specified dayshifts.
29407         (dayshift): New rule.
29408         (rel): Add dayshift.
29409         (relative_time_table) [tomorrow, yesterday, today, now]:
29410         Use tDAY_SHIFT in place of tDAY_UNIT.
29411         * tests/test-getdate.c: Add tests for now-disallowed countable
29412         dayshifts, e.g., "4 yesterday ago".
29413
29414 2008-09-29  Bruno Haible  <bruno@clisp.org>
29415
29416         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29417         * tests/test-posix_spawn1.in.sh: Renamed from
29418         tests/test-posix_spawn.in.sh.
29419         * tests/test-posix_spawn2.c: New file.
29420         * tests/test-posix_spawn2.in.sh: New file.
29421         * modules/posix_spawnp-tests (Files): Update.
29422         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29423
29424 2008-09-29  Bruno Haible  <bruno@clisp.org>
29425
29426         Propagate effects of putenv/setenv/unsetenv to child processes.
29427         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29428         * lib/pipe.c (create_pipe): Likewise.
29429
29430 2008-09-29  Bruno Haible  <bruno@clisp.org>
29431
29432         Enable use of shell scripts as executables in mingw.
29433         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29434         run the program as a shell script.
29435         * lib/pipe.c (create_pipe): Likewise.
29436         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29437         resulting array.
29438
29439 2008-09-29  Eric Blake  <ebb9@byu.net>
29440
29441         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29442
29443 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29444
29445         * doc/posix-functions/accept.texi: Update mingw problems.
29446         * doc/posix-functions/bind.texi: Update mingw problems.
29447         * doc/posix-functions/close.texi: Update mingw problems.
29448         * doc/posix-functions/connect.texi: Update mingw problems.
29449         * doc/posix-functions/getpeername.texi: Update mingw problems.
29450         * doc/posix-functions/getsockname.texi: Update mingw problems.
29451         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29452         * doc/posix-functions/ioctl.texi: Update mingw problems.
29453         * doc/posix-functions/listen.texi: Update mingw problems.
29454         * doc/posix-functions/recv.texi: Update mingw problems.
29455         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29456         * doc/posix-functions/select.texi: Update mingw problems.
29457         * doc/posix-functions/send.texi: Update mingw problems.
29458         * doc/posix-functions/sendto.texi: Update mingw problems.
29459         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29460         * doc/posix-functions/socket.texi: Update mingw problems.
29461
29462 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29463             Bruno Haible  <bruno@clisp.org>
29464
29465         * lib/sys_select.in.h: Include sys/time.h.
29466         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29467         * modules/sys_select: Depend on sys_time.
29468         * tests/test-sys_select.c: Test that sys/select.h defines struct
29469         timeval fully.
29470
29471 2008-09-29  Bruno Haible  <bruno@clisp.org>
29472
29473         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29474         * lib/sys_select.in.h: Likewise.
29475
29476 2008-09-29  Bruno Haible  <bruno@clisp.org>
29477
29478         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29479
29480 2008-09-29  Bruno Haible  <bruno@clisp.org>
29481
29482         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29483         Set LIBSOCKET instead of augmenting LIBS.
29484         * modules/sockets (Link): New section.
29485         * modules/sockets-tests (test_sockets_LDADD): New variable.
29486         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29487         * modules/poll-tests (test_poll_LDADD): New variable.
29488         * NEWS: Document the change.
29489
29490 2008-09-29  Bruno Haible  <bruno@clisp.org>
29491
29492         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29493         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29494         ARPA_INET_H directly.
29495         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29496
29497 2008-09-28  Bruno Haible  <bruno@clisp.org>
29498
29499         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29500         from gl_HEADER_SYS_SOCKET.
29501         (gl_HEADER_SYS_SOCKET): Invoke it.
29502         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29503
29504 2008-09-28  Bruno Haible  <bruno@clisp.org>
29505
29506         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29507         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29508         Needed on OSF/1 4.0.
29509
29510 2008-09-28  Bruno Haible  <bruno@clisp.org>
29511
29512         Override open more carefully.
29513         * lib/open.c (orig_open): New function.
29514         (rpl_open): Use orig_open instead of open.
29515         * lib/fcntl.in.h: Add special invocation convention.
29516         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29517         (gl_FUNC_OPEN): Invoke it.
29518
29519         Override freopen more carefully.
29520         * lib/freopen.c (orig_freopen): New function.
29521         (rpl_freopen): Use orig_freopen instead of freopen.
29522         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29523         (gl_FUNC_FREOPEN): Invoke it.
29524
29525         Override fopen more carefully.
29526         * lib/fopen.c (orig_fopen): New function.
29527         (rpl_fopen): Use orig_fopen instead of fopen.
29528         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29529         (gl_FUNC_FOPEN): Invoke it.
29530         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29531
29532 2008-09-28  Bruno Haible  <bruno@clisp.org>
29533
29534         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29535         SIGPIPE.
29536
29537 2008-09-28  Bruno Haible  <bruno@clisp.org>
29538
29539         * tests/test-sigaction.c (handler, main): Disable the check whether
29540         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29541         glibc systems with LinuxThreads.
29542
29543 2008-09-28  Bruno Haible  <bruno@clisp.org>
29544
29545         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29546
29547         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29548         with AIX xlc.
29549         * lib/fcntl.in.h (open): Likewise.
29550         Reported by Rainer Tammer <tammer@tammer.net>.
29551
29552 2008-09-28  Bruno Haible  <bruno@clisp.org>
29553
29554         * modules/posix_spawnp-tests: New file.
29555         * tests/test-posix_spawn.c: New file.
29556         * tests/test-posix_spawn.in.sh: New file.
29557
29558         New module 'posix_spawnp'.
29559         * modules/posix_spawnp: New file.
29560         * lib/spawnp.c: New file, from GNU libc with modifications.
29561         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29562
29563         New module 'posix_spawn'.
29564         * modules/posix_spawn: New file.
29565         * lib/spawn.c: New file, from GNU libc with modifications.
29566         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29567
29568         New module 'posix_spawnattr_destroy'.
29569         * modules/posix_spawnattr_destroy: New file.
29570         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29571         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29572         module.
29573
29574         New module 'posix_spawnattr_setsigmask'.
29575         * modules/posix_spawnattr_setsigmask: New file.
29576         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29577         modifications.
29578         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29579         new module.
29580
29581         New module 'posix_spawnattr_getsigmask'.
29582         * modules/posix_spawnattr_getsigmask: New file.
29583         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29584         modifications.
29585         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29586         new module.
29587
29588         New module 'posix_spawnattr_setsigdefault'.
29589         * modules/posix_spawnattr_setsigdefault: New file.
29590         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29591         modifications.
29592         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29593         new module.
29594
29595         New module 'posix_spawnattr_getsigdefault'.
29596         * modules/posix_spawnattr_getsigdefault: New file.
29597         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29598         modifications.
29599         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29600         new module.
29601
29602         New module 'posix_spawnattr_setschedpolicy'.
29603         * modules/posix_spawnattr_setschedpolicy: New file.
29604         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29605         modifications.
29606         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29607         new module.
29608
29609         New module 'posix_spawnattr_getschedpolicy'.
29610         * modules/posix_spawnattr_getschedpolicy: New file.
29611         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29612         modifications.
29613         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29614         new module.
29615
29616         New module 'posix_spawnattr_setschedparam'.
29617         * modules/posix_spawnattr_setschedparam: New file.
29618         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29619         modifications.
29620         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29621         new module.
29622
29623         New module 'posix_spawnattr_getschedparam'.
29624         * modules/posix_spawnattr_getschedparam: New file.
29625         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29626         modifications.
29627         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29628         new module.
29629
29630         New module 'posix_spawnattr_setpgroup'.
29631         * modules/posix_spawnattr_setpgroup: New file.
29632         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29633         modifications.
29634         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29635         module.
29636
29637         New module 'posix_spawnattr_getpgroup'.
29638         * modules/posix_spawnattr_getpgroup: New file.
29639         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29640         modifications.
29641         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29642         module.
29643
29644         New module 'posix_spawnattr_setflags'.
29645         * modules/posix_spawnattr_setflags: New file.
29646         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29647         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29648         module.
29649
29650         New module 'posix_spawnattr_getflags'.
29651         * modules/posix_spawnattr_getflags: New file.
29652         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29653         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29654         module.
29655
29656         New module 'posix_spawnattr_init'.
29657         * modules/posix_spawnattr_init: New file.
29658         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29659         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29660         module.
29661
29662         New module 'posix_spawn_file_actions_destroy'.
29663         * modules/posix_spawn_file_actions_destroy: New file.
29664         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29665         modifications.
29666         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29667         the new module.
29668
29669         New module 'posix_spawn_file_actions_addopen'.
29670         * modules/posix_spawn_file_actions_addopen: New file.
29671         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29672         modifications.
29673         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
29674         the new module.
29675
29676         New module 'posix_spawn_file_actions_adddup2'.
29677         * modules/posix_spawn_file_actions_adddup2: New file.
29678         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
29679         modifications.
29680         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
29681         the new module.
29682
29683         New module 'posix_spawn_file_actions_addclose'.
29684         * modules/posix_spawn_file_actions_addclose: New file.
29685         * lib/spawn_faction_addclose.c: New file, from GNU libc with
29686         modifications.
29687         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
29688         the new module.
29689
29690         New module 'posix_spawn_file_actions_init'.
29691         * modules/posix_spawn_file_actions_init: New file.
29692         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
29693         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
29694         new module.
29695
29696         New module 'posix_spawn-internal'.
29697         * modules/posix_spawn-internal: New file.
29698         * lib/spawn_int.h: New file, from GNU libc with modifications.
29699         * lib/spawni.c: New file, from GNU libc with modifications.
29700         * m4/posix_spawn.m4: New file.
29701
29702         New module 'spawn'.
29703         * modules/spawn: New file.
29704         * lib/spawn.in.h: New file, from GNU libc with modifications.
29705         * m4/spawn_h.m4: New file.
29706         * doc/posix-headers/spawn.texi: Mention the new module.
29707
29708 2008-09-28  Bruno Haible  <bruno@clisp.org>
29709
29710         * modules/sched-tests: New file.
29711         * tests/test-sched.c: New file.
29712
29713         New module 'sched'.
29714         * modules/sched: New file.
29715         * lib/sched.in.h: New file.
29716         * m4/sched_h.m4: New file.
29717         * doc/posix-headers/sched.texi: Mention the new module.
29718
29719 2008-09-27  Eric Blake  <ebb9@byu.net>
29720
29721         Fix previous patch, and tweak references to $0.
29722         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
29723         (func_version, func_gnulib_dir): Don't call this program
29724         gnulib-tool.
29725         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
29726         with using $0 in function.
29727         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
29728         (func_fatal_error): Reuse the name the user invoked us with.
29729
29730 2008-09-27  Bruno Haible  <bruno@clisp.org>
29731
29732         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
29733         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
29734         (gl_ICONV_H): Not here.
29735         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29736         instead of assigning ICONV_H directly.
29737
29738         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
29740         WCHAR_H directly.
29741
29742 2008-09-27  Bruno Haible  <bruno@clisp.org>
29743
29744         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
29745         * modules/arpa_inet (Depends-on): Add link-warning.
29746         (Makefile.am): Insert the definition of GL_LINK-WARNING.
29747         * modules/unistd (Makefile.am): Likewise.
29748
29749 2008-09-26  Bruno Haible  <bruno@clisp.org>
29750
29751         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
29752         variables.
29753         (func_version): Essentially copied from gnulib-tool.
29754         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
29755         func_readlink): Copied from gnulib-tool.
29756
29757 2008-09-26  Bruno Haible  <bruno@clisp.org>
29758
29759         * gnulib-tool (func_version): Change directory to $gnulib_dir before
29760         invoking git-version-gen.
29761
29762 2008-09-26  Bruno Haible  <bruno@clisp.org>
29763
29764         * posix-modules: Update to directory names changed on 2008-01-19.
29765         Remove commas in output before splitting into words. No more need to
29766         avoid 'ftruncate' since 2007-02-19.
29767
29768 2008-09-26  Bruno Haible  <bruno@clisp.org>
29769
29770         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
29771
29772 2008-09-26  Bruno Haible  <bruno@clisp.org>
29773
29774         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
29775         * modules/fwriteerror (Depends-on): Add errno.
29776
29777 2008-09-26  Bruno Haible  <bruno@clisp.org>
29778
29779         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
29780         * tests/test-vc-list-files-cvs.sh: Likewise.
29781
29782 2008-09-26  Bruno Haible  <bruno@clisp.org>
29783
29784         * doc/posix-headers/sys_resource.texi: Reorder items.
29785
29786 2008-09-26  Jim Meyering  <meyering@redhat.com>
29787
29788         fts: tweak inode comparison function
29789         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
29790         inode numbers, as documented.
29791
29792         fts: sort dirent entries on inode number before traversing
29793         This avoids a quadratic, seek-related performance penalty when
29794         operating on a directory containing many entries (measurable at 10k;
29795         3.5 hours at 2 million entries with a cold cache) on certain types
29796         of file systems, including ext3 and ext4, but not tmpfs.
29797         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
29798         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
29799         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
29800         (fs_handles_readdir_ordered_dirents_efficiently): New function.
29801         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
29802         (fts_build): Set the stat.st_ino member from D_INO.
29803         If it is likely to be useful, sort dirent entries on inode number.
29804
29805         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
29806         and the struct statfs.f_type member.
29807         * modules/fts (Depends-on): Add d-ino.
29808
29809 2008-09-26  Bruno Haible  <bruno@clisp.org>
29810
29811         * modules/sigpipe-die (Depends-on): Add sigpipe.
29812
29813         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
29814         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
29815         and GNULIB_STDIO_H_SIGPIPE are set.
29816         * lib/stdio-write.c: New file.
29817         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
29818         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29819         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29820         REPLACE_STDIO_WRITE_FUNCS.
29821         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
29822         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29823         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29824         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29825         * modules/stdio (Files): Add lib/stdio-write.c.
29826         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
29827         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29828         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29829         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29830         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
29831         REPLACE_FPRINTF_POSIX.
29832         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
29833         REPLACE_PRINTF_POSIX.
29834         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
29835         REPLACE_VFPRINTF_POSIX.
29836         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
29837         REPLACE_VPRINTF_POSIX.
29838         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29839         SIGPIPE issue.
29840         * doc/posix-functions/fputc.texi: Likewise.
29841         * doc/posix-functions/fputs.texi: Likewise.
29842         * doc/posix-functions/fwrite.texi: Likewise.
29843         * doc/posix-functions/printf.texi: Likewise.
29844         * doc/posix-functions/putc.texi: Likewise.
29845         * doc/posix-functions/putchar.texi: Likewise.
29846         * doc/posix-functions/puts.texi: Likewise.
29847         * doc/posix-functions/vfprintf.texi: Likewise.
29848         * doc/posix-functions/vprintf.texi: Likewise.
29849
29850         * modules/safe-write (Depends-on): Add write.
29851
29852         * modules/sigpipe-tests: New file.
29853         * tests/test-sigpipe.c: New file.
29854         * tests/test-sigpipe.sh: New file.
29855
29856         * modules/write: New file.
29857         * lib/unistd.in.h: Include <sys/types.h>.
29858         (write): New declaration.
29859         * lib/write.c: New file.
29860         * m4/write.m4: New file.
29861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29862         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29863         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29864         GNULIB_WRITE, REPLACE_WRITE.
29865         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29866         and the SIGPIPE issue.
29867
29868         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29869         (raise): New declaration.
29870         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29871         (ext_signal): New function.
29872         (rpl_raise): New function.
29873         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29874         GNULIB_SIGNAL_H_SIGPIPE.
29875         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29876         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29877
29878         * modules/sigpipe: New file.
29879         * m4/sigpipe.m4: New file.
29880
29881 2008-09-25  Derek Price  <derek@ximbiot.com>
29882             Bruno Haible  <bruno@clisp.org>
29883
29884         * gnulib-tool (func_import): Report all license incompatibilities, not
29885         just the first one.
29886
29887 2008-09-25  Bruno Haible  <bruno@clisp.org>
29888
29889         * gnulib-tool (func_import): When computing the edits, consider not
29890         only the Makefile.ams that exist but also those that will be generated.
29891
29892 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29893
29894         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29895         fixes gnulib-tool --test warning about duplicate dependency.
29896
29897 2008-09-25  Bruno Haible  <bruno@clisp.org>
29898
29899         * gnulib-tool: Don't ask the user to perform edits in the generated
29900         Makefile.ams.
29901         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29902         apply to the Makefile.am being generated.
29903         (func_emit_tests_Makefile_am): Execute edits that apply to the
29904         Makefile.am being generated.
29905         (func_import): Setup list of Makefile.am edits before emitting the
29906         Makefile.ams, not at the end.
29907         (func_create_testdir): Update.
29908         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29909
29910 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29911
29912         * gnulib-tool (func_import): Store the --tests-base option in the
29913         comment in gnulib-cache.m4.
29914
29915 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29916
29917         * NEWS: Document increased portability that sys_select now provides.
29918
29919         * lib/sys_select.in.h: Install select wrapper.
29920         * lib/sys_socket.in.h: Use more descriptive name when there is no
29921         select wrapper.
29922         * lib/winsock-select.c: New.
29923         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29924         Require gl_HEADER_SYS_SOCKET.
29925         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29926         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29927         * tests/test-sys_select.c: Add functional tests.
29928
29929 2008-09-24  Eric Blake  <ebb9@byu.net>
29930
29931         open, fopen: close fd leak in last patch
29932         * lib/open.c (rpl_open): Close fd before returning error.
29933         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29934         * doc/posix-functions/open.texi (open): Document that Irix also
29935         has the bug.
29936         * doc/posix-functions/fopen.texi (fopen): Likewise.
29937         Reported by Paolo Bonzini.
29938
29939 2008-09-24  Bruno Haible  <bruno@clisp.org>
29940
29941         Ensure that a filename ending in a slash cannot be used to access a
29942         non-directory.
29943         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29944         to check whether it's really a directory.
29945         * lib/fopen.c: Include fcntl.h, unistd.h.
29946         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29947         and fdopen().
29948         * modules/fopen (Depends-on): Add unistd.
29949         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29950         * tests/test-fopen.c (main): Likewise.
29951         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29952         * doc/posix-functions/fopen.texi: Likewise.
29953         Reported by Eric Blake.
29954
29955 2008-09-23  Eric Blake  <ebb9@byu.net>
29956
29957         c-stack: avoid compiler optimizations when provoking overflow
29958         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29959         recursion harder to optimize, to ensure a stack overflow occurs.
29960         * tests/test-c-stack.c (recurse): Likewise.
29961         Borrowed from libsigsegv.
29962
29963         c-stack: work around Irix sigaltstack bug
29964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29965         whether sigaltstack uses wrong end of stack_t (copied in part from
29966         libsigsegv).
29967         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29968         Irix bug, without requiring an over-allocation.
29969         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29970         bug.
29971
29972         fopen: document mingw bug on directories
29973         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29974         not allowing a stream visiting a directory, even though reading
29975         from such a stream is not portable.
29976
29977 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29978
29979         * lib/poll.c: Rewrite.
29980         * modules/poll: Depend on alloca.
29981
29982 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29983
29984         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29985         instead define prototypes for a full set of wrappers.  Ensure
29986         that Cygwin does not use the compatibility code, which is only
29987         for MinGW.
29988         * lib/winsock.c: New.
29989         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29990         * modules/sys_socket: Add lib/winsock.c.
29991
29992         * modules/poll-tests: Add errno and perror.
29993         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29994
29995 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29996
29997         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29998
29999 2008-09-23  Bruno Haible  <bruno@clisp.org>
30000
30001         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
30002         * doc/glibc-functions/*: Likewise.
30003
30004 2008-09-23  Simon Josefsson  <simon@josefsson.org>
30005
30006         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
30007         success.
30008
30009 2008-09-22  Eric Blake  <ebb9@byu.net>
30010             Bruno Haible  <bruno@clisp.org>
30011
30012         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
30013         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
30014         supply %A but mishandle pseudo-NaN.
30015         Reported by Simon Josefsson.
30016
30017 2008-09-21  Bruno Haible  <bruno@clisp.org>
30018
30019         * tests/test-lock.c (main): Tweak skip message.
30020         * tests/test-tls.c (main): Likewise.
30021
30022 2008-09-21  Bruno Haible  <bruno@clisp.org>
30023
30024         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
30025         whether 'struct sigaction' has sa_sigaction here...
30026         (gl_PREREQ_SIG_HANDLER_H): ... not here.
30027         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
30028
30029 2008-09-21  Bruno Haible  <bruno@clisp.org>
30030
30031         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
30032         section.
30033         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
30034         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
30035         the new section.
30036         (Support for obsolete systems lacking POSIX:2001): New section.
30037         (String handling <string.h>): Move strdup to the new section.
30038         Suggested by Simon Josefsson and Paolo Bonzini.
30039
30040 2008-09-21  Bruno Haible  <bruno@clisp.org>
30041
30042         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
30043         exponents in %e and %g results on 'long double'. Needed for mingw's
30044         improved *printf functions.
30045         * tests/test-vasprintf-posix.c (test_function): Likewise.
30046         * tests/test-snprintf-posix.h (test_function): Likewise.
30047         * tests/test-sprintf-posix.h (test_function): Likewise.
30048         Reported by Eric Blake.
30049
30050 2008-09-21  Bruno Haible  <bruno@clisp.org>
30051
30052         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
30053         * tests/test-sprintf-posix.h (test_function): Likewise.
30054
30055 2008-09-21  Bruno Haible  <bruno@clisp.org>
30056
30057         * modules/getpass (Depends-on): Add strdup-posix.
30058
30059         New module 'strdup-posix'.
30060         * modules/strdup-posix: New file.
30061         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
30062         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
30063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30064         REPLACE_STRDUP.
30065         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
30066         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
30067         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30068         strdup-posix.
30069
30070         * modules/strdup (Depends-on): Remove malloc-posix.
30071
30072 2008-09-20  Bruno Haible  <bruno@clisp.org>
30073
30074         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
30075         Wildenhues.
30076
30077 2008-09-20  Bruno Haible  <bruno@clisp.org>
30078
30079         Ensure that wint_t gets defined on IRIX 5.3.
30080         * lib/wchar.in.h (wint_t): Define if not defined by the system.
30081         * lib/wctype.in.h (wint_t): Likewise.
30082         (__wctype_wint_t): Remove type.
30083         (isw*): Use wint_t instead of __wctype_wint_t.
30084         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
30085         * modules/wchar (Files): Add m4/wint_t.m4.
30086         (Makefile.am): Substitute HAVE_WINT_T.
30087         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
30088         * tests/test-wctype.c: Check that wint_t is defined.
30089         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
30090         * doc/posix-headers/wctype.texi: Likewise.
30091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30092
30093 2008-09-18  Bruno Haible  <bruno@clisp.org>
30094
30095         * gnulib-tool (func_exit): Update comment.
30096
30097 2008-09-18  Simon Josefsson  <simon@josefsson.org>
30098
30099         * modules/getaddrinfo (Depends-on): Remove strdup, this module
30100         assumes strdup exists and does not depend on strdup to return
30101         ENOMEM on out of memory conditions.
30102
30103 2008-09-18  Bruno Haible  <bruno@clisp.org>
30104
30105         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
30106         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
30107         digits for the exponent.
30108
30109 2008-09-18  Jim Meyering  <meyering@redhat.com>
30110             Bruno Haible  <bruno@clisp.org>
30111
30112         * lib/vasnprintf.c (decimal_point_char): Define also if
30113         NEED_PRINTF_INFINITE_LONG_DOUBLE.
30114
30115 2008-09-16  Bruno Haible  <bruno@clisp.org>
30116         and Eric Blake  <ebb9@byu.net>
30117
30118         vasnprintf: support Irix 5.3
30119         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
30120         that mishandle long double infinity.
30121         Reported by Tom G. Christensen.
30122
30123 2008-09-16  Bruno Haible  <bruno@clisp.org>
30124
30125         * doc/glibc-functions/scandir.texi: Mention the function is missing on
30126         Solaris 9.
30127         * doc/glibc-functions/alphasort.texi: Likewise.
30128         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
30129
30130 2008-09-16  Jim Meyering  <meyering@redhat.com>
30131
30132         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
30133         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
30134         a umask modification leak out of a subshell.  Otherwise, the
30135         opensolaris /bin/sh would be accepted and thus cause unwarranted
30136         failures in the coreutils test suite.
30137
30138 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
30139
30140         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
30141         to succeed.
30142
30143 2008-09-16  Jim Meyering  <meyering@redhat.com>
30144
30145         avoid spurious test failure when library is built without ACL support
30146         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
30147         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
30148         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
30149         * tests/test-copy-acl.sh: Likewise.
30150
30151 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30152
30153         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
30154         based on character occurrence counts.
30155
30156 2008-09-15  Eric Blake  <ebb9@byu.net>
30157
30158         tests: avoid some compiler warnings
30159         * tests/test-memchr.c (main): Pass NULL indirectly.
30160         * tests/test-closein.c (main): Avoid unused variable.
30161
30162 2008-09-15  Bruno Haible  <bruno@clisp.org>
30163
30164         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
30165         are missing on OpenBSD 4.0 individually.
30166         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30167
30168 2008-09-15  Bruno Haible  <bruno@clisp.org>
30169
30170         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
30171         * doc/posix-functions/strerror.texi: Mention also Cygwin.
30172         * doc/posix-functions/perror.texi: Likewise.
30173         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
30174         is missing.
30175         Reported by Eric Blake.
30176
30177         * lib/errno.in.h: Use replacement values >= 2000.
30178         Reported by Eric Blake.
30179
30180 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30181
30182         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
30183         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
30184         limit.
30185         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
30186         compareseq was aborted.
30187
30188 2008-09-14  Bruno Haible  <bruno@clisp.org>
30189
30190         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
30191         yvec_edit_count.
30192         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
30193         (fstrcmp_bounded): Simplify result computation accordingly.
30194
30195 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30196
30197         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
30198         (fstrcmp): Define in terms of fstrcmp_bounded.
30199         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
30200         lower_bound argument.
30201         Return quickly if the result is certainly < lower_bound.
30202         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
30203
30204 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30205
30206         * lib/diffseq.h (EARLY_ABORT): New macro.
30207         (compareseq): Change return type to bool. Return true when EARLY_ABORT
30208         evaluates to true.
30209
30210 2008-09-14  Bruno Haible  <bruno@clisp.org>
30211
30212         * modules/perror-tests: New file.
30213         * tests/test-perror.sh: New file.
30214         * tests/test-perror.c: New file.
30215
30216         New module 'perror'.
30217         * lib/stdio.in.h (perror): New declaration.
30218         * lib/perror.c: New file.
30219         * m4/perror.m4: New file.
30220         * modules/perror: New file.
30221         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
30222         * doc/posix-functions/perror.texi: Mention the perror module.
30223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
30224         REPLACE_PERROR.
30225         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
30226         REPLACE_PERROR.
30227
30228 2008-09-14  Bruno Haible  <bruno@clisp.org>
30229
30230         * modules/stdio (Makefile.am): Reorder to match the order in
30231         lib/stdio.in.h.
30232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30233
30234 2008-09-13  Bruno Haible  <bruno@clisp.org>
30235
30236         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
30237
30238 2008-09-13  Bruno Haible  <bruno@clisp.org>
30239
30240         Extend strerror to cover the added errno values.
30241         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
30242         (rpl_strerror): Provide error messages for the added errno values and
30243         for the WSA* values.
30244         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
30245         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
30246         strerror.
30247         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
30248         * modules/strerror (Depends-on): Add errno.
30249         * doc/posix-functions/strerror.texi: Document the change.
30250         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
30251         and EOVERFLOW.
30252
30253 2008-09-13  Bruno Haible  <bruno@clisp.org>
30254
30255         * modules/EOVERFLOW: Remove file.
30256         * m4/eoverflow.m4: Remove file.
30257         * modules/EOVERFLOW-tests: Remove file.
30258         * tests/test-EOVERFLOW.c: Remove file.
30259         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
30260         * modules/ftell (Depends-on): Likewise.
30261         * modules/getdelim (Depends-on): Likewise.
30262         * modules/getugroups (Depends-on): Likewise.
30263         * modules/poll (Depends-on): Likewise.
30264         * modules/snprintf (Depends-on): Likewise.
30265         * modules/sprintf-posix (Depends-on): Likewise.
30266         * modules/vasnprintf (Depends-on): Likewise.
30267         * modules/vasprintf (Depends-on): Likewise.
30268         * modules/vfprintf-posix (Depends-on): Likewise.
30269         * modules/vsnprintf (Depends-on): Likewise.
30270         * modules/vsprintf-posix (Depends-on): Likewise.
30271         * modules/xvasprintf (Depends-on): Likewise.
30272         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30273         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
30274         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
30275         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
30276         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30277         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
30278         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
30279         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
30280         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30281         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
30282         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
30283         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
30284         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30285         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
30286         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
30287         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
30288         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30289         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
30290         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
30291         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
30292         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30293         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
30294         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
30295         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
30296         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
30297         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30298         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
30299         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
30300         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
30301         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
30302         * MODULES.html.sh: Remove EOVERFLOW.
30303         * NEWS: Mention the change.
30304
30305 2008-09-13  Bruno Haible  <bruno@clisp.org>
30306
30307         * modules/errno-tests: New file.
30308         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
30309
30310         * lib/errno.in.h: New file.
30311         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
30312         * modules/errno: New file.
30313         * doc/posix-headers/errno.texi: Update documentation.
30314         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
30315
30316 2008-09-13  Bruno Haible  <bruno@clisp.org>
30317
30318         * tests/test-poll.c: Use #if for native Windows, rather than testing
30319         __MSVCRT__.
30320
30321 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30322             Bruno Haible  <bruno@clisp.org>
30323
30324         * lib/glob.c: Don't include <pwd.h> on native Windows.
30325         (WINDOWS32): New macro.
30326         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
30327
30328 2008-09-13  Bruno Haible  <bruno@clisp.org>
30329
30330         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
30331         (ETIMEDOUT): Remove macro.
30332         (glthread_cond_timedwait_multithreaded): New declaration.
30333         (glthread_cond_timedwait): Use it.
30334         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
30335         (glthread_cond_timedwait_multithreaded): New function.
30336
30337 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30338
30339         * modules/poll-tests: Do not check for io.h.
30340         * tests/test-poll.c: Check for __MSVCRT__ instead.
30341
30342 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30343
30344         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
30345         * modules/poll-tests: Add inet_pton, stdbool, sockets.
30346         * tests/test-poll.c: Use them.  Use _pipe on Windows.
30347
30348 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30349
30350         * modules/poll-tests: New.
30351         * tests/test-poll.c: New.
30352
30353 2008-09-12  Eric Blake  <ebb9@byu.net>
30354
30355         frexp: test for NetBSD failure on -0.0
30356         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
30357         not all, bugs from NetBSD 3.0 have been fixed.
30358         * doc/posix-functions/frexp.texi (frexp): Document bug.
30359         Reported by Thomas Klausner.
30360
30361         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
30362         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
30363         literal -0.0.
30364         Reported by Jonathan C. Patschke <jp@centtech.com>.
30365
30366 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30367
30368         * lib/glthread/cond.h: Use dummy implementation also if
30369         USE_WIN32_THREADS.
30370
30371 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30372
30373         * modules/fnmatch-posix (License): Change to LGPLv2+.
30374         * modules/fnmatch-gnu (License): Likewise.
30375
30376 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30377
30378         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
30379
30380 2008-09-11  Jim Meyering  <meyering@redhat.com>
30381
30382         * users.txt: Add gtk-vnc.
30383
30384 2008-09-08  Simon Josefsson  <simon@josefsson.org>
30385
30386         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
30387         rotate amounts.
30388
30389         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
30390         required for 16-bit and 8-bit rotates.
30391         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
30392         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
30393         UINT8_MAX instead of hard-coded constants.
30394         Suggested by Paul Eggert.
30395
30396 2008-09-07  Bruno Haible  <bruno@clisp.org>
30397
30398         * tests/test-striconveh.c (main): Check behaviour when converting from
30399         UTF-7.
30400
30401         Make striconveh work better with stateful encodings.
30402         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30403         that iconv does not increment the inptr when returning -1/EINVAL.
30404
30405 2008-09-07  Bruno Haible  <bruno@clisp.org>
30406
30407         * build-aux/config.rpath: Update according to libtool-2.2.6.
30408         * build-aux/config.libpath: Likewise.
30409
30410 2008-09-06  Bruno Haible  <bruno@clisp.org>
30411
30412         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30413         * lib/freadptr.c (freadptr): Likewise.
30414         * lib/freadseek.c (freadptrinc): Likewise.
30415         Reported by Simon Josefsson.
30416
30417 2008-09-06  Bruno Haible  <bruno@clisp.org>
30418
30419         * modules/freadptr (License): Change to LGPLv2+.
30420         * modules/freadseek (License): Likewise.
30421         Suggested by Eric Blake.
30422
30423         * modules/memchr2 (License): Change to LGPLv2+.
30424         Approved by Eric Blake.
30425
30426 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30427             Bruno Haible  <bruno@clisp.org>
30428
30429         Make gnulib-tool work with native 'sed' on AIX.
30430         * gnulib-tool (sed_noop): New variable.
30431         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30432         func_add_or_update, func_create_testdir): Use it to initialize sed
30433         script variables.
30434         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30435
30436 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30437             Bruno Haible  <bruno@clisp.org>
30438
30439         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30440         also works after #include directives.
30441
30442 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30443
30444         getdate.y: reject an out-of-range timezone value
30445         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30446         the range [-24...+24].  When specified with only one or two digits,
30447         * tests/test-getdate.c: Tests for the fix.
30448         * doc/getdate.texi: Document this change.
30449
30450 2008-09-03  Bruno Haible  <bruno@clisp.org>
30451
30452         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30453
30454 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30455
30456         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30457         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30458         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30459         Blake <ebb9@byu.net>.
30460
30461         * tests/test-bitrotate.c: Add more test vectors.
30462
30463 2008-09-02  Eric Blake  <ebb9@byu.net>
30464
30465         vasnprintf-posix: handle large precision via %.*d
30466         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30467         when handling it ourselves.
30468         * tests/test-vasnprintf-posix.c (test_function): Add test.
30469         * tests/test-snprintf-posix.h (test_function): Likewise.
30470         * tests/test-sprintf-posix.h (test_function): Likewise.
30471         * tests/test-vasprintf-posix.c (test_function): Likewise.
30472         Reported by Alain Guibert.
30473
30474 2008-09-01  Eric Blake  <ebb9@byu.net>
30475
30476         c-stack: make configure-time check more robust
30477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30478         successful sigaction call.
30479         Reported by Tom G. Christensen.
30480
30481 2008-09-01  Bruno Haible  <bruno@clisp.org>
30482
30483         New module 'findprog-lgpl'.
30484         * modules/findprog-lgpl: New file.
30485         * lib/findprog-lgpl.c: New file.
30486         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30487         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30488         to decide whether to use strdup or xstrdup, concatenated_filename or
30489         xconcatenated_filename.
30490
30491 2008-09-01  Bruno Haible  <bruno@clisp.org>
30492
30493         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30494         'xconcat-filename' (GPL).
30495         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30496         (License): Change to LGPLv2+.
30497         * modules/xconcat-filename: New file.
30498         * lib/concat-filename.h (concatenated_filename): Change specification.
30499         (xconcatenated_filename): New declaration.
30500         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30501         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30502         memory situations.
30503         * lib/xconcat-filename.c: New file.
30504         * NEWS: Mention the change.
30505         * lib/findprog.c: Include concat-filename.h, not filename.h.
30506         (find_in_path): Use xconcatenated_filename instead of
30507         concatenated_filename.
30508         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30509         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30510         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30511         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30512         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30513         instead of concatenated_filename.
30514         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30515         (execute_java_class): Use xconcatenated_filename instead of
30516         concatenated_filename.
30517         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30518         * modules/javacomp (Depends-on): Likewise.
30519         * modules/javaexec (Depends-on): Likewise.
30520
30521 2008-09-01  Bruno Haible  <bruno@clisp.org>
30522
30523         Split module 'filename' into 'filename' and 'concat-filename'.
30524         * modules/filename: Keep only lib/filename.h.
30525         (License): Change to LGPLv2+.
30526         * modules/concat-filename: New file, extracted from modules/filename.
30527         * lib/filename.h (concatenated_filename): Remove declaration.
30528         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30529         * lib/concat-filename.c: Include concat-filename.h.
30530         * NEWS: Mention the change.
30531
30532 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30533
30534         * lib/bitrotate.h (rotl8, rotr8): Add.
30535
30536         * modules/bitrotate (configure.ac): Need
30537         AC_REQUIRE([AC_C_INLINE]).
30538         (Description): Mention stdint.h.  Reported by Bruno Haible
30539         <bruno@clisp.org>.
30540
30541         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30542         Paolo Bonzini <bonzini@gnu.org>.
30543
30544 2008-08-31  Bruno Haible  <bruno@clisp.org>
30545
30546         Assume Solaris specific bi-arch conventions on Solaris systems.
30547         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30548         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30549         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30550         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30551         like acl_libdirstem.
30552         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30553         acl_libdirstem.
30554         * NEWS: Mention the change.
30555         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30556
30557 2008-08-31  Jim Meyering  <meyering@redhat.com>
30558
30559         * lib/strftime.h: Add comments describing the two added arguments.
30560
30561         remove duplicate #include directives
30562         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30563         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30564
30565 2008-08-31  Bruno Haible  <bruno@clisp.org>
30566
30567         New module 'sigpipe-die'.
30568         * modules/sigpipe-die: New file.
30569         * lib/sigpipe-die.h: New file.
30570         * lib/sigpipe-die.c: New file.
30571         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30572
30573 2008-08-31  Bruno Haible  <bruno@clisp.org>
30574
30575         Don't override previously installed signal handlers.
30576         * lib/fatal-signal.c (saved_sigactions): New variable.
30577         (uninstall_handlers): Reset the signal to the saved handler, not
30578         to SIG_DFL (except when ignored).
30579         (install_handlers): Save the previous handlers.
30580
30581 2008-08-30  Bruno Haible  <bruno@clisp.org>
30582
30583         * gnulib-tool (func_reset_sigpipe): New function.
30584         (func_get_automake_snippet, func_modules_transitive_closure,
30585         func_import): Invoke it before a join command that reads from stdin,
30586         to avoid "echo: write error: Broken pipe" error messages on stderr.
30587         Reported by Sam Steingold <sds@gnu.org>.
30588
30589 2008-08-30  Bruno Haible  <bruno@clisp.org>
30590
30591         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30592         Code copied from m4/open.m4.
30593         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30594         access and the filename ends in a slash. Code copied from lib/open.c.
30595         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30596         * tests/test-fopen.c (main): Check against bug with trailing slash.
30597
30598 2008-08-29  Bruno Haible  <bruno@clisp.org>
30599
30600         Avoid some "gcc -pedantic" warnings.
30601         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30602         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30603         * lib/dirent.in.h: Likewise.
30604         * lib/fcntl.in.h: Likewise.
30605         * lib/float.in.h: Likewise.
30606         * lib/iconv.in.h: Likewise.
30607         * lib/inttypes.in.h: Likewise.
30608         * lib/locale.in.h: Likewise.
30609         * lib/math.in.h: Likewise.
30610         * lib/netinet_in.in.h: Likewise.
30611         * lib/search.in.h: Likewise.
30612         * lib/signal.in.h: Likewise.
30613         * lib/stdarg.in.h: Likewise.
30614         * lib/stdint.in.h: Likewise.
30615         * lib/stdio.in.h: Likewise.
30616         * lib/stdlib.in.h: Likewise.
30617         * lib/string.in.h: Likewise.
30618         * lib/strings.in.h: Likewise.
30619         * lib/sys_select.in.h: Likewise.
30620         * lib/sys_socket.in.h: Likewise.
30621         * lib/sys_stat.in.h: Likewise.
30622         * lib/sys_time.in.h: Likewise.
30623         * lib/sysexits.in.h: Likewise.
30624         * lib/time.in.h: Likewise.
30625         * lib/unistd.in.h: Likewise.
30626         * lib/wchar.in.h: Likewise.
30627         * lib/wctype.in.h: Likewise.
30628         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30629         * modules/fchdir (Makefile.am): Likewise.
30630         * modules/fcntl (Makefile.am): Likewise.
30631         * modules/float (Makefile.am): Likewise.
30632         * modules/iconv_open (Makefile.am): Likewise.
30633         * modules/inttypes (Makefile.am): Likewise.
30634         * modules/locale (Makefile.am): Likewise.
30635         * modules/math (Makefile.am): Likewise.
30636         * modules/netinet_in (Makefile.am): Likewise.
30637         * modules/search (Makefile.am): Likewise.
30638         * modules/signal (Makefile.am): Likewise.
30639         * modules/stdarg (Makefile.am): Likewise.
30640         * modules/stdint (Makefile.am): Likewise.
30641         * modules/stdio (Makefile.am): Likewise.
30642         * modules/stdlib (Makefile.am): Likewise.
30643         * modules/string (Makefile.am): Likewise.
30644         * modules/strings (Makefile.am): Likewise.
30645         * modules/sys_select (Makefile.am): Likewise.
30646         * modules/sys_socket (Makefile.am): Likewise.
30647         * modules/sys_stat (Makefile.am): Likewise.
30648         * modules/sys_time (Makefile.am): Likewise.
30649         * modules/sysexits (Makefile.am): Likewise.
30650         * modules/time (Makefile.am): Likewise.
30651         * modules/unistd (Makefile.am): Likewise.
30652         * modules/wchar (Makefile.am): Likewise.
30653         * modules/wctype (Makefile.am): Likewise.
30654         Reported by Reuben Thomas <rrt@sc3d.org>.
30655
30656 2008-08-29  Bruno Haible  <bruno@clisp.org>
30657
30658         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30659         any more.
30660
30661 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30662
30663         * MODULES.html.sh (Misc): Add bitrotate.
30664
30665         * modules/bitrotate: New file.
30666
30667         * lib/bitrotate.h: New file.
30668
30669         * modules/bitrotate-tests: New file.
30670
30671         * tests/test-bitrotate.c: New file.
30672
30673         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
30674         on the bitrotate module.
30675
30676         * lib/arctwo.c: Use new bitrotate module.
30677
30678 2008-08-29  Jim Meyering  <meyering@redhat.com>
30679
30680         bootstrap: merge changes from coreutils
30681         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
30682         of copied files.  Remove a kludge, now that this is fixed.
30683         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
30684         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
30685         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
30686
30687 2008-08-29  Bruno Haible  <bruno@clisp.org>
30688
30689         * MODULES.html.sh: Remove --cvs-urls option.
30690
30691 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
30692
30693         maint.mk: adjust to file name change
30694         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
30695
30696 2008-08-28  Jim Meyering  <meyering@redhat.com>
30697
30698         * modules/getndelim2 (License): Relicense to LGPLv2+.
30699         Approved by Richard Stallman for the version of 1995, and by
30700         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
30701
30702 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
30703
30704         * lib/getdelim.c (flockfile, funlockfile): Make all of them
30705         dummy if one is not available.  Do not touch them if
30706         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
30707         (getc_maybe_unlocked): New.
30708         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
30709
30710 2008-08-26  Eric Blake  <ebb9@byu.net>
30711
30712         doc/INSTALL: resync from autoconf
30713         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
30714         (INSTALL_PRELUDE): Delete; this is done more efficiently by
30715         moving...
30716         * install.texi [!autoconf]: ...here.  Resync from autoconf.
30717         * INSTALL: Regenerate.
30718         * INSTALL.ISO: New file.
30719         * INSTALL.UTF-8: Likewise.
30720
30721 2008-08-26  Jim Meyering  <meyering@redhat.com>
30722
30723         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
30724         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
30725         these definitions conditional, so that they may be overridden, too.
30726
30727 2008-08-26  Bruno Haible  <bruno@clisp.org>
30728
30729         Generate INSTALL file variants with prettier quotes.
30730         * doc/Makefile (INSTALL_PRELUDE): New macro.
30731         (INSTALL): Use it.
30732         (INSTALL.ISO, INSTALL.UTF-8): New rules.
30733
30734 2008-08-26  Bruno Haible  <bruno@clisp.org>
30735
30736         Run makeinfo in an English locale.
30737         * doc/Makefile (MAKEINFO): New variable.
30738
30739 2008-08-26  Bruno Haible  <bruno@clisp.org>
30740
30741         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
30742         Suggested by Eric Blake.
30743
30744 2008-08-25  Bruno Haible  <bruno@clisp.org>
30745
30746         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
30747
30748 2008-08-25  Eric Blake  <ebb9@byu.net>
30749
30750         c-stack: test that stack overflow can be caught
30751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
30752         that platform allows handling stack overflow; at least OS/2 EMX
30753         has sigaltstack, but crashes before transferring control to
30754         handler on stack overflow.
30755         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
30756         check for HAVE_STACK_OVERFLOW_HANDLING.
30757         Reported by Elbert Pol.
30758
30759 2008-08-25  Bruno Haible  <bruno@clisp.org>
30760
30761         * doc/posix-functions/strftime.texi: Fix description of strftime
30762         module.
30763
30764 2008-08-24  Bruno Haible  <bruno@clisp.org>
30765
30766         * tests/uniwidth/test-uc_width2.c: New file.
30767         * tests/uniwidth/test-uc_width2.sh: New file.
30768         * modules/uniwidth/width-tests (Files): Add the new files.
30769         (TESTS): Add uniwidth/test-uc_width2.sh.
30770         (TESTS_ENVIRONMENT): New variable.
30771         (check_PROGRAMS): Add test-uc_width2.
30772         (test_uc_width2_SOURCES): New variable.
30773
30774         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
30775         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
30776         not 0x00AB.
30777         Reported by Alexander V. Lukyanov <lav@netis.ru>.
30778
30779 2008-08-22  Eric Blake  <ebb9@byu.net>
30780
30781         test-lock, test-tls: mention why a test is skipped
30782         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
30783         skipped.
30784         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
30785
30786         count-one-bits: relax license
30787         * modules/count-one-bits (License): Relicense to LGPLv2+.
30788         Suggested by Ludovic Courtès, approved by Ben Pfaff.
30789
30790 2008-08-22  Andreas Schwab  <schwab@suse.de>
30791
30792         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30793         Remove spurious space in assignment.
30794
30795 2008-08-21  Simon Josefsson  <simon@josefsson.org>
30796
30797         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
30798         Paul Eggert <eggert@CS.UCLA.EDU>.
30799
30800 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
30801
30802         * modules/gettext: Add m4/threadlib.m4.
30803
30804 2008-08-19  Eric Blake  <ebb9@byu.net>
30805
30806         test-c-stack: fix compilation failure on FreeBSD 5.0
30807         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
30808         headers before <sys/resource.h>.
30809         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
30810         the bug.
30811         Reported by Nelson H. F. Beebe.
30812
30813         strverscmp: migrate from "strverscmp.h" to <string.h>
30814         * modules/string (Makefile.am): Add new hooks.
30815         * modules/strverscmp (Files): Remove strverscmp.h.
30816         (Depends-on): Add string.
30817         (configure.ac): Add indicator.
30818         (Include): Mention new header.
30819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
30820         defaults.
30821         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
30822         results.
30823         * lib/strverscmp.h: Delete.
30824         * lib/string.in.h (strverscmp): Provide declaration, when needed.
30825         * tests/test-strverscmp.c (includes): Adjust client.
30826         * lib/check-version.c (includes): Likewise.
30827         * NEWS: Document the change.
30828
30829         strverscmp: add unit test
30830         * modules/strverscmp-tests: New file.
30831         * tests/test-strverscmp.c: Likewise.
30832
30833 2008-08-19  Simon Josefsson  <simon@josefsson.org>
30834
30835         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
30836         regarding Windows crypto stuff, from Mono.
30837
30838 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30839
30840         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30841         if present, for intel RND.  Return error on failures.
30842
30843 2008-08-18  Ben Pfaff  <blp@gnu.org>
30844
30845         gitlog-to-changelog: give better diagnostic for failed pipe-open
30846         * build-aux/gitlog-to-changelog: Improve error message: suggest
30847         that the version of Git may be too old.
30848
30849 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30850
30851         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30852         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30853
30854 2008-08-18  Bruno Haible  <bruno@clisp.org>
30855
30856         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30857         pthread_in_use().
30858
30859 2008-08-18  Bruno Haible  <bruno@clisp.org>
30860
30861         * lib/glthread/threadlib.c: Include <pthread.h>.
30862
30863 2008-08-18  Bruno Haible  <bruno@clisp.org>
30864
30865         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30866         glthread_recursive_lock_* macros.
30867         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30868         Fix syntax error.
30869
30870 2008-08-18  Bruno Haible  <bruno@clisp.org>
30871
30872         * lib/glthread/thread.c: Avoid forcing a context switch right after
30873         thread creation.
30874
30875 2008-08-17  Bruno Haible  <bruno@clisp.org>
30876
30877         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30878         * lib/glthread/thread.h: Provide Win32 specific implementation.
30879         * modules/thread (Files): Add lib/glthread/thread.c.
30880         (Depends-on): Add lock.
30881         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30882
30883 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30884
30885         New module 'yield'.
30886         * modules/yield: New file.
30887         * lib/glthread/yield.h: New file.
30888         * m4/yield.m4: New file.
30889         * MODULES.html.sh (Multithreading): Add yield.
30890
30891 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30892
30893         New module 'thread'.
30894         * modules/thread: New file.
30895         * lib/glthread/thread.h: New file.
30896         * m4/thread.m4: New file.
30897         * MODULES.html.sh (Multithreading): Add thread.
30898
30899 2008-08-17  Bruno Haible  <bruno@clisp.org>
30900
30901         * lib/glthread/lock.h: Include <stdlib.h> always.
30902         * lib/glthread/tls.h: Likewise.
30903         * lib/glthread/cond.h: Likewise.
30904
30905 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30906
30907         New module 'cond'.
30908         * modules/cond: New file.
30909         * lib/glthread/cond.h: New file.
30910         * lib/glthread/cond.c: New file.
30911         * m4/cond.m4: New file.
30912         * MODULES.html.sh (Multithreading): Add cond.
30913
30914 2008-08-16  Eric Blake  <ebb9@byu.net>
30915
30916         c-stack: fix regression on Irix 5.3 from 2008-06-21
30917         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30918         sa_sigaction...
30919         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30920         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30921         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30922         * modules/signal (Makefile.am): Use the value.
30923         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30924         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30925         * doc/posix-headers/signal.texi (signal.h): Document this
30926         portability issue.
30927         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30928         Reported by Tom G. Christensen.
30929
30930 2008-08-17  Bruno Haible  <bruno@clisp.org>
30931
30932         New module 'threadlib'.
30933         * modules/threadlib: New file.
30934         * lib/glthread/threadlib.c: New file, extracted from
30935         lib/glthread/lock.c.
30936         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30937         functions.
30938         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30939         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30940         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30941         macros.
30942         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30943         (gl_DISABLE_THREADS): Remove macro.
30944         * modules/lock (Files): Remove build-aux/config.rpath.
30945         (Depends-on): Remove havelib. Add threadlib.
30946         (configure.ac-early): Remove section.
30947         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30948         * modules/tls (Depends-on): Remove lock. Add threadlib.
30949         (Link): New section, copied from threadlib.
30950         * MODULES.html.sh (Multithreading): Add threadlib.
30951
30952 2008-08-14  Bruno Haible  <bruno@clisp.org>
30953
30954         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30955         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30956         glthread_rwlock_unlock, glthread_rwlock_destroy,
30957         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30958         glthread_recursive_lock_destroy): Define as macros always.
30959         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30960         glthread_lock_lock.
30961         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30962         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30963         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30964         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30965         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30966         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30967         (glthread_recursive_lock_lock_func): Renamed from
30968         glthread_recursive_lock_lock.
30969         (glthread_recursive_lock_unlock_func): Renamed from
30970         glthread_recursive_lock_unlock.
30971         (glthread_recursive_lock_destroy_func): Renamed from
30972         glthread_recursive_lock_destroy.
30973
30974 2008-08-14  Bruno Haible  <bruno@clisp.org>
30975
30976         * lib/glthread/lock.h: Renamed from lib/lock.h.
30977         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30978         * lib/glthread/tls.h: Renamed from lib/tls.h.
30979         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30980         * lib/fstrcmp.c: Update includes.
30981         * lib/strsignal.c: Update includes.
30982         * modules/lock (Files, Makefile.am): Update.
30983         (Include): Change to "glthread/lock.h".
30984         * modules/tls (Files, Makefile.am): Update.
30985         (Include): Change to "glthread/tls.h".
30986         * tests/test-lock.c: Update includes.
30987         * tests/test-tls.c: Update includes.
30988         * NEWS: Mention the renamed header files.
30989
30990 2008-08-11  Jim Meyering  <meyering@redhat.com>
30991
30992         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30993
30994 2008-08-11  Eric Blake  <ebb9@byu.net>
30995
30996         test-c-stack: avoid C99-ism
30997         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30998         before statement.
30999         Reported by Alain Guibert.
31000
31001 2008-08-10  Jim Meyering  <meyering@redhat.com>
31002
31003         ensure that return value of uinttostr et al are not ignored
31004         * lib/inttostr.h (__GNUC_PREREQ): Define.
31005         (__attribute_warn_unused_result__): Define.
31006         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
31007
31008 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
31009
31010         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
31011         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
31012
31013 2008-08-07  Jim Meyering  <meyering@redhat.com>
31014
31015         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
31016
31017         * modules/mkstemp (License): Relicense under LGPLv2+.
31018         * modules/tempname (License): Likewise.
31019
31020 2008-08-06  Bruno Haible  <bruno@clisp.org>
31021
31022         * lib/poll.c (poll): Further micro-optimization.
31023
31024 2008-08-06  Jim Meyering  <meyering@redhat.com>
31025
31026         inet_pton.c: use locale-independent tolower
31027         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
31028         (inet_pton6): Use c_tolower rather than tolower.
31029         * modules/inet_pton (Depends-on): Add c-ctype.
31030
31031 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
31032
31033         * lib/poll.c (poll): Avoid division when timeout is 0, cache
31034         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
31035
31036 2008-08-06  Jim Meyering  <meyering@redhat.com>
31037
31038         * modules/inet_pton (License): Relicense under LGPLv2+.
31039
31040 2008-08-03  Bruno Haible  <bruno@clisp.org>
31041
31042         Additional non-aborting API for lock and tls.
31043         * lib/lock.h: Include <errno.h>.
31044         (glthread_lock_init): New macro/function.
31045         (gl_lock_init): Define as wrapper around glthread_lock_init.
31046         (glthread_lock_lock): New macro/function.
31047         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
31048         (glthread_lock_unlock): New macro/function.
31049         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
31050         (glthread_lock_destroy): New macro/function.
31051         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
31052         (glthread_rwlock_init): New macro/function.
31053         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
31054         (glthread_rwlock_rdlock): New macro/function.
31055         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
31056         (glthread_rwlock_wrlock): New macro/function.
31057         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
31058         (glthread_rwlock_unlock): New macro/function.
31059         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
31060         (glthread_rwlock_destroy): New macro/function.
31061         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
31062         (glthread_recursive_lock_init): New macro/function.
31063         (gl_recursive_lock_init): Define as wrapper around
31064         glthread_recursive_lock_init.
31065         (glthread_recursive_lock_lock): New macro/function.
31066         (gl_recursive_lock_lock): Define as wrapper around
31067         glthread_recursive_lock_lock.
31068         (glthread_recursive_lock_unlock): New macro/function.
31069         (gl_recursive_lock_unlock): Define as wrapper around
31070         glthread_recursive_lock_unlock.
31071         (glthread_recursive_lock_destroy): New macro/function.
31072         (gl_recursive_lock_destroy): Define as wrapper around
31073         glthread_recursive_lock_destroy.
31074         (glthread_once): New macro/function.
31075         (gl_once): Define as wrapper around glthread_once.
31076         Update function declarations.
31077         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
31078         glthread_rwlock_init. Return error code.
31079         (glthread_rwlock_rdlock_multithreaded): Renamed from
31080         glthread_rwlock_rdlock. Return error code.
31081         (glthread_rwlock_wrlock_multithreaded): Renamed from
31082         glthread_rwlock_wrlock. Return error code.
31083         (glthread_rwlock_unlock_multithreaded): Renamed from
31084         glthread_rwlock_unlock. Return error code.
31085         (glthread_rwlock_destroy_multithreaded): Renamed from
31086         glthread_rwlock_destroy. Return error code.
31087         (glthread_recursive_lock_init_multithreaded): Renamed from
31088         glthread_recursive_lock_init. Return error code.
31089         (glthread_recursive_lock_lock_multithreaded): Renamed from
31090         glthread_recursive_lock_lock. Return error code.
31091         (glthread_recursive_lock_unlock_multithreaded): Renamed from
31092         glthread_recursive_lock_unlock. Return error code.
31093         (glthread_recursive_lock_destroy_multithreaded): Renamed from
31094         glthread_recursive_lock_destroy. Return error code.
31095         (glthread_once_call): Make static.
31096         (glthread_once_multithreaded): Renamed from glthread_once.
31097         * lib/tls.h: Include <errno.h>.
31098         (glthread_tls_key_init): New macro/function.
31099         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
31100         (glthread_tls_set): New macro/function.
31101         (gl_tls_set): Define as wrapper around glthread_tls_set.
31102         (glthread_tls_key_destroy): New macro/function.
31103         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
31104         Update function declarations.
31105         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
31106         glthread_tls_get.
31107         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31108
31109 2008-08-04  Eric Blake  <ebb9@byu.net>
31110
31111         gnumakefile: use space, not TAB, outside of targets
31112         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
31113
31114 2008-08-02  Jim Meyering  <meyering@redhat.com>
31115
31116         getdate.y: avoid locale-dependent date parsing failure
31117         In Turkish locales, getdate would fail to recognize keywords
31118         containing a lowercase "i".  The solution is not to rely on
31119         locale-sensitive case-conversion.
31120         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
31121         (lookup_word): Use c_toupper in place of toupper.
31122         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
31123         Reported by Vefa Bicakci <bicave@superonline.com> in
31124         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
31125         * modules/getdate (Depends-on): Add c-ctype.
31126
31127 2008-08-02  Bruno Haible  <bruno@clisp.org>
31128
31129         * gnulib-tool (func_import): When updating or creating a .gitignore
31130         file, prepend each added line with a slash, and ignore leading slashes
31131         from the existing lines.
31132         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31133
31134 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31135
31136         Portability fix for GNU make 3.79.1.
31137         * top/GNUmakefile: Avoid 'else COND', which older GNU make
31138         versions do not understand.
31139
31140 2008-08-01  Bruno Haible  <bruno@clisp.org>
31141
31142         Work around bug of HP-UX 10.20 cc with -0.0 literal.
31143         * tests/test-isnanf.h (zero): New variable.
31144         (main): Avoid literal -0.0f.
31145         * tests/test-isnand.h (zero): New variable.
31146         (main): Avoid literal -0.0.
31147         * tests/test-isnanl.h (zero): New variable.
31148         (main): Avoid literal -0.0L.
31149         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
31150         (test_float, test_double, test_long_double): Avoid literals -0.0f,
31151         -0.0, -0.0L.
31152         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
31153         (test_signbitd): Avoid literal -0.0.
31154         (test_signbitl): Avoid literal -0.0L.
31155         * tests/test-ceilf1.c (zero): New variable.
31156         (main): Avoid literal -0.0f.
31157         * tests/test-ceill.c (zero): New variable.
31158         (main): Avoid literal -0.0L.
31159         * tests/test-floorf1.c (zero): New variable.
31160         (main): Avoid literal -0.0f.
31161         * tests/test-floorl.c (zero): New variable.
31162         (main): Avoid literal -0.0L.
31163         * tests/test-roundf1.c (zero): New variable.
31164         (main): Avoid literal -0.0f.
31165         * tests/test-round1.c (zero): New variable.
31166         (main): Avoid literal -0.0.
31167         * tests/test-roundl.c (zero): New variable.
31168         (main): Avoid literal -0.0L.
31169         * tests/test-truncf1.c (zero): New variable.
31170         (main): Avoid literal -0.0f.
31171         * tests/test-trunc1.c (zero): New variable.
31172         (main): Avoid literal -0.0.
31173         * tests/test-truncl.c (zero): New variable.
31174         (main): Avoid literal -0.0L.
31175         * tests/test-frexp.c (zero): New variable.
31176         (main): Avoid literal -0.0.
31177         * tests/test-frexpl.c (zero): New variable.
31178         (main): Avoid literal -0.0L.
31179         * tests/test-ldexpl.c (zero): New variable.
31180         (main): Avoid literal -0.0L.
31181         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
31182         (zerod, zerol): New variables.
31183         (test_function): Avoid literals -0.0, -0.0L.
31184         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
31185         (zerod, zerol): New variables.
31186         (test_function): Avoid literals -0.0, -0.0L.
31187         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
31188         (zerod, zerol): New variables.
31189         (test_function): Avoid literals -0.0, -0.0L.
31190         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
31191         (zerod, zerol): New variables.
31192         (test_function): Avoid literals -0.0, -0.0L.
31193         * tests/test-strtod.c (zero): New variable.
31194         (main): Avoid literal -0.0.
31195         Reported by Jonathan C. Patschke <jp@centtech.com>.
31196
31197 2008-07-31  Jim Meyering  <meyering@redhat.com>
31198
31199         sha256.h: correct definition of SHA224_DIGEST_SIZE
31200         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
31201         Reported by Paulie Pena IV <paulie4@gmail.com>.
31202         Define as 224 / 8, rather than as a literal.
31203         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
31204         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
31205         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
31206
31207 2008-07-31  Bruno Haible  <bruno@clisp.org>
31208
31209         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
31210         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
31211         Reported by Jonathan Patschke <jp@centtech.com>.
31212
31213 2008-07-31  Bruno Haible  <bruno@clisp.org>
31214
31215         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
31216         Reported by Paolo Bonzini <bonzini@gnu.org>.
31217
31218 2008-07-30  Eric Blake  <ebb9@byu.net>
31219
31220         test-strtod: allow compilation without -lm
31221         * tests/test-strtod.c (main): Avoid link dependence on fabs.
31222         Reported by Dennis Clarke <blastwave@gmail.com>.
31223
31224 2008-07-28  Jim Meyering  <meyering@redhat.com>
31225
31226         bootstrap: work also when there are no .po files in po/
31227         * build-aux/bootstrap (update_po_files): Complete the change
31228         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
31229
31230 2008-07-27  Jim Meyering  <meyering@redhat.com>
31231
31232         * users.txt: Add zile.
31233
31234 2008-07-26  Ben Pfaff  <blp@gnu.org>
31235
31236         Add missing dependencies on new m4/exponent[fdl].m4 files.
31237         * modules/isnanf-nolibm: Add m4/exponentf.m4.
31238         * modules/isnand-nolibm: Add m4/exponentd.m4.
31239         * modules/isnanl-nolibm: Add m4/exponentl.m4.
31240         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
31241         m4/isnan[fdl].m4, because the macros actually used moved.
31242         Reported by Jim Meyering.
31243
31244 2008-07-14  Ben Pfaff  <blp@gnu.org>
31245
31246         Add isinf module.
31247         * lib/isinf.c: New file.
31248         * lib/math.in.h: Define isinf macro if we have decided to replace
31249         it.
31250         * m4/isinf.m4: New file.
31251         * m4/math_h.m4: Initialize and substitute variables for isinf
31252         module.
31253         * modules/isinf: New file.
31254         * modules/isinf-tests: New file.
31255         * modules/math: Add substitutions for new module.
31256         * tests/test-isinf.c: New file.
31257         * doc/posix-functions/isinf.texi: Mention new module.
31258         * MODULES.html.sh: Mention new module.
31259
31260 2008-07-14  Ben Pfaff  <blp@gnu.org>
31261
31262         Factor out some macros for use by additional modules.
31263         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
31264         exponentf.m4.
31265         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
31266         exponentd.m4.
31267         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
31268         file exponentl.m4.
31269         * m4/exponentf.m4: New file.
31270         * m4/exponentd.m4: New file.
31271         * m4/exponentl.m4: New file.
31272         * modules/isnanf: Use new file m4/exponentf.m4.
31273         * modules/isnand: Use new file m4/exponentd.m4.
31274         * modules/isnanl: Use new file m4/exponentl.m4.
31275
31276 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
31277
31278         mktime.c: normalize tp->tm_isdst value to -1/0/1.
31279         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
31280         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
31281         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
31282
31283         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
31284         readlink on platforms without PATH_MAX.
31285
31286 2008-07-21  Eric Blake  <ebb9@byu.net>
31287
31288         Warn, not fail, on stale version.
31289         * top/GNUmakefile (_curr-ver): Tone down previous patch.
31290
31291         Don't allow installation with stale devel version number.
31292         * top/GNUmakefile (_is-install-target): New macro.
31293         (_curr-ver): Forbid installation with stale version number.
31294
31295 2008-07-20  Bruno Haible  <bruno@clisp.org>
31296
31297         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
31298         TESTS_ENVIRONMENT.
31299         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
31300
31301 2008-07-20  Bruno Haible  <bruno@clisp.org>
31302
31303         * lib/c-stack.h (c_stack_action): Add documentation.
31304         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
31305
31306 2008-07-20  Bruno Haible  <bruno@clisp.org>
31307
31308         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
31309         * modules/readlink (License): Likewise.
31310
31311 2008-07-17  Eric Blake  <ebb9@byu.net>
31312
31313         * modules/c-stack (Link): Fix typo.
31314
31315         Make c-stack use libsigsegv, when available.
31316         * modules/c-stack (Depends-on): Add libsigsegv.
31317         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
31318         needed.
31319         * lib/c-stack.c (SIGSTKSZ): Define fallback.
31320         (segv_handler, overflow_handler, c_stack_action)
31321         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
31322         implementation when libsigsegv is available, but only when using
31323         the library is necessary.
31324         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
31325         comment, explaining why XSI check fails on Linux.
31326         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
31327         * tests/test-c-stack2.sh: Tweak skip message.
31328         * NEWS: Document new link-time requirements.
31329
31330 2008-07-16  Eric Blake  <ebb9@byu.net>
31331
31332         c-stack: Expose false positives when not using libsigsegv.
31333         * modules/c-stack-tests (Files): Expand test.
31334         * tests/test-c-stack.c (main): Add means to conditionally trigger
31335         non-overflow SIGSEGV.
31336         * tests/test-c-stack2.sh: New file.
31337
31338 2008-07-14  Bruno Haible  <bruno@clisp.org>
31339
31340         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
31341         Reported by Eric Blake.
31342
31343 2008-07-14  Sam Steingold  <sds@gnu.org>
31344             Bruno Haible  <bruno@clisp.org>
31345
31346         New module libsigsegv.
31347         * modules/libsigsegv: New file.
31348         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
31349         modifications.
31350         * MODULES.html.sh (Signal handling): New section.
31351
31352 2008-07-14  Bruno Haible  <bruno@clisp.org>
31353
31354         * modules/unictype/ctype-* (Description): Add the word "function".
31355         Improves the resulting doc in MODULES.html.
31356
31357 2008-07-12  Ben Pfaff  <blp@gnu.org>
31358
31359         Add longlong module.
31360         * modules/longlong: New file.
31361
31362 2008-07-12  Bruno Haible  <bruno@clisp.org>
31363
31364         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
31365         to empty.
31366
31367 2008-07-10  Ben Pfaff  <blp@gnu.org>
31368
31369         Add isnan module.
31370         * doc/posix-functions/isnan.texi: Mention new module.
31371         * lib/math.in.h: Define isnan macro if we have decided to replace
31372         it.
31373         * m4/isnan.m4: New file.
31374         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
31375         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
31376         also.
31377         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
31378         redundancy.
31379         * m4/math_h.m4: Initialize and substitute variables for isnan
31380         module.
31381         * modules/isnan: New file.
31382         * modules/isnan-tests: New file.
31383         * modules/math: Add substitutions for new module.
31384         * tests/test-isnan.c: New file.
31385         * MODULES.html.sh: Mention new module.
31386
31387 2008-07-10  Ben Pfaff  <blp@gnu.org>
31388
31389         Add isnanf module.
31390         * lib/isnanf.m4: New file.
31391         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
31392         (gl_HAVE_ISNANF_IN_LIBM): New macro.
31393         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31394         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31395         * modules/isnanf: New file.
31396         * modules/isnanf-tests: New file.
31397         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31398         files.
31399         * tests/test-isnanf-nolibm.c: factored most of its contents into
31400         new file tests/test-isnanf.h.
31401         * tests/test-isnanf.h: New file.
31402         * tests/test-isnanf.c: New file.
31403         * MODULES.html.sh: Mention new module.
31404         * doc/glibc-functions/isnanf.texi: Mention new module.
31405
31406 2008-07-10  Ben Pfaff  <blp@gnu.org>
31407
31408         Add isnand module.
31409         * lib/isnand.h: New file.
31410         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31411         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31412         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31413         functionality also.
31414         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31415         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31416         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31417         * modules/isnand: New file.
31418         * modules/isnand-tests: New file.
31419         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31420         files.
31421         * tests/test-isnand-nolibm.c: factored most of its contents into
31422         new file tests/test-isnand.h.
31423         * tests/test-isnand.h: New file.
31424         * tests/test-isnand.c: New file.
31425         * MODULES.html.sh: Mention new module.
31426
31427 2008-07-10  Ben Pfaff  <blp@gnu.org>
31428
31429         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31430         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31431         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31432         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31433         * modules/isnanf-nolibm: Update references to renamed files.
31434         * modules/isnand-nolibm: Likewise.
31435         * modules/isnanf-nolibm-tests: Likewise.
31436         * modules/isnand-nolibm-tests: Likewise.
31437         * lib/frexp.c: Likewise.
31438         * lib/isfinite.c: Likewise.
31439         * lib/signbitd.c: Likewise.
31440         * lib/signbitf.c: Likewise.
31441         * lib/vasnprintf.c: Likewise.
31442         * tests/test-ceilf1.c: Likewise.
31443         * tests/test-ceilf2.c: Likewise.
31444         * tests/test-floorf1.c: Likewise.
31445         * tests/test-floorf2.c: Likewise.
31446         * tests/test-frexp.c: Likewise.
31447         * tests/test-round1.c: Likewise.
31448         * tests/test-round2.c: Likewise.
31449         * tests/test-roundf1.c: Likewise.
31450         * tests/test-strtod.c: Likewise.
31451         * tests/test-trunc1.c: Likewise.
31452         * tests/test-trunc2.c: Likewise.
31453         * tests/test-truncf1.c: Likewise.
31454         * tests/test-truncf2.c: Likewise.
31455         * NEWS: Mention the renamed header files.
31456
31457 2008-07-11  Jim Meyering  <meyering@redhat.com>
31458
31459         vc-list-files: make the last-resort awk code more portable
31460         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31461         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31462         does not support it.
31463
31464 2008-07-10  Eric Blake  <ebb9@byu.net>
31465
31466         Work with tar's bootstrap.
31467         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31468         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31469         an m4 comment.
31470
31471 2008-07-09  Jim Meyering  <meyering@redhat.com>
31472
31473         posix-shell.m4: fix typo that made this test malfunction
31474         * m4/posix-shell.m4: Remove capitalization in variable name.
31475
31476 2008-07-08  Bruno Haible  <bruno@clisp.org>
31477
31478         * m4/onceonly.m4: Update comments.
31479         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31480
31481 2008-07-04  Jim Meyering  <meyering@redhat.com>
31482
31483         * users.txt: Add vc-dwim.
31484         (bison, coreutils): Use the gitweb URL.
31485
31486 2008-07-03  Jim Meyering  <meyering@redhat.com>
31487
31488         * users.txt: Add libffcall.  From Sam Steingold.
31489
31490 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31491
31492         getdate.y: do not ignore TZ with relative day, month or year offset
31493         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31494         relative-date-handling, since otherwise, the latter would clobber the
31495         sole output (an updated Start value) of the tz-handling block.
31496         * tests/test-getdate.c: Tests for the fix
31497
31498 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31499
31500         Recognize 'foo_LIBRARIES += libgnu.a'.
31501         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31502         makefile snippet has already specified an installation location,
31503         also using '+='.
31504
31505 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31506
31507         getdate.y: factor out common actions
31508         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31509         Use them in place of open-coded actions.
31510
31511 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31512
31513         Add self-test for getdate module.
31514         * modules/getdate-tests: New file.
31515         * tests/test-getdate.c: New file.
31516
31517 2008-06-29  Bruno Haible  <bruno@clisp.org>
31518
31519         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31520         .gitignore.
31521         Reported by Sylvain Beucler <beuc@beuc.net>.
31522
31523 2008-06-29  Bruno Haible  <bruno@clisp.org>
31524
31525         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31526         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31527
31528 2008-06-29  Bruno Haible  <bruno@clisp.org>
31529
31530         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31531         EXTRA_DIST.
31532         Reported by Sylvain Beucler <beuc@beuc.net>.
31533
31534 2008-06-26  Jim Meyering  <meyering@redhat.com>
31535
31536         make several modules depend on the "open" module
31537         This provides slightly increased consistency when opening-for-write
31538         the name of a non-directory spelled with a trailing slash.
31539         * modules/chdir-safer: Likewise.
31540         * modules/chown: Likewise.
31541         * modules/clean-temp: Likewise.
31542         * modules/copy-file: Likewise.
31543         * modules/fchdir: Likewise.
31544         * modules/fcntl-safer: Likewise.
31545         * modules/pipe: Likewise.
31546         * modules/utime: Likewise.
31547         Prompted by Eric Blake and Bruno Haible.
31548
31549 2008-06-24  Andreas Schwab  <schwab@suse.de>
31550
31551         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31552         literals can be used as initializers for global variables.
31553
31554 2008-06-23  Eric Blake  <ebb9@byu.net>
31555
31556         Make gnulib-cache.m4 easier to diff.
31557         * gnulib-tool (func_import): Allow newlines when reading cached
31558         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31559
31560 2008-06-23  Bruno Haible  <bruno@clisp.org>
31561
31562         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31563         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31564         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31565         m4/signalblocking.m4.
31566         (gl_PREREQ_SIGACTION): Don't invoke it.
31567         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31568         gl_PREREQ_SIG_HANDLER_H.
31569         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31570         Don't check for sigaction here.
31571
31572 2008-06-23  Bruno Haible  <bruno@clisp.org>
31573
31574         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31575         (install_handlers): Don't set the SA_RESETHAND flag.
31576
31577 2008-06-23  Bruno Haible  <bruno@clisp.org>
31578
31579         * m4/sigaction.m4: Comment fixes.
31580         * lib/signal.in.h: Likewise.
31581
31582 2008-06-23  Eric Blake  <ebb9@byu.net>
31583
31584         Fix typo.
31585         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31586
31587         Avoid SA_ namespace.
31588         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31589         Reported by Ralf Wildenhues.
31590
31591         Avoid test failure due to SA_RESTORER.
31592         * tests/test-sigaction.c (SA_MASK): New macro.
31593         (main): Avoid failing due to extension flags being set.
31594         Reported by Jim Meyering.
31595
31596         Revert use of sig-handler.h in sigprocmask.c.
31597         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31598         it requires the existence of struct sigaction.
31599         * lib/sigprocmask.c (handler_t): Restore typedef.
31600         (rpl_signal, old_handlers): Use local type.
31601
31602 2008-06-22  Bruno Haible  <bruno@clisp.org>
31603
31604         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31605         conditionally.
31606         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31607
31608 2008-06-22  Bruno Haible  <bruno@clisp.org>
31609
31610         * doc/posix-functions/siginterrupt.texi: Move note.
31611
31612         * lib/signal.in.h (SA_RESTART): New macro.
31613         * lib/sigaction.c: Update comment.
31614
31615         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31616
31617         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31618         (gl_PREREQ_SIGPROCMASK): Invoke it.
31619         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31620
31621         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31622
31623         * lib/sigprocmask.c: Update a comment.
31624
31625 2008-06-21  Eric Blake  <ebb9@byu.net>
31626
31627         Use sigaction module rather than signal().
31628         * modules/c-stack (Depends-on): Add sigaction.
31629         * modules/fatal-signal (Depends-on): Likewise.
31630         * modules/nanosleep (Depends-on): Likewise.
31631         * modules/sigprocmask (Files): Add sig-handler.h.
31632         * modules/sigaction (Files): Likewise.
31633         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31634         Eggert.
31635         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31636         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31637         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31638         (init_fatal_signals): Likewise.
31639         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31640         (siginterrupt): Delete fallback.
31641         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31642         instead.
31643         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31644         siginterrupt.
31645
31646         New module sigaction, for mingw.
31647         * modules/sigaction: New module...
31648         * modules/sigaction-tests: ...and its test.
31649         * m4/sigaction.m4: New file.
31650         * lib/sigaction.c: Likewise.
31651         * tests/test-sigaction.c: Likewise.
31652         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31653         * modules/signal (Makefile.am): Likewise.
31654         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31655         needed.
31656         * doc/posix-headers/signal.texi (signal.h): Mention provided
31657         types.
31658         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31659         that sigaction is preferable.
31660         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31661         module.
31662         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31663         sigaction.
31664
31665         Improve robustness of sigprocmask by overriding signal.
31666         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31667         is in use.
31668         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31669         (SIGKILL, SIGSTOP): Provide fallbacks.
31670         (rpl_signal): Implement.
31671         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31672         signal can be called inside handlers.
31673
31674         Fix nanosleep module on mingw.
31675         * modules/nanosleep (Depends-on): Add sys_select.
31676         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
31677
31678         Fix licensing of sigprocmask.
31679         * modules/raise (License): Relicense as LGPL.
31680
31681 2008-06-21  Bruno Haible  <bruno@clisp.org>
31682
31683         * lib/propername.c (proper_name_utf8): Don't use the transliterated
31684         result if it contains question marks.
31685         Reported by Michael Geng <linux@michaelgeng.de>.
31686
31687 2008-06-19  Bruno Haible  <bruno@clisp.org>
31688
31689         Fix CVS-ism.
31690         * doc/gnulib.texi: Include updated-stamp.texi.
31691         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
31692         (updated-stamp.texi): New rule.
31693         (gnulib.info): Depend on it.
31694         * doc/.gitignore: Add updated-stamp.texi.
31695         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
31696
31697 2008-06-19  Bruno Haible  <bruno@clisp.org>
31698
31699         * doc/Makefile (gnulib.info): Update and simplify dependencies.
31700         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31701
31702 2008-06-19  Eric Blake  <ebb9@byu.net>
31703
31704         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
31705         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
31706         Reported by Stepan Kasal.
31707
31708 2008-06-18  Bruno Haible  <bruno@clisp.org>
31709
31710         * lib/fatal-signal.c (init_fatal_signals): Add comment.
31711         Reported by Eric Blake.
31712
31713 2008-06-18  Eric Blake  <ebb9@byu.net>
31714
31715         Work around cygwin 1.5.25 strsignal bug.
31716         * tests/test-strsignal.c: Allow for const char *.
31717         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
31718
31719 2008-06-18  Simon Josefsson  <simon@josefsson.org>
31720
31721         * users.txt: Update URL to article and add author/date
31722         information.
31723
31724 2008-06-17  Bruno Haible  <bruno@clisp.org>
31725
31726         New macro gl_DISABLE_THREADS.
31727         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
31728         if the user did not pass --enable-threads or --disable-threads option.
31729         (gl_DISABLE_THREADS): New macro.
31730         Reported by Eric Blake <ebb9@byu.net>.
31731
31732 2008-06-17  Bruno Haible  <bruno@clisp.org>
31733
31734         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
31735         when the macro ignores it.
31736         Based on a patch by Eric Blake <ebb9@byu.net>.
31737
31738 2008-06-17  Bruno Haible  <bruno@clisp.org>
31739
31740         * modules/tls (License): Change to LGPLv2+.
31741         Reported by Eric Blake.
31742
31743 2008-06-17  Eric Blake  <ebb9@byu.net>
31744
31745         Simplify c-stack prerequisites.
31746         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
31747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
31748         no longer requires <ucontext.h> to exist.  Optimize setrlimit
31749         check.
31750         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
31751         <sys/resource.h>.
31752
31753         Move c-stack test into testsuite.
31754         * modules/c-stack-tests: New file.
31755         * lib/c-stack.c [DEBUG]: Move test program...
31756         * tests/test-c-stack.c: ...into this new file.  Skip rather than
31757         fail test if sigaltstack is lacking.
31758         * tests/test-c-stack.sh: New driver file.
31759
31760 2008-06-16  Eric Blake  <ebb9@byu.net>
31761
31762         Use raise module consistently.
31763         * modules/fatal-signal (Depends-on): Add raise.
31764         * modules/sigprocmask (Depends-on): Likewise.
31765         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
31766         * lib/sigprocmask.c (sigprocmask): Likewise.
31767         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31768         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
31769
31770         Fix compliance bug in sigpending.
31771         * lib/sigprocmask.c (sigpending): Return pending array via
31772         parameter, not return value.
31773
31774 2008-06-14  Eric Blake  <ebb9@byu.net>
31775
31776         Improve obstack-printf test code.
31777         * tests/test-obstack-printf.c (test_function): Fix comment, and
31778         simplify usage of obstack_* in macros.  Add a test for coverage.
31779         Reported by Bruno Haible.
31780
31781 2008-06-14  Bruno Haible  <bruno@clisp.org>
31782
31783         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
31784         array size as a constant, not as a const variable.
31785         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
31786         AC_USE_SYSTEM_EXTENSIONS.
31787         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31788         Test whether the obstack_printf function actually exists.
31789         * modules/obstack-printf (Depends-on): Add extensions.
31790         (Include): Remove obstack.h.
31791         * modules/obstack-printf-posix (Depends-on): Add extensions.
31792         (Include): Remove obstack.h.
31793
31794 2008-06-13  Eric Blake  <ebb9@byu.net>
31795
31796         Add obstack-printf and obstack-printf-posix modules.
31797         * modules/obstack-printf: New file.
31798         * modules/obstack-printf-posix: Likewise.
31799         * MODULES.html.sh (Misc): Mention them.
31800         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31801         Likewise.
31802         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31803         Likewise.
31804         * modules/stdio (Makefile.am): Accomodate new modules.
31805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31806         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
31807         Declare.
31808         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
31809         functions.
31810         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
31811         (gl_REPLACE_OBSTACK_PRINTF): New macros
31812         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
31813         * tests/test-obstack-printf.c: New file.
31814         * modules/obstack-printf-tests: Likewise.
31815         * modules/obstack-printf-posix-tests: Likewise.
31816
31817 2008-06-11  Bruno Haible  <bruno@clisp.org>
31818
31819         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
31820         * lib/open.c: Include errno.h.
31821         (open): Fail when attempting to write to a file that has a trailing
31822         slash.
31823         * tests/test-open.c (main): Test against trailing slash bug.
31824         * doc/posix-functions/open.texi: Mention the trailing slash bug.
31825
31826 2008-06-10  Bruno Haible  <bruno@clisp.org>
31827
31828         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
31829         for $? to work inside the trap command, with various /bin/sh-s.
31830         * tests/test-vc-list-files-cvs.sh: Likewise.
31831
31832 2008-06-10  Bruno Haible  <bruno@clisp.org>
31833
31834         * lib/acl-internal.h: Don't include gettext.h here.
31835         * lib/set-mode-acl.c: Include gettext.h here.
31836         * lib/copy-acl.c: Likewise.
31837
31838 2008-06-10  Bruno Haible  <bruno@clisp.org>
31839
31840         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31841         * lib/wait-process.c (wait_subprocess): Likewise.
31842         * lib/execute.h (execute): Add termsigp argument.
31843         * lib/execute.c (execute): Likewise.
31844         * lib/csharpcomp.c (compile_csharp_using_pnet,
31845         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31846         * lib/csharpexec.c (execute_csharp_using_pnet,
31847         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31848         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31849         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31850         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31851         is_jikes_present): Update.
31852         * lib/javaexec.c (execute_java_class): Update.
31853         * lib/javaversion.c (execute_and_read_line): Update.
31854         * NEWS: Document the changes.
31855         Reported by Eric Blake.
31856
31857 2008-06-10  Eric Blake  <ebb9@byu.net>
31858
31859         Add missing include.
31860         * tests/test-strstr.c (includes): Add <signal.h>.
31861         * tests/test-strcasestr.c (includes): Likewise.
31862         * tests/test-memmem.c (includes): Likewise.
31863
31864 2008-06-10  Bruno Haible  <bruno@clisp.org>
31865
31866         * lib/wait-process.c (wait_subprocess): Add an assertion.
31867
31868 2008-06-10  Bruno Haible  <bruno@clisp.org>
31869
31870         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31871
31872 2008-06-10  Bruno Haible  <bruno@clisp.org>
31873
31874         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31875         using alarm().
31876         * tests/test-strcasestr.c (main): Likewise.
31877         * tests/test-strstr.c (main): Likewise.
31878
31879 2008-06-09  Bruno Haible  <bruno@clisp.org>
31880
31881         Work around the Solaris 10 ACE ACLs ABI change.
31882         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31883         declare if ACL_NO_TRIVIAL is present.
31884         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31885         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31886         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31887         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31888         define if ACL_NO_TRIVIAL is present.
31889         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31890         and use the current ABI.
31891         (file_has_acl): Use same #if condition as elsewhere.
31892         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31893         in use, and use the current ABI.
31894         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31895         Reported by Jim Meyering.
31896
31897 2008-06-09  Eric Blake  <ebb9@byu.net>
31898
31899         Work around environments that (stupidly) ignore SIGALRM.
31900         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31901         before using alarm().
31902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31903         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31904         Reported by Ian Beckwith <ianb@erislabs.net>.
31905
31906         Produce autobuild blurb earlier in log.
31907         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31908
31909 2008-06-09  Jim Meyering  <meyering@redhat.com>
31910         and OndÅ™ej Vašík  <ovasik@redhat.com>
31911
31912         utimens.c: correct kernel bug work-around
31913         OndÅ™ej Vašík found that the invalid return value of 280 indicates
31914         failure, not success, and the kernel bug we're trying to work
31915         around affects not just the utimensat call, but also the fallback
31916         futimens call.
31917         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31918         not success.
31919         [HAVE_FUTIMENS]: Use the same work-around, here.
31920
31921 2008-06-09  Jim Meyering  <meyering@redhat.com>
31922
31923         add more guards around definition of ACE_-related code
31924         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31925         ALLOW and ACE_OWNER are also defined.
31926
31927 2008-06-08  Bruno Haible  <bruno@clisp.org>
31928
31929         * lib/acl-internal.h: Add me as co-author.
31930         * lib/file-has-acl.c: Likewise.
31931         * lib/set-mode-acl.c: Likewise.
31932         * lib/copy-acl.c: Likewise.
31933
31934 2008-06-08  Bruno Haible  <bruno@clisp.org>
31935
31936         Add support for AIX ACLs.
31937         * lib/acl-internal.h (acl_nontrivial): New declaration.
31938         * lib/file-has-acl.c (acl_nontrivial): New function.
31939         (file_has_acl): Add implementation using AIX 4 ACL API.
31940         * lib/set-mode-acl.c (qset_acl): Likewise.
31941         * lib/copy-acl.c (qcopy_acl): Likewise.
31942
31943 2008-06-08  Bruno Haible  <bruno@clisp.org>
31944
31945         Add support for HP-UX ACLs.
31946         * lib/acl-internal.h (acl_nontrivial): New declaration.
31947         * lib/file-has-acl.c (acl_nontrivial): New function.
31948         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31949         * lib/set-mode-acl.c (qset_acl): Likewise.
31950         * lib/copy-acl.c (qcopy_acl): Likewise.
31951
31952 2008-06-08  Bruno Haible  <bruno@clisp.org>
31953
31954         Add support for Cygwin ACLs.
31955         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31956         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31957         the chmod_or_fchmod call.
31958         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31959
31960 2008-06-08  Bruno Haible  <bruno@clisp.org>
31961
31962         Fix bug with setuid modes in Solaris 10+ code.
31963         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31964         succeeded, when the mode contains some special bits.
31965
31966 2008-06-08  Bruno Haible  <bruno@clisp.org>
31967
31968         Add support for Solaris 7..10 ACLs.
31969         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31970         declarations.
31971         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31972         functions.
31973         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31974         * lib/set-mode-acl.c (qset_acl): Likewise.
31975         * lib/copy-acl.c (qcopy_acl): Likewise.
31976
31977 2008-06-08  Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31980         declaration.
31981         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31982         (acl_access_nontrivial): Remove MacOS X case.
31983         (file_has_acl): Use acl_extended_nontrivial.
31984         * lib/copy-acl.c (qcopy_acl): Likewise.
31985
31986 2008-06-08  Bruno Haible  <bruno@clisp.org>
31987
31988         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31989
31990 2008-06-08  Jim Meyering  <meyering@redhat.com>
31991
31992         * modules/acl (Maintainer): Add Bruno Haible.
31993
31994 2008-06-07  Bruno Haible  <bruno@clisp.org>
31995
31996         Improve support for Tru64 ACLs.
31997         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31998         ACL on OSF/1.
31999
32000 2008-06-07  Bruno Haible  <bruno@clisp.org>
32001
32002         Add support for MacOS X ACLs.
32003         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
32004         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
32005         * lib/set-mode-acl.c (qset_acl): Likewise.
32006         * lib/copy-acl.c (qcopy_acl): Likewise.
32007
32008 2008-06-07  Bruno Haible  <bruno@clisp.org>
32009
32010         Fix memory leak introduced on 2008-05-22.
32011         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
32012         use.
32013
32014 2008-06-07  Bruno Haible  <bruno@clisp.org>
32015
32016         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
32017         to construct an empty ACL.
32018
32019 2008-06-07  Bruno Haible  <bruno@clisp.org>
32020
32021         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
32022         precisely.
32023         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
32024
32025 2008-06-07  Bruno Haible  <bruno@clisp.org>
32026
32027         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
32028         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
32029
32030 2008-06-07  Bruno Haible  <bruno@clisp.org>
32031
32032         * doc/posix-functions/_setjmp.texi: Explain the use of this function
32033         regardless of POSIX.
32034         * doc/posix-functions/_longjmp.texi: Likewise.
32035         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
32036         SystemV platform in this case.
32037
32038 2008-06-06  Eric Blake  <ebb9@byu.net>
32039
32040         Document abort() bugs.
32041         * doc/posix-functions/abort.texi (abort): Mention anomalies.
32042
32043         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
32044         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
32045         sigsetjmp.
32046         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
32047         siglongjmp, but only as a macro.
32048         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
32049         is obsolete.
32050         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
32051
32052         Tweak documentation to cover cygwin argz bugs.
32053         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
32054         argz bug fix; no code change needed since no cygwin releases
32055         occurred between the last fix and the bug being tested.
32056         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
32057         module and recently fixed cygwin bugs.
32058         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
32059         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
32060         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
32061         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
32062         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
32063         Likewise.
32064         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
32065         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
32066         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
32067         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
32068         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
32069         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
32070         Likewise.
32071
32072         Avoid gcc warning on cygwin.
32073         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
32074         !ACL_NO_TRIVIAL]: Avoid unused variable.
32075
32076 2008-06-05  Eric Blake  <ebb9@byu.net>
32077
32078         Be tolerant of UNKNOWN version in gnulib-tool test dir.
32079         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
32080         git-version-gen fails to come up with a version.
32081         Reported by Simon Josefsson.
32082
32083 2008-06-05  Jim Meyering  <meyering@redhat.com>
32084             Paul Eggert  <eggert@cs.ucla.edu>
32085
32086         utimens.c: work around a probable Linux kernel bug
32087         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
32088         appears to be a kernel bug that causes utimensat to return 280
32089         instead of 0, indicating success.
32090
32091 2008-06-04  Bruno Haible  <bruno@clisp.org>
32092
32093         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
32094         2008-06-01 commit.
32095
32096 2008-06-04  Bruno Haible  <bruno@clisp.org>
32097
32098         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
32099         * lib/file-has-acl.c (acl_access_nontrivial): New function.
32100         (file_has_acl): Use it. Save errno afterwards.
32101         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
32102
32103 2008-06-03  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
32106         draft code. Simplify #ifs.
32107         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
32108         Put Solaris code after POSIX-draft code. Fix comments regarding
32109         Solaris 10, HP-UX. Mention Cygwin.
32110         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
32111
32112 2008-06-03  Eric Blake  <ebb9@byu.net>
32113
32114         Provide fallback for older kernels.
32115         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
32116         Provide runtime fallback if kernel lacks support.
32117         Reported by Mike Frysinger.
32118
32119 2008-06-02  Bruno Haible  <bruno@clisp.org>
32120
32121         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
32122         it exists.
32123
32124 2008-06-02  Bruno Haible  <bruno@clisp.org>
32125
32126         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
32127         * lib/copy-acl.c (qcopy_acl): Update comment.
32128
32129 2008-06-02  Bruno Haible  <bruno@clisp.org>
32130
32131         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
32132         like ACL APIs.
32133
32134 2008-06-02  Bruno Haible  <bruno@clisp.org>
32135
32136         * tests/test-file-has-acl.sh: Use different code for Cygwin.
32137         * tests/test-set-mode-acl.sh: Likewise.
32138         * tests/test-copy-acl.sh: Likewise.
32139         * tests/test-copy-file.sh: Likewise.
32140
32141 2008-06-02  Bruno Haible  <bruno@clisp.org>
32142
32143         * tests/test-file-has-acl.sh: Remove unused code.
32144
32145 2008-06-01  Bruno Haible  <bruno@clisp.org>
32146
32147         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
32148         (copy_acl): Just a wrapper around qcopy_acl that emits the error
32149         messages.
32150         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
32151
32152 2008-06-01  Bruno Haible  <bruno@clisp.org>
32153
32154         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
32155         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
32156         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
32157         APIs.
32158         * modules/acl-tests (configure.ac): Remove tests now contained in
32159         m4/acl.m4.
32160
32161 2008-06-02  Jim Meyering  <meyering@redhat.com>
32162
32163         announce-gen: use a better key-server host name
32164         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
32165         it may be more consistently reliable.  Suggested by Werner Koch
32166         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
32167
32168 2008-06-01  Bruno Haible  <bruno@clisp.org>
32169
32170         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
32171         Reported by Voroskoi Andras <voroskoi@gmail.com>.
32172
32173 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
32174
32175         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
32176
32177 2008-06-01  Bruno Haible  <bruno@clisp.org>
32178
32179         New ACL tests.
32180         * tests/test-file-has-acl.sh: New file.
32181         * tests/test-file-has-acl.c: New file.
32182         * tests/test-set-mode-acl.sh: New file.
32183         * tests/test-set-mode-acl.c: New file.
32184         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
32185         * tests/test-copy-acl.c: New file.
32186         * modules/acl-tests: New file, based on modules/copy-file-tests.
32187         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
32188         (Depends-on): Add acl-tests.
32189         (configure.ac): Remove checks.
32190         (Makefile.am): Don't create test-sameacls program here any more.
32191
32192 2008-06-01  Bruno Haible  <bruno@clisp.org>
32193
32194         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
32195         * tests/test-sameacls.c: Include progname.h.
32196         (main): Invoke set_program_name. Portability fixes for MacOS X,
32197         Solaris, HP-UX.
32198
32199 2008-06-01  Bruno Haible  <bruno@clisp.org>
32200
32201         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
32202         function.
32203         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
32204
32205 2008-06-01  Bruno Haible  <bruno@clisp.org>
32206
32207         * modules/rpmatch (Depends-on): Add strdup.
32208
32209 2008-06-01  Bruno Haible  <bruno@clisp.org>
32210
32211         * lib/pipe.c: Include unistd-safer.h.
32212         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
32213         * modules/pipe (Depends-on): Add unistd-safer.
32214
32215 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32216
32217         * modules/autobuild (configure.ac): Call AB_INIT.
32218
32219 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32220
32221         * tests/test-getaddrinfo.c: Don't print debug messages by default.
32222         Suggested by Bruno Haible <bruno@clisp.org>.
32223
32224 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32225
32226         * tests/test-base64.c: Cast size_t to unsigned long when invoking
32227         printf.  Use %lu instead of %d.  Reported by Bruno Haible
32228         <bruno@clisp.org>.
32229
32230 2008-05-29  Eric Blake  <ebb9@byu.net>
32231
32232         Prefer new POSIX 200x interfaces over futimesat.
32233         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
32234         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
32235         when available.
32236         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
32237
32238 2008-05-28  Bruno Haible  <bruno@clisp.org>
32239
32240         * modules/stpcpy (License): Change to LGPLv2+.
32241         Requested by David Lutterkort <dlutter@redhat.com>.
32242
32243 2008-05-27  Bruno Haible  <bruno@clisp.org>
32244
32245         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
32246         current mingw.
32247         Reported by Jose E. Marchesi <jemarch@gnu.org>.
32248
32249 2008-05-27  Bruno Haible  <bruno@clisp.org>
32250
32251         * modules/iconv_open (Link): New section, from module 'iconv'.
32252         * modules/striconv (Link): Likewise.
32253         * modules/striconveh (Link): Likewise.
32254         * modules/xstriconv (Link): Likewise.
32255         * modules/unicodeio (Link): Likewise.
32256         * modules/propername (Link): Likewise.
32257         Reported by Jim Meyering.
32258
32259 2008-05-26  Jim Meyering  <meyering@redhat.com>
32260
32261         sha256: do not artificially restrict buffer length to be < 2^32
32262         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
32263         uint32_t to size_t.
32264         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
32265         to match.
32266
32267         avoid unaligned access errors, e.g., on sparc
32268         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
32269         direct access through a possibly-unaligned uint64* pointer.
32270         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
32271         direct access through a possibly-unaligned uint32* pointer.
32272         Prompted by this patch from Tom "spot" Callaway:
32273         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
32274
32275         sha512.c: fix typo in comment
32276         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
32277
32278 2008-05-25  Bruno Haible  <bruno@clisp.org>
32279
32280         * lib/set-mode-acl.c: Renamed from lib/acl.c.
32281         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
32282         (Makefile.am): Update lib_SOURCES.
32283
32284 2008-05-25  Bruno Haible  <bruno@clisp.org>
32285
32286         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
32287
32288 2008-05-25  Jim Meyering  <meyering@redhat.com>
32289
32290         useless-if-before-free: freed expr may have white-space differences
32291         * build-aux/useless-if-before-free: Recognize cases in which the
32292         freed expression differs from the tested one in embedded white
32293         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
32294         $1 was used, so we can't make any regexp shy.  Improved tests now
32295         detect this.
32296
32297         useless-if-before-free: accept white space in the expression.
32298         * build-aux/useless-if-before-free: For now, any white space
32299         in the expression must be identical in the free argument.
32300
32301         useless-if-before-free: efficiency tweak
32302         * build-aux/useless-if-before-free: Make the expression-matching
32303         regexp "shy".
32304         Make the *outer* regexp shy, not the expr-matching one.
32305
32306         update code-in-comment to accept cast of free arg
32307         * build-aux/useless-if-before-free: Update regexp.
32308
32309 2008-05-25  Bruno Haible  <bruno@clisp.org>
32310
32311         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
32312         * modules/copy-file-tests (Files, Makefile.am): Update.
32313         * tests/test-copy-file.c (func_test_copy): Update.
32314
32315 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
32316
32317         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
32318
32319 2008-05-23  Bruno Haible  <bruno@clisp.org>
32320
32321         Improve support for ACLs on OSF/1.
32322         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
32323         Remove fallback for unknown flavors of ACLs.
32324
32325 2008-05-22  Bruno Haible  <bruno@clisp.org>
32326
32327         Add support for ACLs on OSF/1.
32328         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
32329         replacements.
32330         (acl_free_text): New macro fallback.
32331         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
32332         acl_free.
32333         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
32334         acl_free_text function. Require AC_C_INLINE.
32335
32336 2008-05-22  Bruno Haible  <bruno@clisp.org>
32337
32338         Make copy_acl work on MacOS X 10.5.
32339         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
32340         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
32341         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
32342         If MODE_INSIDE_ACL, don't assume that every system has the same text
32343         representation for ACLs as FreeBSD.
32344         * lib/copy-acl.c (copy_acl): Add support for platforms with
32345         !MODE_INSIDE_ACL.
32346         * lib/file-has-acl.c (file_has_acl): Likewise.
32347         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
32348         FreeBSD, MacOS X, or IRIX, respectively.
32349
32350 2008-05-22  Bruno Haible  <bruno@clisp.org>
32351
32352         * lib/acl.h: Don't include <sys/acl.h>.
32353         (GETACLCNT): Move fallback to lib/acl-internal.h.
32354         * lib/acl-internal.h: Include <sys/acl.h> here.
32355         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
32356
32357 2008-05-22  Bruno Haible  <bruno@clisp.org>
32358
32359         Split off copy_acl function to separate file.
32360         * lib/copy-acl.c: New file, extracted from lib/acl.c.
32361         * lib/acl.c (copy_acl): Moved function to separate file.
32362         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
32363         * modules/acl (Files): Add lib/copy-acl.c.
32364         (Makefiles.am): Augment lib_SOURCES.
32365
32366 2008-05-22  Bruno Haible  <bruno@clisp.org>
32367
32368         * modules/copy-file-tests: New file.
32369         * tests/test-copy-file.sh: New file.
32370         * tests/test-copy-file.c: New file.
32371         * tests/test-copy-file-sameacls.c: New file.
32372
32373 2008-05-22  Eric Blake  <ebb9@byu.net>
32374
32375         Avoid gcc warning.
32376         * tests/test-memcmp.c (main): Pass NULL indirectly.
32377
32378 2008-05-21  Bruno Haible  <bruno@clisp.org>
32379
32380         Add reference doc about ACLs.
32381         * doc/acl-resources.txt: New file.
32382         * doc/acl-cygwin.txt: New file.
32383
32384 2008-05-21  Bruno Haible  <bruno@clisp.org>
32385
32386         Avoid one more warning from gcc.
32387         * lib/vasnprintf.c (IF_LINT): Update comments.
32388         (VASNPRINTF): Use it also for the 'prefix' array initializer.
32389
32390 2008-05-21  Jim Meyering  <meyering@redhat.com>
32391
32392         avoid a warning from gcc
32393         * lib/vasnprintf.c (IF_LINT): Define.
32394         (scale10_round_decimal_long_double):
32395         Use it to avoid a "may be used uninitialized" warning.
32396         (scale10_round_decimal_double): Likewise.
32397
32398 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32399
32400         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32401         declared.
32402
32403 2008-05-20  Bruno Haible  <bruno@clisp.org>
32404
32405         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32406         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32407
32408 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32409
32410         * modules/memcmp-tests: New file.
32411         * tests/test-memcmp.c: New file.
32412
32413 2008-05-19  Bruno Haible  <bruno@clisp.org>
32414
32415         * modules/propername (Notice, configure.ac): Put quoted "..." into
32416         --keyword option.
32417         * lib/propername.h: Update comments accordingly.
32418         Reported by Eric Blake.
32419
32420 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32421
32422         * modules/getpass-gnu (Depends-on): Add fseeko.
32423
32424 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32425
32426         * modules/base64-tests: New file.
32427
32428 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32429
32430         * lib/base64.c (base64_decode_ctx): If a decode context structure
32431         was passed in use it to ignore newlines.  If a context structure
32432         was _not_ passed in, continue to treat newlines as garbage (this
32433         is the historical behavior).  Formerly base64_decode.
32434         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32435         takes a decode context structure.
32436         * lib/base64.h (base64_decode): Macro for four-argument calls.
32437         (base64_decode_alloc): Likewise.
32438         * lib/base64.c (base64_decode_ctx): If a decode context structure
32439         was passed in use it to ignore newlines.  If a context structure
32440         was _not_ passed in, continue to treat newlines as garbage (this
32441         is the historical behavior).  Formerly base64_decode.
32442         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32443         takes a decode context structure.
32444         * lib/base64.h (base64_decode): Macro for four-argument calls.
32445         (base64_decode_alloc): Likewise.
32446
32447 2008-05-19  Jim Meyering  <meyering@redhat.com>
32448
32449         avoid a warning from gcc
32450         * lib/trim.c (IF_LINT): Define.
32451         (trim2): Use it to avoid a "may be used uninitialized" warning.
32452
32453         Fix doc typo.
32454         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32455
32456 2008-05-19  Bruno Haible  <bruno@clisp.org>
32457
32458         * doc/glibc-functions/getpass.texi: Document limits of other
32459         implementations.
32460
32461 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32462             Bruno Haible <bruno@clisp.org>
32463
32464         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32465
32466 2008-05-18  Bruno Haible  <bruno@clisp.org>
32467
32468         * modules/propername: New file, from GNU gettext.
32469         * lib/propername.h: New file, from GNU gettext.
32470         * lib/propername.c: New file, from GNU gettext.
32471         * MODULES.html.sh (Internationalization functions): Add propername.
32472
32473 2008-05-16  Jim Meyering  <meyering@redhat.com>
32474             Bruno Haible  <bruno@clisp.org>
32475
32476         Avoid some warnings from "gcc -Wshadow".
32477         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32478
32479 2008-05-15  Eric Blake  <ebb9@byu.net>
32480
32481         Extend previous patch to cygwin 1.7.0.
32482         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32483         fast implementation in cygwin >= 1.7.0.
32484         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32486
32487 2008-05-15  Bruno Haible  <bruno@clisp.org>
32488
32489         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32490         implementation in glibc >= 2.9.
32491         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32493
32494 2008-05-15  Bruno Haible  <bruno@clisp.org>
32495
32496         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32497         (Unicode string functions): Add unilbrk/*.
32498         Reported by Karl Berry.
32499
32500 2008-05-15  Eric Blake  <ebb9@byu.net>
32501
32502         Fix violation of <stdbool.h> replacement in regex.
32503         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32504         * lib/regexec.c (re_search_internal): Likewise.
32505         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32506
32507 2008-05-15  Jim Meyering  <meyering@redhat.com>
32508
32509         avoid distracting test output when git or cvs is not found
32510         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32511         * tests/test-vc-list-files-git.sh: Likewise.
32512
32513 2008-05-15  Eric Blake  <ebb9@byu.net>
32514
32515         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32516         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32517         glibc version.
32518         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32519         * doc/posix-functions/strstr.texi (strstr): Likewise.
32520         * lib/str-two-way.h (MAX): Sychronize with glibc.
32521
32522 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32523
32524         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32525         opr.ctx_type.
32526         (calc_first): Initialize constraint field.
32527         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32528         Fix grammar.
32529         (duplicate_node): Merge constraint field for all node types.
32530         (calc_eclosure_iter): Look at constraint field for all node types.
32531         * lib/regex_internal.c (create_cd_newstate): Don't look at
32532         opr.ctx_type.
32533
32534 2008-05-14  Bruno Haible  <bruno@clisp.org>
32535
32536         Help GCC to do better code generation.
32537         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32538         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32539         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32540         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32541         Declare with attribute 'malloc' if supported.
32542
32543 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32544
32545         use "echo STR|wc -c" rather than unportable "expr length STR"
32546         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32547         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32548
32549 2008-05-14  Jim Meyering  <meyering@redhat.com>
32550
32551         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32552         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32553         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32554         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32555         via Collin Lasse.
32556
32557 2008-05-14  Eric Blake  <ebb9@byu.net>
32558
32559         Avoid quadratic growth in gl_LIBSOURCES.
32560         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32561         Suggested by Bruno Haible.
32562
32563         Test xmemdup0.
32564         * modules/xmemdup0-tests: New file.
32565         * tests/test-xmemdup0.c: Likewise.
32566
32567 2008-05-13  Eric Blake  <ebb9@byu.net>
32568
32569         Split xmemdup0 into its own module.
32570         * modules/xmemdup0: New file.
32571         * lib/xmemdup0.h: Likewise.
32572         * lib/xmemdup0.c: Likewise.
32573         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32574         * lib/xalloc.h (xmemdup0): Remove.
32575         * lib/xmalloc.c (xmemdup0): Likewise.
32576
32577 2008-05-13  Eric Blake  <ebb9@byu.net>
32578             Bruno Haible  <bruno@clisp.org>
32579
32580         Reduce number of forks required during autoconf.
32581         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32582         and gl_LIBSOURCES_DIR.
32583         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32584         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32585         m4_syscmd per file.
32586         <m4_foreach_w>: Move...
32587         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32588
32589 2008-05-13  Eric Blake  <ebb9@byu.net>
32590
32591         * gnulib-tool: Fix various comment typos.
32592
32593 2008-05-12  Bruno Haible  <bruno@clisp.org>
32594
32595         Tailor the linebreaking algorithm.
32596         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32597
32598 2008-05-12  Bruno Haible  <bruno@clisp.org>
32599
32600         Update to Unicode 5.0.0.
32601         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32602         LBP_JV, LBP_JT. Redistribute values.
32603         (unilbrk_table): Change size.
32604         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32605         Unicode TR#14 rev. 22.
32606         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32607         LBP_JV, LBP_JT. Redistribute values.
32608         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32609         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32610         Update.
32611         * lib/unilbrk/lbrkprop1.h: Regenerated.
32612         * lib/unilbrk/lbrkprop2.h: Regenerated.
32613         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32614         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32615         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32616         Likewise.
32617         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32618         Likewise.
32619         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32620         result.
32621         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32622         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32623         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32624         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32625         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32626         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32627
32628 2008-05-11  Bruno Haible  <bruno@clisp.org>
32629
32630         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32631
32632 2008-05-11  Bruno Haible  <bruno@clisp.org>
32633
32634         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32635         * modules/unilbrk/gen-lbrk: New file.
32636
32637 2008-05-11  Bruno Haible  <bruno@clisp.org>
32638
32639         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32640         * m4/sha512.m4 (gl_SHA512): Likewise.
32641
32642 2008-05-11  Jim Meyering  <meyering@redhat.com>
32643
32644         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32645         * modules/crypto/sha256: New file.
32646         * modules/crypto/sha512: Likewise.
32647         * lib/sha256.c: Likewise.
32648         * lib/sha256.h: Likewise.
32649         * lib/sha512.c: Likewise.
32650         * lib/sha512.h: Likewise.
32651         * lib/u64.h: Likewise.
32652         * m4/sha256.m4: Likewise.
32653         * m4/sha512.m4: Likewise.
32654         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32655
32656 2008-05-10  Bruno Haible  <bruno@clisp.org>
32657
32658         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32659         (Input/Output <stdio.h>): Add xprintf.
32660         (Signal handling <signal.h>): Add strsignal.
32661         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32662         (Core language properties): Add func.
32663         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32664         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32665         strings.
32666         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32667         (Input/output): New section.
32668         (File system functions): Add openat-die, stat-macros.
32669         (Networking functions): Add sockets.
32670         (Unicode string functions): Add unictype/*.
32671         (Support for building libraries and executables): Add gperf.
32672         (Support for building documentation): Add agpl-3.0.
32673         (Misc): Add nocrash.
32674
32675 2008-05-10  Bruno Haible  <bruno@clisp.org>
32676
32677         * modules/unictype/gen-ctype: New file.
32678
32679 2008-05-10  Jim Meyering  <meyering@redhat.com>
32680
32681         Make chdir-safer.c more efficient on a system with no symlinks.
32682         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
32683         also if ELOOP is zero.  Suggested by Bruno Haible.
32684
32685         Make chdir-safer.c slightly safer.
32686         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
32687         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
32688
32689         Avoid compile failure on systems without ELOOP (like mingw).
32690         * lib/chdir-safer.c (ELOOP): Define if not already defined.
32691         Reported by Bruno Haible.
32692
32693 2008-05-10  Bruno Haible  <bruno@clisp.org>
32694
32695         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
32696         (is_utf8_encoding): Use a case-insensitive comparison.
32697         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
32698         streq.
32699
32700 2008-05-10  Bruno Haible  <bruno@clisp.org>
32701
32702         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
32703         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
32704         * lib/unilbrk/ulc-common.h (iconv_string_length,
32705         iconv_string_keeping_offsets): Remove declarations.
32706         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
32707         Don't include <iconv.h>, streq.h, xsize.h.
32708         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
32709         conversion.
32710         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
32711         <iconv.h>, streq.h, xsize.h.
32712         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
32713         conversion.
32714         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
32715         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
32716         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
32717         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
32718
32719 2008-05-10  Bruno Haible  <bruno@clisp.org>
32720
32721         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
32722         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
32723
32724         * modules/unilbrk/u32-width-linebreaks-tests: New file.
32725         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
32726
32727         * modules/unilbrk/u16-width-linebreaks-tests: New file.
32728         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
32729
32730         * modules/unilbrk/u8-width-linebreaks-tests: New file.
32731         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
32732
32733         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
32734         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
32735
32736         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
32737         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
32738
32739         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
32740         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
32741
32742         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
32743         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
32744
32745 2008-05-10  Bruno Haible  <bruno@clisp.org>
32746
32747         Split up 'linebreak' module.
32748         * lib/unilbrk.h: New file, based on lib/linebreak.h.
32749         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
32750         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
32751         modifications.
32752         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
32753         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
32754         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
32755         lib/linebreak.c.
32756         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
32757         lib/linebreak.c.
32758         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
32759         lib/linebreak.c.
32760         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
32761         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
32762         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
32763         lib/linebreak.c.
32764         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
32765         lib/linebreak.c.
32766         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
32767         lib/linebreak.c.
32768         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
32769         lib/linebreak.c.
32770         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
32771         lib/linebreak.c.
32772         * modules/unilbrk/base: New file.
32773         * modules/unilbrk/tables: New file.
32774         * modules/unilbrk/u8-possible-linebreaks: New file.
32775         * modules/unilbrk/u16-possible-linebreaks: New file.
32776         * modules/unilbrk/u32-possible-linebreaks: New file.
32777         * modules/unilbrk/ulc-common: New file.
32778         * modules/unilbrk/ulc-possible-linebreaks: New file.
32779         * modules/unilbrk/u8-width-linebreaks: New file.
32780         * modules/unilbrk/u16-width-linebreaks: New file.
32781         * modules/unilbrk/u32-width-linebreaks: New file.
32782         * modules/unilbrk/ulc-width-linebreaks: New file.
32783         * lib/linebreak.h: Remove file.
32784         * lib/linebreak.c: Remove file.
32785         * m4/linebreak.m4: Remove file.
32786         * modules/linebreak: Remove file.
32787         * NEWS: Mention the changes.
32788
32789 2008-05-09  Eric Blake  <ebb9@byu.net>
32790
32791         Add xmemdup0.
32792         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
32793         implementation.
32794         * lib/xmalloc.c (xmemdup0): New C implementation.
32795
32796 2008-05-08  Bruno Haible  <bruno@clisp.org>
32797
32798         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
32799
32800 2008-05-07  Eric Blake  <ebb9@byu.net>
32801
32802         Support cross-compilation of <wctype.h>.
32803         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
32804         AC_CACHE_CHECK.
32805
32806 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
32807
32808         * build-aux/vc-list-files: Add support for bzr.
32809
32810 2008-05-03  Jim Meyering  <meyering@redhat.com>
32811
32812         avoid failed assertion with tight malloc
32813         * tests/test-getndelim2.c: Correct an off-by-one assertion.
32814
32815 2008-05-03  Simon Josefsson  <simon@josefsson.org>
32816
32817         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
32818         are needed from arpa/inet.h.
32819         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
32820         Reported by Bruno Haible.
32821
32822 2008-05-02  Jim Meyering  <meyering@redhat.com>
32823
32824         avoid compilation error on FreeBSD 6
32825         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
32826
32827 2008-05-01  Jim Meyering  <meyering@redhat.com>
32828
32829         useless-if-before-free: correct --help's exit status description
32830         * build-aux/useless-if-before-free (usage): Like grep, exit 0
32831         for one or more matches, etc.  Reported by Bruno Haible.
32832
32833         vc-list-files: make the stand-alone gnulib test work
32834         * modules/vc-list-files-tests (configure.ac):
32835         Define and AC_SUBST abs_aux_dir.
32836         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
32837         $(abs_top_srcdir) to each script and having each of them
32838         duplicate the work of setting PATH, set PATH here, using
32839         the new variable, abs_aux_dir instead.
32840         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32841         * tests/test-vc-list-files-git.sh: Likewise.
32842         Reported by Bruno Haible.
32843
32844 2008-05-01  Bruno Haible  <bruno@clisp.org>
32845
32846         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32847         reallocation. Rename 'done' to 'found_delimiter'.
32848
32849 2008-05-01  Jim Meyering  <meyering@redhat.com>
32850
32851         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32852         * build-aux/vc-list-files: Use `...`, not $(...).
32853
32854 2008-04-30  Jim Meyering  <meyering@redhat.com>
32855
32856         add tests for vc-list-files
32857         * modules/vc-list-files-tests: New module.
32858         * tests/test-vc-list-files-cvs.sh: New file.
32859         * tests/test-vc-list-files-git.sh: New file.
32860
32861         avoid a warning from gcc
32862         * lib/getndelim2.c (IF_LINT): Define.
32863         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32864
32865         vc-list-files: work properly with build-aux/cvsu, too
32866         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32867         to all cvs-based clauses.
32868
32869         vc-list-files: work properly in the CVS+awk case, too
32870         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32871
32872         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32873         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32874         take more than one file argument, so .  Add quotes, just in case $dir
32875         ever contains a shell meta-character.  Prompted by Soren Hansen in
32876         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32877
32878 2008-04-29  Eric Blake  <ebb9@byu.net>
32879
32880         Optimize getndelim2 to use block operations when possible.
32881         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32882         freadseek, and memchr2.
32883         * lib/getndelim2.c (getndelim2): Use them for block reads.
32884
32885 2008-04-29  Bruno Haible  <bruno@clisp.org>
32886
32887         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32888         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32889         * modules/inet_ntop (Depends-on): Add extensions.
32890         * modules/inet_pton (Depends-on): Likewise.
32891         Reported by Simon Josefsson.
32892
32893 2008-04-29  Jim Meyering  <meyering@redhat.com>
32894
32895         When the is more than one match in a block, match all of them.
32896         * build-aux/useless-if-before-free: Iterate through each block
32897         until there are no more matches.
32898
32899         Fix broken useless-if-before-free script.
32900         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32901         the expression to match cast of argument to free-like function.
32902
32903 2008-04-29  Eric Blake  <ebb9@byu.net>
32904
32905         Use new header.
32906         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32907
32908 2008-04-29  Jim Meyering  <meyering@redhat.com>
32909
32910         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32911         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32912         by gnulib to exist and to declare e.g., inet_ntop.
32913         Don't include "inet_ntop.h", now removed.
32914
32915         * m4/arpa_inet_h.m4: Remove trailing blanks.
32916
32917 2008-04-29  Eric Blake  <ebb9@byu.net>
32918
32919         Silence valgrind on safe reads beyond potential array bounds.
32920         * lib/rawmemchr.valgrind: New file.
32921         * lib/strchrnul.valgrind: Likewise.
32922         * modules/rawmemchr (Files): Distribute new file.
32923         * modules/strchrnul (Files): Likewise.
32924         Suggested by Bruno Haible.
32925
32926 2008-04-29  Bruno Haible  <bruno@clisp.org>
32927
32928         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32929         (inet_ntop, inet_pton): Change portability warning's wording.
32930         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32931         Invoke gl_CHECK_NEXT_HEADERS.
32932         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32933         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32934         set ARPA_INET_H.
32935         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32936         * modules/arpa_inet (Description): No longer only for systems that
32937         lack it.
32938         (Depends-on): Add include_next.
32939         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32940         HAVE_ARPA_INET_H.
32941
32942 2008-04-29  Jim Meyering  <meyering@redhat.com>
32943
32944         * modules/mkdir (License): Re-license as LGPLv2+.
32945
32946 2008-04-29  Bruno Haible  <bruno@clisp.org>
32947
32948         * modules/rawmemchr (Maintainer): Set to Eric.
32949         * modules/strchrnul (Maintainer): Likewise.
32950
32951 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32952
32953         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32954         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32955
32956         * modules/arpa_inet (arpa/inet.h): Use them.
32957
32958 2008-04-28  Eric Blake  <ebb9@byu.net>
32959
32960         Test getndelim2.
32961         * modules/getndelim2-tests: New file.
32962         * tests/test-getndelim2.c: Likewise.
32963         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32964         stream.
32965         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32966
32967         * MODULES.html.sh: Document new module.
32968
32969 2008-04-20  Bruno Haible  <bruno@clisp.org>
32970
32971         * lib/c-stack.c (die): Use raise.
32972         * modules/c-stack (Depends-on): Add raise.
32973
32974 2008-04-28  Bruno Haible  <bruno@clisp.org>
32975
32976         Expect rpmatch to be declared.
32977         * lib/yesno.c (rpmatch): Remove declaration.
32978
32979         Declare rpmatch.
32980         * lib/stdlib.in.h (rpmatch): New declaration.
32981         * lib/rpmatch.c: Include <stdlib.h> first.
32982         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32983         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32985         HAVE_RPMATCH.
32986         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32988         (Include): Set to <stdlib.h>.
32989         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32990         HAVE_RPMATCH.
32991         * NEWS: Document the change.
32992
32993 2008-04-28  Bruno Haible  <bruno@clisp.org>
32994
32995         Change rpmatch to use nl_langinfo when appropriate.
32996         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32997         (N_): New macro.
32998         (localized_pattern): New function/macro.
32999         (try): Remove match, nomatch arguments. Copy the pattern into safe
33000         memory before caching it.
33001         (rpmatch): Use localized_pattern. Add translator comments.
33002         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
33003         Suggested by Eric Blake.
33004         * modules/rpmatch (Depends-on): Add stdbool.
33005
33006 2008-04-28  Eric Blake  <ebb9@byu.net>
33007
33008         Add rawmemchr module, matching glibc.
33009         * modules/string (Makefile.am): New indicator.
33010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
33011         * lib/string.in.h (rawmemchr): Declare when appropriate.
33012         * modules/rawmemchr: New file.
33013         * m4/rawmemchr.m4: Likewise.
33014         * lib/rawmemchr.c: Likewise.
33015         * modules/rawmemchr-tests: Likewise.
33016         * tests/test-rawmemchr.c: Likewise.
33017         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
33018         module.
33019         * modules/strchrnul (Depends-on): Add rawmemchr.
33020         * lib/strchrnul.c (strchrnul): Optimize a corner case.
33021
33022         Whitespace cleanup.
33023         * tests/test-strchrnul.c: Reindent.
33024         * lib/strchrnul.c: Likewise.
33025
33026         Optimize and test strchrnul.
33027         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
33028         * modules/strchrnul-tests: New file.
33029         * tests/test-strchrnul.c: Likewise.
33030
33031         Remove intprops dependency.
33032         * modules/memchr (Depends-on): Remove intprops.
33033         * modules/memrchr (Depends-on): Likewise.
33034         * modules/memchr2 (Depends-on): Likewise.
33035         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
33036         * lib/memrchr.c (__memrchr): Likewise.
33037         * lib/memrchr2.c (memchr2): Likewise.
33038         Reported by Simon Josefsson.
33039
33040 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33041
33042         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
33043         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33044
33045 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33046
33047         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
33048
33049         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
33050
33051         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
33052
33053         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
33054         declarations.
33055         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
33056
33057         * m4/inet_pton.m4: Don't check for header files.
33058
33059         * m4/inet_ntop.m4: Don't check for header files.
33060
33061 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33062
33063         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
33064         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
33065         trigger for cygwin).
33066         Reported by Bruno Haible  <bruno@clisp.org>.
33067
33068 2008-04-28  Bruno Haible  <bruno@clisp.org>
33069
33070         * doc/posix-functions/strdup.texi: Mention mingw problem.
33071
33072 2008-04-27  Bruno Haible  <bruno@clisp.org>
33073
33074         * modules/stat-time-tests (Depends-on): Add sleep.
33075         * tests/test-stat-time.c (force_unlink): New function.
33076         (cleanup): Use it.
33077         (test_mtime): Remove the ctime related tests.
33078         (test_ctime): New function, containing the ctime related tests.
33079         (main): Call test_ctime, except on native Windows platforms.
33080
33081 2008-04-27  Bruno Haible  <bruno@clisp.org>
33082
33083         * lib/rpmatch.c (rpmatch): Add some comments.
33084         Reported by James Youngman <jay@gnu.org>.
33085
33086 2008-04-27  Bruno Haible  <bruno@clisp.org>
33087
33088         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
33089         quiet NaNs.
33090
33091 2008-04-27  Bruno Haible  <bruno@clisp.org>
33092
33093         Make test-yesno.sh work on mingw.
33094         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
33095         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
33096         (main): Set stdin to binary mode.
33097         * modules/yesno-tests (Depends-on): Add binary-io.
33098
33099 2008-04-27  Bruno Haible  <bruno@clisp.org>
33100
33101         Fix 'isfinite' on x86, x86_64, ia64 platforms.
33102         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
33103         argument that lie outside the IEEE 854 domain.
33104         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
33105         (gl_ISFINITE): Use it.
33106         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
33107
33108 2008-04-27  Bruno Haible  <bruno@clisp.org>
33109
33110         Allow local renaming in config.h.
33111         * lib/memrchr.c (memrchr): Don't undefine outside libc.
33112
33113 2008-04-27  Bruno Haible  <bruno@clisp.org>
33114
33115         * lib/memchr.c (__memchr): Change type of 'i'.
33116         * lib/memchr2.c (memchr2): Likewise.
33117
33118 2008-04-26  Eric Blake  <ebb9@byu.net>
33119         and Bruno Haible  <bruno@clisp.org>
33120
33121         Optimize and test memrchr.
33122         * modules/memrchr (Depends-on): Add intprops.
33123         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
33124         * modules/memrchr-tests: New file.
33125         * tests/test-memrchr.c: New file.
33126
33127 2008-04-26  Bruno Haible  <bruno@clisp.org>
33128
33129         Add tentative support for DragonFly BSD.
33130         * lib/stdio-impl.h: Add macros for DragonFly BSD.
33131         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
33132         fp.
33133         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
33134         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
33135         * lib/fpurge.c (fpurge): Likewise.
33136         * lib/freadable.c (freaadable): Likewise.
33137         * lib/freadahead.c (freadahead): Likewise.
33138         * lib/freading.c (freading): Likewise.
33139         * lib/freadptr.c (freadptr): Likewise.
33140         * lib/freadseek.c (freadptrinc): Likewise.
33141         * lib/fseeko.c (fseeko): Likewise.
33142         * lib/fseterr.c (fseterr): Likewise.
33143         * lib/fwritable.c (fwritable): Likewise.
33144         * lib/fwriting.c (fwriting): Likewise.
33145
33146 2008-04-26  Bruno Haible  <bruno@clisp.org>
33147
33148         * lib/stdio-impl.h: New file.
33149         * lib/fbufmode.c: Include stdio-impl.h.
33150         (fbufmode): Use fp_, remove redundant #defines.
33151         * lib/fflush.c: Include stdio-impl.h.
33152         (clear_ungetc_buffer): Remove redundant #defines.
33153         * lib/fpurge.c: Include stdio-impl.h.
33154         (fpurge): Remove redundant #defines.
33155         * lib/freadable.c: Include stdio-impl.h.
33156         (freadable): Remove redundant #defines.
33157         * lib/freadahead.c: Include stdio-impl.h.
33158         (freadahead): Remove redundant #defines.
33159         * lib/freading.c: Include stdio-impl.h.
33160         (freading): Remove redundant #defines.
33161         * lib/freadptr.c: Include stdio-impl.h.
33162         (freadptr): Remove redundant #defines.
33163         * lib/freadseek.c: Include stdio-impl.h.
33164         (freadptrinc): Remove redundant #defines.
33165         * lib/fseeko.c: Include stdio-impl.h.
33166         (rpl_fseeko): Remove redundant #defines.
33167         * lib/fseterr.c: Include stdio-impl.h.
33168         (fseterr): Remove redundant #defines.
33169         * lib/fwritable.c: Include stdio-impl.h.
33170         (fwritable: Remove redundant #defines.
33171         * lib/fwriting.c: Include stdio-impl.h.
33172         (fwriting): Remove redundant #defines.
33173         * modules/fbufmode (Files): Add lib/stdio-impl.h.
33174         * modules/fflush (Files): Likewise.
33175         * modules/fpurge (Files): Likewise.
33176         * modules/freadable (Files): Likewise.
33177         * modules/freadahead (Files): Likewise.
33178         * modules/freading (Files): Likewise.
33179         * modules/freadptr (Files): Likewise.
33180         * modules/freadseek (Files): Likewise.
33181         * modules/fseeko (Files): Likewise.
33182         * modules/fseterr (Files): Likewise.
33183         * modules/fwritable (Files): Likewise.
33184         * modules/fwriting (Files): Likewise.
33185
33186 2008-04-26  Bruno Haible  <bruno@clisp.org>
33187
33188         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
33189         restore_seek_optimization, update_fpos_cache): New functions, extracted
33190         from rpl_fflush.
33191         (rpl_fflush): Use them.
33192         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
33193         (gl_REPLACE_FFLUSH): Use it.
33194
33195 2008-04-26  Bruno Haible  <bruno@clisp.org>
33196
33197         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
33198         on Solaris.
33199         * tests/test-xstrtoimax.sh: Likewise.
33200         * tests/test-xstrtoumax.sh: Likewise.
33201         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33202
33203 2008-04-26  Bruno Haible  <bruno@clisp.org>
33204
33205         * modules/memchr-tests: New file.
33206         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
33207
33208 2008-04-26  Eric Blake  <ebb9@byu.net>
33209             Bruno Haible  <bruno@clisp.org>
33210
33211         * lib/memchr.c: Include intprops.h.
33212         (__memchr): Optimize parallel detection of matching bytes. Rename local
33213         variables. Add explanatory comments.
33214
33215 2008-04-26  Bruno Haible  <bruno@clisp.org>
33216
33217         Fix module 'memchr', broken since 2000-10-28.
33218         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
33219
33220 2008-04-26  Bruno Haible  <bruno@clisp.org>
33221
33222         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
33223         comments.
33224
33225 2008-04-25  Eric Blake  <ebb9@byu.net>
33226
33227         Use native fstatat on cygwin 1.7.0.
33228         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
33229         first.
33230
33231 2008-04-23  Eric Blake  <ebb9@byu.net>
33232
33233         Improve memchr2 performance.
33234         * lib/memchr2.c (memchr2): Further optimize parallel detection of
33235         NUL bytes.
33236         * modules/memchr2 (Depends-on): Use intprops.h.
33237
33238 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33239
33240         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
33241         an inline function instead of a CPP macro.  Patch by Ben Pfaff
33242         <blp@cs.stanford.edu>.
33243
33244 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33245
33246         * lib/arpa_inet.in.h: New file.
33247
33248         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
33249         (Makefile.am): Sed in substitute header file.
33250
33251         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
33252         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
33253
33254         * modules/inet_ntop (configure.ac): Use
33255         gl_ARPA_INET_MODULE_INDICATOR.
33256
33257         * modules/inet_pton (configure.ac): Use
33258         gl_ARPA_INET_MODULE_INDICATOR.
33259
33260 2008-04-22  Jim Meyering  <meyering@redhat.com>
33261
33262         * modules/verify (License): Re-license as LGPLv2+.
33263
33264 2008-04-22  Simon Josefsson  <simon@josefsson.org>
33265
33266         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
33267         parameter to void* as per POSIX standard (MinGW uses char*).
33268
33269 2008-04-21  Bruno Haible  <bruno@clisp.org>
33270
33271         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33272         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33273         Define to replacements if REPLACE_ISWCNTRL is 1.
33274         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
33275         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
33276         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
33277         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
33278         what it fixes.
33279         * doc/posix-functions/iswalpha.texi: Likewise.
33280         * doc/posix-functions/iswblank.texi: Likewise.
33281         * doc/posix-functions/iswcntrl.texi: Likewise.
33282         * doc/posix-functions/iswdigit.texi: Likewise.
33283         * doc/posix-functions/iswgraph.texi: Likewise.
33284         * doc/posix-functions/iswlower.texi: Likewise.
33285         * doc/posix-functions/iswprint.texi: Likewise.
33286         * doc/posix-functions/iswpunct.texi: Likewise.
33287         * doc/posix-functions/iswspace.texi: Likewise.
33288         * doc/posix-functions/iswupper.texi: Likewise.
33289         * doc/posix-functions/iswxdigit.texi: Likewise.
33290         Reported by Alain Guibert.
33291
33292 2008-04-21  Bruno Haible  <bruno@clisp.org>
33293
33294         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
33295         Patch by Alain Guibert.
33296
33297 2008-04-21  Bruno Haible  <bruno@clisp.org>
33298
33299         Fix test failures on mingw.
33300         * tests/test-xstrtol.c (print_no_progname): New function.
33301         (main): Install it in error_print_progname hook.
33302         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
33303         * tests/test-xstrtoimax.sh: Likewise.
33304         * tests/test-xstrtoumax.sh: Likewise.
33305
33306 2008-04-21  Bruno Haible  <bruno@clisp.org>
33307
33308         Fix test failure on mingw.
33309         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
33310
33311 2008-04-21  Bruno Haible  <bruno@clisp.org>
33312
33313         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
33314         Actually assign a value.
33315
33316 2008-04-20  Bruno Haible  <bruno@clisp.org>
33317
33318         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
33319         take 2.
33320         * lib/canonicalize.c (canonicalize_file_name): Elide if the
33321         'canonicalize-lgpl' module is also used.
33322         * lib/canonicalize-lgpl.c: Undo last change.
33323         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
33324
33325 2008-04-20  Bruno Haible  <bruno@clisp.org>
33326
33327         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
33328         config.h. Provide _mkdir based fallback for mingw.
33329         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
33330         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
33331         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
33332         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
33333         rather than defining mkdir in config.h.
33334         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
33335         (gl_SYS_STAT_H_DEFAULTS): New macro.
33336         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
33337         HAVE_IO_H any more.
33338         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
33339         HAVE_DECL_MKDIR and HAVE_IO_H.
33340
33341 2008-04-20  Bruno Haible  <bruno@clisp.org>
33342
33343         * lib/isapipe.c: Port to native Windows platforms.
33344
33345 2008-04-20  Bruno Haible  <bruno@clisp.org>
33346
33347         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33348
33349 2008-04-21  Eric Blake  <ebb9@byu.net>
33350
33351         Work around preprocessors that don't handle UINTMAX_MAX.
33352         * lib/memchr2.c (memchr2): Avoid embedded #if.
33353         Reported by Alain Guibert, fix suggested by Bruno Haible.
33354
33355 2008-04-21  Simon Josefsson  <simon@josefsson.org>
33356
33357         * doc/posix-functions/strftime.texi (strftime): Explain better
33358         Windows incompatibility.  Suggested by Micah Cowan
33359         <micah@cowan.name>.
33360
33361 2008-04-20  Bruno Haible  <bruno@clisp.org>
33362
33363         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
33364         unistr/u8-mblen.
33365
33366 2008-04-20  Bruno Haible  <bruno@clisp.org>
33367
33368         Fix test failure on platforms with non-GNU iconv.
33369         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
33370         (U_TO_U8): Use it, rather than u16_to_u8.
33371         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
33372         units at the end of the input string.
33373         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
33374
33375 2008-04-20  Bruno Haible  <bruno@clisp.org>
33376
33377         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
33378         when the resulting length is 0.
33379         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
33380
33381 2008-04-20  Bruno Haible  <bruno@clisp.org>
33382
33383         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
33384         works.
33385         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
33386
33387 2008-04-20  Bruno Haible  <bruno@clisp.org>
33388
33389         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
33390         * modules/tsearch-tests (configure.ac): Test for initstate function.
33391
33392 2008-04-20  Bruno Haible  <bruno@clisp.org>
33393
33394         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33395         for nlink_t if missing.
33396         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33397
33398 2008-04-19  Bruno Haible  <bruno@clisp.org>
33399
33400         Work around snprintf bug on Linux libc5.
33401         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33403         gl_SNPRINTF_SIZE1.
33404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33405         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33406         that test failed.
33407         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33408         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33409         * modules/snprintf (Files): Add m4/printf.m4.
33410         * modules/vsnprintf (Files): Likewise.
33411         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33412         * doc/posix-functions/vsnprintf.texi: Likewise.
33413
33414 2008-04-19  Bruno Haible  <bruno@clisp.org>
33415
33416         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33417         from 0.0058 to less than 10^-7.
33418
33419 2008-04-19  Bruno Haible  <bruno@clisp.org>
33420
33421         Fix rounding when a precision is given.
33422         * lib/vasnprintf.c (is_borderline): New function.
33423         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33424         9...9x.
33425         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33426         %e, %g.
33427         * tests/test-vasprintf-posix.c (test_function): Likewise.
33428         * tests/test-snprintf-posix.h (test_function): Likewise.
33429         * tests/test-sprintf-posix.h (test_function): Likewise.
33430         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33431         * tests/test-printf-posix.h (test_function): Likewise.
33432         * tests/test-printf-posix.output: Update.
33433         Reported by John Darrington <john@darrington.wattle.id.au> via
33434         Ben Pfaff <blp@cs.stanford.edu>.
33435
33436 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33437
33438         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33439         Suggested by Bruno Haible <bruno@clisp.org>.
33440
33441 2008-04-17  Bruno Haible  <bruno@clisp.org>
33442
33443         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33444         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33445         implementation.
33446         Patch by Bruce Merry <bmerry@gmail.com>.
33447
33448 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33449
33450         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33451         doesn't work under Windows.
33452
33453 2008-04-16  Bruno Haible  <bruno@clisp.org>
33454
33455         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33456         New macros.
33457         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33458         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33459         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33460         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33461         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33462         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33463         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33464         macros.
33465         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33466         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33467         Northern Sotho, Uighur.
33468
33469 2008-04-16  Bruno Haible  <bruno@clisp.org>
33470
33471         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33472         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33473         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33474         Reported by Daniel Bergström <daniel@octocode.com>.
33475
33476 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33477             Bruno Haible  <bruno@clisp.org>
33478
33479         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33480         function.
33481         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33482         New functions, mostly extracted from gl_locale_name_default.
33483         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33484
33485 2008-04-16  Eric Blake  <ebb9@byu.net>
33486
33487         Adjust strtod detection to catch glibc 2.7 bug.
33488         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33489         Reported by John Gatewood Ham.
33490
33491 2008-04-16  Bruno Haible  <bruno@clisp.org>
33492
33493         Add tentative support for Linux libc5.
33494         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33495         * lib/fpurge.c (fpurge): Likewise.
33496         * lib/freadable.c (freadable): Likewise.
33497         * lib/freadahead.c (freadahead): Likewise.
33498         * lib/freading.c (freading): Likewise.
33499         * lib/freadptr.c (freadptr): Likewise.
33500         * lib/freadseek.c (freadptrinc): Likewise.
33501         * lib/fseeko.c (rpl_fseeko): Likewise.
33502         * lib/fseterr.c (fseterr): Likewise.
33503         * lib/fwritable.c (fwritable): Likewise.
33504         * lib/fwriting.c (fwriting): Likewise.
33505         Reported by Alain Guibert <alguibert+bts@free.fr>.
33506
33507 2008-04-15  Bruno Haible  <bruno@clisp.org>
33508
33509         * modules/mathl (configure.ac): Define module indicator.
33510
33511 2008-04-15  Bruno Haible  <bruno@clisp.org>
33512
33513         * lib/logl.c (logl): Remove unused variables.
33514
33515 2008-04-15  Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33518         fails.
33519
33520 2008-04-15  Bruno Haible  <bruno@clisp.org>
33521
33522         * lib/trim.c (trim2): Fix argument of isspace() macro.
33523
33524 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33525
33526         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33527         to 0.
33528         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33529
33530 2008-04-14  Bruno Haible  <bruno@clisp.org>
33531
33532         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33533         AC_LANG_PROGRAM argument.
33534         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33535         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33537         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33538         * m4/math_h.m4 (gl_MATH_H): Likewise.
33539         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33541         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33542         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33543         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33544         * m4/regex.m4 (gl_REGEX): Likewise.
33545         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33546         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33548         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33549         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33550         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33551         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33552         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33553
33554 2008-04-14  Jim Meyering  <meyering@redhat.com>
33555
33556         test-strtod: fix typos: s/abs/fabs/
33557         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33558
33559 2008-04-13  Bruno Haible  <bruno@clisp.org>
33560
33561         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33562         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33563         module is also used and while not building the reloc-wrapper.
33564
33565 2008-04-13  Bruno Haible  <bruno@clisp.org>
33566
33567         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33568
33569 2008-04-13  Bruno Haible  <bruno@clisp.org>
33570
33571         Fix AIX compilation failure introduced on 2008-04-02.
33572         * tests/test-frexp.c (exp): Undefine before redefining.
33573         * tests/test-frexpl.c (exp): Likewise.
33574
33575 2008-04-13  Bruno Haible  <bruno@clisp.org>
33576
33577         Work around a HP-UX stdio bug.
33578         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33579         * tests/test-ftello.c (main): Likewise.
33580         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33581         * doc/posix-functions/ftello.texi: Likewise.
33582
33583 2008-04-13  Bruno Haible  <bruno@clisp.org>
33584
33585         Make test-signbit pass on HP-UX/hppa.
33586         * tests/test-signbit.c (minus_zerol): New variable.
33587         (test_signbitl): Use it.
33588
33589 2008-04-13  Bruno Haible  <bruno@clisp.org>
33590
33591         Make truncl work on OSF/1 4.0.
33592         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33593         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33594         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33596         HAVE_DECL_TRUNCL.
33597         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33598         HAVE_DECL_TRUNCL.
33599         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33600
33601 2008-04-13  Bruno Haible  <bruno@clisp.org>
33602
33603         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33604
33605 2008-04-13  Bruno Haible  <bruno@clisp.org>
33606
33607         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33608         expression, so as to avoid HP-UX 11 cc compiler bug.
33609
33610 2008-04-13  Bruno Haible  <bruno@clisp.org>
33611
33612         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33613
33614 2008-04-13  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/git-merge-changelog.c: Remove empty declaration outside of
33617         functions.
33618
33619 2008-04-13  Bruno Haible  <bruno@clisp.org>
33620
33621         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33622
33623 2008-04-13  Bruno Haible  <bruno@clisp.org>
33624
33625         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33626         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33627         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33628         also if it exists but lacks definitions of the SHUT_* macros.
33629         * modules/sys_socket (Description): Update.
33630         Reported by Elbert Pol <e.pol@chello.nl>.
33631
33632 2008-04-13  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/localcharset.c (OS2): Don't redefine if already defined.
33635         Reported by Elbert Pol <e.pol@chello.nl>.
33636
33637 2008-04-13  Bruno Haible  <bruno@clisp.org>
33638
33639         * lib/binary-io.h [__EMX__]: Include <io.h>.
33640         Reported by Elbert Pol <e.pol@chello.nl>.
33641
33642 2008-04-12  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/fpucw.h: Enable the definitions also for x86_64.
33645         Needed for NetBSD/x86_64.
33646         Reported by Thomas Klausner <tk@giga.or.at>.
33647
33648 2008-04-12  Bruno Haible  <bruno@clisp.org>
33649
33650         * tests/test-strtod.c: Include isnand.h.
33651         (main): Use isnand instead of isnan.
33652         Reported by Jim Meyering.
33653
33654 2008-04-12  Bruno Haible  <bruno@clisp.org>
33655
33656         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33657         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33658
33659 2008-04-12  Jim Meyering  <meyering@redhat.com>
33660
33661         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33662
33663 2008-04-12  Bruno Haible  <bruno@clisp.org>
33664
33665         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33666         Reported by Elbert Pol <e.pol@chello.nl>.
33667
33668 2008-04-12  Eric Blake  <ebb9@byu.net>
33669
33670         Work around Solaris 10 math.h bug.
33671         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33672         (gl_MATH_H_DEFAULTS): Set up default.
33673         * modules/math (Makefile.am): Replace new indicators.
33674         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
33675         * tests/test-math.c (main): Test this.
33676         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
33677         * doc/posix-headers/math.texi (math.h): Mention bug.
33678         Reported by Nelson H. F. Beebe and Jim Meyering.
33679
33680 2008-04-11  Bruno Haible  <bruno@clisp.org>
33681
33682         Adapt to future versions of Apple GCC.
33683         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
33684         Reported by Peter O'Gorman <peter@pogma.com>.
33685
33686 2008-04-11  Bruno Haible  <bruno@clisp.org>
33687
33688         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
33689
33690 2008-04-11  Bruno Haible  <bruno@clisp.org>
33691
33692         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
33693
33694         * modules/getaddrinfo-tests (Makefile.am): Define
33695         test_getaddrinfo_LDADD.
33696
33697 2008-04-11  Bruno Haible  <bruno@clisp.org>
33698
33699         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
33700         (init): Fix syntax error.
33701         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
33702         is declared.
33703
33704 2008-04-11  Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
33707         * modules/glob (Depends-on): Add stdbool.
33708
33709 2008-04-11  Bruno Haible  <bruno@clisp.org>
33710
33711         * lib/trim.c: Include <string.h>.
33712
33713 2008-04-11  Eric Blake  <ebb9@byu.net>
33714
33715         Avoid compile failure on OS/2.
33716         * lib/regex_internal.h (internal_function): Disable optimization
33717         on OS/2 (__EMX__), where it caused compiler error.
33718         Reported by Elbert Pol.
33719
33720 2008-04-11  Bruno Haible  <bruno@clisp.org>
33721
33722         Flush the standard error stream before aborting. Needed on mingw.
33723         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
33724         * tests/test-array_list.c (ASSERT): Likewise.
33725         * tests/test-array_oset.c (ASSERT): Likewise.
33726         * tests/test-avltree_list.c (ASSERT): Likewise.
33727         * tests/test-avltree_oset.c (ASSERT): Likewise.
33728         * tests/test-avltreehash_list.c (ASSERT): Likewise.
33729         * tests/test-binary-io.c (ASSERT): Likewise.
33730         * tests/test-byteswap.c (ASSERT): Likewise.
33731         * tests/test-c-ctype.c (ASSERT): Likewise.
33732         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
33733         * tests/test-c-strcasestr.c (ASSERT): Likewise.
33734         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
33735         * tests/test-c-strstr.c (ASSERT): Likewise.
33736         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
33737         * tests/test-canonicalize.c (ASSERT): Likewise.
33738         * tests/test-carray_list.c (ASSERT): Likewise.
33739         * tests/test-ceilf1.c (ASSERT): Likewise.
33740         * tests/test-ceilf2.c (ASSERT): Likewise.
33741         * tests/test-ceill.c (ASSERT): Likewise.
33742         * tests/test-count-one-bits.c (ASSERT): Likewise.
33743         * tests/test-fbufmode.c (ASSERT): Likewise.
33744         * tests/test-fflush2.c (ASSERT): Likewise.
33745         * tests/test-floorf1.c (ASSERT): Likewise.
33746         * tests/test-floorf2.c (ASSERT): Likewise.
33747         * tests/test-floorl.c (ASSERT): Likewise.
33748         * tests/test-fopen.c (ASSERT): Likewise.
33749         * tests/test-fpending.c (ASSERT): Likewise.
33750         * tests/test-fprintf-posix.c (ASSERT): Likewise.
33751         * tests/test-fpurge.c (ASSERT): Likewise.
33752         * tests/test-freadable.c (ASSERT): Likewise.
33753         * tests/test-freadahead.c (ASSERT): Likewise.
33754         * tests/test-freading.c (ASSERT): Likewise.
33755         * tests/test-freadptr.c (ASSERT): Likewise.
33756         * tests/test-freadptr2.c (ASSERT): Likewise.
33757         * tests/test-freadseek.c (ASSERT): Likewise.
33758         * tests/test-freopen.c (ASSERT): Likewise.
33759         * tests/test-frexp.c (ASSERT): Likewise.
33760         * tests/test-frexpl.c (ASSERT): Likewise.
33761         * tests/test-fseek.c (ASSERT): Likewise.
33762         * tests/test-fseeko.c (ASSERT): Likewise.
33763         * tests/test-fstrcmp.c (ASSERT): Likewise.
33764         * tests/test-ftell.c (ASSERT): Likewise.
33765         * tests/test-ftello.c (ASSERT): Likewise.
33766         * tests/test-func.c (ASSERT): Likewise.
33767         * tests/test-fwritable.c (ASSERT): Likewise.
33768         * tests/test-fwriting.c (ASSERT): Likewise.
33769         * tests/test-getdelim.c (ASSERT): Likewise.
33770         * tests/test-getline.c (ASSERT): Likewise.
33771         * tests/test-i-ring.c (ASSERT): Likewise.
33772         * tests/test-iconv-utf.c (ASSERT): Likewise.
33773         * tests/test-iconv.c (ASSERT): Likewise.
33774         * tests/test-isfinite.c (ASSERT): Likewise.
33775         * tests/test-isnand.c (ASSERT): Likewise.
33776         * tests/test-isnanf.c (ASSERT): Likewise.
33777         * tests/test-isnanl.h (ASSERT): Likewise.
33778         * tests/test-ldexpl.c (ASSERT): Likewise.
33779         * tests/test-linked_list.c (ASSERT): Likewise.
33780         * tests/test-linkedhash_list.c (ASSERT): Likewise.
33781         * tests/test-localename.c (ASSERT): Likewise.
33782         * tests/test-lseek.c (ASSERT): Likewise.
33783         * tests/test-mbscasecmp.c (ASSERT): Likewise.
33784         * tests/test-mbscasestr1.c (ASSERT): Likewise.
33785         * tests/test-mbscasestr2.c (ASSERT): Likewise.
33786         * tests/test-mbscasestr3.c (ASSERT): Likewise.
33787         * tests/test-mbscasestr4.c (ASSERT): Likewise.
33788         * tests/test-mbschr.c (ASSERT): Likewise.
33789         * tests/test-mbscspn.c (ASSERT): Likewise.
33790         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
33791         * tests/test-mbspbrk.c (ASSERT): Likewise.
33792         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
33793         * tests/test-mbsrchr.c (ASSERT): Likewise.
33794         * tests/test-mbsspn.c (ASSERT): Likewise.
33795         * tests/test-mbsstr1.c (ASSERT): Likewise.
33796         * tests/test-mbsstr2.c (ASSERT): Likewise.
33797         * tests/test-mbsstr3.c (ASSERT): Likewise.
33798         * tests/test-memchr2.c (ASSERT): Likewise.
33799         * tests/test-memmem.c (ASSERT): Likewise.
33800         * tests/test-open.c (ASSERT): Likewise.
33801         * tests/test-printf-frexp.c (ASSERT): Likewise.
33802         * tests/test-printf-frexpl.c (ASSERT): Likewise.
33803         * tests/test-printf-posix.c (ASSERT): Likewise.
33804         * tests/test-quotearg.c (ASSERT): Likewise.
33805         * tests/test-rbtree_list.c (ASSERT): Likewise.
33806         * tests/test-rbtree_oset.c (ASSERT): Likewise.
33807         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
33808         * tests/test-round1.c (ASSERT): Likewise.
33809         * tests/test-roundf1.c (ASSERT): Likewise.
33810         * tests/test-roundl.c (ASSERT): Likewise.
33811         * tests/test-signbit.c (ASSERT): Likewise.
33812         * tests/test-sleep.c (ASSERT): Likewise.
33813         * tests/test-snprintf-posix.c (ASSERT): Likewise.
33814         * tests/test-snprintf.c (ASSERT): Likewise.
33815         * tests/test-sprintf-posix.c (ASSERT): Likewise.
33816         * tests/test-stat-time.c (ASSERT): Likewise.
33817         * tests/test-strcasestr.c (ASSERT): Likewise.
33818         * tests/test-strerror.c (ASSERT): Likewise.
33819         * tests/test-striconv.c (ASSERT): Likewise.
33820         * tests/test-striconveh.c (ASSERT): Likewise.
33821         * tests/test-striconveha.c (ASSERT): Likewise.
33822         * tests/test-strsignal.c (ASSERT): Likewise.
33823         * tests/test-strstr.c (ASSERT): Likewise.
33824         * tests/test-strtod.c (ASSERT): Likewise.
33825         * tests/test-trunc1.c (ASSERT): Likewise.
33826         * tests/test-trunc2.c (ASSERT): Likewise.
33827         * tests/test-truncf1.c (ASSERT): Likewise.
33828         * tests/test-truncf2.c (ASSERT): Likewise.
33829         * tests/test-truncl.c (ASSERT): Likewise.
33830         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
33831         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
33832         * tests/test-vasnprintf.c (ASSERT): Likewise.
33833         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
33834         * tests/test-vasprintf.c (ASSERT): Likewise.
33835         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
33836         * tests/test-vprintf-posix.c (ASSERT): Likewise.
33837         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33838         * tests/test-vsnprintf.c (ASSERT): Likewise.
33839         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33840         * tests/test-wcwidth.c (ASSERT): Likewise.
33841         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33842         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33843         * tests/test-xvasprintf.c (ASSERT): Likewise.
33844         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33845         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33846         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33847         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33848         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33849         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33850         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33851         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33852         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33853         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33854         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33855         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33856         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33857         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33858         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33859         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33860         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33861         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33862         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33863         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33864         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33865         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33866         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33867         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33868         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33869         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33870         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33871         * tests/unictype/test-combining.c (ASSERT): Likewise.
33872         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33873         * tests/unictype/test-digit.c (ASSERT): Likewise.
33874         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33875         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33876         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33877         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33878         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33879         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33880         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33881         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33882         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33883         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33884         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33885         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33886         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33887         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33888         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33889         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33890         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33891         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33892         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33893         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33894         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33895         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33896         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33897         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33898         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33899         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33900         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33901         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33902         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33903         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33904         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33905         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33906         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33907         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33908         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33909         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33910         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33911         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33912         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33913         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33914         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33915         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33916         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33917         Reported by Eric Blake.
33918
33919 2008-04-11  Bruno Haible  <bruno@clisp.org>
33920
33921         * lib/wchar.in.h: Tweak comment.
33922
33923 2008-04-11  Bruno Haible  <bruno@clisp.org>
33924
33925         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33926         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33927         gl_COMMON.
33928         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33929
33930 2008-04-11  Bruno Haible  <bruno@clisp.org>
33931
33932         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33933
33934 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33935
33936         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33937         of attempting to use non-existing /dev/*random.  Based on patch
33938         from Adam Strzelecki <ono@java.pl> in
33939         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33940
33941 2008-04-08  Bruno Haible  <bruno@clisp.org>
33942
33943         Add tentative support for emx+gcc.
33944         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33945         * lib/fpurge.c (fpurge): Likewise.
33946         * lib/freadable.c (freadable): Likewise.
33947         * lib/freadahead.c (freadahead): Likewise.
33948         * lib/freading.c (freading): Likewise.
33949         * lib/freadptr.c (freadptr): Likewise.
33950         * lib/freadseek.c (freadptrinc): Likewise.
33951         * lib/fseeko.c (rpl_fseeko): Likewise.
33952         * lib/fseterr.c (fseterr): Likewise.
33953         * lib/fwritable.c (fwritable): Likewise.
33954         * lib/fwriting.c (fwriting): Likewise.
33955         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33956
33957 2008-04-09  Eric Blake  <ebb9@byu.net>
33958
33959         Avoid some autoconf warnings.
33960         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33961         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33962         * m4/afs.m4 (gl_AFS): Likewise.
33963         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33964         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33965         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33966         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33967         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33968         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33969         (AC_CHECK_DECLS_ONCE): Likewise.
33970         Rename file...
33971         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33972         gnulib-tool requires autoconf 2.59 or better.
33973         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33974
33975 2008-04-08  Eric Blake  <ebb9@byu.net>
33976
33977         Use 'git describe --match' if present (added in git 1.5.5).
33978         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33979         if possible.
33980
33981 2008-04-08  Bruno Haible  <bruno@clisp.org>
33982
33983         Add tentative support for OpenServer.
33984         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33985         _ptr, _cnt.
33986         * lib/fpurge.c (fpurge): Likewise.
33987         * lib/freadable.c (freadable): Likewise.
33988         * lib/freadahead.c (freadahead): Likewise.
33989         * lib/freading.c (freading): Likewise.
33990         * lib/freadptr.c (freadptr): Likewise.
33991         * lib/freadseek.c (freadptrinc): Likewise.
33992         * lib/fseeko.c (rpl_fseeko): Likewise.
33993         * lib/fseterr.c (fseterr): Likewise.
33994         * lib/fwritable.c (fwritable): Likewise.
33995         * lib/fwriting.c (fwriting): Likewise.
33996         Reported by Roger Cornelius <rac@tenzing.org> and
33997         Brian K. White <brian@aljex.com>.
33998
33999 2008-04-06  Jim Meyering  <meyering@redhat.com>
34000
34001         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
34002
34003 2008-04-06  Bruno Haible  <bruno@clisp.org>
34004
34005         Avoid possible error with non-ASCII bytes in UTF-8 locales.
34006         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
34007         * tests/test-printf-posix.sh: Likewise.
34008         * tests/test-vfprintf-posix.sh: Likewise.
34009         * tests/test-vprintf-posix.sh: Likewise.
34010         * tests/test-xprintf-posix.sh: Likewise.
34011
34012 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34013
34014         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
34015         hide error from 'ls', needed on OS/2.
34016         Report by Elbert Pol <elbert.pol@gmail.com>.
34017
34018 2008-04-04  Eric Blake  <ebb9@byu.net>
34019
34020         Make test-fseeko.c failures meaningful.
34021         * tests/test-fseeko.c: Print line number on failure.
34022         * tests/test-fseek.c: Likewise.
34023         Reported by Nelson H. F. Beebe.
34024
34025         Improve strtod bug detection check.
34026         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
34027         required for Solaris 10.
34028         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
34029
34030 2008-04-04  Bruno Haible  <bruno@clisp.org>
34031
34032         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
34033         by m4/setenv.m4.
34034
34035 2008-04-03  Eric Blake  <ebb9@byu.net>
34036
34037         Ensure sane .version contents.
34038         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
34039         version string.
34040         * build-aux/git-version-gen: Improve documentation.
34041
34042         Make GNU make output nicer.
34043         * top/GNUmakefile [!_have-Makefile]: Add dependency on
34044         MAKECMDGOALS to enforce message for all command line targets.  Set
34045         srcdir for use in maint.mk.
34046
34047         Another maintainer tweak.
34048         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
34049         a target that regenerates version.
34050
34051 2008-04-03  Jim Meyering  <meyering@redhat.com>
34052
34053         vc-list-files: don't cause coreutils "make po-check" failure
34054         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
34055
34056 2008-04-03  Eric Blake  <ebb9@byu.net>
34057
34058         Allow VPATH usage of vc-list-files.
34059         * build-aux/vc-list-files (scriptversion): Add timestamp.
34060         (options): Add --help, --version, -C.
34061         (CVS): Support installed cvsu.
34062
34063 2008-04-02  Bruno Haible  <bruno@clisp.org>
34064
34065         Avoid some "statement with no effect" warnings from gcc.
34066         * tests/test-wctype.c (main): Explicitly ignore unused values.
34067         Reported by Jim Meyering.
34068
34069 2008-04-02  Jim Meyering  <meyering@redhat.com>
34070
34071         Avoid some warnings from "gcc -Wshadow".
34072         * tests/test-frexp.c (exp): Define to a different identifier.
34073         * tests/test-frexpl.c (exp): Likewise.
34074
34075 2008-04-03  Jim Meyering  <meyering@redhat.com>
34076
34077         bootstrap: remove dangling *.[ch] symlinks from lib
34078         * build-aux/bootstrap [dangling symlink removal]: Move find's
34079         -depth option to precede all others, to avoid a warning.
34080         Remove *.[ch] files too, and from "$source_base" (usually lib/).
34081
34082 2008-04-02  Bruno Haible  <bruno@clisp.org>
34083
34084         Avoid some warnings from "gcc -Wshadow".
34085         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
34086         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
34087         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
34088         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
34089         Reported by Jim Meyering.
34090
34091 2008-04-01  Bruno Haible  <bruno@clisp.org>
34092
34093         Fix test to work on IRIX 6.5 with cc.
34094         * tests/test-math.c (numeric_equal): New function.
34095         (main): Use it.
34096
34097 2008-04-01  Bruno Haible  <bruno@clisp.org>
34098
34099         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
34100
34101 2008-04-01  Bruno Haible  <bruno@clisp.org>
34102
34103         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
34104         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34105         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
34106         (Depends-on): Remove math.
34107
34108         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
34109         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34110         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
34111         (Depends-on): Remove math.
34112
34113         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
34114         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34115         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
34116         (Depends-on): Remove math.
34117         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
34118         (Depends-on): Remove math.
34119
34120         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
34121         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34122         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
34123         (Depends-on): Remove math.
34124         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
34125         (Depends-on): Remove math.
34126
34127         * tests/test-round1.c: Include nan.h.
34128         (main): Use NaNd instead of NAN.
34129         * modules/round-tests (Files): Add tests/nan.h.
34130
34131         * tests/test-trunc1.c: Include nan.h.
34132         (main): Use NaNd instead of NAN.
34133         * modules/trunc-tests (Files): Add tests/nan.h.
34134
34135         * tests/test-roundf1.c: Include nan.h.
34136         (main): Use NaNf instead of NAN.
34137         * modules/roundf-tests (Files): Add tests/nan.h.
34138
34139         * tests/test-truncf1.c: Include nan.h.
34140         (main): Use NaNf instead of NAN.
34141         * modules/truncf-tests (Files): Add tests/nan.h.
34142
34143         * tests/test-ceilf1.c: Include nan.h.
34144         (main): Use NaNf instead of NAN.
34145         * modules/ceilf-tests (Files): Add tests/nan.h.
34146
34147         * tests/test-floorf1.c: Include nan.h.
34148         (main): Use NaNf instead of NAN.
34149         * modules/floorf-tests (Files): Add tests/nan.h.
34150
34151         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
34152         (main): Use NaNf instead of NAN.
34153         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
34154
34155         * tests/test-isnand.c: Include nan.h instead of <math.h>.
34156         (main): Use NaNd instead of NAN.
34157         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
34158
34159         * tests/test-frexp.c: Include nan.h.
34160         (main): Use NaNd instead of NAN.
34161         * modules/frexp-tests (Files): Add tests/nan.h.
34162
34163         * lib/isnan.c: Don't include <math.h>.
34164         (FUNC): Don't use NAN macro.
34165         * modules/isnand-nolibm (Depends-on): Remove math.
34166         * modules/isnanf-nolibm (Depends-on): Remove math.
34167         * modules/isnanl (Depends-on): Remove math.
34168         * modules/isnanl-nolibm (Depends-on): Remove math.
34169
34170         * tests/nan.h: New file.
34171
34172 2008-04-01  Eric Blake  <ebb9@byu.net>
34173
34174         Fix typos.
34175         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
34176         values to be the right type.
34177
34178         For now, cater to gnulib strtod inaccuracies.
34179         * tests/test-strtod.c (main): Allow 1-ulp error on expected
34180         fractional results.  While not as nice from a QoI perspective, it
34181         is a quicker patch than correctly implementing decimal to binary
34182         rounding.
34183
34184 2008-03-31  Eric Blake  <ebb9@byu.net>
34185
34186         Guarantee a definition of NAN.
34187         * lib/math.in.h (NAN): Define if missing.
34188         * tests/test-math.c (main): Test it.
34189         * doc/posix-headers/math.texi (math.h): Document this.
34190         * lib/isnan.c (rpl_isnand): Use it.
34191         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
34192         * tests/test-floorf1.c (NaN): Likewise.
34193         * tests/test-frexp.c (NaN): Likewise.
34194         * tests/test-isnand.c (NaN): Likewise.
34195         * tests/test-isnanf.c (NaN): Likewise.
34196         * tests/test-round1.c (NaN): Likewise.
34197         * tests/test-roundf1.c (NaN): Likewise.
34198         * tests/test-snprintf-posix.h (NaN): Likewise.
34199         * tests/test-sprintf-posix.h (NaN): Likewise.
34200         * tests/test-trunc1.c (NaN): Likewise.
34201         * tests/test-truncf1.c (NaN): Likewise.
34202         * tests/test-vasnprintf-posix.c (NaN): Likewise.
34203         * tests/test-vasprintf-posix.c (NaN): Likewise.
34204         * modules/isnand-nolibm (Depends-on): Add math.
34205         * modules/isnanf-nolibm (Depends-on): Likewise.
34206         * modules/isnanl (Depends-on): Likewise.
34207         * modules/isnanl-nolibm (Depends-on): Likewise.
34208         * modules/snprintf-posix-tests (Depends-on): Likewise.
34209         * modules/sprintf-posix-tests (Depends-on): Likewise.
34210         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
34211         * modules/vsprintf-posix-tests (Depends-on): Likewise.
34212         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
34213         * modules/vasprintf-posix-tests (Depends-on): Likewise.
34214
34215 2008-03-31  Bruno Haible  <bruno@clisp.org>
34216
34217         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
34218         * doc/posix-functions/strtod.texi: Likewise.
34219
34220 2008-03-31  Bruno Haible  <bruno@clisp.org>
34221
34222         * tests/test-strtod.c (main): Don't use C99 syntax.
34223
34224 2008-03-31  Bruno Haible  <bruno@clisp.org>
34225
34226         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
34227         Reported by Eric Blake.
34228
34229 2008-03-31  Jim Meyering  <meyering@redhat.com>
34230
34231         Don't compare actual signbit return values.
34232         * tests/test-strtod.c (main): Rather, compare only their
34233         zero/non-zero nature.
34234
34235 2008-03-31  Eric Blake  <ebb9@byu.net>
34236
34237         More strtod documentation.
34238         * doc/posix-functions/strtod.texi (strtod): Interpret more test
34239         failures as distinct bugs.
34240
34241 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34242
34243         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
34244         Problem reported by Erik Benada in
34245         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
34246
34247 2008-03-30  Bruno Haible  <bruno@clisp.org>
34248
34249         * tests/test-strtod.c: Add comments about which assertion fails on which
34250         platform.
34251         * doc/posix-functions/strtod.texi: Add info about many more platforms.
34252
34253 2008-03-30  Eric Blake  <ebb9@byu.net>
34254
34255         Test signbit behavior on zeros.
34256         * tests/test-signbit.c (test_signbitf): Add tests for zero.
34257         (test_signbitd, test_signbitl): Likewise.
34258
34259         More strtod touchups.
34260         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
34261         sign of negative underflow, for now.  Use .5, not .1.
34262         * doc/posix-functions/strtod.texi (strtod): Mention these
34263         limitations.
34264         Reported by Jim Meyering.
34265
34266 2008-03-30  Bruno Haible  <bruno@clisp.org>
34267
34268         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
34269         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
34270
34271 2008-03-30  Bruno Haible  <bruno@clisp.org>
34272
34273         Avoid failure when attempting to return empty iconv results on some
34274         platforms.
34275         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
34276         allocation, don't report ENOMEM when the resulting string is empty.
34277
34278 2008-03-30  Bruno Haible  <bruno@clisp.org>
34279
34280         Fix buffer overrun.
34281         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
34282         Don't consider the width for tmp_length. Check count against tmp_length
34283         before doing the padding. Ensure enough allocation during padding.
34284
34285 2008-03-30  Eric Blake  <ebb9@byu.net>
34286
34287         strtod touchups.
34288         * lib/strtod.c (strtod): Avoid compiler warnings.
34289         Reported by Jim Meyering.
34290
34291 2008-03-30  Bruno Haible  <bruno@clisp.org>
34292
34293         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
34294         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
34295         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
34296         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
34297         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
34298         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
34299         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
34300         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
34301
34302         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
34303         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
34304         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
34305         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
34306         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
34307         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
34308         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
34309         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
34310
34311         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
34312         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
34313         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
34314         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
34315         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
34316         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
34317         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
34318         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
34319
34320         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
34321         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
34322
34323         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
34324         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
34325
34326         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
34327         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
34328
34329         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
34330         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
34331         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
34332
34333         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
34334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
34335         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
34336
34337         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
34338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
34339         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
34340
34341         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
34342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
34343         * modules/vasprintf (Depends-on): Add EOVERFLOW.
34344
34345         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
34346         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
34347         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
34348         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
34349         (Depends-on): Add EOVERFLOW.
34350         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
34351         (Depends-on): Add EOVERFLOW.
34352         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34353         (Depends-on): Add EOVERFLOW.
34354         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34355         (Depends-on): Add EOVERFLOW.
34356         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34357         (Depends-on): Add EOVERFLOW.
34358         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34359         (Depends-on): Add EOVERFLOW.
34360         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34361         (Depends-on): Add EOVERFLOW.
34362         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34363         (Depends-on): Add EOVERFLOW.
34364
34365         * lib/sprintf.c (EOVERFLOW): Remove fallback.
34366         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
34367         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
34368
34369         * lib/snprintf.c (EOVERFLOW): Remove fallback.
34370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
34371         * modules/snprintf (Depends-on): Add EOVERFLOW.
34372
34373         * lib/poll.c (EOVERFLOW): Remove fallback.
34374         * modules/poll (Depends-on): Add EOVERFLOW.
34375
34376         * lib/getugroups.c (EOVERFLOW): Remove fallback.
34377         * modules/getugroups (Depends-on): Add EOVERFLOW.
34378
34379         * lib/getdelim.c (EOVERFLOW): Remove fallback.
34380         * modules/getdelim (Depends-on): Add EOVERFLOW.
34381
34382         * lib/ftell.c (EOVERFLOW): Remove fallback.
34383         * modules/ftell (Depends-on): Add EOVERFLOW.
34384
34385         * lib/fprintf.c (EOVERFLOW): Remove fallback.
34386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
34387         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
34388
34389         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
34390
34391         * modules/EOVERFLOW-tests: New file.
34392         * tests/test-EOVERFLOW.c: New file.
34393
34394         * modules/EOVERFLOW: New file.
34395         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34396
34397 2008-03-30  Bruno Haible  <bruno@clisp.org>
34398
34399         Fix bug introduced on 2007-06-10.
34400         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34401         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34402
34403 2008-03-30  Bruno Haible  <bruno@clisp.org>
34404
34405         Improve freadseek's efficiency after ungetc.
34406         * lib/freadseek.c: Include freadahead.h.
34407         (freadptrinc): New function, extracted from freadseek.
34408         (freadseek): Use it in a loop. Use freadahead to determine the number
34409         of loop iterations.
34410         * modules/freadseek (Depends-on): Add freadahead.
34411         (configure.ac): Require AC_C_INLINE.
34412
34413 2008-03-30  Bruno Haible  <bruno@clisp.org>
34414
34415         * lib/freadseek.c (freadseek): Don't ignore the return value of
34416         freadptr.
34417
34418 2008-03-29  Eric Blake  <ebb9@byu.net>
34419
34420         Add hex float support.
34421         * modules/strtod (Depends-on): Add c-ctype.
34422         (Link): Mention POW_LIB.
34423         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34424         whitespace between 'e' and exponent.
34425         * tests/test-strtod.c (main): Enable hex float tests.
34426         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34427         now provides.
34428
34429         Document various strtod bugs, with some fixes.
34430         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34431         "-0x", "inf", "nan", and hex constants.
34432         * doc/posix-functions/atof.texi (atof): Likewise.
34433         * modules/stdlib (Makefile.am): Support strtod.
34434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34435         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34436         detect additional strtod bugs.
34437         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34438         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34439         bool where appropriate.  Parse 'inf' and 'nan'.
34440         * tests/test-strtod.c: New file.
34441         * modules/strtod (Depends-on): Add stdbool, stdlib.
34442         (configure.ac): Turn on module indicator.
34443         * modules/strtod-tests: New module.
34444
34445 2008-03-29  Eric Blake  <ebb9@byu.net>
34446
34447         Fix ftell on mingw.
34448         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34449         * modules/ftell-tests (Depends-on): Add binary-io.
34450         * modules/ftello-tests (Depends-on): Likewise.
34451         * tests/test-ftell.c (main): Enhance test to cover behavior after
34452         ungetc.  Enforce binary mode.
34453         * tests/test-ftello.c (main): Likewise.
34454
34455         Pass test-freadseek on cygwin.
34456         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34457         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34458         ungetc buffer.
34459
34460         * tests/test-fflush2.c (main): Fix typo.
34461
34462 2008-03-29  Bruno Haible  <bruno@clisp.org>
34463
34464         * tests/test-fflush2.c (main): Temporarily disable the contents of
34465         this test.
34466         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34467         Reported by Eric Blake.
34468
34469 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34470
34471         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34472         (GC_SHA224_DIGEST_SIZE): Add.
34473
34474         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34475         (gc_hash_digest_length): Likewise.
34476         (gc_hash_buffer): Likewise.
34477
34478 2008-03-25  Bruno Haible  <bruno@clisp.org>
34479
34480         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34481         detail which gettext release to use.
34482         Reported by Simon Josefsson.
34483
34484 2008-03-26  Jim Meyering  <meyering@redhat.com>
34485
34486         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34487         * modules/gnumakefile (clean-GNUmakefile): Also, use
34488         test ... && ... || : syntax rather than if-then ... fi.
34489
34490         gnumakefile: Don't double-quote-expand $(VPATH) value.
34491         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34492
34493 2008-03-24  Eric Blake  <ebb9@byu.net>
34494
34495         Alter GNUmakefile to install into top directory.
34496         * modules/maintainer-makefile: Split, and add dependency...
34497         * modules/gnumakefile: to this new module.
34498         * build-aux/GNUmakefile: Move...
34499         * top/GNUmakefile: ...here.
34500         * build-aux/maint.mk: Move...
34501         * top/maint.mk: ...here.
34502         * MODULES.html.sh (Support for maintaining...): Document new
34503         module.
34504
34505 2008-03-23  Bruno Haible  <bruno@clisp.org>
34506
34507         * gnulib-tool: New options --vc-files, --no-vc-files.
34508         (func_usage): Document them.
34509         (vc_files): New variable.
34510         (func_import): Consider vc_files.
34511         (func_create_testdir): Set vc_files to empty.
34512         Suggested by Jim Meyering and Karl Berry.
34513
34514 2008-03-23  Bruno Haible  <bruno@clisp.org>
34515
34516         Fix regex compilation error on HP-UX 11.
34517         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34518         * modules/regex (Files): Add m4/mbstate_t.m4.
34519         Reported by Ton Voon <ton.voon@altinity.com>.
34520
34521 2008-03-23  Bruno Haible  <bruno@clisp.org>
34522
34523         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34524
34525 2008-03-23  Eric Blake  <ebb9@byu.net>
34526             Bruno Haible  <bruno@clisp.org>
34527
34528         Install files from top/ in the destination directory.
34529         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34530         augmentation also for the files from top/.
34531         (func_import, func_create_testdir): Rewrite file names:
34532         top/filename -> filename.
34533
34534 2008-03-23  Bruno Haible  <bruno@clisp.org>
34535
34536         Tweak "gnulib --version" output.
34537         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34538
34539 2008-03-23  Bruno Haible  <bruno@clisp.org>
34540
34541         Tweak "gnulib --version" output.
34542         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34543         rather than contents of ChangeLog, when possible.
34544
34545 2008-03-21  Eric Blake  <ebb9@byu.net>
34546
34547         More --version tweaks.
34548         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34549         date of last ChangeLog entry.
34550
34551 2008-03-21  Jim Meyering  <meyering@redhat.com>
34552
34553         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34554
34555 2008-03-20  Eric Blake  <ebb9@byu.net>
34556
34557         VPATH fix.
34558         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34559
34560 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34561
34562         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34563         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34564
34565 2008-03-20  Eric Blake  <ebb9@byu.net>
34566
34567         Sync GNUmakefile with coreutils.
34568         * build-aux/GNUmakefile (have-Makefile): Rename...
34569         (_have-Makefile): ...to this, for namespace consideration.
34570         (GNUmakefile.cfg): Include, if present.
34571         (_autoreconf): Define a default.
34572         (_is-dist-target): New rule for rebuilds to pick up intra-release
34573         version.
34574         (maint-cfg.mk): Rename...
34575         (cfg.mk): ...to this.
34576
34577 2008-03-18  Jim Meyering  <meyering@redhat.com>
34578
34579         New script and module: mktempd
34580         * MODULES.html.sh (maint+release support): Add mktempd.
34581         * build-aux/mktempd: New file.
34582         * modules/mktempd: New file.
34583
34584 2008-03-15  Jim Meyering  <meyering@redhat.com>
34585
34586         Undo last change.
34587         * lib/sha1.c, lib/md5.c: 63 != ~63.
34588         Reported by Andreas Schwab.
34589
34590         sha1.c, md5.c: Hoist a redundant expression.
34591         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34592         "ctx->buflen" only once, before calling *_process_block.
34593         * lib/md5.c (md5_process_bytes): Likewise.
34594
34595 2008-03-14  Eric Blake  <ebb9@byu.net>
34596
34597         Bump copyright year in files generated by gnulib-tool.
34598         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34599         gnulib-tool, rather than hard-coding it.
34600
34601         Fix 'gnulib-tool --version' output to work with git.
34602         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34603         (startup): ...here.
34604         (func_version): Use it to invoke git-version-gen, rather than
34605         relying on CVS keyword expansion.  Modernize wording.
34606         (cvsdatestamp, last_checkin_date, version): Kill unused
34607         variables.
34608
34609 2008-03-12  Jim Meyering  <meyering@redhat.com>
34610
34611         Recognize optional cast of the argument to free.
34612         * build-aux/useless-if-before-free: Update regexps.
34613
34614         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34615
34616 2008-03-11  Bruno Haible  <bruno@clisp.org>
34617
34618         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34619         by a single package.
34620         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34621         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34622         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34623         Reported by Sam Steingold <sds@gnu.org>.
34624
34625 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34626
34627         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34628         repositories.
34629
34630 2008-03-11  Bruno Haible  <bruno@clisp.org>
34631
34632         Avoid conflicts between local macro definitions.
34633         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34634         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34635
34636 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34637             Bruno Haible  <bruno@clisp.org>
34638
34639         Make va_copy work with some version of xlc on AIX 5.1.
34640         * lib/stdarg.in.h: New file.
34641         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34642         On AIX, use a <stdarg.h> file substitute.
34643         * modules/stdarg (Files): Add lib/stdarg.in.h.
34644         (Depends-on): Add include_next.
34645         (Makefile.am): Build a stdarg.h substitute if requested.
34646         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34647
34648 2008-03-10  Bruno Haible  <bruno@clisp.org>
34649
34650         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34651         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34652         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34653
34654 2008-03-10  Bruno Haible  <bruno@clisp.org>
34655
34656         * modules/stdlib (Depends-on): Add include_next, remove
34657         absolute-header.
34658
34659 2008-03-09  Bruno Haible  <bruno@clisp.org>
34660
34661         * lib/freadahead.h (freadahead): Document more precisely.
34662         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34663         the sum of both buffer sizes.
34664         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34665         * NEWS: Document the change.
34666
34667 2008-03-09  Bruno Haible  <bruno@clisp.org>
34668
34669         Extend freadptr to return also the buffer size.
34670         * lib/freadptr.h (freadptr): Add sizep argument.
34671         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34672         (freadptr): Add sizep argument. Determine buffer size like freadahead
34673         does.
34674         * tests/test-freadptr.c: Don't include freadahead.h.
34675         (main): Adapt for new calling convention of freadptr.
34676         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
34677         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
34678         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
34679         tests/test-freadptr2.sh.
34680         (Depends): Remove freadahead.
34681         (TESTS): Add test-freadptr2.sh.
34682         (check_PROGRAMS): Add test-freadptr2.
34683
34684 2008-03-09  Bruno Haible  <bruno@clisp.org>
34685
34686         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
34687         Report and solution by Simon Josefsson.
34688
34689 2008-03-06  Bruno Haible  <bruno@clisp.org>
34690
34691         Make fflush after ungetc work on BSD platforms.
34692         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
34693         * tests/test-fflush2.c: New file.
34694         * tests/test-fflush2.sh: New file.
34695         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
34696         tests/test-fflush2.c.
34697         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
34698         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
34699
34700 2008-03-06  Eric Blake  <ebb9@byu.net>
34701
34702         Likewise for ftello.
34703         * modules/ftello (Dependencies): Add extensions.
34704         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
34705
34706 2008-03-06  Bruno Haible  <bruno@clisp.org>
34707
34708         * modules/fseeko (Dependencies): Add extensions.
34709         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
34710         Needed on glibc systems.
34711
34712 2008-03-06  Bruno Haible  <bruno@clisp.org>
34713
34714         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
34715         email address.
34716         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34717
34718 2008-03-06  Bruno Haible  <bruno@clisp.org>
34719
34720         * users.txt: Add libgnupdf.
34721
34722 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34723
34724         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
34725         (Header File Substitutes, Function Substitutes,
34726         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
34727         (Build robot for gnulib): Fix typo.
34728
34729 2008-03-06  Bruno Haible  <bruno@clisp.org>
34730
34731         * doc/gnulib-tool.texi (VCS Issues): Small updates.
34732         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34733
34734 2008-03-06  Bruno Haible  <bruno@clisp.org>
34735
34736         * doc/func.texi: New file, extracted from doc/gnulib.texi.
34737         * doc/gnulib.texi: Include it.
34738
34739 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34740
34741         * modules/func (License): Change license to unlimited; there was
34742         no LGPL parts in the module anyway.
34743
34744 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34745
34746         * modules/__func__: Renamed to modules/func.
34747         * modules/__func__-tests: Renamed to modules/func-tests.
34748         * tests/test-__func__.c: Renamed to tests/test-func.c.
34749         * m4/__func__.m4: Renamed to m4/func.m4.
34750         * doc/gnulib.texi (__func__): Section renamed to func.
34751         Suggested by Eric Blake <ebb9@byu.net>.
34752
34753 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34754
34755         * doc/gnulib.texi (__func__): Use C99 terminology when talking
34756         about __func__.  Make example self-contained.  Suggested by Eric
34757         Blake <ebb9@byu.net>.
34758
34759         * tests/test-__func__.c (main): Avoid extraneous () around __func.
34760         Suggested by Eric Blake <ebb9@byu.net>.
34761
34762 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34763
34764         * modules/__func__: New file.
34765         * modules/__func__-tests: New file.
34766         * tests/test-__func__.c: New file.
34767         * m4/__func__.m4: New file.
34768         * doc/gnulib.texi (__func__): Document __func__ module.
34769
34770 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34771
34772         * modules/byteswap (License): Re-license as LGPLv2+.
34773
34774 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34775
34776         * doc/Makefile: Add pdf target.
34777
34778 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34779
34780         * modules/inline (License): Use 'unlimited', since there are only
34781         *.m4 files in this module.
34782
34783 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34784             Bruno Haible  <bruno@clisp.org>
34785
34786         Add support for HP C 7.1 on OpenVMS 8.3.
34787         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
34788
34789 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34790
34791         Update VMS specifics.
34792         * lib/getopt.c [VMS]: Remove include of unixlib.h.
34793
34794 2008-03-02  Jim Meyering  <meyering@redhat.com>
34795
34796         Remove the last dependency on the "free" module.
34797         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
34798         Reported by Bob Proulx.
34799
34800         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
34801
34802         Remove useless "if" tests before free.  Deprecate "free" module.
34803         * doc/posix-functions/free.texi: Mention that this
34804         module is no longer useful.
34805         * modules/free (Notice): Say this module is obsolete.
34806         * modules/readutmp (Depends-on): Remove free.
34807         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
34808         * lib/putenv.c (putenv): Likewise.
34809         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
34810         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
34811         * tests/test-c-strcasestr.c (main): Likewise.
34812         * tests/test-c-strstr.c (main): Likewise.
34813         * tests/test-mbscasestr1.c (main): Likewise.
34814         * tests/test-mbscasestr2.c (main): Likewise.
34815         * tests/test-mbsstr1.c (main): Likewise.
34816         * tests/test-mbsstr2.c (main): Likewise.
34817         * tests/test-memmem.c (main): Likewise.
34818         * tests/test-strcasestr.c (main): Likewise.
34819         * tests/test-striconv.c (main): Likewise.
34820         * tests/test-striconveh.c (main): Likewise.
34821         * tests/test-striconveha.c (main): Likewise.
34822         * tests/test-strstr.c (main): Likewise.
34823
34824         * build-aux/git-version-gen: Adjust a comment and the Usage string.
34825
34826         bootstrap: sync from coreutils again
34827         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
34828
34829 2008-03-01  Jim Meyering  <meyering@redhat.com>
34830
34831         bootstrap: sync from coreutils
34832         * build-aux/bootstrap (update_po_files): Copy a .po file into place
34833         also when the target doesn't exist.
34834
34835 2008-03-01  Eric Blake  <ebb9@byu.net>
34836
34837         Fix bugs in last patch.
34838         * lib/memchr2.c (memchr2): Fix typo.
34839         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34840         extension.
34841         Reported by Bruce Korb.
34842
34843         New module 'memchr2'.
34844         * modules/memchr2: New file.
34845         * modules/memchr2-tests: Likewise.
34846         * lib/memchr2.h: Likewise.
34847         * lib/memchr2.c: Likewise, based on memchr.c.
34848         * tests/test-memchr2.c: New test.
34849         * MODULES.html.sh (String handling): Add memchr2.
34850
34851 2008-02-29  Bruno Haible  <bruno@clisp.org>
34852
34853         * modules/freadseek-tests: New file.
34854         * tests/test-freadseek.sh: New file.
34855         * tests/test-freadseek.c: New file.
34856
34857         New module 'freadseek'.
34858         * modules/freadseek: New file.
34859         * lib/freadseek.h: New file.
34860         * lib/freadseek.c: New file.
34861         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34862
34863 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34864
34865         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34866         wydawca.
34867
34868         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34869         program_invocation_name and program_invocation_short_name are
34870         present.
34871
34872 2008-02-28  Bruno Haible  <bruno@clisp.org>
34873
34874         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34875         * tests/test-freadptr.sh: Also test non-seekable stdin.
34876
34877 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34878
34879         * build-aux/bootstrap (source_base, m4_base)
34880         (doc_base, tests_base): New variables.
34881         (gnulib_tool_options): Do not hardcode base directories, use
34882         the above variables instead.
34883
34884 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34885
34886         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34887
34888 2008-02-28  Bruno Haible  <bruno@clisp.org>
34889
34890         * modules/freadptr-tests: New file.
34891         * tests/test-freadptr.sh: New file.
34892         * tests/test-freadptr.c: New file.
34893
34894         New module 'freadptr'.
34895         * modules/freadptr: New file.
34896         * lib/freadptr.h: New file.
34897         * lib/freadptr.c: New file.
34898         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34899
34900 2008-02-26  Karl Berry  <karl@freefriends.org>
34901
34902         Sync from Libtool:
34903         * libltdl/argz.c (argz_add, argz_count): New functions.
34904         * libltdl/argz.in.h: Declare them.
34905         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34906
34907 2008-02-22  Bruno Haible  <bruno@clisp.org>
34908
34909         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34910         is a pointer type.  Needed for HP-UX 10.
34911         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34912         * doc/posix-functions/gmtime_r.texi: Likewise.
34913         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34914
34915 2008-02-24  Bruno Haible  <bruno@clisp.org>
34916
34917         * modules/environ-tests: New file.
34918         * tests/test-environ.c: New file.
34919
34920         New module 'environ'.
34921         * modules/environ: New file.
34922         * lib/unistd.in.h (environ): New declaration.
34923         * m4/environ.m4: New file.
34924         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34925         after use.
34926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34927         HAVE_DECL_ENVIRON.
34928         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34929         HAVE_DECL_ENVIRON.
34930         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34931         wrong claim that 'environ' is missing on some systems.
34932         * modules/execute (Depends-on): Add environ.
34933         * lib/execute.c (environ): Remove fallback declaration.
34934         * modules/pipe (Depends-on): Add environ.
34935         * lib/pipe.c (environ): Remove fallback declaration.
34936         * modules/setenv (Depends-on): Add environ.
34937         * lib/setenv.c (environ): Remove fallback declaration.
34938         * modules/unsetenv (Depends-on): Add environ.
34939         * lib/unsetenv.c (environ): Remove fallback declaration.
34940         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34941         m4/environ.m4.
34942         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34943         (gl_PREREQ_UNSETENV): Likewise.
34944
34945 2008-02-24  Bruno Haible  <bruno@clisp.org>
34946
34947         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34948
34949 2008-02-20  Bob Proulx  <bob@proulx.com>
34950
34951         Enable use of older two part flavor 'git describe'.
34952         * build-aux/git-version-gen: If using the older two part flavor of
34953         git version then recreate the third part now present in the
34954         newer three part flavor of git describe.
34955
34956 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34957
34958         * lib/fts.c (fts_build): Typo correction to comment.
34959
34960 2008-02-17  Bruno Haible  <bruno@clisp.org>
34961
34962         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34963         generating no-op conflicts.
34964
34965 2008-02-17  Bruno Haible  <bruno@clisp.org>
34966
34967         Speed up by 10%.
34968         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34969         result_entries, rather than an index-based loop.
34970
34971 2008-02-17  Bruno Haible  <bruno@clisp.org>
34972
34973         Speed up by 25%.
34974         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34975         'hashcode_cached'.
34976         (entry_create): New function.
34977         (entry_hashcode): Use the cached hashcode if possible.
34978         (read_changelog_file, try_split_merged_entry): Use entry_create.
34979
34980 2008-02-17  Bruno Haible  <bruno@clisp.org>
34981
34982         Speed up from O(n^2) to O(n) for long ChangeLog files.
34983         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34984         (read_changelog_file): Change implementation of entries_reversed list
34985         to rbtreehash.
34986         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34987
34988 2008-02-17  Bruno Haible  <bruno@clisp.org>
34989
34990         New option --split-merged-entry.
34991         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34992         (find_paragraph_end, try_split_merged_entry): New functions.
34993         (long_options): Add option --split-merged-entry.
34994         (usage): Document option --split-merged-entry.
34995         (main): Implement option --split-merged-entry.
34996         Reported by Eric Blake.
34997
34998 2008-02-17  Bruno Haible  <bruno@clisp.org>
34999
35000         * lib/git-merge-changelog.c: Include c-strstr.h.
35001         (main): Support the "git pull --rebase" situation.
35002         * modules/git-merge-changelog (Depends-on): Add c-strstr.
35003         Reported by Eric Blake.
35004
35005 2008-02-16  Eric Blake  <ebb9@byu.net>
35006
35007         Avoid doubling \ in common case of "c-maybe" quoting style.
35008         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
35009         eliding outer quotes.
35010         * lib/quotearg.h: Document this.
35011         * tests/test-quotearg.c (result_strings, inputs, results_g)
35012         (flag_results, locale_results): Test it by adding a new string to
35013         each test group.
35014         (compare_strings): Test new string.
35015
35016 2008-02-13  Eric Blake  <ebb9@byu.net>
35017
35018         Avoid trigraph quoting in default output.
35019         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
35020         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
35021         unless explicitly requested.
35022         * tests/test-quotearg.c (flag_results, main): Add additional tests.
35023
35024 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
35025
35026         Don't rely on signed integer overflowing to negative value.
35027         * lib/getugroups.c (getugroups): Include <limits.h>.
35028         Instead, compare against INT_MAX, and increment only if the test passes.
35029
35030 2008-02-13  Jim Meyering  <meyering@redhat.com>
35031         and Eric Blake  <ebb9@byu.net>
35032
35033         Avoid shadowing warning and compile errors on Linux.
35034         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
35035         forwarding macros on Linux.
35036         (dcgettext): Define a stub, for Linux.
35037         (results_g, main): Avoid warnings.
35038
35039 2008-02-12  Eric Blake  <ebb9@byu.net>
35040
35041         Silence warning in last patch.
35042         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
35043
35044         Quotearg part 4: add tests, fix c-maybe colon quoting.
35045         * lib/quotearg.h: Improve documentation.
35046         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
35047         escapes when adding outer quotes.  When quoting trigraphs, use
35048         valid C notation.  When quoting NUL, omit extra characters if next
35049         character is not digit.  Alter prototype.
35050         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
35051         callers.
35052         * modules/quotearg-tests: New module.
35053         * tests/test-quotearg.c: New test.
35054
35055 2008-02-07  Eric Blake  <ebb9@byu.net>
35056
35057         Quotearg part 3: add flag to control outer quote elision.
35058         * lib/quotearg.h (c_maybe_quoting_style): New style.
35059         (enum quoting_flags): Better documentation of flags.
35060         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
35061         c-maybe style.
35062         (quotearg_buffer_restyled): Handle new flag to elide outer
35063         quotes.
35064
35065         Quotearg part 2: add flag that can control NUL elision.
35066         * lib/quotearg.h (set_quoting_flags): New prototype.
35067         * lib/quotearg.c (struct quoting_options): Add flag field.
35068         (set_quoting_flags): New function.
35069         (quotearg_buffer_restyled): Add flags parameter.
35070         (quotearg_alloc_mem): Set the flag if length cannot be returned.
35071         (quotearg_n_options): Set the flag, since length cannot be
35072         returned.
35073         (quoting_options_from_style): Default flags correctly.
35074
35075         Quotearg part 1: more wrappers, restore quotearg_char state.
35076         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
35077         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
35078         (quotearg_colon_mem): New wrappers.
35079         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
35080         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
35081         functions.
35082         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
35083         (quotearg_colon_mem): New functions.
35084
35085 2008-02-11  Bruno Haible  <bruno@clisp.org>
35086
35087         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
35088         library in the current directory: it does not work with parallel make.
35089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35090
35091 2008-02-11  Bruno Haible  <bruno@clisp.org>
35092
35093         * .gitattributes: New file.
35094
35095 2008-02-11  Jim Meyering  <meyering@redhat.com>
35096
35097         useless-if-before-free: Fix reversed exit values.
35098         * build-aux/useless-if-before-free: Use correct values
35099         for EXIT_MATCH and EXIT_NO_MATCH.
35100
35101         * build-aux/useless-if-before-free: Close stdout carefully.
35102
35103 2008-02-10  Bruno Haible  <bruno@clisp.org>
35104
35105         New module 'git-merge-changelog'.
35106         * modules/git-merge-changelog: New file.
35107         * lib/git-merge-changelog.c: New file.
35108
35109 2008-02-10  Jim Meyering  <meyering@redhat.com>
35110
35111         useless-if-before-free: New option: --list (-l).
35112
35113         useless-if-before-free: Don't exit immediately upon open failure.
35114         * build-aux/useless-if-before-free: Exit 2 for errors.
35115         Upon failure to open a file, don't exit immediately.
35116         Rather, just warn and continue with any remaining files.
35117
35118 2008-02-10  Bruno Haible  <bruno@clisp.org>
35119
35120         New abstract list operation 'node_set_value'.
35121         * lib/gl_list.h (gl_list_node_set_value): New function.
35122         (struct gl_list_implementation): New field node_set_value.
35123         * lib/gl_list.c (gl_list_node_set_value): New function.
35124         * lib/gl_array_list.c (gl_array_node_set_value): New function.
35125         (gl_array_list_implementation): Update.
35126         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
35127         (gl_carray_list_implementation): Update.
35128         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
35129         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
35130         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
35131         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
35132         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
35133         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
35134         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
35135         Update.
35136         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
35137         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
35138         (gl_sublist_list_implementation): Update.
35139
35140 2008-02-10  Bruno Haible  <bruno@clisp.org>
35141
35142         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
35143         Needed when ELEMENT is #defined to 'some_type *'.
35144
35145 2008-02-10  Jim Meyering  <meyering@redhat.com>
35146
35147         New script and module: useless-if-before-free
35148         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
35149         * build-aux/useless-if-before-free: New file.
35150         * modules/useless-if-before-free: New file.
35151
35152         * build-aux/gitlog-to-changelog: Use committer date, not author date.
35153
35154         xstrtol_error: Fix typo.
35155         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
35156         s/exit_failure/exit_status/.
35157
35158 2008-02-09  Jim Meyering  <meyering@redhat.com>
35159
35160         New script and module: gitlog-to-changelog
35161         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
35162         * modules/gitlog-to-changelog: New file.
35163         * build-aux/gitlog-to-changelog: New file.
35164
35165 2008-02-08  Jim Meyering  <meyering@redhat.com>
35166
35167         Avoid two "parameter unused" warnings.
35168         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
35169         Mark "st" as used.
35170
35171         Use "git COMMAND", not "git-COMMAND".
35172         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
35173         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
35174         * build-aux/git-version-gen: Use "git status", not "git-status".
35175
35176 2008-02-07  Bruno Haible  <bruno@clisp.org>
35177
35178         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
35179         Avoids a crash on Windows Vista.
35180         Reported by Adam Strzelecki <ono@java.pl> via
35181         Simon Josefsson <simon@josefsson.org>.
35182
35183 2008-02-06  Bruno Haible  <bruno@clisp.org>
35184
35185         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
35186         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
35187         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
35188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
35189         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35190         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35191         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
35192         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
35193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35194         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35200         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
35201         left-adjust flag.
35202         * tests/test-snprintf-posix.h (test_function): Likewise.
35203         * tests/test-sprintf-posix.h (test_function): Likewise.
35204         * tests/test-vasprintf-posix.c (test_function): Likewise.
35205         * doc/posix-functions/fprintf.texi: Update.
35206         * doc/posix-functions/printf.texi: Update.
35207         * doc/posix-functions/snprintf.texi: Update.
35208         * doc/posix-functions/sprintf.texi: Update.
35209         * doc/posix-functions/vfprintf.texi: Update.
35210         * doc/posix-functions/vprintf.texi: Update.
35211         * doc/posix-functions/vsnprintf.texi: Update.
35212         * doc/posix-functions/vsprintf.texi: Update.
35213         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35214
35215 2008-02-06  Bruno Haible  <bruno@clisp.org>
35216
35217         Fix bug introduced on 2008-01-26.
35218         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
35219
35220 2008-02-06  Bruno Haible  <bruno@clisp.org>
35221
35222         Fix bug introduced on 2007-06-10.
35223         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
35224         !NEED_PRINTF_FLAG_ZERO.
35225
35226 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
35227
35228         getloadavg: use libperfstat on AIX5
35229         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
35230
35231 2008-02-03  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/diffseq.h: Add comments about required #includes.
35234         Reported by Michael Biggs <gnulib@doubleplum.net>.
35235
35236 2008-02-01  Bruno Haible  <bruno@clisp.org>
35237
35238         * users.txt: Add gnuit.
35239
35240 2008-01-31  Bruno Haible  <bruno@clisp.org>
35241
35242         * lib/md4.c (set_uint32): Mark as inline.
35243         * lib/md5.c (set_uint32): Likewise.
35244         * lib/sha1.c (set_uint32): Likewise.
35245         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
35246         * m4/md5.m4 (gl_MD5): Likewise.
35247         * m4/sha1.m4 (gl_SHA1): Likewise.
35248
35249 2008-01-31  Jim Meyering  <meyering@redhat.com>
35250
35251         Use "sizeof VAR", rather than a literal "4".
35252         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
35253         * lib/md4.c (md4_read_ctx): Likewise.
35254         * lib/sha1.c (sha1_read_ctx): Likewise.
35255
35256 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35257
35258         * tests/test-sha1.c: New file, based on test-md5.c.
35259
35260         * modules/crypto/sha1-tests: New file.
35261
35262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35263
35264         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
35265
35266 2008-01-31  Jim Meyering  <meyering@redhat.com>
35267
35268         Prefer "sizeof v" over the equivalent "4".
35269         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
35270         * lib/md5.c (set_uint32): Likewise.
35271         * lib/sha1.c (set_uint32): Likewise.
35272
35273 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35274
35275         * lib/sha1.c (set_uint32): Mark function as static.
35276
35277 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35278
35279         md2: clarify comments to say that alignment is not required.
35280         * lib/md2.h: Remove warning about alignment in comment.
35281         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
35282         never been required.
35283
35284 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35285
35286         md4: adapt alignment constraint fix from sha1.
35287         * lib/md4.c (set_uint32): New function, from sha1.c
35288         (md4_read_ctx): Use it.
35289         (md4_finish_ctx): Doc fix.
35290         * lib/md4.h: Doc fix.
35291
35292 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35293
35294         md5: adapt alignment constraint fix from sha1.
35295         * lib/md5.c (set_uint32): New function, from sha1.c
35296         (md5_read_ctx): Use it.
35297         (md5_finish_ctx): Doc fix.
35298         * lib/md5.h: Doc fix.
35299
35300 2008-01-30  Peter Palfrader  <weasel@debian.org>
35301
35302         sha1: remove the result buffer alignment constraint
35303         * lib/sha1.c (set_uint32): New function.
35304         (sha1_read_ctx): Rewrite to remove the result buffer alignment
35305         constraint.
35306         (sha1_finish_ctx): Remove comment warning about alignment constraint.
35307         * lib/sha1.h: Likewise.
35308
35309 2008-01-30  Andreas Schwab  <schwab@suse.de>
35310             Bruno Haible  <bruno@clisp.org>
35311
35312         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
35313         correct definition of LDBL_MIN_EXP.
35314
35315 2008-01-30  Karl Berry  <karl@gnu.org>
35316
35317         * config/srclist-update: try to preserve x bit on updates.
35318         * config/srclistvars.sh: update for karl.
35319
35320 2008-01-29  Jim Meyering  <meyering@redhat.com>
35321
35322         vasnprintf.c: Avoid warning about unused label
35323         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
35324         "overflow" label definition and associated code with the
35325         same cpp condition that guards the sole use of that label.
35326
35327 2008-01-26  Bruno Haible  <bruno@clisp.org>
35328
35329         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
35330         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
35331         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
35332         * lib/isnanl-nolibm.h (isnanl): Likewise.
35333         Reported by Paul Eggert <eggert@cs.ucla.edu>.
35334
35335 2008-01-26  Bruno Haible  <bruno@clisp.org>
35336
35337         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
35338         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
35339
35340 2008-01-26  Bruno Haible  <bruno@clisp.org>
35341
35342         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
35343         GCC >= 4.0 built-in.
35344         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
35345
35346 2008-01-26  Bruno Haible  <bruno@clisp.org>
35347
35348         Rename isnan, applicable to 'double' only, to isnand.
35349         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
35350         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
35351         (configure.ac): Update.
35352         (Include): Replace "isnan.h" with "isnand.h".
35353         * m4/isnand.m4: Renamed from m4/isnan.m4.
35354         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
35355         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
35356         instead of isnan.c.
35357         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
35358         instead of HAVE_ISNAN_IN_LIBC.
35359         (isnand): Renamed from isnan.
35360         * lib/isnand.c: New file.
35361         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
35362         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
35363         (Makefile.am): Update.
35364         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
35365         Include isnand.h instead of isnan.h.
35366         (main): Test isnand instead of isnan.
35367         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
35368         isnan-nolibm.
35369         * modules/frexp (Depends-on): Likewise.
35370         * modules/frexp-tests (Depends-on): Likewise.
35371         * modules/frexp-nolibm (Depends-on): Likewise.
35372         * modules/frexp-nolibm-tests (Depends-on): Likewise.
35373         * modules/isfinite (Depends-on): Likewise.
35374         * modules/round-tests (Depends-on): Likewise.
35375         * modules/signbit (Depends-on): Likewise.
35376         * modules/signbit-tests (Depends-on): Likewise.
35377         * modules/snprintf-posix (Depends-on): Likewise.
35378         * modules/sprintf-posix (Depends-on): Likewise.
35379         * modules/trunc-tests (Depends-on): Likewise.
35380         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35381         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35382         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35383         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35384         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35385         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35386         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35387         * modules/vasnprintf-posix (Depends-on): Likewise.
35388         * modules/vasprintf-posix (Depends-on): Likewise.
35389         * modules/vfprintf-posix (Depends-on): Likewise.
35390         * modules/vsnprintf-posix (Depends-on): Likewise.
35391         * modules/vsprintf-posix (Depends-on): Likewise.
35392         * lib/frexp.c: Include isnand.h instead of isnan.h.
35393         (ISNAN): Set to isnand instead of isnan.
35394         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35395         (gl_isfinited): Use isnand instead of isnan.
35396         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35397         (gl_signbitd): Use isnand instead of isnan.
35398         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35399         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35400         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35401         (main): Use isnand instead of isnan.
35402         * tests/test-round1.c: Include isnand.h.
35403         (main): Use isnand instead of isnan.
35404         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35405         (ISNAN): Set to isnand instead of isnan.
35406         * tests/test-trunc1.c: Include isnand.h.
35407         (main): Use isnand instead of isnan.
35408         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35409         (equal): Use isnand instead of isnan.
35410         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35411         isnand-nolibm.
35412         * NEWS: Mention the change.
35413
35414 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35415             Bruno Haible  <bruno@clisp.org>
35416
35417         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35418         the GCC builtins for signbits are present and set
35419         REPLACE_SIGNBIT_USING_GCC if so.
35420         * lib/math.in.h (signbit): Define using GCC builtins if
35421         REPLACE_SIGNBIT_USING_GCC is set.
35422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35423         REPLACE_SIGNBIT_USING_GCC.
35424         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35425
35426 2008-01-25  Jim Meyering  <meyering@redhat.com>
35427
35428         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35429         * lib/poll.c: Include <config.h>, not "config.h".
35430         * tests/test-getaddrinfo.c: Likewise.
35431
35432 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35433
35434         * modules/sockets-tests: New file.
35435
35436 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35437
35438         * modules/sockets: New module, can be used to call WSA_Startup and
35439         WSA_Cleanup when needed.
35440
35441         * lib/sockets.h, lib/sockets.c: New files.
35442
35443         * m4/sockets.m4: New file.
35444
35445         * tests/test-sockets.c: New file.
35446
35447 2008-01-19  Bruno Haible  <bruno@clisp.org>
35448
35449         * doc/posix-headers: Renamed from doc/headers.
35450         * doc/posix-functions: Renamed from doc/functions.
35451         * doc/gnulib.texi: Update.
35452
35453 2008-01-19  Bruno Haible  <bruno@clisp.org>
35454
35455         * doc/glibc-functions/strcasestr.texi: Include contents of
35456         doc/functions/strcasestr.texi, fixing the list of platforms.
35457         * doc/functions/strcasestr.texi: Remove file.
35458
35459 2008-01-19  Bruno Haible  <bruno@clisp.org>
35460
35461         * doc/glibc-functions/memmem.texi: Include contents of
35462         doc/functions/memmem.texi.
35463         * doc/functions/memmem.texi: Remove file.
35464
35465 2008-01-18  Bruno Haible  <bruno@clisp.org>
35466
35467         * doc/glibc-functions/*.texi: New files.
35468         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35469         to use the new files.
35470
35471 2008-01-17  Bruno Haible  <bruno@clisp.org>
35472
35473         * tests/test-gethostname.c (main): Fix printf statement.
35474
35475 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35476
35477         * modules/gethostname-tests: New file.
35478
35479         * tests/test-gethostname.c: New file.
35480
35481 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35482
35483         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35484         used by the UNAME case.  Reported by Bruno Haible
35485         <bruno@clisp.org>.
35486
35487 2008-01-17  Eric Blake  <ebb9@byu.net>
35488
35489         Convert c-strcasestr to be more efficient.
35490         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35491         (Depends-on): Add c-strcase, remove malloca, strnlen.
35492         * tests/test-c-strcasestr.c (main): Enhance test.
35493         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35494
35495 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35496
35497         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35498         Use it in creating po/Makevars.
35499
35500 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35501
35502         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35503         Applications that requires it should initialize libgcrypt
35504         manually.
35505
35506 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35507
35508         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35509
35510 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35511
35512         Fix problem with getdate on mingw32 reported by Simon Josefsson
35513         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35514         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35515         tzname", when deciding whether to declare tzname.
35516         * lib/strftime.c (tzname): Likewise.
35517
35518 2008-01-15  Bruno Haible  <bruno@clisp.org>
35519
35520         Work around a MacOS X 10.5 bug in frexpl().
35521         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35522         * doc/functions/frexpl.texi: Document the bug.
35523         Reported by Elias Pipping <pipping@gentoo.org>.
35524
35525 2008-01-14  Eric Blake  <ebb9@byu.net>
35526
35527         Touch up previous patch.
35528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35529         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35530
35531         Convert strcasestr module to use Two-Way algorithm.
35532         * modules/strcasestr-simple: New module, based on the old
35533         strcasestr, but with Two-Way rather than KMP.
35534         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35535         * lib/string.in.h (rpl_strcasestr): Declare.
35536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35537         performance.
35538         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35539         * modules/string (Makefile.am): Support strcasestr.
35540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35541         * modules/strcasestr-tests (Depends-on): Check for alarm.
35542         * tests/test-strcasestr.c: Augment test.
35543         * lib/str-two-way.h: Clean up stray macro.
35544         * NEWS: Document new module.
35545         * MODULES.html.sh (string handling): Likewise.
35546         * doc/functions/strcasestr.texi: New file.
35547         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35548         here, since it is not a POSIX function.
35549
35550 2008-01-14  Colin Watson  <cjwatson@debian.org>
35551             Bruno Haible  <bruno@clisp.org>
35552
35553         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35554         works fine; if not, set REPLACE_STRSIGNAL.
35555         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35557         REPLACE_STRSIGNAL.
35558         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35559         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35560         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35561
35562 2008-01-14  Bruno Haible  <bruno@clisp.org>
35563
35564         * modules/strsignal (Include): Change to <string.h>.
35565
35566 2008-01-14  Colin Watson  <cjwatson@debian.org>
35567
35568         * modules/argp (Notice): Add a notice recommending to change
35569         XGETTEXT_OPTIONS.
35570         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35571
35572 2008-01-13  Colin Watson  <cjwatson@debian.org>
35573
35574         * modules/strsignal-tests: New file.
35575         * tests/test-strsignal.c: New file.
35576
35577         * lib/strsignal.c: New file, from glibc with modifications.
35578         * lib/siglist.h: New file, from glibc with modifications.
35579         * lib/string.in.h (strsignal): New declaration.
35580         * m4/strsignal.m4: New file.
35581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35582         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35583         * modules/strsignal: New file.
35584         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35585         HAVE_DECL_STRSIGNAL.
35586
35587 2008-01-13  Bruno Haible  <bruno@clisp.org>
35588
35589         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35590         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35591         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35592         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35593
35594 2008-01-13  Bruno Haible  <bruno@clisp.org>
35595
35596         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35597         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35598         * lib/argp.h (__attribute__): Likewise.
35599         * lib/c-stack.c (__attribute__): Likewise.
35600         * lib/error.h (__attribute__): Likewise.
35601         * lib/fts.c (__attribute__): Likewise.
35602         * lib/openat.h (__attribute__): Likewise.
35603         * lib/stdio.in.h (__attribute__): Likewise.
35604         * lib/string.in.h (__attribute__): Likewise.
35605         * lib/utimens.c (__attribute__): Likewise.
35606         * lib/vasnprintf.h (__attribute__): Likewise.
35607         * lib/xalloc.h (__attribute__): Likewise.
35608         * lib/xprintf.h (__attribute__): Likewise.
35609         * lib/xstrtol.h (__attribute__): Likewise.
35610         * lib/xvasprintf.h (__attribute__): Likewise.
35611
35612 2008-01-12  Bruno Haible  <bruno@clisp.org>
35613
35614         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35615         * doc/glibc-headers/a.out.texi: New file.
35616         * doc/glibc-headers/aliases.texi: New file.
35617         * doc/glibc-headers/alloca.texi: New file.
35618         * doc/glibc-headers/ar.texi: New file.
35619         * doc/glibc-headers/argp.texi: New file.
35620         * doc/glibc-headers/argz.texi: New file.
35621         * doc/glibc-headers/byteswap.texi: New file.
35622         * doc/glibc-headers/crypt.texi: New file.
35623         * doc/glibc-headers/endian.texi: New file.
35624         * doc/glibc-headers/envz.texi: New file.
35625         * doc/glibc-headers/err.texi: New file.
35626         * doc/glibc-headers/error.texi: New file.
35627         * doc/glibc-headers/execinfo.texi: New file.
35628         * doc/glibc-headers/fpu_control.texi: New file.
35629         * doc/glibc-headers/fstab.texi: New file.
35630         * doc/glibc-headers/fts.texi: New file.
35631         * doc/glibc-headers/getopt.texi: New file.
35632         * doc/glibc-headers/ieee754.texi: New file.
35633         * doc/glibc-headers/ifaddrs.texi: New file.
35634         * doc/glibc-headers/libintl.texi: New file.
35635         * doc/glibc-headers/mcheck.texi: New file.
35636         * doc/glibc-headers/mntent.texi: New file.
35637         * doc/glibc-headers/obstack.texi: New file.
35638         * doc/glibc-headers/paths.texi: New file.
35639         * doc/glibc-headers/printf.texi: New file.
35640         * doc/glibc-headers/pty.texi: New file.
35641         * doc/glibc-headers/resolv.texi: New file.
35642         * doc/glibc-headers/shadow.texi: New file.
35643         * doc/glibc-headers/sysexits.texi: New file.
35644         * doc/glibc-headers/ttyent.texi: New file.
35645
35646 2008-01-12  Jim Meyering  <meyering@redhat.com>
35647
35648         announce-gen: emit Gnulib's git-based version string.
35649         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35650         New option --gnulib-version=V, where V is expected to be
35651         the output of running git describe in the gnulib directory.
35652         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35653         not useful, and plan to stop publishing an xdelta file with each
35654         coreutils release.
35655
35656         * build-aux/announce-gen: Also check for lzma-compressed files.
35657
35658 2008-01-11  Bruno Haible  <bruno@clisp.org>
35659
35660         * tests/test-memmem.c (main): Increase maximum allowed time.
35661         * tests/test-strstr.c (main): Likewise.
35662
35663 2008-01-11  Bruno Haible  <bruno@clisp.org>
35664
35665         * doc/functions/memmem.texi: Add more precisions about platforms.
35666         * doc/functions/strstr.texi: Likewise.
35667
35668 2008-01-10  Eric Blake  <ebb9@byu.net>
35669
35670         * m4/strstr.m4: Delete cruft from copy-n-paste.
35671         Reported by Bruno Haible.
35672
35673 2008-01-10  Bruno Haible  <bruno@clisp.org>
35674
35675         Make c-strstr rely on strstr.
35676         * lib/c-strstr.c: Don't include str-kmp.h.
35677         (c_strstr): Define in terms of strstr.
35678         * modules/c-strstr (Files): Remove lib/str-kmp.h.
35679         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
35680
35681 2008-01-10  Bruno Haible  <bruno@clisp.org>
35682
35683         * doc/gnulib.texi (String Functions in C Locale): New section.
35684         * doc/c-ctype.texi: New file.
35685         * doc/c-strcase.texi: New file.
35686         * doc/c-strcaseeq.texi: New file.
35687         * doc/c-strcasestr.texi: New file.
35688         * doc/c-strstr.texi: New file.
35689         * doc/c-strtod.texi: New file.
35690         * doc/c-strtold.texi: New file.
35691
35692 2008-01-10  Eric Blake  <ebb9@byu.net>
35693
35694         * lib/relocatable.h: Fix a comment.
35695
35696 2008-01-10  Eric Blake  <ebb9@byu.net>
35697
35698         Share two-way algorithm.
35699         * lib/str-two-way.h: New file, merged from...
35700         * lib/memmem.c: ...here...
35701         * lib/strstr.c: ...and here.
35702         * modules/memmem (Files): Use it.
35703         * modules/strstr (Files): Likewise.
35704
35705         Avoid quadratic strstr implementations.
35706         * lib/strstr.c: New file.
35707         * m4/strstr.m4: Likewise.
35708         * modules/strstr: Likewise.
35709         * modules/strstr-tests: Likewise.
35710         * tests/test-strstr.c: Likewise.
35711         * lib/string.in.h (rpl_strstr): Declare.
35712         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
35713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
35714         * modules/string (Makefile.am): Likewise.
35715         * MODULES.html.sh (string handling): Mention new module.
35716         * doc/functions/strstr.texi (strstr): Document the bug.
35717
35718 2008-01-10  Bruno Haible  <bruno@clisp.org>
35719
35720         * lib/relocatable.h (relocate): State whether result is freshly
35721         allocated or not.
35722         * lib/relocatable.c (relocate): Return a freshly allocated string
35723         instead of a pointer to a privately held string.
35724         Reported by Sylvain Beucler <beuc@gnu.org>.
35725
35726 2008-01-10  Colin Watson  <cjwatson@debian.org>
35727
35728         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
35729         s/S_ISNLK/S_ISLNK/.
35730
35731 2008-01-09  Bruno Haible  <bruno@clisp.org>
35732
35733         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
35734         and other files.
35735         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
35736         if it's only a guess.
35737         * modules/memmem: Simplify by depending on memmem-simple.
35738
35739 2008-01-09  Bruno Haible  <bruno@clisp.org>
35740
35741         Work around OpenBSD 4.0 tdelete() bug.
35742         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
35743         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
35744         macros and don't redefine the enum values.
35745         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
35746         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
35747         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
35748
35749 2008-01-09  Bruno Haible  <bruno@clisp.org>
35750
35751         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
35752         (main): Don't perform the tests if setlocale did not install a UTF-8
35753         locale. Needed on OpenBSD 4.0.
35754         * modules/wcwidth-tests (Depends-on): Add localcharset.
35755
35756 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35757
35758         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
35759         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
35760         * NEWS: announce this.
35761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
35762
35763 2008-01-09  Simon Josefsson  <simon@josefsson.org>
35764         and Eric Blake  <ebb9@byu.net>
35765
35766         Add memmem-simple module.
35767         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
35768         (gl_FUNC_MEMMEM): Separate performance from presence checks.
35769         * modules/memmem-simple: New file.
35770         * modules/memmem (Description): Tweak.
35771         * MODULES.html.sh (string handling): Mention new module.
35772         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
35773         addressed by memmem-simple.
35774         * NEWS: Document the difference.
35775
35776 2008-01-09  Eric Blake  <ebb9@byu.net>
35777
35778         Give gcc some memmem optimization hints.
35779         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
35780         (strcasestr): Declare as pure.
35781         * modules/memmem (Maintainer): Claim my implementation.
35782
35783 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35784
35785         Support AIX 6.1 and higher.
35786         * build-aux/config.libpath: Likewise.
35787         * build-aux/config.rpath: Likewise.
35788
35789 2008-01-08  Jim Meyering  <meyering@redhat.com>
35790             Bruno Haible  <bruno@clisp.org>
35791
35792         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
35793         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
35794         Reported by Peter Fales in
35795         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
35796
35797 2008-01-08  Bruno Haible  <bruno@clisp.org>
35798
35799         * modules/unictype/category-of (Depends-on): Add
35800         unictype/category-none.
35801         * modules/unictype/category-and-tests (Depends-on): Add
35802         unictype/category-{L,N,Lu,Nd}.
35803         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
35804         * modules/unictype/category-or-tests (Depends-on): Add
35805         unictype/category-{L,N}.
35806         * modules/unictype/category-name-tests (Depends-on): Add
35807         unictype/category-{Z,Nl}.
35808         Reported by Simon Josefsson.
35809
35810 2008-01-08  Bruno Haible  <bruno@clisp.org>
35811
35812         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
35813         convention better.
35814         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
35815         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
35816         Reported by Peter Miller <millerp@canb.auug.org.au>.
35817
35818 2008-01-08  Eric Blake  <ebb9@byu.net>
35819
35820         Rewrite memmem to guarantee linear complexity without malloc.
35821         * lib/memmem.c (memmem): Use Two-Way rather than
35822         Knuth-Morris-Pratt, to allow O(1) space usage.
35823         (critical_factorization, two_way_short_needle)
35824         (two_way_long_needle): New functions.
35825         (knuth_morris_pratt): Delete.
35826         * modules/memmem (Depends-on): No longer need malloca or stdbool.
35827         Add stdint.
35828         * tests/test-memmem.c (main): Add tests for periodic needle and
35829         sublinear performance.
35830         * doc/functions/memmem.texi (memmem): Document other deficiencies
35831         in cygwin and older glibc.
35832
35833 2008-01-08  Bruno Haible  <bruno@clisp.org>
35834
35835         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
35836         augmentation.
35837
35838 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35839
35840         Add a configure time option: --disable-acl.
35841         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35842         AC_ARG_ENABLE(acl).
35843
35844 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35845
35846         * tests/test-localename.c: Don't include obsolete "setenv.h".
35847
35848         * modules/localename-tests (Depends-on): Need unsetenv.
35849
35850 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35851
35852         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35853
35854 2008-01-06  Colin Watson  <cjwatson@debian.org>
35855
35856         * users.txt: Add man-db.
35857
35858 2008-01-07  Bruno Haible  <bruno@clisp.org>
35859
35860         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35861         previous section name.
35862
35863 2008-01-07  Bruno Haible  <bruno@clisp.org>
35864
35865         * lib/progname.c (set_program_name): Don't strip off a leading
35866         "lt-" prefix outside a .libs directory.
35867         Suggested by Paul Eggert.
35868
35869 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35870             Bruno Haible  <bruno@clisp.org>
35871
35872         Improve memory cleanup in 'relocatable' module.
35873         * lib/relocatable.h (compute_curr_prefix): Change return type to
35874         'char *'.
35875         * lib/relocatable.c (compute_curr_prefix): Change return type to
35876         'char *'. Free curr_installdir after use.
35877         (relocate): Free curr_prefix_better after use.
35878         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35879
35880 2008-01-01  Bruno Haible  <bruno@clisp.org>
35881
35882         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35883         failure on older glibc systems.
35884         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35885
35886 2008-01-05  Eric Blake  <ebb9@byu.net>
35887
35888         Avoid quadratic system memmem.
35889         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35890         Reported by Ralf Wildenhues.
35891
35892         Fix memmem test for mingw.
35893         * modules/memmem-tests (configure.ac): Check for alarm.
35894         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35895         it.
35896         * doc/functions/memmem.texi: New file.
35897         * doc/gnulib.texi (Function Substitutes): Add memmem.
35898         Reported by Bruno Haible.
35899
35900 2008-01-04  Bruno Haible  <bruno@clisp.org>
35901
35902         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35903         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35904         gl_HEADER_STRING_H_DEFAULTS.
35905
35906 2008-01-04  Eric Blake  <ebb9@byu.net>
35907
35908         Shorten duration of memmem test.
35909         * tests/test-memmem.c (main): Use alarm to declare failure if test
35910         is taking too long.
35911         Reported by Ralf Wildenhues.
35912
35913 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35914
35915         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35916         string, needed by strerror.
35917
35918 2008-01-03  Colin Watson  <cjwatson@debian.org>
35919             Bruno Haible  <bruno@clisp.org>
35920
35921         * doc/gnulib-tool.texi (Localization): New section.
35922
35923 2008-01-02  Bruno Haible  <bruno@clisp.org>
35924
35925         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35926         variables to 'unsigned char *' type.
35927         Reported by Paul Eggert.
35928
35929 2008-01-02  Jim Meyering  <jim@meyering.net>
35930
35931         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35932
35933 2007-12-31  Jim Meyering  <jim@meyering.net>
35934
35935         Avoid use of private FTS type name.
35936         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35937
35938 2007-12-30  Karl Berry  <karl@gnu.org>
35939
35940         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35941         work around defect in Texinfo and/or the standalone Info browser.
35942
35943 2007-12-30  Bruno Haible  <bruno@clisp.org>
35944
35945         Unify 5 copies of the KMP code.
35946         * lib/str-kmp.h: New file.
35947         * lib/c-strcasestr.c: Include str-kmp.h.
35948         (knuth_morris_pratt): Remove function.
35949         (c_strcasestr): Update.
35950         * lib/c-strstr.c: Include str-kmp.h.
35951         (knuth_morris_pratt): Remove function.
35952         (c_strcasestr): Update.
35953         * lib/mbscasestr.c: Include str-kmp.h.
35954         (knuth_morris_pratt_unibyte): Remove function.
35955         * lib/mbsstr.c: Include str-kmp.h.
35956         (knuth_morris_pratt_unibyte): Remove function.
35957         * lib/strcasestr.c: Include str-kmp.h.
35958         (knuth_morris_pratt): Remove function.
35959         (strcasestr): Update.
35960         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35961         * modules/c-strstr (Files): Likewise.
35962         * modules/mbscasestr (Files): Likewise.
35963         * modules/mbsstr (Files): Likewise.
35964         * modules/strcasestr (Files): Likewise.
35965         Suggested by Paul Eggert.
35966
35967 2007-12-30  Bruno Haible  <bruno@clisp.org>
35968
35969         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35970         defined.
35971
35972 2007-12-30  Bruno Haible  <bruno@clisp.org>
35973
35974         * lib/xmalloca.h: Include xalloc.h.
35975         (xnmalloca): New macro.
35976
35977 2007-12-30  Bruno Haible  <bruno@clisp.org>
35978
35979         * lib/malloca.h (nmalloca): New macro.
35980         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35981         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35982         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35983         knuth_morris_pratt_multibyte): Likewise.
35984         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35985         knuth_morris_pratt_multibyte): Likewise.
35986         * lib/memmem.c (knuth_morris_pratt): Likewise.
35987         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35988
35989 2007-12-25  Bruno Haible  <bruno@clisp.org>
35990
35991         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35992         * lib/glob.c: Don't include openat.h.
35993         (link_exists2_p): Add back the code that deals with the
35994         !GLOB_ALTDIRFUNC case.
35995         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35996         let it do the filename concatenation.
35997         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35998         * modules/glob (Depends-on): Remove openat.
35999
36000 2007-12-31  Bruno Haible  <bruno@clisp.org>
36001
36002         * modules/dirfd (License): Change to LGPLv2+.
36003         Approved by Jim Meyering.
36004
36005 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36006
36007         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
36008         when multiplying M by sizeof (size_t).
36009
36010 2007-12-10  Martin Lambers  <marlam@marlam.de>
36011
36012         Override getpagesize on mingw.
36013         * lib/getpagesize.c: New file.
36014         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
36015         * modules/getpagesize (Files): Add lib/getpagesize.c.
36016         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
36017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36018         REPLACE_GETPAGESIZE.
36019         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
36020
36021 2007-12-25  Bruno Haible  <bruno@clisp.org>
36022
36023         * modules/localcharset (Notice): New field.
36024         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
36025         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
36026
36027 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36028             Bruno Haible  <bruno@clisp.org>
36029
36030         Avoid using the syntax symbol() in formatted documentation.
36031         * MODULES.html.sh (func_module): When replacing symbol() with a
36032         hyperlink, remove the parentheses. Show an error if some remain.
36033         Recognize and render the '...' syntax.
36034         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
36035         Rework. Add paragraph about GCC's inlining.
36036         * doc/alloca.texi: Likewise.
36037         * doc/error.texi: Remove parentheses from symbol reference.
36038         * doc/gnulib-intro.texi: Likewise.
36039         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
36040         * modules/fnmatch (Description): Reword to say "the ... function".
36041         * modules/full-read (Description): Likewise.
36042         * modules/full-write (Description): Likewise.
36043         * modules/safe-read (Description): Likewise.
36044         * modules/safe-write (Description): Likewise.
36045         * modules/strchrnul (Description): Likewise.
36046         * modules/trim (Description): Likewise.
36047         * modules/error (Description): Remove parentheses from symbol
36048         references.
36049         * modules/verror (Description): Likewise.
36050         Reported by Karl Berry.
36051
36052 2007-12-25  Bruno Haible  <bruno@clisp.org>
36053
36054         Fixup after 2007-10-16 commit.
36055         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
36056
36057 2007-12-24  Bruno Haible  <bruno@clisp.org>
36058
36059         Make --enable-relocatable work with DESTDIR.
36060         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
36061         to compute installdir from destprog.
36062         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
36063         also set the RELOC_DESTDIR variable.
36064         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36065
36066 2007-12-24  Bruno Haible  <bruno@clisp.org>
36067
36068         Fix link error due to xalloc_die().
36069         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
36070         of xreadlink.
36071         * lib/relocwrapper.c: Update comments.
36072         * build-aux/install-reloc: Remove xreadlink.c from file list.
36073         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
36074         xreadlink.c.
36075         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36076
36077 2007-12-24  Bruno Haible  <bruno@clisp.org>
36078
36079         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
36080         * lib/setenv.h: Remove file.
36081         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
36082         lib/setenv.h.
36083         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
36084         (Depends-on): Add stdlib.
36085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
36086         gl_FUNC_UNSETENV.
36087         (Include): Replace setenv.h with <stdlib.h>.
36088         * modules/unsetenv: New file.
36089         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
36090         * lib/unsetenv.c: Include <stdlib.h> first.
36091         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
36092         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
36093         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
36094         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
36095         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
36096         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
36098         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36099         * doc/functions/unsetenv.texi: Update.
36100         * modules/xsetenv (Depends-on): Add unsetenv.
36101         * modules/getdate (Depends-on): Likewise.
36102         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
36103         * lib/xsetenv.c: Don't include setenv.h.
36104         * lib/getdate.y: Likewise.
36105         * lib/relocwrapper.c: Likewise.
36106         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
36107         (Depends-on): Add stdlib.
36108         * NEWS: Mention the changes.
36109         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36110
36111 2007-12-23  Bruno Haible  <bruno@clisp.org>
36112
36113         * lib/memmem.c (memmem): Use lowercase variable names. Tab
36114         indentation.
36115
36116 2007-12-23  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/c-strcasestr.c: Add more comments.
36119         * lib/c-strstr.c: Likewise.
36120         * lib/mbscasestr.c: Likewise.
36121         * lib/mbsstr.c: Likewise.
36122         * lib/strcasestr.c: Likewise.
36123         * lib/memmem.c: Likewise.
36124
36125 2007-12-23  Bruno Haible  <bruno@clisp.org>
36126
36127         * tests/test-memmem.c: Include <string.h> first.
36128
36129 2007-12-22  Bruno Haible  <bruno@clisp.org>
36130
36131         * gnulib-tool (func_create_testdir): Change $auxdir while generating
36132         the contents of $testsbase.
36133         Reported by Ralf Wildenhues.
36134
36135 2007-12-22  Bruno Haible  <bruno@clisp.org>
36136
36137         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
36138         two variables local_ldadd_before, local_ldadd_last.
36139
36140 2007-12-20  Eric Blake  <ebb9@byu.net>
36141
36142         Work around circular library issue when cross-compiling.
36143         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
36144         that progname.o does not need to pull in rpl_memcmp.
36145
36146 2007-12-19  Eric Blake  <ebb9@byu.net>
36147
36148         Fix memmem to avoid O(n^2) worst-case complexity.
36149         * lib/memmem.c (knuth_morris_pratt): New function.
36150         (memmem): Use it if first few naive iterations fail.
36151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
36152         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
36153         * modules/memchr (License): Likewise.
36154         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
36155         malloca.
36156         * tests/test-memmem.c: Rewrite, borrowing ideas from
36157         test-mbsstr1.c; the old version wouldn't even compile!
36158         * modules/memmem-tests: New file.
36159         * lib/string.in.h (rpl_memmem): Add declaration.
36160         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
36161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
36162         REPLACE_MEMMEM.
36163
36164 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36165
36166         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
36167         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
36168         before any system include files, and undef after them all.  This
36169         should fix a problem on VMS reported by John E. Malmberg in
36170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
36171
36172 2007-12-17  Eric Blake  <ebb9@byu.net>
36173
36174         Revert addition of verify, for BSD/OS.
36175         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
36176         can't handle large files, for the sake of obsolete platforms.
36177         * modules/fseeko (Depends-on): Remove verify.
36178         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
36179         * doc/functions/ftello.texi (ftello): Likewise.
36180         * doc/functions/fgetpos.texi (fgetpos): Likewise.
36181         Reported by Larry Jones.
36182
36183 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
36184
36185         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
36186         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
36187
36188 2007-12-17  Jim Meyering  <meyering@redhat.com>
36189
36190         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
36191         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
36192         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
36193         * modules/getcwd (Depends-on): Add openat.
36194         Reported by Petr Salinger.
36195
36196 2007-12-17  Bruno Haible  <bruno@clisp.org>
36197
36198         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
36199         avoid a segmentation fault of the configure test on x86_64 systems.
36200
36201 2007-12-15  Jim Meyering  <meyering@redhat.com>
36202
36203         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
36204
36205 2007-12-13  Eric Blake  <ebb9@byu.net>
36206
36207         Another fseek test.
36208         * tests/test-fseek.c (main): Also test ungetc handling.
36209         * tests/test-fseeko.c (main): Likewise.
36210         * modules/fseeko (Depends-on): Add verify.
36211         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
36212         large.
36213         Reported by Larry Jones.
36214
36215         Fix fseeko on mingw.
36216         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
36217         seek.
36218
36219         Beef up fseek tests.
36220         * tests/test-fseek.c (main): Also test eof handling.
36221         * tests/test-fseeko.c (main): Likewise.
36222         Reported by Larry Jones.
36223
36224 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
36225
36226         Fix fseeko on BSD-based platforms.
36227         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
36228         successful seek.
36229
36230 2007-12-12  Eric Blake  <ebb9@byu.net>
36231
36232         Allow circular dependency of separate libtests.a
36233         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
36234         when use_libtests.
36235
36236 2007-12-11  Eric Blake  <ebb9@byu.net>
36237
36238         Fix bug with -0.0L in previous patch.
36239         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
36240         * tests/test-isnan.c (main): Also test on zeroes.
36241         * tests/test-isnanf.c (main): Likewise.
36242         * tests/test-isnanl.h (main): Likewise.
36243
36244         Detect pseudo-denormals on x86 even when cross-compiling.
36245         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
36246         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
36247         invalid bit patterns that happen to satisfy ==.
36248
36249         Avoid link failures with separate libtests.a.
36250         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
36251         last, to satisfy circular dependencies.
36252
36253 2007-12-11  Eric Blake  <ebb9@byu.net>
36254         and Bruno Haible  <bruno@clisp.org>
36255
36256         Fix OpenBSD 4.0 <float.h> handling of long double.
36257         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
36258         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
36259         * doc/headers/float.texi (float.h): Document OpenBSD bug.
36260
36261 2007-12-11  Jim Meyering  <meyering@redhat.com>
36262
36263         * users.txt: Add libvirt.
36264
36265         Support versions of autoconf prior to 2.59c.
36266         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
36267         if it is not already defined.
36268
36269 2007-12-09  Bruno Haible  <bruno@clisp.org>
36270
36271         Let 'gnulib-tool --import' collect sources needed for the tests in
36272         tests/ rather than in lib/.
36273         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
36274         argument. If true, add rules to generate libtests.a, and put libtests.a
36275         into $(LDADD). Consider source files in subdirectories and set
36276         uses_subdirs.
36277         (func_emit_initmacro_start, func_emit_initmacro_end,
36278         func_emit_initmacro_done): Pass all arguments explicitly.
36279         (func_import): Determine two module lists main_modules,
36280         testsrelated_modules. Determine use_libtests. Determine two variables
36281         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
36282         instead of just sed_transform_lib_file. Determine two variables
36283         main_files and testsrelated_files. Compute 'files' as the union of
36284         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
36285         func_add_or_update. In the generated gnulib-comp.m4, collect the
36286         object files for tests/ in different variables than those for lib/.
36287         Substitute LIBTESTS_LIBDEPS.
36288         (func_create_testdir): Combine the uses_subdirs results from
36289         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
36290
36291 2007-12-09  Bruno Haible  <bruno@clisp.org>
36292
36293         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
36294         the build-aux directory.
36295
36296 2007-12-09  Bruno Haible  <bruno@clisp.org>
36297
36298         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
36299         introduced on 2006-09-09.
36300
36301 2007-12-07  Jim Meyering  <meyering@redhat.com>
36302
36303         Let these macros work also with autoconf-2.59.
36304         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
36305         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
36306         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36307
36308 2007-12-06  Jim Meyering  <meyering@redhat.com>
36309
36310         Avoid a configure-time syntax error in gl_FUNC_ACL.
36311         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
36312         function in each branch, before testing the cache variable.
36313
36314 2007-12-04  Eric Blake  <ebb9@byu.net>
36315
36316         Make scripts executable.
36317         * build-aux/config.guess: Add execute permissions.
36318         * build-aux/config.sub: Likewise.
36319         * build-aux/gendocs.sh: Likewise.
36320
36321         Fix frexp on mingw.
36322         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
36323         cross-compiling.
36324         * doc/functions/frexp.texi (frexp): Document the bug.
36325
36326         Make cygwin fseeko check more reliable.
36327         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
36328         version numbers, rather than unrelated feature check.
36329         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
36330         * doc/functions/ftello.texi (ftello): Likewise.
36331         Reported by Bruno Haible.
36332
36333         * m4/strerror.m4: Bump version number.
36334
36335 2007-12-03  Bruno Haible  <bruno@clisp.org>
36336
36337         * doc/functions/mprotect.texi: Mention the mingw problem.
36338
36339 2007-12-03  Eric Blake  <ebb9@byu.net>
36340
36341         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
36342         REPLACE_STRERROR is initialized before this macro.
36343
36344 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36345
36346         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
36347         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
36348         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
36349         put -lsec in even for programs other than 'ls'.  This fixes a problem
36350         for gettext reported by Bruno Haible in
36351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
36352         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
36353         Add support for Solaris 10.  This isn't efficient, but should get the
36354         job done for now.
36355
36356 2007-12-03  James Youngman  <jay@gnu.org>
36357
36358         * doc/regexprops-generic.texi: change "an close-group" to "a
36359         close-group" and "illegal" to "not allowed".
36360
36361 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36362
36363         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
36364         pr_byname.h. Needed for the rare case when the maintainer has done
36365         "make maintainer-clean" in the source directory and then attempts a
36366         build outside the source directory.
36367         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
36368         scripts_byname.h.
36369
36370 2007-12-02  Martin Lambers <marlam@marlam.de>
36371             Bruno Haible  <bruno@clisp.org>
36372
36373         * lib/getpagesize.h: Remove file.
36374         * lib/unistd.in.h: Include declaration of getpagesize here.
36375         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
36376         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
36377         HAVE_SYS_PARAM_H.
36378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
36379         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36380         * modules/getpagesize (Files): Remove lib/getpagesize.h.
36381         (Depends-on): Add unistd.
36382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36383         (Include): Use <unistd.h> instead of getpagesize.h.
36384         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
36385         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36386         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
36387         gl_GETPAGESIZE invocation, already handled by module dependency.
36388         * lib/pagealign_alloc.c: Don't include getpagesize.h.
36389
36390 2007-12-02  Bruno Haible  <bruno@clisp.org>
36391
36392         * modules/strings-tests: New file.
36393         * tests/test-strings.c: New file.
36394
36395         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36396         * lib/strings.in.h: New file.
36397         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36398         * m4/strings_h.m4: New file.
36399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36400         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36401         * modules/strings: New file.
36402         * modules/string (Makefile.am): Update.
36403         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36404         Reported by Karl Berry.
36405
36406 2007-12-01  Eric Blake  <ebb9@byu.net>
36407
36408         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36409         accomodate fix in cygwin 1.5.25.
36410
36411 2007-12-01  Jim Meyering  <meyering@redhat.com>
36412
36413         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36414         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36415         that would inhibit utf8-optimization of a regexp containing line-
36416         or buffer-anchors, e.g., `^', `$'.
36417
36418 2007-11-30  Bruno Haible  <bruno@clisp.org>
36419
36420         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36421         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36422         glthread_recursive_lock_init.
36423         * lib/lock.c (glthread_recursive_lock_init)
36424         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36425         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36426
36427 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36428
36429         New function qset_acl, like set_acl but with syscall semantics.
36430         * lib/acl.h (qset_acl): New decl.
36431         * lib/acl.c (qset_acl): New function.
36432         (set_acl): Use new function.  Use more-consistent diagnostics.
36433
36434 2007-11-28  Jim Meyering  <meyering@redhat.com>
36435
36436         * modules/physmem (License): Change from GPL to LGPLv2+.
36437
36438 2007-11-26  Bruno Haible  <bruno@clisp.org>
36439
36440         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36441         'long double' type has excess precision.
36442         Reported by Jim Meyering in
36443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36444
36445 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36446
36447         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36448         Sync from <http://gnu.org/licenses>.
36449         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36450         with license text from same location.
36451         * doc/maintain.texi, doc/standards.texi:  Sync from
36452         <http://savannah.gnu.org/projects/gnustandards>.
36453
36454 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36455         and Jim Meyering  <meyering@redhat.com>
36456
36457         Adjust getdate' grammar to accept a slightly more regular language.
36458         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36459         Before, the former was rejected.
36460         * lib/getdate.y (digits_to_date_time): New function, factored
36461         out of ...
36462         (number): ...here.  Just call digits_to_date_time.
36463         (hybrid): New non-terminal to handle an <unsigned number,
36464         signed relative offset> sequence consistently.
36465
36466 2007-11-18  Jim Meyering  <meyering@redhat.com>
36467
36468         Pull my changes from coreutils:
36469         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36470         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36471         use of $gnulib_tool_option_extras, so that it's separated from the
36472         preceding argument.
36473
36474         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36475         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36476         parent destination directories before copying a file into place.
36477
36478 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36479
36480         bootstrap: work also with 4-argument variant of AC_INIT
36481         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36482
36483 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36484
36485         Port test-getaddrinfo to Solaris.
36486         Problem reported by Bruno Haible in
36487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36488         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36489         explanation of setting 'hints'.
36490         Don't reject an implementation merely because it returns EAI_SERVICE.
36491         (EAI_SERVICE): Define to 0 if not defined.
36492
36493 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36494
36495         The license of gnu-make and posix-shell is now "GPLed build tool".
36496         * modules/gnu-make (License): Likewise.
36497         * modules/posix-shell (License): Likewise.
36498
36499         New module posix-shell, for determining a POSIX shell
36500         or perhaps something that is close enough to a POSIX shell.
36501         * m4/posix-shell.m4: New file.
36502         * modules/posix-shell: New file.
36503
36504         * MODULES.html.sh: Mention new module.
36505
36506         New module gnu-make, for determining whether we're using GNU Make.
36507         * m4/gnu-make.m4: New file.
36508         * modules/gnu-make: New file.
36509         * MODULES.html.sh: Mention new module.
36510
36511 2007-11-14  Jim Meyering  <meyering@redhat.com>
36512
36513         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36514         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36515         use this macro to create a function _definition_.
36516         Remove useless "#undef ARGMATCH_DIE".
36517
36518 2007-11-14  Bruno Haible  <bruno@clisp.org>
36519
36520         * lib/config.charset: Update for OpenBSD 4.1.
36521         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36522
36523 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36524
36525         Document 64-bit #if problems in stdint.texi.
36526         * doc/headers/stdint.texi (stdint.h): Mention problems with
36527         64-bit-#if, and how to work around them.
36528
36529         Don't insist on 'long long int' support in the preprocessor.  It
36530         breaks too many things.  For example, PRIdMAX still uses a 'long
36531         long int' format with the latest Sun compiler, even though
36532         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36533         preprocessor problem.  This causes the latest coreutils to dump
36534         core on Solaris 10 sparc with the Sun C compiler.
36535         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36536         the troublesome expressions at configure-time, not at #if-time.
36537         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36538         preprocessor.
36539         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36540         compile-time C checks, done at 'configure'-time.
36541         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36542         * modules/inttypes (Makefile): Substitute the new symbols that
36543         gl_INTTYPES_H now generates.
36544         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36545
36546 2007-11-12  Bruno Haible  <bruno@clisp.org>
36547
36548         Tests for Unicode character classification functions.
36549
36550         * modules/unictype/bidicategory-byname-tests: New file.
36551         * modules/unictype/bidicategory-name-tests: New file.
36552         * modules/unictype/bidicategory-of-tests: New file.
36553         * modules/unictype/bidicategory-test-tests: New file.
36554         * modules/unictype/block-list-tests: New file.
36555         * modules/unictype/block-of-tests: New file.
36556         * modules/unictype/block-test-tests: New file.
36557         * modules/unictype/category-C-tests: New file.
36558         * modules/unictype/category-Cc-tests: New file.
36559         * modules/unictype/category-Cf-tests: New file.
36560         * modules/unictype/category-Cn-tests: New file.
36561         * modules/unictype/category-Co-tests: New file.
36562         * modules/unictype/category-Cs-tests: New file.
36563         * modules/unictype/category-L-tests: New file.
36564         * modules/unictype/category-Ll-tests: New file.
36565         * modules/unictype/category-Lm-tests: New file.
36566         * modules/unictype/category-Lo-tests: New file.
36567         * modules/unictype/category-Lt-tests: New file.
36568         * modules/unictype/category-Lu-tests: New file.
36569         * modules/unictype/category-M-tests: New file.
36570         * modules/unictype/category-Mc-tests: New file.
36571         * modules/unictype/category-Me-tests: New file.
36572         * modules/unictype/category-Mn-tests: New file.
36573         * modules/unictype/category-N-tests: New file.
36574         * modules/unictype/category-Nd-tests: New file.
36575         * modules/unictype/category-Nl-tests: New file.
36576         * modules/unictype/category-No-tests: New file.
36577         * modules/unictype/category-P-tests: New file.
36578         * modules/unictype/category-Pc-tests: New file.
36579         * modules/unictype/category-Pd-tests: New file.
36580         * modules/unictype/category-Pe-tests: New file.
36581         * modules/unictype/category-Pf-tests: New file.
36582         * modules/unictype/category-Pi-tests: New file.
36583         * modules/unictype/category-Po-tests: New file.
36584         * modules/unictype/category-Ps-tests: New file.
36585         * modules/unictype/category-S-tests: New file.
36586         * modules/unictype/category-Sc-tests: New file.
36587         * modules/unictype/category-Sk-tests: New file.
36588         * modules/unictype/category-Sm-tests: New file.
36589         * modules/unictype/category-So-tests: New file.
36590         * modules/unictype/category-Z-tests: New file.
36591         * modules/unictype/category-Zl-tests: New file.
36592         * modules/unictype/category-Zp-tests: New file.
36593         * modules/unictype/category-Zs-tests: New file.
36594         * modules/unictype/category-and-not-tests: New file.
36595         * modules/unictype/category-and-tests: New file.
36596         * modules/unictype/category-byname-tests: New file.
36597         * modules/unictype/category-name-tests: New file.
36598         * modules/unictype/category-none-tests: New file.
36599         * modules/unictype/category-of-tests: New file.
36600         * modules/unictype/category-or-tests: New file.
36601         * modules/unictype/category-test-withtable-tests: New file.
36602         * modules/unictype/combining-class-tests: New file.
36603         * modules/unictype/ctype-alnum-tests: New file.
36604         * modules/unictype/ctype-alpha-tests: New file.
36605         * modules/unictype/ctype-blank-tests: New file.
36606         * modules/unictype/ctype-cntrl-tests: New file.
36607         * modules/unictype/ctype-digit-tests: New file.
36608         * modules/unictype/ctype-graph-tests: New file.
36609         * modules/unictype/ctype-lower-tests: New file.
36610         * modules/unictype/ctype-print-tests: New file.
36611         * modules/unictype/ctype-punct-tests: New file.
36612         * modules/unictype/ctype-space-tests: New file.
36613         * modules/unictype/ctype-upper-tests: New file.
36614         * modules/unictype/ctype-xdigit-tests: New file.
36615         * modules/unictype/decimal-digit-tests: New file.
36616         * modules/unictype/digit-tests: New file.
36617         * modules/unictype/mirror-tests: New file.
36618         * modules/unictype/numeric-tests: New file.
36619         * modules/unictype/property-alphabetic-tests: New file.
36620         * modules/unictype/property-ascii-hex-digit-tests: New file.
36621         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36622         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36623         * modules/unictype/property-bidi-block-separator-tests: New file.
36624         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36625         * modules/unictype/property-bidi-common-separator-tests: New file.
36626         * modules/unictype/property-bidi-control-tests: New file.
36627         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36628         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36629         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36630         * modules/unictype/property-bidi-european-digit-tests: New file.
36631         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36632         * modules/unictype/property-bidi-left-to-right-tests: New file.
36633         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36634         * modules/unictype/property-bidi-other-neutral-tests: New file.
36635         * modules/unictype/property-bidi-pdf-tests: New file.
36636         * modules/unictype/property-bidi-segment-separator-tests: New file.
36637         * modules/unictype/property-bidi-whitespace-tests: New file.
36638         * modules/unictype/property-byname-tests: New file.
36639         * modules/unictype/property-combining-tests: New file.
36640         * modules/unictype/property-composite-tests: New file.
36641         * modules/unictype/property-currency-symbol-tests: New file.
36642         * modules/unictype/property-dash-tests: New file.
36643         * modules/unictype/property-decimal-digit-tests: New file.
36644         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36645         * modules/unictype/property-deprecated-tests: New file.
36646         * modules/unictype/property-diacritic-tests: New file.
36647         * modules/unictype/property-extender-tests: New file.
36648         * modules/unictype/property-format-control-tests: New file.
36649         * modules/unictype/property-grapheme-base-tests: New file.
36650         * modules/unictype/property-grapheme-extend-tests: New file.
36651         * modules/unictype/property-grapheme-link-tests: New file.
36652         * modules/unictype/property-hex-digit-tests: New file.
36653         * modules/unictype/property-hyphen-tests: New file.
36654         * modules/unictype/property-id-continue-tests: New file.
36655         * modules/unictype/property-id-start-tests: New file.
36656         * modules/unictype/property-ideographic-tests: New file.
36657         * modules/unictype/property-ids-binary-operator-tests: New file.
36658         * modules/unictype/property-ids-trinary-operator-tests: New file.
36659         * modules/unictype/property-ignorable-control-tests: New file.
36660         * modules/unictype/property-iso-control-tests: New file.
36661         * modules/unictype/property-join-control-tests: New file.
36662         * modules/unictype/property-left-of-pair-tests: New file.
36663         * modules/unictype/property-line-separator-tests: New file.
36664         * modules/unictype/property-logical-order-exception-tests: New file.
36665         * modules/unictype/property-lowercase-tests: New file.
36666         * modules/unictype/property-math-tests: New file.
36667         * modules/unictype/property-non-break-tests: New file.
36668         * modules/unictype/property-not-a-character-tests: New file.
36669         * modules/unictype/property-numeric-tests: New file.
36670         * modules/unictype/property-other-alphabetic-tests: New file.
36671         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36672         * modules/unictype/property-other-grapheme-extend-tests: New file.
36673         * modules/unictype/property-other-id-continue-tests: New file.
36674         * modules/unictype/property-other-id-start-tests: New file.
36675         * modules/unictype/property-other-lowercase-tests: New file.
36676         * modules/unictype/property-other-math-tests: New file.
36677         * modules/unictype/property-other-uppercase-tests: New file.
36678         * modules/unictype/property-paired-punctuation-tests: New file.
36679         * modules/unictype/property-paragraph-separator-tests: New file.
36680         * modules/unictype/property-pattern-syntax-tests: New file.
36681         * modules/unictype/property-pattern-white-space-tests: New file.
36682         * modules/unictype/property-private-use-tests: New file.
36683         * modules/unictype/property-punctuation-tests: New file.
36684         * modules/unictype/property-quotation-mark-tests: New file.
36685         * modules/unictype/property-radical-tests: New file.
36686         * modules/unictype/property-sentence-terminal-tests: New file.
36687         * modules/unictype/property-soft-dotted-tests: New file.
36688         * modules/unictype/property-space-tests: New file.
36689         * modules/unictype/property-terminal-punctuation-tests: New file.
36690         * modules/unictype/property-test-tests: New file.
36691         * modules/unictype/property-titlecase-tests: New file.
36692         * modules/unictype/property-unassigned-code-value-tests: New file.
36693         * modules/unictype/property-unified-ideograph-tests: New file.
36694         * modules/unictype/property-uppercase-tests: New file.
36695         * modules/unictype/property-variation-selector-tests: New file.
36696         * modules/unictype/property-white-space-tests: New file.
36697         * modules/unictype/property-xid-continue-tests: New file.
36698         * modules/unictype/property-xid-start-tests: New file.
36699         * modules/unictype/property-zero-width-tests: New file.
36700         * modules/unictype/scripts-tests: New file.
36701         * modules/unictype/syntax-c-ident-tests: New file.
36702         * modules/unictype/syntax-c-whitespace-tests: New file.
36703         * modules/unictype/syntax-java-ident-tests: New file.
36704         * modules/unictype/syntax-java-whitespace-tests: New file.
36705         * tests/unictype/test-bidi_byname.c: New file.
36706         * tests/unictype/test-bidi_name.c: New file.
36707         * tests/unictype/test-bidi_of.c: New file.
36708         * tests/unictype/test-bidi_test.c: New file.
36709         * tests/unictype/test-block_list.c: New file.
36710         * tests/unictype/test-block_of.c: New file.
36711         * tests/unictype/test-block_test.c: New file.
36712         * tests/unictype/test-categ_and.c: New file.
36713         * tests/unictype/test-categ_and_not.c: New file.
36714         * tests/unictype/test-categ_byname.c: New file.
36715         * tests/unictype/test-categ_name.c: New file.
36716         * tests/unictype/test-categ_none.c: New file.
36717         * tests/unictype/test-categ_of.c: New file.
36718         * tests/unictype/test-categ_or.c: New file.
36719         * tests/unictype/test-categ_test_withtable.c: New file.
36720         * tests/unictype/test-combining.c: New file.
36721         * tests/unictype/test-decdigit.c: New file.
36722         * tests/unictype/test-digit.c: New file.
36723         * tests/unictype/test-mirror.c: New file.
36724         * tests/unictype/test-numeric.c: New file.
36725         * tests/unictype/test-pr_byname.c: New file.
36726         * tests/unictype/test-pr_test.c: New file.
36727         * tests/unictype/test-predicate-part1.h: New file.
36728         * tests/unictype/test-predicate-part2.h: New file.
36729         * tests/unictype/test-scripts.c: New file.
36730         * tests/unictype/test-sy_c_ident.c: New file.
36731         * tests/unictype/test-sy_java_ident.c: New file.
36732
36733         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
36734         for Unicode 5.0.0.
36735         * tests/unictype/test-categ_Cc.c: Likewise.
36736         * tests/unictype/test-categ_Cf.c: Likewise.
36737         * tests/unictype/test-categ_Cn.c: Likewise.
36738         * tests/unictype/test-categ_Co.c: Likewise.
36739         * tests/unictype/test-categ_Cs.c: Likewise.
36740         * tests/unictype/test-categ_L.c: Likewise.
36741         * tests/unictype/test-categ_Ll.c: Likewise.
36742         * tests/unictype/test-categ_Lm.c: Likewise.
36743         * tests/unictype/test-categ_Lo.c: Likewise.
36744         * tests/unictype/test-categ_Lt.c: Likewise.
36745         * tests/unictype/test-categ_Lu.c: Likewise.
36746         * tests/unictype/test-categ_M.c: Likewise.
36747         * tests/unictype/test-categ_Mc.c: Likewise.
36748         * tests/unictype/test-categ_Me.c: Likewise.
36749         * tests/unictype/test-categ_Mn.c: Likewise.
36750         * tests/unictype/test-categ_N.c: Likewise.
36751         * tests/unictype/test-categ_Nd.c: Likewise.
36752         * tests/unictype/test-categ_Nl.c: Likewise.
36753         * tests/unictype/test-categ_No.c: Likewise.
36754         * tests/unictype/test-categ_P.c: Likewise.
36755         * tests/unictype/test-categ_Pc.c: Likewise.
36756         * tests/unictype/test-categ_Pd.c: Likewise.
36757         * tests/unictype/test-categ_Pe.c: Likewise.
36758         * tests/unictype/test-categ_Pf.c: Likewise.
36759         * tests/unictype/test-categ_Pi.c: Likewise.
36760         * tests/unictype/test-categ_Po.c: Likewise.
36761         * tests/unictype/test-categ_Ps.c: Likewise.
36762         * tests/unictype/test-categ_S.c: Likewise.
36763         * tests/unictype/test-categ_Sc.c: Likewise.
36764         * tests/unictype/test-categ_Sk.c: Likewise.
36765         * tests/unictype/test-categ_Sm.c: Likewise.
36766         * tests/unictype/test-categ_So.c: Likewise.
36767         * tests/unictype/test-categ_Z.c: Likewise.
36768         * tests/unictype/test-categ_Zl.c: Likewise.
36769         * tests/unictype/test-categ_Zp.c: Likewise.
36770         * tests/unictype/test-categ_Zs.c: Likewise.
36771         * tests/unictype/test-ctype_alnum.c: Likewise.
36772         * tests/unictype/test-ctype_alpha.c: Likewise.
36773         * tests/unictype/test-ctype_blank.c: Likewise.
36774         * tests/unictype/test-ctype_cntrl.c: Likewise.
36775         * tests/unictype/test-ctype_digit.c: Likewise.
36776         * tests/unictype/test-ctype_graph.c: Likewise.
36777         * tests/unictype/test-ctype_lower.c: Likewise.
36778         * tests/unictype/test-ctype_print.c: Likewise.
36779         * tests/unictype/test-ctype_punct.c: Likewise.
36780         * tests/unictype/test-ctype_space.c: Likewise.
36781         * tests/unictype/test-ctype_upper.c: Likewise.
36782         * tests/unictype/test-ctype_xdigit.c: Likewise.
36783         * tests/unictype/test-decdigit.h: Likewise.
36784         * tests/unictype/test-digit.h: Likewise.
36785         * tests/unictype/test-numeric.h: Likewise.
36786         * tests/unictype/test-pr_alphabetic.c: Likewise.
36787         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
36788         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36789         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36790         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
36791         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36792         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
36793         * tests/unictype/test-pr_bidi_control.c: Likewise.
36794         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
36795         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
36796         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36797         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36798         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36799         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36800         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36801         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36802         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
36803         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
36804         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
36805         * tests/unictype/test-pr_combining.c: Likewise.
36806         * tests/unictype/test-pr_composite.c: Likewise.
36807         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36808         * tests/unictype/test-pr_dash.c: Likewise.
36809         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36810         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
36811         * tests/unictype/test-pr_deprecated.c: Likewise.
36812         * tests/unictype/test-pr_diacritic.c: Likewise.
36813         * tests/unictype/test-pr_extender.c: Likewise.
36814         * tests/unictype/test-pr_format_control.c: Likewise.
36815         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36816         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36817         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36818         * tests/unictype/test-pr_hex_digit.c: Likewise.
36819         * tests/unictype/test-pr_hyphen.c: Likewise.
36820         * tests/unictype/test-pr_id_continue.c: Likewise.
36821         * tests/unictype/test-pr_id_start.c: Likewise.
36822         * tests/unictype/test-pr_ideographic.c: Likewise.
36823         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
36824         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
36825         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36826         * tests/unictype/test-pr_iso_control.c: Likewise.
36827         * tests/unictype/test-pr_join_control.c: Likewise.
36828         * tests/unictype/test-pr_left_of_pair.c: Likewise.
36829         * tests/unictype/test-pr_line_separator.c: Likewise.
36830         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36831         * tests/unictype/test-pr_lowercase.c: Likewise.
36832         * tests/unictype/test-pr_math.c: Likewise.
36833         * tests/unictype/test-pr_non_break.c: Likewise.
36834         * tests/unictype/test-pr_not_a_character.c: Likewise.
36835         * tests/unictype/test-pr_numeric.c: Likewise.
36836         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36837         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36838         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36839         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36840         * tests/unictype/test-pr_other_id_start.c: Likewise.
36841         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36842         * tests/unictype/test-pr_other_math.c: Likewise.
36843         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36844         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36845         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36846         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36847         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36848         * tests/unictype/test-pr_private_use.c: Likewise.
36849         * tests/unictype/test-pr_punctuation.c: Likewise.
36850         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36851         * tests/unictype/test-pr_radical.c: Likewise.
36852         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36853         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36854         * tests/unictype/test-pr_space.c: Likewise.
36855         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36856         * tests/unictype/test-pr_titlecase.c: Likewise.
36857         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36858         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36859         * tests/unictype/test-pr_uppercase.c: Likewise.
36860         * tests/unictype/test-pr_variation_selector.c: Likewise.
36861         * tests/unictype/test-pr_white_space.c: Likewise.
36862         * tests/unictype/test-pr_xid_continue.c: Likewise.
36863         * tests/unictype/test-pr_xid_start.c: Likewise.
36864         * tests/unictype/test-pr_zero_width.c: Likewise.
36865         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36866         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36867
36868 2007-11-12  Bruno Haible  <bruno@clisp.org>
36869
36870         Unicode character classification functions.
36871         * lib/unictype.h: New file.
36872         * modules/unictype/base: New file.
36873         * modules/unictype/category-L: New file.
36874         * modules/unictype/category-Lu: New file.
36875         * modules/unictype/category-Ll: New file.
36876         * modules/unictype/category-Lt: New file.
36877         * modules/unictype/category-Lm: New file.
36878         * modules/unictype/category-Lo: New file.
36879         * modules/unictype/category-M: New file.
36880         * modules/unictype/category-Mn: New file.
36881         * modules/unictype/category-Mc: New file.
36882         * modules/unictype/category-Me: New file.
36883         * modules/unictype/category-N: New file.
36884         * modules/unictype/category-Nd: New file.
36885         * modules/unictype/category-Nl: New file.
36886         * modules/unictype/category-No: New file.
36887         * modules/unictype/category-P: New file.
36888         * modules/unictype/category-Pc: New file.
36889         * modules/unictype/category-Pd: New file.
36890         * modules/unictype/category-Ps: New file.
36891         * modules/unictype/category-Pe: New file.
36892         * modules/unictype/category-Pi: New file.
36893         * modules/unictype/category-Pf: New file.
36894         * modules/unictype/category-Po: New file.
36895         * modules/unictype/category-S: New file.
36896         * modules/unictype/category-Sm: New file.
36897         * modules/unictype/category-Sc: New file.
36898         * modules/unictype/category-Sk: New file.
36899         * modules/unictype/category-So: New file.
36900         * modules/unictype/category-Z: New file.
36901         * modules/unictype/category-Zs: New file.
36902         * modules/unictype/category-Zl: New file.
36903         * modules/unictype/category-Zp: New file.
36904         * modules/unictype/category-C: New file.
36905         * modules/unictype/category-Cc: New file.
36906         * modules/unictype/category-Cf: New file.
36907         * modules/unictype/category-Cs: New file.
36908         * modules/unictype/category-Co: New file.
36909         * modules/unictype/category-Cn: New file.
36910         * modules/unictype/category-or: New file.
36911         * modules/unictype/category-of: New file.
36912         * modules/unictype/category-test: New file.
36913         * modules/unictype/category-test-withtable: New file.
36914         * modules/unictype/category-byname: New file.
36915         * modules/unictype/category-none: New file.
36916         * modules/unictype/category-and: New file.
36917         * modules/unictype/category-and-not: New file.
36918         * modules/unictype/category-name: New file.
36919         * modules/unictype/combining-class: New file.
36920         * modules/unictype/category-all: New file.
36921         * modules/unictype/bidicategory-all: New file.
36922         * modules/unictype/bidicategory-byname: New file.
36923         * modules/unictype/bidicategory-name: New file.
36924         * modules/unictype/bidicategory-of: New file.
36925         * modules/unictype/bidicategory-test: New file.
36926         * modules/unictype/decimal-digit: New file.
36927         * modules/unictype/digit: New file.
36928         * modules/unictype/numeric: New file.
36929         * modules/unictype/mirror: New file.
36930         * modules/unictype/property-white-space: New file.
36931         * modules/unictype/property-alphabetic: New file.
36932         * modules/unictype/property-other-alphabetic: New file.
36933         * modules/unictype/property-not-a-character: New file.
36934         * modules/unictype/property-default-ignorable-code-point: New file.
36935         * modules/unictype/property-other-default-ignorable-code-point: New
36936         file.
36937         * modules/unictype/property-deprecated: New file.
36938         * modules/unictype/property-logical-order-exception: New file.
36939         * modules/unictype/property-variation-selector: New file.
36940         * modules/unictype/property-private-use: New file.
36941         * modules/unictype/property-unassigned-code-value: New file.
36942         * modules/unictype/property-uppercase: New file.
36943         * modules/unictype/property-other-uppercase: New file.
36944         * modules/unictype/property-lowercase: New file.
36945         * modules/unictype/property-other-lowercase: New file.
36946         * modules/unictype/property-titlecase: New file.
36947         * modules/unictype/property-soft-dotted: New file.
36948         * modules/unictype/property-id-start: New file.
36949         * modules/unictype/property-other-id-start: New file.
36950         * modules/unictype/property-id-continue: New file.
36951         * modules/unictype/property-other-id-continue: New file.
36952         * modules/unictype/property-xid-start: New file.
36953         * modules/unictype/property-xid-continue: New file.
36954         * modules/unictype/property-pattern-white-space: New file.
36955         * modules/unictype/property-pattern-syntax: New file.
36956         * modules/unictype/property-join-control: New file.
36957         * modules/unictype/property-grapheme-base: New file.
36958         * modules/unictype/property-grapheme-extend: New file.
36959         * modules/unictype/property-other-grapheme-extend: New file.
36960         * modules/unictype/property-grapheme-link: New file.
36961         * modules/unictype/property-bidi-control: New file.
36962         * modules/unictype/property-bidi-left-to-right: New file.
36963         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36964         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36965         * modules/unictype/property-bidi-european-digit: New file.
36966         * modules/unictype/property-bidi-eur-num-separator: New file.
36967         * modules/unictype/property-bidi-eur-num-terminator: New file.
36968         * modules/unictype/property-bidi-arabic-digit: New file.
36969         * modules/unictype/property-bidi-common-separator: New file.
36970         * modules/unictype/property-bidi-block-separator: New file.
36971         * modules/unictype/property-bidi-segment-separator: New file.
36972         * modules/unictype/property-bidi-whitespace: New file.
36973         * modules/unictype/property-bidi-non-spacing-mark: New file.
36974         * modules/unictype/property-bidi-boundary-neutral: New file.
36975         * modules/unictype/property-bidi-pdf: New file.
36976         * modules/unictype/property-bidi-embedding-or-override: New file.
36977         * modules/unictype/property-bidi-other-neutral: New file.
36978         * modules/unictype/property-hex-digit: New file.
36979         * modules/unictype/property-ascii-hex-digit: New file.
36980         * modules/unictype/property-ideographic: New file.
36981         * modules/unictype/property-unified-ideograph: New file.
36982         * modules/unictype/property-radical: New file.
36983         * modules/unictype/property-ids-binary-operator: New file.
36984         * modules/unictype/property-ids-trinary-operator: New file.
36985         * modules/unictype/property-zero-width: New file.
36986         * modules/unictype/property-space: New file.
36987         * modules/unictype/property-non-break: New file.
36988         * modules/unictype/property-iso-control: New file.
36989         * modules/unictype/property-format-control: New file.
36990         * modules/unictype/property-dash: New file.
36991         * modules/unictype/property-hyphen: New file.
36992         * modules/unictype/property-punctuation: New file.
36993         * modules/unictype/property-line-separator: New file.
36994         * modules/unictype/property-paragraph-separator: New file.
36995         * modules/unictype/property-quotation-mark: New file.
36996         * modules/unictype/property-sentence-terminal: New file.
36997         * modules/unictype/property-terminal-punctuation: New file.
36998         * modules/unictype/property-currency-symbol: New file.
36999         * modules/unictype/property-math: New file.
37000         * modules/unictype/property-other-math: New file.
37001         * modules/unictype/property-paired-punctuation: New file.
37002         * modules/unictype/property-left-of-pair: New file.
37003         * modules/unictype/property-combining: New file.
37004         * modules/unictype/property-composite: New file.
37005         * modules/unictype/property-decimal-digit: New file.
37006         * modules/unictype/property-numeric: New file.
37007         * modules/unictype/property-diacritic: New file.
37008         * modules/unictype/property-extender: New file.
37009         * modules/unictype/property-ignorable-control: New file.
37010         * modules/unictype/property-test: New file.
37011         * modules/unictype/property-byname: New file.
37012         * modules/unictype/property-all: New file.
37013         * modules/unictype/scripts: New file.
37014         * modules/unictype/scripts-all: New file.
37015         * modules/unictype/block-of: New file.
37016         * modules/unictype/block-test: New file.
37017         * modules/unictype/block-list: New file.
37018         * modules/unictype/block-all: New file.
37019         * modules/unictype/syntax-c-whitespace: New file.
37020         * modules/unictype/syntax-java-whitespace: New file.
37021         * modules/unictype/syntax-c-ident: New file.
37022         * modules/unictype/syntax-java-ident: New file.
37023         * modules/unictype/ctype-alnum: New file.
37024         * modules/unictype/ctype-alpha: New file.
37025         * modules/unictype/ctype-cntrl: New file.
37026         * modules/unictype/ctype-digit: New file.
37027         * modules/unictype/ctype-graph: New file.
37028         * modules/unictype/ctype-lower: New file.
37029         * modules/unictype/ctype-print: New file.
37030         * modules/unictype/ctype-punct: New file.
37031         * modules/unictype/ctype-space: New file.
37032         * modules/unictype/ctype-upper: New file.
37033         * modules/unictype/ctype-xdigit: New file.
37034         * modules/unictype/ctype-blank: New file.
37035         * lib/unictype/bidi_byname.c: New file.
37036         * lib/unictype/bidi_name.c: New file.
37037         * lib/unictype/bidi_of.c: New file.
37038         * lib/unictype/bidi_test.c: New file.
37039         * lib/unictype/bitmap.h: New file.
37040         * lib/unictype/block_test.c: New file.
37041         * lib/unictype/blocks.c: New file.
37042         * lib/unictype/categ_C.c: New file.
37043         * lib/unictype/categ_Cc.c: New file.
37044         * lib/unictype/categ_Cf.c: New file.
37045         * lib/unictype/categ_Cn.c: New file.
37046         * lib/unictype/categ_Co.c: New file.
37047         * lib/unictype/categ_Cs.c: New file.
37048         * lib/unictype/categ_L.c: New file.
37049         * lib/unictype/categ_Ll.c: New file.
37050         * lib/unictype/categ_Lm.c: New file.
37051         * lib/unictype/categ_Lo.c: New file.
37052         * lib/unictype/categ_Lt.c: New file.
37053         * lib/unictype/categ_Lu.c: New file.
37054         * lib/unictype/categ_M.c: New file.
37055         * lib/unictype/categ_Mc.c: New file.
37056         * lib/unictype/categ_Me.c: New file.
37057         * lib/unictype/categ_Mn.c: New file.
37058         * lib/unictype/categ_N.c: New file.
37059         * lib/unictype/categ_Nd.c: New file.
37060         * lib/unictype/categ_Nl.c: New file.
37061         * lib/unictype/categ_No.c: New file.
37062         * lib/unictype/categ_P.c: New file.
37063         * lib/unictype/categ_Pc.c: New file.
37064         * lib/unictype/categ_Pd.c: New file.
37065         * lib/unictype/categ_Pe.c: New file.
37066         * lib/unictype/categ_Pf.c: New file.
37067         * lib/unictype/categ_Pi.c: New file.
37068         * lib/unictype/categ_Po.c: New file.
37069         * lib/unictype/categ_Ps.c: New file.
37070         * lib/unictype/categ_S.c: New file.
37071         * lib/unictype/categ_Sc.c: New file.
37072         * lib/unictype/categ_Sk.c: New file.
37073         * lib/unictype/categ_Sm.c: New file.
37074         * lib/unictype/categ_So.c: New file.
37075         * lib/unictype/categ_Z.c: New file.
37076         * lib/unictype/categ_Zl.c: New file.
37077         * lib/unictype/categ_Zp.c: New file.
37078         * lib/unictype/categ_Zs.c: New file.
37079         * lib/unictype/categ_and.c: New file.
37080         * lib/unictype/categ_and_not.c: New file.
37081         * lib/unictype/categ_byname.c: New file.
37082         * lib/unictype/categ_name.c: New file.
37083         * lib/unictype/categ_none.c: New file.
37084         * lib/unictype/categ_of.c: New file.
37085         * lib/unictype/categ_or.c: New file.
37086         * lib/unictype/categ_test.c: New file.
37087         * lib/unictype/combining.c: New file.
37088         * lib/unictype/ctype_alnum.c: New file.
37089         * lib/unictype/ctype_alpha.c: New file.
37090         * lib/unictype/ctype_blank.c: New file.
37091         * lib/unictype/ctype_cntrl.c: New file.
37092         * lib/unictype/ctype_digit.c: New file.
37093         * lib/unictype/ctype_graph.c: New file.
37094         * lib/unictype/ctype_lower.c: New file.
37095         * lib/unictype/ctype_print.c: New file.
37096         * lib/unictype/ctype_punct.c: New file.
37097         * lib/unictype/ctype_space.c: New file.
37098         * lib/unictype/ctype_upper.c: New file.
37099         * lib/unictype/ctype_xdigit.c: New file.
37100         * lib/unictype/decdigit.c: New file.
37101         * lib/unictype/digit.c: New file.
37102         * lib/unictype/identsyntaxmap.h: New file.
37103         * lib/unictype/mirror.c: New file.
37104         * lib/unictype/numeric.c: New file.
37105         * lib/unictype/pr_alphabetic.c: New file.
37106         * lib/unictype/pr_ascii_hex_digit.c: New file.
37107         * lib/unictype/pr_bidi_arabic_digit.c: New file.
37108         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
37109         * lib/unictype/pr_bidi_block_separator.c: New file.
37110         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
37111         * lib/unictype/pr_bidi_common_separator.c: New file.
37112         * lib/unictype/pr_bidi_control.c: New file.
37113         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
37114         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
37115         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
37116         * lib/unictype/pr_bidi_european_digit.c: New file.
37117         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
37118         * lib/unictype/pr_bidi_left_to_right.c: New file.
37119         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
37120         * lib/unictype/pr_bidi_other_neutral.c: New file.
37121         * lib/unictype/pr_bidi_pdf.c: New file.
37122         * lib/unictype/pr_bidi_segment_separator.c: New file.
37123         * lib/unictype/pr_bidi_whitespace.c: New file.
37124         * lib/unictype/pr_byname.c: New file.
37125         * lib/unictype/pr_byname.gperf: New file.
37126         * lib/unictype/pr_combining.c: New file.
37127         * lib/unictype/pr_composite.c: New file.
37128         * lib/unictype/pr_currency_symbol.c: New file.
37129         * lib/unictype/pr_dash.c: New file.
37130         * lib/unictype/pr_decimal_digit.c: New file.
37131         * lib/unictype/pr_default_ignorable_code_point.c: New file.
37132         * lib/unictype/pr_deprecated.c: New file.
37133         * lib/unictype/pr_diacritic.c: New file.
37134         * lib/unictype/pr_extender.c: New file.
37135         * lib/unictype/pr_format_control.c: New file.
37136         * lib/unictype/pr_grapheme_base.c: New file.
37137         * lib/unictype/pr_grapheme_extend.c: New file.
37138         * lib/unictype/pr_grapheme_link.c: New file.
37139         * lib/unictype/pr_hex_digit.c: New file.
37140         * lib/unictype/pr_hyphen.c: New file.
37141         * lib/unictype/pr_id_continue.c: New file.
37142         * lib/unictype/pr_id_start.c: New file.
37143         * lib/unictype/pr_ideographic.c: New file.
37144         * lib/unictype/pr_ids_binary_operator.c: New file.
37145         * lib/unictype/pr_ids_trinary_operator.c: New file.
37146         * lib/unictype/pr_ignorable_control.c: New file.
37147         * lib/unictype/pr_iso_control.c: New file.
37148         * lib/unictype/pr_join_control.c: New file.
37149         * lib/unictype/pr_left_of_pair.c: New file.
37150         * lib/unictype/pr_line_separator.c: New file.
37151         * lib/unictype/pr_logical_order_exception.c: New file.
37152         * lib/unictype/pr_lowercase.c: New file.
37153         * lib/unictype/pr_math.c: New file.
37154         * lib/unictype/pr_non_break.c: New file.
37155         * lib/unictype/pr_not_a_character.c: New file.
37156         * lib/unictype/pr_numeric.c: New file.
37157         * lib/unictype/pr_other_alphabetic.c: New file.
37158         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
37159         * lib/unictype/pr_other_grapheme_extend.c: New file.
37160         * lib/unictype/pr_other_id_continue.c: New file.
37161         * lib/unictype/pr_other_id_start.c: New file.
37162         * lib/unictype/pr_other_lowercase.c: New file.
37163         * lib/unictype/pr_other_math.c: New file.
37164         * lib/unictype/pr_other_uppercase.c: New file.
37165         * lib/unictype/pr_paired_punctuation.c: New file.
37166         * lib/unictype/pr_paragraph_separator.c: New file.
37167         * lib/unictype/pr_pattern_syntax.c: New file.
37168         * lib/unictype/pr_pattern_white_space.c: New file.
37169         * lib/unictype/pr_private_use.c: New file.
37170         * lib/unictype/pr_punctuation.c: New file.
37171         * lib/unictype/pr_quotation_mark.c: New file.
37172         * lib/unictype/pr_radical.c: New file.
37173         * lib/unictype/pr_sentence_terminal.c: New file.
37174         * lib/unictype/pr_soft_dotted.c: New file.
37175         * lib/unictype/pr_space.c: New file.
37176         * lib/unictype/pr_terminal_punctuation.c: New file.
37177         * lib/unictype/pr_test.c: New file.
37178         * lib/unictype/pr_titlecase.c: New file.
37179         * lib/unictype/pr_unassigned_code_value.c: New file.
37180         * lib/unictype/pr_unified_ideograph.c: New file.
37181         * lib/unictype/pr_uppercase.c: New file.
37182         * lib/unictype/pr_variation_selector.c: New file.
37183         * lib/unictype/pr_white_space.c: New file.
37184         * lib/unictype/pr_xid_continue.c: New file.
37185         * lib/unictype/pr_xid_start.c: New file.
37186         * lib/unictype/pr_zero_width.c: New file.
37187         * lib/unictype/scripts.c: New file.
37188         * lib/unictype/sy_c_ident.c: New file.
37189         * lib/unictype/sy_c_whitespace.c: New file.
37190         * lib/unictype/sy_java_ident.c: New file.
37191         * lib/unictype/sy_java_whitespace.c: New file.
37192
37193         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
37194         Unicode 5.0.0.
37195         * lib/unictype/blocks.h: Likewise.
37196         * lib/unictype/categ_C.h: Likewise.
37197         * lib/unictype/categ_Cc.h: Likewise.
37198         * lib/unictype/categ_Cf.h: Likewise.
37199         * lib/unictype/categ_Cn.h: Likewise.
37200         * lib/unictype/categ_Co.h: Likewise.
37201         * lib/unictype/categ_Cs.h: Likewise.
37202         * lib/unictype/categ_L.h: Likewise.
37203         * lib/unictype/categ_Ll.h: Likewise.
37204         * lib/unictype/categ_Lm.h: Likewise.
37205         * lib/unictype/categ_Lo.h: Likewise.
37206         * lib/unictype/categ_Lt.h: Likewise.
37207         * lib/unictype/categ_Lu.h: Likewise.
37208         * lib/unictype/categ_M.h: Likewise.
37209         * lib/unictype/categ_Mc.h: Likewise.
37210         * lib/unictype/categ_Me.h: Likewise.
37211         * lib/unictype/categ_Mn.h: Likewise.
37212         * lib/unictype/categ_N.h: Likewise.
37213         * lib/unictype/categ_Nd.h: Likewise.
37214         * lib/unictype/categ_Nl.h: Likewise.
37215         * lib/unictype/categ_No.h: Likewise.
37216         * lib/unictype/categ_P.h: Likewise.
37217         * lib/unictype/categ_Pc.h: Likewise.
37218         * lib/unictype/categ_Pd.h: Likewise.
37219         * lib/unictype/categ_Pe.h: Likewise.
37220         * lib/unictype/categ_Pf.h: Likewise.
37221         * lib/unictype/categ_Pi.h: Likewise.
37222         * lib/unictype/categ_Po.h: Likewise.
37223         * lib/unictype/categ_Ps.h: Likewise.
37224         * lib/unictype/categ_S.h: Likewise.
37225         * lib/unictype/categ_Sc.h: Likewise.
37226         * lib/unictype/categ_Sk.h: Likewise.
37227         * lib/unictype/categ_Sm.h: Likewise.
37228         * lib/unictype/categ_So.h: Likewise.
37229         * lib/unictype/categ_Z.h: Likewise.
37230         * lib/unictype/categ_Zl.h: Likewise.
37231         * lib/unictype/categ_Zp.h: Likewise.
37232         * lib/unictype/categ_Zs.h: Likewise.
37233         * lib/unictype/categ_of.h: Likewise.
37234         * lib/unictype/combining.h: Likewise.
37235         * lib/unictype/ctype_alnum.h: Likewise.
37236         * lib/unictype/ctype_alpha.h: Likewise.
37237         * lib/unictype/ctype_blank.h: Likewise.
37238         * lib/unictype/ctype_cntrl.h: Likewise.
37239         * lib/unictype/ctype_digit.h: Likewise.
37240         * lib/unictype/ctype_graph.h: Likewise.
37241         * lib/unictype/ctype_lower.h: Likewise.
37242         * lib/unictype/ctype_print.h: Likewise.
37243         * lib/unictype/ctype_punct.h: Likewise.
37244         * lib/unictype/ctype_space.h: Likewise.
37245         * lib/unictype/ctype_upper.h: Likewise.
37246         * lib/unictype/ctype_xdigit.h: Likewise.
37247         * lib/unictype/decdigit.h: Likewise.
37248         * lib/unictype/digit.h: Likewise.
37249         * lib/unictype/mirror.h: Likewise.
37250         * lib/unictype/numeric.h: Likewise.
37251         * lib/unictype/pr_alphabetic.h: Likewise.
37252         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37253         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37254         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37255         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37256         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37257         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37258         * lib/unictype/pr_bidi_control.h: Likewise.
37259         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37260         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37261         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37262         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37263         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37264         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37265         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37266         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37267         * lib/unictype/pr_bidi_pdf.h: Likewise.
37268         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37269         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37270         * lib/unictype/pr_combining.h: Likewise.
37271         * lib/unictype/pr_composite.h: Likewise.
37272         * lib/unictype/pr_currency_symbol.h: Likewise.
37273         * lib/unictype/pr_dash.h: Likewise.
37274         * lib/unictype/pr_decimal_digit.h: Likewise.
37275         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37276         * lib/unictype/pr_deprecated.h: Likewise.
37277         * lib/unictype/pr_diacritic.h: Likewise.
37278         * lib/unictype/pr_extender.h: Likewise.
37279         * lib/unictype/pr_format_control.h: Likewise.
37280         * lib/unictype/pr_grapheme_base.h: Likewise.
37281         * lib/unictype/pr_grapheme_extend.h: Likewise.
37282         * lib/unictype/pr_grapheme_link.h: Likewise.
37283         * lib/unictype/pr_hex_digit.h: Likewise.
37284         * lib/unictype/pr_hyphen.h: Likewise.
37285         * lib/unictype/pr_id_continue.h: Likewise.
37286         * lib/unictype/pr_id_start.h: Likewise.
37287         * lib/unictype/pr_ideographic.h: Likewise.
37288         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37289         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37290         * lib/unictype/pr_ignorable_control.h: Likewise.
37291         * lib/unictype/pr_iso_control.h: Likewise.
37292         * lib/unictype/pr_join_control.h: Likewise.
37293         * lib/unictype/pr_left_of_pair.h: Likewise.
37294         * lib/unictype/pr_line_separator.h: Likewise.
37295         * lib/unictype/pr_logical_order_exception.h: Likewise.
37296         * lib/unictype/pr_lowercase.h: Likewise.
37297         * lib/unictype/pr_math.h: Likewise.
37298         * lib/unictype/pr_non_break.h: Likewise.
37299         * lib/unictype/pr_not_a_character.h: Likewise.
37300         * lib/unictype/pr_numeric.h: Likewise.
37301         * lib/unictype/pr_other_alphabetic.h: Likewise.
37302         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37303         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37304         * lib/unictype/pr_other_id_continue.h: Likewise.
37305         * lib/unictype/pr_other_id_start.h: Likewise.
37306         * lib/unictype/pr_other_lowercase.h: Likewise.
37307         * lib/unictype/pr_other_math.h: Likewise.
37308         * lib/unictype/pr_other_uppercase.h: Likewise.
37309         * lib/unictype/pr_paired_punctuation.h: Likewise.
37310         * lib/unictype/pr_paragraph_separator.h: Likewise.
37311         * lib/unictype/pr_pattern_syntax.h: Likewise.
37312         * lib/unictype/pr_pattern_white_space.h: Likewise.
37313         * lib/unictype/pr_private_use.h: Likewise.
37314         * lib/unictype/pr_punctuation.h: Likewise.
37315         * lib/unictype/pr_quotation_mark.h: Likewise.
37316         * lib/unictype/pr_radical.h: Likewise.
37317         * lib/unictype/pr_sentence_terminal.h: Likewise.
37318         * lib/unictype/pr_soft_dotted.h: Likewise.
37319         * lib/unictype/pr_space.h: Likewise.
37320         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37321         * lib/unictype/pr_titlecase.h: Likewise.
37322         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37323         * lib/unictype/pr_unified_ideograph.h: Likewise.
37324         * lib/unictype/pr_uppercase.h: Likewise.
37325         * lib/unictype/pr_variation_selector.h: Likewise.
37326         * lib/unictype/pr_white_space.h: Likewise.
37327         * lib/unictype/pr_xid_continue.h: Likewise.
37328         * lib/unictype/pr_xid_start.h: Likewise.
37329         * lib/unictype/pr_zero_width.h: Likewise.
37330         * lib/unictype/scripts.h: Likewise.
37331         * lib/unictype/scripts_byname.gperf: Likewise.
37332         * lib/unictype/sy_c_ident.h: Likewise.
37333         * lib/unictype/sy_c_whitespace.h: Likewise.
37334         * lib/unictype/sy_java_ident.h: Likewise.
37335         * lib/unictype/sy_java_whitespace.h: Likewise.
37336
37337         * lib/unictype/Makefile: New file.
37338         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
37339         glibc.
37340         * lib/unictype/3level.h: New file, copied from glibc.
37341         * lib/unictype/3levelbit.h: New file.
37342
37343 2007-11-11  Bruno Haible  <bruno@clisp.org>
37344
37345         * modules/gperf: New file.
37346         * modules/iconv_open (Depends-on): Add it.
37347         (Makefile.am): Remove the GPERF definition.
37348
37349 2007-11-11  Bruno Haible  <bruno@clisp.org>
37350
37351         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
37352         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
37353
37354 2007-11-11  Bruno Haible  <bruno@clisp.org>
37355
37356         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
37357         (usage): Remove function.
37358
37359 2007-11-11  Bruno Haible  <bruno@clisp.org>
37360
37361         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
37362         gl_FUNC_CEILF_LIBS.
37363         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
37364         gl_FUNC_CEIL_LIBS.
37365         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
37366         gl_FUNC_CEILL_LIBS.
37367         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
37368         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
37369         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
37370
37371 2007-11-11  Bruno Haible  <bruno@clisp.org>
37372
37373         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
37374         roundf were declared but do not exist on functions.
37375         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
37376         roundl were declared but do not exist on functions.
37377         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
37378         HAVE_FLOORL_AND_CEILL, respectively.
37379         Needed for Sun C on Solaris 10.
37380
37381 2007-11-11  Bruno Haible  <bruno@clisp.org>
37382
37383         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
37384         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
37385         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
37386         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
37387         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
37388         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
37389         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
37390         HAVE_DECL_ROUNDF.
37391         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
37392         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
37393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37394         of HAVE_DECL_ROUND*.
37395         * modules/math (Makefile.am): Update.
37396
37397 2007-11-10  Bruno Haible  <bruno@clisp.org>
37398
37399         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37400         ptrdiff_t as m4/intl.m4.
37401
37402 2007-11-10  Jim Meyering  <meyering@redhat.com>
37403
37404         Avoid link failure for the argmatch test.
37405         * tests/test-argmatch.c (usage): Define function to avoid a link
37406         failure: argmatch_die requires a usage function.
37407
37408 2007-11-09  Bruno Haible  <bruno@clisp.org>
37409
37410         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37411         * doc/functions/vsnprintf.texi: Likewise.
37412         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37413         with a size argument < 2.
37414
37415 2007-11-09  Bruno Haible  <bruno@clisp.org>
37416
37417         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37418         buffer. Fixes an inefficiency introduced on 2007-11-03.
37419
37420 2007-11-09  Bruno Haible  <bruno@clisp.org>
37421
37422         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37423         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37424
37425 2007-11-08  Jim Meyering  <meyering@redhat.com>
37426
37427         Change cache variable name prefix "jm_" to "gl_" everywhere.
37428         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37429         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37430         * m4/uptime.m4: s/gl_/jm_/
37431
37432 2007-11-07  Bruno Haible  <bruno@clisp.org>
37433
37434         Update to GNU gettext 0.17.
37435         * m4/intl.m4: Update to GNU gettext 0.17.
37436         * m4/po.m4: Likewise.
37437         * modules/gettext (Files): Remove m4/ulonglong.m4.
37438         (configure.ac): Require gettext infrastructure from version 0.17.
37439
37440 2007-11-06  Bruno Haible  <bruno@clisp.org>
37441
37442         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37443         symbolic values are not defined in a public header.
37444         * lib/freadable.c (freadable) [QNX]: Likewise.
37445         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37446         * lib/freading.c (freading) [QNX]: Likewise.
37447         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37448         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37449         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37450         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37451         Reported by Alain Magloire.
37452
37453         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37454
37455 2007-11-05  Bruno Haible  <bruno@clisp.org>
37456
37457         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37458         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37459         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37460         Reported by Eric Blake.
37461
37462 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37463             Bruno Haible  <bruno@clisp.org>
37464
37465         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37466         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37467         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37468         (malloc): Undefine also before including <stdlib.h>.
37469         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37470         Needed on OSF/1 4.0.
37471
37472 2007-11-05  Jim Meyering  <meyering@redhat.com>
37473
37474         git-version-gen: sync from coreutils.
37475         * build-aux/git-version-gen: Add comments.
37476         Change the first '-' to '.' in the snapshot version string,
37477         e.g., 6.9-377-08144 -> 6.9.377-08144
37478         Remove first parameter.
37479         Don't declare a version "-dirty" merely because a time
37480         stamp has changed.
37481
37482 2007-11-04  Bruno Haible  <bruno@clisp.org>
37483
37484         * lib/lock.h: Protect all macro definitions containing an 'if'
37485         statement through a "do { ... } while (0)".
37486         * lib/tls.h: Likewise.
37487
37488 2007-11-04  Bruno Haible  <bruno@clisp.org>
37489
37490         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37491
37492 2007-11-04  Bruno Haible  <bruno@clisp.org>
37493
37494         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37495         * modules/fprintf-posix (Depends-on): Add nocrash.
37496         * modules/snprintf-posix (Depends-on): Likewise.
37497         * modules/sprintf-posix (Depends-on): Likewise.
37498         * modules/vasnprintf-posix (Depends-on): Likewise.
37499         * modules/vasprintf-posix (Depends-on): Likewise.
37500         * modules/vfprintf-posix (Depends-on): Likewise.
37501         * modules/vsnprintf-posix (Depends-on): Likewise.
37502         * modules/vsprintf-posix (Depends-on): Likewise.
37503         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37504         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37505         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37506         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37507         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37508         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37509         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37510
37511 2007-11-04  Bruno Haible  <bruno@clisp.org>
37512
37513         * modules/nocrash: New file.
37514         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37515         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37516
37517 2007-11-04  Bruno Haible  <bruno@clisp.org>
37518
37519         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37520         precision handling.
37521         * tests/test-vasprintf-posix.c (test_function): Likewise.
37522         * tests/test-snprintf-posix.h (test_function): Likewise.
37523         * tests/test-sprintf-posix.h (test_function): Likewise.
37524
37525         Fix *printf behaviour for large precisions on mingw and BeOS.
37526         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37527         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37529         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37530         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37531         gl_PRINTF_PRECISION and test its result. Invoke
37532         gl_PREREQ_VASNPRINTF_PRECISION.
37533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37534         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37537         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37540         * doc/functions/fprintf.texi: Update.
37541         * doc/functions/printf.texi: Update.
37542         * doc/functions/snprintf.texi: Update.
37543         * doc/functions/sprintf.texi: Update.
37544         * doc/functions/vfprintf.texi: Update.
37545         * doc/functions/vprintf.texi: Update.
37546         * doc/functions/vsnprintf.texi: Update.
37547         * doc/functions/vsprintf.texi: Update.
37548
37549 2007-11-04  Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37552
37553 2007-11-04  Bruno Haible  <bruno@clisp.org>
37554
37555         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37556         Reported by Sylvain Beucler <beuc@gnu.org>.
37557
37558 2007-11-03  Bruno Haible  <bruno@clisp.org>
37559
37560         * tests/test-fprintf-posix2.sh: New file.
37561         * tests/test-fprintf-posix2.c: New file.
37562         * modules/fprintf-posix-tests (Files): Add them.
37563         (TESTS): Add test-fprintf-posix2.sh.
37564         (configure.ac): Check for getrlimit and setrlimit.
37565         (check_PROGRAMS): Add test-fprintf-posix2.
37566
37567         * tests/test-printf-posix2.sh: New file.
37568         * tests/test-printf-posix2.c: New file.
37569         * modules/printf-posix-tests (Files): Add them.
37570         (TESTS): Add test-printf-posix2.sh.
37571         (configure.ac): Check for getrlimit and setrlimit.
37572         (check_PROGRAMS): Add test-printf-posix2.
37573
37574         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37575         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37576         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37577         (decode_double): New function, copied from decode_long_double.
37578         (scale10_round_decimal_decoded): New function, extracted from
37579         scale10_round_decimal_long_double.
37580         (scale10_round_decimal_long_double): Use it.
37581         (scale10_round_decimal_double): New function.
37582         (floorlog10): New function.
37583         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37585         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37587         gl_PRINTF_ENOMEM and test its result. Invoke
37588         gl_PREREQ_VASNPRINTF_ENOMEM.
37589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37596         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37597         * modules/snprintf-posix (Depends-on): Likewise.
37598         * modules/sprintf-posix (Depends-on): Likewise.
37599         * modules/vasnprintf-posix (Depends-on): Likewise.
37600         * modules/vasprintf-posix (Depends-on): Likewise.
37601         * modules/vfprintf-posix (Depends-on): Likewise.
37602         * modules/vsnprintf-posix (Depends-on): Likewise.
37603         * modules/vsprintf-posix (Depends-on): Likewise.
37604         * doc/functions/fprintf.texi: Update.
37605         * doc/functions/printf.texi: Update.
37606         * doc/functions/snprintf.texi: Update.
37607         * doc/functions/sprintf.texi: Update.
37608         * doc/functions/vfprintf.texi: Update.
37609         * doc/functions/vprintf.texi: Update.
37610         * doc/functions/vsnprintf.texi: Update.
37611         * doc/functions/vsprintf.texi: Update.
37612
37613 2007-11-03  Bruno Haible  <bruno@clisp.org>
37614
37615         * modules/frexp-nolibm-tests: New file.
37616
37617         * modules/frexp-nolibm: New file.
37618         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37619
37620 2007-11-03  Bruno Haible  <bruno@clisp.org>
37621
37622         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37623         value is C99 compliant.
37624         Needed for OSF/1 5.1.
37625
37626 2007-11-03  Bruno Haible  <bruno@clisp.org>
37627
37628         Fix out-of-memory handling of vasnprintf.
37629         * lib/printf-parse.c: Include <errno.h>.
37630         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37631         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37632         is already set.
37633
37634 2007-11-02  Eric Blake  <ebb9@byu.net>
37635
37636         Fix tests on cygwin.
37637         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37638
37639 2007-11-01  Bruno Haible  <bruno@clisp.org>
37640
37641         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37642         warning.
37643         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37644         needed for POSIX compatibility.
37645
37646 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37647
37648         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37649         for compatibility with GNU.
37650
37651 2007-11-01  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37654         (putenv): Renamed from rpl_putenv. Change argument type from
37655         'const char *' to 'char *'.
37656         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37657         of defining putenv in config.h, just set REPLACE_PUTENV.
37658         * modules/putenv (Depends-on): Add stdlib.
37659         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37660         (Include): Use <stdlib.h>.
37661         * lib/stdlib.in.h (putenv): New declaration.
37662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37663         REPLACE_PUTENV.
37664         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37665         REPLACE_PUTENV.
37666         Needed for MacOS X 10.5.0.
37667         Reported by Peter O'Gorman <peter@pogma.com>.
37668
37669 2007-11-01  Jim Meyering  <meyering@redhat.com>
37670
37671         Treat an empty date string exactly like "0".
37672         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37673         if the remaining date string (to be parsed) is empty, use "0".
37674         Reported by Mischa Molhoek and discussed in this thread:
37675         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
37676
37677 2007-10-31  Bruno Haible  <bruno@clisp.org>
37678
37679         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
37680         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
37681         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
37682         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
37683         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
37684         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
37685
37686 2007-10-31  Bruno Haible  <bruno@clisp.org>
37687
37688         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
37689         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
37690         (AC_TYPE_LONG_LONG_INT): Use it.
37691         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
37692         it as well.
37693         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
37694         to m4/longlong.m4.
37695         * modules/stdint (Files): Remove m4/ulonglong.m4.
37696         * modules/strtoull (Files): Use m4/longlong.m4 instead of
37697         m4/ulonglong.m4.
37698         * modules/strtoumax (Files): Likewise.
37699
37700 2007-10-30  Bruno Haible  <bruno@clisp.org>
37701
37702         * modules/xvasprintf-posix: New file.
37703         Suggested by Eric Blake.
37704
37705 2007-10-30  Bruno Haible  <bruno@clisp.org>
37706
37707         * modules/xprintf-posix-tests: New file.
37708         * tests/test-xprintf-posix.sh: New file.
37709         * tests/test-xprintf-posix.c: New file.
37710         * tests/test-xfprintf-posix.c: New file.
37711
37712         * modules/xprintf-posix: New file.
37713
37714 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37715
37716         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
37717         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
37718         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
37719
37720 2007-10-29  Bruno Haible  <bruno@clisp.org>
37721
37722         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
37723         contain the special marker '_cv_'.
37724         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37725         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37726         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37727         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
37728         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37729         Reported by Ralf Wildenhues.
37730
37731 2007-10-29  Bruno Haible  <bruno@clisp.org>
37732
37733         * gnulib-tool (func_import): When --lgpl is not specified, set
37734         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
37735         GPLv3.
37736         Reported by Simon Josefsson.
37737
37738 2007-10-28  Bruno Haible  <bruno@clisp.org>
37739
37740         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
37741         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
37742         HAVE_DECL_ISFINITE.
37743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37744         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
37745         HAVE_DECL_ISFINITE.
37746
37747 2007-10-28  Bruno Haible  <bruno@clisp.org>
37748
37749         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
37750         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
37751
37752 2007-10-28  Bruno Haible  <bruno@clisp.org>
37753
37754         Fix link errors with Sun C 5.0 on Solaris 10.
37755         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
37756         function is declared but not present in the compiler's libm.
37757         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37758         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37759         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
37760         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
37761         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
37762         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
37763         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
37764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37765         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
37766         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
37767         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
37768         HAVE_DECL_FLOORL.
37769
37770 2007-10-28  Bruno Haible  <bruno@clisp.org>
37771
37772         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
37773         gl_FUNC_FLOORL. Cache the result.
37774         (gl_FUNC_FLOORL): Use it.
37775         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
37776         gl_FUNC_CEILL. Cache the result.
37777         (gl_FUNC_CEILL): Use it.
37778
37779         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
37780         gl_FUNC_FLOOR. Cache the result.
37781         (gl_FUNC_FLOOR): Use it.
37782         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
37783         gl_FUNC_CEIL. Cache the result.
37784         (gl_FUNC_CEIL): Use it.
37785
37786         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
37787         gl_FUNC_FLOORF. Cache the result.
37788         (gl_FUNC_FLOORF): Use it.
37789         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
37790         gl_FUNC_CEILF. Cache the result.
37791         (gl_FUNC_CEILF): Use it.
37792
37793 2007-10-28  Bruno Haible  <bruno@clisp.org>
37794
37795         * gnulib-tool: Allow specifying the LGPL version number through
37796         --lgpl=2 or --lgpl=3.
37797         (func_usage): Document --lgpl with argument.
37798         Handle --lgpl=... arguments.
37799         (func_import): Recognize also gl_LGPL calls with an argument. When
37800         --lgpl=2 is used and the module's license is just LGPL, report an
37801         error. Set sed_transform_lib_file according to the lgpl variable. In
37802         the generated files, use --lgpl or gl_LGPL invocations with argument,
37803         if necessary.
37804         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
37805         an LGPv2+ license.
37806         * doc/gnulib-tool.texi (Modified imports): Update explanation of
37807         gl_LGPL macro.
37808
37809 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37810             Bruno Haible  <bruno@clisp.org>
37811
37812         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
37813         (u16_uctomb_aux): Likewise.
37814         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
37815         !HAVE_INLINE.
37816         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
37817
37818 2007-10-28  Bruno Haible  <bruno@clisp.org>
37819
37820         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
37821         Invoke AM_GETTEXT_OPTION if it exists.
37822         * modules/vasprintf: Likewise.
37823         * modules/verror: Likewise.
37824         * modules/xprintf: Likewise.
37825         * modules/xvasprintf: Likewise.
37826
37827 2007-10-27  Ben Pfaff  <blp@gnu.org>
37828
37829         * lib/math.in.h: Define isfinite macro and prototypes for
37830         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
37831         implementations.
37832         * m4/math_h.m4: New substitutions for isfinite module.
37833         * lib/isfinite.c: New file.
37834         * m4/isfinite.m4: New file.
37835         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
37836         * modules/isfinite: New file.
37837         * modules/isfinite-tests: New file.
37838         * tests/tests-isfinite.c: New file.
37839         * doc/functions/isfinite.texi: Mention isfinite module.
37840         * MODULES.html.sh: Mention new module.
37841
37842 2007-10-27  Ben Pfaff  <blp@gnu.org>
37843
37844         Ralf Wildenhues reported that Tru64 4.0D declares the round
37845         functions but does not have definitions.
37846         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37847         cannot be found in any library, set the output variable to
37848         "missing" instead of "".
37849         * m4/round.m4: Also use our substitute if we cannot find round in
37850         any library, even if it is declared.
37851         * m4/roundf.m4: Likewise for roundf.
37852         * m4/roundl.m4: Likewise for roundl.
37853         * lib/math.in.h: Undefine roundf, round, roundl before defining
37854         their replacements, to allow for hypothetical systems where these
37855         may be defined as macros but not available in libraries.
37856
37857 2007-10-27  Bruno Haible  <bruno@clisp.org>
37858
37859         * doc/gnulib.texi: Invoke @firstparagraphindent.
37860         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37861         changes in gnulib.
37862         (Source changes): New section.
37863
37864 2007-10-26  Bruno Haible  <bruno@clisp.org>
37865
37866         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37867         borrowed from autoconf.
37868
37869 2007-10-26  Bruno Haible  <bruno@clisp.org>
37870
37871         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37872         strerror returned the empty string. Needed on HP-UX 11.00.
37873
37874 2007-10-24  Micah Cowan  <micah@cowan.name>
37875
37876         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37877         * build-aux/bootstrap: Remove support for now-unnecessary option,
37878         --cvs-user, and envvars CVS_USER, CVS_RSH.
37879
37880 2007-10-24  Jim Meyering  <meyering@redhat.com>
37881
37882         Avoid diagnostics from sha1sum when there is no cached checksum.
37883         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37884         if the po.s1 file hasn't been created yet.
37885
37886         * build-aux/bootstrap: Sync from coreutils:
37887         2007-10-24  Jim Meyering  <meyering@redhat.com>
37888         Get gnulib from the git repository, not from an obsolete cvs one.
37889         * build-aux/bootstrap: Suggestion from Micah Cowan.
37890         2007-10-04  Jim Meyering  <jim@meyering.net>
37891         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37892         (update_po_files): Work also when there are no .po files in po/.
37893
37894 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37895
37896         * README: Append ".git" to git and cg examples.
37897         Problem reported by Benoit Sigoure.
37898
37899 2007-10-23  Micah Cowan  <micah@cowan.name>
37900
37901         * users.txt: Add wget.
37902
37903 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37904
37905         Fix linking of some unistdio tests on FreeBSD.
37906         * modules/unistdio/u16-vsnprintf-tests
37907         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37908         * modules/unistdio/u16-vsprintf-tests
37909         (test_u16_vsnprintf1_LDADD): Likewise.
37910         * modules/unistdio/u32-vsnprintf-tests
37911         (test_u32_vsnprintf1_LDADD): Likewise.
37912         * modules/unistdio/u32-vsprintf-tests
37913         (test_u32_vsprintf1_LDADD): Likewise.
37914         * modules/unistdio/u8-vsnprintf-tests
37915         (test_u8_vsnprintf1_LDADD): Likewise.
37916         * modules/unistdio/u8-vsprintf-tests
37917         (test_u8_vsprintf1_LDADD): Likewise.
37918         * modules/unistdio/ulc-vsnprintf-tests
37919         (test_ulc_vsnprintf1_LDADD): Likewise.
37920         * modules/unistdio/ulc-vsprintf-tests
37921         (test_ulc_vsprintf1_LDADD): Likewise.
37922
37923         Fix linking of some uniconv tests on FreeBSD.
37924         * modules/uniconv/u16-conv-from-enc-tests
37925         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37926         * modules/uniconv/u16-conv-to-enc-tests
37927         (test_u16_conv_to_enc_LDADD): Likewise.
37928         * modules/uniconv/u16-strconv-from-enc-tests
37929         (test_u16_strconv_from_enc_LDADD): Likewise.
37930         * modules/uniconv/u16-strconv-to-enc-tests
37931         (test_u16_strconv_to_enc_LDADD): Likewise.
37932         * modules/uniconv/u32-conv-from-enc-tests
37933         (test_u32_conv_from_enc_LDADD): Likewise.
37934         * modules/uniconv/u32-conv-to-enc-tests
37935         (test_u32_conv_to_enc_LDADD): Likewise.
37936         * modules/uniconv/u32-strconv-from-enc-tests
37937         (test_u32_strconv_from_enc_LDADD): Likewise.
37938         * modules/uniconv/u32-strconv-to-enc-tests
37939         (test_u32_strconv_to_enc_LDADD): Likewise.
37940         * modules/uniconv/u8-conv-from-enc-tests
37941         (test_u8_conv_from_enc_LDADD): Likewise.
37942         * modules/uniconv/u8-conv-to-enc-tests
37943         (test_u8_conv_to_enc_LDADD): Likewise.
37944         * modules/uniconv/u8-strconv-from-enc-tests
37945         (test_u8_strconv_from_enc_LDADD): Likewise.
37946         * modules/uniconv/u8-strconv-to-enc-tests
37947         (test_u8_strconv_to_enc_LDADD): Likewise.
37948
37949 2007-10-22  Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37952         size.
37953
37954 2007-10-22  Eric Blake  <ebb9@byu.net>
37955
37956         Tweak x*printf documentation.
37957         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37958         variable name and comments.
37959         Suggested by Bruno Haible.
37960
37961 2007-10-22  Bruno Haible  <bruno@clisp.org>
37962
37963         * lib/acl.c (copy_acl): Fix file name in comment.
37964
37965 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37966
37967         Fix Tru64 problem with stdbool.h.
37968         * lib/stdbool.in.h (false, true):
37969         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37970         Don't declare as an enum in this situation; it runs afoul of Tru64.
37971         Problem reported by Steven M. Schweda in
37972         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37973
37974 2007-10-22  Eric Blake  <ebb9@byu.net>
37975
37976         Also wrap vf?printf.
37977         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37978         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37979         (xvprintf, xvfprintf): New functions.
37980
37981 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37982
37983         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37984         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37985
37986         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37987         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37988
37989 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37990
37991         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37992         by Bruno Haible.
37993
37994 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37995
37996         * lib/getloadavg.c
37997         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37998         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37999
38000         * tests/test-i-ring.c: Work for C89.
38001
38002 2007-10-22  Bruno Haible  <bruno@clisp.org>
38003
38004         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
38005         -1u, in preprocessor expression, so that we don't test for the bug
38006         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
38007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
38008
38009 2007-10-22  Eric Blake  <ebb9@byu.net>
38010
38011         * tests/test-yesno.sh: Silence stderr during test.
38012
38013 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38014
38015         * modules/crypto/gc-camellia: New file.
38016
38017         * m4/gc-camellia.m4: New file.
38018
38019         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
38020
38021         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
38022
38023 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38024
38025         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
38026         --help to stdout.  Reported by sms@antinode.org (Steven
38027         M. Schweda).
38028
38029 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38030
38031         * users.txt: Fix link to libksba.
38032
38033 2007-10-21  Ben Pfaff  <blp@gnu.org>
38034
38035         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
38036         round.c roundf implementation that depends on floorf and ceilf to
38037         be tested unconditionally.
38038
38039 2007-10-21  Ben Pfaff  <blp@gnu.org>
38040
38041         * m4/check-libm-func.m4: Removed.
38042         * m4/check-math-lib.m4: New file.
38043         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
38044         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
38045         definition and lack of AC_LIBOBJ([roundf]).
38046         * m4/roundl.m4: Ditto, and similarly for roundl.
38047         * modules/round: Reference new m4 file.
38048         * modules/roundf: Ditto.
38049         * modules/roundl: Ditto.
38050         * tests/test-round2.c (main): Use ROUND instead of round.
38051         Bug report from Bruno Haible.
38052
38053 2007-10-21  Bruno Haible  <bruno@clisp.org>
38054
38055         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
38056         context.
38057
38058 2007-10-21  Bruno Haible  <bruno@clisp.org>
38059
38060         * tests/test-wcwidth.c (main): Allow negative result for some control
38061         characters.
38062
38063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
38064         Needed on OSF/1 5.1.
38065
38066 2007-10-21  Bruno Haible  <bruno@clisp.org>
38067
38068         * tests/test-floorf1.c: Include isnanf.h.
38069         (main): Use isnanf() instead of isnan().
38070         * tests/test-ceilf1.c: Include isnanf.h.
38071         (main): Use isnanf() instead of isnan().
38072         * tests/test-truncf1.c: Include isnanf.h.
38073         (main): Use isnanf() instead of isnan().
38074         * tests/test-roundf1.c: Include isnanf.h.
38075         (main): Use isnanf() instead of isnan().
38076
38077 2007-10-21  Eric Blake  <ebb9@byu.net>
38078
38079         * users.txt: Update URL for m4.
38080
38081 2007-10-21  Bruno Haible  <bruno@clisp.org>
38082
38083         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
38084
38085 2007-10-21  Bruno Haible  <bruno@clisp.org>
38086
38087         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
38088         Git's management files if the CVS files are not present.
38089
38090 2007-10-20  Bruno Haible  <bruno@clisp.org>
38091
38092         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
38093         gcc-3.4.x.
38094
38095 2007-10-20  Ben Pfaff  <blp@gnu.org>
38096
38097         * lib/math.in.h: Declare round, roundf, roundl if we are providing
38098         implementations.
38099         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
38100         * lib/round.c: New file.
38101         * lib/roundf.c: New file.
38102         * lib/roundl.c: New file.
38103         * m4/round.m4: New file.
38104         * m4/roundf.m4: New file.
38105         * m4/roundl.m4: New file.
38106         * m4/check-libm-func-m4: New file.
38107         * modules/math: Replace round, roundf, roundl related @VARS@ in
38108         math.in.h.
38109         * modules/round: New file.
38110         * modules/round-tests: New file.
38111         * modules/roundf: New file.
38112         * modules/roundf-tests: New file.
38113         * modules/roundl: New file.
38114         * modules/roundl-tests: New file.
38115         * tests/test-round1.c: New file.
38116         * tests/test-round2.c: New file.
38117         * tests/test-roundf1.c: New file.
38118         * tests/test-roundf2.c: New file.
38119         * tests/test-roundl.c: New file.
38120         * doc/functions/round.texi: Mention round module.
38121         * doc/functions/roundf.texi: Mention roundf module.
38122         * doc/functions/roundl.texi: Mention roundl module.
38123         * MODULES.html.sh: Mention new modules.
38124         Thanks to Bruno Haible for suggestions.
38125
38126 2007-10-20  Jim Meyering  <meyering@redhat.com>
38127
38128         * lib/xprintf.c: Include <config.h> unconditionally.
38129
38130         Change xprintf's license to GPL.
38131         * modules/xprintf (License): s/LGPL/GPL/, since this module
38132         depends on modules (exit and exitfail) which are GPL.
38133         Suggestion from Bruno Haible.
38134
38135         xprintf fixes.
38136         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
38137         Use a clearer diagnostic.
38138         Patch from Bruno Haible.
38139
38140 2007-10-20  Bruno Haible  <bruno@clisp.org>
38141
38142         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
38143         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
38144         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38145
38146 2007-10-20  Bruno Haible  <bruno@clisp.org>
38147
38148         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
38149         precision in the comparison result > x - 1 or similar.
38150         * tests/test-ceilf2.c (correct_result_p): Likewise.
38151         * tests/test-truncf2.c (correct_result_p): Likewise.
38152         * tests/test-trunc2.c (correct_result_p): Likewise.
38153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38154
38155 2007-10-20  Bruno Haible  <bruno@clisp.org>
38156
38157         * modules/ceil: New file.
38158         * m4/ceil.m4: New file.
38159         * doc/functions/ceil.texi: Mention the 'ceil' module.
38160
38161 2007-10-20  Bruno Haible  <bruno@clisp.org>
38162
38163         * modules/floor: New file.
38164         * m4/floor.m4: New file.
38165         * doc/functions/floor.texi: Mention the 'floor' module.
38166
38167 2007-10-20  Bruno Haible  <bruno@clisp.org>
38168
38169         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
38170         of %a.
38171         * modules/floorf-tests (Depends-on): Likewise.
38172         * modules/truncf-tests (Depends-on): Likewise.
38173         * modules/trunc-tests (Depends-on): Likewise.
38174         Reported by Ben Pfaff.
38175
38176 2007-10-19  Jim Meyering  <meyering@redhat.com>
38177
38178         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
38179         Don't bother testing specific errno values.  Just test ferror.
38180
38181         New module: xprintf
38182         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
38183
38184 2007-10-19  Bruno Haible  <bruno@clisp.org>
38185
38186         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
38187         syntax.
38188         * modules/javaexec (Makefile.am): Likewise.
38189         * modules/relocatable-prog (Makefile.am): Likewise.
38190         Suggested by Jim Meyering.
38191
38192 2007-10-18  Bruno Haible  <bruno@clisp.org>
38193
38194         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
38195         Reported by Jim Meyering.
38196
38197 2007-10-18  Eric Blake  <ebb9@byu.net>
38198
38199         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
38200
38201 2007-10-18  Bruno Haible  <bruno@clisp.org>
38202
38203         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
38204         the format string into writable memory. Needed in Fortify conditions.
38205
38206 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
38207             Bruno Haible  <bruno@clisp.org>
38208
38209         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
38210         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
38211         * modules/trim (Depends-on): Add mbchar.
38212         (configure.ac): Add gl_FUNC_MBRTOWC.
38213         (Makefile.am): Augment lib_SOURCES.
38214
38215 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38216
38217         Modify glob.c to use fstatat and dirfd, to simplify it.
38218         Suggested by Eric Blake.
38219         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
38220         Don't include <stdbool.h>; not used.
38221         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
38222         (link_exists_p): Simplify implementation, since we can now assume
38223         dirfd and fstatat.
38224         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
38225
38226 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38227
38228         * gnulib-tool (func_get_dependencies): Fix sed script to
38229         match only tests.
38230
38231 2007-10-17  Bruno Haible  <bruno@clisp.org>
38232
38233         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
38234         allow locale names without encoding suffix.
38235         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38236         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38237
38238 2007-10-16  Bruno Haible  <bruno@clisp.org>
38239
38240         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
38241         * lib/getgroups.c (getgroups): Likewise.
38242         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
38243
38244 2007-10-16  Bruno Haible  <bruno@clisp.org>
38245
38246         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
38247         * modules/malloc-posix (License): Likewise.
38248         * modules/realloc-posix (License): Likewise.
38249         * modules/calloc-posix (License): Likewise.
38250         * modules/intprops (License): Change from GPL to LGPL, with
38251         Paul Eggert's approval.
38252
38253 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38254
38255         Merge glibc changes into lib/glob.c.
38256
38257         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
38258         2007-10-15 04:59:03 UTC.  Here are the changes:
38259
38260         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
38261
38262         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
38263
38264         * lib/glob.c: Add some branch prediction throughout.
38265
38266         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
38267
38268         [BZ #5103]
38269         * lib/glob.c (glob): Recognize patterns starting \/.
38270
38271         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
38272
38273         [BZ #3996]
38274         * lib/glob.c (attribute_hidden): Define if not defined.
38275         (glob): Unescape dirname, filename or username when needed and not
38276         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
38277         is NULL.  Handle unescaped [ in pattern without closing ].
38278         Don't pass GLOB_CHECK down to recursive glob for directories.
38279         (__glob_pattern_type): New function.
38280         (__glob_pattern_p): Implement using __glob_pattern_type.
38281         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
38282         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
38283         Remove unreachable code.
38284
38285         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
38286
38287         * lib/glob.c (glob_in_dir): Add some comments and asserts to
38288         explain why there are no leaks.
38289
38290         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
38291
38292         [BZ #3253]
38293         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
38294         time, rather allocate increasingly bigger arrays of pointers, if
38295         possible with alloca, if too large with malloc.
38296
38297 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38298
38299         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
38300         Problem reported by H.Merijn Brand in
38301         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
38302         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
38303         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
38304
38305 2007-10-15  Bruno Haible  <bruno@clisp.org>
38306
38307         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
38308         with explicit rpl_ prefix.
38309         * lib/fopen.c (fopen): Likewise.
38310         * lib/freopen.c (freopen): Likewise.
38311         * lib/iconv.c (iconv): Likewise.
38312         * lib/iconv_close.c (iconv_close): Likewise.
38313
38314 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38315
38316         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
38317
38318 2007-10-15  Bruno Haible  <bruno@clisp.org>
38319
38320         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
38321         <stddef.h> instead of <stdlib.h> since we only need NULL.
38322         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38323
38324 2007-10-15  Bruno Haible  <bruno@clisp.org>
38325
38326         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
38327         Replace paragraph talking about LIBOBJS.
38328         Reported by Colin Watson <cjwatson@debian.org>.
38329
38330 2007-10-15  Bruno Haible  <bruno@clisp.org>
38331
38332         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
38333         <stdlib.h> before using NULL.
38334
38335 2007-10-15  Simon Josefsson  <simon@josefsson.org>
38336
38337         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
38338         Reported by Albert Chin <china@thewrittenword.com>.
38339
38340 2007-10-14  Bruno Haible  <bruno@clisp.org>
38341
38342         * modules/iconv_open-utf-tests: New file.
38343         * tests/test-iconv-utf.c: New file.
38344
38345         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
38346         * modules/iconv_open-utf: New file.
38347         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
38348         (iconv, iconv_close): New declarations.
38349         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
38350         be defined.
38351         (iconv_open): Add special handling of conversion between UTF-8 and
38352         UTF-{16,32}{BE,LE}.
38353         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
38354         * lib/iconv_close.c: New file.
38355         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
38356         gl_FUNC_ICONV_OPEN.
38357         (gl_FUNC_ICONV_OPEN): Use it.
38358         (gl_FUNC_ICONV_OPEN_UTF): New macro.
38359         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
38360         and REPLACE_ICONV_UTF.
38361         * modules/iconv_open (Depends-on): Add c-strcase.
38362         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
38363         ICONV_CONST.
38364         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
38365
38366 2007-10-13  Albert Chin  <china@thewrittenword.com>
38367             Bruno Haible  <bruno@clisp.org>
38368
38369         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
38370         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
38371
38372 2007-10-13  Bruno Haible  <bruno@clisp.org>
38373
38374         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
38375         defined, use the ISO C99 inline semantics.
38376         * lib/argp.h (ARGP_EI): Likewise.
38377
38378 2007-10-13  Bruno Haible  <bruno@clisp.org>
38379
38380         Handle 'inline' change in gcc 4.3.0.
38381         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
38382         argp_fmtstream_write, argp_fmtstream_set_lmargin,
38383         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
38384         argp_fmtstream_point): Disable 'extern' declaration if the function
38385         definition is going to be provided inline.
38386         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
38387         semantics, not the ISO C99 inline semantics.
38388         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
38389         'extern' declaration if the function definition is going to be provided
38390         inline.
38391         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
38392         the GNU C inline semantics, not the ISO C99 inline semantics. With
38393         GCC 4.2, avoid a warning.
38394
38395 2007-10-13  Bruno Haible  <bruno@clisp.org>
38396
38397         * lib/freading.h (freading): Enable the use of __freading for
38398         glibc >= 2.7.
38399         * lib/freading.c (freading): Likewise.
38400
38401 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38402
38403         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38404         "warning: C99 inline functions are not supported; using GNU89".
38405
38406 2007-10-12  Bruno Haible  <bruno@clisp.org>
38407
38408         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38409         of 2.
38410         * tests/test-ceilf2.c: New file.
38411         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38412
38413         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38414         * modules/ceilf-tests: Update.
38415
38416 2007-10-12  Bruno Haible  <bruno@clisp.org>
38417
38418         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38419         of 2.
38420         * tests/test-floorf2.c: New file.
38421         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38422
38423         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38424         * modules/floorf-tests: Update.
38425
38426 2007-10-12  Bruno Haible  <bruno@clisp.org>
38427
38428         * tests/test-trunc2.c: New file.
38429         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38430
38431         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38432         * modules/trunc-tests: Update.
38433
38434 2007-10-12  Bruno Haible  <bruno@clisp.org>
38435
38436         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38437         of 2.
38438         * tests/test-truncf2.c: New file.
38439         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38440
38441         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38442         * modules/truncf-tests: Update.
38443
38444 2007-10-11  Eric Blake  <ebb9@byu.net>
38445
38446         Don't claim strerror is broken on Interix.
38447         * doc/functions/strerror.texi (strerror): Known broken systems are
38448         now Solaris 8, and not Interix.
38449         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38450         Interix on cross-compile.
38451         Reported by Martin Koeppe in
38452         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38453
38454 2007-10-11  Bruno Haible  <bruno@clisp.org>
38455
38456         * modules/i-ring-tests: New file.
38457         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38458         instead of assert.
38459
38460 2007-10-11  Bruno Haible  <bruno@clisp.org>
38461
38462         * modules/filenamecat-tests: New file.
38463         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38464         * lib/filenamecat.c: Remove test code.
38465
38466 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38467
38468         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38469
38470         * lib/strerror.c: Include <string.h> always, to test interface,
38471         and to remove the need for the dummy.
38472         Include intprops.h to compute width instead of doing it ourselves
38473         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38474         (strerror): Define it to return NULL if there's no system strerror.
38475         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38476         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38477         ancient pre-strerror Unix systems well any more.  Saying "unknown
38478         system error" is enough.
38479         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38480         simpler strerror.c implementation.
38481         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38482         Simplify the tests to reflect the simpler strerror implementation.
38483         * modules/strerror (Depends-on): Add intprops.
38484
38485 2007-10-09  Eric Blake  <ebb9@byu.net>
38486
38487         Silence test-fpending.
38488         * modules/fpending-tests (Files): Add wrapper script.
38489         * tests/test-fpending.sh: New file.
38490
38491 2007-10-09  Bruno Haible  <bruno@clisp.org>
38492
38493         * MODULES.html.sh (func_module): Don't create a hyperlink for
38494         function names like 'printf_frexp'.
38495         (Misc): Add crc, memxor.
38496         (Characteristics of floating types): New section.
38497         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38498         isnanf-nolibm, signbit, trunc, truncf, truncl.
38499         (Enhancements for ISO C 99 functions): New subsection Input/output.
38500         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38501         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38502         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38503         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38504         (Enhancements for POSIX:2001 functions): Add chdir-long.
38505         (File system functions): Add areadlink, chdir-safer, read-file.
38506         Remove cycle-check.
38507         (File system as inode set): New section.
38508         (Date and time): Add gethrxtime.
38509         (Multithreading): Add openmp.
38510         (Internationalization functions): Add localename.
38511         (Unicode string functions): Add unistr/u*-mbsnlen.
38512         (Support for maintaining and releasing projects): Add git-version-gen.
38513         (Lone files): Remove directories.
38514
38515 2007-10-08  Ben Pfaff  <blp@gnu.org>
38516
38517         * lib/xmalloca.h: Fix typo in comment.
38518
38519 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38520
38521         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38522         when avoiding problems with integer overflow.  Use a portable test
38523         instead.
38524
38525 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38526
38527         * modules/dummy (License): Change to LGPLv2+.
38528         * modules/float (License): Likewise
38529         * modules/realloc (License): Likewise
38530         * modules/stdlib (License): Likewise
38531
38532 2007-10-07  Bruno Haible  <bruno@clisp.org>
38533
38534         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38535         * floor.c (TWO_MANT_DIG): Likewise.
38536         * ceil.c (TWO_MANT_DIG): Likewise.
38537         Reported by Ben Pfaff.
38538
38539 2007-10-07  Bruno Haible  <bruno@clisp.org>
38540
38541         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38542         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38543         * lib/frexp.c (FUNC): Likewise.
38544         * lib/printf-frexp.h (printf_frexp): Likewise.
38545         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38546         * lib/printf-frexp.c (FUNC): Likewise.
38547         Suggested by Jim Meyering.
38548
38549 2007-10-07  Jim Meyering  <meyering@redhat.com>
38550
38551         Make xnanosleep's integer overflow test more robust.
38552         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38553         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38554
38555 2007-10-07  Bruno Haible  <bruno@clisp.org>
38556
38557         * NEWS: Mention the license change.
38558
38559         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38560         abbreviations in the modules files.
38561
38562         Change copyright notice from GPLv2+ to GPLv3+.
38563         * README: Change copyright notice.
38564         * MODULES.html.sh: Likewise.
38565         * build-aux/bootstrap.conf: Likewise.
38566         * build-aux/config.libpath: Likewise.
38567         * build-aux/csharpcomp.sh.in: Likewise.
38568         * build-aux/csharpexec.sh.in: Likewise.
38569         * build-aux/install-reloc: Likewise.
38570         * build-aux/javacomp.sh.in: Likewise.
38571         * build-aux/javaexec.sh.in: Likewise.
38572         * build-aux/ldd.sh.in: Likewise.
38573         * build-aux/reloc-ldflags: Likewise.
38574         * build-aux/relocatable.sh.in: Likewise.
38575         * build-aux/x-to-1.in: Likewise.
38576         * check-module: Likewise.
38577         * config/srclistvars.sh: Likewise.
38578         * gnulib-tool: Likewise.
38579         * lib/acl-internal.h: Likewise.
38580         * lib/acl.c: Likewise.
38581         * lib/acl.h: Likewise.
38582         * lib/acl_entries.c: Likewise.
38583         * lib/areadlink-with-size.c: Likewise.
38584         * lib/areadlink.c: Likewise.
38585         * lib/areadlink.h: Likewise.
38586         * lib/argmatch.c: Likewise.
38587         * lib/argmatch.h: Likewise.
38588         * lib/argp-ba.c: Likewise.
38589         * lib/argp-eexst.c: Likewise.
38590         * lib/argp-fmtstream.c: Likewise.
38591         * lib/argp-fmtstream.h: Likewise.
38592         * lib/argp-fs-xinl.c: Likewise.
38593         * lib/argp-help.c: Likewise.
38594         * lib/argp-namefrob.h: Likewise.
38595         * lib/argp-parse.c: Likewise.
38596         * lib/argp-pin.c: Likewise.
38597         * lib/argp-pv.c: Likewise.
38598         * lib/argp-pvh.c: Likewise.
38599         * lib/argp-xinl.c: Likewise.
38600         * lib/argp.h: Likewise.
38601         * lib/at-func.c: Likewise.
38602         * lib/atanl.c: Likewise.
38603         * lib/backupfile.c: Likewise.
38604         * lib/backupfile.h: Likewise.
38605         * lib/basename.c: Likewise.
38606         * lib/binary-io.h: Likewise.
38607         * lib/byteswap.in.h: Likewise.
38608         * lib/c-stack.c: Likewise.
38609         * lib/c-stack.h: Likewise.
38610         * lib/c-strcasestr.c: Likewise.
38611         * lib/c-strcasestr.h: Likewise.
38612         * lib/c-strstr.c: Likewise.
38613         * lib/c-strstr.h: Likewise.
38614         * lib/c-strtod.c: Likewise.
38615         * lib/calloc.c: Likewise.
38616         * lib/canon-host.c: Likewise.
38617         * lib/canon-host.h: Likewise.
38618         * lib/canonicalize-lgpl.c: Likewise.
38619         * lib/canonicalize.c: Likewise.
38620         * lib/canonicalize.h: Likewise.
38621         * lib/ceil.c: Likewise.
38622         * lib/ceilf.c: Likewise.
38623         * lib/ceill.c: Likewise.
38624         * lib/chdir-long.c: Likewise.
38625         * lib/chdir-long.h: Likewise.
38626         * lib/chdir-safer.c: Likewise.
38627         * lib/chdir-safer.h: Likewise.
38628         * lib/chown.c: Likewise.
38629         * lib/classpath.c: Likewise.
38630         * lib/classpath.h: Likewise.
38631         * lib/clean-temp.c: Likewise.
38632         * lib/clean-temp.h: Likewise.
38633         * lib/cloexec.c: Likewise.
38634         * lib/close-stream.c: Likewise.
38635         * lib/closein.c: Likewise.
38636         * lib/closein.h: Likewise.
38637         * lib/closeout.c: Likewise.
38638         * lib/closeout.h: Likewise.
38639         * lib/concat-filename.c: Likewise.
38640         * lib/copy-file.c: Likewise.
38641         * lib/copy-file.h: Likewise.
38642         * lib/count-one-bits.h: Likewise.
38643         * lib/crc.c: Likewise.
38644         * lib/crc.h: Likewise.
38645         * lib/creat-safer.c: Likewise.
38646         * lib/csharpcomp.c: Likewise.
38647         * lib/csharpcomp.h: Likewise.
38648         * lib/csharpexec.c: Likewise.
38649         * lib/csharpexec.h: Likewise.
38650         * lib/cycle-check.c: Likewise.
38651         * lib/cycle-check.h: Likewise.
38652         * lib/diacrit.c: Likewise.
38653         * lib/diacrit.h: Likewise.
38654         * lib/diffseq.h: Likewise.
38655         * lib/dirchownmod.c: Likewise.
38656         * lib/dirent.in.h: Likewise.
38657         * lib/dirfd.c: Likewise.
38658         * lib/dirfd.h: Likewise.
38659         * lib/dirname.c: Likewise.
38660         * lib/dirname.h: Likewise.
38661         * lib/dummy.c: Likewise.
38662         * lib/dup-safer.c: Likewise.
38663         * lib/dup2.c: Likewise.
38664         * lib/eealloc.h: Likewise.
38665         * lib/error.c: Likewise.
38666         * lib/error.h: Likewise.
38667         * lib/euidaccess.c: Likewise.
38668         * lib/exclude.c: Likewise.
38669         * lib/exclude.h: Likewise.
38670         * lib/execute.c: Likewise.
38671         * lib/execute.h: Likewise.
38672         * lib/exitfail.c: Likewise.
38673         * lib/exitfail.h: Likewise.
38674         * lib/expl.c: Likewise.
38675         * lib/fatal-signal.c: Likewise.
38676         * lib/fatal-signal.h: Likewise.
38677         * lib/fbufmode.c: Likewise.
38678         * lib/fbufmode.h: Likewise.
38679         * lib/fchdir.c: Likewise.
38680         * lib/fchmodat.c: Likewise.
38681         * lib/fchownat.c: Likewise.
38682         * lib/fcntl--.h: Likewise.
38683         * lib/fcntl-safer.h: Likewise.
38684         * lib/fcntl.in.h: Likewise.
38685         * lib/fd-safer.c: Likewise.
38686         * lib/fflush.c: Likewise.
38687         * lib/file-has-acl.c: Likewise.
38688         * lib/file-set.c: Likewise.
38689         * lib/file-type.c: Likewise.
38690         * lib/file-type.h: Likewise.
38691         * lib/fileblocks.c: Likewise.
38692         * lib/filemode.c: Likewise.
38693         * lib/filemode.h: Likewise.
38694         * lib/filename.h: Likewise.
38695         * lib/filenamecat.c: Likewise.
38696         * lib/filenamecat.h: Likewise.
38697         * lib/findprog.c: Likewise.
38698         * lib/findprog.h: Likewise.
38699         * lib/float.in.h: Likewise.
38700         * lib/floor.c: Likewise.
38701         * lib/floorf.c: Likewise.
38702         * lib/floorl.c: Likewise.
38703         * lib/fopen-safer.c: Likewise.
38704         * lib/fopen.c: Likewise.
38705         * lib/fpending.c: Likewise.
38706         * lib/fpending.h: Likewise.
38707         * lib/fprintf.c: Likewise.
38708         * lib/fprintftime.h: Likewise.
38709         * lib/fpucw.h: Likewise.
38710         * lib/fpurge.c: Likewise.
38711         * lib/fpurge.h: Likewise.
38712         * lib/freadable.c: Likewise.
38713         * lib/freadable.h: Likewise.
38714         * lib/freadahead.c: Likewise.
38715         * lib/freadahead.h: Likewise.
38716         * lib/freading.c: Likewise.
38717         * lib/freading.h: Likewise.
38718         * lib/free.c: Likewise.
38719         * lib/freopen.c: Likewise.
38720         * lib/frexp.c: Likewise.
38721         * lib/frexpl.c: Likewise.
38722         * lib/fseek.c: Likewise.
38723         * lib/fseterr.c: Likewise.
38724         * lib/fseterr.h: Likewise.
38725         * lib/fstatat.c: Likewise.
38726         * lib/fstrcmp.c: Likewise.
38727         * lib/fstrcmp.h: Likewise.
38728         * lib/fsusage.c: Likewise.
38729         * lib/fsusage.h: Likewise.
38730         * lib/ftell.c: Likewise.
38731         * lib/ftello.c: Likewise.
38732         * lib/fts-cycle.c: Likewise.
38733         * lib/fts.c: Likewise.
38734         * lib/fts_.h: Likewise.
38735         * lib/full-read.c: Likewise.
38736         * lib/full-read.h: Likewise.
38737         * lib/full-write.c: Likewise.
38738         * lib/full-write.h: Likewise.
38739         * lib/fwritable.c: Likewise.
38740         * lib/fwritable.h: Likewise.
38741         * lib/fwriteerror.c: Likewise.
38742         * lib/fwriteerror.h: Likewise.
38743         * lib/fwriting.c: Likewise.
38744         * lib/fwriting.h: Likewise.
38745         * lib/gcd.c: Likewise.
38746         * lib/gcd.h: Likewise.
38747         * lib/getcwd.c: Likewise.
38748         * lib/getdate.h: Likewise.
38749         * lib/getdate.y: Likewise.
38750         * lib/getdomainname.c: Likewise.
38751         * lib/getdomainname.h: Likewise.
38752         * lib/getgroups.c: Likewise.
38753         * lib/gethostname.c: Likewise.
38754         * lib/gethrxtime.c: Likewise.
38755         * lib/gethrxtime.h: Likewise.
38756         * lib/getloadavg.c: Likewise.
38757         * lib/getndelim2.c: Likewise.
38758         * lib/getndelim2.h: Likewise.
38759         * lib/getnline.c: Likewise.
38760         * lib/getnline.h: Likewise.
38761         * lib/getopt.c: Likewise.
38762         * lib/getopt.in.h: Likewise.
38763         * lib/getopt1.c: Likewise.
38764         * lib/getopt_int.h: Likewise.
38765         * lib/getpagesize.h: Likewise.
38766         * lib/getsubopt.c: Likewise.
38767         * lib/gettime.c: Likewise.
38768         * lib/getugroups.c: Likewise.
38769         * lib/getugroups.h: Likewise.
38770         * lib/getusershell.c: Likewise.
38771         * lib/gl_anyavltree_list1.h: Likewise.
38772         * lib/gl_anyavltree_list2.h: Likewise.
38773         * lib/gl_anyhash_list1.h: Likewise.
38774         * lib/gl_anyhash_list2.h: Likewise.
38775         * lib/gl_anylinked_list1.h: Likewise.
38776         * lib/gl_anylinked_list2.h: Likewise.
38777         * lib/gl_anyrbtree_list1.h: Likewise.
38778         * lib/gl_anyrbtree_list2.h: Likewise.
38779         * lib/gl_anytree_list1.h: Likewise.
38780         * lib/gl_anytree_list2.h: Likewise.
38781         * lib/gl_anytree_oset.h: Likewise.
38782         * lib/gl_anytreehash_list1.h: Likewise.
38783         * lib/gl_anytreehash_list2.h: Likewise.
38784         * lib/gl_array_list.c: Likewise.
38785         * lib/gl_array_list.h: Likewise.
38786         * lib/gl_array_oset.c: Likewise.
38787         * lib/gl_array_oset.h: Likewise.
38788         * lib/gl_avltree_list.c: Likewise.
38789         * lib/gl_avltree_list.h: Likewise.
38790         * lib/gl_avltree_oset.c: Likewise.
38791         * lib/gl_avltree_oset.h: Likewise.
38792         * lib/gl_avltreehash_list.c: Likewise.
38793         * lib/gl_avltreehash_list.h: Likewise.
38794         * lib/gl_carray_list.c: Likewise.
38795         * lib/gl_carray_list.h: Likewise.
38796         * lib/gl_linked_list.c: Likewise.
38797         * lib/gl_linked_list.h: Likewise.
38798         * lib/gl_linkedhash_list.c: Likewise.
38799         * lib/gl_linkedhash_list.h: Likewise.
38800         * lib/gl_list.c: Likewise.
38801         * lib/gl_list.h: Likewise.
38802         * lib/gl_oset.c: Likewise.
38803         * lib/gl_oset.h: Likewise.
38804         * lib/gl_rbtree_list.c: Likewise.
38805         * lib/gl_rbtree_list.h: Likewise.
38806         * lib/gl_rbtree_oset.c: Likewise.
38807         * lib/gl_rbtree_oset.h: Likewise.
38808         * lib/gl_rbtreehash_list.c: Likewise.
38809         * lib/gl_rbtreehash_list.h: Likewise.
38810         * lib/gl_sublist.c: Likewise.
38811         * lib/gl_sublist.h: Likewise.
38812         * lib/group-member.c: Likewise.
38813         * lib/group-member.h: Likewise.
38814         * lib/hard-locale.c: Likewise.
38815         * lib/hard-locale.h: Likewise.
38816         * lib/hash-pjw.c: Likewise.
38817         * lib/hash-pjw.h: Likewise.
38818         * lib/hash-triple.c: Likewise.
38819         * lib/hash.c: Likewise.
38820         * lib/hash.h: Likewise.
38821         * lib/human.c: Likewise.
38822         * lib/human.h: Likewise.
38823         * lib/i-ring.c: Likewise.
38824         * lib/i-ring.h: Likewise.
38825         * lib/idcache.c: Likewise.
38826         * lib/imaxabs.c: Likewise.
38827         * lib/imaxdiv.c: Likewise.
38828         * lib/inet_pton.c: Likewise.
38829         * lib/inet_pton.h: Likewise.
38830         * lib/intprops.h: Likewise.
38831         * lib/inttostr.c: Likewise.
38832         * lib/inttostr.h: Likewise.
38833         * lib/inttypes.in.h: Likewise.
38834         * lib/isapipe.c: Likewise.
38835         * lib/isdir.c: Likewise.
38836         * lib/isnan.c: Likewise.
38837         * lib/isnan.h: Likewise.
38838         * lib/isnanf.c: Likewise.
38839         * lib/isnanf.h: Likewise.
38840         * lib/isnanl-nolibm.h: Likewise.
38841         * lib/isnanl.c: Likewise.
38842         * lib/isnanl.h: Likewise.
38843         * lib/javacomp.c: Likewise.
38844         * lib/javacomp.h: Likewise.
38845         * lib/javaexec.c: Likewise.
38846         * lib/javaexec.h: Likewise.
38847         * lib/javaversion.c: Likewise.
38848         * lib/javaversion.h: Likewise.
38849         * lib/javaversion.java: Likewise.
38850         * lib/lbrkprop.h: Likewise.
38851         * lib/lchmod.h: Likewise.
38852         * lib/lchown.c: Likewise.
38853         * lib/ldexpl.c: Likewise.
38854         * lib/linebreak.c: Likewise.
38855         * lib/linebreak.h: Likewise.
38856         * lib/linebuffer.c: Likewise.
38857         * lib/linebuffer.h: Likewise.
38858         * lib/locale.in.h: Likewise.
38859         * lib/logl.c: Likewise.
38860         * lib/long-options.c: Likewise.
38861         * lib/long-options.h: Likewise.
38862         * lib/lstat.c: Likewise.
38863         * lib/lstat.h: Likewise.
38864         * lib/math.in.h: Likewise.
38865         * lib/mbchar.c: Likewise.
38866         * lib/mbchar.h: Likewise.
38867         * lib/mbfile.h: Likewise.
38868         * lib/mbiter.h: Likewise.
38869         * lib/mbscasecmp.c: Likewise.
38870         * lib/mbscasestr.c: Likewise.
38871         * lib/mbschr.c: Likewise.
38872         * lib/mbscspn.c: Likewise.
38873         * lib/mbslen.c: Likewise.
38874         * lib/mbsncasecmp.c: Likewise.
38875         * lib/mbsnlen.c: Likewise.
38876         * lib/mbspbrk.c: Likewise.
38877         * lib/mbspcasecmp.c: Likewise.
38878         * lib/mbsrchr.c: Likewise.
38879         * lib/mbssep.c: Likewise.
38880         * lib/mbsspn.c: Likewise.
38881         * lib/mbsstr.c: Likewise.
38882         * lib/mbstok_r.c: Likewise.
38883         * lib/mbswidth.c: Likewise.
38884         * lib/mbswidth.h: Likewise.
38885         * lib/mbuiter.h: Likewise.
38886         * lib/memcasecmp.c: Likewise.
38887         * lib/memcasecmp.h: Likewise.
38888         * lib/memchr.c: Likewise.
38889         * lib/memcmp.c: Likewise.
38890         * lib/memcoll.c: Likewise.
38891         * lib/memcoll.h: Likewise.
38892         * lib/memcpy.c: Likewise.
38893         * lib/memrchr.c: Likewise.
38894         * lib/mkancesdirs.c: Likewise.
38895         * lib/mkdir-p.c: Likewise.
38896         * lib/mkdir-p.h: Likewise.
38897         * lib/mkdir.c: Likewise.
38898         * lib/mkdirat.c: Likewise.
38899         * lib/mkdtemp.c: Likewise.
38900         * lib/mkstemp-safer.c: Likewise.
38901         * lib/mkstemp.c: Likewise.
38902         * lib/modechange.c: Likewise.
38903         * lib/modechange.h: Likewise.
38904         * lib/mountlist.c: Likewise.
38905         * lib/mountlist.h: Likewise.
38906         * lib/mpsort.c: Likewise.
38907         * lib/nanosleep.c: Likewise.
38908         * lib/obstack.c: Likewise.
38909         * lib/obstack.h: Likewise.
38910         * lib/open-safer.c: Likewise.
38911         * lib/open.c: Likewise.
38912         * lib/openat-die.c: Likewise.
38913         * lib/openat-priv.h: Likewise.
38914         * lib/openat-proc.c: Likewise.
38915         * lib/openat.c: Likewise.
38916         * lib/openat.h: Likewise.
38917         * lib/pagealign_alloc.c: Likewise.
38918         * lib/pagealign_alloc.h: Likewise.
38919         * lib/physmem.c: Likewise.
38920         * lib/physmem.h: Likewise.
38921         * lib/pipe-safer.c: Likewise.
38922         * lib/pipe.c: Likewise.
38923         * lib/pipe.h: Likewise.
38924         * lib/posixtm.c: Likewise.
38925         * lib/posixtm.h: Likewise.
38926         * lib/posixver.c: Likewise.
38927         * lib/printf-frexp.c: Likewise.
38928         * lib/printf-frexp.h: Likewise.
38929         * lib/printf-frexpl.c: Likewise.
38930         * lib/printf-frexpl.h: Likewise.
38931         * lib/printf.c: Likewise.
38932         * lib/progname.c: Likewise.
38933         * lib/progname.h: Likewise.
38934         * lib/progreloc.c: Likewise.
38935         * lib/putenv.c: Likewise.
38936         * lib/quote.c: Likewise.
38937         * lib/quote.h: Likewise.
38938         * lib/quotearg.c: Likewise.
38939         * lib/quotearg.h: Likewise.
38940         * lib/raise.c: Likewise.
38941         * lib/readline.c: Likewise.
38942         * lib/readline.h: Likewise.
38943         * lib/readlink.c: Likewise.
38944         * lib/readtokens.c: Likewise.
38945         * lib/readtokens.h: Likewise.
38946         * lib/readtokens0.c: Likewise.
38947         * lib/readtokens0.h: Likewise.
38948         * lib/readutmp.c: Likewise.
38949         * lib/readutmp.h: Likewise.
38950         * lib/realloc.c: Likewise.
38951         * lib/relocwrapper.c: Likewise.
38952         * lib/rename-dest-slash.c: Likewise.
38953         * lib/rename.c: Likewise.
38954         * lib/rmdir.c: Likewise.
38955         * lib/rpmatch.c: Likewise.
38956         * lib/safe-read.c: Likewise.
38957         * lib/safe-read.h: Likewise.
38958         * lib/safe-write.c: Likewise.
38959         * lib/safe-write.h: Likewise.
38960         * lib/same-inode.h: Likewise.
38961         * lib/same.c: Likewise.
38962         * lib/same.h: Likewise.
38963         * lib/save-cwd.c: Likewise.
38964         * lib/save-cwd.h: Likewise.
38965         * lib/savedir.c: Likewise.
38966         * lib/savedir.h: Likewise.
38967         * lib/savewd.c: Likewise.
38968         * lib/savewd.h: Likewise.
38969         * lib/search.in.h: Likewise.
38970         * lib/setenv.c: Likewise.
38971         * lib/setenv.h: Likewise.
38972         * lib/settime.c: Likewise.
38973         * lib/sh-quote.c: Likewise.
38974         * lib/sh-quote.h: Likewise.
38975         * lib/sig2str.c: Likewise.
38976         * lib/sig2str.h: Likewise.
38977         * lib/signal.in.h: Likewise.
38978         * lib/signbitd.c: Likewise.
38979         * lib/signbitf.c: Likewise.
38980         * lib/signbitl.c: Likewise.
38981         * lib/sigprocmask.c: Likewise.
38982         * lib/sincosl.c: Likewise.
38983         * lib/sleep.c: Likewise.
38984         * lib/sprintf.c: Likewise.
38985         * lib/sqrtl.c: Likewise.
38986         * lib/stat-time.h: Likewise.
38987         * lib/stdio--.h: Likewise.
38988         * lib/stdio-safer.h: Likewise.
38989         * lib/stdlib--.h: Likewise.
38990         * lib/stdlib-safer.h: Likewise.
38991         * lib/stdlib.in.h: Likewise.
38992         * lib/stpcpy.c: Likewise.
38993         * lib/stpncpy.c: Likewise.
38994         * lib/strchrnul.c: Likewise.
38995         * lib/strcspn.c: Likewise.
38996         * lib/strerror.c: Likewise.
38997         * lib/strftime.c: Likewise.
38998         * lib/strftime.h: Likewise.
38999         * lib/striconveh.c: Likewise.
39000         * lib/striconveh.h: Likewise.
39001         * lib/striconveha.c: Likewise.
39002         * lib/striconveha.h: Likewise.
39003         * lib/stripslash.c: Likewise.
39004         * lib/strnlen1.c: Likewise.
39005         * lib/strnlen1.h: Likewise.
39006         * lib/strtod.c: Likewise.
39007         * lib/strtoimax.c: Likewise.
39008         * lib/strtok_r.c: Likewise.
39009         * lib/strtol.c: Likewise.
39010         * lib/strtoll.c: Likewise.
39011         * lib/strtoul.c: Likewise.
39012         * lib/strtoull.c: Likewise.
39013         * lib/sysexits.in.h: Likewise.
39014         * lib/tempname.c: Likewise.
39015         * lib/tempname.h: Likewise.
39016         * lib/timespec.h: Likewise.
39017         * lib/tls.c: Likewise.
39018         * lib/tls.h: Likewise.
39019         * lib/tmpdir.c: Likewise.
39020         * lib/tmpdir.h: Likewise.
39021         * lib/tmpfile-safer.c: Likewise.
39022         * lib/tmpfile.c: Likewise.
39023         * lib/trigl.c: Likewise.
39024         * lib/trigl.h: Likewise.
39025         * lib/trim.c: Likewise.
39026         * lib/trim.h: Likewise.
39027         * lib/trunc.c: Likewise.
39028         * lib/truncf.c: Likewise.
39029         * lib/truncl.c: Likewise.
39030         * lib/tsearch.c: Likewise.
39031         * lib/unicodeio.c: Likewise.
39032         * lib/unicodeio.h: Likewise.
39033         * lib/unistd--.h: Likewise.
39034         * lib/unistd-safer.h: Likewise.
39035         * lib/unistdio/ulc-fprintf.c: Likewise.
39036         * lib/unistdio/ulc-vfprintf.c: Likewise.
39037         * lib/unlinkdir.c: Likewise.
39038         * lib/unlinkdir.h: Likewise.
39039         * lib/unlocked-io.h: Likewise.
39040         * lib/unsetenv.c: Likewise.
39041         * lib/userspec.c: Likewise.
39042         * lib/utime.c: Likewise.
39043         * lib/utimecmp.c: Likewise.
39044         * lib/utimecmp.h: Likewise.
39045         * lib/utimens.c: Likewise.
39046         * lib/verify.h: Likewise.
39047         * lib/verror.c: Likewise.
39048         * lib/verror.h: Likewise.
39049         * lib/version-etc-fsf.c: Likewise.
39050         * lib/version-etc.c: Likewise.
39051         * lib/version-etc.h: Likewise.
39052         * lib/vfprintf.c: Likewise.
39053         * lib/vprintf.c: Likewise.
39054         * lib/vsprintf.c: Likewise.
39055         * lib/w32spawn.h: Likewise.
39056         * lib/wait-process.c: Likewise.
39057         * lib/wait-process.h: Likewise.
39058         * lib/wcwidth.c: Likewise.
39059         * lib/write-any-file.c: Likewise.
39060         * lib/xalloc-die.c: Likewise.
39061         * lib/xalloc.h: Likewise.
39062         * lib/xasprintf.c: Likewise.
39063         * lib/xgetcwd.c: Likewise.
39064         * lib/xgetcwd.h: Likewise.
39065         * lib/xgetdomainname.c: Likewise.
39066         * lib/xgetdomainname.h: Likewise.
39067         * lib/xgethostname.c: Likewise.
39068         * lib/xmalloc.c: Likewise.
39069         * lib/xmalloca.c: Likewise.
39070         * lib/xmalloca.h: Likewise.
39071         * lib/xmemcoll.c: Likewise.
39072         * lib/xnanosleep.c: Likewise.
39073         * lib/xreadlink.c: Likewise.
39074         * lib/xreadlink.h: Likewise.
39075         * lib/xsetenv.c: Likewise.
39076         * lib/xsetenv.h: Likewise.
39077         * lib/xstriconv.c: Likewise.
39078         * lib/xstriconv.h: Likewise.
39079         * lib/xstrndup.c: Likewise.
39080         * lib/xstrndup.h: Likewise.
39081         * lib/xstrtod.c: Likewise.
39082         * lib/xstrtod.h: Likewise.
39083         * lib/xstrtol-error.c: Likewise.
39084         * lib/xstrtol.c: Likewise.
39085         * lib/xstrtol.h: Likewise.
39086         * lib/xtime.h: Likewise.
39087         * lib/xvasprintf.c: Likewise.
39088         * lib/xvasprintf.h: Likewise.
39089         * lib/yesno.c: Likewise.
39090         * lib/yesno.h: Likewise.
39091         * posix-modules: Likewise.
39092         * tests/test-alloca-opt.c: Likewise.
39093         * tests/test-arcfour.c: Likewise.
39094         * tests/test-arctwo.c: Likewise.
39095         * tests/test-argmatch.c: Likewise.
39096         * tests/test-argp-2.sh: Likewise.
39097         * tests/test-argp.c: Likewise.
39098         * tests/test-arpa_inet.c: Likewise.
39099         * tests/test-array_list.c: Likewise.
39100         * tests/test-array_oset.c: Likewise.
39101         * tests/test-atexit.c: Likewise.
39102         * tests/test-avltree_list.c: Likewise.
39103         * tests/test-avltree_oset.c: Likewise.
39104         * tests/test-avltreehash_list.c: Likewise.
39105         * tests/test-base64.c: Likewise.
39106         * tests/test-binary-io.c: Likewise.
39107         * tests/test-byteswap.c: Likewise.
39108         * tests/test-c-ctype.c: Likewise.
39109         * tests/test-c-strcasecmp.c: Likewise.
39110         * tests/test-c-strcasestr.c: Likewise.
39111         * tests/test-c-strncasecmp.c: Likewise.
39112         * tests/test-c-strstr.c: Likewise.
39113         * tests/test-canonicalize-lgpl.c: Likewise.
39114         * tests/test-canonicalize.c: Likewise.
39115         * tests/test-carray_list.c: Likewise.
39116         * tests/test-ceilf.c: Likewise.
39117         * tests/test-ceill.c: Likewise.
39118         * tests/test-count-one-bits.c: Likewise.
39119         * tests/test-crc.c: Likewise.
39120         * tests/test-dirname.c: Likewise.
39121         * tests/test-fbufmode.c: Likewise.
39122         * tests/test-fcntl.c: Likewise.
39123         * tests/test-fflush.c: Likewise.
39124         * tests/test-floorf.c: Likewise.
39125         * tests/test-floorl.c: Likewise.
39126         * tests/test-fopen.c: Likewise.
39127         * tests/test-fprintf-posix.c: Likewise.
39128         * tests/test-fprintf-posix.h: Likewise.
39129         * tests/test-fpurge.c: Likewise.
39130         * tests/test-freadable.c: Likewise.
39131         * tests/test-freadahead.c: Likewise.
39132         * tests/test-freading.c: Likewise.
39133         * tests/test-freopen.c: Likewise.
39134         * tests/test-frexp.c: Likewise.
39135         * tests/test-frexpl.c: Likewise.
39136         * tests/test-fseek.c: Likewise.
39137         * tests/test-fseeko.c: Likewise.
39138         * tests/test-fseterr.c: Likewise.
39139         * tests/test-fstrcmp.c: Likewise.
39140         * tests/test-ftell.c: Likewise.
39141         * tests/test-ftello.c: Likewise.
39142         * tests/test-fwritable.c: Likewise.
39143         * tests/test-fwriting.c: Likewise.
39144         * tests/test-getaddrinfo.c: Likewise.
39145         * tests/test-getpass.c: Likewise.
39146         * tests/test-gettimeofday.c: Likewise.
39147         * tests/test-hmac-md5.c: Likewise.
39148         * tests/test-hmac-sha1.c: Likewise.
39149         * tests/test-iconv.c: Likewise.
39150         * tests/test-iconvme.c: Likewise.
39151         * tests/test-inttypes.c: Likewise.
39152         * tests/test-isnan.c: Likewise.
39153         * tests/test-isnanf.c: Likewise.
39154         * tests/test-isnanl-nolibm.c: Likewise.
39155         * tests/test-isnanl.c: Likewise.
39156         * tests/test-isnanl.h: Likewise.
39157         * tests/test-ldexpl.c: Likewise.
39158         * tests/test-linked_list.c: Likewise.
39159         * tests/test-linkedhash_list.c: Likewise.
39160         * tests/test-locale.c: Likewise.
39161         * tests/test-localename.c: Likewise.
39162         * tests/test-lock.c: Likewise.
39163         * tests/test-lseek.c: Likewise.
39164         * tests/test-malloca.c: Likewise.
39165         * tests/test-math.c: Likewise.
39166         * tests/test-mbscasecmp.c: Likewise.
39167         * tests/test-mbscasestr1.c: Likewise.
39168         * tests/test-mbscasestr2.c: Likewise.
39169         * tests/test-mbscasestr3.c: Likewise.
39170         * tests/test-mbscasestr4.c: Likewise.
39171         * tests/test-mbschr.c: Likewise.
39172         * tests/test-mbscspn.c: Likewise.
39173         * tests/test-mbsncasecmp.c: Likewise.
39174         * tests/test-mbspbrk.c: Likewise.
39175         * tests/test-mbspcasecmp.c: Likewise.
39176         * tests/test-mbsrchr.c: Likewise.
39177         * tests/test-mbsspn.c: Likewise.
39178         * tests/test-mbsstr1.c: Likewise.
39179         * tests/test-mbsstr2.c: Likewise.
39180         * tests/test-mbsstr3.c: Likewise.
39181         * tests/test-md5.c: Likewise.
39182         * tests/test-memmem.c: Likewise.
39183         * tests/test-netinet_in.c: Likewise.
39184         * tests/test-open.c: Likewise.
39185         * tests/test-printf-frexp.c: Likewise.
39186         * tests/test-printf-frexpl.c: Likewise.
39187         * tests/test-printf-posix.c: Likewise.
39188         * tests/test-printf-posix.h: Likewise.
39189         * tests/test-rbtree_list.c: Likewise.
39190         * tests/test-rbtree_oset.c: Likewise.
39191         * tests/test-rbtreehash_list.c: Likewise.
39192         * tests/test-read-file.c: Likewise.
39193         * tests/test-rijndael.c: Likewise.
39194         * tests/test-search.c: Likewise.
39195         * tests/test-signbit.c: Likewise.
39196         * tests/test-sleep.c: Likewise.
39197         * tests/test-snprintf-posix.c: Likewise.
39198         * tests/test-snprintf-posix.h: Likewise.
39199         * tests/test-snprintf.c: Likewise.
39200         * tests/test-sprintf-posix.c: Likewise.
39201         * tests/test-sprintf-posix.h: Likewise.
39202         * tests/test-stat-time.c: Likewise.
39203         * tests/test-stdbool.c: Likewise.
39204         * tests/test-stdint.c: Likewise.
39205         * tests/test-stdio.c: Likewise.
39206         * tests/test-stdlib.c: Likewise.
39207         * tests/test-stpncpy.c: Likewise.
39208         * tests/test-strcasestr.c: Likewise.
39209         * tests/test-striconv.c: Likewise.
39210         * tests/test-striconveh.c: Likewise.
39211         * tests/test-striconveha.c: Likewise.
39212         * tests/test-string.c: Likewise.
39213         * tests/test-sys_select.c: Likewise.
39214         * tests/test-sys_socket.c: Likewise.
39215         * tests/test-sys_stat.c: Likewise.
39216         * tests/test-sys_time.c: Likewise.
39217         * tests/test-sysexits.c: Likewise.
39218         * tests/test-time.c: Likewise.
39219         * tests/test-tls.c: Likewise.
39220         * tests/test-trunc.c: Likewise.
39221         * tests/test-truncf.c: Likewise.
39222         * tests/test-truncl.c: Likewise.
39223         * tests/test-unistd.c: Likewise.
39224         * tests/test-vasnprintf-posix.c: Likewise.
39225         * tests/test-vasnprintf-posix2.c: Likewise.
39226         * tests/test-vasnprintf.c: Likewise.
39227         * tests/test-vasprintf-posix.c: Likewise.
39228         * tests/test-vasprintf.c: Likewise.
39229         * tests/test-verify.c: Likewise.
39230         * tests/test-vfprintf-posix.c: Likewise.
39231         * tests/test-vprintf-posix.c: Likewise.
39232         * tests/test-vsnprintf-posix.c: Likewise.
39233         * tests/test-vsnprintf.c: Likewise.
39234         * tests/test-vsprintf-posix.c: Likewise.
39235         * tests/test-wchar.c: Likewise.
39236         * tests/test-wctype.c: Likewise.
39237         * tests/test-wcwidth.c: Likewise.
39238         * tests/test-xstrtol.c: Likewise.
39239         * tests/test-xvasprintf.c: Likewise.
39240         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39241         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39242         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39243         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39244         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39245         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39246         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39247         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39248         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39249         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39250         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39251         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39252         * tests/uniname/test-uninames.c: Likewise.
39253         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39254         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
39255         * tests/unistdio/test-u16-printf1.h: Likewise.
39256         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39257         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39258         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39259         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39260         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39261         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39262         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39263         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
39264         * tests/unistdio/test-u32-printf1.h: Likewise.
39265         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39266         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39267         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39268         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39269         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39270         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39271         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39272         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
39273         * tests/unistdio/test-u8-printf1.h: Likewise.
39274         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39275         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39276         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39277         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39278         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39279         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39280         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39281         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
39282         * tests/unistdio/test-ulc-printf1.h: Likewise.
39283         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39284         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39285         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39286         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39287         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39288         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39289         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39290         * tests/uniwidth/test-u16-width.c: Likewise.
39291         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39292         * tests/uniwidth/test-u32-width.c: Likewise.
39293         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39294         * tests/uniwidth/test-u8-width.c: Likewise.
39295         * tests/uniwidth/test-uc_width.c: Likewise.
39296         * config/srclist-update: Likewise.
39297         (fixlicense): Update to GPLv3+.
39298
39299         Change copyright notice from LGPLv2.1+ to LGPLv3+.
39300         * tests/test-tsearch.c: Change copyright notice.
39301
39302         Change copyright notice from LGPLv2.0+ to LGPLv3+.
39303         * lib/c-strcaseeq.h: Change copyright notice.
39304         * lib/streq.h: Likewise.
39305         * lib/uniconv.h: Likewise.
39306         * lib/uniconv/u-conv-from-enc.h: Likewise.
39307         * lib/uniconv/u-conv-to-enc.h: Likewise.
39308         * lib/uniconv/u-strconv-from-enc.h: Likewise.
39309         * lib/uniconv/u-strconv-to-enc.h: Likewise.
39310         * lib/uniconv/u16-conv-from-enc.c: Likewise.
39311         * lib/uniconv/u16-conv-to-enc.c: Likewise.
39312         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
39313         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
39314         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
39315         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
39316         * lib/uniconv/u32-conv-from-enc.c: Likewise.
39317         * lib/uniconv/u32-conv-to-enc.c: Likewise.
39318         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
39319         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
39320         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
39321         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
39322         * lib/uniconv/u8-conv-from-enc.c: Likewise.
39323         * lib/uniconv/u8-conv-to-enc.c: Likewise.
39324         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
39325         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
39326         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
39327         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
39328         * lib/uniname.h: Likewise.
39329         * lib/uniname/uniname.c: Likewise.
39330         * lib/unistdio.h: Likewise.
39331         * lib/unistdio/u-asnprintf.h: Likewise.
39332         * lib/unistdio/u-asprintf.h: Likewise.
39333         * lib/unistdio/u-printf-args.c: Likewise.
39334         * lib/unistdio/u-printf-args.h: Likewise.
39335         * lib/unistdio/u-printf-parse.h: Likewise.
39336         * lib/unistdio/u-snprintf.h: Likewise.
39337         * lib/unistdio/u-sprintf.h: Likewise.
39338         * lib/unistdio/u-vasprintf.h: Likewise.
39339         * lib/unistdio/u-vsnprintf.h: Likewise.
39340         * lib/unistdio/u-vsprintf.h: Likewise.
39341         * lib/unistdio/u16-asnprintf.c: Likewise.
39342         * lib/unistdio/u16-asprintf.c: Likewise.
39343         * lib/unistdio/u16-printf-parse.c: Likewise.
39344         * lib/unistdio/u16-snprintf.c: Likewise.
39345         * lib/unistdio/u16-sprintf.c: Likewise.
39346         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
39347         * lib/unistdio/u16-u16-asprintf.c: Likewise.
39348         * lib/unistdio/u16-u16-snprintf.c: Likewise.
39349         * lib/unistdio/u16-u16-sprintf.c: Likewise.
39350         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
39351         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
39352         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
39353         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
39354         * lib/unistdio/u16-vasnprintf.c: Likewise.
39355         * lib/unistdio/u16-vasprintf.c: Likewise.
39356         * lib/unistdio/u16-vsnprintf.c: Likewise.
39357         * lib/unistdio/u16-vsprintf.c: Likewise.
39358         * lib/unistdio/u32-asnprintf.c: Likewise.
39359         * lib/unistdio/u32-asprintf.c: Likewise.
39360         * lib/unistdio/u32-printf-parse.c: Likewise.
39361         * lib/unistdio/u32-snprintf.c: Likewise.
39362         * lib/unistdio/u32-sprintf.c: Likewise.
39363         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
39364         * lib/unistdio/u32-u32-asprintf.c: Likewise.
39365         * lib/unistdio/u32-u32-snprintf.c: Likewise.
39366         * lib/unistdio/u32-u32-sprintf.c: Likewise.
39367         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
39368         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
39369         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
39370         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
39371         * lib/unistdio/u32-vasnprintf.c: Likewise.
39372         * lib/unistdio/u32-vasprintf.c: Likewise.
39373         * lib/unistdio/u32-vsnprintf.c: Likewise.
39374         * lib/unistdio/u32-vsprintf.c: Likewise.
39375         * lib/unistdio/u8-asnprintf.c: Likewise.
39376         * lib/unistdio/u8-asprintf.c: Likewise.
39377         * lib/unistdio/u8-printf-parse.c: Likewise.
39378         * lib/unistdio/u8-snprintf.c: Likewise.
39379         * lib/unistdio/u8-sprintf.c: Likewise.
39380         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
39381         * lib/unistdio/u8-u8-asprintf.c: Likewise.
39382         * lib/unistdio/u8-u8-snprintf.c: Likewise.
39383         * lib/unistdio/u8-u8-sprintf.c: Likewise.
39384         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
39385         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
39386         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
39387         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
39388         * lib/unistdio/u8-vasnprintf.c: Likewise.
39389         * lib/unistdio/u8-vasprintf.c: Likewise.
39390         * lib/unistdio/u8-vsnprintf.c: Likewise.
39391         * lib/unistdio/u8-vsprintf.c: Likewise.
39392         * lib/unistdio/ulc-asnprintf.c: Likewise.
39393         * lib/unistdio/ulc-asprintf.c: Likewise.
39394         * lib/unistdio/ulc-printf-parse.c: Likewise.
39395         * lib/unistdio/ulc-snprintf.c: Likewise.
39396         * lib/unistdio/ulc-sprintf.c: Likewise.
39397         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39398         * lib/unistdio/ulc-vasprintf.c: Likewise.
39399         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39400         * lib/unistdio/ulc-vsprintf.c: Likewise.
39401         * lib/unistr.h: Likewise.
39402         * lib/unistr/u-cpy-alloc.h: Likewise.
39403         * lib/unistr/u-cpy.h: Likewise.
39404         * lib/unistr/u-endswith.h: Likewise.
39405         * lib/unistr/u-move.h: Likewise.
39406         * lib/unistr/u-set.h: Likewise.
39407         * lib/unistr/u-startswith.h: Likewise.
39408         * lib/unistr/u-stpcpy.h: Likewise.
39409         * lib/unistr/u-stpncpy.h: Likewise.
39410         * lib/unistr/u-strcat.h: Likewise.
39411         * lib/unistr/u-strcpy.h: Likewise.
39412         * lib/unistr/u-strcspn.h: Likewise.
39413         * lib/unistr/u-strdup.h: Likewise.
39414         * lib/unistr/u-strlen.h: Likewise.
39415         * lib/unistr/u-strncat.h: Likewise.
39416         * lib/unistr/u-strncpy.h: Likewise.
39417         * lib/unistr/u-strnlen.h: Likewise.
39418         * lib/unistr/u-strpbrk.h: Likewise.
39419         * lib/unistr/u-strspn.h: Likewise.
39420         * lib/unistr/u-strstr.h: Likewise.
39421         * lib/unistr/u-strtok.h: Likewise.
39422         * lib/unistr/u16-check.c: Likewise.
39423         * lib/unistr/u16-chr.c: Likewise.
39424         * lib/unistr/u16-cmp.c: Likewise.
39425         * lib/unistr/u16-cpy-alloc.c: Likewise.
39426         * lib/unistr/u16-cpy.c: Likewise.
39427         * lib/unistr/u16-endswith.c: Likewise.
39428         * lib/unistr/u16-mblen.c: Likewise.
39429         * lib/unistr/u16-mbsnlen.c: Likewise.
39430         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39431         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39432         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39433         * lib/unistr/u16-mbtouc.c: Likewise.
39434         * lib/unistr/u16-mbtoucr.c: Likewise.
39435         * lib/unistr/u16-move.c: Likewise.
39436         * lib/unistr/u16-next.c: Likewise.
39437         * lib/unistr/u16-prev.c: Likewise.
39438         * lib/unistr/u16-set.c: Likewise.
39439         * lib/unistr/u16-startswith.c: Likewise.
39440         * lib/unistr/u16-stpcpy.c: Likewise.
39441         * lib/unistr/u16-stpncpy.c: Likewise.
39442         * lib/unistr/u16-strcat.c: Likewise.
39443         * lib/unistr/u16-strchr.c: Likewise.
39444         * lib/unistr/u16-strcmp.c: Likewise.
39445         * lib/unistr/u16-strcpy.c: Likewise.
39446         * lib/unistr/u16-strcspn.c: Likewise.
39447         * lib/unistr/u16-strdup.c: Likewise.
39448         * lib/unistr/u16-strlen.c: Likewise.
39449         * lib/unistr/u16-strmblen.c: Likewise.
39450         * lib/unistr/u16-strmbtouc.c: Likewise.
39451         * lib/unistr/u16-strncat.c: Likewise.
39452         * lib/unistr/u16-strncmp.c: Likewise.
39453         * lib/unistr/u16-strncpy.c: Likewise.
39454         * lib/unistr/u16-strnlen.c: Likewise.
39455         * lib/unistr/u16-strpbrk.c: Likewise.
39456         * lib/unistr/u16-strrchr.c: Likewise.
39457         * lib/unistr/u16-strspn.c: Likewise.
39458         * lib/unistr/u16-strstr.c: Likewise.
39459         * lib/unistr/u16-strtok.c: Likewise.
39460         * lib/unistr/u16-to-u32.c: Likewise.
39461         * lib/unistr/u16-to-u8.c: Likewise.
39462         * lib/unistr/u16-uctomb-aux.c: Likewise.
39463         * lib/unistr/u16-uctomb.c: Likewise.
39464         * lib/unistr/u32-check.c: Likewise.
39465         * lib/unistr/u32-chr.c: Likewise.
39466         * lib/unistr/u32-cmp.c: Likewise.
39467         * lib/unistr/u32-cpy-alloc.c: Likewise.
39468         * lib/unistr/u32-cpy.c: Likewise.
39469         * lib/unistr/u32-endswith.c: Likewise.
39470         * lib/unistr/u32-mblen.c: Likewise.
39471         * lib/unistr/u32-mbsnlen.c: Likewise.
39472         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39473         * lib/unistr/u32-mbtouc.c: Likewise.
39474         * lib/unistr/u32-mbtoucr.c: Likewise.
39475         * lib/unistr/u32-move.c: Likewise.
39476         * lib/unistr/u32-next.c: Likewise.
39477         * lib/unistr/u32-prev.c: Likewise.
39478         * lib/unistr/u32-set.c: Likewise.
39479         * lib/unistr/u32-startswith.c: Likewise.
39480         * lib/unistr/u32-stpcpy.c: Likewise.
39481         * lib/unistr/u32-stpncpy.c: Likewise.
39482         * lib/unistr/u32-strcat.c: Likewise.
39483         * lib/unistr/u32-strchr.c: Likewise.
39484         * lib/unistr/u32-strcmp.c: Likewise.
39485         * lib/unistr/u32-strcpy.c: Likewise.
39486         * lib/unistr/u32-strcspn.c: Likewise.
39487         * lib/unistr/u32-strdup.c: Likewise.
39488         * lib/unistr/u32-strlen.c: Likewise.
39489         * lib/unistr/u32-strmblen.c: Likewise.
39490         * lib/unistr/u32-strmbtouc.c: Likewise.
39491         * lib/unistr/u32-strncat.c: Likewise.
39492         * lib/unistr/u32-strncmp.c: Likewise.
39493         * lib/unistr/u32-strncpy.c: Likewise.
39494         * lib/unistr/u32-strnlen.c: Likewise.
39495         * lib/unistr/u32-strpbrk.c: Likewise.
39496         * lib/unistr/u32-strrchr.c: Likewise.
39497         * lib/unistr/u32-strspn.c: Likewise.
39498         * lib/unistr/u32-strstr.c: Likewise.
39499         * lib/unistr/u32-strtok.c: Likewise.
39500         * lib/unistr/u32-to-u16.c: Likewise.
39501         * lib/unistr/u32-to-u8.c: Likewise.
39502         * lib/unistr/u32-uctomb.c: Likewise.
39503         * lib/unistr/u8-check.c: Likewise.
39504         * lib/unistr/u8-chr.c: Likewise.
39505         * lib/unistr/u8-cmp.c: Likewise.
39506         * lib/unistr/u8-cpy-alloc.c: Likewise.
39507         * lib/unistr/u8-cpy.c: Likewise.
39508         * lib/unistr/u8-endswith.c: Likewise.
39509         * lib/unistr/u8-mblen.c: Likewise.
39510         * lib/unistr/u8-mbsnlen.c: Likewise.
39511         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39512         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39513         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39514         * lib/unistr/u8-mbtouc.c: Likewise.
39515         * lib/unistr/u8-mbtoucr.c: Likewise.
39516         * lib/unistr/u8-move.c: Likewise.
39517         * lib/unistr/u8-next.c: Likewise.
39518         * lib/unistr/u8-prev.c: Likewise.
39519         * lib/unistr/u8-set.c: Likewise.
39520         * lib/unistr/u8-startswith.c: Likewise.
39521         * lib/unistr/u8-stpcpy.c: Likewise.
39522         * lib/unistr/u8-stpncpy.c: Likewise.
39523         * lib/unistr/u8-strcat.c: Likewise.
39524         * lib/unistr/u8-strchr.c: Likewise.
39525         * lib/unistr/u8-strcmp.c: Likewise.
39526         * lib/unistr/u8-strcpy.c: Likewise.
39527         * lib/unistr/u8-strcspn.c: Likewise.
39528         * lib/unistr/u8-strdup.c: Likewise.
39529         * lib/unistr/u8-strlen.c: Likewise.
39530         * lib/unistr/u8-strmblen.c: Likewise.
39531         * lib/unistr/u8-strmbtouc.c: Likewise.
39532         * lib/unistr/u8-strncat.c: Likewise.
39533         * lib/unistr/u8-strncmp.c: Likewise.
39534         * lib/unistr/u8-strncpy.c: Likewise.
39535         * lib/unistr/u8-strnlen.c: Likewise.
39536         * lib/unistr/u8-strpbrk.c: Likewise.
39537         * lib/unistr/u8-strrchr.c: Likewise.
39538         * lib/unistr/u8-strspn.c: Likewise.
39539         * lib/unistr/u8-strstr.c: Likewise.
39540         * lib/unistr/u8-strtok.c: Likewise.
39541         * lib/unistr/u8-to-u16.c: Likewise.
39542         * lib/unistr/u8-to-u32.c: Likewise.
39543         * lib/unistr/u8-uctomb-aux.c: Likewise.
39544         * lib/unistr/u8-uctomb.c: Likewise.
39545         * lib/unitypes.h: Likewise.
39546         * lib/uniwidth.h: Likewise.
39547         * lib/uniwidth/cjk.h: Likewise.
39548         * lib/uniwidth/u16-strwidth.c: Likewise.
39549         * lib/uniwidth/u16-width.c: Likewise.
39550         * lib/uniwidth/u32-strwidth.c: Likewise.
39551         * lib/uniwidth/u32-width.c: Likewise.
39552         * lib/uniwidth/u8-strwidth.c: Likewise.
39553         * lib/uniwidth/u8-width.c: Likewise.
39554         * lib/uniwidth/width.c: Likewise.
39555
39556 2007-10-07  Bruno Haible  <bruno@clisp.org>
39557
39558         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39559         The file is still under LGPL (see modules/inttypes).
39560
39561 2007-10-06  Bruno Haible  <bruno@clisp.org>
39562
39563         * modules/trunc (Dependencies): Add 'extensions'.
39564         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39565         Reported by Ben Pfaff <blp@gnu.org>.
39566
39567 2007-10-06  Bruno Haible  <bruno@clisp.org>
39568
39569         * modules/freopen-tests: New file.
39570         * tests/test-freopen.c: New file.
39571
39572         * modules/fopen-tests: New file.
39573         * tests/test-fopen.c: New file.
39574
39575         * modules/fopen: New file.
39576         * lib/fopen.c: New file.
39577         * m4/fopen.m4: New file.
39578         * modules/freopen: New file.
39579         * lib/freopen.c: New file.
39580         * m4/freopen.m4: New file.
39581         * lib/stdio.in.h (fopen, freopen): New declarations.
39582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39583         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39584         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39585         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39586         * doc/functions/fopen.texi: Mention the 'fopen' module.
39587         * doc/functions/freopen.texi: Mention the 'freopen' module.
39588
39589 2007-10-06  Bruno Haible  <bruno@clisp.org>
39590
39591         * modules/open-tests: New file.
39592         * tests/test-open.c: New file.
39593
39594         * modules/open: New file.
39595         * lib/open.c: New file.
39596         * m4/open.m4: New file.
39597         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39598         lib/open.c does.
39599         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39600         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39601         macros.
39602         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39603         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39604         REPLACE_OPEN.
39605         * doc/functions/open.texi: Mention the 'open' module.
39606
39607 2007-10-04  Bruno Haible  <bruno@clisp.org>
39608
39609         * modules/ceill-tests: New file.
39610         * tests/test-ceill.c: New file.
39611
39612         * modules/ceill: New file.
39613         * lib/ceill.c: Replace entire file.
39614         * m4/ceill.m4: New file.
39615         * lib/math.in.h (ceill): Replace declaration.
39616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39617         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39618         * doc/functions/ceill.texi: Mention the 'ceill' module.
39619         * modules/mathl (Files): Remove lib/ceill.c.
39620         (Depends-on): Add ceill.
39621
39622 2007-10-04  Bruno Haible  <bruno@clisp.org>
39623
39624         * modules/ceilf-tests: New file.
39625         * tests/test-ceilf.c: New file.
39626
39627         * modules/ceilf: New file.
39628         * lib/ceil.c: New file.
39629         * lib/ceilf.c: New file.
39630         * m4/ceilf.m4: New file.
39631         * lib/math.in.h (ceilf): New declaration.
39632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39633         HAVE_DECL_CEILF.
39634         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39635         HAVE_DECL_CEILF.
39636         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39637
39638 2007-10-04  Bruno Haible  <bruno@clisp.org>
39639
39640         * modules/floorl-tests: New file.
39641         * tests/test-floorl.c: New file.
39642
39643         * modules/floorl: New file.
39644         * lib/floorl.c: Replace entire file.
39645         * m4/floorl.m4: New file.
39646         * lib/math.in.h (floorl): Replace declaration.
39647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39648         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39649         * doc/functions/floorl.texi: Mention the 'floorl' module.
39650         * modules/mathl (Files): Remove lib/floorl.c.
39651         (Depends-on): Add floorl.
39652
39653 2007-10-04  Bruno Haible  <bruno@clisp.org>
39654
39655         * modules/floorf-tests: New file.
39656         * tests/test-floorf.c: New file.
39657
39658         * modules/floorf: New file.
39659         * lib/floor.c: New file.
39660         * lib/floorf.c: New file.
39661         * m4/floorf.m4: New file.
39662         * lib/math.in.h (floorf): New declaration.
39663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39664         HAVE_DECL_FLOORF.
39665         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39666         HAVE_DECL_FLOORF.
39667         * doc/functions/floorf.texi: Mention the 'floorf' module.
39668
39669 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39670             Bruno Haible  <bruno@clisp.org>
39671
39672         Advertise for the Git server instead of the CVS server.
39673         * doc/gnulib-intro.texi (Steady Development): Mention the Git
39674         repository instead of the CVS one.
39675         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
39676         about all VCS systems generically.
39677         * doc/gnulib.texi (Introduction): Capitalize `Git'.
39678
39679 2007-10-04  Bruno Haible  <bruno@clisp.org>
39680
39681         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
39682         means.
39683         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
39684
39685 2007-10-04  Bruno Haible  <bruno@clisp.org>
39686
39687         * modules/truncl-tests: New file.
39688         * tests/test-truncl.c: New file.
39689
39690         * modules/truncl: New file.
39691         * lib/truncl.c: New file.
39692         * m4/truncl.m4: New file.
39693         * lib/math.in.h (truncl): New declaration.
39694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
39695         HAVE_DECL_TRUNCL.
39696         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
39697         HAVE_DECL_TRUNCL.
39698         * doc/functions/truncl.texi: Mention the 'truncl' module.
39699
39700 2007-10-04  Bruno Haible  <bruno@clisp.org>
39701
39702         * modules/truncf-tests: New file.
39703         * tests/test-truncf.c: New file.
39704
39705         * modules/truncf: New file.
39706         * lib/trunc.c: Make paramerizable through USE_* macros.
39707         * lib/truncf.c: New file.
39708         * m4/truncf.m4: New file.
39709         * lib/math.in.h (truncf): New declaration.
39710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
39711         HAVE_DECL_TRUNCF.
39712         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
39713         HAVE_DECL_TRUNCF.
39714         * doc/functions/truncf.texi: Mention the 'truncf' module.
39715
39716 2007-10-03  Bruno Haible  <bruno@clisp.org>
39717
39718         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39719         augmentation also for tests modules.
39720         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
39721         * modules/atexit-tests (Makefile.am): Likewise.
39722         * modules/binary-io-tests (Makefile.am): Likewise.
39723         * modules/c-strcase-tests (Makefile.am): Likewise.
39724         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
39725         * modules/canonicalize-tests (Makefile.am): Likewise.
39726         * modules/closein-tests (Makefile.am): Likewise.
39727         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39728         * modules/freadahead-tests (Makefile.am): Likewise.
39729         * modules/fseek-tests (Makefile.am): Likewise.
39730         * modules/fseeko-tests (Makefile.am): Likewise.
39731         * modules/ftell-tests (Makefile.am): Likewise.
39732         * modules/ftello-tests (Makefile.am): Likewise.
39733         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
39734         * modules/isnanl-tests (Makefile.am): Likewise.
39735         * modules/lseek-tests (Makefile.am): Likewise.
39736         * modules/mbscasecmp-tests (Makefile.am): Likewise.
39737         * modules/mbscasestr-tests (Makefile.am): Likewise.
39738         * modules/mbschr-tests (Makefile.am): Likewise.
39739         * modules/mbscspn-tests (Makefile.am): Likewise.
39740         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
39741         * modules/mbspbrk-tests (Makefile.am): Likewise.
39742         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
39743         * modules/mbsrchr-tests (Makefile.am): Likewise.
39744         * modules/mbsspn-tests (Makefile.am): Likewise.
39745         * modules/mbsstr-tests (Makefile.am): Likewise.
39746         * modules/printf-posix-tests (Makefile.am): Likewise.
39747         * modules/snprintf-posix-tests (Makefile.am): Likewise.
39748         * modules/sprintf-posix-tests (Makefile.am): Likewise.
39749         * modules/tsearch-tests (Makefile.am): Likewise.
39750         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39751         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
39752         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
39753         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39754         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39755         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39756         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39757         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39758         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
39759         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
39760         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39761         * modules/xstrtol-tests (Makefile.am): Likewise.
39762         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39763         * modules/yesno-tests (Makefile.am): Likewise.
39764
39765 2007-10-03  Bruno Haible  <bruno@clisp.org>
39766
39767         * modules/trunc-tests: New file.
39768         * tests/test-trunc.c: New file.
39769
39770         * modules/trunc: New file.
39771         * lib/trunc.c: New file.
39772         * m4/trunc.m4: New file.
39773         * lib/math.in.h (trunc): New declaration.
39774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
39775         HAVE_DECL_TRUNC.
39776         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
39777         HAVE_DECL_TRUNC.
39778         * doc/functions/trunc.texi: Mention the 'trunc' module.
39779
39780 2007-10-03  Bruno Haible  <bruno@clisp.org>
39781
39782         * tests/test-fpending.c: New file, mostly copied
39783         from coreutils/lib/t-fpending.c.
39784         * modules/fpending-tests: New file.
39785
39786 2007-10-03  Bruno Haible  <bruno@clisp.org>
39787
39788         Port the stdio extensions to QNX (untested).
39789         * lib/fseterr.c (fseterr): Add support for QNX.
39790         * lib/fbufmode.c (fbufmode): Likewise.
39791         * lib/freadable.c (freadable): Likewise.
39792         * lib/fwritable.c (fwritable): Likewise.
39793         * lib/freading.c (freading): Likewise.
39794         * lib/fwriting.c (fwriting): Likewise.
39795         * lib/freadahead.c (freadahed): Likewise.
39796         * lib/fpurge.c (fpurge): Likewise.
39797         * lib/fseeko.c (rpl_fseeko): Likewise.
39798
39799 2007-10-03  Bruno Haible  <bruno@clisp.org>
39800             Jim Meyering  <jim@meyering.net>
39801             Eric Blake  <ebb9@byu.net>
39802
39803         * doc/relocatable.texi: Use @command instead of @program.
39804
39805 2007-10-02  Jim Meyering  <jim@meyering.net>
39806
39807         Perform one more "_.h" -> ".in.h" substitution.
39808         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
39809         instead of unistd_.h here, too.
39810
39811 2007-10-01  Bruno Haible  <bruno@clisp.org>
39812
39813         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
39814         Needed for the alloca-opt module.
39815
39816 2007-09-30  Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/alloca.in.h: Renamed from lib/alloca_.h.
39819         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
39820         alloca_.h.
39821         * lib/argz.in.h: Renamed from lib/argz_.h.
39822         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
39823         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39824         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
39825         byteswap_.h.
39826         * lib/dirent.in.h: Renamed from lib/dirent_.h.
39827         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
39828         dirent_.h.
39829         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
39830         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
39831         fcntl_.h.
39832         * lib/float.in.h: Renamed from lib/float_.h.
39833         * modules/float (Files, Makefile.am): Use float.in.h instead of
39834         float_.h.
39835         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
39836         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
39837         fnmatch_.h.
39838         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39839         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39840         getopt_.h.
39841         * lib/glob.in.h: Renamed from lib/glob_.h.
39842         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39843         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39844         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39845         iconv_.h.
39846         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39847         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39848         inttypes_.h.
39849         * lib/locale.in.h: Renamed from lib/locale_.h.
39850         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39851         locale_.h.
39852         * lib/math.in.h: Renamed from lib/math_.h.
39853         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39854         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39855         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39856         of netinet_in_.h. Add dependency.
39857         * lib/poll.in.h: Renamed from lib/poll_.h.
39858         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39859         * lib/search.in.h: Renamed from lib/search_.h.
39860         * modules/search (Files, Makefile.am): Use search.in.h instead of
39861         search_.h.
39862         * lib/signal.in.h: Renamed from lib/signal_.h.
39863         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39864         _signal.h.
39865         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39866         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39867         stdbool_.h.
39868         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39869         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39870         stdint_.h.
39871         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39872         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39873         stdio_.h.
39874         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39875         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39876         stdlib_.h.
39877         * lib/string.in.h: Renamed from lib/string_.h.
39878         * modules/string (Files, Makefile.am): Use string.in.h instead of
39879         string_.h.
39880         * doc/gnulib-tool.texi (Initial import): Update.
39881         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39882         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39883         of sys_select_.h. Add dependency.
39884         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39885         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39886         of sys_socket_.h.
39887         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39888         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39889         sys_stat_.h.
39890         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39891         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39892         sys_time_.h.
39893         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39894         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39895         sysexits_.h.
39896         * lib/time.in.h: Renamed from lib/time_.h.
39897         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39898         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39899         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39900         unistd_.h.
39901         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39902         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39903         wchar_.h.
39904         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39905         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39906         wctype_.h.
39907         * build-aux/bootstrap (slurp): Update.
39908         * lib/.cppi-disable: Update.
39909
39910 2007-09-30  Bruno Haible  <bruno@clisp.org>
39911
39912         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39913         Needed on BeOS.
39914
39915 2007-09-30  Bruno Haible  <bruno@clisp.org>
39916
39917         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39918
39919 2007-09-29  Bruno Haible  <bruno@clisp.org>
39920
39921         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39922
39923 2007-09-29  Bruno Haible  <bruno@clisp.org>
39924
39925         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39926         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39927         * build-aux/install-reloc: Compile also areadlink.c.
39928         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39929
39930 2007-09-29  Bruno Haible  <bruno@clisp.org>
39931
39932         * gnulib-tool (func_emit_initmacro_done): Indentation.
39933
39934 2007-09-29  Bruno Haible  <bruno@clisp.org>
39935
39936         * README: Add CVS checkout update instructions.
39937         Info from Bob Proulx <bob@proulx.com>.
39938
39939 2007-09-28  Eric Blake  <ebb9@byu.net>
39940
39941         Provide move-if-change.
39942         * build-aux/move-if-change: New file, based on best practice
39943         rather than any canonical upstream location.
39944
39945 2007-09-28  Jim Meyering  <jim@meyering.net>
39946
39947         Fix canonicalize loop-detection corner case.
39948         Do not attempt to stat the symlink values stored via seen_triple.
39949         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39950         on linux-2.6.18, (but not 2.6.22).
39951         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39952         triple_compare.  The former compares dev,ino,filename, while the latter
39953         would actually stat dirname(filename) when dev and ino were equal.
39954         * lib/hash-triple.c: Install <string.h>.
39955         (STREQ): Define.
39956         (triple_compare_ino_str): New function.
39957         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39958
39959 2007-09-28  Eric Blake  <ebb9@byu.net>
39960
39961         Enforce that AC_REPLACE_FUNCS files exist.
39962         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39963         override check for typos.
39964
39965         Fix test-closein on Solaris 10.
39966         * tests/test-closein.c (main): Don't assume stdin can be inherited
39967         closed on all systems.
39968         * tests/test-closein.sh: Likewise.
39969         Reported by Piotr Tarnowski.
39970
39971 2007-09-28  Jim Meyering  <jim@meyering.net>
39972
39973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39974
39975 2007-09-27  Jim Meyering  <jim@meyering.net>
39976
39977         canonicalize: Avoid a false-positive cycle failure.
39978         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39979         Sort.  Remove cycle-check.
39980         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39981         not cycle-check.h.
39982         (seen_triple): New function.
39983         (canonicalize_filename_mode): Use it instead of cycle-check.
39984         * tests/test-canonicalize.c: Add a test for this bug.
39985         * tests/test-canonicalize.sh: Set up and run the test.
39986
39987         New module, file-set, from coreutils.
39988         * modules/file-set: Define it.
39989         * lib/file-set.c, lib/file-set.h: Implement.
39990
39991         New module, hash-triple, from coreutils.
39992         * modules/hash-triple: Define it.
39993         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39994
39995 2007-09-25  Eric Blake  <ebb9@byu.net>
39996
39997         Fix strerror on Interix.
39998         * lib/string_.h (strerror): Declare replacement.
39999         * doc/functions/strerror.texi (strerror): Document the Interix
40000         shortcoming.
40001         * modules/string (Makefile.am): Support new hooks.
40002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
40003         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
40004         gl_FUNC_STRERROR_SEPARATE.
40005         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
40006         * lib/strerror.c (rpl_strerror): Provide replacement.
40007         * modules/strerror (Depends-on): Add string.
40008         (configure.ac): Detect use of module.
40009         * tests/test-strerror.c: New file.
40010         * modules/strerror-tests: New test module.
40011         * modules/argp (Depends-on): Add strerror.
40012         * modules/error (Depends-on): Likewise.
40013         Reported by Martin Koeppe.
40014
40015 2007-09-24  Bruno Haible  <bruno@clisp.org>
40016
40017         * README: Update git instructions.
40018
40019 2007-09-24  Eric Blake  <ebb9@byu.net>
40020
40021         Revert fpending breakage from 2007-09-08.
40022         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
40023         __fpending.c.
40024
40025 2007-09-24  Jim Meyering  <jim@meyering.net>
40026
40027         filenamecat.c: Add a test.
40028         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
40029         showing how the function works when DIR is the empty string.
40030
40031 2007-09-21  Simon Josefsson  <simon@josefsson.org>
40032
40033         * tests/test-canonicalize.sh: Turn on executable bit.
40034
40035 2007-09-19  Eric Blake  <ebb9@byu.net>
40036
40037         * README: Update CVS instructions.
40038
40039 2007-09-18  Bruno Haible  <bruno@clisp.org>
40040
40041         * modules/areadlink: New file.
40042         * lib/areadlink.h (areadlink): New declaration.
40043         * lib/areadlink.c: New file, based on lib/xreadlink.c.
40044
40045 2007-09-17  Jim Meyering  <jim@meyering.net>
40046
40047         * lib/savewd.c (ESTALE) [!defined]: Define.
40048         Reported to be required on Interix by Martin Koeppe.
40049
40050 2007-09-17  Bruno Haible  <bruno@clisp.org>
40051
40052         * gnulib-tool (func_version): Use $version.
40053
40054 2007-09-16  Bruno Haible  <bruno@clisp.org>
40055
40056         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
40057         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
40058         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
40059         Reported by Greg Schafer <gschafer@zip.com.au>.
40060
40061 2007-09-15  Bruno Haible  <bruno@clisp.org>
40062
40063         * gnulib-tool (sed): Try a little harder to make bash understand the
40064         alias.
40065         Reported by Bruce Korb <bruce.korb@gmail.com>.
40066
40067 2007-09-13  Eric Blake  <ebb9@byu.net>
40068
40069         * ChangeLog: Remove conflict markers.
40070
40071 2007-09-13  Simon Josefsson  <simon@josefsson.org>
40072
40073         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
40074         Reported by Bruno Haible <bruno@clisp.org>.
40075
40076 2007-09-12  Bruno Haible  <bruno@clisp.org>
40077
40078         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
40079         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
40080         is not defined.
40081
40082 2007-09-12  Eric Blake  <ebb9@byu.net>
40083
40084         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
40085         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
40086         Autoconf definition.
40087         * modules/euidaccess (Depends-on): Add extensions, for
40088         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
40089         * modules/fnmatch (Depends-on): Likewise.
40090         * modules/getaddrinfo (Depends-on): Likewise.
40091         * modules/getdelim (Depends-on): Likewise.
40092         * modules/getline (Depends-on): Likewise.
40093         * modules/getsubopt (Depends-on): Likewise.
40094         * modules/gettext (Depends-on): Likewise.
40095         * modules/group-member (Depends-on): Likewise.
40096         * modules/mbchar (Depends-on): Likewise.
40097         * modules/memmem (Depends-on): Likewise.
40098         * modules/mempcpy (Depends-on): Likewise.
40099         * modules/memrchr (Depends-on): Likewise.
40100         * modules/pagealign_alloc (Depends-on): Likewise.
40101         * modules/readutmp (Depends-on): Likewise.
40102         * modules/stpcpy (Depends-on): Likewise.
40103         * modules/stpncpy (Depends-on): Likewise.
40104         * modules/strchrnul (Depends-on): Likewise.
40105         * modules/strndup (Depends-on): Likewise.
40106         * modules/strsep (Depends-on): Likewise.
40107         * modules/strverscmp (Depends-on): Likewise.
40108         * modules/vasprintf (Depends-on): Likewise.
40109         * modules/wcwidth (Depends-on): Likewise.
40110         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
40111         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
40112         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
40113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
40114         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40115         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40116         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
40117         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40118         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
40119         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40120         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40121         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
40122         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
40123         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
40124         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
40125         * m4/readutmp.m4 (gl_READUTMP): Likewise.
40126         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40127         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
40128         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40129         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
40130         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40131         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
40132         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
40133         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
40134         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
40135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40136         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
40137         so that lock.m4 can be used in gettext without extensions module.
40138
40139 2007-09-11  Bruno Haible  <bruno@clisp.org>
40140
40141         * m4/isc-posix.m4: Remove file.
40142         Suggested by Eric Blake.
40143
40144 2007-09-11  Eric Blake  <ebb9@byu.net>
40145
40146         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
40147
40148 2007-09-10  Bruno Haible  <bruno@clisp.org>
40149
40150         * posix-modules: Fix typo in error message.
40151         Reported by Matt <mkraai@beckman.com>.
40152
40153 2007-09-09  Bruno Haible  <bruno@clisp.org>
40154
40155         * doc/functions/getdelim.texi: Update list of platforms lacking the
40156         function.
40157         * doc/functions/getline.texi: Likewise.
40158
40159 2007-09-09  Jim Meyering  <jim@meyering.net>
40160
40161         * lib/hash.c (hash_initialize): Detect calloc failure.
40162         Reported by Bruno Haible.
40163
40164 2007-09-09  Bruno Haible  <bruno@clisp.org>
40165
40166         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
40167         malloc or realloc fails.
40168
40169 2007-09-09  Bruno Haible  <bruno@clisp.org>
40170
40171         * modules/getcwd (Depends-on): Add malloc-posix.
40172         * modules/glob (Depends-on): Likewise.
40173         * modules/putenv (Depends-on): Likewise.
40174         * modules/strdup (Depends-on): Likewise.
40175         * modules/getdelim (Depends-on): Add realloc-posix.
40176         * modules/read-file (Depends-on): Likewise.
40177
40178 2007-09-09  Bruno Haible  <bruno@clisp.org>
40179
40180         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
40181         (gl_FUNC_MALLOC_POSIX): Require it.
40182         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
40183         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
40184         * modules/realloc (Files): Add m4/malloc.m4.
40185         * modules/calloc (Files): Likewise.
40186
40187 2007-09-09  Bruno Haible  <bruno@clisp.org>
40188
40189         * modules/malloc-posix: New file.
40190         * modules/malloc (Depends-on): Add malloc-posix.
40191         * lib/malloc.c: Include errno.h.
40192         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
40193         and a POSIX-compatible malloc into a single function. Set ENOMEM
40194         when returning NULL.
40195         * m4/malloc.m4: New file.
40196         * doc/functions/malloc.texi: Mention the malloc-posix module.
40197         * lib/stdlib_.h (malloc): New declaration.
40198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40199         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
40200         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
40201         and HAVE_MALLOC_POSIX.
40202
40203 2007-09-09  Bruno Haible  <bruno@clisp.org>
40204
40205         * modules/realloc-posix: New file.
40206         * modules/realloc (Depends-on): Add realloc-posix.
40207         * lib/realloc.c: Include errno.h.
40208         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
40209         and a POSIX-compatible realloc into a single function. Set ENOMEM
40210         when returning NULL.
40211         * m4/realloc.m4: New file.
40212         * doc/functions/realloc.texi: Mention the realloc-posix module.
40213         * lib/stdlib_.h (realloc): New declaration.
40214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40215         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
40216         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
40217         and HAVE_REALLOC_POSIX.
40218
40219 2007-09-09  Bruno Haible  <bruno@clisp.org>
40220
40221         * modules/calloc-posix: New file.
40222         * modules/calloc (Depends-on): Add calloc-posix.
40223         * lib/calloc.c: Include errno.h.
40224         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
40225         and a POSIX-compatible calloc into a single function. Set ENOMEM
40226         when returning NULL.
40227         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
40228         * doc/functions/calloc.texi: Mention the calloc-posix module.
40229         * lib/stdlib_.h (calloc): New declaration.
40230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40231         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
40232         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
40233         and HAVE_CALLOC_POSIX.
40234
40235 2007-09-09  Bruno Haible  <bruno@clisp.org>
40236
40237         Allow for modules to show an arbitrary notice.
40238         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
40239         * gnulib-tool: New option --extract-notice.
40240         (func_usage): Document it.
40241         (sed_extract_prog): Update.
40242         (func_get_notice): New function.
40243         (func_modules_notice): New function.
40244         (func_import, func_create_testdir): Invoke it.
40245         Suggested by Jim Meyering.
40246
40247 2007-09-09  Bruno Haible  <bruno@clisp.org>
40248
40249         * gnulib-tool: New options --verbose, --quiet.
40250         (func_usage): Document them.
40251         (verbose): New variable.
40252         (func_execute_command): New function.
40253         (func_import): Don't show the module list and the file list if
40254         $verbose < 0.
40255         (func_create_testdir): Likewise. Use func_execute_command.
40256         (func_create_megatestdir): Use func_execute_command.
40257
40258 2007-09-08  Bruno Haible  <bruno@clisp.org>
40259
40260         * gnulib-tool (func_import): Prefer rsync over wget when available,
40261         for fetching the PO files.
40262
40263 2007-09-08  Bruno Haible  <bruno@clisp.org>
40264
40265         * posix-modules: New file. Portions copied from gnulib-tool.
40266         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
40267
40268 2007-09-08  Jim Meyering  <jim@meyering.net>
40269
40270         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
40271         * lib/fpending.h: Rename from __fpending.h.
40272         * lib/fpending.c: Rename from __fpending.c.
40273         Include "fpending.h", not "__fpending.h".
40274         * lib/__fpending.h, lib/__fpending.c: Remove files.
40275         * modules/fpending (Files): Reflect new file names.
40276         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
40277
40278 2007-09-08  Bruno Haible  <bruno@clisp.org>
40279
40280         * m4/inttypes-h.m4: Remove stub file.
40281
40282 2007-09-07  Simon Josefsson  <simon@josefsson.org>
40283
40284         * doc/headers/stdint.texi: Discuss #include_next issue.
40285
40286 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40287
40288         * build-aux/bootstrap: Remove obsolete comment about wget --help.
40289
40290 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40291
40292         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
40293         in variable name.
40294
40295 2007-09-03  Jim Meyering  <jim@meyering.net>
40296
40297         New module: git-version-gen.
40298         * modules/git-version-gen: New file.
40299
40300         Import changes from coreutils for bootstrap script.
40301
40302         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
40303
40304         bootstrap: uses rsync to download the .po files
40305         * build-aux/bootstrap (po_download_command_format): New global.
40306         (download_po_files): Use rsync.
40307         (update_po_files): Don't remove .po files after download,
40308         so future rsync runs can take advantage of the copies.
40309
40310         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
40311
40312         Solve the unnecessary-.po-file-regeneration problem once and for all.
40313         * build-aux/bootstrap (download_po_files): New function, renamed from
40314         get_translations.  Now, downloads, but doesn't update LINGUAS.
40315         (update_po_files): New function.
40316
40317         bootstrap: Ignore more.
40318         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
40319         uniwidth to e.g., lib/.gitignore.
40320         (slurp): Handle the sys_stat_.h -> sys mapping, too.
40321
40322         * build-aux/bootstrap: New setting: vc_ignore.
40323         (insert_sorted_if_absent): Create $file if absent.
40324         Adapt to new, possibly empty, list: $vc_ignore.
40325
40326         bootstrap: generate more ignorable names
40327         * build-aux/bootstrap (slurp): When generating ignorable names,
40328         also map .sin to .sed, .gperf to .c, and .y to .c.
40329
40330 2007-09-03  Jim Meyering  <jim@meyering.net>
40331
40332         * build-aux/git-version-gen: New file, from coreutils.  For details, see
40333         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
40334
40335 2007-09-02  Bruno Haible  <bruno@clisp.org>
40336
40337         Fix mis-recognition of 'mcs' on QNX 6.
40338         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
40339         output contains the string "Mono".
40340         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
40341         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
40342
40343 2007-09-01  Bruno Haible  <bruno@clisp.org>
40344
40345         Fix collision between uniwidth/* and linebreak modules.
40346         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
40347         u32_width): Remove declarations.
40348         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
40349         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
40350         streq3, streq2, streq1, streq0): Remove functions.
40351         (STREQ): Remove macro.
40352         (is_cjk_encoding): Remove function.
40353         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
40354         (uc_width, u8_width, u16_width, u32_width): Remove functions.
40355         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
40356         * NEWS: Document the change.
40357
40358 2007-09-01  Bruno Haible  <bruno@clisp.org>
40359
40360         * lib/streq.h: Add double-inclusion guard.
40361
40362 2007-09-01  Karl Berry  <karl@gnu.org>
40363
40364         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
40365
40366 2007-08-28  Jim Meyering  <jim@meyering.net>
40367
40368         Rename mreadlink_with_size to areadlink_with_size.
40369         * NEWS: Document the change.
40370         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
40371         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
40372         * lib/mreadlink.h: Rename this to...
40373         * lib/areadlink.h: ...this.
40374         * modules/mreadlink-with-size: Rename this to...
40375         * modules/areadlink-with-size: ...this.
40376         * lib/canonicalize.c: Reflect the renaming.
40377         * modules/canonicalize: Likewise.
40378
40379 2007-08-26  Bruno Haible  <bruno@clisp.org>
40380
40381         * gnulib-tool (func_import): When deciding which files to remove,
40382         consider also dangling symbolic links.
40383         Reported by Eric Blake.
40384
40385 2007-08-26  Bruno Haible  <bruno@clisp.org>
40386
40387         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
40388
40389 2007-08-23  Simon Josefsson  <simon@josefsson.org>
40390
40391         * lib/readline.c: Don't include getline.h, the prototype is now
40392         found in stdio.h.
40393
40394 2007-08-23  Jim Meyering  <jim@meyering.net>
40395
40396         Getdelim touchup.
40397         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40398         around the funlockfile call, since funlockfile never sets errno.
40399         Don't set errno upon failed realloc.
40400
40401 2007-08-22  Eric Blake  <ebb9@byu.net>
40402
40403         Getline touchups.
40404         * lib/getdelim.c (getdelim): Revert regression that required *n to
40405         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40406         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40407         getdelim, rather than whether implementation is missing.
40408         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40409         * lib/stdio_.h (getline): Also declare if replacement is
40410         required.
40411         * doc/functions/getdelim.texi: New file.
40412         * doc/functions/getline.texi: Likewise.
40413         * doc/gnulib.texi (Function Substitutes): Add new files.
40414         Reported by Bruno Haible.
40415
40416 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40417
40418         * users.txt: Add Guile.
40419
40420 2007-08-22  Eric Blake  <ebb9@byu.net>
40421
40422         * tests/test-getdelim.c (main): Use remove, not unlink.
40423         * tests/test-getline.c (main): Likewise.
40424
40425         Move getline and getdelim into stdio.h, per POSIX 200x.
40426         * modules/getline (Files): Remove getline.h.
40427         (Depends-on): Add stdio.
40428         (configure.ac): Add module indicator.
40429         * modules/getdelim (Files): Remove getdelim.h.
40430         (Depends-on): Add stdio.
40431         (configure.ac): Add module indicator.
40432         * modules/stdio (Makefile.am): Work with new indicators.
40433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40434         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40435         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40436         * lib/getdelim.h: Delete.
40437         * lib/getline.h: Delete.
40438         * lib/stdio_.h (getdelim, getline): Declare.
40439         * modules/getdelim-tests: New module.
40440         * modules/getline-tests: Likewise.
40441         * tests/test-getdelim.c: New file.
40442         * tests/test-getline.c: Likewise.
40443         * NEWS: Document the change.
40444         * lib/getline.c: Update choice of header.
40445         * lib/csharpcomp.c: Likewise.
40446         * lib/getpass.c: Likewise.
40447         * lib/javacomp.c: Likewise.
40448         * lib/javaversion.c: Likewise.
40449         * lib/yesno.c: Likewise.
40450         * lib/getdelim.c: Likewise.
40451         (getdelim): Set errno on failure, and avoid memory leak.
40452
40453 2007-08-19  Bruno Haible  <bruno@clisp.org>
40454
40455         * modules/closein (Depends-on): Add freadahead.
40456         * lib/closein.c: Include freadahead.h.
40457         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40458         is zero.
40459
40460 2007-08-19  Bruno Haible  <bruno@clisp.org>
40461
40462         * modules/freadahead-tests: New file.
40463         * tests/test-freadahead.sh: New file.
40464         * tests/test-freadahead.c: New file.
40465
40466         * modules/freadahead: New file.
40467         * lib/freadahead.h: New file.
40468         * lib/freadahead.c: New file.
40469         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40470         fbufmode, fpurge, freadable, fwritable.
40471
40472 2007-08-19  Eric Blake  <ebb9@byu.net>
40473
40474         Test yesno in combination with closein.
40475         * lib/yesno.c (yesno): Document use of stdin.
40476         * modules/yesno-tests (Files): New module.
40477         * tests/test-yesno.c (main): New file.
40478         * tests/test-yesno.sh: Likewise.
40479
40480 2007-08-19  Bruno Haible  <bruno@clisp.org>
40481
40482         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40483         * lib/fseeko.c (rpl_fseeko): Likewise.
40484         * lib/fseterr.c (fseterr): Likewise.
40485
40486 2007-08-19  Bruno Haible  <bruno@clisp.org>
40487
40488         * tests/test-lseek.c (main): Disable a test for BeOS.
40489         * doc/functions/lseek.texi: Document the BeOS bug.
40490
40491 2007-08-19  Bruno Haible  <bruno@clisp.org>
40492             Eric Blake  <ebb9@byu.net>
40493
40494         * lib/lseek.c: Include <sys/stat.h>.
40495         (rpl_lseek): Add workaround code also for Unix platforms.
40496         Needed for BeOS.
40497         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40498         * doc/functions/lseek.texi: Document BeOS definiency.
40499
40500 2007-08-18  Bruno Haible  <bruno@clisp.org>
40501
40502         * modules/fstrcmp-tests: New file.
40503         * tests/test-fstrcmp.c: New file.
40504
40505 2007-08-18  Bruno Haible  <bruno@clisp.org>
40506
40507         * modules/fstrcmp: New file, from GNU gettext with modifications.
40508         * lib/fstrcmp.h: New file, from GNU gettext.
40509         * lib/fstrcmp.c: New file, from GNU gettext.
40510         * MODULES.html.sh (String handling): Add fstrcmp.
40511
40512 2007-08-18  Bruno Haible  <bruno@clisp.org>
40513
40514         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40515         'bool'.
40516         (diag, compareseq): Remove const from the ctxt argument.
40517         (USE_HEURISTIC): Undefine at the end.
40518
40519 2007-08-18  Jim Meyering  <jim@meyering.net>
40520
40521         New file: lib/idcache.h
40522         * NEWS: Mention the addition.
40523         * modules/idcache (Files): Add lib/idcache.h
40524         * lib/idcache.c: Include "idcache.h".
40525         Don't include <sys/types.h>.
40526         Add a FIXME comment.
40527         Move file-scoped "static" declarations to the top.
40528         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40529
40530 2007-08-17  Bruno Haible  <bruno@clisp.org>
40531         and Paul Eggert  <eggert@cs.ucla.edu>
40532
40533         * MODULES.html.sh: Add diffseq.
40534         * modules/diffseq: New file.
40535         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40536         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40537
40538 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40539
40540         Import changes from coreutils for bootstrap script.
40541
40542         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40543
40544         * build-aux/bootstrap (slurp): Work even in environments where
40545         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40546         current code does not slurp files whose names start with ".", and
40547         this looks like it might be a troublesome area.
40548
40549         2007-07-11  Jim Meyering  <jim@meyering.net>
40550
40551         If there's a GPL vN copyright comment, require that N == 3.
40552
40553         2007-07-08  Jim Meyering  <jim@meyering.net>
40554
40555         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40556         * build-aux/bootstrap (mam_template): Move definition out of loop.
40557
40558         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40559
40560         * build-aux/bootstrap (symlink_to_dir): Rename function from
40561         symlink_to_gnulib.  Add a directory parameter.  Update all
40562         callers.
40563         (cp_mark_as_generated): Also check for -- and link to -- files in
40564         gl/.
40565
40566         2007-07-08  Jim Meyering  <jim@meyering.net>
40567
40568         Adapt to deeper hierarchy in gnulib.
40569         * build-aux/bootstrap (symlink_to_dir): If the destination
40570         directory doesn't exist, create it. This is required at least for
40571         "lib/uniwidth/cjk.h".
40572
40573         2007-05-15  Jim Meyering  <jim@meyering.net>
40574
40575         * build-aux/bootstrap: Now that generated Makefile.am files
40576         are no longer under version control, they must be created at
40577         bootstrap time.
40578
40579 2007-08-14  Ben Pfaff  <blp@gnu.org>
40580
40581         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40582
40583 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40584
40585         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40586         given the changes below.
40587         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40588         even on hosts that have padding bits beyond the supported 64.
40589
40590 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40591
40592         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40593         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40594         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40595         depends on it.
40596         (xstrtol_error): Remove.
40597         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40598         but with a different signature.
40599         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40600         * lib/xstrtol-error.c: Include exitfail.h.
40601         (xstrtol_fatal): New function, with a different signature from the
40602         old xstrtol_error, so that the caller need not worry about passing
40603         in an exit status, or about storage management of the option argument.
40604         (xstrtol_error): Now a static function.  Redo signature to
40605         implement xstrtol_fatal.  Output the correct number of hyphens in
40606         front of the option so that the caller need not worry about
40607         storage management.
40608         (N_): New macro.
40609         (_): Remove; not used now.
40610         * modules/xstrtol: Depend on getopt.
40611         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40612         of old STRTOL_FATAL_ERROR macro.
40613         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40614         of test program.
40615         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40616         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40617
40618 2007-08-08  Eric Blake  <ebb9@byu.net>
40619
40620         * lib/xstrtol-error.c: Add missing include.
40621
40622         Move xstrtol messages into gnulib domain, when --pobase is used.
40623         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40624         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40625         * modules/xstrtol (Files): Distribute new file.
40626         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40627         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40628         * tests/test-xstrtol.c: ...into new file.
40629         * tests/test-xstrtoul.c: Also test xstrtoul.
40630         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40631         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40632         * tests/test-xstrtol.sh: Drive the tests.
40633         * tests/test-xstrtoimax.sh: Likewise.
40634         * tests/test-xstrtoumax.sh: Likewise.
40635         * modules/xstrtol-tests: New module.
40636         * modules/xstrtoimax-tests: Likewise.
40637         * modules/xstrtoumax-tests: Likewise.
40638
40639 2007-08-08  Jim Meyering  <jim@meyering.net>
40640
40641         New function: mfile_name_concat.
40642         * lib/filenamecat.c (mfile_name_concat): New function, just like
40643         file_name_concat, but return NULL upon failure rather than exiting
40644         with a diagnostic.
40645         * lib/filenamecat.h: Declare it.
40646
40647 2007-08-07  Bruno Haible  <bruno@clisp.org>
40648
40649         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40650         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40651         warning from gcc.
40652         Reported by Eric Blake.
40653
40654 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40655
40656         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40657         * modules/crypto/arcfour (License): Likewise.
40658         * modules/crypto/des-tests (License): Likewise.
40659         * modules/crypto/gc-arctwo-tests (License): Likewise.
40660         * modules/crypto/gc-des-tests (License): Likewise.
40661         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40662         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40663         * modules/crypto/gc-md2-tests (License): Likewise.
40664         * modules/crypto/gc-md4-tests (License): Likewise.
40665         * modules/crypto/gc-md5-tests (License): Likewise.
40666         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40667         * modules/crypto/gc-rijndael-tests (License): Likewise.
40668         * modules/crypto/gc-sha1-tests (License): Likewise.
40669         * modules/crypto/gc-tests (License): Likewise.
40670         * modules/crypto/hmac-md5 (License): Likewise.
40671         * modules/crypto/hmac-sha1 (License): Likewise.
40672         * modules/crypto/md2-tests (License): Likewise.
40673         * modules/crypto/md4-tests (License): Likewise.
40674         * modules/crypto/md5 (License): Likewise.
40675         * modules/crypto/rijndael (License): Likewise.
40676         * modules/crypto/sha1 (License): Likewise.
40677         * modules/memxor (License): Likewise.
40678
40679 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40680         and Bruno Haible  <bruno@clisp.org>
40681
40682         * NEWS: Describe interface changes to human, xstrtol.
40683         * lib/human.h: Include <xstrtol.h>.
40684         (human_options): Return enum strtol_error, not int.  Remove
40685         bool arg; take int * instead.
40686         * lib/human.c: Don't include "gettext.h".
40687         (_): Remove; no longer used.
40688         Don't include <xstrtol.h>, since human.h does it.
40689         (human_options): Adjust to abovementioned interface changes.
40690         Do not report error to stderr; that's now the caller's
40691         responsibility.
40692         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
40693         interface change.
40694         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
40695         Str, Argument_type_string.  All uses changed.  Put " argument"
40696         in diagnostics to make them clearer.  Change wording of suffix
40697         message for clarity.
40698         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
40699         Argument_type_string.
40700         (STRTOL_FATAL_WARN): Remove; no longer used.
40701         * modules/human (Depends-on): Remove gettext-h.
40702
40703 2007-08-06  Simon Josefsson  <simon@josefsson.org>
40704
40705         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
40706
40707 2007-07-31  Bruno Haible  <bruno@clisp.org>
40708
40709         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
40710         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
40711         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
40712
40713 2007-07-31  Bruno Haible  <bruno@clisp.org>
40714
40715         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
40716         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
40717
40718 2007-07-30  Bruno Haible  <bruno@clisp.org>
40719
40720         * modules/base64 (License): Use the synonymous term "LGPLv2+".
40721         * modules/c-ctype (License): Likewise.
40722         * modules/c-strcase (License): Likewise.
40723         * modules/check-version (License): Likewise.
40724         * modules/iconv (License): Likewise.
40725         * modules/iconv_open (License): Likewise.
40726         * modules/read-file (License): Likewise.
40727         * modules/striconv (License): Likewise.
40728         * modules/strverscmp (License): Likewise.
40729         * modules/vasprintf (License): Likewise.
40730         * modules/crypto/des (License): Likewise.
40731         * modules/crypto/gc (License): Likewise.
40732         * modules/crypto/gc-arcfour (License): Likewise.
40733         * modules/crypto/gc-arctwo (License): Likewise.
40734         * modules/crypto/gc-des (License): Likewise.
40735         * modules/crypto/gc-hmac-md5 (License): Likewise.
40736         * modules/crypto/gc-hmac-sha1 (License): Likewise.
40737         * modules/crypto/gc-md2 (License): Likewise.
40738         * modules/crypto/gc-md4 (License): Likewise.
40739         * modules/crypto/gc-md5 (License): Likewise.
40740         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
40741         * modules/crypto/gc-random (License): Likewise.
40742         * modules/crypto/gc-rijndael (License): Likewise.
40743         * modules/crypto/gc-sha1 (License): Likewise.
40744         * modules/crypto/md2 (License): Likewise.
40745         * modules/crypto/md4 (License): Likewise.
40746
40747 2007-07-30  Jim Meyering  <jim@meyering.net>
40748
40749         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
40750         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
40751         it has valid stat data.  This bug would cause du not to count the
40752         sizes of inaccessible directories.
40753         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
40754         in <http://bugzilla.redhat.com/250077>.
40755
40756 2007-07-25  Peter O'Gorman  <peter@pogma.com>
40757             Bruno Haible  <bruno@clisp.org>
40758
40759         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
40760         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
40761         #include_next, gives a diagnostic about it, but reports no error in
40762         the exit code.
40763         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40764
40765 2007-07-24  Ben Pfaff  <blp@gnu.org>
40766
40767         Improve name: "count-one-bits" is better than "popcount".
40768         * MODULES.html.sh: Update name.
40769         * lib/popcount.h: Renamed lib/count-one-bits.h.
40770         (popcount): Renamed count_one_bits.
40771         (popcountl): Renamed count_one_bits_l.
40772         (popcountll): Renamed count_one_bits_ll.
40773         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
40774         * modules/popcount: Renamed module/count-one-bits.
40775         * modules/popcount-tests: Renamed module/count-one-bits-tests.
40776         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
40777
40778 2007-07-23  Ben Pfaff  <blp@gnu.org>
40779
40780         * lib/popcount.h (popcount32): Reduce size of constants, to allow
40781         better code generation, and add U to large constants to avoid
40782         warnings, in non-GCC case.
40783         Suggested by Bruno Haible.
40784
40785 2007-07-23  Ben Pfaff  <blp@gnu.org>
40786
40787         * lib/popcount.h: Use verify_true instead of if...abort.
40788         * modules/popcount: Depend on verify module.
40789         Suggested by Jim Meyering.
40790
40791 2007-07-23  Bruno Haible  <bruno@clisp.org>
40792
40793         * gnulib-tool (func_import): Create a .cvsignore file also when the
40794         directory is not yet in CVS but the toplevel directory is. When
40795         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
40796         Reported by Karl Berry.
40797
40798 2007-07-22  Ben Pfaff  <blp@gnu.org>
40799
40800         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
40801         case.
40802         Suggested by Eric Blake.
40803
40804 2007-07-22  Ben Pfaff  <blp@gnu.org>
40805
40806         New module: popcount.
40807         * MODULES.html.sh: Add popcount.
40808         * modules/popcount: New file.
40809         * modules/popcount-tests: New file.
40810         * tests/test-popcount.c: New file.
40811         * lib/popcount.h: New file.
40812         * m4/popcount.m4: New file.
40813
40814 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40815
40816         * build-aux/announce-gen: Update to GPLv3.
40817
40818         * build-aux/config.guess: Update from config.
40819
40820 2007-07-21  Bruno Haible  <bruno@clisp.org>
40821
40822         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
40823         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
40824
40825 2007-07-20  Jim Meyering  <jim@meyering.net>
40826
40827         * check-module: Diagnose a self-dependency.
40828
40829 2007-07-19  Bruno Haible  <bruno@clisp.org>
40830
40831         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
40832         empty.
40833         Reported by Eric Blake.
40834
40835 2007-07-18  Bruno Haible  <bruno@clisp.org>
40836
40837         * gnulib-tool: New options --po-base, --po-domain.
40838         (func_usage): Document them.
40839         (pobase, po_domain): New variables.
40840         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40841         DEFAULT_TEXT_DOMAIN.
40842         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40843         (func_import): Consider pobase and po_domain. Create a po/ directory.
40844         (func_create_testdir): Set pobase and po_domain to empty.
40845         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40846         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40847
40848 2007-07-18  Bruno Haible  <bruno@clisp.org>
40849
40850         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40851         EXTRA_DIST augmentation for files in build-aux/.
40852
40853 2007-07-16  Bruno Haible  <bruno@clisp.org>
40854
40855         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40856         * modules/getdelim (License): Likewise.
40857
40858 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40859
40860         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40861         * modules/d-type (License): Likewise.
40862         * modules/extensions (License): Likewise.
40863         * modules/fnmatch (License): Likewise.
40864         * modules/fseeko (License): Likewise.
40865         * modules/getaddrinfo (License): Likewise.
40866         * modules/getline (License): Likewise.
40867         * modules/getlogin_r (License): Likewise.
40868         * modules/getpass (License): Likewise.
40869         * modules/gettimeofday (License): Likewise.
40870         * modules/glob (License): Likewise.
40871         * modules/inet_ntop (License): Likewise.
40872         * modules/malloc (License): Likewise.
40873         * modules/malloca (License): Likewise.
40874         * modules/memmem (License): Likewise.
40875         * modules/mempcpy (License): Likewise.
40876         * modules/memset (License): Likewise.
40877         * modules/minmax (License): Likewise.
40878         * modules/mktime (License): Likewise.
40879         * modules/netinet_in (License): Likewise.
40880         * modules/pathmax (License): Likewise.
40881         * modules/poll (License): Likewise.
40882         * modules/regex (License): Likewise.
40883         * modules/snprintf (License): Likewise.
40884         * modules/stdbool (License): Likewise.
40885         * modules/stdint (License): Likewise.
40886         * modules/stdio (License): Likewise.
40887         * modules/strcase (License): Likewise.
40888         * modules/strcasestr (License): Likewise.
40889         * modules/strdup (License): Likewise.
40890         * modules/string (License): Likewise.
40891         * modules/strndup (License): Likewise.
40892         * modules/strnlen (License): Likewise.
40893         * modules/strpbrk (License): Likewise.
40894         * modules/strptime (License): Likewise.
40895         * modules/strsep (License): Likewise.
40896         * modules/sys_select (License): Likewise.
40897         * modules/sys_socket (License): Likewise.
40898         * modules/sys_stat (License): Likewise.
40899         * modules/sys_time (License): Likewise.
40900         * modules/time (License): Likewise.
40901         * modules/time_r (License): Likewise.
40902         * modules/timegm (License): Likewise.
40903         * modules/unistd (License): Likewise.
40904         * modules/vsnprintf (License): Likewise.
40905         * modules/wctype (License): Likewise.
40906
40907 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40908
40909         * modules/argz (License): LGPLv2+.
40910
40911 2007-07-15  Karl Berry  <karl@gnu.org>
40912
40913         * doc/gnulib.texi: revise node structure per new fdl.texi.
40914
40915 2007-07-14  Bruno Haible  <bruno@clisp.org>
40916
40917         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40918         the output file.
40919         * lib/uniname/uninames.h: Regenerated.
40920
40921 2007-07-14  Karl Berry  <karl@gnu.org>
40922
40923         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40924         omitting sectioning and index commands.
40925
40926 2007-07-13  Bruno Haible  <bruno@clisp.org>
40927
40928         New gnulib-tool option --more-symlinks.
40929         * gnulib-tool (func_usage): Document --more-symlinks.
40930         (do_copyrights): New variable.
40931         Recognize option --more-symlinks.
40932         (func_import): Don't add a copyright notice transform to
40933         sed_transform_lib_file if do_copyrights is empty.
40934
40935 2007-07-13  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/vasnprintf.c (decimal_point_char): Define also if
40938         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40939         && !NEED_PRINTF_DIRECTIVE_A.
40940         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40941         Gary V. Vaughan <gary@gnu.org>.
40942
40943 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40944
40945         * lib/inttypes_.h: Undo previous change, since it was fixed
40946         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40947
40948 2007-07-13  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40951         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40952
40953 2007-07-13  Jim Meyering  <jim@meyering.net>
40954
40955         df: Don't fail for Tru64's "file-on-file mount".
40956         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40957         so we fall through and use statfs instead.  Details here:
40958         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40959         Reported by Albert Chin.
40960
40961 2007-07-13  Bruno Haible  <bruno@clisp.org>
40962
40963         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40964         * modules/configmake (License): Likewise.
40965         * modules/gettext (License): Likewise.
40966         * modules/gettext-h (License): Likewise.
40967         * modules/include_next (License): Likewise.
40968         * modules/link-warning (License): Likewise.
40969         * modules/localcharset (License): Likewise.
40970         * modules/localename (License): Likewise.
40971         * modules/lock (License): Likewise.
40972         * modules/relocatable-lib-lgpl (License): Likewise.
40973         * modules/size_max (License): Likewise.
40974         * modules/vasnprintf (License): Likewise.
40975         * modules/wchar (License): Likewise.
40976         * modules/xsize (License): Likewise.
40977
40978 2007-07-13  Bruno Haible  <bruno@clisp.org>
40979
40980         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40981         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40982
40983 2007-07-12  Bruno Haible  <bruno@clisp.org>
40984
40985         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40986         in the modules files.
40987
40988 2007-07-11  Karl Berry  <karl@gnu.org>
40989
40990         * MODULES.html.sh (func_module): use
40991          sed -e '\|^'"${includefile}"'$|d'
40992          instead of /.../d, to avoid errors on $includefile's containing /.
40993
40994 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40995
40996         * gnulib-tool (func_import): Avoid duplication of --avoid
40997         statements
40998         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40999         names to `_' in variable names.
41000
41001 2007-07-10  Eric Blake  <ebb9@byu.net>
41002
41003         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
41004         * NEWS: Document this change.
41005
41006 2007-07-08  Bruno Haible  <bruno@clisp.org>
41007
41008         Update to Unicode 5.0.
41009         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
41010         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
41011         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
41012         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
41013         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
41014         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
41015         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
41016         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
41017         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
41018         U+10A3F, U+1D242..U+1D244.
41019         (nonspacing_table_ind): Update.
41020         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
41021         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
41022
41023 2007-07-08  Bruno Haible  <bruno@clisp.org>
41024
41025         Update to Unicode 5.0.
41026         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
41027         code transform. Extend the name index field of unicode_name_to_code and
41028         unicode_code_to_name from 16 to 24 bits.
41029         * lib/uniname/uniname.c (unicode_character_name,
41030         unicode_name_character): Add the range 0x12xxx to the code transform.
41031         * lib/uniname/uninames.h: Regenerated.
41032         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
41033
41034 2007-07-07  Bruno Haible  <bruno@clisp.org>
41035
41036         * modules/wcwidth-tests: New file.
41037         * tests/test-wcwidth.c: New file.
41038
41039         Work around MacOS X wcwidth() bug.
41040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
41041         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
41042         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
41043         original wcwidth in non-UTF-8 locales.
41044         * modules/wcwidth (Depends-on): Add localcharset, streq,
41045         uniwidth/width.
41046         * doc/functions/wcwidth.texi: Update.
41047
41048 2007-07-07  Bruno Haible  <bruno@clisp.org>
41049
41050         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
41051         (wcwidth): New declaration.
41052         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
41053         macros.
41054         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
41055         here. Prepare for creating <wchar.h> unconditionally.
41056         * modules/wchar (Depends-on): Add link-warning.
41057         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
41058         REPLACE_WCWIDTH, and GL_LINK_WARNING.
41059         * lib/wcwidth.h: Remove file.
41060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
41061         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
41062         * modules/wcwidth (Files): Remove lib/wcwidth.h.
41063         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
41064         (Include): Replace wcwidth.h with <wchar.h>.
41065         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
41066         * lib/mbchar.h: Don't include wcwidth.h.
41067         * lib/mbswidth.c: Likewise.
41068         * NEWS: Mention the change.
41069
41070 2007-07-07  Bruno Haible  <bruno@clisp.org>
41071
41072         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
41073         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
41074         definition with an external declaration.
41075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
41076         defined as a function. Remove AC_C_INLINE requirement.
41077         * modules/wcwidth (Files): Add lib/wcwidth.c.
41078         (Makefile.am): Remove redundant statement.
41079
41080 2007-07-07  Bruno Haible  <bruno@clisp.org>
41081
41082         * MODULES.html.sh (Unicode string functions): Add the new modules.
41083
41084         * tests/uniwidth/test-u32-strwidth.c: New file.
41085         * modules/uniwidth/u32-strwidth-tests: New file.
41086
41087         * lib/uniwidth/u32-strwidth.c: New file.
41088         * modules/uniwidth/u32-strwidth: New file.
41089
41090         * tests/uniwidth/test-u16-strwidth.c: New file.
41091         * modules/uniwidth/u16-strwidth-tests: New file.
41092
41093         * lib/uniwidth/u16-strwidth.c: New file.
41094         * modules/uniwidth/u16-strwidth: New file.
41095
41096         * tests/uniwidth/test-u8-strwidth.c: New file.
41097         * modules/uniwidth/u8-strwidth-tests: New file.
41098
41099         * lib/uniwidth/u8-strwidth.c: New file.
41100         * modules/uniwidth/u8-strwidth: New file.
41101
41102         * tests/uniwidth/test-u32-width.c: New file.
41103         * modules/uniwidth/u32-width-tests: New file.
41104
41105         * lib/uniwidth/u32-width.c: New file.
41106         * modules/uniwidth/u32-width: New file.
41107
41108         * tests/uniwidth/test-u16-width.c: New file.
41109         * modules/uniwidth/u16-width-tests: New file.
41110
41111         * lib/uniwidth/u16-width.c: New file.
41112         * modules/uniwidth/u16-width: New file.
41113
41114         * tests/uniwidth/test-u8-width.c: New file.
41115         * modules/uniwidth/u8-width-tests: New file.
41116
41117         * lib/uniwidth/u8-width.c: New file.
41118         * modules/uniwidth/u8-width: New file.
41119
41120         * tests/uniwidth/test-uc_width.c: New file.
41121         * modules/uniwidth/width-tests: New file.
41122
41123         * lib/uniwidth/width.c: New file, from GNU libiconv.
41124         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
41125         * modules/uniwidth/width: New file.
41126
41127         * lib/uniwidth.h: New file, from GNU libiconv.
41128         * modules/uniwidth/base: New file.
41129
41130 2007-07-07  Bruno Haible  <bruno@clisp.org>
41131
41132         * lib/uniname.h: New file, from GNU gettext.
41133         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
41134         * lib/uniname/uninames.h: New file, from GNU gettext.
41135         * lib/uniname/uniname.c: New file, from GNU gettext.
41136         * tests/uniname/test-uninames.sh: New file.
41137         * tests/uniname/test-uninames.c: New file, from GNU gettext.
41138         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
41139         * modules/uniname/base: New file.
41140         * modules/uniname/uniname: New file.
41141         * modules/uniname/uniname-tests: New file.
41142         * MODULES.html.sh (Unicode string functions): Add the new modules.
41143
41144 2007-07-06  Bruno Haible  <bruno@clisp.org>
41145
41146         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
41147
41148 2007-07-06  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
41151         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
41152         includes <cygwin/sys_time.h> which includes <sys/select.h> which
41153         include <sys/time.h>.
41154         Reported by Eric Blake.
41155
41156 2007-07-06  Eric Blake  <ebb9@byu.net>
41157
41158         Fix testing canonicalize on cygwin.
41159         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41160         Revert patch from 2007-06-19.
41161         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
41162         canonicalize module is also in use.
41163         * tests/test-canonicalize.c: New file.
41164         * tests/test-canonicalize.sh: Likewise.
41165         * modules/canonicalize-tests: Likewise.
41166
41167 2007-07-06  Jim Meyering  <jim@meyering.net>
41168
41169         * lib/getugroups.c (getugroups): Detect getgrent failure.
41170         Adjust comment to reflect reality: this function may return -1.
41171
41172 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
41173
41174         * build-aux/bootstrap (TP_URL,get_translations): Update to use
41175         the new TP address.
41176         (usage): Fix typo
41177         (gnulib_mk): New variable.
41178
41179 2007-07-05  Jim Meyering  <jim@meyering.net>
41180
41181         Don't let endgrent clobber errno, no matter how improbable.
41182         * lib/getugroups.c (getugroups): Save and restore errno around
41183         endgrent call.
41184
41185         Close the group DB even when failing with 2^31 or more members.
41186         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
41187
41188 2007-07-04  Jim Meyering  <jim@meyering.net>
41189
41190         * lib/getugroups.h: New file.
41191         * lib/getugroups.c: Include "getugroups.h".
41192         Remove uses of "register" keyword.
41193         Move local variable, "cp", down into scope where used.
41194         Give "username" parameter the "const" attribute.
41195         * modules/getugroups (Files): Add lib/getugroups.h
41196
41197 2007-07-04  Karl Berry  <karl@gnu.org>
41198
41199         * MODULES.html.sh (func_all_modules): Complete rename of
41200         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
41201
41202 2007-07-02  Bruno Haible  <bruno@clisp.org>
41203
41204         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
41205         mode, when inttypes.h comes from gnulib.
41206         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41207
41208 2007-07-02  Simon Josefsson  <simon@josefsson.org>
41209
41210         * NEWS: Mention lgpl module name change.
41211
41212         * modules/lgpl-2.1: Renamed from lgpl.
41213
41214         * NEWS: Mention gpl module name change.
41215
41216         * modules/gpl-3.0: New file, based on gpl-2.0.
41217
41218         * modules/gpl-2.0: Renamed from gpl.
41219
41220         * modules/gpl: Fix filename, doc/gpl.texi is now found at
41221         doc/gpl-2.0.texi.
41222
41223 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
41224
41225         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
41226         #define __STDC_LIMIT_MACROS temporarily while including
41227         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
41228         Problem reported by Joel E. Denny in
41229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
41230
41231 2007-07-01  Bruno Haible  <bruno@clisp.org>
41232
41233         * lib/unistdio.h: New file.
41234         * lib/unistdio/u-asnprintf.h: New file.
41235         * lib/unistdio/u-asprintf.h: New file.
41236         * lib/unistdio/u-printf-args.c: New file.
41237         * lib/unistdio/u-printf-args.h: New file.
41238         * lib/unistdio/u-printf-parse.h: New file.
41239         * lib/unistdio/u-snprintf.h: New file.
41240         * lib/unistdio/u-sprintf.h: New file.
41241         * lib/unistdio/u-vasprintf.h: New file.
41242         * lib/unistdio/u-vsnprintf.h: New file.
41243         * lib/unistdio/u-vsprintf.h: New file.
41244         * lib/unistdio/ulc-asnprintf.c: New file.
41245         * lib/unistdio/ulc-asprintf.c: New file.
41246         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
41247         * lib/unistdio/ulc-printf-parse.c: New file.
41248         * lib/unistdio/ulc-snprintf.c: New file.
41249         * lib/unistdio/ulc-sprintf.c: New file.
41250         * lib/unistdio/ulc-vasnprintf.c: New file.
41251         * lib/unistdio/ulc-vasprintf.c: New file.
41252         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
41253         * lib/unistdio/ulc-vsnprintf.c: New file.
41254         * lib/unistdio/ulc-vsprintf.c: New file.
41255         * lib/unistdio/u8-asnprintf.c: New file.
41256         * lib/unistdio/u8-asprintf.c: New file.
41257         * lib/unistdio/u8-printf-parse.c: New file.
41258         * lib/unistdio/u8-snprintf.c: New file.
41259         * lib/unistdio/u8-sprintf.c: New file.
41260         * lib/unistdio/u8-vasnprintf.c: New file.
41261         * lib/unistdio/u8-vasprintf.c: New file.
41262         * lib/unistdio/u8-vsnprintf.c: New file.
41263         * lib/unistdio/u8-vsprintf.c: New file.
41264         * lib/unistdio/u8-u8-asnprintf.c: New file.
41265         * lib/unistdio/u8-u8-asprintf.c: New file.
41266         * lib/unistdio/u8-u8-snprintf.c: New file.
41267         * lib/unistdio/u8-u8-sprintf.c: New file.
41268         * lib/unistdio/u8-u8-vasnprintf.c: New file.
41269         * lib/unistdio/u8-u8-vasprintf.c: New file.
41270         * lib/unistdio/u8-u8-vsnprintf.c: New file.
41271         * lib/unistdio/u8-u8-vsprintf.c: New file.
41272         * lib/unistdio/u16-asnprintf.c: New file.
41273         * lib/unistdio/u16-asprintf.c: New file.
41274         * lib/unistdio/u16-printf-parse.c: New file.
41275         * lib/unistdio/u16-snprintf.c: New file.
41276         * lib/unistdio/u16-sprintf.c: New file.
41277         * lib/unistdio/u16-vasnprintf.c: New file.
41278         * lib/unistdio/u16-vasprintf.c: New file.
41279         * lib/unistdio/u16-vsnprintf.c: New file.
41280         * lib/unistdio/u16-vsprintf.c: New file.
41281         * lib/unistdio/u16-u16-asnprintf.c: New file.
41282         * lib/unistdio/u16-u16-asprintf.c: New file.
41283         * lib/unistdio/u16-u16-snprintf.c: New file.
41284         * lib/unistdio/u16-u16-sprintf.c: New file.
41285         * lib/unistdio/u16-u16-vasnprintf.c: New file.
41286         * lib/unistdio/u16-u16-vasprintf.c: New file.
41287         * lib/unistdio/u16-u16-vsnprintf.c: New file.
41288         * lib/unistdio/u16-u16-vsprintf.c: New file.
41289         * lib/unistdio/u32-asnprintf.c: New file.
41290         * lib/unistdio/u32-asprintf.c: New file.
41291         * lib/unistdio/u32-printf-parse.c: New file.
41292         * lib/unistdio/u32-snprintf.c: New file.
41293         * lib/unistdio/u32-sprintf.c: New file.
41294         * lib/unistdio/u32-vasnprintf.c: New file.
41295         * lib/unistdio/u32-vasprintf.c: New file.
41296         * lib/unistdio/u32-vsnprintf.c: New file.
41297         * lib/unistdio/u32-vsprintf.c: New file.
41298         * lib/unistdio/u32-u32-asnprintf.c: New file.
41299         * lib/unistdio/u32-u32-asprintf.c: New file.
41300         * lib/unistdio/u32-u32-snprintf.c: New file.
41301         * lib/unistdio/u32-u32-sprintf.c: New file.
41302         * lib/unistdio/u32-u32-vasnprintf.c: New file.
41303         * lib/unistdio/u32-u32-vasprintf.c: New file.
41304         * lib/unistdio/u32-u32-vsnprintf.c: New file.
41305         * lib/unistdio/u32-u32-vsprintf.c: New file.
41306         * tests/unistdio/test-ulc-asnprintf1.c: New file.
41307         * tests/unistdio/test-ulc-asnprintf1.h: New file.
41308         * tests/unistdio/test-ulc-printf1.h: New file.
41309         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
41310         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
41311         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
41312         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
41313         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
41314         * tests/unistdio/test-ulc-vasprintf1.c: New file.
41315         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
41316         * tests/unistdio/test-ulc-vsprintf1.c: New file.
41317         * tests/unistdio/test-u8-asnprintf1.c: New file.
41318         * tests/unistdio/test-u8-asnprintf1.h: New file.
41319         * tests/unistdio/test-u8-printf1.h: New file.
41320         * tests/unistdio/test-u8-vasnprintf1.c: New file.
41321         * tests/unistdio/test-u8-vasnprintf2.c: New file.
41322         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
41323         * tests/unistdio/test-u8-vasnprintf3.c: New file.
41324         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
41325         * tests/unistdio/test-u8-vasprintf1.c: New file.
41326         * tests/unistdio/test-u8-vsnprintf1.c: New file.
41327         * tests/unistdio/test-u8-vsprintf1.c: New file.
41328         * tests/unistdio/test-u16-asnprintf1.c: New file.
41329         * tests/unistdio/test-u16-asnprintf1.h: New file.
41330         * tests/unistdio/test-u16-printf1.h: New file.
41331         * tests/unistdio/test-u16-vasnprintf1.c: New file.
41332         * tests/unistdio/test-u16-vasnprintf2.c: New file.
41333         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
41334         * tests/unistdio/test-u16-vasnprintf3.c: New file.
41335         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
41336         * tests/unistdio/test-u16-vasprintf1.c: New file.
41337         * tests/unistdio/test-u16-vsnprintf1.c: New file.
41338         * tests/unistdio/test-u16-vsprintf1.c: New file.
41339         * tests/unistdio/test-u32-asnprintf1.c: New file.
41340         * tests/unistdio/test-u32-asnprintf1.h: New file.
41341         * tests/unistdio/test-u32-printf1.h: New file.
41342         * tests/unistdio/test-u32-vasnprintf1.c: New file.
41343         * tests/unistdio/test-u32-vasnprintf2.c: New file.
41344         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
41345         * tests/unistdio/test-u32-vasnprintf3.c: New file.
41346         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
41347         * tests/unistdio/test-u32-vasprintf1.c: New file.
41348         * tests/unistdio/test-u32-vsnprintf1.c: New file.
41349         * tests/unistdio/test-u32-vsprintf1.c: New file.
41350         * modules/unistdio/base: New file.
41351         * modules/unistdio/u-printf-args: New file.
41352         * modules/unistdio/ulc-asnprintf: New file.
41353         * modules/unistdio/ulc-asprintf: New file.
41354         * modules/unistdio/ulc-fprintf: New file.
41355         * modules/unistdio/ulc-printf-parse: New file.
41356         * modules/unistdio/ulc-snprintf: New file.
41357         * modules/unistdio/ulc-sprintf: New file.
41358         * modules/unistdio/ulc-vasnprintf: New file.
41359         * modules/unistdio/ulc-vasprintf: New file.
41360         * modules/unistdio/ulc-vfprintf: New file.
41361         * modules/unistdio/ulc-vsnprintf: New file.
41362         * modules/unistdio/ulc-vsprintf: New file.
41363         * modules/unistdio/u8-asnprintf: New file.
41364         * modules/unistdio/u8-asprintf: New file.
41365         * modules/unistdio/u8-printf-parse: New file.
41366         * modules/unistdio/u8-snprintf: New file.
41367         * modules/unistdio/u8-sprintf: New file.
41368         * modules/unistdio/u8-vasnprintf: New file.
41369         * modules/unistdio/u8-vasprintf: New file.
41370         * modules/unistdio/u8-vsnprintf: New file.
41371         * modules/unistdio/u8-vsprintf: New file.
41372         * modules/unistdio/u8-u8-asnprintf: New file.
41373         * modules/unistdio/u8-u8-asprintf: New file.
41374         * modules/unistdio/u8-u8-snprintf: New file.
41375         * modules/unistdio/u8-u8-sprintf: New file.
41376         * modules/unistdio/u8-u8-vasnprintf: New file.
41377         * modules/unistdio/u8-u8-vasprintf: New file.
41378         * modules/unistdio/u8-u8-vsnprintf: New file.
41379         * modules/unistdio/u8-u8-vsprintf: New file.
41380         * modules/unistdio/u16-asnprintf: New file.
41381         * modules/unistdio/u16-asprintf: New file.
41382         * modules/unistdio/u16-printf-parse: New file.
41383         * modules/unistdio/u16-snprintf: New file.
41384         * modules/unistdio/u16-sprintf: New file.
41385         * modules/unistdio/u16-vasnprintf: New file.
41386         * modules/unistdio/u16-vasprintf: New file.
41387         * modules/unistdio/u16-vsnprintf: New file.
41388         * modules/unistdio/u16-vsprintf: New file.
41389         * modules/unistdio/u16-u16-asnprintf: New file.
41390         * modules/unistdio/u16-u16-asprintf: New file.
41391         * modules/unistdio/u16-u16-snprintf: New file.
41392         * modules/unistdio/u16-u16-sprintf: New file.
41393         * modules/unistdio/u16-u16-vasnprintf: New file.
41394         * modules/unistdio/u16-u16-vasprintf: New file.
41395         * modules/unistdio/u16-u16-vsnprintf: New file.
41396         * modules/unistdio/u16-u16-vsprintf: New file.
41397         * modules/unistdio/u32-asnprintf: New file.
41398         * modules/unistdio/u32-asprintf: New file.
41399         * modules/unistdio/u32-printf-parse: New file.
41400         * modules/unistdio/u32-snprintf: New file.
41401         * modules/unistdio/u32-sprintf: New file.
41402         * modules/unistdio/u32-vasnprintf: New file.
41403         * modules/unistdio/u32-vasprintf: New file.
41404         * modules/unistdio/u32-vsnprintf: New file.
41405         * modules/unistdio/u32-vsprintf: New file.
41406         * modules/unistdio/u32-u32-asnprintf: New file.
41407         * modules/unistdio/u32-u32-asprintf: New file.
41408         * modules/unistdio/u32-u32-snprintf: New file.
41409         * modules/unistdio/u32-u32-sprintf: New file.
41410         * modules/unistdio/u32-u32-vasnprintf: New file.
41411         * modules/unistdio/u32-u32-vasprintf: New file.
41412         * modules/unistdio/u32-u32-vsnprintf: New file.
41413         * modules/unistdio/u32-u32-vsprintf: New file.
41414         * modules/unistdio/ulc-asnprintf-tests: New file.
41415         * modules/unistdio/ulc-vasnprintf-tests: New file.
41416         * modules/unistdio/ulc-vasprintf-tests: New file.
41417         * modules/unistdio/ulc-vsnprintf-tests: New file.
41418         * modules/unistdio/ulc-vsprintf-tests: New file.
41419         * modules/unistdio/u8-asnprintf-tests: New file.
41420         * modules/unistdio/u8-vasnprintf-tests: New file.
41421         * modules/unistdio/u8-vasprintf-tests: New file.
41422         * modules/unistdio/u8-vsnprintf-tests: New file.
41423         * modules/unistdio/u8-vsprintf-tests: New file.
41424         * modules/unistdio/u16-asnprintf-tests: New file.
41425         * modules/unistdio/u16-vasnprintf-tests: New file.
41426         * modules/unistdio/u16-vasprintf-tests: New file.
41427         * modules/unistdio/u16-vsnprintf-tests: New file.
41428         * modules/unistdio/u16-vsprintf-tests: New file.
41429         * modules/unistdio/u32-asnprintf-tests: New file.
41430         * modules/unistdio/u32-vasnprintf-tests: New file.
41431         * modules/unistdio/u32-vasprintf-tests: New file.
41432         * modules/unistdio/u32-vsnprintf-tests: New file.
41433         * modules/unistdio/u32-vsprintf-tests: New file.
41434         * MODULES.html.sh (Unicode string functions): Add the new modules.
41435
41436 2007-07-01  Bruno Haible  <bruno@clisp.org>
41437
41438         * lib/sprintf.c (sprintf): Limit the available length estimation,
41439         to avoid address wraparound.
41440         * lib/vsprintf.c (vsprintf): Likewise.
41441         * modules/sprintf-posix (Dependencies): Add stdint.
41442         * modules/vsprintf-posix (Dependencies): Likewise.
41443
41444 2007-07-01  Bruno Haible  <bruno@clisp.org>
41445
41446         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41447         Windows PATH as well. Conservative double-quoting. Comments.
41448
41449 2007-07-01  Bruno Haible  <bruno@clisp.org>
41450             Eric Blake  <ebb9@byu.net>
41451             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41452
41453         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41454         empty components in $PATH, denoting '.'.
41455
41456 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41457
41458         * gnulib-tool: Fix indentation.
41459         (func_create_megatestdir): Likewise.
41460         Report by Bruno Haible.
41461
41462 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41463
41464         Sync from Automake.
41465         * build-aux/gnupload: Fix shell portability issues with for loops.
41466         Report by Karl Berry.
41467
41468 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41469
41470         * build-aux/maint.mk (POURL): Use translationproject.org.
41471
41472 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41473             Bruno Haible  <bruno@clisp.org>
41474
41475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41476         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41477         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41478         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41479         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41480
41481 2007-06-27  Bruno Haible  <bruno@clisp.org>
41482
41483         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41484         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41485
41486 2007-06-26  Karl Berry  <karl@gnu.org>
41487
41488         * MODULES.html.sh: remove xreadlink-with-size.
41489
41490 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41491
41492         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41493         method that I hope also handles the double-include problem noted
41494         by Bruno Haible in
41495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41496
41497 2007-06-23  Bruno Haible  <bruno@clisp.org>
41498
41499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41500         Don't let the 'mostlyclean' target fail if the last subdirectory could
41501         not be removed.
41502         Reported by Karl Berry.
41503
41504 2007-06-23  Bruno Haible  <bruno@clisp.org>
41505
41506         * gnulib-tool (echo): Add a speedier workaround for ksh.
41507         * tests/test-echo.sh: Likewise.
41508
41509 2007-06-23  Bruno Haible  <bruno@clisp.org>
41510
41511         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41512         * tests/test-echo.sh: Likewise.
41513
41514 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41515
41516         * gnulib-tool (IFS): Initialize early, so we don't set it to
41517         empty later.
41518         (self_abspathname): Rewrite algorithm to set it, reindent.
41519         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41520         (func_create_megatestdir): Merge some sed scripts.
41521
41522 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41523
41524         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41525         exposed by Sun Studio 11 cc on Solaris 8.
41526
41527 2007-06-22  Bruno Haible  <bruno@clisp.org>
41528
41529         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41530         backslashes.
41531         * tests/test-echo.sh: New file.
41532
41533 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41534
41535         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41536         simplify `sed_replace_build_aux' scripts, they are portable but
41537         echoing them with `echo' is not.
41538         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41539
41540 2007-06-21  Karl Berry  <karl@gnu.org>
41541
41542         * config/srclist.txt: guess we can't handle the licenses via
41543         srclist at the moment.
41544
41545 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41546
41547         * MODULES.html.sh: Add include_next.
41548         * modules/include_next: New file.
41549
41550 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41551
41552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41553         INCLUDE_NEXT.
41554         (gl_CHECK_NEXT_HEADERS): New macro.
41555         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41556         the obsolescent gl_ABSOLUTE_HEADER.
41557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41558         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41559         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41560         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41561         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41562         * m4/math_h.m4 (gl_MATH_H): Likewise.
41563         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41564         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41565         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41566         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41567         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41568         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41569         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41570         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41571         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41572         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41573         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41574         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41575         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41576         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41577         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41578         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41579         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41580         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41581         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41582         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41583         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41584         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41585         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41586         * lib/float_.h: Likewise.
41587         * lib/inttypes_.h: Likewise.
41588         * lib/math_.h: Likewise.
41589         * lib/search_.h: Likewise.
41590         * lib/signal_.h: Likewise.
41591         * lib/stdint_.h: Likewise.
41592         * lib/stdio_.h: Likewise.
41593         * lib/stdlib_.h: Likewise.
41594         * lib/string_.h: Likewise.
41595         * lib/sys_stat_.h: Likewise.
41596         * lib/sys_time_.h: Likewise.
41597         * lib/time_.h: Likewise.
41598         * lib/unistd_.h: Likewise.
41599         * lib/wchar_.h: Likewise.
41600         * lib/wctype_.h: Likewise.
41601         * lib/dirent_.h: Likewise.
41602         * lib/iconv_.h: Likewise.
41603         * lib/locale_.h: Likewise.
41604         * lib/netinet_in_.h: Likewise.
41605         * lib/sys_select_.h: Likewise.
41606         * lib/sys_socket_.h: Likewise.
41607         * lib/sysexits_.h: Likewise.
41608         * modules/fcntl (Depends-on): Depend on include_next, not
41609         absolute_header.
41610         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41611         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41612         * modules/fchdir: Likewise.
41613         * modules/float: Likewise.
41614         * modules/iconv_open: Likewise.
41615         * modules/inttypes: Likewise.
41616         * modules/locale: Likewise.
41617         * modules/math: Likewise.
41618         * modules/netinet_in: Likewise.
41619         * modules/search: Likewise.
41620         * modules/signal: Likewise.
41621         * modules/stdint: Likewise.
41622         * modules/stdio: Likewise.
41623         * modules/stdlib: Likewise.
41624         * modules/string: Likewise.
41625         * modules/sys_select: Likewise.
41626         * modules/sys_socket: Likewise.
41627         * modules/sys_stat: Likewise.
41628         * modules/sys_time: Likewise.
41629         * modules/sysexits: Likewise.
41630         * modules/time: Likewise.
41631         * modules/unistd: Likewise.
41632         * modules/wchar: Likewise.
41633         * modules/wctype: Likewise.
41634         * modules/sys_stat: Change maintainer to "all".
41635         * modules/unistd: Likewise.
41636
41637 2007-06-20  Karl Berry  <karl@gnu.org>
41638
41639         * config/srclist.txt: track www changes in license files.
41640
41641 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41642
41643         * build-aux/bootstrap: Remove stray dot.
41644         Make sure build_aux settings are honored when linking
41645         gnulib_extra_files.
41646
41647 2007-06-19  Eric Blake  <ebb9@byu.net>
41648
41649         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41650         Allow compilation on cygwin.
41651
41652 2007-06-19  Jim Meyering  <jim@meyering.net>
41653
41654         xreadlink-with-size: Remove module.  No longer used.
41655         Ex-callers now use xreadlink or mreadlink-with-size.
41656         * modules/xreadlink-with-size: Remove module.
41657         * lib/xreadlink-with-size.c: Remove file.
41658         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41659         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41660         just before the function definition *is* accurate.
41661
41662         Eliminate one way canonicalize_filename_mode could exit.
41663         * lib/canonicalize.c (canonicalize_filename_mode):
41664         Use mreadlink_with_size, not xreadlink_with_size.
41665
41666 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41667
41668         Detect porting problems to FreeBSD/arm, which has time_t wider than
41669         long int.  Original problem reported for GNU diff by Xin Li in
41670         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41671         * modules/getdate (Depends-on): Add intprops, verify.
41672         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41673         is an integer type no wider than long int.
41674
41675 2007-06-18  Jim Meyering  <jim@meyering.net>
41676
41677         New module: mreadlink-with-size.
41678         * MODULES.html.sh: Add mreadlink-with-size.
41679         * modules/mreadlink-with-size: New module
41680         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41681         not xreadlink-with-size.
41682         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
41683
41684 2007-06-16  Bruno Haible  <bruno@clisp.org>
41685
41686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
41687         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
41688         Reported by Gary V. Vaughan <gary@gnu.org>.
41689
41690 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
41691
41692         Revamp lchown so that it lives in unistd.h where it belongs.
41693         * lib/lchown.h: Remove.
41694         * lib/dirchownmod.c: Don't include lib/lchown.h.
41695         * lib/fchownat.c: Likewise.
41696         * lib/openat.c: Likewise.
41697         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
41698         does not follow symlinks.
41699         (EOPNOTSUPP): Define if not defined.
41700         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
41701         is defined to 0.
41702         (lchown): New decl.
41703         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
41704         Do not check for lchown decl.
41705         Set REPLACE_LCHOWN.
41706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
41707         REPLACE_LCHOWN.
41708         * modules/chown: Make it clear it follows symlinks.
41709         * modules/lchown: Make it clear it doesn't follow symlinks.
41710         (Files): Remove lib/lchown.h
41711         (Depends-on): Add unistd.
41712         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
41713         (Include): Include <unistd.h>, not "lchown.h".
41714         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
41715         REPLACE_LCHOWN.
41716
41717 2007-06-15  Jim Meyering  <jim@meyering.net>
41718
41719         Change license (GPL to LGPL) of fsusage and dependents.
41720         * modules/fsusage (License): Change to LGPL.
41721         * modules/full-read (License): Likewise.
41722         * modules/full-write (License): Likewise.
41723         * modules/safe-read (License): Likewise.
41724         * modules/safe-write (License): Likewise.
41725
41726 2007-06-14  Ben Pfaff  <blp@gnu.org>
41727
41728         Missing part of allocsa -> malloca transition.
41729         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
41730         gl_MALLOCA.
41731
41732 2007-06-12  Bruno Haible  <bruno@clisp.org>
41733
41734         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
41735         to ia64, x86_64, i386.
41736         Reported by Eric Blake.
41737
41738 2007-06-12  Bruno Haible  <bruno@clisp.org>
41739
41740         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
41741         cross-compiling to x86_64.
41742
41743 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
41744
41745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
41746         glitch reported by Ralf Wildenhues in
41747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
41748
41749         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
41750         Vin Shelton.
41751
41752 2007-06-11  Bruno Haible  <bruno@clisp.org>
41753
41754         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
41755         replacement string.
41756         Reported by Eric Blake.
41757
41758 2007-06-10  Bruno Haible  <bruno@clisp.org>
41759
41760         Prepare vasnprintf code for use with Unicode strings.
41761         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
41762         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
41763         TYPE_U32_STRING.
41764         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
41765         a_u32_string variants.
41766         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41767         * lib/printf-args.c: Don't include config.h and the specification
41768         header if PRINTF_FETCHARGS is already defined.
41769         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41770         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
41771         TYPE_U16_STRING, TYPE_U32_STRING.
41772         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
41773         u16_directive, u16_directives, u32_directive, u32_directives): New
41774         types.
41775         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
41776         New declarations.
41777         * lib/printf-parse.c: Don't include config.h and the specification
41778         header if PRINTF_PARSE is already defined. Eliminate the set of
41779         parameters for WIDE_CHAR_VERSION; the user of this file must provide
41780         them now. Include c-ctype.h.
41781         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
41782         directive and CHAR_T_ONLY_ASCII.
41783         * lib/vasnprintf.c: Don't include config.h and the specification header
41784         if VASNPRINTF is already defined.
41785         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
41786         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41787         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
41788         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
41789         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
41790         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
41791         code accordingly.
41792         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
41793         pad_ourselves also in this case, with the 'c' and 's' directives, and
41794         with a different notion of "width".
41795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
41796
41797 2007-06-10  Bruno Haible  <bruno@clisp.org>
41798
41799         * modules/unistr/u32-mbsnlen: New file.
41800         * lib/unistr/u32-mbsnlen.c: New file.
41801
41802         * modules/unistr/u16-mbsnlen: New file.
41803         * lib/unistr/u16-mbsnlen.c: New file.
41804
41805         * modules/unistr/u8-mbsnlen: New file.
41806         * lib/unistr/u8-mbsnlen.c: New file.
41807
41808         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
41809         declarations.
41810
41811 2007-06-10  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/string_.h (mbsnlen): New declaration.
41814         * lib/mbsnlen.c: New file.
41815         * m4/mbsnlen.m4: New file.
41816         * modules/mbsnlen: New file.
41817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
41818         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
41819         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
41820
41821 2007-06-10  Bruno Haible  <bruno@clisp.org>
41822
41823         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
41824
41825 2007-06-10  Bruno Haible  <bruno@clisp.org>
41826
41827         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
41828         * lib/mbuiter.h: Likewise.
41829
41830 2007-06-10  Bruno Haible  <bruno@clisp.org>
41831
41832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
41833         declaration.
41834
41835 2007-06-10  Karl Berry  <karl@gnu.org>
41836
41837         * config/srclist.txt: remove gettext entries, Bruno prefers
41838         to update individually.
41839
41840 2007-06-10  Bruno Haible  <bruno@clisp.org>
41841
41842         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41843         'maxlen'. Ensure only length + width bytes are allocated, not
41844         length + 1 + width.
41845
41846 2007-06-09  Bruno Haible  <bruno@clisp.org>
41847
41848         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41849         (CHAR_T): Remove macro.
41850         (VASNPRINTF): Update.
41851
41852 2007-06-09  Bruno Haible  <bruno@clisp.org>
41853
41854         * MODULES.html.sh (Unicode string functions): Add the new modules.
41855
41856         * modules/uniconv/u32-conv-to-enc: New file.
41857         * lib/uniconv/u32-conv-to-enc.c: New file.
41858         * modules/uniconv/u32-conv-to-enc-tests: New file.
41859         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41860
41861         * modules/uniconv/u16-conv-to-enc: New file.
41862         * lib/uniconv/u16-conv-to-enc.c: New file.
41863         * lib/uniconv/u-conv-to-enc.h: New file.
41864         * modules/uniconv/u16-conv-to-enc-tests: New file.
41865         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41866
41867         * modules/uniconv/u8-conv-to-enc: New file.
41868         * lib/uniconv/u8-conv-to-enc.c: New file.
41869         * modules/uniconv/u8-conv-to-enc-tests: New file.
41870         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41871
41872         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41873         u32_conv_to_encoding): New declarations.
41874
41875 2007-06-09  Bruno Haible  <bruno@clisp.org>
41876
41877         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41878
41879 2007-06-09  Bruno Haible  <bruno@clisp.org>
41880
41881         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41882         * modules/malloca: Renamed from modules/allocsa, updated.
41883         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41884         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41885         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41886         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41887         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41888         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41889         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41890         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41891         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41892         * modules/c-strcasestr (Depends-on): Update.
41893         * lib/c-strcasestr.c: Update.
41894         * modules/c-strstr (Depends-on): Update.
41895         * lib/c-strstr.c: Update.
41896         * modules/canonicalize-lgpl (Depends-on): Update.
41897         * lib/canonicalize-lgpl.c: Update.
41898         * modules/clean-temp (Depends-on): Update.
41899         * lib/clean-temp.c: Update.
41900         * modules/csharpcomp (Depends-on): Update.
41901         * lib/csharpcomp.c: Update.
41902         * modules/csharpexec (Depends-on): Update.
41903         * lib/csharpexec.c: Update.
41904         * modules/javacomp (Depends-on): Update.
41905         * lib/javacomp.c: Update.
41906         * modules/javaexec (Depends-on): Update.
41907         * lib/javaexec.c: Update.
41908         * modules/mbscasestr (Depends-on): Update.
41909         * lib/mbscasestr.c: Update.
41910         * modules/mbsstr (Depends-on): Update.
41911         * lib/mbsstr.c: Update.
41912         * modules/setenv (Depends-on): Update.
41913         * lib/setenv.c: Update.
41914         * modules/strcasestr (Depends-on): Update.
41915         * lib/strcasestr.c: Update.
41916         * modules/striconveha (Depends-on): Update.
41917         * lib/striconveha.c: Update.
41918         * modules/relocatable-prog-wrapper (Files): Update.
41919         * lib/relocwrapper.c: Update.
41920         * build-aux/install-reloc: Update.
41921         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41922
41923 2007-06-08  Bruno Haible  <bruno@clisp.org>
41924
41925         Port to uClibc.
41926         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41927         * lib/fpurge.c (fpurge): Likewise.
41928         * lib/freading.c (freading): Likewise.
41929         * lib/fseeko.c (rpl_fseeko): Likewise.
41930         * lib/fseterr.c (fseterr): Likewise.
41931         * lib/fwriting.c (fwriting): Likewise.
41932         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41933
41934 2007-06-08  Bruno Haible  <bruno@clisp.org>
41935
41936         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41937         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41938         * modules/gettext (Files): Add m4/intlmacosx.m4.
41939
41940 2007-06-07  Bruno Haible  <bruno@clisp.org>
41941
41942         * modules/localename-tests: New file.
41943         * tests/test-localename.c: New file.
41944
41945         New module 'localename'.
41946         * lib/localename.h: New file.
41947         * lib/localename.c: New file, from GNU gettext.
41948         * m4/localename.m4: New file.
41949         * modules/localename: New file.
41950
41951 2007-06-07  Bruno Haible  <bruno@clisp.org>
41952
41953         Work around the lack of <wchar.h> on some builds of uClibc.
41954         * doc/headers/wchar.texi: Update.
41955         * lib/wchar_.h: Include <wchar.h> only if it exists.
41956         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41957         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41958         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41959         doesn't exist.
41960         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41961         * modules/mbfile (Depends-on): Add wchar.
41962         * modules/mbiter (Depends-on): Likewise.
41963         * modules/mbuiter (Depends-on): Likewise.
41964         Reported by Simon Josefsson.
41965
41966 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41967
41968         Work around problem reported by Steven M. Schweda in
41969         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41970         Tru64 5.1B with the Compaq compiler environment installed declares
41971         an 'isblank' function but does not define it in the C library.
41972         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41973         * lib/regex_internal.h (isblank): Likewise.
41974         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41975         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41976
41977 2007-06-05  Bruno Haible  <bruno@clisp.org>
41978
41979         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41980         ia64.
41981         * modules/printf-safe: New file.
41982         * modules/fprintf-posix (Depends-on): Add printf-safe.
41983         * modules/printf-posix (Depends-on): Likewise.
41984         * modules/snprintf-posix (Depends-on): Likewise.
41985         * modules/sprintf-posix (Depends-on): Likewise.
41986         * modules/vasnprintf-posix (Depends-on): Likewise.
41987         * modules/vasprintf-posix (Depends-on): Likewise.
41988         * modules/vfprintf-posix (Depends-on): Likewise.
41989         * modules/vprintf-posix (Depends-on): Likewise.
41990         * modules/vsnprintf-posix (Depends-on): Likewise.
41991         * modules/vsprintf-posix (Depends-on): Likewise.
41992         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41993         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41994         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41995         "no" on i386, x86_64, ia64.
41996         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41997         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41998         on i386, x86_64, ia64.
41999         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
42000         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42001         on i386, x86_64, ia64.
42002         * tests/test-vasnprintf-posix.c: Include float.h.
42003         (LDBL80_WORDS): New macro.
42004         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42005         on i386, x86_64, ia64.
42006         * tests/test-vasprintf-posix.c: Include float.h.
42007         (LDBL80_WORDS): New macro.
42008         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42009         on i386, x86_64, ia64.
42010         * tests/test-snprintf-posix.c: Include float.h.
42011         * tests/test-sprintf-posix.c: Likewise.
42012         * tests/test-vsnprintf-posix.c: Likewise.
42013         * tests/test-vsprintf-posix.c: Likewise.
42014
42015 2007-06-05  Bruno Haible  <bruno@clisp.org>
42016
42017         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
42018         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
42019         non-IEEE numbers on i386, x86_64, ia64.
42020         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
42021         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
42022         * tests/test-isnanl.h: Include float.h.
42023         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
42024
42025 2007-06-05  Bruno Haible  <bruno@clisp.org>
42026
42027         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
42028         also the %a / %A. Handle the %a / %A code before this extra handling.
42029
42030 2007-06-05  Bruno Haible  <bruno@clisp.org>
42031
42032         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
42033         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
42034
42035 2007-06-05  Bruno Haible  <bruno@clisp.org>
42036
42037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
42038         typo in variable name.
42039
42040 2007-06-05  Eric Blake  <ebb9@byu.net>
42041
42042         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
42043         Reported by Simon Josefsson.
42044
42045 2007-06-04  Bruno Haible  <bruno@clisp.org>
42046
42047         Avoid test failures on some PowerPC platforms.
42048         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
42049         Define differently for PowerPC.
42050         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
42051         Reported by Gary V. Vaughan <gary@gnu.org>.
42052
42053 2007-06-02  Bruno Haible  <bruno@clisp.org>
42054
42055         Fix test-stdint failure on FreeBSD/ia64.
42056         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
42057         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
42058         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
42059         * doc/headers/stdint.texi: Update.
42060
42061 2007-06-01  Bruno Haible  <bruno@clisp.org>
42062
42063         * tests/test-binary-io.c (main): Pass a third argument to open().
42064         Reported by Gary V. Vaughan <gary@gnu.org>.
42065
42066 2007-06-01  Bruno Haible  <bruno@clisp.org>
42067
42068         * doc/functions/frexpl.texi: Update for mingw.
42069
42070 2007-06-01  Bruno Haible  <bruno@clisp.org>
42071
42072         * tests/test-lseek.c (main): Disable test of errno for invalid third
42073         argument.
42074         * doc/functions/lseek.texi: Update.
42075         Reported by Gary V. Vaughan <gary@gnu.org>.
42076
42077 2007-05-28  Bruno Haible  <bruno@clisp.org>
42078
42079         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
42080
42081 2007-05-31  Eric Blake  <ebb9@byu.net>
42082
42083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
42084         cross compiling.
42085
42086 2007-05-30  Eric Blake  <ebb9@byu.net>
42087         and Bruno Haible  <bruno@clisp.org>
42088
42089         Work around mingw test failures exposed by m4-1.4.9b.
42090         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
42091         * tests/test-unistd.c: Disable uid_t and git_t tests for the
42092         moment.
42093
42094 2007-05-30  Bruno Haible  <bruno@clisp.org>
42095
42096         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
42097         assuming that they are closed. Needed on HP-UX 11.
42098
42099 2007-05-29  Bruno Haible  <bruno@clisp.org>
42100
42101         Fix a problem with #include_next.
42102         * lib/dirent_.h: Split the double-inclusion guard.
42103         * lib/fcntl_.h: Likewise.
42104         * lib/float_.h: Likewise.
42105         * lib/iconv_.h: Likewise.
42106         * lib/inttypes_.h: Likewise.
42107         * lib/locale_.h: Likewise.
42108         * lib/math_.h: Likewise.
42109         * lib/netinet_in_.h: Likewise.
42110         * lib/search_.h: Likewise.
42111         * lib/signal_.h: Likewise.
42112         * lib/stdint_.h: Likewise.
42113         * lib/stdio_.h: Likewise.
42114         * lib/stdlib_.h: Likewise.
42115         * lib/string_.h: Likewise.
42116         * lib/sys_select_.h: Likewise.
42117         * lib/sys_socket_.h: Likewise.
42118         * lib/sys_stat_.h: Likewise.
42119         * lib/sys_time_.h: Likewise.
42120         * lib/sysexits_.h: Likewise.
42121         * lib/time_.h: Likewise.
42122         * lib/unistd_.h: Likewise.
42123         * lib/wchar_.h: Likewise.
42124         * lib/wctype_.h: Likewise.
42125
42126 2007-05-29  Bruno Haible  <bruno@clisp.org>
42127
42128         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
42129         for the moment.
42130
42131 2007-05-29  Bruno Haible  <bruno@clisp.org>
42132
42133         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
42134         invocation.
42135         Reported by Eric Blake.
42136
42137 2007-05-29  Bruno Haible  <bruno@clisp.org>
42138
42139         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
42140         compiling case.
42141
42142 2007-05-29  Eric Blake  <ebb9@byu.net>
42143             Bruno Haible  <bruno@clisp.org>
42144
42145         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
42146         cross compiles.
42147
42148 2007-05-28  Eric Blake  <ebb9@byu.net>
42149
42150         * modules/closein-tests (test_closein_LDADD): Support test on
42151         cygwin with libtool.
42152
42153 2007-05-28  Bruno Haible  <bruno@clisp.org>
42154
42155         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
42156         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42157         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42158         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42159         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42160         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42161         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42162         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42163         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42164
42165 2007-05-28  Eric Blake  <ebb9@byu.net>
42166
42167         Unconditionally include <config.h> in unit tests.
42168         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
42169         * tests/test-allocsa.c, tests/test-arcfour.c,
42170         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
42171         tests/test-array_list.c, tests/test-array_oset.c,
42172         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
42173         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
42174         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
42175         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
42176         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
42177         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
42178         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
42179         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
42180         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
42181         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
42182         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
42183         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
42184         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
42185         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
42186         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
42187         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
42188         test-md5.c, test-memmem.c, test-printf-posix.c,
42189         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
42190         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
42191         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
42192         test-strcasestr.c, test-striconv.c, test-striconveh.c,
42193         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
42194         test-vasnprintf-posix2.c, test-vasnprintf.c,
42195         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
42196         test-vfprintf-posix.c, test-vprintf-posix.c,
42197         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
42198         test-xvasprintf.c: Likewise.
42199
42200 2007-05-28  Bruno Haible  <bruno@clisp.org>
42201
42202         * gnulib-tool (func_import): Remember the --with-tests command-line
42203         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
42204         Reported by Eric Blake.
42205
42206 2007-05-28  Bruno Haible  <bruno@clisp.org>
42207
42208         * modules/ftell-tests: New file.
42209         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
42210         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
42211
42212         * lib/ftell.c: New file.
42213         * modules/ftell: New file.
42214         * m4/ftell.m4: New file.
42215         * doc/functions/ftell.texi: Update.
42216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
42217         REPLACE_FTELL.
42218         * lib/stdio_.h (rpl_ftell): New declaration.
42219         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
42220         REPLACE_FTELL.
42221
42222 2007-05-28  Eric Blake  <ebb9@byu.net>
42223
42224         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
42225
42226 2007-05-28  Bruno Haible  <bruno@clisp.org>
42227
42228         * modules/fseek-tests: New file.
42229         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
42230         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
42231
42232         * lib/fseek.c: New file.
42233         * modules/fseek: New file.
42234         * m4/fseek.m4: New file.
42235         * doc/functions/fseek.texi: Update.
42236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
42237         REPLACE_FSEEK.
42238         * lib/stdio_.h (rpl_fseek): New declaration.
42239         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
42240         REPLACE_FSEEK.
42241
42242 2007-05-28  Bruno Haible  <bruno@clisp.org>
42243
42244         * lib/stdio_.h (fflush): More comments.
42245
42246 2007-05-28  Bruno Haible  <bruno@clisp.org>
42247
42248         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
42249         runtime test.
42250
42251 2007-05-28  Eric Blake  <ebb9@byu.net>
42252
42253         Improve lseek module.
42254         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
42255         * lib/unistd_.h (lseek): Scale back link warning message.
42256         * tests/test-lseek.c: Beef up test.
42257         * tests/test-lseek.sh: Exercise more facets of lseek.
42258         Reported by Bruno Haible.
42259
42260 2007-05-28  Bruno Haible  <bruno@clisp.org>
42261
42262         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
42263         to define.
42264
42265 2007-05-27  Bruno Haible  <bruno@clisp.org>
42266
42267         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
42268
42269 2007-05-27  Bruno Haible  <bruno@clisp.org>
42270
42271         * modules/openmp: New file.
42272         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
42273         Noah Misch.
42274
42275 2007-05-26  Bruno Haible  <bruno@clisp.org>
42276
42277         * modules/chdir-long (Depends-on): Add fchdir.
42278         * modules/chdir-safer (Depends-on): Likewise.
42279         * modules/fts (Depends-on): Likewise.
42280         * modules/fts-lgpl (Depends-on): Likewise.
42281         * modules/openat (Depends-on): Likewise.
42282         * modules/savewd (Depends-on): Likewise.
42283
42284 2007-05-24  Eric Blake  <ebb9@byu.net>
42285
42286         Fix lseek on mingw.
42287         * modules/lseek: New module.
42288         * m4/lseek.m4: New file.
42289         * lib/lseek.c: New file.
42290         * modules/lseek-tests: New file.
42291         * tests/test-lseek.c: New file.
42292         * tests/test-lseek.sh: New file.
42293         * MODULES.html.sh: Document lseek module.
42294         * modules/fflush (Depends-on): Add lseek, fseeko.
42295         * modules/fseeko (Depends-on): Likewise.
42296         * modules/ftello (Depends-on): Likewise.
42297         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
42298         broken.
42299         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
42300         broken.
42301         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
42302         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
42303         * lib/ftello.c (rpl_ftello): Likewise.
42304         * tests/test-fseeko.c (main): Test this.
42305         * tests/test-fseeko.sh: Likewise.
42306         * tests/test-ftello.c (main): Likewise.
42307         * tests/test-ftello.sh: Likewise.
42308         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
42309         implies replacing fseek.
42310         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
42311         HAVE_FTELLO.
42312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
42313         * modules/unistd (Makefile.am): Likewise.
42314         * lib/unistd_.h (lseek): Declare a replacement.
42315         * doc/functions/lseek.texi (lseek): Document this fix.
42316         * doc/functions/fseek.texi (fseek): Likewise.
42317         * doc/functions/ftell.texi (ftell): Likewise.
42318
42319 2007-05-24  Bruno Haible  <bruno@clisp.org>
42320
42321         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
42322         in the printed representation of a NaN.
42323         * tests/test-vasprintf-posix.c (test_function): Likewise.
42324         * tests/test-snprintf-posix.h (test_function): Likewise.
42325         * tests/test-sprintf-posix.h (test_function): Likewise.
42326         Reported by Eric Blake.
42327
42328 2007-05-23  Eric Blake  <ebb9@byu.net>
42329
42330         Fix fseeko/ftello on cygwin 1.5.24.
42331         * doc/functions/fseeko.texi (fseeko): Document the fix.
42332         * doc/functions/ftello.texi (ftello): Document the fix.
42333         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
42334         * doc/functions/stdout.text (stdout): New file.
42335         * doc/functions/stderr.text (stderr): New file.
42336         * doc/gnulib.texi (Function Substitutes): Use new files.
42337         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
42338         prior to 1.7.0.
42339         * tests/test-ftello.c (main): Likewise for ftello.
42340         * tests/test-fseeko.sh: New file.
42341         * tests/test-ftello.sh: New file.
42342         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
42343         with seekable stdin.
42344         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
42345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
42346         (gl_REPLACE_FSEEKO): New macro.
42347         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
42348         * modules/fseeko (Files): Distribute fseeko.c.
42349         * modules/ftello (Files): Distribute ftello.c.
42350         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
42351         mode.
42352         * lib/ftello.c (rpl_ftello): New file.
42353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
42354         fseeko, ftello.
42355         (gl_STDIN_LARGE_OFFSET): New macro.
42356         * modules/stdio (Makefile.am): Perform the replacement.
42357         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
42358
42359 2007-05-23  Bruno Haible  <bruno@clisp.org>
42360
42361         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
42362         GNULIB_POSIXCHECK is defined.
42363
42364 2007-05-21  Bruno Haible  <bruno@clisp.org>
42365
42366         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
42367         Check also the output for NaN arguments. When cross-compiling, guess
42368         no on IRIX.
42369         * lib/vasnprintf.c: Update comments.
42370         * tests/test-vasnprintf-posix.c (strisnan): New function.
42371         (test_function): Use it.
42372         * tests/test-vasprintf-posix.c (strisnan): New function.
42373         (test_function): Use it.
42374         * tests/test-snprintf-posix.h (strisnan): New function.
42375         (test_function): Use it.
42376         * tests/test-sprintf-posix.h (strisnan): New function.
42377         (test_function): Use it.
42378         Reported by Eric Blake.
42379
42380 2007-05-20  Bruno Haible  <bruno@clisp.org>
42381
42382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
42383         numbers that fails on BeOS.
42384         * doc/functions/frexpl.texi: Update.
42385
42386 2007-05-20  Jim Meyering  <jim@meyering.net>
42387
42388         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
42389         forced upon us by glibc-2.6.
42390
42391 2007-05-20  Bruno Haible  <bruno@clisp.org>
42392
42393         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42394         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42395         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42396         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42397         NEED_PRINTF_INFINITE.
42398         (is_infinitel): New function.
42399         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42401         gl_PREREQ_VASNPRINTF_INFINITE.
42402         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42404         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42405         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42406         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42407         gl_PREREQ_VASNPRINTF_INFINITE.
42408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42409         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42410         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42411         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42412         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42413         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42414         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42415         * doc/functions/fprintf.texi: Update.
42416         * doc/functions/printf.texi: Update.
42417         * doc/functions/snprintf.texi: Update.
42418         * doc/functions/sprintf.texi: Update.
42419         * doc/functions/vfprintf.texi: Update.
42420         * doc/functions/vprintf.texi: Update.
42421         * doc/functions/vsnprintf.texi: Update.
42422         * doc/functions/vsprintf.texi: Update.
42423
42424 2007-05-20  Bruno Haible  <bruno@clisp.org>
42425
42426         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42427         was not found in libc.
42428         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42429
42430 2007-05-20  Bruno Haible  <bruno@clisp.org>
42431
42432         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42433         printed as "-nan" instead of "nan".
42434         * tests/test-vasprintf-posix.c (test_function): Likewise.
42435         * tests/test-snprintf-posix.h (test_function): Likewise.
42436         * tests/test-sprintf-posix.h (test_function): Likewise.
42437         Needed for HP-UX 11.
42438
42439 2007-05-20  Jim Meyering  <jim@meyering.net>
42440
42441         Fix buggy test for the fchownat-deref bug.
42442         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42443         symlink required for the run-test.  Without it, this test would
42444         always declare that fchownat doesn't work, and client code would
42445         unnecessarily use the replacement function with fixed libc.
42446         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42447         Reported by Greg Schafer.
42448
42449 2007-05-19  Bruno Haible  <bruno@clisp.org>
42450
42451         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42452         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42453         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42454         Needed for IRIX 6.5 and Solaris 2.5.1.
42455
42456 2007-05-19  Bruno Haible  <bruno@clisp.org>
42457
42458         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42459         (test_function): Skip tests involving -0.0 on platforms where
42460         -0.0 = 0.0.
42461         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42462         (test_function): Skip tests involving -0.0 on platforms where
42463         -0.0 = 0.0.
42464         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42465         (test_function): Skip tests involving -0.0 on platforms where
42466         -0.0 = 0.0.
42467         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42468         (test_function): Skip tests involving -0.0 on platforms where
42469         -0.0 = 0.0.
42470         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42471         tests.
42472         * tests/test-printf-posix.h (test_function): Likewise.
42473         * tests/test-printf-posix.output: Remove all -0.0 related results.
42474         Needed for IRIX 6.5.
42475
42476 2007-05-19  Bruno Haible  <bruno@clisp.org>
42477
42478         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42479         printed as "nan0x7fffffff" instead of "nan".
42480         * tests/test-vasprintf-posix.c (test_function): Likewise.
42481         * tests/test-snprintf-posix.h (test_function): Likewise.
42482         * tests/test-sprintf-posix.h (test_function): Likewise.
42483         * tests/test-fprintf-posix.h (NaN): Remove macro.
42484         (test_function): Remove all NaN related tests.
42485         * tests/test-printf-posix.h (NaN): Remove macro.
42486         (test_function): Remove all NaN related tests.
42487         * tests/test-printf-posix.output: Remove all NaN related results.
42488         Needed for IRIX 6.5.
42489
42490 2007-05-19  Bruno Haible  <bruno@clisp.org>
42491
42492         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42493         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42494
42495 2007-05-19  Bruno Haible  <bruno@clisp.org>
42496
42497         * lib/float_.h: New file.
42498         * m4/float_h.m4: New file.
42499         * modules/float: New file.
42500         * modules/isnanl (Dependencies): Add float.
42501         * modules/isnanl-nolibm (Dependencies): Likewise.
42502         * modules/mathl (Dependencies): Likewise.
42503         * modules/printf-frexpl (Dependencies): Likewise.
42504         * modules/signbit (Dependencies): Likewise.
42505         * modules/vasnprintf (Dependencies): Likewise.
42506         * doc/headers/float.texi: Update.
42507
42508 2007-05-19  Jim Meyering  <jim@meyering.net>
42509
42510         * lib/utimens.c (gl_futimens): Rename from futimens,
42511         now that glibc-2.6 declares futimens.
42512         * lib/utimens.h: Likewise.
42513
42514 2007-05-19  Bruno Haible  <bruno@clisp.org>
42515
42516         Avoid test failures on mingw.
42517         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42518         * tests/test-printf-posix.sh: Likewise.
42519         * tests/test-vfprintf-posix.sh: Likewise.
42520         * tests/test-vprintf-posix.sh: Likewise.
42521
42522 2007-05-19  Bruno Haible  <bruno@clisp.org>
42523
42524         Fix *printf result for NaN, Inf, -0.0 on mingw.
42525         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42526         * lib/vasnprintf.c: Include math.h and isnan.h.
42527         (is_infinite_or_zero): New function.
42528         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42529         values in the %f, %F, %e, %E, %g, %G directives.
42530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42531         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42532         gl_PRINTF_INFINITE and test its result. Invoke
42533         gl_PREREQ_VASNPRINTF_INFINITE.
42534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42535         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42536         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42538         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42541         * doc/functions/fprintf.texi: Update.
42542         * doc/functions/printf.texi: Update.
42543         * doc/functions/snprintf.texi: Update.
42544         * doc/functions/sprintf.texi: Update.
42545         * doc/functions/vfprintf.texi: Update.
42546         * doc/functions/vprintf.texi: Update.
42547         * doc/functions/vsnprintf.texi: Update.
42548         * doc/functions/vsprintf.texi: Update.
42549
42550 2007-05-19  Bruno Haible  <bruno@clisp.org>
42551
42552         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42553         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42554         Instead of multiplying with 10^k, set extra_zeroes to k.
42555         (scale10_round_long_double): Remove function.
42556
42557 2007-05-18  Bruno Haible  <bruno@clisp.org>
42558
42559         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42560         introduced on 2007-05-06.
42561
42562 2007-05-18  Bruno Haible  <bruno@clisp.org>
42563
42564         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42565         %g directives.
42566         * tests/test-vasprintf-posix.c (test_function): Likewise.
42567         * tests/test-snprintf-posix.h (test_function): Likewise.
42568         * tests/test-sprintf-posix.h (test_function): Likewise.
42569
42570 2007-05-18  Bruno Haible  <bruno@clisp.org>
42571
42572         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42573         (strmatch): New function.
42574         (test_function): Test the %f directive on numbers of various exponents.
42575         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42576         (strmatch): New function.
42577         (test_function): Test the %f directive on numbers of various exponents.
42578         * tests/test-snprintf-posix.h (strmatch): New function.
42579         (test_function): Test the %f directive on numbers of various exponents.
42580         * tests/test-sprintf-posix.h (strmatch): New function.
42581         (test_function): Test the %f directive on numbers of various exponents.
42582         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42583         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42584         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42585         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42586
42587 2007-05-18  Bruno Haible  <bruno@clisp.org>
42588
42589         Add support for 'long double' number output.
42590         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42591         * lib/vasnprintf.c: Include math.h and float+.h.
42592         (mp_limb_t): New type.
42593         (GMP_LIMB_BITS): New macro.
42594         (mp_twolimb_t): New type.
42595         (GMP_TWOLIMB_BITS): New macro.
42596         (mpn_t): New type.
42597         (multiply, divide, convert_to_decimal, decode_long_double,
42598         scale10_round_long_double, scale10_round_decimal_long_double,
42599         floorlog10l): New functions.
42600         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42601         for the %f, %F, %e, %E, %g, %G directives.
42602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42604         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42605         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42613         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42614         * modules/snprintf-posix (Depends-on): Likewise.
42615         * modules/sprintf-posix (Depends-on): Likewise.
42616         * modules/vasnprintf-posix (Depends-on): Likewise.
42617         * modules/vasprintf-posix (Depends-on): Likewise.
42618         * modules/vfprintf-posix (Depends-on): Likewise.
42619         * modules/vsnprintf-posix (Depends-on): Likewise.
42620         * modules/vsprintf-posix (Depends-on): Likewise.
42621         * modules/vasnprintf (Files): Add lib/float+.h.
42622         * doc/functions/fprintf.texi: Update.
42623         * doc/functions/printf.texi: Update.
42624         * doc/functions/snprintf.texi: Update.
42625         * doc/functions/sprintf.texi: Update.
42626         * doc/functions/vfprintf.texi: Update.
42627         * doc/functions/vprintf.texi: Update.
42628         * doc/functions/vsnprintf.texi: Update.
42629         * doc/functions/vsprintf.texi: Update.
42630
42631 2007-05-18  Bruno Haible  <bruno@clisp.org>
42632
42633         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42634
42635 2007-05-18  Bruno Haible  <bruno@clisp.org>
42636
42637         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42638         for printing 64-bit integers. Needed for mingw.
42639
42640 2007-05-18  Bruno Haible  <bruno@clisp.org>
42641
42642         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42643         gl_FUNC_FREXPL_WORKS.
42644         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42645
42646 2007-05-18  Bruno Haible  <bruno@clisp.org>
42647
42648         * modules/frexpl-nolibm-tests: New file.
42649
42650         * modules/frexpl-nolibm: New file.
42651         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42652
42653 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42654
42655         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42656         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42657         GCC 4.2, which otherwise issues a lot of warnings.
42658         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42659         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42660         Likewise.
42661         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42662         * modules/iconv_open (iconv.h): Likewise.
42663         * modules/locale (locale.h): Likewise.
42664         * modules/netinet_in (netinet/in.h): Likewise.
42665         * modules/sys_select (sys_select.h): Likewise.
42666         * modules/sys_socket (sys/socket.h): Likewise.
42667         * modules/sys_stat (sys/stat.h): Likewise.
42668         * modules/sysexits (sysexits.h): Likewise.
42669         * modules/unistd (unistd.h): Likewise.
42670
42671 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42672
42673         * modules/closein-tests (Makefile.am): Distribute
42674         `test-closein.sh'.
42675
42676 2007-05-17  Bruno Haible  <bruno@clisp.org>
42677
42678         * tests/test-printf-posix.output: Renamed from
42679         tests/test-fprintf-posix.out.
42680         * modules/fprintf-posix-tests: Update.
42681         * modules/printf-posix-tests: Update.
42682         * modules/vfprintf-posix-tests: Update.
42683         * modules/vprintf-posix-tests: Update.
42684         * tests/test-fprintf-posix.sh: Update.
42685         * tests/test-printf-posix.sh: Update.
42686         * tests/test-vfprintf-posix.sh: Update.
42687         * tests/test-vprintf-posix.sh: Update.
42688         Reported by Ralf Wildenhues.
42689
42690 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42691
42692         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
42693         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42694         GCC 4.2, which otherwise issues a lot of warnings.
42695         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
42696         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
42697         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
42698         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
42699         it should no longer be needed.
42700         * lib/string_.h: Likewise.
42701         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
42702         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
42703         * modules/inttypes (inttypes.h): Likewise.
42704         * modules/math (math.h): Likewise.
42705         * modules/search (search.h): Likewise.
42706         * modules/signal (signal.h): Likewise.
42707         * modules/stdint (stdint.h): Likewise.
42708         * modules/stdio (stdio.h): Likewise.
42709         * modules/stdlib (stdlib.h): Likewise.
42710         * modules/string (string.h): Likewise.
42711         * modules/sys_time (sys/time.h): Likewise.
42712         * modules/time (time.h): Likewise.
42713         * modules/wchar (wchar.h): Likewise.
42714         * modules/wctype (wtype.h): Likewise.
42715
42716 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42717
42718         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
42719
42720 2007-05-13  Bruno Haible  <bruno@clisp.org>
42721
42722         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
42723         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42724         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
42725         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42726         (gl_PREREQ_STRTOK_R): Don't require it here.
42727
42728 2007-05-13  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
42731         when used in C++ mode.
42732
42733 2007-05-12  Bruno Haible  <bruno@clisp.org>
42734
42735         * lib/linebuffer.h: Tweak doc.
42736         * lib/linebuffer.c: Likewise.
42737
42738 2007-05-12  James Youngman  <jay@gnu.org>
42739
42740         * lib/linebuffer.c (readlinebuffer_delim): New function,
42741         like readlinebuffer, but use a caller-specified delimiter.
42742         (readlinebuffer): Just call readlinebuffer_delim with '\n'
42743         as the delimiter.
42744         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
42745
42746 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42747
42748         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
42749         * modules/openat (Files): Remove openat-die.c.
42750         (Depends-on): Add openat-die.
42751         * modules/openat-die: New module.
42752
42753 2007-05-06  Bruno Haible  <bruno@clisp.org>
42754
42755         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
42756         Update with info about Cygwin.
42757         * doc/functions/fprintf.texi: Update.
42758         * doc/functions/printf.texi: Update.
42759         * doc/functions/snprintf.texi: Update.
42760         * doc/functions/sprintf.texi: Update.
42761         * doc/functions/vfprintf.texi: Update.
42762         * doc/functions/vprintf.texi: Update.
42763         * doc/functions/vsnprintf.texi: Update.
42764         * doc/functions/vsprintf.texi: Update.
42765         Reported by Eric Blake.
42766
42767 2007-05-06  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
42770         padding ourselves for the floating-point directives.
42771         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
42772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
42773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42774         gl_PRINTF_FLAG_ZERO and test its result. Invoke
42775         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
42776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42783         * tests/test-snprintf-posix.h (test_function): Also check the width
42784         and some flags in the %f directive.
42785         * tests/test-sprintf-posix.h (test_function): Likewise.
42786         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42787         * tests/test-vasprintf-posix.c (test_function): Likewise.
42788         * doc/functions/fprintf.texi: Update.
42789         * doc/functions/printf.texi: Update.
42790         * doc/functions/snprintf.texi: Update.
42791         * doc/functions/sprintf.texi: Update.
42792         * doc/functions/vfprintf.texi: Update.
42793         * doc/functions/vprintf.texi: Update.
42794         * doc/functions/vsnprintf.texi: Update.
42795         * doc/functions/vsprintf.texi: Update.
42796
42797 2007-05-06  Bruno Haible  <bruno@clisp.org>
42798
42799         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
42800         pass the ' flag character to sprintf or snprintf.
42801         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
42802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
42803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42804         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
42805         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
42806         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42807         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42808         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42809         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42810         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42812         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42813         * tests/test-snprintf-posix.h (test_function): Also check the grouping
42814         flag.
42815         * tests/test-sprintf-posix.h (test_function): Likewise.
42816         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42817         * tests/test-vasprintf-posix.c (test_function): Likewise.
42818         * doc/functions/fprintf.texi: Update.
42819         * doc/functions/printf.texi: Update.
42820         * doc/functions/snprintf.texi: Update.
42821         * doc/functions/sprintf.texi: Update.
42822         * doc/functions/vfprintf.texi: Update.
42823         * doc/functions/vprintf.texi: Update.
42824         * doc/functions/vsnprintf.texi: Update.
42825         * doc/functions/vsprintf.texi: Update.
42826
42827 2007-05-01  Bruno Haible  <bruno@clisp.org>
42828
42829         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
42830
42831 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
42832
42833         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
42834         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
42835
42836 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42837
42838         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42839         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42841
42842 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42843
42844         * lib/argp-help.c (struct hol_entry): New member `ord'.
42845         (HOL_ENTRY_PTRCMP): Use ord for comparison
42846         (hol_sort): Initialize ord.
42847
42848 2007-05-01  Bruno Haible  <bruno@clisp.org>
42849
42850         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42851         Reported by Eric Blake.
42852         * doc/gnulib.texi (Function Substitutes): Update.
42853
42854 2007-05-01  Bruno Haible  <bruno@clisp.org>
42855
42856         * doc/functions.texi: Remove file, now redundant through
42857         doc/functions/*.texi.
42858
42859 2007-05-01  Bruno Haible  <bruno@clisp.org>
42860
42861         * modules/argp (Depends-on): Add sleep.
42862
42863 2007-05-01  Bruno Haible  <bruno@clisp.org>
42864
42865         * modules/sleep-tests: New file.
42866         * tests/test-sleep.c: New file.
42867
42868         * modules/sleep: New file.
42869         * lib/sleep.c: New file.
42870         * m4/sleep.m4: New file.
42871         * lib/unistd_.h (sleep): New declaration.
42872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42873         HAVE_SLEEP.
42874         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42875         * doc/functions/sleep.texi: Document the sleep module.
42876
42877 2007-05-01  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/sigprocmask.h: Remove file.
42880         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42881         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42882         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42883         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42884         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42885         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42886         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42887         HAVE_SIGSET_T as a shell variable.
42888         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42889         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42890         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42891         (Depends-on): Add signal. Remove verify.
42892         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42893         (Include): Mention <signal.h> instead of sigprocmask.h.
42894         * NEWS: Mention the change.
42895         * lib/fatal-signal.c: Don't include sigprocmask.h.
42896
42897 2007-05-01  Bruno Haible  <bruno@clisp.org>
42898
42899         * modules/signal: New file.
42900         * lib/signal_.h: New file.
42901         * m4/signal_h.m4: New file.
42902
42903 2007-05-01  Bruno Haible  <bruno@clisp.org>
42904
42905         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42906         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42907         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42908         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42909
42910 2007-05-01  Bruno Haible  <bruno@clisp.org>
42911
42912         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42913         configure time.
42914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42915         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42916         * modules/sys_stat (Makefile.am): Substitute their values into
42917         sys/stat.h.
42918
42919 2007-05-01  Bruno Haible  <bruno@clisp.org>
42920
42921         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42922         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42923         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42924
42925 2007-05-01  Bruno Haible  <bruno@clisp.org>
42926
42927         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42928         'assert' module here.
42929
42930 2007-05-01  Bruno Haible  <bruno@clisp.org>
42931
42932         * doc/functions/*.texi: New files.
42933         * doc/functions/google-ranking.txt: New file.
42934         * doc/gnulib.texi (Function Substitutes): New chapter.
42935         (ctime, inet_ntoa): Remove sections.
42936         * doc/ctime.texi: Remove file.
42937         * doc/inet_ntoa.texi: Remove file.
42938         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42939         dependencies.
42940         (%.info): New rule, specifying a --reference-limit.
42941
42942 2007-05-01  Bruno Haible  <bruno@clisp.org>
42943
42944         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42945
42946 2007-05-01  Bruno Haible  <bruno@clisp.org>
42947
42948         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42949         the portability of 'mkdir' to mingw systems.
42950
42951 2007-05-01  Bruno Haible  <bruno@clisp.org>
42952
42953         * doc/headers/google-ranking.txt: New file.
42954
42955 2007-04-30  Eric Blake  <ebb9@byu.net>
42956
42957         Prefer fseeko to fseek.
42958         * modules/getpass (Depends-on): Add fseeko.
42959         * lib/getpass.c (getpass): Use fseeko, not fseek.
42960
42961 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42962
42963         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42964         assumes the sorting is stable, while most qsort implementations
42965         are not.  Use argument addresses to ensure they never compare as
42966         equal.
42967
42968         * tests/test-argp-2.sh (usage-indent test): Fix output
42969         (func_compare): Restore diff options
42970         * tests/test-argp.c: Restore #include "progname.h"
42971
42972 2007-04-29  Bruno Haible  <bruno@clisp.org>
42973
42974         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42976         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42978         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42979         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42980         (TESTS, check_PROGRAMS): Add test-snprintf.
42981         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42982         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42983         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42984         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42985         assertions that fail on HP-UX, OSF/1, or IRIX.
42986         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42987
42988 2007-04-29  Bruno Haible  <bruno@clisp.org>
42989
42990         * MODULES.html.sh (posix_functions): Remove 'contents'.
42991
42992 2007-04-29  Karl Berry  <karl@gnu.org>
42993
42994         * config/srclist.txt (gendocs_template_min): new entry.
42995
42996 2007-04-29  Bruno Haible  <bruno@clisp.org>
42997
42998         Work around fpurge bug on BSD systems.
42999         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
43000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
43001         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
43002         fpurge to rpl_fpurge if the system already has this function.
43003         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
43004         the case where the system already has this function. Correct invariants
43005         on BSD systems.
43006         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
43007         BSD systems.
43008
43009 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43010
43011         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
43012         proposed by Sven Verdoolaege.
43013
43014         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
43015         options.
43016         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
43017         (usage and help tests): Update
43018
43019 2007-04-29  Bruno Haible  <bruno@clisp.org>
43020
43021         * tests/test-fflush.c (main): Use a file of size 17, not 10.
43022         Print more information in case of failure. Disable a test on BeOS.
43023
43024 2007-04-29  Bruno Haible  <bruno@clisp.org>
43025
43026         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
43027         This helps debugging on systems on which no gdb is available.
43028
43029 2007-04-29  Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/freading.h: Improve comments.
43032         * lib/fwriting.h: Likewise.
43033         * tests/test-freading.c (main): Don't check freading immediately after
43034         repositioning. Needed for glibc.
43035
43036 2007-04-29  Bruno Haible  <bruno@clisp.org>
43037
43038         * lib/freading.c (freading): Trivial simplification.
43039
43040 2007-04-28  Bruno Haible  <bruno@clisp.org>
43041
43042         * tests/test-fwriting.c (main): Also test the interaction between
43043         fflush and fwriting.
43044         * modules/fwriting-tests (Depends-on): Add fflush.
43045
43046         * tests/test-freading.c (main): Also test the interaction between
43047         fflush and freading.
43048         * modules/freading-tests (Depends-on): Add fflush.
43049
43050 2007-04-28  Bruno Haible  <bruno@clisp.org>
43051
43052         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
43053         fseeko and ftello.
43054         Suggested by Eric Blake.
43055
43056 2007-04-28  Jim Meyering  <jim@meyering.net>
43057
43058         Avoid false-negative in gl_STDINT_H's C99 conformance test.
43059         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
43060         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
43061
43062 2007-04-27  Eric Blake  <ebb9@byu.net>
43063
43064         * doc/headers/assert.texi (assert.h): Document assert module use.
43065
43066 2007-04-27  Bruno Haible  <bruno@clisp.org>
43067
43068         * doc/headers/*.texi: New files.
43069         * doc/gnulib.texi (Header File Substitutes): New chapter.
43070         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
43071         dependencies.
43072         (standards.info ,standards.html, standards.dvi): Update dependencies.
43073         (mostlyclean, clean): New targets.
43074
43075 2007-04-27  Bruno Haible  <bruno@clisp.org>
43076
43077         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
43078         * modules/sysexits (Files, Makefile.am): Update.
43079
43080         * lib/sys_socket_.h: Renamed from lib/socket_.h.
43081         * modules/sys_socket (Files, Makefile.am): Update.
43082
43083         * lib/sys_stat_.h: Renamed from lib/stat_.h.
43084         * modules/sys_stat (Files, Makefile.am): Update.
43085
43086 2007-04-27  Eric Blake  <ebb9@byu.net>
43087
43088         * lib/freading.h: Improve comments.
43089         * lib/fwriting.h: Likewise.
43090         * lib/fflush.c: Likewise.
43091
43092         Fix closein for mingw.
43093         * modules/closein-tests: Add tests for closein.
43094         * tests/test-closein.c: New file.
43095         * tests/test-closein.sh: Likewise.
43096         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
43097         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
43098
43099 2007-04-27  Bruno Haible  <bruno@clisp.org>
43100
43101         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
43102         version is < 6.
43103         * lib/math_.h [__DECC]: Likewise.
43104         * lib/stdio_.h [__DECC]: Likewise.
43105         * lib/stdlib_.h [__DECC]: Likewise.
43106         * lib/string_.h [__DECC]: Likewise.
43107         * lib/time_.h [__DECC]: Likewise.
43108         * lib/wchar_.h [__DECC]: Likewise.
43109         * lib/wctype_.h [__DECC]: Likewise.
43110
43111 2007-04-27  Bruno Haible  <bruno@clisp.org>
43112
43113         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
43114
43115 2007-04-27  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/fflush.c: Add comments.
43118         * modules/fpurge-tests (Depends-on): Add fflush.
43119         * modules/freadable-tests (Depends-on): Likewise.
43120         * modules/fwritable-tests (Depends-on): Likewise.
43121
43122 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
43123
43124         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
43125         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
43126         Report by Bruno Haible <bruno@clisp.org>.
43127
43128 2007-04-26  Eric Blake  <ebb9@byu.net>
43129
43130         Fix fflush on mingw.
43131         * modules/fflush (Depends-on): Add freading.
43132         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
43133         but unread data.
43134
43135 2007-04-26  Eric Blake  <ebb9@byu.net>
43136         and Bruno Haible  <bruno@clisp.org>
43137
43138         Implement freading and fwriting.
43139         * lib/freading.c: New file.
43140         * lib/freading.h: Likewise.
43141         * m4/freading.m4: Likewise.
43142         * modules/freading: Likewise.
43143         * modules/freading-tests: Likewise.
43144         * tests/test-freading.c: Likewise.
43145         * lib/fwriting.c: New file.
43146         * lib/fwriting.h: Likewise.
43147         * m4/fwriting.m4: Likewise.
43148         * modules/fwriting: Likewise.
43149         * modules/fwriting-tests: Likewise.
43150         * tests/test-fwriting.c: Likewise.
43151         * MODULES.html.sh (File stream based Input/Output): Mention them.
43152
43153 2007-04-26  Bruno Haible  <bruno@clisp.org>
43154
43155         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
43156         'long' when we assume it.
43157         Suggested by Eric Blake.
43158
43159 2007-04-26  Bruno Haible  <bruno@clisp.org>
43160
43161         Ensure fseeko, ftello are declared on glibc systems.
43162         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
43163         * modules/fseeko (configure.ac-early): Likewise.
43164         * modules/ftello (configure.ac-early): Likewise.
43165         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
43166         AC_FUNC_FSEEKO for this.
43167         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
43168         (gl_CHECK_FSEEKO): Remove macro.
43169
43170 2007-04-26  Bruno Haible  <bruno@clisp.org>
43171
43172         * tests/test-fflush.c (main): Also check the ftell result after
43173         fflush and fseek/fseeko.
43174         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
43175         file descriptor position cache in the stream.
43176         * lib/fseeko.c (rpl_fseeko): Likewise.
43177
43178 2007-04-26  Bruno Haible  <bruno@clisp.org>
43179
43180         * modules/fflush-tests (Depends-on): Add fseeko.
43181
43182 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
43183             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43184
43185         * lib/argz_.h: ensure error_t definition is obtained in same
43186         mechanism system argz.h would have.
43187         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
43188         argz facilities are known bad.  Err on the side of caution if
43189         cross-compiling.
43190
43191 2007-04-25  Eric Blake  <ebb9@byu.net>
43192
43193         * lib/fpurge.c (includes): Use stdlib.h for free.
43194         * tests/test-fflush.c (main): Also test fflush-fseeko.
43195
43196 2007-04-25  Bruno Haible  <bruno@clisp.org>
43197
43198         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
43199         * lib/fseeko.c: New file.
43200         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
43201         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
43202         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
43203         gl_FUNC_FSEEKO.
43204         (gl_FUNC_FSEEKO): Invoke it.
43205         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
43206         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
43207         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
43208
43209 2007-04-25  Bruno Haible  <bruno@clisp.org>
43210
43211         * modules/fflush (Depends-on): Add ftello.
43212
43213 2007-04-25  Bruno Haible  <bruno@clisp.org>
43214
43215         * modules/ftello-tests: New file.
43216         * tests/test-ftello.c: New file.
43217
43218         * modules/ftello: New file.
43219         * m4/ftello.m4: New file.
43220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
43221         HAVE_FTELLO.
43222         * lib/stdio_.h (ftello): New declaration.
43223         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
43224         HAVE_FTELLO.
43225
43226 2007-04-25  Bruno Haible  <bruno@clisp.org>
43227
43228         * modules/fseeko-tests: New file.
43229         * tests/test-fseeko.c: New file.
43230
43231         * modules/fseeko: New file.
43232         * m4/fseeko.m4: New file.
43233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
43234         HAVE_FSEEKO.
43235         * lib/stdio_.h (fseeko): New declaration.
43236         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
43237         HAVE_FSEEKO.
43238
43239 2007-04-25  Bruno Haible  <bruno@clisp.org>
43240
43241         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
43242
43243 2007-04-25  Bruno Haible  <bruno@clisp.org>
43244
43245         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
43246         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
43247         * tests/test-unistd.c: Likewise.
43248         * tests/test-fcntl.c: Likewise.
43249
43250 2007-04-23  Eric Blake  <ebb9@byu.net>
43251
43252         * lib/fflush.c: Fix missing include.
43253         Reported by Bruno Haible.
43254
43255 2007-04-23  Bruno Haible  <bruno@clisp.org>
43256
43257         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
43258         Reported by Eric Blake.
43259
43260 2007-04-23  Bruno Haible  <bruno@clisp.org>
43261
43262         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
43263
43264 2007-04-23  Bruno Haible  <bruno@clisp.org>
43265
43266         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
43267
43268 2007-04-23  Bruno Haible  <bruno@clisp.org>
43269
43270         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
43271         Needed on HP-UX 11.
43272
43273 2007-04-16  Eric Blake  <ebb9@byu.net>
43274
43275         Make fflush rely on fpurge.
43276         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
43277         open coding all variants.
43278         * modules/fflush (Depends-on): Add fpurge and unistd.
43279         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
43280         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
43281
43282         Fix --with-tests compilation on cygwin.
43283         * modules/argmatch-tests (Makefile.am): List gnulib library first
43284         in LDADD.
43285         * modules/argp-tests (Makefile.am): Likewise.
43286         * modules/array-list-tests (Makefile.am): Likewise.
43287         * modules/array-oset-tests (Makefile.am): Likewise.
43288         * modules/avltree-list-tests (Makefile.am): Likewise.
43289         * modules/avltree-oset-tests (Makefile.am): Likewise.
43290         * modules/avltreehash-list-tests (Makefile.am): Likewise.
43291         * modules/carray-list-tests (Makefile.am): Likewise.
43292         * modules/dirname-tests (Makefile.am): Likewise.
43293         * modules/frexp-tests (Makefile.am): Likewise.
43294         * modules/isnanl-tests (Makefile.am): Likewise.
43295         * modules/linked-list-tests (Makefile.am): Likewise.
43296         * modules/linkedhash-list-tests (Makefile.am): Likewise.
43297         * modules/lock-tests (Makefile.am): Likewise.
43298         * modules/rbtree-list-tests (Makefile.am): Likewise.
43299         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43300         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
43301         * modules/tls-tests (Makefile.am): Likewise.
43302         * modules/tsearch-tests (Makefile.am): Likewise.
43303         * modules/xvasprintf-tests (Makefile.am): Likewise.
43304
43305         Fix fpurge for cygwin.
43306         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
43307         value.
43308         * modules/fpurge-tests (Depends-on): Clean up trash.
43309
43310 2007-04-16  Simon Josefsson  <simon@josefsson.org>
43311
43312         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
43313
43314         * m4/autobuild.m4: Re-indent.
43315
43316 2007-04-13  Bruno Haible  <bruno@clisp.org>
43317
43318         * modules/fpurge-tests: New file.
43319         * tests/test-fpurge.c: New file.
43320
43321         * modules/fpurge: New file.
43322         * lib/fpurge.h: New file.
43323         * lib/fpurge.c: New file.
43324         * m4/fpurge.m4: New file.
43325
43326 2007-04-13  Bruno Haible  <bruno@clisp.org>
43327
43328         * modules/fbufmode-tests: New file.
43329         * tests/test-fbufmode.c: New file.
43330
43331         * modules/fbufmode: New file.
43332         * lib/fbufmode.h: New file.
43333         * lib/fbufmode.c: New file.
43334         * m4/fbufmode.m4: New file.
43335
43336 2007-04-13  Bruno Haible  <bruno@clisp.org>
43337
43338         * modules/fwritable-tests: New file.
43339         * tests/test-fwritable.c: New file.
43340
43341         * modules/fwritable: New file.
43342         * lib/fwritable.h: New file.
43343         * lib/fwritable.c: New file.
43344         * m4/fwritable.m4: New file.
43345
43346 2007-04-13  Bruno Haible  <bruno@clisp.org>
43347
43348         * modules/freadable-tests: New file.
43349         * tests/test-freadable.c: New file.
43350
43351         * modules/freadable: New file.
43352         * lib/freadable.h: New file.
43353         * lib/freadable.c: New file.
43354         * m4/freadable.m4: New file.
43355
43356 2007-04-13  Bruno Haible  <bruno@clisp.org>
43357
43358         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
43359         MOSTLYCLEANFILES.
43360
43361 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43362
43363         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
43364         gzip bootstrap.conf to avoid dragging in i18n machinery.
43365         (gnulib_tool_option): Use it.
43366
43367 2007-04-13  Bruno Haible  <bruno@clisp.org>
43368
43369         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
43370         %F directives.
43371         * tests/test-vasprintf-posix.c (test_function): Likewise.
43372         * tests/test-snprintf-posix.h (test_function): Likewise.
43373         * tests/test-sprintf-posix.h (test_function): Likewise.
43374         * tests/test-fprintf-posix.h (test_function): Likewise.
43375         * tests/test-printf-posix.h (test_function): Likewise.
43376         * tests/test-fprintf-posix.out: Likewise.
43377
43378 2007-04-13  Bruno Haible  <bruno@clisp.org>
43379
43380         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
43381         * modules/tls-tests (configure.ac): Likewise.
43382         Reported by Arto C. Nirkko <anirkko@insel.ch>.
43383
43384 2007-04-13  Bruno Haible  <bruno@clisp.org>
43385
43386         * lib/tls.c (glthread_tls_get): Fix return type.
43387         Patch by Arto C. Nirkko <anirkko@insel.ch>.
43388
43389 2007-04-12  Eric Blake  <ebb9@byu.net>
43390
43391         * modules/gettime (Depends-on): Remove gettime.
43392         Reported by Dmitry V. Levin.
43393
43394 2007-04-12  Bruno Haible  <bruno@clisp.org>
43395
43396         * modules/fflush (Include): Mention <stdio.h>.
43397         * modules/strtoimax (Include): Mention <inttypes.h>.
43398         * modules/strtoumax (Include): Likewise.
43399
43400 2007-04-12  Eric Blake  <ebb9@byu.net>
43401
43402         * .cvsignore: New file.
43403         * .gitignore: Likewise.
43404
43405 2007-04-12  Bruno Haible  <bruno@clisp.org>
43406
43407         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43408         not before, since $(LDADD) often contains libgnu.a.
43409         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43410         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43411         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43412         Needed on Cygwin.
43413
43414 2007-04-12  Eric Blake  <ebb9@byu.net>
43415
43416         Work around glibc's failure to flush stdin on fclose.
43417         * lib/closein.c (close_stdin): Flush stdin before closing.
43418
43419         Work around glibc's failure to reset seekable stdin on exit.
43420         * modules/closein: New module.
43421         * lib/closein.c: New file.
43422         * lib/closein.h: Likewise.
43423         * m4/closein.m4: Likewise.
43424         * MODULES.html.sh (File stream based Input/Output): Document it.
43425
43426 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43427
43428         * gnulib-tool: Rename generated 'autobuild' script to
43429         'do-autobuild' in --create-megatestdir output.
43430
43431         * doc/gnulib.texi (Build robot for gnulib): Fix.
43432
43433 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43434
43435         * modules/sysexits (Depends-on): Add absolute-header.
43436
43437 2007-04-12  Eric Blake  <ebb9@byu.net>
43438
43439         No need to preserve errno on success.
43440         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43441         Reported by Bruno Haible.
43442
43443 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43444
43445         * MODULES.html.sh (Support for maintaining and releasing
43446         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43447
43448 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43449
43450         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43451
43452 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43453
43454         * modules/autobuild: New module.
43455
43456         * m4/autobuild.m4: New file.
43457
43458 2007-04-11  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43461         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43463         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43473         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43488         Reported by Eric Blake.
43489
43490 2007-04-11  Bruno Haible  <bruno@clisp.org>
43491
43492         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43493
43494 2007-04-10  Bruno Haible  <bruno@clisp.org>
43495
43496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43497         for NaN and Infinity. Needed on FreeBSD 6.1.
43498         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43499         regarding results for "%010a" of Infinity and NaN.
43500         * tests/test-vasprintf-posix.c (test_function): Likewise.
43501         * tests/test-snprintf-posix.h (test_function): Likewise.
43502         * tests/test-sprintf-posix.h (test_function): Likewise.
43503         * tests/test-fprintf-posix.h (test_function): Likewise.
43504         * tests/test-printf-posix.h (test_function): Likewise.
43505         * tests/test-fprintf-posix.out: Likewise.
43506
43507 2007-04-10  Bruno Haible  <bruno@clisp.org>
43508
43509         * modules/locale-tests: New file.
43510         * tests/test-locale.c: New file.
43511
43512         * modules/locale: New file.
43513         * lib/locale_.h: New file.
43514         * m4/locale_h.m4: New file.
43515
43516 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43517             Bruno Haible  <bruno@clisp.org>
43518
43519         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43520         be determined, test for availability of the copysignf, copysign,
43521         copysignl functions.
43522         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43523         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43524         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43525
43526 2007-04-09  Eric Blake  <ebb9@byu.net>
43527
43528         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43529         * modules/stdio (Makefile.am): Support fflush.
43530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43531         * modules/fflush: New file.
43532         * lib/fflush.c: Likewise.
43533         * m4/fflush.m4: Likewise.
43534         * modules/fflush-tests: New test.
43535         * tests/test-fflush.c: Likewise.
43536         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43537
43538 2007-04-06  Bruno Haible  <bruno@clisp.org>
43539
43540         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43541         (VASNPRINTF): Use signbit for faster determination whether to print a
43542         minus sign.
43543         * modules/vasnprintf (Files): Remove lib/float+.h.
43544         * modules/fprintf-posix (Depends-on): Add signbit.
43545         * modules/snprintf-posix (Depends-on): Likewise.
43546         * modules/sprintf-posix (Depends-on): Likewise.
43547         * modules/vasnprintf-posix (Depends-on): Likewise.
43548         * modules/vasprintf-posix (Depends-on): Likewise.
43549         * modules/vfprintf-posix (Depends-on): Likewise.
43550         * modules/vsnprintf-posix (Depends-on): Likewise.
43551         * modules/vsprintf-posix (Depends-on): Likewise.
43552
43553 2007-04-06  Bruno Haible  <bruno@clisp.org>
43554
43555         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43556         * tests/test-frexpl.c (main): Likewise.
43557         * tests/test-ldexpl.c (main): Likewise.
43558         * modules/frexp-tests (Depends-on): Add signbit.
43559         * modules/frexpl-tests (Depdends-on): Likewise.
43560         * modules/ldexpl-tests (Depdends-on): Likewise.
43561
43562 2007-04-06  Bruno Haible  <bruno@clisp.org>
43563
43564         * modules/signbit-tests: New file.
43565         * tests/test-signbit.c: New file.
43566
43567         * modules/signbit: New file.
43568         * lib/signbitf.c: New file.
43569         * lib/signbitd.c: New file.
43570         * lib/signbitl.c: New file.
43571         * m4/signbit.m4: New file.
43572         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43573         (signbit): New macro.
43574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43575         REPLACE_SIGNBIT.
43576         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43577         REPLACE_FREXPL into math.h.
43578
43579 2007-04-06  Bruno Haible  <bruno@clisp.org>
43580
43581         * modules/isnanf-nolibm-tests: New file.
43582         * tests/test-isnanf.c: New file.
43583
43584         * modules/isnanf-nolibm: New file.
43585         * lib/isnanf.h: New file.
43586         * lib/isnanf.c: New file.
43587         * lib/isnan.c: Consider the USE_FLOAT macro.
43588         * m4/isnanf.m4: New file.
43589
43590 2007-04-06  Bruno Haible  <bruno@clisp.org>
43591
43592         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43593         (Link): New section.
43594
43595         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43596
43597 2007-04-06  Bruno Haible  <bruno@clisp.org>
43598
43599         Assume the 'long double' type.
43600         * m4/longdouble.m4: Remove file.
43601         * config/srclist.txt: Don't mention longdouble.m4.
43602         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43603         * lib/float+.h: Likewise.
43604         * lib/frexp.c: Likewise.
43605         * lib/printf-args.h: Likewise.
43606         * lib/printf-args.c: Likewise.
43607         * lib/printf-frexp.c: Likewise.
43608         * lib/printf-parse.c: Likewise.
43609         * lib/vasnprintf.c: Likewise.
43610         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43611         * m4/intl.m4: Likewise.
43612         * m4/isnanl.m4: Likewise.
43613         * m4/printf.m4: Likewise.
43614         * m4/printf-frexpl.m4: Likewise.
43615         * m4/vasnprintf.m4: Likewise.
43616         * modules/allocsa (Files): Remove m4/longdouble.m4.
43617         * modules/gettext (Files): Likewise.
43618         * modules/relocatable-prog-wrapper (Files): Likewise.
43619         * modules/vasnprintf (Files): Likewise.
43620         * modules/isnanl (Files): Likewise.
43621         (Include): Simplify.
43622         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43623         (Include): Simplify.
43624         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43625         (Include): Simplify.
43626         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43627         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43628         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43629         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43630         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43631         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43632         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43633         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43634         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43635         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43636         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43637         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43638         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43639         * tests/test-isnanl.c: Likewise.
43640         * tests/test-snprintf-posix.h: Likewise.
43641         * tests/test-sprintf-posix.h: Likewise.
43642         * tests/test-vasnprintf-posix.c: Likewise.
43643         * tests/test-vasnprintf-posix2.c: Likewise.
43644         * tests/test-vasprintf-posix.c: Likewise.
43645
43646 2007-04-06  Bruno Haible  <bruno@clisp.org>
43647
43648         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43649         * lib/math_.h [__DECC]: Include the overridden include file through
43650         #include_next, outside the double-inclusion guard.
43651         * lib/stdio_.h [__DECC]: Likewise.
43652         * lib/stdlib_.h [__DECC]: Likewise.
43653         * lib/string_.h [__DECC]: Likewise.
43654         * lib/time_.h [__DECC]: Likewise.
43655         * lib/wchar_.h [__DECC]: Likewise.
43656         * lib/wctype_.h [__DECC]: Likewise.
43657         * lib/inttypes_.h [__DECC]: Likewise.
43658         Reported by Albert Chin <china@thewrittenword.com> in
43659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43660
43661 2007-04-04  Eric Blake  <ebb9@byu.net>
43662
43663         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43664         1.5.x.
43665
43666 2007-04-04  Bruno Haible  <bruno@clisp.org>
43667
43668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43669         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43670
43671 2007-04-04  Bruno Haible  <bruno@clisp.org>
43672
43673         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
43674         results for "%010a" of Infinity and NaN.
43675         * tests/test-vasprintf-posix.c (test_function): Likewise.
43676         * tests/test-snprintf-posix.h (test_function): Likewise.
43677         * tests/test-sprintf-posix.h (test_function): Likewise.
43678         * tests/test-fprintf-posix.h (test_function): Remove these tests.
43679         * tests/test-printf-posix.h (test_function): Likewise.
43680         * tests/test-fprintf-posix.out: Update.
43681         Needed for FreeBSD 6.1.
43682
43683 2007-04-04  Bruno Haible  <bruno@clisp.org>
43684
43685         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
43686         directly used by the gnulib modules nor by gnulib-tool.
43687
43688 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43689
43690         * DEPENDENCIES: Give overall description of version dependency
43691         desirability.  Use more-typical names for apps.
43692         Add shell, coreutils, diffutils, grep, tar, gzip.
43693
43694 2007-04-04  Simon Josefsson  <simon@josefsson.org>
43695
43696         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
43697
43698 2007-04-04  Karl Berry  <karl@gnu.org>
43699
43700         * MODULES.html.sh (func_module): missing '.
43701
43702 2007-04-03  Bruno Haible  <bruno@clisp.org>
43703
43704         * modules/argmatch-tests (Makefile.am): New variable
43705         test_argmatch_LDADD.
43706         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
43707         * modules/array-list-tests (Makefile.am): New variable
43708         test_array_list_LDADD.
43709         * modules/array-oset-tests (Makefile.am): New variable
43710         test_array_oset_LDADD.
43711         * modules/avltree-list-tests (Makefile.am): New variable
43712         test_avltree_list_LDADD.
43713         * modules/avltree-oset-tests (Makefile.am): New variable
43714         test_avltree_oset_LDADD.
43715         * modules/avltreehash-list-tests (Makefile.am): New variable
43716         test_avltreehash_list_LDADD.
43717         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
43718         test_canonicalize_lgpl_LDADD.
43719         * modules/carray-list-tests (Makefile.am): New variable
43720         test_carray_list_LDADD.
43721         * modules/dirname-tests (Makefile.am): New variable
43722         test_dirname_LDADD.
43723         * modules/linked-list-tests (Makefile.am): New variable
43724         test_linked_list_LDADD.
43725         * modules/linkedhash-list-tests (Makefile.am): New variable
43726         test_linkedhash_list_LDADD.
43727         * modules/rbtree-list-tests (Makefile.am): New variable
43728         test_rbtree_list_LDADD.
43729         * modules/rbtree-oset-tests (Makefile.am): New variable
43730         test_rbtree_oset_LDADD.
43731         * modules/rbtreehash-list-tests (Makefile.am): New variable
43732         test_rbtreehash_list_LDADD.
43733         * modules/xvasprintf-tests (Makefile.am): New variable
43734         test_xvasprintf_LDADD.
43735         Reported by Eric Blake.
43736
43737 2007-04-03  Eric Blake  <ebb9@byu.net>
43738
43739         * DEPENDENCIES: Weaken m4 requirements.
43740
43741 2007-04-03  Bruno Haible  <bruno@clisp.org>
43742
43743         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
43744         * modules/isnanl-tests (configure.ac): Likewise.
43745
43746 2007-04-03  Ben Pfaff  <blp@gnu.org>
43747
43748         * modules/iconv_open: Add $(srcdir)/ to source directory
43749         references in Makefile fragments that call gperf, to fix VPATH
43750         builds.
43751
43752 2007-04-03  Bruno Haible  <bruno@clisp.org>
43753
43754         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
43755         * lib/ldexpl.c: Undo last change.
43756
43757 2007-04-03  Bruno Haible  <bruno@clisp.org>
43758
43759         * modules/printf-frexpl (Depends-on): Undo last change.
43760         (Files): Add m4/ldexpl.m4.
43761
43762 2007-04-03  Bruno Haible  <bruno@clisp.org>
43763
43764         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
43765         * modules/isnanl (Link): New section.
43766
43767         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
43768         * modules/frexp (Link): New section.
43769
43770         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
43771         * modules/frexpl (Link): New section.
43772
43773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
43774         * modules/ldexpl (Link): New section.
43775
43776 2007-04-03  Bruno Haible  <bruno@clisp.org>
43777
43778         * modules/TEMPLATE-EXTENDED: New file.
43779         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
43780
43781 2007-04-03  Bruno Haible  <bruno@clisp.org>
43782
43783         * DEPENDENCIES: New file.
43784         Suggested by Simon Josefsson.
43785
43786 2007-04-03  Bruno Haible  <bruno@clisp.org>
43787
43788         * doc/gnulib.texi: Escape @.
43789
43790 2007-04-03  James Youngman  <jay@gnu.org>
43791         and Paul Eggert  <eggert@cs.ucla.edu>
43792
43793         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
43794         birthtime on all systems that have birthtime, not just those which
43795         use st_birthtimensec rather than st_birthtim.  Putting zero in
43796         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
43797         that the birth time is not available for files on an NFS mount.
43798
43799 2007-04-03  Simon Josefsson  <simon@josefsson.org>
43800
43801         * modules/memxor: Move back from crypto/, suggested by Bruno.
43802         * modules/crypto/hmac-sha1: Fix memxor dependency.
43803
43804         * modules/crypto/gc: Moved from ../.
43805
43806 2007-04-02  Eric Blake  <ebb9@byu.net>
43807
43808         * lib/ldexpl.c (includes): Avoid libm.
43809
43810         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
43811
43812 2007-04-02  Bruno Haible  <bruno@clisp.org>
43813
43814         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
43815         on IRIX.
43816
43817 2007-04-02  Bruno Haible  <bruno@clisp.org>
43818
43819         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
43820         x86 or x86_64 platforms running MacOS X.
43821         Reported by Ryan Schmidt <@ryandesign.com>.
43822
43823 2007-04-02  Bruno Haible  <bruno@clisp.org>
43824
43825         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
43826         i386.
43827
43828 2007-04-01  Simon Josefsson  <simon@josefsson.org>
43829
43830         * modules/crypto/arcfour: Moved from ../.
43831         * modules/crypto/arcfour-tests: Moved from ../.
43832         * modules/crypto/arctwo: Moved from ../.
43833         * modules/crypto/arctwo-tests: Moved from ../.
43834         * modules/crypto/des: Moved from ../.
43835         * modules/crypto/des-tests: Moved from ../.
43836         * modules/crypto/gc-arcfour: Moved from ../.
43837         * modules/crypto/gc-arcfour-tests: Moved from ../.
43838         * modules/crypto/gc-arctwo: Moved from ../.
43839         * modules/crypto/gc-arctwo-tests: Moved from ../.
43840         * modules/crypto/gc-des: Moved from ../.
43841         * modules/crypto/gc-des-tests: Moved from ../.
43842         * modules/crypto/gc-hmac-md5: Moved from ../.
43843         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43844         * modules/crypto/gc-hmac-sha1: Moved from ../.
43845         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43846         * modules/crypto/gc-md2: Moved from ../.
43847         * modules/crypto/gc-md2-tests: Moved from ../.
43848         * modules/crypto/gc-md4: Moved from ../.
43849         * modules/crypto/gc-md4-tests: Moved from ../.
43850         * modules/crypto/gc-md5: Moved from ../.
43851         * modules/crypto/gc-md5-tests: Moved from ../.
43852         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43853         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43854         * modules/crypto/gc-random: Moved from ../.
43855         * modules/crypto/gc-rijndael: Moved from ../.
43856         * modules/crypto/gc-rijndael-tests: Moved from ../.
43857         * modules/crypto/gc-sha1: Moved from ../.
43858         * modules/crypto/gc-sha1-tests: Moved from ../.
43859         * modules/crypto/gc-tests: Moved from ../.
43860         * modules/crypto/hmac-md5: Moved from ../.
43861         * modules/crypto/hmac-md5-tests: Moved from ../.
43862         * modules/crypto/hmac-sha1: Moved from ../.
43863         * modules/crypto/hmac-sha1-tests: Moved from ../.
43864         * modules/crypto/md2: Moved from ../.
43865         * modules/crypto/md2-tests: Moved from ../.
43866         * modules/crypto/md4: Moved from ../.
43867         * modules/crypto/md4-tests: Moved from ../.
43868         * modules/crypto/md5: Moved from ../.
43869         * modules/crypto/md5-tests: Moved from ../.
43870         * modules/crypto/memxor: Moved from ../.
43871         * modules/crypto/rijndael: Moved from ../.
43872         * modules/crypto/rijndael-tests: Moved from ../.
43873         * modules/crypto/sha1: Moved from ../.
43874
43875 2007-03-30  James Youngman  <jay@gnu.org>
43876
43877         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43878         rename() to change the ctime of a file (because ctime is unaffected
43879         by rename on jfs2 on AIX 5.1).
43880         (main): Start by doing cleanup, in case a previous run failed leaving
43881         test files behind.
43882
43883 2007-03-31  Bruno Haible  <bruno@clisp.org>
43884
43885         Support old proprietary implementations of iconv.
43886         * modules/iconv_open: New file.
43887         * lib/iconv_.h: New file.
43888         * m4/iconv_h.m4: New file.
43889         * lib/iconv_open.c: New file.
43890         * lib/iconv_open-aix.gperf: New file.
43891         * lib/iconv_open-hpux.gperf: New file.
43892         * lib/iconv_open-irix.gperf: New file.
43893         * lib/iconv_open-osf.gperf: New file.
43894         * m4/iconv_open.m4: New file.
43895         * modules/linebreak (Depends-on): Add iconv_open.
43896         * modules/striconv (Depends-on): Likewise.
43897         * modules/striconveh (Depends-on): Likewise.
43898         * modules/unicodeio (Depends-on): Likewise.
43899         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43900         (iconv_t)(-1).
43901         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43902         conversion if cd is (iconv_t)(-1).
43903         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43904         is not possible.
43905
43906 2007-03-31  Bruno Haible  <bruno@clisp.org>
43907
43908         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43909         work on Solaris either. Protect also second use of "autodetect_jp".
43910
43911 2007-03-31  Bruno Haible  <bruno@clisp.org>
43912
43913         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43914         the function is not present.
43915
43916 2007-03-31  Bruno Haible  <bruno@clisp.org>
43917
43918         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43919         the function is not present.
43920
43921 2007-03-31  Bruno Haible  <bruno@clisp.org>
43922
43923         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43924         a bug in HP-UX iconv_open().
43925
43926 2007-03-31  Bruno Haible  <bruno@clisp.org>
43927
43928         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43929         (Mathematics <math.h>): New section, add fpieee.
43930         (Input/output <stdio.h>): Add fseterr.
43931         (Mathematics <math.h>): New section, add printf-frexp.
43932         (Container data structures): Add sublist.
43933         (Core language properties): Add fpucw, inline.
43934         (Functions for greatest-width integer types <inttypes.h>): Add
43935         imaxabs, imaxdiv, inttypes.
43936         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43937         isnanl-nolibm, ldexp.
43938         (Mathematics <math.h>): New section, add printf-frexpl.
43939         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43940         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43941         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43942         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43943         (Unicode string functions): Add unistr/u*-mbtoucr.
43944         (Java): Add javacomp-script, javaexec-script.
43945         (C#): Add csharpcomp-script, csharpexec-script.
43946         (Support for building libraries and executables): Add havelib,
43947         relocatable-*.
43948         (Support for maintaining and releasing projects): Renamed from
43949         'Support for maintaining and release projects'. Add announce-gen.
43950
43951 2007-03-31  Bruno Haible  <bruno@clisp.org>
43952
43953         * README: Talk primarily about git.
43954         (git and CVS): Renamed from CVS.
43955         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43956         gnulib is available through git.
43957         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43958
43959 2007-03-30  Bruno Haible  <bruno@clisp.org>
43960
43961         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43962         * lib/poll_.h: Likewise.
43963         * lib/stat_.h: Likewise.
43964         * lib/sys_time_.h: Likewise.
43965         * lib/sysexit_.h: Likewise.
43966         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43967         * lib/stdbool_.h: Likewise.
43968         * lib/byteswap_.h: Add double-inclusion guard.
43969
43970 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43971
43972         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43973
43974 2007-03-30  Karl Berry  <karl@gnu.org>
43975
43976         * config/srclist-update: double space after USA in the license
43977         substitution, since that's how it's usually (?) written.
43978
43979 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43980
43981         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43982         reported by Bruno Haible.
43983
43984 2007-03-29  Bruno Haible  <bruno@clisp.org>
43985
43986         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43987         a bug in AIX iconv().
43988
43989 2007-03-29  Bruno Haible  <bruno@clisp.org>
43990
43991         * modules/ldexpl-tests: New file.
43992         * tests/test-ldexpl.c: New file.
43993
43994 2007-03-29  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/ldexpl.c: Include fpucw.h.
43997         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43998         multiplication.
43999         * modules/ldexpl (Depends-on): Add fpucw.
44000
44001 2007-03-29  Bruno Haible  <bruno@clisp.org>
44002
44003         * modules/ldexpl: New file.
44004         * m4/ldexpl.m4: New file.
44005         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
44006         set.
44007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
44008         REPLACE_LDEXPL.
44009         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
44010         REPLACE_LDEXPL.
44011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44012         gl_FUNC_LDEXPL_WORKS.
44013         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
44014         * modules/mathl (Files): Remove lib/ldexpl.c.
44015         (Depends-on): Add ldexpl.
44016
44017 2007-03-29  Bruno Haible  <bruno@clisp.org>
44018
44019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
44020
44021 2007-03-29  Bruno Haible  <bruno@clisp.org>
44022
44023         * tests/test-striconveh.c (main): Don't assume that a direct conversion
44024         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
44025         and possibly also HP-UX.
44026         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
44027         work on AIX, IRIX, HP-UX, OSF/1.
44028         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44029         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44030         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44031         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44032         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
44033         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44034
44035 2007-03-29  Bruno Haible  <bruno@clisp.org>
44036
44037         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
44038
44039 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44040
44041         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
44042         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
44043
44044 2007-03-29  Eric Blake  <ebb9@byu.net>
44045
44046         * lib/acl-internal.h: Remove redundant include.
44047         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
44048         Cygwin when a file is locked.
44049
44050 2007-03-29  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
44053         file.
44054         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
44055
44056 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44057
44058         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
44059         try to remove a parent directory if the child couldn't be removed
44060         (except for the first rmdir, which could fail because the child
44061         doesn't exist).  Problem reported by Jeff Blaine in
44062         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
44063
44064 2007-03-28  Bruno Haible  <bruno@clisp.org>
44065
44066         * lib/striconveh.c (utf8conv_carefully): New function.
44067         (mem_cd_iconveh_internal): Invoke it.
44068
44069 2007-03-28  Bruno Haible  <bruno@clisp.org>
44070
44071         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
44072         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
44073         input.
44074         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
44075         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
44076         unistr/u8-uctomb.
44077
44078 2007-03-28  Bruno Haible  <bruno@clisp.org>
44079
44080         * modules/unistr/u8-mbtoucr: New file.
44081         * lib/unistr/u8-mbtoucr.c: New file.
44082         * modules/unistr/u16-mbtoucr: New file.
44083         * lib/unistr/u16-mbtoucr.c: New file.
44084         * modules/unistr/u16-mbtoucr: New file.
44085         * lib/unistr/u16-mbtoucr.c: New file.
44086         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
44087
44088 2007-03-27  Simon Josefsson  <simon@josefsson.org>
44089             Bruno Haible  <bruno@clisp.org>
44090
44091         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
44092         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
44093         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
44094
44095         * m4/stdio_h.m4: Add stubs for vasprintf too.
44096
44097         * modules/stdio: Support vasprintf in sed command.
44098
44099         * modules/vasprintf: Depend on stdio for prototypes.  Remove
44100         vasprintf.h.  Add stdio module indicator.
44101
44102         * lib/stdio_.h: Declare asprintf and vasprintf, based on
44103         vasprintf.h.
44104
44105         * lib/vasprintf.h: File removed.
44106
44107         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
44108         * lib/vasprintf.c: Ditto.
44109         * lib/xvasprintf.c: Ditto.
44110         * tests/test-vasprintf-posix.c: Ditto.
44111         * tests/test-vasprintf.c: Ditto.
44112
44113 2007-03-27  Bruno Haible  <bruno@clisp.org>
44114
44115         Make vasnprintf multithread-safe.
44116         * lib/vasnprintf.c (decimal_point_char): New function.
44117         (VASNPRINTF): Use it.
44118         Suggested by Simon Josefsson.
44119
44120 2007-03-27  Eric Blake  <ebb9@byu.net>
44121
44122         Support sub-second birthtime on cygwin.
44123         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
44124         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
44125         (get_stat_birthtime): Also work with st_birthtim.
44126
44127 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
44128
44129         * lib/stat-time.h (USE_BIRTHTIME): Remove.
44130         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
44131         (get_stat_birthtime_ns): Do not try to use "spare" fields.
44132         (get_stat_birthtime_ns): Simplify compile-time tests.
44133         (get_stat_birthtime): Change the API to look like
44134         get_stat_mtime etc., except return a negative tv_nsec on error.
44135         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
44136         Don't check for "spare" fields.
44137         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
44138         or for struct stat.st_birthtime, as these tests aren't used.
44139         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
44140
44141 2007-03-27  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/stat-time.h: Include <sys/stat.h>.
44144
44145 2007-03-27  James Youngman  <jay@gnu.org>
44146
44147         * lib/stat-time.h (get_stat_birthtime): New function for
44148           retrieving st_birthtime as provided by UFS2 (hence *BSD).
44149         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
44150           and its variants.
44151         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
44152         * modules/stat-time-test: New file.
44153         * tests/test-stat-time.c: New test, devised by Bruno Haible.
44154
44155 2007-03-26  Bruno Haible  <bruno@clisp.org>
44156
44157         Better support of signalling NaNs.
44158         * lib/atanl.c: Include isnanl.h.
44159         (atanl): Perform test for NaN at the beginning of the function and
44160         through a call to isnanl.
44161         * lib/cosl.c: Include isnanl.h.
44162         (cosl): Perform test for NaN at the beginning of the function and
44163         through a call to isnanl.
44164         * lib/ldexpl.c: Include isnanl.h.
44165         (ldexpl): Perform test for NaN through a call to isnanl.
44166         * lib/logl.c: Include isnanl.h.
44167         (logl): Perform test for NaN at the beginning of the function and
44168         through a call to isnanl.
44169         * lib/sinl.c: Include isnanl.h.
44170         (sinl): Perform test for NaN at the beginning of the function and
44171         through a call to isnanl.
44172         * lib/sqrtl.c: Include isnanl.h.
44173         (sqrtl): Perform test for NaN at the beginning of the function and
44174         through a call to isnanl.
44175         * lib/tanl.c: Include isnanl.h.
44176         (tanl): Perform test for NaN at the beginning of the function and
44177         through a call to isnanl.
44178         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
44179         * modules/mathl (Depends-on): Add isnanl.
44180
44181 2007-03-26  Eric Blake  <ebb9@byu.net>
44182
44183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
44184         regression in logic sense of previous patch.
44185
44186 2007-03-26  Bruno Haible  <bruno@clisp.org>
44187
44188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
44189         unportable shell command "if ! ...".
44190         Reported by Ralf Wildenhues.
44191
44192 2007-03-25  Bruno Haible  <bruno@clisp.org>
44193
44194         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
44195         <sysexits.h> file, and only add EX_CONFIG.
44196         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
44197         absolute file name and whether it is sufficient. Substitute also
44198         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
44199         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
44200         ABSOLUTE_SYSEXITS_H into sysexits.h.
44201
44202 2007-03-25  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
44205         hints is NULL.
44206
44207 2007-03-25  Bruno Haible  <bruno@clisp.org>
44208
44209         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
44210         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
44211
44212 2007-03-25  Bruno Haible  <bruno@clisp.org>
44213
44214         * lib/vasnprintf.c: Include langinfo.h.
44215         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
44216         multithread-safe.
44217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
44218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
44219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
44225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44226         Reported by Simon Josefsson.
44227
44228 2007-03-25  Bruno Haible  <bruno@clisp.org>
44229
44230         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
44231         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
44232         * modules/vasnprintf (Depends-on): Add stdint.
44233
44234 2007-03-25  Bruno Haible  <bruno@clisp.org>
44235
44236         * modules/fpieee: New file.
44237         * m4/fpieee.m4: New file.
44238         * modules/isnan-nolibm (Depends-on): Add fpieee.
44239         * modules/isnanl-nolibm (Depends-on): Add fpieee.
44240         * modules/isnanl (Depends-on): Add fpieee.
44241
44242 2007-03-25  Bruno Haible  <bruno@clisp.org>
44243
44244         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
44245
44246 2007-03-25  Bruno Haible  <bruno@clisp.org>
44247
44248         Avoid test failures on IRIX 6.5.
44249         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
44250         (main): Use it.
44251         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
44252         macros.
44253         (main): Use them.
44254
44255 2007-03-25  Bruno Haible  <bruno@clisp.org>
44256
44257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
44258         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
44259         exists but doesn't work.
44260         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
44261         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
44262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
44263         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
44264
44265 2007-03-25  Bruno Haible  <bruno@clisp.org>
44266
44267         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
44268         returns inf. Needed on IRIX 6.5.
44269
44270 2007-03-25  Bruno Haible  <bruno@clisp.org>
44271
44272         * tests/test-frexpl.c: Include isnanl-nolibm.h.
44273         (main): Use isnanl instead of x != x idiom.
44274         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
44275
44276         * tests/test-frexp.c: Include isnan.h.
44277         (main): Use isnan instead of x != x idiom.
44278         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
44279
44280 2007-03-25  Bruno Haible  <bruno@clisp.org>
44281
44282         * tests/test-frexp.c (NaN): New function/macro.
44283         (main): Use it instead of 0.0 / 0.0.
44284         * tests/test-isnan.c (NaN): New function/macro.
44285         (main): Use it instead of 0.0 / 0.0.
44286         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
44287         (test_function): Use it instead of 0.0 / 0.0.
44288         * tests/test-vasprintf-posix.c (NaN): New function/macro.
44289         (test_function): Use it instead of 0.0 / 0.0.
44290         * tests/test-snprintf-posix.h (NaN): New function/macro.
44291         (test_function): Use it instead of 0.0 / 0.0.
44292         * tests/test-sprintf-posix.h (NaN): New function/macro.
44293         (test_function): Use it instead of 0.0 / 0.0.
44294         * tests/test-fprintf-posix.h (NaN): New function/macro.
44295         (test_function): Use it instead of 0.0 / 0.0.
44296         * tests/test-printf-posix.h (NaN): New function/macro.
44297         (test_function): Use it instead of 0.0 / 0.0.
44298
44299         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
44300
44301 2007-03-25  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
44304
44305 2007-03-25  Bruno Haible  <bruno@clisp.org>
44306
44307         * lib/regexec.c (merge_state_with_log): Make static.
44308
44309 2007-03-25  Bruno Haible  <bruno@clisp.org>
44310
44311         * lib/trigl.c (kernel_rem_pio2): Make static.
44312
44313 2007-03-25  Bruno Haible  <bruno@clisp.org>
44314
44315         * lib/sincosl.c (sincosl_table): Make static.
44316
44317 2007-03-25  Bruno Haible  <bruno@clisp.org>
44318
44319         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
44320         if the compiler does not support C99.
44321
44322 2007-03-25  Bruno Haible  <bruno@clisp.org>
44323
44324         * modules/time (Makefile.am): Ensure all rule action lines start with a
44325         tab.
44326
44327 2007-03-24  Bruno Haible  <bruno@clisp.org>
44328
44329         * modules/tsearch-tests: New file.
44330         * tests/test-tsearch.sh: New file.
44331         * tests/test-tsearch.c: New file, mostly copied from glibc.
44332
44333         * modules/search-tests: New file.
44334         * tests/test-search.c: New file.
44335
44336         * modules/search: New file.
44337         * lib/search_.h: New file, incorporating lib/tsearch.h.
44338         * m4/search_h.m4: New file.
44339         * lib/tsearch.h: Remove file.
44340         * lib/tsearch.c: Include search.h instead of tsearch.h.
44341         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
44342         HAVE_TSEARCH.
44343         * modules/tsearch (Files): Remove lib/tsearch.h.
44344         (Depends-on): Add search.
44345         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
44346         (Include): Change tsearch.h into search.h.
44347
44348 2007-03-24  Bruno Haible  <bruno@clisp.org>
44349
44350         * modules/fpucw: New file.
44351         * lib/fpucw.h: New file.
44352         * lib/frexp.c: Include fpucw.h.
44353         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44354         (FUNC): Use them.
44355         * lib/printf-frexp.c: Include fpucw.h.
44356         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44357         (FUNC): Use them.
44358         * lib/vasnprintf.c: Include fpucw.h.
44359         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
44360         'long double' calculations.
44361         * tests/test-frexpl.c: Include fpucw.h.
44362         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44363         * tests/test-printf-frexpl.c: Include fpucw.h.
44364         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44365         * modules/frexpl (Depends-on): Add fpucw.
44366         * modules/printf-frexpl (Depends-on): Likewise.
44367         * modules/fprintf-posix (Depends-on): Likewise.
44368         * modules/snprintf-posix (Depends-on): Likewise.
44369         * modules/sprintf-posix (Depends-on): Likewise.
44370         * modules/vasnprintf-posix (Depends-on): Likewise.
44371         * modules/vasprintf-posix (Depends-on): Likewise.
44372         * modules/vfprintf-posix (Depends-on): Likewise.
44373         * modules/vsnprintf-posix (Depends-on): Likewise.
44374         * modules/vsprintf-posix (Depends-on): Likewise.
44375         * modules/frexpl-tests (Depends-on): Likewise.
44376         * modules/printf-frexpl-tests (Depends-on): Likewise.
44377
44378 2007-03-24  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/float+.h: New file.
44381         * lib/isnan.c: Include float+.h.
44382         (SIZE): New macro.
44383         (FUNC): Compare only SIZE bytes of the value.
44384         * lib/vasnprintf.c: Include float+.h.
44385         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
44386         SIZEOF_LDBL or SIZEOF_DBL bytes.
44387         * modules/isnan-nolibm (Files): Add lib/float+.h.
44388         * modules/isnanl-nolibm (Files): Add lib/float+.h.
44389         * modules/isnanl (Files): Add lib/float+.h.
44390         * modules/vasnprintf (Files): Add lib/float+.h.
44391
44392 2007-03-24  Bruno Haible  <bruno@clisp.org>
44393
44394         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44395         include isnanl-nolibm.h.
44396
44397 2007-03-24  Bruno Haible  <bruno@clisp.org>
44398
44399         * tests/test-read-file.c (main): Don't produce spurious output for
44400         expected situations. Make the test fail if it encountered unexpected
44401         results.
44402
44403 2007-03-24  Bruno Haible  <bruno@clisp.org>
44404
44405         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44406         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44407
44408 2007-03-24  Bruno Haible  <bruno@clisp.org>
44409
44410         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44411
44412 2007-03-24  Bruno Haible  <bruno@clisp.org>
44413
44414         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44415         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44416
44417         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44418         * modules/utf8-ucs4: Turn into a symbolic link to module
44419         unistr/u8-mbtouc.
44420
44421         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44422         utf8-ucs4-unsafe.
44423         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44424         unistr/u8-mbtouc-unsafe.
44425
44426         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44427         * modules/utf16-ucs4: Turn into a symbolic link to module
44428         unistr/u16-mbtouc.
44429
44430         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44431         utf16-ucs4-unsafe.
44432         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44433         unistr/u16-mbtouc-unsafe.
44434
44435         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44436         * modules/ucs4-utf8: Turn into a symbolic link to module
44437         unistr/u8-ubtomb.
44438
44439         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44440         * modules/ucs4-utf16: Turn into a symbolic link to module
44441         unistr/u16-ubtomb.
44442
44443 2007-03-24  Bruno Haible  <bruno@clisp.org>
44444
44445         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44446         Enable the function only if HAVE_INLINE.
44447         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44448         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44449         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44450         Enable the function only if HAVE_INLINE.
44451         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44452         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44453         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44454         Enable the function only if HAVE_INLINE.
44455         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44456         Enable the function only if HAVE_INLINE.
44457         * modules/utf8-ucs4: Update.
44458         * modules/utf8-ucs4-unsafe: Update.
44459         * modules/utf16-ucs4: Update.
44460         * modules/utf16-ucs4-unsafe: Update.
44461         * modules/ucs4-utf8: Update.
44462         * modules/ucs4-utf16: Update.
44463
44464 2007-03-24  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/utf8-ucs4.h: Remove file.
44467         * lib/utf8-ucs4-unsafe.h: Remove file.
44468         * lib/utf16-ucs4.h: Remove file.
44469         * lib/utf16-ucs4-unsafe.h: Remove file.
44470         * lib/ucs4-utf8.h: Remove file.
44471         * lib/ucs4-utf16.h: Remove file.
44472         * lib/unistr.h: Include their previous contents.
44473         * m4/utf-ucs4.m4: Remove file.
44474         * m4/ucs4-utf.m4: Remove file.
44475         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44476         (Depends-on): Add unistr/base.
44477         (configure.ac): Remove gl_UTF_UCS4.
44478         (Makefile.am): Update.
44479         (Include): Change to unistr.h.
44480         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44481         (Depends-on): Add unistr/base.
44482         (configure.ac): Remove gl_UTF_UCS4.
44483         (Makefile.am): Update.
44484         (Include): Change to unistr.h.
44485         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44486         (Depends-on): Add unistr/base.
44487         (configure.ac): Remove gl_UTF_UCS4.
44488         (Makefile.am): Update.
44489         (Include): Change to unistr.h.
44490         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44491         (Depends-on): Add unistr/base.
44492         (configure.ac): Remove gl_UTF_UCS4.
44493         (Makefile.am): Update.
44494         (Include): Change to unistr.h.
44495         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44496         (Depends-on): Add unistr/base.
44497         (configure.ac): Remove gl_UCS4_UTF.
44498         (Makefile.am): Update.
44499         (Include): Change to unistr.h.
44500         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44501         (Depends-on): Add unistr/base.
44502         (configure.ac): Remove gl_UCS4_UTF.
44503         (Makefile.am): Update.
44504         (Include): Change to unistr.h.
44505         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44506         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44507         utf8-ucs4-unsafe.h.
44508         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44509         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44510         utf16-ucs4-unsafe.h.
44511         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44512         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44513         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44514         * lib/unistr/u8-strchr.c: Likewise.
44515         * lib/unistr/u8-strrchr.c: Likewise.
44516         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44517         * lib/unistr/u16-strchr.c: Likewise.
44518         * lib/unistr/u16-strrchr.c: Likewise.
44519         * lib/striconveh.c: Update.
44520         * lib/linebreak.c: Update.
44521
44522 2007-03-24  Bruno Haible  <bruno@clisp.org>
44523
44524         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44525         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44526
44527 2007-03-22  Bruno Haible  <bruno@clisp.org>
44528
44529         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44530
44531 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44532
44533         * MODULES.html.sh (File system functions): New module write-any-file.
44534         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44535         * m4/write-any-file.m4: New files.
44536
44537 2007-03-23  Eric Blake  <ebb9@byu.net>
44538
44539         * gnulib-tool: Rearrange space-tab sequences, since some editors
44540         like to eat them.
44541
44542 2007-03-23  Eric Blake  <ebb9@byu.net>
44543
44544         * lib/version-etc.c (version_etc_va): Update license wording to
44545         be more concise.  Recommended by Richard Stallman.
44546
44547 2007-03-22  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/poll.c (MSG_PEEK): New fallback definition.
44550
44551 2007-03-22  Bruno Haible  <bruno@clisp.org>
44552
44553         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44554         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44555         (main): Update.
44556         Fixes a compilation error on BeOS.
44557
44558 2007-03-22  Bruno Haible  <bruno@clisp.org>
44559
44560         * modules/frexpl-tests: New file.
44561         * tests/test-frexpl.c: New file.
44562
44563         * modules/frexpl: New file.
44564         * m4/frexpl.m4: New file.
44565         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44566         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44568         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44569         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44570         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44571
44572 2007-03-22  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/frexpl.c: Share code with lib/frexp.c.
44575         * modules/mathl (Files): Add lib/frexp.c.
44576         (Depends-on): Add isnanl-nolibm.
44577
44578 2007-03-22  Bruno Haible  <bruno@clisp.org>
44579
44580         * modules/printf-frexp (Files): Add m4/frexp.m4.
44581         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44582         only if the found frexp function actually works.
44583
44584 2007-03-22  Bruno Haible  <bruno@clisp.org>
44585
44586         * lib/frexp.c: Remove older implementation that uses divisions.
44587
44588 2007-03-21  Bruno Haible  <bruno@clisp.org>
44589
44590         * modules/frexp-tests: New file.
44591         * tests/test-frexp.c: New file.
44592
44593         * modules/frexp: New file.
44594         * lib/frexp.c: New file.
44595         * m4/frexp.m4: New file.
44596         * lib/math_.h (frexp): New declaration.
44597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44598         REPLACE_FREXP.
44599         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44600
44601 2007-03-21  Bruno Haible  <bruno@clisp.org>
44602
44603         * modules/isnanl-tests: New file.
44604         * tests/test-isnanl.c: New file.
44605
44606         * modules/isnanl: New file.
44607         * lib/isnanl.h: New file.
44608         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44609         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44610         gl_FUNC_ISNANL_WORKS.
44611         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44612         New macros.
44613
44614 2007-03-21  Bruno Haible  <bruno@clisp.org>
44615
44616         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44617         lib/isnanl.h.
44618         (Include): Update.
44619         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44620         * lib/vasnprintf.c: Update.
44621         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44622         tests/test-isnanl.h, remove tests/test-isnanl.c.
44623         (Makefile.am): Update.
44624         * tests/test-isnanl-nolibm.c: New file.
44625         * tests/test-isnanl.h: New file.
44626         * tests/test-isnanl.c: Remove file.
44627
44628 2007-03-21  Jim Meyering  <jim@meyering.net>
44629
44630         When trying to open ".", treat ESTALE like EACCES.
44631         * lib/savewd.c (savewd_save): Resort to forking not just upon
44632         failure with EACCES, but also when errno is ESTALE.
44633
44634 2007-03-20  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44637         Needed on AIX 5.1. Reported by Matthew Woehlke.
44638
44639 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44640
44641         Suggestions by Bruno Haible:
44642         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44643         our own.
44644         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44645         * modules/acl (Depends-on): Add gettext.
44646
44647 2007-03-19  Bruno Haible  <bruno@clisp.org>
44648
44649         * modules/iconvme: Remove file.
44650         * lib/iconvme.h: Remove file.
44651         * lib/iconvme.c: Remove file.
44652         * m4/iconvme.m4: Remove file.
44653
44654 2007-03-19  Bruno Haible  <bruno@clisp.org>
44655
44656         * doc/relocatable-maint.texi: Break long shell script line.
44657         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44658
44659 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44660
44661         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44662         handle file_has_acl.
44663         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44664         * lib/acl.c: Move header inclusions and related macro defns into
44665         lib/acl-internal.h.
44666         (S_ISLNK): Remove defn, since that's now done for us.
44667         (file_has_acl): Move to lib/file-has-acl.c.
44668         Call acl_trivial if available.  This is the crucial part of the fix.
44669         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44670         shared within the library.  Rewrite a bit, partly to make it compatible
44671         with the GNU coding style.
44672         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44673         Remove unnecessary double-quotes.
44674         Don't test for acl_to_text; the build will catch that.
44675         Replace acl_entries if it doesn't exist and it is needed.
44676         Check for -lsec and acl_trivial (as used on Solaris 10).
44677         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
44678         lib/file-has-acl.c.
44679         (Depends-on): Add sys_stat, for S_ISLNK.
44680
44681 2007-03-19  Ben Pfaff  <blp@gnu.org>
44682
44683         * doc/gnulib.texi: Fix typos.
44684         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44685
44686 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44687
44688         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
44689         If size is zero here, buf must be zero.
44690
44691 2007-03-19  Simon Josefsson  <simon@josefsson.org>
44692
44693         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
44694         <bruno@clisp.org>.
44695
44696 2007-03-18  Bruno Haible  <bruno@clisp.org>
44697
44698         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
44699         Suggested by Eric Blake.
44700
44701 2007-03-18  Ben Pfaff  <blp@gnu.org>
44702
44703         * doc/relocatable.texi: Recommend using as prefix a directory
44704         that does not exist and will never be created.  Based on
44705         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
44706         and others.
44707
44708 2007-03-17  Bruno Haible  <bruno@clisp.org>
44709
44710         * lib/fchownat.c: Include lchown.h.
44711
44712 2007-03-17  Bruno Haible  <bruno@clisp.org>
44713
44714         Fix endless loop when the given allocated size was > INT_MAX.
44715         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
44716         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
44717         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
44718         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
44719         * lib/sprintf.c (sprintf): Likewise.
44720
44721 2007-03-17  Bruno Haible  <bruno@clisp.org>
44722
44723         * tests/test-argp-2.sh (func_compare): Output a context diff.
44724
44725 2007-03-17  Bruno Haible  <bruno@clisp.org>
44726
44727         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
44728         locale's decimal-point character.
44729
44730 2007-03-17  Bruno Haible  <bruno@clisp.org>
44731
44732         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
44733         before comparing it. Needed because on some platforms (e.g. x86) a
44734         'long double' occupies less bytes than sizeof (long double).
44735
44736 2007-03-17  Bruno Haible  <bruno@clisp.org>
44737
44738         * tests/test-crc.c (main): Make printf statements 64-bit clean.
44739         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
44740         * tests/test-getaddrinfo.c (simple): Likewise.
44741         * tests/test-read-file.c (main): Likewise.
44742
44743 2007-03-17  Bruno Haible  <bruno@clisp.org>
44744
44745         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
44746
44747 2007-03-17  Bruno Haible  <bruno@clisp.org>
44748
44749         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
44750         unused variable.
44751
44752 2007-03-17  Bruno Haible  <bruno@clisp.org>
44753
44754         * tests/test-c-strcasecmp.c: Include c-strcase.h.
44755         * tests/test-c-strncasecmp.c: Likewise.
44756
44757 2007-03-17  Bruno Haible  <bruno@clisp.org>
44758
44759         * modules/stdlib (Depends-on): Add unistd.
44760         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
44761         Needed for MacOS X 10.3.
44762
44763 2007-03-17  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/unistr/u-strdup.h: Include <stdlib.h>.
44766
44767 2007-03-17  Bruno Haible  <bruno@clisp.org>
44768
44769         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
44770
44771 2007-03-17  Bruno Haible  <bruno@clisp.org>
44772
44773         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
44774         to reflect files copied from gnulib (with or without modifications).
44775         Suggested by Jim Meyering.
44776
44777 2007-03-17  Eric Blake  <ebb9@byu.net>
44778
44779         * NEWS: Document stdlib change from 2007-02-18.
44780
44781 2007-03-17  Jim Meyering  <jim@meyering.net>
44782
44783         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
44784         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
44785         someone uses a name containing shell meta-characters.
44786         Reported by Alfred M. Szmidt.
44787
44788         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
44789
44790 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44791
44792         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
44793         and copy gettext configuration files only if configure.ac contains
44794         a use of AM_GNU_GETTEXT_VERSION.
44795
44796 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44797
44798         * build-aux/bootstrap (gnulib_name): New variable.
44799         (gnulib_tool_options): Use it.
44800
44801 2007-03-13  Simon Josefsson  <simon@josefsson.org>
44802
44803         * tests/test-des.c: Use new namespace.
44804
44805 2007-03-15  Bruno Haible  <bruno@clisp.org>
44806
44807         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
44808         Reported by James Youngman <jay@gnu.org>.
44809
44810 2007-03-15  Bruno Haible  <bruno@clisp.org>
44811
44812         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
44813         declared prototype. Needed with cc on OSF/1 5.1.
44814
44815 2007-03-15  Bruno Haible  <bruno@clisp.org>
44816
44817         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
44818         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
44819         (struct gl_list_implementation): Add dispose_fn argument to the
44820         'create_empty', 'create' methods.
44821         (struct gl_list_impl_base): Add field 'dispose_fn'.
44822         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
44823         argument.
44824         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
44825         dispose_fn argument.
44826         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
44827         dispose_fn on the dropped values.
44828         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
44829         dispose_fn argument.
44830         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
44831         dropped values.
44832         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
44833         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44834         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
44835         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44836         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
44837         argument.
44838         (gl_tree_list_free): Call dispose_fn on the dropped values.
44839         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44840         the dropped values.
44841         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44842         Add dispose_fn argument.
44843         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44844         Call dispose_fn on the dropped values.
44845         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44846         Add dispose_fn argument.
44847         (gl_sublist_create): Initialize the 'dispose_fn' field.
44848         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44849         * tests/test-array_list.c (main): Update.
44850         * tests/test-carray_list.c (main): Update.
44851         * tests/test-avltree_list.c (main): Update.
44852         * tests/test-rbtree_list.c (main): Update.
44853         * tests/test-avltreehash_list.c (main): Update.
44854         * tests/test-rbtreehash_list.c (main): Update.
44855         * tests/test-linked_list.c (main): Update.
44856         * tests/test-linkedhash_list.c (main): Update.
44857         * tests/test-array_oset.c (main): Update.
44858
44859 2007-03-15  Bruno Haible  <bruno@clisp.org>
44860
44861         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44862         (gl_oset_create_empty): Add dispose_fn argument.
44863         (struct gl_oset_implementation): Add dispose_fn argument to
44864         'create_empty' method.
44865         (struct gl_oset_impl_base): Add dispose_fn field.
44866         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44867         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44868         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44869         values.
44870         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44871         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44872         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44873         dropped value.
44874         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44875         dropped value.
44876         * tests/test-array_oset.c (main): Update.
44877         * tests/test-avltree_oset.c (main): Update.
44878         * tests/test-rbtree_oset.c (main): Update.
44879         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44880
44881 2007-03-13  Bruno Haible  <bruno@clisp.org>
44882
44883         * tests/test-stdbool.c (i): Update after last patch.
44884
44885 2007-03-12  Bruno Haible  <bruno@clisp.org>
44886
44887         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44888         the iswprint macro. Needed on Solaris 2.5.1.
44889
44890 2007-03-12  Bruno Haible  <bruno@clisp.org>
44891
44892         * tests/test-printf-frexp.c (main): Declare x as volatile.
44893
44894 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44895
44896         * doc/gnulib.texi (Build robot for gnulib): New section.
44897
44898 2007-03-12  Jim Meyering  <jim@meyering.net>
44899
44900         * build-aux/bootstrap: New file.
44901         * build-aux/bootstrap.conf: New file, from coreutils.
44902
44903 2007-03-11  Bruno Haible  <bruno@clisp.org>
44904
44905         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44906
44907 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44908
44909         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44910         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44911         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44912
44913 2007-03-11  Bruno Haible  <bruno@clisp.org>
44914
44915         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44916         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44917
44918 2007-03-11  Bruno Haible  <bruno@clisp.org>
44919
44920         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44921         formula. Needed for SunPRO C 5.0.
44922
44923 2007-03-11  Bruno Haible  <bruno@clisp.org>
44924
44925         * modules/long-options (Depends-on): Add getopt.
44926
44927 2007-03-11  Bruno Haible  <bruno@clisp.org>
44928
44929         * modules/modechange (Depends-on): Add stdbool.
44930
44931 2007-03-11  Bruno Haible  <bruno@clisp.org>
44932
44933         * modules/i-ring (Depends-on): Add stdbool.
44934
44935 2007-03-11  Bruno Haible  <bruno@clisp.org>
44936
44937         * modules/gc-des (Depends-on): Add stdbool.
44938
44939 2007-03-11  Bruno Haible  <bruno@clisp.org>
44940
44941         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44942
44943 2007-03-11  Bruno Haible  <bruno@clisp.org>
44944
44945         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44946
44947 2007-03-11  Bruno Haible  <bruno@clisp.org>
44948
44949         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44950
44951 2007-03-11  Bruno Haible  <bruno@clisp.org>
44952
44953         * lib/vasnprintf.c (sprintf): Undefine.
44954
44955 2007-03-11  Bruno Haible  <bruno@clisp.org>
44956
44957         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44958         initializers in SunPRO C and Compaq C compilers.
44959
44960 2007-03-11  Bruno Haible  <bruno@clisp.org>
44961
44962         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44963         decrementing code ANSI C compliant.
44964
44965 2007-03-11  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44968         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44969
44970 2007-03-11  Bruno Haible  <bruno@clisp.org>
44971
44972         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44973         <stdbool.h> substitute doesn't pass.
44974
44975 2007-03-11  Bruno Haible  <bruno@clisp.org>
44976
44977         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44978
44979 2007-03-11  Bruno Haible  <bruno@clisp.org>
44980
44981         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44982         script, for submission to autobuild.josefsson.org.
44983
44984 2007-03-10  Bruno Haible  <bruno@clisp.org>
44985
44986         * modules/canonicalize-lgpl-tests: New file.
44987         * tests/test-canonicalize-lgpl.sh: New file.
44988         * tests/test-canonicalize-lgpl.c: New file.
44989
44990         * modules/c-strcase-tests: New file.
44991         * tests/test-c-strcase.sh: New file.
44992         * tests/test-c-strcasecmp.c: New file.
44993         * tests/test-c-strncasecmp.c: New file.
44994
44995         * modules/atexit-tests: New file.
44996         * tests/test-atexit.sh: New file.
44997         * tests/test-atexit.c: New file.
44998
44999 2007-03-10  Bruno Haible  <bruno@clisp.org>
45000
45001         * tests/test-binary-io.sh: Use temporary filenames that are not so
45002         likely to clash with those of other tests (in a parallel make).
45003         * tests/test-binary-io.c: Likewise.
45004
45005 2007-03-10  Bruno Haible  <bruno@clisp.org>
45006
45007         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
45008         fallback; use #error instead.
45009         Suggested by Simon Josefsson.
45010
45011 2007-03-10  Bruno Haible  <bruno@clisp.org>
45012
45013         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
45014         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
45015         first and the last.
45016
45017 2007-03-10  Bruno Haible  <bruno@clisp.org>
45018
45019         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
45020
45021 2007-03-10  Bruno Haible  <bruno@clisp.org>
45022
45023         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
45024         "make distcheck".
45025         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
45026         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
45027         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
45028
45029 2007-03-10  Bruno Haible  <bruno@clisp.org>
45030
45031         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
45032         variable.
45033         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
45034         variable.
45035
45036 2007-03-09  Eric Blake  <ebb9@byu.net>
45037         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
45038
45039         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
45040         types are not being provided by gnulib.
45041         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
45042         types are supported.
45043
45044 2007-03-10  Bruno Haible  <bruno@clisp.org>
45045
45046         * lib/stdio_.h (__attribute__): New macro.
45047         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
45048         vsprintf): Specify __attribute__ __format__ for GCC.
45049         Suggested by Eric Blake.
45050
45051 2007-03-09  Bruno Haible  <bruno@clisp.org>
45052
45053         * modules/printf-posix-tests: New file.
45054         * tests/test-printf-posix.sh: New file.
45055         * tests/test-printf-posix.c: New file.
45056
45057         * modules/printf-posix: New file.
45058         * lib/printf.c: New file.
45059         * m4/printf-posix-rpl.m4: New file.
45060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
45061         REPLACE_PRINTF.
45062         * lib/stdio_.h (printf): New declaration.
45063         (format, __format__, ____printf____, ____scanf____, ____strftime____,
45064         ____strfmon____): New macros.
45065         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
45066         REPLACE_PRINTF.
45067
45068 2007-03-09  Bruno Haible  <bruno@clisp.org>
45069
45070         * tests/test-vasnprintf-posix2.sh: New file.
45071         * tests/test-vasnprintf-posix2.c: New file.
45072         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
45073         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45074         (Makefile.am): Activate test-vasnprintf-posix2.sh.
45075
45076         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
45077         a locale dependent decimal point, rather than always '.'.
45078
45079 2007-03-09  Eric Blake  <ebb9@byu.net>
45080
45081         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
45082         spite of platforms like Tandem/NSK that define it to -1.
45083
45084 2007-03-08  Bruno Haible  <bruno@clisp.org>
45085
45086         * modules/vprintf-posix-tests: New file.
45087         * tests/test-vprintf-posix.sh: New file.
45088         * tests/test-vprintf-posix.c: New file.
45089         * tests/test-printf-posix.h: New file.
45090
45091         * modules/vprintf-posix: New file.
45092         * lib/vprintf.c: New file.
45093         * m4/vprintf-posix.m4: New file.
45094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
45095         REPLACE_VPRINTF.
45096         * lib/stdio_.h (vprintf): New declaration.
45097         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
45098         REPLACE_VPRINTF.
45099
45100 2007-03-08  Bruno Haible  <bruno@clisp.org>
45101
45102         * modules/fprintf-posix-tests: New file.
45103         * tests/test-fprintf-posix.sh: New file.
45104         * tests/test-fprintf-posix.c: New file.
45105
45106         * modules/fprintf-posix: New file.
45107         * lib/fprintf.c: New file.
45108         * m4/fprintf-posix.m4: New file.
45109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
45110         REPLACE_FPRINTF.
45111         * lib/stdio_.h (fprintf): New declaration.
45112         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
45113         REPLACE_FPRINTF.
45114
45115 2007-03-08  Bruno Haible  <bruno@clisp.org>
45116
45117         * modules/vfprintf-posix-tests: New file.
45118         * tests/test-vfprintf-posix.sh: New file.
45119         * tests/test-vfprintf-posix.c: New file.
45120         * tests/test-fprintf-posix.h: New file.
45121         * tests/test-fprintf-posix.out: New file.
45122
45123         * modules/vfprintf-posix: New file.
45124         * lib/vfprintf.c: New file.
45125         * m4/vfprintf-posix.m4: New file.
45126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
45127         REPLACE_VFPRINTF.
45128         * lib/stdio_.h (vfprintf): New declaration.
45129         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
45130         REPLACE_VFPRINTF.
45131
45132 2007-03-08  Bruno Haible  <bruno@clisp.org>
45133
45134         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
45135
45136 2007-03-08  Bruno Haible  <bruno@clisp.org>
45137
45138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
45139         instead of 'expr' invocations.
45140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45143         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45144         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45145         Suggested by Paul Eggert.
45146
45147 2007-03-08  Bruno Haible  <bruno@clisp.org>
45148
45149         * modules/fseterr-tests: New file.
45150         * tests/test-fseterr.c: New file.
45151
45152         * modules/fseterr: New file.
45153         * lib/fseterr.h: New file.
45154         * lib/fseterr.c: New file.
45155
45156 2007-03-08  Bruno Haible  <bruno@clisp.org>
45157
45158         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
45159         * lib/getopt_.h: Likewise.
45160         * lib/mbswidth.h: Likewise.
45161         * lib/setenv.h: Likewise.
45162         * lib/vasnprintf.h: Likewise.
45163         * lib/vasprintf.h: Likewise.
45164         * lib/verror.h: Likewise.
45165         * lib/xsetenv.h: Likewise.
45166         * lib/xvasprintf.h: Likewise.
45167
45168 2007-03-08  Jim Meyering  <jim@meyering.net>
45169
45170         * users.txt: Add parted.
45171
45172         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
45173
45174 2007-03-07  Bruno Haible  <bruno@clisp.org>
45175
45176         * m4/printf.m4: Make the shell script snippets copy&pastable.
45177
45178 2007-03-02  Bruno Haible  <bruno@clisp.org>
45179
45180         * lib/netinet_in_.h: New file.
45181         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
45182         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
45183         * modules/netinet_in (Files): Add lib/netinet_in_.h.
45184         (Depends-on): Add absolute-header.
45185         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
45186         into netinet/in.h.
45187
45188 2007-03-03  Bruno Haible  <bruno@clisp.org>
45189
45190         * lib/sys_select_.h: New file.
45191         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
45192         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
45193         * modules/sys_select (Files): Add lib/sys_select_.h.
45194         (Depends-on): Add absolute-header.
45195         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
45196         into sys/select.h.
45197
45198 2007-03-02  Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
45201         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
45202         values.
45203         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
45204         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
45205         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
45206         * modules/sys_socket (Depends-on): Add absolute-header.
45207         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
45208         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
45209         (Include): Remove requirement of inclusion of <sys/types.h>.
45210
45211 2007-03-02  Bruno Haible  <bruno@clisp.org>
45212
45213         * lib/byteswap_.h (bswap_32): Fix formula.
45214
45215 2007-03-06  Bruno Haible  <bruno@clisp.org>
45216
45217         * modules/sprintf-posix-tests: New file.
45218         * tests/test-sprintf-posix.c: New file.
45219
45220         * modules/sprintf-posix: New file.
45221         * lib/sprintf.c: New file.
45222         * m4/sprintf-posix.m4: New file.
45223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
45224         REPLACE_SPRINTF.
45225         * lib/stdio_.h (sprintf): New declaration.
45226         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
45227         REPLACE_SPRINTF.
45228
45229 2007-03-06  Bruno Haible  <bruno@clisp.org>
45230
45231         * modules/vsprintf-posix-tests: New file.
45232         * tests/test-vsprintf-posix.c: New file.
45233         * tests/test-sprintf-posix.h: New file.
45234
45235         * modules/vsprintf-posix: New file.
45236         * lib/vsprintf.c: New file.
45237         * m4/vsprintf-posix.m4: New file.
45238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
45239         REPLACE_VSPRINTF.
45240         * lib/stdio_.h (vsprintf): New declaration.
45241         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
45242         REPLACE_VSPRINTF.
45243
45244 2007-03-06  Bruno Haible  <bruno@clisp.org>
45245
45246         * modules/vsnprintf (Depend-on): Remove minmax.
45247
45248 2007-03-06  Bruno Haible  <bruno@clisp.org>
45249
45250         * modules/snprintf-posix-tests: New file.
45251         * tests/test-snprintf-posix.c: New file.
45252
45253         * modules/snprintf-posix: New file.
45254         * m4/snprintf-posix.m4: New file.
45255         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
45256         gl_FUNC_SNPRINTF.
45257         (gl_FUNC_SNPRINTF): Invoke it.
45258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
45259         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
45260         is set.
45261         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
45262
45263 2007-03-06  Bruno Haible  <bruno@clisp.org>
45264
45265         * modules/vsnprintf-posix-tests: New file.
45266         * tests/test-vsnprintf-posix.c: New file.
45267         * tests/test-snprintf-posix.h: New file.
45268
45269         * modules/vsnprintf-posix: New file.
45270         * m4/vsnprintf-posix.m4: New file.
45271         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
45272         gl_FUNC_VSNPRINTF.
45273         (gl_FUNC_VSNPRINTF): Invoke it.
45274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
45275         * lib/stdio_.h (vsnprintf): Define as a replacement if
45276         REPLACE_VSNPRINTF is set.
45277         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
45278
45279 2007-03-06  Bruno Haible  <bruno@clisp.org>
45280
45281         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
45282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
45283
45284 2007-03-06  Bruno Haible  <bruno@clisp.org>
45285
45286         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
45287         (asinl): Declare also if HAVE_DECL_ASINL is set.
45288         (atanl): Declare also if HAVE_DECL_ATANL is set.
45289         (ceill): Declare also if HAVE_DECL_CEILL is set.
45290         (cosl): Declare also if HAVE_DECL_COSL is set.
45291         (expl): Declare also if HAVE_DECL_EXPL is set.
45292         (floorl): Declare also if HAVE_DECL_FLOORL is set.
45293         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
45294         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
45295         (logl): Declare also if HAVE_DECL_LOGL is set.
45296         (sinl): Declare also if HAVE_DECL_SINL is set.
45297         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
45298         (tanl): Declare also if HAVE_DECL_TANL is set.
45299         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
45300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
45301         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
45302         declaration of frexpl, ldexpl.
45303         * modules/printf-frexpl (Depends-on): Add math.
45304         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
45305
45306 2007-03-05  Bruno Haible  <bruno@clisp.org>
45307
45308         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
45309         frexpl and ldexpl are declared.
45310         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
45311
45312 2007-03-05  Bruno Haible  <bruno@clisp.org>
45313
45314         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
45315         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
45316
45317 2007-03-05  Bruno Haible  <bruno@clisp.org>
45318
45319         * lib/stdio_.h: Include <stddef.h>.
45320
45321 2007-03-05  Bruno Haible  <bruno@clisp.org>
45322
45323         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
45324
45325 2007-03-05  Bruno Haible  <bruno@clisp.org>
45326
45327         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
45328         NetBSD 4, from Ralf Wildenhues.
45329
45330 2007-03-04  Bruno Haible  <bruno@clisp.org>
45331
45332         * lib/vasprintf.h: Update #if logic for the case when the functions
45333         exist but are overridden.
45334
45335 2007-03-04  Bruno Haible  <bruno@clisp.org>
45336
45337         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
45338         implementations: glibc-2.4 and MacOS X 10.3.
45339         * tests/test-vasnprintf-posix.c (test_function): Test also the case
45340         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
45341         * tests/test-vasprintf-posix.c (test_function): Likewise.
45342
45343 2007-03-04  Bruno Haible  <bruno@clisp.org>
45344
45345         * modules/vasprintf-posix-tests: New file.
45346         * tests/test-vasprintf-posix.c: New file.
45347
45348         * modules/vasprintf-posix: New file.
45349         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
45350         defined.
45351         * m4/vasprintf-posix.m4: New file.
45352         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
45353         gl_FUNC_VASPRINTF.
45354         (gl_FUNC_VASPRINTF): Invoke it.
45355         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
45356         here.
45357         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
45358
45359 2007-03-04  Bruno Haible  <bruno@clisp.org>
45360
45361         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
45362         REPLACE_GETTIMEOFDAY.
45363         * modules/sys_time (Makefile.am): Likewise.
45364         * m4/sys_time_h.m4: Likewise.
45365         * m4/gettimeofday.m4: Likewise.
45366
45367 2007-03-04  Bruno Haible  <bruno@clisp.org>
45368
45369         * modules/vasnprintf-posix-tests: New file.
45370         * tests/test-vasnprintf-posix.c: New file.
45371
45372         * modules/vasnprintf-posix: New file.
45373         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
45374         printf-frexpl.h.
45375         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
45376         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
45377         REPLACE_VASNPRINTF is defined.
45378         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
45379         gl_FUNC_VASNPRINTF.
45380         (gl_FUNC_VASNPRINTF): Invoke it.
45381         * m4/vasnprintf-posix.m4: New file.
45382         * m4/printf.m4: New file.
45383
45384 2007-03-04  Bruno Haible  <bruno@clisp.org>
45385
45386         Compile progreloc.c only if --enable-relocatable is specified.
45387         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
45388         if --enable-relocatable was specified.
45389         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
45390         lib_SOURCES.
45391
45392 2007-03-04  Jim Meyering  <jim@meyering.net>
45393
45394         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45395         Use it consistently, rather than enumerating errno constants.
45396
45397 2007-03-04  Bruno Haible  <bruno@clisp.org>
45398
45399         * modules/xvasprintf-tests: New file.
45400         * tests/test-xvasprintf.c: New file.
45401
45402         * modules/vasprintf-tests: New file.
45403         * tests/test-vasprintf.c: New file.
45404
45405         * modules/vasnprintf-tests: New file.
45406         * tests/test-vasnprintf.c: New file.
45407
45408         * modules/vsnprintf-tests: New file.
45409         * tests/test-vsnprintf.c: New file.
45410
45411         * modules/snprintf-tests: New file.
45412         * tests/test-snprintf.c: New file.
45413
45414 2007-03-04  Bruno Haible  <bruno@clisp.org>
45415
45416         Compile relocatable.c only if --enable-relocatable is specified.
45417         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45418         gl_RELOCATABLE_LIBRARY.
45419         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45420         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45421         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45422         gl_RELOCATABLE_LIBRARY.
45423         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45424         (Makefile.am): Remove lib_SOURCES.
45425         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45426         gl_RELOCATABLE_LIBRARY.
45427         (Makefile.am): Remove lib_SOURCES.
45428         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45429         always.
45430         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45431         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45432
45433 2007-03-04  Bruno Haible  <bruno@clisp.org>
45434
45435         * modules/argmatch-tests: New file.
45436         * tests/test-argmatch.c: New file.
45437
45438         * tests/test-allocsa.c (main): Halve the number of loop runs.
45439
45440         * modules/alloca-opt-tests: New file.
45441         * tests/test-alloca-opt.c: New file.
45442
45443 2007-03-04  Jim Meyering  <jim@meyering.net>
45444
45445         Work around difference between Linux ACLs and Solaris 10 ZFS.
45446         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45447         for EINVAL.
45448
45449 2007-03-03  Bruno Haible  <bruno@clisp.org>
45450
45451         * modules/relocatable-prog (Depends-on): Add back progreloc's
45452         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45453
45454 2007-03-03  Bruno Haible  <bruno@clisp.org>
45455
45456         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45457         * modules/relocatable-lib: New file.
45458
45459 2007-03-03  Bruno Haible  <bruno@clisp.org>
45460
45461         * modules/relocatable-prog: Renamed from modules/relocatable.
45462         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45463
45464 2007-03-03  Bruno Haible  <bruno@clisp.org>
45465
45466         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45467         m4/relocatable-lib.m4.
45468         (Depends-on): Remove 'relocatable'.
45469         (configure.ac): Add gl_RELOCATABLE_NOP.
45470
45471 2007-03-03  Bruno Haible  <bruno@clisp.org>
45472
45473         * modules/relocatable-prog-wrapper: New file.
45474         * modules/relocatable (Depends-on): Add it. Remove all other
45475         dependencies except progname.
45476         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45477
45478         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45479         (gl_FUNC_STRERROR): Nop.
45480         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45481
45482         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45483         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45484
45485         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45486         (gl_FUNC_READLINK): Update.
45487
45488         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45489
45490 2007-03-03  Bruno Haible  <bruno@clisp.org>
45491
45492         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45493         * modules/xreadlink (Depends-on): Add unistd.
45494         * modules/xreadlink-with-size (Depends-on): Likewise.
45495
45496 2007-03-03  Bruno Haible  <bruno@clisp.org>
45497
45498         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45499         extracted from gt_FUNC_SETENV.
45500         (gt_FUNC_SETENV): Remove macro.
45501         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45502         remove gt_FUNC_SETENV.
45503
45504 2007-03-03  Bruno Haible  <bruno@clisp.org>
45505
45506         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45507         ENABLE_RELOCATABLE here.
45508         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45509
45510 2007-03-03  Bruno Haible  <bruno@clisp.org>
45511
45512         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45513         * tests/test-rbtreehash_list.c: Include progname.h.
45514         (main): Call set_program_name.
45515
45516         * modules/rbtree-oset-tests (Depends-on): Add progname.
45517         * tests/test-rbtree_oset.c: Include progname.h.
45518         (main): Call set_program_name.
45519
45520         * modules/rbtree-list-tests (Depends-on): Add progname.
45521         * tests/test-rbtree_list.c: Include progname.h.
45522         (main): Call set_program_name.
45523
45524         * modules/linked-list-tests (Depends-on): Add progname.
45525         * tests/test-linked_list.c: Include progname.h.
45526         (main): Call set_program_name.
45527
45528 2007-03-03  Bruno Haible  <bruno@clisp.org>
45529
45530         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45531         All uses of __restrict changed to _Restrict_.
45532         * lib/glob_.h (__restrict): Remove macro.
45533
45534 2007-03-02  Bruno Haible  <bruno@clisp.org>
45535
45536         * modules/gettext (configure.ac): Require gettext infrastructure
45537         from version 0.16.1.
45538
45539 2007-03-02  Bruno Haible  <bruno@clisp.org>
45540
45541         * modules/linkedhash-list-tests (Depends-on): Add progname.
45542         * tests/test-linkedhash_list.c: Include progname.h.
45543         (main): Call set_program_name.
45544
45545         * modules/carray-list-tests (Depends-on): Add progname.
45546         * tests/test-carray_list.c: Include progname.h.
45547         (main): Call set_program_name.
45548
45549         * modules/avltreehash-list-tests (Depends-on): Add progname.
45550         * tests/test-avltreehash_list.c: Include progname.h.
45551         (main): Call set_program_name.
45552
45553         * modules/avltree-oset-tests (Depends-on): Add progname.
45554         * tests/test-avltree_oset.c: Include progname.h.
45555         (main): Call set_program_name.
45556
45557         * modules/avltree-list-tests (Depends-on): Add progname.
45558         * tests/test-avltree_list.c: Include progname.h.
45559         (main): Call set_program_name.
45560
45561         * modules/array-oset-tests (Depends-on): Add progname.
45562         * tests/test-array_oset.c: Include progname.h.
45563         (main): Call set_program_name.
45564
45565         * modules/array-list-tests (Depends-on): Add progname.
45566         * tests/test-array_list.c: Include progname.h.
45567         (main): Call set_program_name.
45568
45569         * modules/argp-tests (Depends-on): Add progname.
45570         * tests/test-argp.c: Include argp.h first. Include progname.h.
45571         (main): Call set_program_name.
45572
45573 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45574
45575         * doc/gnulib-tool.texi (Initial import): Reword description of
45576         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45577         limited effect even if defined after the first system include.
45578
45579 2007-03-01  Bruno Haible  <bruno@clisp.org>
45580
45581         * build-aux/config.libpath: Update to libtool-1.5.22.
45582         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45583
45584 2007-03-01  Bruno Haible  <bruno@clisp.org>
45585
45586         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45587         foo_CFLAGS.
45588         Reported by Ralf Wildenhues.
45589
45590 2007-03-01  Bruno Haible  <bruno@clisp.org>
45591
45592         * build-aux/install-reloc: Remove object files left over by some
45593         compilers.
45594         Reported by Ralf Wildenhues.
45595
45596 2007-03-01  Bruno Haible  <bruno@clisp.org>
45597
45598         * build-aux/install-reloc: Break long lines.
45599
45600 2007-03-01  Bruno Haible  <bruno@clisp.org>
45601
45602         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45603         Reported by Ralf Wildenhues.
45604
45605 2007-03-01  Bruno Haible  <bruno@clisp.org>
45606
45607         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45608         include ordering constraints.
45609
45610 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45611
45612         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45614         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45615         as another example.
45616         * lib/time_.h: Fix misspelling.
45617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45618         Require gl_HEADER_TIME_H_DEFAULTS.
45619         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45620         * m4/time_r.m4 (gl_TIME_R): Likewise.
45621         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45622
45623 2007-03-01  Bruno Haible  <bruno@clisp.org>
45624
45625         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45626         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45627
45628 2007-03-01  Jim Meyering  <jim@meyering.net>
45629
45630         * modules/xreadlink (Maintainer): Add my name.
45631         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45632
45633 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45634             Bruno Haible  <bruno@clisp.org>
45635
45636         * build-aux/install-reloc: Compile also c-ctype.c.
45637         * build-aux/relocatable.sh.in: New file.
45638         * doc/relocatable.texi: New file.
45639         * doc/relocatable-maint.texi: New file.
45640         * doc/gnulib.texi: Include relocatable-maint.texi.
45641         * lib/progreloc.c: Include unistd.h unconditionally.
45642         * lib/relocwrapper.c: Include unistd.h unconditionally.
45643         Include c-ctype.h.
45644         (add_dotbin): Use c_tolower.
45645         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45646         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45647         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45648         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45649         to m4/relocatable-lib.m4.
45650         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45651         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45652         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45653         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45654         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45655         * modules/relocatable: New file.
45656         * modules/relocatable-lib: New file.
45657         * modules/relocatable-script: New file.
45658
45659 2007-02-28  Bruno Haible  <bruno@clisp.org>
45660
45661         Import --enable-relocatable infrastructure.
45662         * build-aux/config.libpath: New file, from GNU gettext.
45663         * build-aux/install-reloc: New file, from GNU gettext.
45664         * build-aux/reloc-ldflags: New file, from GNU gettext.
45665         * lib/relocatable.h: New file, from GNU gettext.
45666         * lib/relocatable.c: New file, from GNU gettext.
45667         * lib/relocwrapper.c: New file, from GNU gettext.
45668         * m4/relocatable.m4: New file, from GNU gettext.
45669
45670 2007-02-28  Bruno Haible  <bruno@clisp.org>
45671
45672         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45673
45674         * modules/xreadlink: New file, from GNU gettext with modifications.
45675         * lib/xreadlink.c: New file, from GNU gettext.
45676         * lib/xreadlink.h: Add comments.
45677         (xreadlink): New declaration.
45678
45679         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
45680         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
45681         lib/xreadlink-with-size.c.
45682         (configure.ac): Remove gl_XREADLINK invocation.
45683         (Makefile.am): Augment lib_SOURCES.
45684         * m4/xreadlink.m4: Remove file.
45685         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
45686         (xreadlink_with_size): Renamed from xreadink.
45687         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
45688         * modules/canonicalize (Depends-on): Replace xreadlink with
45689         xreadlink-with-size.
45690         * lib/canonicalize.c (canonicalize_filename_mode): Update.
45691
45692 2007-02-25  Jim Meyering  <jim@meyering.net>
45693
45694         * build-aux/announce-gen: When complaining about excess arguments,
45695         list them.
45696
45697 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45698
45699         * README: Document signed integer overflow situation more
45700         accurately.
45701
45702 2007-02-25  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
45705         'a' or 'A' conversion.
45706
45707 2007-02-25  Bruno Haible  <bruno@clisp.org>
45708
45709         * modules/filename: Renamed from modules/pathname.
45710         (Files): Replace lib/pathname.h with lib/filename.h. Replace
45711         lib/concatpath.c with lib/concat-filename.c.
45712         (Makefile.am): Update.
45713         (Include): Replace pathname.h with filename.h.
45714         * lib/filename.h: Renamed from lib/pathname.h.
45715         (concatenated_filename): Renamed from concatenated_pathname.
45716         * lib/concat-filename.c: Renamed from lib/concatpath.c.
45717         (concatenated_filename): Renamed from concatenated_pathname.
45718         * lib/findprog.c: Include filename.h instead of pathname.h.
45719         (find_in_path): Update.
45720         * lib/javacomp.c: Include filename.h instead of pathname.h.
45721         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45722         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45723         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45724         is_oldgcj_14_13_usable, is_javac_usable): Update.
45725         * lib/javaexec.c: Include filename.h instead of pathname.h.
45726         (execute_java_class): Update.
45727         * modules/findprog: Update.
45728         * modules/javacomp: Update.
45729         * modules/javaexec: Update.
45730         * MODULES.html.sh (File system functions): Add 'filename', remove
45731         'pathname'.
45732
45733 2007-02-25  Bruno Haible  <bruno@clisp.org>
45734
45735         * modules/printf-frexpl-tests: New file.
45736         * tests/test-printf-frexpl.c: New file.
45737
45738         * modules/printf-frexpl: New file.
45739         * lib/printf-frexpl.h: New file.
45740         * lib/printf-frexpl.c: New file.
45741         * m4/printf-frexpl.m4: New file.
45742
45743 2007-02-25  Bruno Haible  <bruno@clisp.org>
45744
45745         * modules/printf-frexp-tests: New file.
45746         * tests/test-printf-frexp.c: New file.
45747
45748         * modules/printf-frexp: New file.
45749         * lib/printf-frexp.h: New file.
45750         * lib/printf-frexp.c: New file.
45751         * m4/printf-frexp.m4: New file.
45752
45753 2007-02-25  Bruno Haible  <bruno@clisp.org>
45754
45755         Assume automake >= 1.10 for the tests.
45756         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
45757         * modules/arctwo-tests: Likewise.
45758         * modules/argp-tests: Likewise.
45759         * modules/avltree-list-tests: Likewise.
45760         * modules/avltree-oset-tests: Likewise.
45761         * modules/avltreehash-list-tests: Likewise.
45762         * modules/carray-list-tests: Likewise.
45763         * modules/crc-tests: Likewise.
45764         * modules/des-tests: Likewise.
45765         * modules/gc-arcfour-tests: Likewise.
45766         * modules/gc-arctwo-tests: Likewise.
45767         * modules/gc-des-tests: Likewise.
45768         * modules/gc-hmac-md5-tests: Likewise.
45769         * modules/gc-hmac-sha1-tests: Likewise.
45770         * modules/gc-md2-tests: Likewise.
45771         * modules/gc-md4-tests: Likewise.
45772         * modules/gc-md5-tests: Likewise.
45773         * modules/gc-pbkdf2-sha1-tests: Likewise.
45774         * modules/gc-rijndael-tests: Likewise.
45775         * modules/gc-sha1-tests: Likewise.
45776         * modules/gc-tests: Likewise.
45777         * modules/getaddrinfo-tests: Likewise.
45778         * modules/hmac-md5-tests: Likewise.
45779         * modules/hmac-sha1-tests: Likewise.
45780         * modules/linked-list-tests: Likewise.
45781         * modules/linkedhash-list-tests: Likewise.
45782         * modules/lock-tests: Likewise.
45783         * modules/md2-tests: Likewise.
45784         * modules/md4-tests: Likewise.
45785         * modules/md5-tests: Likewise.
45786         * modules/rbtree-list-tests: Likewise.
45787         * modules/rbtree-oset-tests: Likewise.
45788         * modules/rbtreehash-list-tests: Likewise.
45789         * modules/read-file-tests: Likewise.
45790         * modules/rijndael-tests: Likewise.
45791         * modules/stdint-tests: Likewise.
45792         * modules/tls-tests: Likewise.
45793
45794 2007-02-24  Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
45797         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
45798         function; instead check whether isnan with a double argument links.
45799         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
45800         function; instead check whether isnan with a 'long double' argument
45801         links.
45802         Reported by Eric Blake <ebb9@byu.net>.
45803
45804 2007-02-24  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
45807         defined.
45808         * lib/isnanl.c: Remove all code. Just include isnan.c.
45809         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
45810
45811 2007-02-25  Jim Meyering  <jim@meyering.net>
45812
45813         Avoid conflicting types for 'unsetenv' on FreeBSD.
45814         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
45815         conflicting with FreeBSD's (5.0 and 6.1) function declaration
45816         in stdlib.h.
45817
45818 2007-02-24  Bruno Haible  <bruno@clisp.org>
45819
45820         * modules/isnanl-nolibm-tests: New file.
45821         * tests/test-isnanl.c: New file.
45822
45823         * modules/isnanl-nolibm: New file.
45824         * lib/isnanl.h: New file.
45825         * lib/isnanl.c: New file.
45826         * m4/isnanl.m4: New file.
45827
45828 2007-02-24  Bruno Haible  <bruno@clisp.org>
45829
45830         * modules/isnan-nolibm-tests: New file.
45831         * tests/test-isnan.c: New file.
45832
45833         * modules/isnan-nolibm: New file.
45834         * lib/isnan.h: New file.
45835         * lib/isnan.c: New file.
45836         * m4/isnan.m4: New file.
45837
45838 2007-02-24  Bruno Haible  <bruno@clisp.org>
45839
45840         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45841         assume that an exponent fits in 20 bits.
45842
45843 2007-02-24  Jim Meyering  <jim@meyering.net>
45844
45845         * m4/regex.m4: Update the description of the configure-time option,
45846         --without-included-regex, to state accurately what the defaults are,
45847         and perhaps to give people an idea why using this option is risky.
45848
45849 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45850
45851         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45852         loops on small arguments.  This attempts to avoid the problem
45853         Bruno Haible reported for AIX 4.3.2 in
45854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45855
45856 2007-02-23  Bruno Haible  <bruno@clisp.org>
45857
45858         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45859         Needed for help2man.
45860
45861 2007-02-23  Karl Berry  <karl@gnu.org>
45862
45863         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45864         exists, foo.h should be cvs-ignored, not committed.
45865
45866 2007-02-23  Eric Blake  <ebb9@byu.net>
45867
45868         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45869         * lib/stat-time.h (includes): Likewise.
45870         * lib/utimecmp.c (includes): Likewise.
45871         * lib/utimens.h (includes): Likewise.
45872         * lib/getdate.y (includes): Also include "timespec.h" for use
45873         internal to the module.
45874         * modules/utimens (Depends-on): Revert yesterday's patch.
45875         * modules/nanosleep (Depends-on): Add missing dependency.
45876
45877 2007-02-22  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/glob.c: Don't include getlogin_r.h.
45880
45881 2007-02-22  Jim Meyering  <jim@meyering.net>
45882
45883         * modules/utimens (Depends-on): Add timespec, required for
45884         utimens.h's inclusion of timespec.h.
45885
45886 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45887
45888         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45889         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45890         Schwab in
45891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45892         I'll try to think of a better way to fix the Solaris problem.
45893
45894         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45895         like glibc; on Solaris 10, it fails with errno == EINVAL.
45896         POSIX says the behavior is unspecified if the first argument is NULL,
45897         so play it safe and never pass NULL to the system getcwd.
45898
45899 2007-02-21  Jim Meyering  <jim@meyering.net>
45900
45901         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45902         of gettimeofday.  It would conflict with the one now always
45903         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45904         an IRIX 6.5 build failure.
45905
45906 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45907
45908         Minor fixups to port to Solaris 10 with Sun C 5.8.
45909         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45910         * modules/getcwd (Depends-on): Add dirfd.
45911         * lib/putenv.c (putenv): #undef it.
45912         (rpl_putenv): New decl.
45913         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45914
45915 2007-02-20  Bruno Haible  <bruno@clisp.org>
45916
45917         * modules/stdio-tests: New file.
45918         * tests/test-stdio.c: New file.
45919
45920         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45921         (Depends-on): Add stdio.
45922         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45923         (Include): Use <stdio.h> instead of vsnprintf.h.
45924         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45925         HAVE_DECL_VSNPRINTF.
45926         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45927
45928         * modules/snprintf (Files): Remove lib/snprintf.h.
45929         (Depends-on): Add stdio.
45930         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45931         (Include): Use <stdio.h> instead of snprintf.h.
45932         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45933         HAVE_DECL_SNPRINTF.
45934         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45935         * lib/getaddrinfo.c: Likewise.
45936
45937         * modules/stdio: New file.
45938         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45939         * lib/snprintf.h: Remove file.
45940         * lib/vsnprintf.h: Remove file.
45941         * lib/.cppi-disable: Remove snprintf.h.
45942         * m4/stdio_h.m4: New file.
45943         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45944
45945 2007-02-20  Jim Meyering  <jim@meyering.net>
45946
45947         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45948         used by e.g., mingw.  From Bruno Haible.
45949
45950 2007-02-19  Bruno Haible  <bruno@clisp.org>
45951
45952         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45953         warnings.
45954         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45955
45956 2007-02-19  Bruno Haible  <bruno@clisp.org>
45957
45958         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45959         from mingw users.
45960
45961 2007-02-19  Bruno Haible  <bruno@clisp.org>
45962
45963         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45964         warnings.
45965         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45966
45967 2007-02-19  Jim Meyering  <jim@meyering.net>
45968
45969         Don't use FD after a successful "fdopendir (fd)".
45970         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45971         Reset it by calling dirfd on the just-obtained DIR*.
45972
45973         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45974         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45975
45976 2007-02-18  Bruno Haible  <bruno@clisp.org>
45977
45978         * lib/readlink.c: Include <unistd.h>.
45979         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45980         HAVE_READLINK.
45981         * modules/readlink (Depends-on): Add unistd.
45982         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45983         (Include): Add <unistd.h>.
45984
45985         * lib/getlogin_r.h: Remove file.
45986         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45987         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45988         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45989         HAVE_DECL_GETLOGIN_R.
45990         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45992         (Include): Use <unistd.h> instead of getlogin_r.h.
45993
45994         * lib/getcwd.h: Remove file.
45995         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45996         * lib/xgetcwd.c: Likewise.
45997         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45998         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45999         * modules/getcwd (Files): Remove lib/getcwd.h.
46000         (Depends-on): Add unistd.
46001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46002         (Include): Use <unistd.h> instad of getcwd.h.
46003
46004         * lib/ftruncate.c: Include <unistd.h> first.
46005         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
46006         Set HAVE_FTRUNCATE.
46007         * modules/ftruncate (Depends-on): Add unistd.
46008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46009
46010         * lib/fchdir.c: Include <unistd.h> first.
46011         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
46012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
46013         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
46014         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46015         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
46016
46017         * lib/dup2.c: Include <unistd.h> first.
46018         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
46019         HAVE_DUP2.
46020         * modules/dup2 (Depends-on): Add unistd.
46021         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46022
46023         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
46024         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
46025         REPLACE_CHOWN. Don't define chown as a macro here.
46026         * modules/chown (Depends-on): Add unistd.
46027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46028
46029         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
46030         Add definition for GL_LINK_WARNING.
46031         (chown, dup2): New declarations.
46032         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
46033         link warning.
46034         (ftruncate): New declaration.
46035         (getcwd): New declaration, taken from old getcwd.h.
46036         (getlogin_r): New declaration, taken from old getlogin_r.h.
46037         (readlink): New declaration.
46038         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
46039         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
46040         (gl_PREREQ_UNISTD): Remove macro.
46041         (gl_UNISTD_MODULE_INDICATOR): New macro.
46042         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
46043         many new variables. Don't set UNISTD_H.
46044         * modules/unistd (Description): Change.
46045         (Depends-on): Add link-warning.
46046         (configure.ac): Update.
46047         (Makefile.am): Create unistd.h always. Substitute many new variables
46048         into it.
46049
46050 2007-02-18  Bruno Haible  <bruno@clisp.org>
46051
46052         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
46053         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
46054         HAVE_GETSUBOPT.
46055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
46056         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
46057         * lib/getsubopt.h: Remove file.
46058         * modules/getsubopt (Files): Remove lib/getsubopt.h.
46059         (Depends-on): Add stdlib.
46060         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46061         (Includes): Use <stdlib.h> instead of getsubopt.h.
46062         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
46063         Set HAVE_GETSUBOPT.
46064         * lib/getsubopt.c: Don't include getsubopt.h.
46065
46066 2007-02-18  Bruno Haible  <bruno@clisp.org>
46067
46068         * modules/fchdir (Depends-on): Add dup2.
46069
46070 2007-02-18  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/stdlib_.h: Handle glibc's special invocation convention
46073         specially.
46074
46075 2007-02-18  Bruno Haible  <bruno@clisp.org>
46076
46077         * modules/stdlib-tests: New file.
46078         * tests/test-stdlib.c: New file.
46079
46080         * modules/mkstemp (Files): Remove lib/mkstemp.h.
46081         (Depends-on): Add stdlib.
46082         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46083         (Includes): Use <stdlib.h> instead of mkstemp.h.
46084         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46085         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
46086         * lib/mkstemp.c: Don't include mkstemp.h.
46087         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
46088         * lib/stdlib--.h: Don't include mkstemp.h.
46089
46090         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
46091         (Depends-on): Add stdlib.
46092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46093         (Includes): Use <stdlib.h> instead of mkdtemp.h.
46094         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46095         HAVE_MKDTEMP.
46096         * lib/mkdtemp.c: Don't include mkdtemp.h.
46097         * lib/clean-temp.c: Don't include mkdtemp.h.
46098
46099         * modules/exit (Files): Remove lib/exit.h.
46100         (Depends-on): Add stdlib.
46101         (Makefile.am): Remove lib_SOURCES.
46102         (Include): Use <stdlib.h> instead of exit.h.
46103         * lib/argmatch.c: Don't include exit.h.
46104         * lib/execute.c: Likewise.
46105         * lib/pagealign_alloc.c: Likewise.
46106         * lib/pipe.c: Likewise.
46107         * lib/wait-process.c: Likewise.
46108         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
46109         * lib/exitfail.c: Likewise.
46110         * lib/savewd.c: Likewise.
46111         * lib/xsetenv.c: Likewise.
46112
46113         * modules/stdlib: New file.
46114         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
46115         and extra comments about mkstemp().
46116         * lib/exit.h: Remove file.
46117         * lib/mkdtemp.h: Remove file.
46118         * lib/mkstemp.h: Remove file.
46119         * m4/stdlib_h.m4: New file.
46120         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
46121
46122 2007-02-18  Bruno Haible  <bruno@clisp.org>
46123
46124         * modules/math-tests: New file.
46125         * tests/test-math.c: New file.
46126
46127         * modules/math: New file.
46128         * modules/mathl (Files): Remove lib/mathl.h.
46129         (Depends-on): Add math.
46130         (Makefile.am): Don't mention mathl.h.
46131         (Include): Use <math.h> instead of mathl.h.
46132         * lib/math_.h: New file.
46133         * lib/mathl.h: Remove file.
46134         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
46135         mathl.h.
46136         * lib/asinl.c: Likewise.
46137         * lib/atanl.c: Likewise.
46138         * lib/ceill.c: Likewise.
46139         * lib/cosl.c: Likewise.
46140         * lib/expl.c: Likewise.
46141         * lib/floorl.c: Likewise.
46142         * lib/frexpl.c: Likewise.
46143         * lib/ldexpl.c: Likewise.
46144         * lib/logl.c: Likewise.
46145         * lib/sincosl.c: Likewise.
46146         * lib/sinl.c: Likewise.
46147         * lib/sqrtl.c: Likewise.
46148         * lib/tanl.c: Likewise.
46149         * lib/trigl.c: Likewise.
46150         * m4/math_h.m4: New file.
46151         * MODULES.html.sh (Mathematics): Add math.
46152
46153 2007-02-17  Bruno Haible  <bruno@clisp.org>
46154
46155         * modules/wctype-tests: New file.
46156         * tests/test-wctype.c: New file.
46157
46158         * modules/wchar-tests: New file.
46159         * tests/test-wchar.c: New file.
46160
46161         * modules/unistd-tests: New file.
46162         * tests/test-unistd.c: New file.
46163
46164         * modules/time-tests: New file.
46165         * tests/test-time.c: New file.
46166
46167         * modules/sysexits-tests: New file.
46168         * tests/test-sysexits.c: New file.
46169
46170         * modules/sys_time-tests: New file.
46171         * tests/test-sys_time.c: New file.
46172
46173         * modules/sys_stat-tests: New file.
46174         * tests/test-sys_stat.c: New file.
46175
46176         * modules/sys_socket-tests: New file.
46177         * tests/test-sys_socket.c: New file.
46178
46179         * modules/sys_select-tests: New file.
46180         * tests/test-sys_select.c: New file.
46181
46182         * modules/string-tests: New file.
46183         * tests/test-string.c: New file.
46184
46185         * modules/stdbool-tests: New file.
46186         * tests/test-stdbool.c: New file.
46187
46188         * modules/netinet_in-tests: New file.
46189         * tests/test-netinet_in.c: New file.
46190
46191         * modules/inttypes-tests: New file.
46192         * tests/test-inttypes.c: New file.
46193
46194         * modules/fcntl-tests: New file.
46195         * tests/test-fcntl.c: New file.
46196
46197         * modules/byteswap-tests: New file.
46198         * tests/test-byteswap.c: New file.
46199
46200         * modules/arpa_inet-tests: New file.
46201         * tests/test-arpa_inet.c: New file.
46202
46203 2007-02-17  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
46206         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
46207         if the corresponding module is not enabled. Emit link warnings if
46208         the function is used nevertheless.
46209         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
46210         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
46211         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
46212         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
46213         * modules/inttypes (Depends-on): Add link-warning.
46214         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46215         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
46216         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
46217         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
46218         * modules/imaxdiv (configure.ac): Likewise.
46219         * modules/strtoimax (configure.ac): Likewise.
46220         * modules/strtoumax (configure.ac): Likewise.
46221
46222 2007-02-17  Bruno Haible  <bruno@clisp.org>
46223
46224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
46225         gl_STRING_MODULE_INDICATOR_DEFAULTS.
46226         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
46227         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
46228
46229 2007-02-17  Bruno Haible  <bruno@clisp.org>
46230
46231         * modules/link-warning: New file.
46232         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
46233         * lib/string_.h (GL_LINK_WARNING): Remove definition.
46234         * modules/string (Depends-on): Add link-warning.
46235         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46236         string.h.
46237         * MODULES.html.sh (Support for building libraries and executables): Add
46238         link-warning.
46239
46240 2007-02-17  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
46243         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
46244         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
46245         long lines.
46246
46247 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
46248             Bruno Haible  <bruno@clisp.org>
46249
46250         * modules/tmpfile: New file.
46251         * lib/tmpfile.c: New file.
46252         * m4/tmpfile.m4: New file.
46253         * MODULES.html.sh (func_all_modules): New section "Input/output".
46254
46255 2007-02-15  Bruno Haible  <bruno@clisp.org>
46256
46257         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
46258         (supports_delete_on_close): New function.
46259         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
46260
46261 2007-02-14  Bruno Haible  <bruno@clisp.org>
46262
46263         * modules/mbspcasecmp-tests: New file.
46264         * tests/test-mbspcasecmp.sh: New file.
46265         * tests/test-mbspcasecmp.c: New file.
46266
46267         New module mbspcasecmp.
46268         * modules/mbspcasecmp: New file.
46269         * lib/mbspcasecmp.c: New file.
46270         * lib/string_.h (strncasecmp): Change warning message.
46271         (mbspcasecmp): New declaration.
46272         * m4/mbspcasecmp.m4: New file.
46273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46274         GNULIB_MBSPCASECMP.
46275         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
46276         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
46277
46278 2007-02-14  Bruno Haible  <bruno@clisp.org>
46279
46280         * modules/mbsncasecmp-tests: New file.
46281         * tests/test-mbsncasecmp.sh: New file.
46282         * tests/test-mbsncasecmp.c: New file.
46283
46284         New module mbsncasecmp.
46285         * modules/mbsncasecmp: New file.
46286         * lib/mbsncasecmp.c: New file.
46287         * lib/string_.h (mbsncasecmp): New declaration.
46288         * m4/mbsncasecmp.m4: New file.
46289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46290         GNULIB_MBSNCASECMP.
46291         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
46292         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
46293
46294 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46295
46296         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
46297         Verify that it doesn't overlap with our flags.
46298         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
46299         do not have the desired effect in multibyte locales; instead, use
46300         mbscasecmp.
46301         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
46302         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
46303         we don't require GNU fnmatch ourselves (if our users require it, they
46304         should do so explicitly).
46305
46306         Fix regex code so it doesn't rely on strcasecmp.
46307         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
46308         Otherwise, include gnulib's langinfo.h.
46309         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
46310         undesirable behavior in non-C locales.  Instead, rely on localecharset.
46311         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
46312         * modules/regex (FILES): Remove m4/codeset.m4.
46313         (Depends-on): Add localcharset.  Remove strcase.
46314
46315 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46316
46317         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
46318         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46319
46320 2007-02-13  Bruno Haible  <bruno@clisp.org>
46321
46322         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
46323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46324
46325 2007-02-12  Bruno Haible  <bruno@clisp.org>
46326
46327         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46328         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
46329         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
46330         time warning rather than a link error.
46331
46332 2007-02-12  Bruno Haible  <bruno@clisp.org>
46333
46334         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
46335         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46337
46338 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46339
46340         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
46341         args, not 2.
46342
46343 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46344
46345         New module 'time', so that apps can include <time.h> as per
46346         POSIX and GNU instead of separate include files like time_r.h
46347         and timegm.h.  This implementation tries out a simpler approach
46348         for replacing decls in standard include files (as compared to
46349         the string module), somewhat as an experiment.
46350
46351         * config/srclist.txt: Comment out mktime.c for now.
46352         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
46353         since it doesn't apply any more.  Use generic wording instead.
46354         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
46355         'time'.
46356         * lib/time_.h, m4/time_h.m4, modules/time: New files.
46357         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
46358         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
46359         Don't include <sys/types.h>; no longer needed since we assume C89.
46360         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
46361         * lib/strftime.c: Likewise.
46362         * lib/time_r.c: Likewise.
46363         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
46364         * lib/nanosleep.c: Include <time.h> first, to check interface.
46365         * lib/strptime.c: Likewise.
46366         * lib/time_r.c: Likewise.
46367         * lib/timegm.c: Likewise.
46368         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
46369         needed.
46370         * lib/timegm.c: Don't include timegm.h; no longer needed.
46371         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
46372         time.h now handles any problems in that area.
46373         (struct timespec, nanosleep): Remove; time.h now arranges for these.
46374         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
46375         that time.h defines struct timespec.
46376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
46377         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
46378         handles that.
46379         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
46380         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
46381         needed.  Set REPLACE_LOCALTIME.
46382         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
46383         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
46384         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
46385         nanosleep; time_h.m4 now does that.  Don't require
46386         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
46387         module handles this now.
46388         * modules/getdate (Depends-on): Remove timespec.  Add time.
46389         * modules/nanosleep (Depends-on): Likewise.
46390         * modules/stat-time (Depends-on): Likewise.
46391         * modules/nanosleep (Include): Include time.h, not timespec.h.
46392         * modules/strptime (Files): Remove lib/strptime.h.
46393         (Depends-on): Add extensions, time.
46394         (Include): Include time.h, not strptime.h.
46395         * modules/time_r (Files): Remove lib/time_r.h.
46396         (Depends-on): Add time.
46397         (Include): Include time.h, not time_r.h.
46398         * modules/timegm: Likewise.
46399         * modules/timespec (Description): Now does timespec-related decls
46400         of our own, instead of struct timespec itself.
46401         (Depends-on): Add time; remove extensions.
46402         (Maintainer): Add self.
46403         * modules/utimecmp (Depends-on): Add time; remove timespec.
46404         * modules/utimens (Depends-on): Likewise.
46405         * modules/xnanosleep (Depends-on): Likewise.
46406
46407 2007-02-11  Bruno Haible  <bruno@clisp.org>
46408
46409         * lib/c-strstr.c: Include allocsa.h.
46410         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46411         * lib/c-strcasestr.c: Include allocsa.h.
46412         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46413         * lib/strcasestr.c: Include allocsa.h.
46414         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46415         * lib/mbsstr.c: Include allocsa.h.
46416         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46417         allocsa/freesa instead of malloc/free.
46418         * lib/mbscasestr.c: Include allocsa.h.
46419         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46420         allocsa/freesa instead of malloc/free.
46421         * modules/c-strstr (Depends-on): Add allocsa.
46422         * modules/c-strcasestr (Depends-on): Likewise.
46423         * modules/strcasestr (Depends-on): Likewise.
46424         * modules/mbsstr (Depends-on): Likewise.
46425         * modules/mbscasestr (Depends-on): Likewise.
46426
46427 2007-02-11  Bruno Haible  <bruno@clisp.org>
46428
46429         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46430
46431         * modules/mbsspn-tests: New file.
46432         * tests/test-mbsspn.sh: New file.
46433         * tests/test-mbsspn.c: New file.
46434
46435 2007-02-11  Bruno Haible  <bruno@clisp.org>
46436
46437         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46438
46439         * modules/mbspbrk-tests: New file.
46440         * tests/test-mbspbrk.sh: New file.
46441         * tests/test-mbspbrk.c: New file.
46442
46443 2007-02-11  Bruno Haible  <bruno@clisp.org>
46444
46445         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46446         unneeded cast.
46447
46448         * modules/mbscspn-tests: New file.
46449         * tests/test-mbscspn.sh: New file.
46450         * tests/test-mbscspn.c: New file.
46451
46452 2007-02-11  Bruno Haible  <bruno@clisp.org>
46453
46454         * modules/mbscasecmp-tests: New file.
46455         * tests/test-mbscasecmp.sh: New file.
46456         * tests/test-mbscasecmp.c: New file.
46457
46458 2007-02-11  Bruno Haible  <bruno@clisp.org>
46459
46460         Ensure O(n) worst-case complexity of mbscasestr.
46461         * lib/mbscasestr.c: Include stdbool.h.
46462         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46463         functions.
46464         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46465         the bookkeeping indicates that it's worth it.
46466         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46467
46468         * modules/mbscasestr-tests: New file.
46469         * tests/test-mbscasestr1.c: New file.
46470         * tests/test-mbscasestr2.sh: New file.
46471         * tests/test-mbscasestr2.c: New file.
46472         * tests/test-mbscasestr3.sh: New file.
46473         * tests/test-mbscasestr3.c: New file.
46474         * tests/test-mbscasestr4.sh: New file.
46475         * tests/test-mbscasestr4.c: New file.
46476         * m4/locale-tr.m4: New file.
46477
46478 2007-02-11  Bruno Haible  <bruno@clisp.org>
46479
46480         Ensure O(n) worst-case complexity of mbsstr.
46481         * lib/mbsstr.c: Include stdbool.h.
46482         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46483         functions.
46484         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46485         bookkeeping indicates that it's worth it.
46486         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46487
46488         * modules/mbsstr-tests: New file.
46489         * tests/test-mbsstr1.c: New file.
46490         * tests/test-mbsstr2.sh: New file.
46491         * tests/test-mbsstr2.c: New file.
46492         * tests/test-mbsstr3.sh: New file.
46493         * tests/test-mbsstr3.c: New file.
46494         * m4/locale-fr.m4: New file.
46495
46496 2007-02-11  Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/mbsrchr.c (mbsrchr): Fix bug.
46499
46500         * modules/mbsrchr-tests: New file.
46501         * tests/test-mbsrchr.sh: New file.
46502         * tests/test-mbsrchr.c: New file.
46503
46504 2007-02-11  Bruno Haible  <bruno@clisp.org>
46505
46506         * lib/mbschr.c (mbschr): Fix bug.
46507
46508         * modules/mbschr-tests: New file.
46509         * tests/test-mbschr.sh: New file.
46510         * tests/test-mbschr.c: New file.
46511         * m4/locale-zh.m4: New file.
46512
46513 2007-02-11  Bruno Haible  <bruno@clisp.org>
46514
46515         Support for copying multibyte string iterators.
46516         * lib/mbiter.h: Include <string.h>.
46517         (mbiter_multi_copy): New function.
46518         (mbi_copy): New macro.
46519         * lib/mbuiter.h: Include <string.h>.
46520         (mbuiter_multi_copy): New function.
46521         (mbui_copy): New macro.
46522
46523 2007-02-11  Bruno Haible  <bruno@clisp.org>
46524
46525         New module mbslen.
46526         * modules/mbslen: New file.
46527         * lib/mbslen.c: New file.
46528         * lib/string_.h (mbslen): New declaration.
46529         * m4/mbslen.m4: New file.
46530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46531         GNULIB_MBSLEN.
46532         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46533         * MODULES.html.sh (Internationalization functions): Add mbslen.
46534
46535 2007-02-11  Bruno Haible  <bruno@clisp.org>
46536
46537         Ensure O(n) worst-case complexity of strcasestr substitute.
46538         * lib/strcasestr.c: Include stdbool.h.
46539         (knuth_morris_pratt): New function.
46540         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46541         bookkeeping indicates that it's worth it.
46542         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46543
46544         * modules/strcasestr-tests: New file.
46545         * tests/test-strcasestr.c: New file.
46546
46547 2007-02-11  Bruno Haible  <bruno@clisp.org>
46548
46549         Ensure O(n) worst-case complexity of c_strcasestr.
46550         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46551         (knuth_morris_pratt): New function.
46552         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46553         the bookkeeping indicates that it's worth it.
46554         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46555
46556         * modules/c-strcasestr-tests: New file.
46557         * tests/test-c-strcasestr.c: New file.
46558
46559 2007-02-11  Bruno Haible  <bruno@clisp.org>
46560
46561         Ensure O(n) worst-case complexity of c_strstr.
46562         * lib/c-strstr.c: Include stdbool.h, string.h.
46563         (knuth_morris_pratt): New function.
46564         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46565         bookkeeping indicates that it's worth it.
46566         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46567
46568         * lib/c-strstr.c: Complete rewrite for maintainability.
46569
46570         * modules/c-strstr-tests: New file.
46571         * tests/test-c-strstr.c: New file.
46572
46573 2007-02-11  Bruno Haible  <bruno@clisp.org>
46574
46575         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46576         5.2.1 and earlier, whereby \055 was treated just like the range
46577         delimiter '-'.
46578         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46579
46580 2007-02-08  Bruno Haible  <bruno@clisp.org>
46581
46582         * modules/regex (Depends-on): Add stdbool.
46583         Reported by Dalibor Topic <robilad@kaffe.org>.
46584
46585 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46586
46587         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46588         Prefer returning from main to exiting from it.
46589         Remove unnecessary parens after sizeof.
46590
46591 2007-02-05  Bruno Haible  <bruno@clisp.org>
46592
46593         New module mbssep.
46594         * modules/mbssep: New file.
46595         * lib/mbssep.c: New file.
46596         * lib/string_.h (strsep): Add a conditional link warning.
46597         (mbssep): New declaration.
46598         * m4/mbssep.m4: New file.
46599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46600         GNULIB_MBSSEP.
46601         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46602         * MODULES.html.sh (Internationalization functions): Add mbssep.
46603
46604 2007-02-05  Bruno Haible  <bruno@clisp.org>
46605
46606         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46607         Optimize search in case of 1 delimiter.
46608
46609 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46610
46611         * lib/acl.h: Include sys/types.h before sys/acl.h.
46612
46613 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46614
46615         Merge upstream fix for glibc bugzilla #3957:
46616
46617         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46618
46619         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46620         bit for RE_HAT_LISTS_NOT_NEWLINE.
46621         (build_charclass_op): Remove bogus comment.
46622
46623 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46624
46625         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46626
46627 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46628
46629         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46630         * lib/memmem.c [!defined _LIBC]: Include config.h.
46631
46632 2007-02-04  Bruno Haible  <bruno@clisp.org>
46633
46634         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46635         warning message.
46636
46637 2007-02-04  Bruno Haible  <bruno@clisp.org>
46638
46639         New module mbstok_r.
46640         * modules/mbstok_r: New file.
46641         * lib/mbstok_r.c: New file.
46642         * lib/string_.h (strtok_r): Change argument names to match the
46643         comments. Add a conditional link warning.
46644         (mbstok_r): New declaration.
46645         * m4/mbstok_r.m4: New file.
46646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46647         GNULIB_MBSTOK_R.
46648         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46649         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46650
46651 2007-02-04  Bruno Haible  <bruno@clisp.org>
46652
46653         New module mbsspn.
46654         * modules/mbsspn: New file.
46655         * lib/mbsspn.c: New file.
46656         * lib/string_.h (strspn): Add a conditional link warning.
46657         (mbsspn): New declaration.
46658         * m4/mbsspn.m4: New file.
46659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46660         GNULIB_MBSSPN.
46661         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46662         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46663
46664 2007-02-04  Bruno Haible  <bruno@clisp.org>
46665
46666         New module mbspbrk.
46667         * modules/mbspbrk: New file.
46668         * lib/mbspbrk.c: New file.
46669         * lib/string_.h (strpbrk): Add a conditional link warning.
46670         (mbspbrk): New declaration.
46671         * m4/mbspbrk.m4: New file.
46672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46673         GNULIB_MBSPBRK.
46674         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
46675         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
46676
46677 2007-02-04  Bruno Haible  <bruno@clisp.org>
46678
46679         New module mbscspn.
46680         * modules/mbscspn: New file.
46681         * lib/mbscspn.c: New file.
46682         * lib/string_.h (strcspn): Add a conditional link warning.
46683         (mbscspn): New declaration.
46684         * m4/mbscspn.m4: New file.
46685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46686         GNULIB_MBSCSPN.
46687         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
46688         * MODULES.html.sh (Internationalization functions): Add mbscspn.
46689
46690 2007-02-04  Bruno Haible  <bruno@clisp.org>
46691
46692         New module mbscasestr, reduced goal of strcasestr.
46693         * modules/mbscasestr: New file.
46694         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
46695         (mbscasestr): Renamed from strcasestr.
46696         * lib/strcasestr.c: Don't include mbuiter.h.
46697         (strcasestr): Remove support for multibyte locales.
46698         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
46699         Change the conditional link warning.
46700         (mbscasestr): New declaration.
46701         * m4/mbscasestr.m4: New file.
46702         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
46703         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
46704         REPLACE_STRCASESTR.
46705         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
46706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46707         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46708         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
46709         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
46710         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46711         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
46712         (Depends-on): Remove mbuiter.
46713         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
46714
46715 2007-02-04  Bruno Haible  <bruno@clisp.org>
46716
46717         Simplify handling of strncasecmp.
46718         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
46719         the conditional link warning.
46720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46721         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
46722         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
46723         * modules/strcase (configure.ac): Don't invoke
46724         gl_STRING_MODULE_INDICATOR.
46725         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
46726
46727 2007-02-04  Bruno Haible  <bruno@clisp.org>
46728
46729         New module mbscasecmp, reduced goal of strcasecmp.
46730         * modules/mbscasecmp: New file.
46731         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
46732         (mbscasecmp): Renamed from strcasecmp.
46733         * lib/strcasecmp.c: Don't include mbuiter.h.
46734         (strcasecmp): Remove support for multibyte locales.
46735         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
46736         Change the conditional link warning.
46737         (mbscasecmp): New declaration.
46738         * m4/mbscasecmp.m4: New file.
46739         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
46740         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
46741         REPLACE_STRCASECMP.
46742         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
46743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46744         GNULIB_MBSCASECMP.
46745         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
46746         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
46747         * modules/strcase (Files): Remove m4/mbrtowc.m4.
46748         (Depends-on): Remove mbuiter.
46749         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
46750
46751 2007-02-04  Bruno Haible  <bruno@clisp.org>
46752
46753         New module mbsstr. Remove module strstr.
46754         * modules/mbsstr: New file.
46755         * modules/strstr: Remove file.
46756         * lib/mbsstr.c: Renamed from lib/strstr.c.
46757         (mbsstr): Renamed from strstr.
46758         * lib/string_.h (strstr): Remove declaration. Change the conditional
46759         link warning.
46760         (mbsstr): New declaration.
46761         * m4/mbsstr.m4: New file.
46762         * m4/strstr.m4: Remove file.
46763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46764         REPLACE_STRSTR.
46765         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
46766         Don't initialize GNULIB_STRSTR.
46767         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
46768         substitute GNULIB_STRSTR and REPLACE_STRSTR.
46769         * MODULES.html.sh (Internationalization functions): Add mbsstr.
46770         (Support for systems lacking ANSI C 89): Remove strstr.
46771
46772 2007-02-04  Bruno Haible  <bruno@clisp.org>
46773
46774         New module mbsrchr.
46775         * modules/mbsrchr: New file.
46776         * lib/mbsrchr.c: New file.
46777         * lib/string_.h (strrchr): Add a conditional link warning.
46778         (mbsrchr): New declaration.
46779         * m4/mbsrchr.m4: New file.
46780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46781         GNULIB_MBSRCHR.
46782         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
46783         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
46784
46785 2007-02-04  Bruno Haible  <bruno@clisp.org>
46786
46787         New module mbschr.
46788         * modules/mbschr: New file.
46789         * lib/mbschr.c: New file.
46790         * lib/string_.h (strchr): Add a conditional link warning.
46791         (mbschr): New declaration.
46792         * m4/mbschr.m4: New file.
46793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46794         GNULIB_MBSCHR.
46795         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
46796         * MODULES.html.sh (Internationalization functions): Add mbschr.
46797
46798 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46799
46800         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
46801
46802         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
46803
46804 2007-02-04  Bruno Haible  <bruno@clisp.org>
46805
46806         New module description section 'configure.ac-early'.
46807         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
46808         (func_get_autoconf_early_snippet): New function.
46809         (func_import, func_create_testdir): Use it. Remove special cases for
46810         modules 'extensions' and 'lock'.
46811         * modules/extensions (configure.ac-early): Require
46812         gl_USE_SYSTEM_EXTENSIONS.
46813         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
46814
46815 2007-02-04  Bruno Haible  <bruno@clisp.org>
46816
46817         Make use of gcj-4.3's -fsource and -ftarget option.
46818         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
46819         and if so try the options -fsource and -ftarget.
46820         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
46821         source_version, ftarget_option, target_version arguments.
46822         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
46823         (is_envjavac_oldgcj_14_14_usable): Renamed from
46824         is_envjavac_gcj_14_14_usable.
46825         (is_envjavac_oldgcj_14_13_usable): Renamed from
46826         is_envjavac_gcj_14_13_usable.
46827         (is_gcj_present): Update.
46828         (is_gcj_43, is_gcj43_usable): New functions.
46829         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
46830         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
46831         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
46832         try the options -fsource and -ftarget.
46833
46834 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46835
46836         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
46837         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46838         larger value.
46839
46840 2007-02-03  Jim Meyering  <jim@meyering.net>
46841
46842         Give tools a better chance to allocate space for very large buffers.
46843         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46844
46845         Make pwd and readlink work also when run with an unreadable parent dir
46846         on systems with openat support.
46847         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46848         provided getcwd function, even when we have openat support.
46849         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46850
46851 2007-02-02  Bruno Haible  <bruno@clisp.org>
46852
46853         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46854         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46855         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46856         portability problems if one of these functions is only used on specific
46857         platforms.
46858         Reported by Paul Eggert.
46859
46860 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46861
46862         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46863         is causing more trouble than it's curing.
46864         * lib/regex_internal.h (__mempcpy): Remove.
46865         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46866         (and make the code a tad smaller to boot).
46867         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46868
46869 2007-02-02  Jim Meyering  <jim@meyering.net>
46870
46871         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46872         section, not in the Makefile.am: one.
46873
46874 2007-02-02  Eric Blake  <ebb9@byu.net>
46875
46876         * lib/strchrnul.c: Always include config.h first.
46877
46878         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46879         gnulib strstr is not necessary here.
46880
46881 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46882
46883         * m4/socklen.m4: Fix typo.
46884
46885 2007-02-02  Eric Blake  <ebb9@byu.net>
46886
46887         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46888         * modules/netinet_in (Makefile.am): Likewise.
46889
46890 2007-02-01  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/string_.h (GL_LINK_WARNING): New macro.
46893         (strcasecmp, strstr, strcasestr): If provided by the system,
46894         conditionally define as a macro that leads to a warning instead of to
46895         an error.
46896         (strncasecmp): Conditionally define as a macro that leads to a warning.
46897
46898 2007-02-01  Karl Berry  <karl@gnu.org>
46899
46900         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46901
46902 2007-02-01  Bruno Haible  <bruno@clisp.org>
46903
46904         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46905         renamings.
46906
46907 2007-02-01  Eric Blake  <ebb9@byu.net>
46908
46909         * modules/regex (Depends-on): Revert dependence on mempcpy.
46910         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46911         module's definition of mempcpy.
46912         Reported by Paul Eggert.
46913
46914 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46915
46916         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46917         the symbol XYZ before redefining it.  This fixes a problem with
46918         programs that don't use XYZ, when compiled on systems that define
46919         XYZ to something else.
46920
46921 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46922
46923         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46924         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46925         writeable to group or other and (2) is intended to have a special
46926         mode bit that is set or cleared.  In such a case, the directory
46927         should be neither group- nor other-writeable until the special
46928         mode bits are right.
46929
46930 2007-01-31  Eric Blake  <ebb9@byu.net>
46931
46932         * modules/mountlist (Depends-on): Add strstr.
46933
46934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46935         bug.
46936         * modules/string (Makefile.am): Remove redundant replacement.
46937         * modules/regex (Depends-on): Add mempcpy.
46938
46939 2007-01-31  Bruno Haible  <bruno@clisp.org>
46940
46941         New module description field 'Link'.
46942         * gnulib-tool (func_usage): Document --extract-link-directive.
46943         (sed_extract_prog): Recognize 'Link' directive.
46944         (func_get_link_directive): New function.
46945         (func_import): Show summary of link directives.
46946         Handle --extract-link-directive option.
46947         * modules/acl (Link): New section.
46948         * modules/clock-time (Link): New section.
46949         * modules/euidaccess (Link): New section.
46950         * modules/gettext (Link): New section.
46951         * modules/iconv (Link): New section.
46952         * modules/lock (Link): New section.
46953         * modules/nanosleep (Link): New section.
46954         * modules/readline (Link): New section.
46955
46956 2007-01-27  Bruno Haible  <bruno@clisp.org>
46957
46958         Enforce the use of gnulib modules for unportable <string.h> functions.
46959         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46960         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46961         (gl_HEADER_STRING_H_BODY): Require it.
46962         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46963         the symbol XYZ to one that gives a link error.
46964         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46965         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46966         * modules/mempcpy (configure.ac): Likewise.
46967         * modules/memrchr (configure.ac): Likewise.
46968         * modules/stpcpy (configure.ac): Likewise.
46969         * modules/stpncpy (configure.ac): Likewise.
46970         * modules/strcase (configure.ac): Likewise.
46971         * modules/strcasestr (configure.ac): Likewise.
46972         * modules/strchrnul (configure.ac): Likewise.
46973         * modules/strdup (configure.ac): Likewise.
46974         * modules/strndup (configure.ac): Likewise.
46975         * modules/strnlen (configure.ac): Likewise.
46976         * modules/strpbrk (configure.ac): Likewise.
46977         * modules/strsep (configure.ac): Likewise.
46978         * modules/strstr (configure.ac): Likewise.
46979         * modules/strtok_r (configure.ac): Likewise.
46980
46981 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46982
46983         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46984
46985 2007-01-30  Jim Meyering  <jim@meyering.net>
46986
46987         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46988
46989 2007-01-29  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46992         * lib/execute.c: Likewise.
46993         * lib/pipe.c: Likewise.
46994         * lib/printf-args.h: Likewise.
46995         * lib/printf-args.c: Likewise.
46996         * lib/printf-parse.c: Likewise.
46997         * lib/vasnprintf.c: Likewise.
46998
46999 2007-01-29  Eric Blake  <ebb9@byu.net>
47000
47001         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
47002         declaration.
47003
47004 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
47005
47006         * lib/strptime.h (strptime): Use 'restrict' for args where
47007         POSIX requires this.
47008         * lib/strptime.c (strptime): Likewise.
47009         Change license notice from LGPL to GPL, since gnulib-tool will
47010         change this as needed.
47011         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
47012         defined.
47013         Include "strptime.h" first, to check interface.
47014         Do not #undef _LIBC and _NL_CURRENT.
47015         Do not include <stdlib.h>; no longer needed.
47016         Include "time_r.h" and declare ptime_locale_status
47017         only if _LIBC is not defined.
47018         (__P): Remove unused macro.
47019         (match_string): Bring back glibc version, but use it only if _LIBC
47020         is defined.
47021         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
47022         Remove unnecessary assertion and abort() call.
47023         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
47024         * m4/strptime.m4: Fix serial number comment.
47025         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
47026         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
47027         (Depends-on): Add time_r.
47028
47029 2007-01-29  Bruno Haible  <bruno@clisp.org>
47030
47031         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47032         strptime.
47033         * modules/strptime (Depends-on): Add stdbool.
47034         * lib/strptime.h: Include <time.h> always. Add comments.
47035
47036 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47037
47038         * modules/strptime: New file.
47039         * lib/strptime.h: New file.
47040         * lib/strptime.c: New file.
47041         * m4/strptime.m4: New file.
47042
47043 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
47044
47045         * MODULES.html.sh: New module mpsort.
47046         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
47047
47048         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
47049         a circularity problem with HP-UX ia64 reported by Bob Proulx in
47050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
47051         All uses changed.
47052         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
47053         All uses changed.
47054         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
47055         to _Restrict_.
47056         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
47057         the parameter matches the prototype.
47058
47059 2007-01-28  Jim Meyering  <jim@meyering.net>
47060
47061         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
47062         sys/time.h here, reverting that part of the previous patch:
47063         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
47064
47065 2007-01-28  Bruno Haible  <bruno@clisp.org>
47066
47067         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
47068         value of $(SYS_TIME_H).
47069         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
47070         remove it conditionally, too. [added by Jim Meyering]
47071         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
47072         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47073         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
47074         GETTIMEOFDAY_REPLACEMENT to 1.
47075
47076 2007-01-28  Bruno Haible  <bruno@clisp.org>
47077
47078         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
47079         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
47080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
47081         Set UNISTD_H instead of UNISTD_H2.
47082         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
47083
47084 2007-01-28  Bruno Haible  <bruno@clisp.org>
47085
47086         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
47087         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
47088
47089 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47090
47091         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
47092         (func_create_testdir): Ensure C locale for `grep' and `tr'
47093         character ranges.
47094         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
47095         ACLOCAL_AMFLAGS parsing state machine.
47096
47097 2007-01-27  Bruno Haible  <bruno@clisp.org>
47098
47099         * modules/unistr/base: Update.
47100
47101 2007-01-27  Bruno Haible  <bruno@clisp.org>
47102
47103         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
47104         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
47105         * modules/unistr/u32-mbtouc-unsafe: Renamed from
47106         modules/unistr/u32-mbtouc.
47107         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
47108         * lib/unistr.h: Update.
47109         * lib/linebreak.c: Update.
47110         * modules/unistr/u32-mbtouc: Renamed from
47111         modules/unistr/u32-mbtouc-safe.
47112         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
47113         * lib/unistr.h: Update.
47114         * lib/unistr/u32-to-u8.c: Update.
47115         * lib/unistr/u32-to-u16.c: Update.
47116
47117 2007-01-27  Bruno Haible  <bruno@clisp.org>
47118
47119         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
47120         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
47121         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
47122         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
47123         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
47124         * modules/unistr/u16-mbtouc-unsafe: Renamed from
47125         modules/unistr/u16-mbtouc.
47126         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
47127         * lib/unistr.h: Update.
47128         * lib/linebreak.c: Update.
47129         * modules/linebreak: Update.
47130         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
47131         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
47132         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
47133         * modules/unistr/u16-mbtouc: Renamed from
47134         modules/unistr/u16-mbtouc-safe.
47135         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
47136         * lib/unistr.h: Update.
47137         * lib/unistr/u16-to-u8.c: Update.
47138         * modules/unistr/u16-to-u8: Update.
47139         * lib/unistr/u16-to-u32.c: Update.
47140         * modules/unistr/u16-to-u32: Update.
47141
47142 2007-01-27  Bruno Haible  <bruno@clisp.org>
47143
47144         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
47145         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
47146         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
47147         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
47148         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
47149         * modules/unistr/u8-mbtouc-unsafe: Renamed from
47150         modules/unistr/u8-mbtouc.
47151         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
47152         * lib/unistr.h: Update.
47153         * lib/striconveh.c: Update.
47154         * modules/striconveh: Update.
47155         * lib/linebreak.c: Update.
47156         * modules/linebreak: Update.
47157         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
47158         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
47159         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
47160         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
47161         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
47162         * lib/unistr.h: Update.
47163         * lib/striconveh.c: Update.
47164         * modules/striconveh: Update.
47165         * lib/unistr/u8-to-u16.c: Update.
47166         * modules/unistr/u8-to-u16: Update.
47167         * lib/unistr/u8-to-u32.c: Update.
47168         * modules/unistr/u8-to-u32: Update.
47169
47170 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47171
47172         Sync from Libtool.
47173         * lib/argz.c: Do not include strings.h nor memory.h, include
47174         string.h unconditionally.  Patch by Simon Josefsson.
47175
47176 2007-01-27  Bruno Haible  <bruno@clisp.org>
47177
47178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
47179         from gl_HEADER_STRING_H_BODY.
47180         (gl_HEADER_STRING_H_BODY): Require it.
47181         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
47182         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47183         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47184         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47186         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
47187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47188         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47189         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
47190         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47191         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47192         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
47193         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47194         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47195         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47196
47197 2007-01-27  Bruno Haible  <bruno@clisp.org>
47198
47199         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
47200         check_PROGRAMS into noinst_PROGRAMS.
47201         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
47202         check_PROGRAMS in this case.
47203         (func_import): Set for_test to false.
47204         (func_create_testdir): Set for_test to true.
47205
47206 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47207             Bruno Haible  <bruno@clisp.org>
47208
47209         * modules/strcasestr (Files): Remove lib/strcasestr.h.
47210         (Depends-on): Add string.
47211         (Includes): Use <string.h> instead of strcasestr.h.
47212         * modules/string (Makefile.am): Also substitute the value of
47213         REPLACE_STRCASESTR.
47214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
47215         assume strcasestr is declared in <string.h> not <strings.h>. Also
47216         set REPLACE_STRCASESTR.
47217         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
47218         REPLACE_STRCASESTR.
47219         * lib/strcasestr.h: Remove file.
47220         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
47221         * lib/string_.h (strcasestr): New declaration.
47222
47223 2007-01-27  Bruno Haible  <bruno@clisp.org>
47224
47225         * lib/string_.h: Use 'extern'.
47226
47227 2007-01-27  Jim Meyering  <jim@meyering.net>
47228
47229         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
47230         of set-but-not-used local, "q".
47231
47232         * lib/mempcpy.c: Include <config.h> before <string.h>.
47233         This fixes a compilation error on HP-UX, due to the system's
47234         "restrict"-using mempcpy prototype.
47235
47236 2007-01-26  Bruno Haible  <bruno@clisp.org>
47237
47238         Small optimization.
47239         * lib/javacomp.c: Include c-strstr.h.
47240          (is_envjavac_gcj): Use c_strstr instead of strstr.
47241         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
47242
47243 2007-01-26  Bruno Haible  <bruno@clisp.org>
47244
47245         * MODULES.html.sh (Unicode string functions): Add the new modules.
47246
47247         * modules/uniconv/u32-strconv-to-locale: New file.
47248         * lib/uniconv/u32-strconv-to-locale.c: New file.
47249
47250         * modules/uniconv/u16-strconv-to-locale: New file.
47251         * lib/uniconv/u16-strconv-to-locale.c: New file.
47252
47253         * modules/uniconv/u8-strconv-to-locale: New file.
47254         * lib/uniconv/u8-strconv-to-locale.c: New file.
47255
47256         * modules/uniconv/u32-strconv-from-locale: New file.
47257         * lib/uniconv/u32-strconv-from-locale.c: New file.
47258
47259         * modules/uniconv/u16-strconv-from-locale: New file.
47260         * lib/uniconv/u16-strconv-from-locale.c: New file.
47261
47262         * modules/uniconv/u8-strconv-from-locale: New file.
47263         * lib/uniconv/u8-strconv-from-locale.c: New file.
47264
47265         * modules/uniconv/u32-strconv-to-enc: New file.
47266         * lib/uniconv/u32-strconv-to-enc.c: New file.
47267         * modules/uniconv/u32-strconv-to-enc-tests: New file.
47268         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
47269
47270         * modules/uniconv/u16-strconv-to-enc: New file.
47271         * lib/uniconv/u16-strconv-to-enc.c: New file.
47272         * lib/uniconv/u-strconv-to-enc.h: New file.
47273         * modules/uniconv/u16-strconv-to-enc-tests: New file.
47274         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
47275
47276         * modules/uniconv/u8-strconv-to-enc: New file.
47277         * lib/uniconv/u8-strconv-to-enc.c: New file.
47278         * modules/uniconv/u8-strconv-to-enc-tests: New file.
47279         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
47280
47281         * modules/uniconv/u32-strconv-from-enc: New file.
47282         * lib/uniconv/u32-strconv-from-enc.c: New file.
47283         * modules/uniconv/u32-strconv-from-enc-tests: New file.
47284         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
47285
47286         * modules/uniconv/u16-strconv-from-enc: New file.
47287         * lib/uniconv/u16-strconv-from-enc.c: New file.
47288         * modules/uniconv/u16-strconv-from-enc-tests: New file.
47289         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
47290
47291         * modules/uniconv/u8-strconv-from-enc: New file.
47292         * lib/uniconv/u8-strconv-from-enc.c: New file.
47293         * lib/uniconv/u-strconv-from-enc.h: New file.
47294         * modules/uniconv/u8-strconv-from-enc-tests: New file.
47295         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
47296
47297         * modules/uniconv/u32-conv-from-enc: New file.
47298         * lib/uniconv/u32-conv-from-enc.c: New file.
47299         * modules/uniconv/u32-conv-from-enc-tests: New file.
47300         * tests/uniconv/test-u32-conv-from-enc.c: New file.
47301
47302         * modules/uniconv/u16-conv-from-enc: New file.
47303         * lib/uniconv/u16-conv-from-enc.c: New file.
47304         * lib/uniconv/u-conv-from-enc.h: New file.
47305         * modules/uniconv/u16-conv-from-enc-tests: New file.
47306         * tests/uniconv/test-u16-conv-from-enc.c: New file.
47307
47308         * modules/uniconv/u8-conv-from-enc: New file.
47309         * lib/uniconv/u8-conv-from-enc.c: New file.
47310         * modules/uniconv/u8-conv-from-enc-tests: New file.
47311         * tests/uniconv/test-u8-conv-from-enc.c: New file.
47312
47313         * modules/uniconv/base: New file.
47314         * lib/uniconv.h: New file.
47315
47316 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47317
47318         * doc/gnulib-tool.texi (Initial import): Update to match current
47319         behavior with strdup module.
47320         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
47321         * lib/memmem.h: Remove; all uses removed.  This is now done
47322         by <string.h>.
47323         * lib/mempcpy.h: Likewise.
47324         * lib/memrchr.h: Likewise.
47325         * lib/stpcpy.h: Likewise.
47326         * lib/stpncpy.h: Likewise.
47327         * lib/strcase.h: Likewise.
47328         * lib/strchrnul.h: Likewise.
47329         * lib/strdup.h: Likewise.
47330         * lib/strndup.h: Likewise.
47331         * lib/strnlen.h: Likewise.
47332         * lib/strpbrk.h: Likewise.
47333         * lib/strsep.h: Likewise.
47334         * lib/strstr.h: Likewise.
47335         * lib/strtok_r.h: Likewise.
47336         * lib/string_.h: New file.
47337         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
47338         Rely on <string.h> instead.
47339         * lib/canon-host.c: Likewise.
47340         * lib/chdir-long.c: Likewise.
47341         * lib/concatpath.c: Likewise.
47342         * lib/exclude.c: Likewise.
47343         * lib/fchdir.c: Likewise.
47344         * lib/getaddrinfo.c: Likewise.
47345         * lib/getcwd.c: Likewise.
47346         * lib/getsubopt.c: Likewise.
47347         * lib/glob.c: Likewise.
47348         * lib/hard-locale.c: Likewise.
47349         * lib/iconvme.c: Likewise.
47350         * lib/javacomp.c: Likewise.
47351         * lib/mempcpy.c: Likewise.
47352         * lib/memrchr.c: Likewise.
47353         * lib/regex_internal.h: Likewise.
47354         * lib/stpncpy.c: Likewise.
47355         * lib/strcasecmp.c: Likewise.
47356         * lib/strchrnul.c: Likewise.
47357         * lib/strdup.c: Likewise.
47358         * lib/striconv.c: Likewise.
47359         * lib/striconveh.c: Likewise.
47360         * lib/striconveha.c: Likewise.
47361         * lib/strncasecmp.c: Likewise.
47362         * lib/strndup.c: Likewise.
47363         * lib/strnlen.c: Likewise.
47364         * lib/strsep.c: Likewise.
47365         * lib/strstr.c: Likewise.
47366         * lib/strtok_r.c: Likewise.
47367         * lib/userspec.c: Likewise.
47368         * lib/w32spawn.h: Likewise.
47369         * lib/xstrndup.c: Likewise.
47370         * lib/mountlist.c (strstr): Remove decl.
47371         * m4/string_h.m4: New file.
47372         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
47373         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
47374         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
47375         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
47376         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
47377         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
47378         Set REPLACE_STRCASECMP if necessary.
47379         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
47380         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
47381         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
47382         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
47383         HAVE_DECL_STRDUP if necessary.
47384         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
47385         since gl_FUNC_STRNDUP does that now.
47386         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
47387         Check for decl here...
47388         (gl_PREREQ_STRNLEN): ... not here.
47389         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
47390         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
47391         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
47392         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
47393         necessary.
47394         * modules/string: New file.
47395         * modules/memmem (Files): Remove special-purpose include file.
47396         (Depends-on): Add string.
47397         (Include): Include <string.h>, not the removed file.
47398         * modules/mempcpy: Likewise.
47399         * modules/memrchr: Likewise.
47400         * modules/stpcpy: Likewise.
47401         * modules/stpncpy: Likewise.
47402         * modules/strcase: Likewise.
47403         * modules/strchrnul: Likewise.
47404         * modules/strdup: Likewise.
47405         * modules/strndup: Likewise.
47406         * modules/strnlen: Likewise.
47407         * modules/strpbrk: Likewise.
47408         * modules/strsep: Likewise.
47409         * modules/strstr: Likewise.
47410         * modules/strtok_r: Likewise.
47411         * tests/test-dirname.c: Don't include "strdup.h", since
47412         <string.h> now suffices.
47413         * tests/test-memmem.c: Don't include "memmem.h", since
47414         <string.h> now suffices.
47415
47416 2007-01-25  Bruno Haible  <bruno@clisp.org>
47417
47418         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47419         *resultp is 0.
47420
47421         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47422         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47423         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47424         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47425
47426         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47427         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47428         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47429         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47430         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47431         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47432
47433 2007-01-24  Bruno Haible  <bruno@clisp.org>
47434
47435         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47436         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47437         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47438         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47439         gl_FUNC_FTS_CORE.
47440         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47441         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47442         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47443         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47444         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47445         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47446         gl_FUNC_FCHOWNAT.
47447         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47448         gl_FUNC_STRFTIME.
47449         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47450         Reported by Ralf Wildenhues.
47451
47452 2007-01-24  Bruno Haible  <bruno@clisp.org>
47453
47454         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47455         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47456         gl_GETADDRINFO.
47457         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47458         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47459         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47460
47461 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47462
47463         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47464         Don't use 'exit'; just return from 'main'.
47465         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47466
47467         * lib/fnmatch_.h: Readjust white space and comments to match
47468         glibc, to avoid spurious diffs.
47469
47470 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47471
47472         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47473         2004-12-01 change by Jakub Jelinek, since this code won't compile
47474         if !LIBC.  Problem reported by Bob Proulx.
47475
47476 2007-01-23  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/striconveh.c: Include c-strcaseeq.h.
47479         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47480         * modules/striconveh (Depends-on): Add c-strcaseeq.
47481
47482 2007-01-23  Bruno Haible  <bruno@clisp.org>
47483
47484         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47485
47486         * modules/c-strcaseeq: New file.
47487         * lib/c-strcaseeq.h: New file.
47488
47489         * modules/streq: New file.
47490         * lib/streq.h: New file.
47491
47492 2007-01-23  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/striconveha-tests: New file.
47495         * tests/test-striconveha.c: New file.
47496
47497         * lib/striconveha.h: Include <stdbool.h>.
47498         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47499         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47500         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47501         (mem_iconveha): New function.
47502         (str_iconveha_notranslit): Renamed from str_iconveha.
47503         (str_iconveha): New function.
47504         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47505         c-strcase.
47506
47507 2007-01-23  Bruno Haible  <bruno@clisp.org>
47508
47509         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47510         encodings without forgiving before trying any encoding with handler.
47511         (str_iconveha): Try all encodings without forgiving before trying any
47512         encoding with handler.
47513
47514 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47515
47516         Import the following changes from libc.
47517
47518         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47519
47520         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47521
47522         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47523
47524         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47525         normal_bracket label.
47526
47527         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47528
47529         [BZ #361]
47530         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47531         to normal_bracket after fetching the next character.
47532
47533 2007-01-22  Bruno Haible  <bruno@clisp.org>
47534
47535         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47536         argument.
47537         * lib/striconveh.c (iconv_carefully_1): New function.
47538         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47539         argument.
47540         (str_cd_iconveh): Update.
47541         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47542         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47543         * tests/test-striconveh.c (MAGIC): New macro.
47544         (new_offsets): New function.
47545         (main): Test call with and without offsets.
47546
47547 2007-01-22  Bruno Haible  <bruno@clisp.org>
47548
47549         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47550         * modules/sys_select (Makefile.am): Likewise.
47551         * modules/sys_socket (Makefile.am): Likewise.
47552         * modules/sys_time (Makefile.am): Likewise.
47553
47554 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47555
47556         * modules/gettimeofday (License): Change from GPL to LGPL, since
47557         gettimeofday is a library function.
47558
47559 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47560
47561         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47562
47563 2007-01-21  Bruno Haible  <bruno@clisp.org>
47564
47565         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47566
47567 2007-01-21  Bruno Haible  <bruno@clisp.org>
47568
47569         * modules/striconveha: New file.
47570         * lib/striconveha.h: New file.
47571         * lib/striconveha.c: New file.
47572         * MODULES.html.sh (Internationalization functions): Add striconveha.
47573         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47574         string.
47575         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47576
47577 2007-01-21  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47580         * lib/striconveh.c (str_iconveh): Likewise.
47581
47582 2007-01-21  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/striconveh.h (mem_iconveh): New declaration.
47585         * lib/striconveh.c (mem_iconveh): New function.
47586         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47587
47588 2007-01-21  Bruno Haible  <bruno@clisp.org>
47589
47590         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47591
47592         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47593         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47594         original result buffer.
47595         (str_cd_iconveh): Update.
47596         * tests/test-striconveh.c (main): Update.
47597
47598         * lib/striconv.h (mem_cd_iconv): Change specification.
47599         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47600         result buffer.
47601         (str_cd_iconv): Update.
47602         * tests/test-striconv.c (main): Update.
47603
47604 2007-01-21  Bruno Haible  <bruno@clisp.org>
47605
47606         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47607
47608 2007-01-20  Jim Meyering  <jim@meyering.net>
47609
47610         * lib/userspec.c (parse_with_separator): If a user or group string
47611         starts with "+", skip the corresponding name-to-ID look-up, since
47612         such a look-up must fail: user and group names may not include "+".
47613
47614 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47615
47616         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47617         since we now assume the sys_time module.
47618         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47619         check for sys/time.h; no longer needed.
47620         * modules/poll (Depends-on): Depend on sys_time.
47621
47622 2007-01-18  Bruno Haible  <bruno@clisp.org>
47623
47624         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47625         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47626
47627         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47628         gettimeofday.
47629
47630         * tests/test-gettimeofday.c: Include <time.h>.
47631         (dummy): Remove variable.
47632
47633         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47634         gl_HEADER_SYS_TIME_H.
47635         (gl_HEADER_SYS_TIME_H): New macro.
47636
47637         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47638         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47639         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47640         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47641         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47642         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47643         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47644         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47645         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47646         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47647         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47648
47649         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47650         last change; it caused a compilation error when cross-compiling to
47651         Cygwin.
47652
47653 2007-01-18  Jim Meyering  <jim@meyering.net>
47654
47655         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47656         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47657         than the race-prone "test -d sys || mkdir sys".
47658         (configure.ac): Use AC_PROG_MKDIR_P.
47659         * modules/sys_select: Likewise.
47660         * modules/sys_socket: Likewise.
47661         * modules/sys_time: Likewise.
47662
47663 2007-01-18  Eric Blake  <ebb9@byu.net>
47664
47665         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47666         replace gettimeofday.
47667         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47668         name, to avoid infinite recursion.
47669
47670 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47671
47672         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47673         module sys_time.
47674         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
47675         assume timespec.h defines struct timeval.
47676         * lib/settime.c: Likewise.
47677         * lib/utimens.c: Likewise.
47678         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
47679         since we now assume the gettimeofday module.
47680         * lib/tempname.c (__gen_tempname): Likewise.
47681         * lib/gettimeofday.h: Remove.
47682         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
47683         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
47684         Include <time.h>, for 'time()'.
47685         (localtime_buffer_addr): Also use this workaround if
47686         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
47687         to simplify the uses.  All uses changed.
47688         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
47689         that #undef is inside {}, and 'const' follows type name consistently.
47690         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
47691         (gettimeofday): Do not use the maximum possible value for
47692         tv->tv_usec, since that might break usages other than ls.c.
47693         Instead, we'll leave ls.c alone.  This undoes today's patch
47694         by Bruno.  Add a compile-time warning for 1s-clock resolution;
47695         we've never observed the problem but might as well keep the
47696         canary.
47697         * lib/nanosleep.c: Include timespec.h first, for interface check.
47698         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
47699         now assume the sys_time module.
47700         * lib/tempname.c: Likewise.
47701         * lib/timespec.h: Likewise.
47702         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
47703         needed.
47704         * lib/strftime.c: Likewise.
47705         * lib/timespec.h: Likewise.
47706         * lib/posixtm.c: Include posixtm.h first, for interface check.
47707         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
47708         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
47709         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
47710         * lib/sys_time_.h: New file.
47711         * lib/timespec.h (struct timespec): Use long int, not long.
47712         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47713         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
47714         Remove obsolescent call to AC_HEADER_TIME.
47715         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47717         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47718         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
47719         Likewise.
47720         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
47721         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
47722         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
47723         into the sys_time module.  Check for gettimeofday just once.
47724         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
47725         for gettimeofday signature to just check the signature.  Merely
47726         compile it, since linking doesn't test signature.  Improve test for
47727         whether gettimeofday.o is actually needed.
47728         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
47729         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
47730         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
47731         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47732         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
47733         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
47734         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
47735         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
47736         than worrying about sys/time.h.
47737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47738         Don't bother worrying about TIME_WITH_SYS_TIME.
47739         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47740         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
47741         * m4/sys_time_h.m4: New file.
47742         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
47743         Don't include sys/time.h.  Return from main rather than exiting.
47744         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
47745         all uses changed.
47746         * modules/gethrxtime (Depends-on): Add sys_time.
47747         * modules/gettime (Depends-on): Likewise.
47748         * modules/gettimeofday (Depends-on): Likewise.
47749         * modules/nanosleep (Depends-on): Likewise.
47750         * modules/settime (Depends-on): Likewise.
47751         * modules/tempname (Depends-on): Likewise.
47752         * modules/utimens (Depends-on): Likewise.
47753         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
47754         (Include:) Change back to <sys/time.h>.
47755         (Maintainer:) Add self.
47756         * modules/sys_time: New file.
47757         * modules/tempname (Depends-on): Add gettimeofday.
47758         * tests/test-gettimeofday.c: Include <sys/time.h>
47759         rather than gettimeofday.h.
47760
47761 2007-01-17  Bruno Haible  <bruno@clisp.org>
47762
47763         * gnulib-tool (func_get_license): Revert last patch. Instead, let
47764         the license default to GPL.
47765         (func_create_testdir): Don't complain if a module is LGPL and its
47766         tests module depends on GPLed modules.
47767
47768 2007-01-17  Bruno Haible  <bruno@clisp.org>
47769
47770         * lib/gettimeofday.c (gettimeofday): Add code for the case
47771         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
47772         maximum possible value for tv->tv_usec, rather than the minimum one.
47773
47774 2005-10-08  Martin Lambers  <marlam@marlam.de>
47775 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47776 2007-01-16  Bruno Haible  <bruno@clisp.org>
47777
47778         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
47779         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
47780         gl_FUNC_GETTIMEOFDAY.
47781         (Include): Add gettimeofday.h.
47782         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
47783         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
47784         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
47785         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
47786         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
47787         * lib/gettimeofday.h: New file.
47788         * lib/gettimeofday.c: Include <sys/timeb.h>.
47789         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
47790         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47791         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
47792         fall back on time().
47793
47794         * tests/test-gettimeofday.c: New file.
47795         * modules/gettimeofday-tests: New file.
47796
47797 2007-01-16  Eric Blake  <ebb9@byu.net>
47798
47799         * modules/fnmatch (Depends-on): Depend on wchar.
47800         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
47801         * m4/fnmatch.m4: Likewise.
47802         * modules/mbchar (Makefile.am): Assume <wchar.h>.
47803         * m4/mbchar.m4: Likewise.
47804         * modules/mbswidth (Depends-on): Depend on wchar.
47805         * lib/mbswidth.c: Assume <wchar.h>.
47806         * m4/mbswidth.m4: Likewise.
47807         * modules/quotearg (Depends-on): Depend on wchar.
47808         * lib/quotearg.c: Assume <wchar.h>.
47809         * m4/quotearg.m4: Likewise.
47810         * modules/regex (Depends-on): Depend on wchar.
47811         * lib/regex_internal.h: Assume <wchar.h>.
47812         * m4/regex.m4: Likewise.
47813         * modules/stdint (Depends-on): Depend on wchar.
47814         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
47815         * m4/stdint.m4: Likewise.
47816         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
47817         * modules/strftime (Depends-on): Depend on wchar.
47818         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
47819         * modules/strtol (Depends-on): Depend on wchar.
47820         * lib/strtol.c: Assume <wchar.h>.
47821         * modules/wcwidth (Depends-on): Depend on wchar.
47822         * lib/wcwidth.h: Assume <wchar.h>.
47823         * m4/wcwidth.m4: Likewise.
47824
47825 2007-01-16  Bruno Haible  <bruno@clisp.org>
47826
47827         * modules/csharpexec-script: New, created from...
47828         * modules/csharpexec: ... this.
47829
47830 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47831
47832         * modules/javaexec-script: New, created from...
47833         * modules/javaexec: ... this.
47834
47835 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47836
47837         * modules/poll (Dependencies): Add sys_select.
47838
47839 2007-01-15  Jim Meyering  <jim@meyering.net>
47840
47841         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47842         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47843         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47844         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47845
47846 2007-01-15  Bruno Haible  <bruno@clisp.org>
47847
47848         * modules/striconveh: New file.
47849         * lib/striconveh.h: New file.
47850         * lib/striconveh.c: New file.
47851         * MODULES.html.sh (Internationalization functions): Add striconveh.
47852
47853         * modules/striconveh-tests: New file.
47854         * tests/test-striconveh.c: New file.
47855
47856 2007-01-15  Bruno Haible  <bruno@clisp.org>
47857
47858         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47859         not from GNU libiconv or GNU libc.
47860
47861 2007-01-15  Bruno Haible  <bruno@clisp.org>
47862
47863         * doc/gnulib-intro.texi (Copyright): Explain the different license
47864         terms for module descriptions, autoconf macros, tests, documentation.
47865
47866 2007-01-14  Bruno Haible  <bruno@clisp.org>
47867
47868         * modules/striconv-tests: New file.
47869         * tests/test-striconv.c: New file.
47870
47871 2007-01-14  Bruno Haible  <bruno@clisp.org>
47872
47873         * modules/iconv-tests: New file.
47874         * tests/test-iconv.c: New file.
47875
47876 2007-01-14  Bruno Haible  <bruno@clisp.org>
47877
47878         * gnulib-tool (func_get_license): For test modules, use the license of
47879         the main module.
47880
47881 2007-01-14  Bruno Haible  <bruno@clisp.org>
47882
47883         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47884         if iconv is found to exist.
47885
47886 2007-01-14  Bruno Haible  <bruno@clisp.org>
47887
47888         * modules/c-ctype-tests: New file.
47889         * tests/test-c-ctype.c: New file.
47890
47891 2007-01-14  Bruno Haible  <bruno@clisp.org>
47892
47893         * modules/binary-io-tests: New file.
47894         * tests/test-binary-io.sh: New file.
47895         * tests/test-binary-io.c: New file.
47896
47897 2007-01-14  Bruno Haible  <bruno@clisp.org>
47898
47899         * modules/array-oset-tests: New file.
47900         * tests/test-array_oset.c: New file.
47901
47902 2007-01-14  Bruno Haible  <bruno@clisp.org>
47903
47904         * modules/array-list-tests: New file.
47905         * tests/test-array_list.c: New file.
47906
47907 2007-01-14  Bruno Haible  <bruno@clisp.org>
47908
47909         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47910         and make.
47911         Reported by Simon Josefsson in
47912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47913
47914 2007-01-14  Bruno Haible  <bruno@clisp.org>
47915
47916         * modules/allocsa-tests: New file.
47917         * tests/test-allocsa.c: New file.
47918
47919 2007-01-14  Bruno Haible  <bruno@clisp.org>
47920
47921         * modules/fchdir (Depends-on): Add absolute-header.
47922         * modules/unistd (Depends-on): Likewise.
47923
47924 2006-12-30  Bruno Haible  <bruno@clisp.org>
47925
47926         * modules/fchdir: New file.
47927         * modules/unistd (Files): Add lib/unistd_.h.
47928         (Makefile.am): Generate unistd.h from unistd_.h.
47929         * lib/fchdir.c: New file.
47930         * lib/dirent_.h: New file.
47931         * lib/unistd_.h: New file.
47932         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47933         * m4/fchdir.m4: New file.
47934         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47935         (gl_HEADER_UNISTD): Invoke it.
47936         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47937         function.
47938         * lib/backupfile.c (opendir, closedir): Undefine.
47939         * lib/chown.c (open, close): Undefine.
47940         * lib/clean-temp.c (open, close): Undefine.
47941         * lib/copy-file.c (open, close): Undefine.
47942         * lib/execute.c (open, close): Undefine.
47943         * lib/fsusage.c (open, close): Undefine.
47944         * lib/gc-gnulib.c (open, close): Undefine.
47945         * lib/getcwd.c (opendir, closedir): Undefine.
47946         * lib/glob.c (opendir, closedir): Undefine.
47947         * lib/javacomp.c (open, close): Undefine.
47948         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47949         * lib/openat-proc.c (open, close): Undefine.
47950         * lib/pagealign_alloc.c (open, close): Undefine.
47951         * lib/pipe.c (open, close): Undefine.
47952         * lib/progreloc.c (open, close): Undefine.
47953         * lib/savedir.c (opendir, closedir): Undefine.
47954         * lib/utime.c (open, close): Undefine.
47955         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47956
47957 2007-01-10  Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47960
47961 2007-01-12  Eric Blake  <ebb9@byu.net>
47962
47963         Provide a robust <wchar.h>.  Further simplifications are now
47964         possible in other modules, but not included here.
47965         * modules/wchar: New module.
47966         * m4/wchar.m4: New file.
47967         * lib/wchar_.h: Likewise.
47968         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47969         of the new module.
47970         * MODULES.html.sh (Extended multibyte and wide character utilities):
47971         New section.
47972
47973 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47974
47975         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47976         to a reasonable default for memory allocation.
47977         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47978         file system that reports garbage st_size values for symlinks.
47979         Problem reported by Liyang Hu.
47980
47981 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47982
47983         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47984         Emacs .#* auto-save files).
47985
47986 2007-01-11  Bruno Haible  <bruno@clisp.org>
47987
47988         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47989         directory.
47990
47991 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47992
47993         Use @...@ consistently in lib/wctype_.h.
47994         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47995         on it being set to 1 or 0.
47996         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47997         go back to AC_SUBSTing it.
47998         * modules/wctype (Makefile.am): Undo previous change.
47999
48000 2007-01-10  Eric Blake  <ebb9@byu.net>
48001
48002         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
48003         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
48004         * modules/wctype (Makefile.am): Likewise.
48005         Reported by Chris McGuire.
48006
48007 2007-01-10  Jim Meyering  <jim@meyering.net>
48008
48009         fts.c: a small readability/maintainability improvement
48010         * lib/fts.c (fts_read): Make this code slightly more readable and
48011         maintainable by hoisting the "sp->fts_cur = p" assignments to
48012         immediately follow the statements that set P.  Derived from
48013         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
48014
48015 2007-01-10  Eric Blake  <ebb9@byu.net>
48016
48017         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
48018         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
48019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48020         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48021         Reported by Chris McGuire.
48022
48023 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48024
48025         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
48026         in sed script.
48027
48028 2007-01-09  Bruno Haible  <bruno@clisp.org>
48029
48030         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
48031         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
48032         variables.
48033         (func_module): Use them.
48034
48035 2007-01-09  Bruno Haible  <bruno@clisp.org>
48036
48037         * modules/unistr/base: New file.
48038         * lib/unistr.h: New file.
48039
48040         * modules/unistr/u8-to-u16: New file.
48041         * lib/unistr/u8-to-u16.c: New file.
48042
48043         * modules/unistr/u8-to-u32: New file.
48044         * lib/unistr/u8-to-u32.c: New file.
48045
48046         * modules/unistr/u16-to-u8: New file.
48047         * lib/unistr/u16-to-u8.c: New file.
48048
48049         * modules/unistr/u16-to-u32: New file.
48050         * lib/unistr/u16-to-u32.c: New file.
48051
48052         * modules/unistr/u32-to-u8: New file.
48053         * lib/unistr/u32-to-u8.c: New file.
48054
48055         * modules/unistr/u32-to-u16: New file.
48056         * lib/unistr/u32-to-u16.c: New file.
48057
48058         * modules/unistr/u8-check: New file.
48059         * modules/unistr/u16-check: New file.
48060         * modules/unistr/u32-check: New file.
48061         * lib/unistr/u8-check.c: New file.
48062         * lib/unistr/u16-check.c: New file.
48063         * lib/unistr/u32-check.c: New file.
48064
48065         * modules/unistr/u8-chr: New file.
48066         * modules/unistr/u16-chr: New file.
48067         * modules/unistr/u32-chr: New file.
48068         * lib/unistr/u8-chr.c: New file.
48069         * lib/unistr/u16-chr.c: New file.
48070         * lib/unistr/u32-chr.c: New file.
48071
48072         * modules/unistr/u8-cmp: New file.
48073         * modules/unistr/u16-cmp: New file.
48074         * modules/unistr/u32-cmp: New file.
48075         * lib/unistr/u8-cmp.c: New file.
48076         * lib/unistr/u16-cmp.c: New file.
48077         * lib/unistr/u32-cmp.c: New file.
48078
48079         * modules/unistr/u8-cpy: New file.
48080         * modules/unistr/u16-cpy: New file.
48081         * modules/unistr/u32-cpy: New file.
48082         * lib/unistr/u8-cpy.c: New file.
48083         * lib/unistr/u16-cpy.c: New file.
48084         * lib/unistr/u32-cpy.c: New file.
48085         * lib/unistr/u-cpy.h: New file.
48086
48087         * modules/unistr/u8-cpy-alloc: New file.
48088         * modules/unistr/u16-cpy-alloc: New file.
48089         * modules/unistr/u32-cpy-alloc: New file.
48090         * lib/unistr/u8-cpy-alloc.c: New file.
48091         * lib/unistr/u16-cpy-alloc.c: New file.
48092         * lib/unistr/u32-cpy-alloc.c: New file.
48093         * lib/unistr/u-cpy-alloc.h: New file.
48094
48095         * modules/unistr/u8-endswith: New file.
48096         * modules/unistr/u16-endswith: New file.
48097         * modules/unistr/u32-endswith: New file.
48098         * lib/unistr/u8-endswith.c: New file.
48099         * lib/unistr/u16-endswith.c: New file.
48100         * lib/unistr/u32-endswith.c: New file.
48101         * lib/unistr/u-endswith.h: New file.
48102
48103         * modules/unistr/u8-mblen: New file.
48104         * modules/unistr/u16-mblen: New file.
48105         * modules/unistr/u32-mblen: New file.
48106         * lib/unistr/u8-mblen.c: New file.
48107         * lib/unistr/u16-mblen.c: New file.
48108         * lib/unistr/u32-mblen.c: New file.
48109
48110         * modules/unistr/u8-mbtouc: New file.
48111         * modules/unistr/u16-mbtouc: New file.
48112         * modules/unistr/u32-mbtouc: New file.
48113         * lib/unistr/u8-mbtouc.c: New file.
48114         * lib/unistr/u16-mbtouc.c: New file.
48115         * lib/unistr/u32-mbtouc.c: New file.
48116
48117         * modules/unistr/u8-mbtouc-safe: New file.
48118         * modules/unistr/u16-mbtouc-safe: New file.
48119         * modules/unistr/u32-mbtouc-safe: New file.
48120         * lib/unistr/u8-mbtouc-safe.c: New file.
48121         * lib/unistr/u16-mbtouc-safe.c: New file.
48122         * lib/unistr/u32-mbtouc-safe.c: New file.
48123
48124         * modules/unistr/u8-move: New file.
48125         * modules/unistr/u16-move: New file.
48126         * modules/unistr/u32-move: New file.
48127         * lib/unistr/u8-move.c: New file.
48128         * lib/unistr/u16-move.c: New file.
48129         * lib/unistr/u32-move.c: New file.
48130         * lib/unistr/u-move.h: New file.
48131
48132         * modules/unistr/u8-next: New file.
48133         * modules/unistr/u16-next: New file.
48134         * modules/unistr/u32-next: New file.
48135         * lib/unistr/u8-next.c: New file.
48136         * lib/unistr/u16-next.c: New file.
48137         * lib/unistr/u32-next.c: New file.
48138
48139         * modules/unistr/u8-prev: New file.
48140         * modules/unistr/u16-prev: New file.
48141         * modules/unistr/u32-prev: New file.
48142         * lib/unistr/u8-prev.c: New file.
48143         * lib/unistr/u16-prev.c: New file.
48144         * lib/unistr/u32-prev.c: New file.
48145
48146         * modules/unistr/u8-set: New file.
48147         * modules/unistr/u16-set: New file.
48148         * modules/unistr/u32-set: New file.
48149         * lib/unistr/u8-set.c: New file.
48150         * lib/unistr/u16-set.c: New file.
48151         * lib/unistr/u32-set.c: New file.
48152         * lib/unistr/u-set.h: New file.
48153
48154         * modules/unistr/u8-startswith: New file.
48155         * modules/unistr/u16-startswith: New file.
48156         * modules/unistr/u32-startswith: New file.
48157         * lib/unistr/u8-startswith.c: New file.
48158         * lib/unistr/u16-startswith.c: New file.
48159         * lib/unistr/u32-startswith.c: New file.
48160         * lib/unistr/u-startswith.h: New file.
48161
48162         * modules/unistr/u8-stpcpy: New file.
48163         * modules/unistr/u16-stpcpy: New file.
48164         * modules/unistr/u32-stpcpy: New file.
48165         * lib/unistr/u8-stpcpy.c: New file.
48166         * lib/unistr/u16-stpcpy.c: New file.
48167         * lib/unistr/u32-stpcpy.c: New file.
48168         * lib/unistr/u-stpcpy.h: New file.
48169
48170         * modules/unistr/u8-stpncpy: New file.
48171         * modules/unistr/u16-stpncpy: New file.
48172         * modules/unistr/u32-stpncpy: New file.
48173         * lib/unistr/u8-stpncpy.c: New file.
48174         * lib/unistr/u16-stpncpy.c: New file.
48175         * lib/unistr/u32-stpncpy.c: New file.
48176         * lib/unistr/u-stpncpy.h: New file.
48177
48178         * modules/unistr/u8-strcat: New file.
48179         * modules/unistr/u16-strcat: New file.
48180         * modules/unistr/u32-strcat: New file.
48181         * lib/unistr/u8-strcat.c: New file.
48182         * lib/unistr/u16-strcat.c: New file.
48183         * lib/unistr/u32-strcat.c: New file.
48184         * lib/unistr/u-strcat.h: New file.
48185
48186         * modules/unistr/u8-strchr: New file.
48187         * modules/unistr/u16-strchr: New file.
48188         * modules/unistr/u32-strchr: New file.
48189         * lib/unistr/u8-strchr.c: New file.
48190         * lib/unistr/u16-strchr.c: New file.
48191         * lib/unistr/u32-strchr.c: New file.
48192
48193         * modules/unistr/u8-strcmp: New file.
48194         * modules/unistr/u16-strcmp: New file.
48195         * modules/unistr/u32-strcmp: New file.
48196         * lib/unistr/u8-strcmp.c: New file.
48197         * lib/unistr/u16-strcmp.c: New file.
48198         * lib/unistr/u32-strcmp.c: New file.
48199
48200         * modules/unistr/u8-strcpy: New file.
48201         * modules/unistr/u16-strcpy: New file.
48202         * modules/unistr/u32-strcpy: New file.
48203         * lib/unistr/u8-strcpy.c: New file.
48204         * lib/unistr/u16-strcpy.c: New file.
48205         * lib/unistr/u32-strcpy.c: New file.
48206         * lib/unistr/u-strcpy.h: New file.
48207
48208         * modules/unistr/u8-strcspn: New file.
48209         * modules/unistr/u16-strcspn: New file.
48210         * modules/unistr/u32-strcspn: New file.
48211         * lib/unistr/u8-strcspn.c: New file.
48212         * lib/unistr/u16-strcspn.c: New file.
48213         * lib/unistr/u32-strcspn.c: New file.
48214         * lib/unistr/u-strcspn.h: New file.
48215
48216         * modules/unistr/u8-strdup: New file.
48217         * modules/unistr/u16-strdup: New file.
48218         * modules/unistr/u32-strdup: New file.
48219         * lib/unistr/u8-strdup.c: New file.
48220         * lib/unistr/u16-strdup.c: New file.
48221         * lib/unistr/u32-strdup.c: New file.
48222         * lib/unistr/u-strdup.h: New file.
48223
48224         * modules/unistr/u8-strlen: New file.
48225         * modules/unistr/u16-strlen: New file.
48226         * modules/unistr/u32-strlen: New file.
48227         * lib/unistr/u8-strlen.c: New file.
48228         * lib/unistr/u16-strlen.c: New file.
48229         * lib/unistr/u32-strlen.c: New file.
48230         * lib/unistr/u-strlen.h: New file.
48231
48232         * modules/unistr/u8-strmblen: New file.
48233         * modules/unistr/u16-strmblen: New file.
48234         * modules/unistr/u32-strmblen: New file.
48235         * lib/unistr/u8-strmblen.c: New file.
48236         * lib/unistr/u16-strmblen.c: New file.
48237         * lib/unistr/u32-strmblen.c: New file.
48238
48239         * modules/unistr/u8-strmbtouc: New file.
48240         * modules/unistr/u16-strmbtouc: New file.
48241         * modules/unistr/u32-strmbtouc: New file.
48242         * lib/unistr/u8-strmbtouc.c: New file.
48243         * lib/unistr/u16-strmbtouc.c: New file.
48244         * lib/unistr/u32-strmbtouc.c: New file.
48245
48246         * modules/unistr/u8-strncat: New file.
48247         * modules/unistr/u16-strncat: New file.
48248         * modules/unistr/u32-strncat: New file.
48249         * lib/unistr/u8-strncat.c: New file.
48250         * lib/unistr/u16-strncat.c: New file.
48251         * lib/unistr/u32-strncat.c: New file.
48252         * lib/unistr/u-strncat.h: New file.
48253
48254         * modules/unistr/u8-strncmp: New file.
48255         * modules/unistr/u16-strncmp: New file.
48256         * modules/unistr/u32-strncmp: New file.
48257         * lib/unistr/u8-strncmp.c: New file.
48258         * lib/unistr/u16-strncmp.c: New file.
48259         * lib/unistr/u32-strncmp.c: New file.
48260
48261         * modules/unistr/u8-strncpy: New file.
48262         * modules/unistr/u16-strncpy: New file.
48263         * modules/unistr/u32-strncpy: New file.
48264         * lib/unistr/u8-strncpy.c: New file.
48265         * lib/unistr/u16-strncpy.c: New file.
48266         * lib/unistr/u32-strncpy.c: New file.
48267         * lib/unistr/u-strncpy.h: New file.
48268
48269         * modules/unistr/u8-strnlen: New file.
48270         * modules/unistr/u16-strnlen: New file.
48271         * modules/unistr/u32-strnlen: New file.
48272         * lib/unistr/u8-strnlen.c: New file.
48273         * lib/unistr/u16-strnlen.c: New file.
48274         * lib/unistr/u32-strnlen.c: New file.
48275         * lib/unistr/u-strnlen.h: New file.
48276
48277         * modules/unistr/u8-strpbrk: New file.
48278         * modules/unistr/u16-strpbrk: New file.
48279         * modules/unistr/u32-strpbrk: New file.
48280         * lib/unistr/u8-strpbrk.c: New file.
48281         * lib/unistr/u16-strpbrk.c: New file.
48282         * lib/unistr/u32-strpbrk.c: New file.
48283         * lib/unistr/u-strpbrk.h: New file.
48284
48285         * modules/unistr/u8-strrchr: New file.
48286         * modules/unistr/u16-strrchr: New file.
48287         * modules/unistr/u32-strrchr: New file.
48288         * lib/unistr/u8-strrchr.c: New file.
48289         * lib/unistr/u16-strrchr.c: New file.
48290         * lib/unistr/u32-strrchr.c: New file.
48291
48292         * modules/unistr/u8-strspn: New file.
48293         * modules/unistr/u16-strspn: New file.
48294         * modules/unistr/u32-strspn: New file.
48295         * lib/unistr/u8-strspn.c: New file.
48296         * lib/unistr/u16-strspn.c: New file.
48297         * lib/unistr/u32-strspn.c: New file.
48298         * lib/unistr/u-strspn.h: New file.
48299
48300         * modules/unistr/u8-strstr: New file.
48301         * modules/unistr/u16-strstr: New file.
48302         * modules/unistr/u32-strstr: New file.
48303         * lib/unistr/u8-strstr.c: New file.
48304         * lib/unistr/u16-strstr.c: New file.
48305         * lib/unistr/u32-strstr.c: New file.
48306         * lib/unistr/u-strstr.h: New file.
48307
48308         * modules/unistr/u8-strtok: New file.
48309         * modules/unistr/u16-strtok: New file.
48310         * modules/unistr/u32-strtok: New file.
48311         * lib/unistr/u8-strtok.c: New file.
48312         * lib/unistr/u16-strtok.c: New file.
48313         * lib/unistr/u32-strtok.c: New file.
48314         * lib/unistr/u-strtok.h: New file.
48315
48316         * modules/unistr/u8-uctomb: New file.
48317         * modules/unistr/u16-uctomb: New file.
48318         * modules/unistr/u32-uctomb: New file.
48319         * lib/unistr/u8-uctomb.c: New file.
48320         * lib/unistr/u16-uctomb.c: New file.
48321         * lib/unistr/u32-uctomb.c: New file.
48322
48323         * MODULES.html.sh (Unicode string functions): Add the new modules.
48324
48325 2007-01-08  Bruno Haible  <bruno@clisp.org>
48326
48327         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
48328         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
48329         subdirectories.
48330
48331 2007-01-08  Karl Berry  <karl@gnu.org>
48332
48333         * doc/error.texi: mention that main() fns must set program_name
48334         when progname is used.
48335
48336 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
48337
48338         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
48339         WCTYPE_H is empty, for the benefit of builds from non-distclean
48340         directories.  Problem reported by Eric Blake in
48341         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
48342
48343 2007-01-08  Bruno Haible  <bruno@clisp.org>
48344
48345         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
48346         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
48347         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
48348         PROVIDE_CANONICALIZE_FILENAME_MODE.
48349         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
48350
48351 2007-01-08  Bruno Haible  <bruno@clisp.org>
48352
48353         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
48354         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
48355         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
48356         * lib/fts.c: Likewise.
48357         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
48358
48359 2006-12-25  Bruno Haible  <bruno@clisp.org>
48360
48361         * modules/utf8-ucs4-safe: New file.
48362         * lib/utf8-ucs4-safe.h: New file.
48363         * lib/unistr/utf8-ucs4-safe.c: New file.
48364
48365         * modules/utf16-ucs4-safe: New file.
48366         * lib/utf16-ucs4-safe.h: New file.
48367         * lib/unistr/utf16-ucs4-safe.c: New file.
48368
48369         * MODULES.html.sh (Unicode string functions): Add the new modules.
48370
48371 2007-01-08  Bruno Haible  <bruno@clisp.org>
48372
48373         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
48374         (Depends-on): Add unitypes.
48375         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48376         (u8_mbtouc_aux): Move out to separate file.
48377         (u8_mbtouc): Use ucs4_t, uint8_t types.
48378         * lib/unistr/utf8-ucs4.c: New file.
48379
48380         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
48381         (Depends-on): Add unitypes.
48382         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48383         (u16_mbtouc_aux): Move out to separate file.
48384         (u16_mbtouc): Use ucs4_t, uint16_t types.
48385         * lib/unistr/utf16-ucs4.c: New file.
48386
48387         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
48388         (Depends-on): Add unitypes.
48389         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
48390         (u8_uctomb_aux): Move out to separate file.
48391         (u8_uctomb): Use ucs4_t, uint8_t types.
48392         * lib/unistr/ucs4-utf8.c: New file.
48393
48394         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48395         (Depends-on): Add unitypes.
48396         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48397         (u16_uctomb_aux): Move out to separate file.
48398         (u16_uctomb): Use ucs4_t, uint16_t types.
48399         * lib/unistr/ucs4-utf16.c: New file.
48400
48401 2006-12-25  Bruno Haible  <bruno@clisp.org>
48402
48403         * modules/unitypes: New file.
48404         * lib/unitypes.h: New file.
48405         * MODULES.html.sh (func_all_modules): New section "Unicode string
48406         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48407         this section. Add unitypes.
48408
48409 2007-01-08  Bruno Haible  <bruno@clisp.org>
48410
48411         Avoid variable names that conflict with those from libtool.
48412         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48413         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48414         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48415         library_names_spec to acl_library_names_spec, hardcode_* to
48416         acl_hardcode_*.
48417         Reported by Ralf Wildenhues.
48418
48419 2007-01-08  Bruno Haible  <bruno@clisp.org>
48420
48421         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48422         definition.
48423         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48424         definition.
48425         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48426         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48427         definition.
48428         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48429         definition.
48430         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48431         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48432         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48433         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48434         definition.
48435         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48436         definition.
48437         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48438         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48439         GC_USE_<algorithm>.
48440         * lib/gc-libgcrypt.c: Likewise.
48441         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48442         * modules/gc-arctwo (configure.ac): Likewise.
48443         * modules/gc-des (configure.ac): Likewise.
48444         * modules/gc-hmac-md5 (configure.ac): Likewise.
48445         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48446         * modules/gc-md2 (configure.ac): Likewise.
48447         * modules/gc-md4 (configure.ac): Likewise.
48448         * modules/gc-md5 (configure.ac): Likewise.
48449         * modules/gc-random (configure.ac): Likewise.
48450         * modules/gc-rijndael (configure.ac): Likewise.
48451         * modules/gc-sha1 (configure.ac): Likewise.
48452
48453 2007-01-08  Bruno Haible  <bruno@clisp.org>
48454
48455         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48456         macro definition.
48457         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48458         definition.
48459         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48460         definition.
48461         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48462         * modules/fcntl-safer (configure.ac): Likewise.
48463         * modules/fopen-safer (configure.ac): Likewise.
48464         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48465         GNULIB_FWRITEERROR macro definition.
48466
48467 2007-01-08  Bruno Haible  <bruno@clisp.org>
48468
48469         * m4/gnulib-common.m4: New file.
48470         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48471         (func_get_filelist): Add m4/gnulib-common.m4.
48472
48473 2007-01-08  Bruno Haible  <bruno@clisp.org>
48474
48475         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48476         command.
48477
48478 2007-01-08  Jim Meyering  <jim@meyering.net>
48479
48480         Use a more robust test for a "can't happen" condition.
48481         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48482         narrowed the st_size value.  Presuming the "can't happen" condition
48483         is true, that narrowing could conceivably convert an invalid st_size
48484         value into a valid one.  Instead, use a change based on Matthew
48485         Woehlke's original patch.
48486
48487         Slight readability improvement: use an assert-like macro
48488         in place of literal "abort ()" uses.
48489         * lib/fts.c (fts_assert): Define.
48490         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48491         Use this macro instead of a bare 'abort'.
48492
48493 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48494
48495         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48496         simply work around them.
48497         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48498         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48499         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48500         declaring.
48501         Don't bother to define as macros, since the standard doesn't require it.
48502         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48503         longer worry about IRIX 5.3.
48504         (HAVE_WCTYPE_CTMP_BUG): Remove.
48505
48506 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48507
48508         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48509         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48510         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48511         Problems reported by Georg Schwarz for IRIX 5.3.
48512
48513         * gnulib-tool (autoconf_minversion): Take the maximum version number
48514         found, not the minimum.  Problem reported by James Youngman.
48515
48516 2007-01-03  Karl Berry  <karl@gnu.org>
48517
48518         * doc/error.texi: new file, explaining interaction with progname.
48519         * doc/gnulib.texi: include it.  Update copyright.
48520
48521 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48522
48523         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48524         AC_CANONICAL_HOST, to improve autobuild outputs.
48525
48526 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48527             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48528
48529         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48530         sockets, server sockets, and other file descriptors.  Count errors
48531         to compute the return value.  Reorder the code a bit to be easier
48532         to follow.  Don't set event bits that were not requested (except
48533         POLLERR and POLLHUP).
48534
48535 2007-01-01  Bruno Haible  <bruno@clisp.org>
48536
48537         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48538
48539 2007-01-03  Jim Meyering  <jim@meyering.net>
48540
48541         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48542
48543 2007-01-02  Bruno Haible  <bruno@clisp.org>
48544
48545         * modules/settime (Include): Require timespec.h.
48546         * modules/nanosleep (Include): Likewise.
48547
48548 2007-01-01  Bruno Haible  <bruno@clisp.org>
48549
48550         * gnulib-tool (func_emit_copyright_notice): Bump year.
48551         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48552
48553 2007-01-01  Bruno Haible  <bruno@clisp.org>
48554
48555         Improve support for OpenBSD.
48556         * build-aux/config.rpath (libname_spec): Export.
48557         (library_names_spec): New variable. Export.
48558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48559         library_names_spec from the config.rpath output. Locate shared library
48560         through the name pattern in library_names_spec.
48561
48562 2007-01-01  Eric Blake  <ebb9@byu.net>
48563
48564         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48565
48566 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48567
48568         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48569         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48570         assume the C locale, and avoid an "eval" that could cause trouble.
48571         Problem with SORT reported by Bob Proulx.
48572
48573         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48574         Define.  Trivial patch from Henning Nielsen Lund, originally
48575         sent to bug-grep@gnu.org today.
48576
48577 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48578
48579         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48580         struct stat.  Problem reported by Henning Nielsen Lund.
48581         * lib/acl.c: Include acl.h first, to check interface.  Don't
48582         bother to include sys/types.h and sys/stat.h again.
48583
48584 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48585
48586         Import the following change from libc; problem reported by
48587         Sven Verdoolaege.
48588
48589         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48590
48591         [BZ #1373]
48592         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48593
48594 2006-12-28  Jim Meyering  <jim@meyering.net>
48595
48596         * build-aux/announce-gen: Do not assume that the package
48597         builds any of tar.gz, tar.bz2, and .xdelta files.
48598         Suggestion from Simon Josefsson.
48599
48600 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48601
48602         * modules/announce-gen: New file.
48603
48604 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48605
48606         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48607         handles its gotchas now.
48608         * lib/mbswidth.c: Likewise.
48609         * lib/wcwidth.h: Likewise.
48610         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48611         and iswcntrl; the wctype module does this stuff now.
48612         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48613         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48614         * modules/mbchar (Depends-on): Add wctype.
48615         * modules/mbswidth (Depends-on): Likewise.
48616         * modules/wcwidth (Depends-on): Likewise.
48617
48618 2006-12-27  Eric Blake  <ebb9@byu.net>
48619
48620         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48621         module uses more than what <wctype.h> is required to provide.
48622
48623 2006-12-26  Eric Blake  <ebb9@byu.net>
48624
48625         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48626
48627 2006-12-26  Eric Blake  <ebb9@byu.net>
48628
48629         * modules/absolute-header: New module.
48630         * modules/fcntl (Depends-on): Depend on it.
48631         * modules/inttypes (Depends-on): Likewise.
48632         * modules/stdint (Depends-on): Likewise.
48633         * modules/sys_stat (Depends-on): Likewise.
48634         * modules/wctype (Depends-on): Likewise.
48635         * MODULES.html.sh (Support for building libraries and
48636         executables): Document it.
48637
48638 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48639
48640         * gnulib-tool (SED): Remove, undoing previous change.
48641         The problem was that it broke coreutils on Solaris, because
48642         "sed --posix" leaked into a makefile.
48643         (sed): New alias, if 'alias' and GNU sed.
48644
48645 2006-12-24  Jim Meyering  <jim@meyering.net>
48646
48647         Work around an fchownat bug in glibc-2.4:
48648         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48649         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48650         in spite of the -P option.
48651         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48652         New macros.
48653         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48654         * modules/openat (Files): Add lib/fchownat.c.
48655         * lib/openat.c (fchownat): Don't define here.  Move to...
48656         * lib/fchownat.c: ...this new file.
48657
48658 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48659
48660         Fix bug reported by Bruno Haible in
48661         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48662         where quotearg.c didn't compile on Mac OS X 10.2 because it
48663         lacks <wchar.h> and wint_t.
48664         * lib/wctype_.h (__wctype_wint_t): New type.
48665         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48666         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48667         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48668         Arg is now of type __wctype_wint_t, not wint_t.
48669         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48670         substitute HAVE_WINT_T.
48671         * modules/wctype (Files): Add m4/wint_t.m4.
48672         (wctype.h): Substitute HAVE_WINT_T.
48673
48674 2006-12-23  Bruno Haible  <bruno@clisp.org>
48675
48676         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
48677
48678 2006-12-23  Bruno Haible  <bruno@clisp.org>
48679
48680         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
48681         S_ISLNK.
48682         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
48683         mingw.
48684
48685 2006-12-22  Bruno Haible  <bruno@clisp.org>
48686
48687         * lib/copy-file.c: Include acl.h.
48688         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
48689         Close the file descriptors only after being done with copy_acl.
48690         * modules/copy-file (Depends-on): Add acl.
48691
48692 2006-12-22  Bruno Haible  <bruno@clisp.org>
48693
48694         * gnulib-tool (SED): New variable.
48695         Use $SED instead of sed everywhere.
48696
48697 2006-12-22  Bruno Haible  <bruno@clisp.org>
48698
48699         * modules/no-c++: New file.
48700         * m4/no-c++.m4: New file.
48701         * MODULES.html.sh (Support for building libraries and executables):
48702         Add no-c++.
48703
48704 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48705
48706         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48707         Include <limits.h>, and use its INT_MAX to rewrite the
48708         j loop so that it does not overflow 'int'.  Problem reported by
48709         Ralf Wildenhues in
48710         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
48711         Play it safe by shifting left by 1 rather than multiplying by 2,
48712         as GCC is less likely to optimize this away when the value
48713         is signed (when it assumes overflow leads to undefined behavior).
48714         Also, don't assume time_t uses two's complement.
48715
48716 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
48717
48718         * MODULES.html.sh: New module wctype.
48719         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
48720         * lib/fnmatch.c: Don't bother to include <wchar.h> before
48721         <wctype.h>, since the new wctype module should fix this.
48722         * lib/quotearg.c: Include <wctype.h> unconditionally, since
48723         the wctype module should arrange for it.
48724         * lib/regex_internal.h: Likewise.
48725         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
48726         since the wctype module should handle this now.
48727         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
48728         * modules/fnmatch (Depends-on): Add wctype.
48729         * modules/quotearg (Depends-on): Likewise.
48730         * modules/regex (Depends-on): Likewise.
48731
48732 2006-12-19  Bruno Haible  <bruno@clisp.org>
48733
48734         * lib/strdup.h [C++]: Wrap definitions in extern "C".
48735         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
48736
48737 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48738
48739         * modules/savewd (Depends-on): Fix dependency on fcntl.
48740
48741 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48742
48743         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
48744         conforms to C99, rather than relying on the user's environment
48745         setting of STDINT_H.
48746
48747 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48748         and Eric Blake  <ebb9@byu.net>
48749
48750         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
48751         This is more consistent with the other defines here.
48752         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
48753         Port to z/OS.  Problem reported by Paul Gilmartin.
48754         Change local vars to use gl_ prefix rather than ac_.
48755         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
48756         with other defines.
48757         * modules/double-slash-root: New module.
48758         * modules/dirname (Files): Remove m4/double-slash-root.m4.
48759         (Depends-on): Add double-slash-root.
48760         * MODULES.html.sh (File system functions): Mention new module.
48761
48762 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
48763
48764         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
48765         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
48766         This is for the benefit of gzip, which doesn't do i18n.
48767
48768 2006-12-12  Jim Meyering  <jim@meyering.net>
48769
48770         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
48771         Reported by Andreas Schwab <schwab@suse.de>.
48772
48773 2006-12-12  Bruno Haible  <bruno@clisp.org>
48774
48775         Merge these changes.
48776         2006-09-05  Bruno Haible  <bruno@clisp.org>
48777         * lib/iconvme.c (iconv_string): No need to save and restore errno when
48778         iconv_alloc succeeded.
48779         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
48780         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
48781         test for " && dest " at the end - dest is always != NULL there. Call
48782         iconv with 4xNULL arguments initially, to reset the state. Call iconv
48783         with 2xNULL arguments, also to flush the state storage. Handle the
48784         IRIX iconv behaviour. Realloc the final result, to throw away unused
48785         memory.
48786
48787 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
48788
48789         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
48790         and fchmodat unconditionally, since glibc 2.4 has them.
48791         Problem reported by Arkadiusz Miskiewicz.
48792
48793 2006-12-10  Bruno Haible  <bruno@clisp.org>
48794
48795         * gnulib-tool (func_import): Show the include files only for those
48796         modules that are copied and specified.
48797         Reported by Karl Berry.
48798
48799 2006-12-08  Jim Meyering  <jim@meyering.net>
48800
48801         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
48802         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
48803
48804         * build-aux/announce-gen: Add two new options, both optional:
48805         --bootstrap-tools=TOOL_LIST
48806               a comma-separated list of tools, e.g.,
48807               autoconf,automake,bison,gnulib
48808         --gnulib-snapshot-date=DATE
48809               if gnulib is in the bootstrap tool list,
48810               then report this as the snapshot date.
48811               If not specified, use the current date/time.
48812               If you specify a date here, be sure it's UTC.
48813
48814 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48815
48816         * tests/test-argp-2.sh: Fix test to match actual output.
48817         (func_compare): Fix sed script to be portable.
48818
48819 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
48820
48821         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
48822         workaround for this case.  It is not autoconfigured now; offhand
48823         it's hard to see how to autoconfigure it.
48824
48825 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48826
48827         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
48828         a directory that is about to be chowned.  Such a directory's
48829         initial file permissions should permit the owner only and this
48830         should not be changed until after the chown, since the group and
48831         other bits would be incorrect if they granted permission before
48832         the chown.
48833
48834         Fix porting problem for iswctype reported by Georg Schwarz in:
48835         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
48836         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
48837         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48838         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48839         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48840
48841 2006-12-03  Jim Meyering  <jim@meyering.net>
48842
48843         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48844         p->fts_statp may not yet be defined.
48845         (fts_read): Instead, set it in the caller, once p->fts_statp is
48846         sure to be defined, and corresponds to a top-level directory.
48847         This bug made du -x fail.  Here's the coreutils test case:
48848         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48849         Reported by Mike Frysinger.
48850
48851 2006-12-01  Jim Meyering  <jim@meyering.net>
48852
48853         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48854         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48855         Reported by Simon Josefsson.
48856
48857 2006-11-30  Jim Meyering  <jim@meyering.net>
48858
48859         * m4/warning.m4: Use the all-permissive copyright notice
48860         recommended by RMS (rather than LGPL).
48861         * m4/vararrays.m4: Likewise.
48862         * m4/flexmember.m4: Likewise.
48863
48864 2006-11-29  Bruno Haible  <bruno@clisp.org>
48865
48866         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48867         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48868         using +=.
48869         Reported by Simon Josefsson <simon@josefsson.org>.
48870
48871 2006-11-28  James Youngman <jay@gnu.org>
48872
48873         * README: Advise users that they might find the bug-gnulib@gnu.org
48874         and autotools-announce@gnu.org mailing lists useful.
48875
48876 2006-11-28  Bruno Haible  <bruno@clisp.org>
48877
48878         * m4/ptrdiff_max.m4: Remove file.
48879
48880 2006-11-21  Bruno Haible  <bruno@clisp.org>
48881
48882         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48883         _AC_COMPUTE_INT.
48884         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48885         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48886         _AC_COMPUTE_INT.
48887         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48888         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48889         _AC_COMPUTE_INT.
48890         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48891
48892 2006-11-28  Jim Meyering  <jim@meyering.net>
48893
48894         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48895         warning from "gcc -Wshadow" about shadowing the builtin.
48896
48897 2006-11-27  Bruno Haible  <bruno@clisp.org>
48898
48899         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48900         _AC_COMPUTE_INT.
48901         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48902
48903 2006-11-27  Bruno Haible  <bruno@clisp.org>
48904             Paul Eggert  <eggert@cs.ucla.edu>
48905
48906         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48907
48908 2006-11-26  Bruno Haible  <bruno@clisp.org>
48909
48910         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48911         noinst_LTLIBRARIES.
48912
48913 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48914             Bruno Haible  <bruno@clisp.org>
48915
48916         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48917         if compiling with "gcc -ansi".
48918
48919 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48920
48921         Fix some incompatibilities with gcc -ansi -pedantic.
48922         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48923         if compiling pedantically with GCC, unless it's C99 or later.
48924         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48925         it mishandles gcc -ansi -pedantic as well.
48926         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48927         if gcc -pedantic.
48928         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48929         initializers for struct if -pedantic, unless it's C99 or later.
48930
48931 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48932
48933         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48934         Don't close an fd more than once. Identical atimes indicate
48935         success, not failure.
48936
48937 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48938
48939         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48940
48941 2006-11-23  Jim Meyering  <jim@meyering.net>
48942
48943         * build-aux/announce-gen: New file.  From coreutils.
48944
48945 2006-11-22  Jim Meyering  <jim@meyering.net>
48946
48947         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48948         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48949         (fts_read): Use a temporary to narrow the overused st_size member
48950         before using it in a switch statement.  Reported by Matthew Woehlke.
48951
48952         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48953         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48954
48955 2006-11-20  Bruno Haible  <bruno@clisp.org>
48956
48957         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48958         changequote instead of pairs of brackets.
48959         Reported by Andreas Schwab <schwab@suse.de>.
48960
48961 2006-11-21  Jim Meyering  <jim@meyering.net>
48962
48963         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48964         so as to remain compatible with older compilers.
48965         Patch from Michael Deutschmann.
48966
48967 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48968
48969         * MODULES.html.sh (File system functions): Add openat.
48970
48971         * lib/openat.h (rpl_fstatat): New macro, if
48972         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48973         (fstatat): Define to rpl_fstatat under the same conditions,
48974         unless COMPILING_FSTATAT.
48975         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48976         seems to have the bug.
48977         * lib/fstatat.c: New file.
48978         * modules/openat (Files): Add it.
48979
48980 2006-11-20  Bruno Haible  <bruno@clisp.org>
48981
48982         * Makefile: New file.
48983
48984 2006-11-20  Jim Meyering  <jim@meyering.net>
48985
48986         The beginnings of syntax-related checks for gnulib.
48987         * lib/Makefile: New file.
48988         * lib/t-idcache: New script.  Ensure that the two halves of
48989         idcache.c stay in sync.
48990
48991         * lib/idcache.c: Adjust comments in user- and group- portions to
48992         be more accurate, and to be consistent with one another.
48993
48994 2006-11-20  Jim Meyering  <jim@meyering.net>
48995
48996         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48997         continue using the flexible array member (thus, this module performs
48998         half as many malloc calls), with the addition that...
48999         (getgroup, getuser): Consistently record a non-match via an empty
49000         "name" string, and map an empty string match to a NULL return value.
49001         * modules/idcache (Depends-on): Re-add flexmember.
49002
49003         * lib/idcache.c (getuser): Remove all uses of the register keyword.
49004         (getuidbyname, getgroup, getgidbyname): Likewise.
49005
49006         Use cleaner syntax: NULL rather than 0.
49007         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
49008
49009 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
49010
49011         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
49012         It mishandled the case where the group was missing.
49013         Problem reported by Greg Schafer.
49014         * modules/idcache: Likewise.
49015
49016 2006-11-18  Jim Meyering  <jim@meyering.net>
49017
49018         * check-module (%exempt_header): Add exception for some
49019         conditionally-included headers.
49020
49021         * modules/i-ring (Depends-on): Add verify.
49022         (License): Change to LGPL.
49023
49024 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49025
49026         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
49027         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
49028         and inttostr.h.  Use snprintf rather than uinttostr, so that
49029         LGPLed code doesn't depend on GPLed.
49030
49031 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
49032
49033         * modules/inline (License): Change from GPL to LGPL.
49034
49035 2006-11-17  Jim Meyering  <jim@meyering.net>
49036
49037         * modules/d-type (License): Switch to LGPL.
49038
49039 2006-11-15  Bruno Haible  <bruno@clisp.org>
49040
49041         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
49042
49043 2006-11-15  Eric Blake  <ebb9@byu.net>
49044
49045         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
49046         the module dependency.
49047
49048 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49049             Bruno Haible  <bruno@clisp.org>
49050
49051         * gnulib-tool (func_create_testdir): Add license consistency check.
49052
49053 2006-11-15  Eric Blake  <ebb9@byu.net>
49054
49055         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
49056         random "(cached)" in configure output.
49057
49058 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49059
49060         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
49061         test for conforming inttypes.h is both announced and cached.
49062
49063         * MODULES.html.sh (seen_modules, seen_files): New variables.
49064         (func_module): Rewrite to use a few less gnulib-tool and sed
49065         invocations.  Avoid a couple of quadratic algorithms for ...
49066         (missed_modules, missed_files): ... these, with ...
49067         (func_append, func_tmpdir): ... these new functions, from
49068         gnulib-tool.  Analogously, install traps for cleanup.
49069
49070         * tests/test-gc.c (main): Remove unused variables.
49071         * tests/test-read-file.c: Include stdlib.h, for 'free'.
49072
49073 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         * modules/inttostr (License): Change to LGPL.
49076
49077 2006-11-14  Eric Blake  <ebb9@byu.net>
49078
49079         * modules/tempname (License): Change to LGPL.
49080
49081 2006-11-14  Eric Blake  <ebb9@byu.net>
49082
49083         * doc/functions.texi (Function Portability): *printf functions on
49084         Cygwin now understand all POSIX size specifiers.
49085
49086 2006-11-14  Bruno Haible  <bruno@clisp.org>
49087
49088         * modules/c-ctype (License): Change to LGPL.
49089
49090 2006-11-12  Bruno Haible  <bruno@clisp.org>
49091
49092         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49093         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
49094         for GNOME libraries, for which the include files are installed in
49095         subdirectories of $prefix/include.
49096
49097 2006-11-12  Bruno Haible  <bruno@clisp.org>
49098
49099         * m4/lib-link.m4: Require at least autoconf-2.54.
49100         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
49101         name to underscores for the --with option.
49102
49103 2006-11-13  Bruno Haible  <bruno@clisp.org>
49104
49105         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
49106         the tests directory.
49107         Reported by Ralf Wildenhues.
49108
49109 2006-11-13  Bruno Haible  <bruno@clisp.org>
49110
49111         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
49112         (func_emit_initmacro_end): Undo the override here.
49113         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
49114         Works around the famous automake error in coreutils.
49115
49116 2006-11-13  Eric Blake  <ebb9@byu.net>
49117
49118         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
49119         element, not its node.
49120
49121 2006-11-12  Bruno Haible  <bruno@clisp.org>
49122
49123         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
49124         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
49125
49126 2006-11-12  Bruno Haible  <bruno@clisp.org>
49127
49128         * gnulib-tool: New option --local-symlink.
49129         (func_usage): Document it.
49130         (lsymbolic): New variable.
49131         (func_import, func_create_testdir): If --symlink was not specified,
49132         test whether --local-symlink was specified and the file comes from
49133         the local_gnulib_dir.
49134
49135 2006-11-12  Bruno Haible  <bruno@clisp.org>
49136
49137         * gnulib-tool (func_ln): New function.
49138         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
49139
49140 2006-11-12  Bruno Haible  <bruno@clisp.org>
49141
49142         Finish support for source files in subdirectories.
49143         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
49144         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
49145         AUTOMAKE_OPTIONS.
49146         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
49147
49148 2006-11-12  Bruno Haible  <bruno@clisp.org>
49149
49150         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49151         EXTRA_lib_SOURCES augmentation.
49152         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
49153
49154 2006-11-12  Jim Meyering  <jim@meyering.net>
49155
49156         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
49157         file descriptors.  This also averts a failure on systems with
49158         native openat support when a traversed directory lacks "x" access.
49159         * lib/fts_.h: Include "i-ring.h"
49160         (struct FTS) [fts_fd_ring]: New member.
49161         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
49162         (FCHDIR): Add parentheses.
49163         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
49164         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
49165         When descending, rather than simply closing the previous
49166         fts_cwd_fd value, push that file descriptor onto the ring.
49167         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
49168         (fts_open): Initialize the new fd_ring member.
49169         (fts_close): Clear the ring.
49170         (fts_safe_changedir): When possible, use our new fd_ring to skip
49171         the diropen and fstat and dev/ino comparison that would normally
49172         accompany a virtual `chdir ("..")'.
49173
49174         * modules/fts (Depends-on): Add i-ring.
49175         * modules/i-ring: New module.
49176         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
49177         * m4/i-ring.m4: New file.
49178
49179 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49180
49181         * gnulib-tool (func_create_testdir): Fix replacement of
49182         `build-aux' in configure.ac.  Run autotools in gltests
49183         subdirectory.
49184         (func_create_testdir, func_create_megatestdir, test): There is
49185         no need for '--force' in most autotool invocations in a new
49186         tree.  Actually fail the whole test if any of the tools, or the
49187         configure or make stages fail.
49188
49189         Sync from Automake.
49190         * build-aux/gnupload: Revert last change.  Add pointer to upload
49191         instructions of the GNU Maintenance Instructions.
49192         Suggestion by Karl Berry.
49193
49194 2006-11-10  Jim Meyering  <jim@meyering.net>
49195
49196         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
49197
49198 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49199
49200         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
49201         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
49202         (bind_textdomain_codeset) [! ENABLE_NLS]:
49203         Evaluate all the arguments.  That way, callers get compatible behavior
49204         if the arguments have side effects.  Also, it avoids some GCC
49205         diagnostics in some cases; Joel E. Denny reported problems when Bison
49206         was configured with --enable-gcc-warnigs.
49207
49208 2006-11-10  Jim Meyering  <jim@meyering.net>
49209
49210         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
49211         relevant options in CFLAGS (like -O, -fno-inline) are taken into
49212         account.
49213
49214 2006-11-10  Jim Meyering  <jim@meyering.net>
49215
49216         * modules/inline: New file/module.
49217         * modules/xalloc (Files): Remove m4/inline.m4.
49218         (Depends-on): Add inline, instead.
49219         * modules/oset: Likewise.
49220         * modules/list: Likewise.
49221
49222 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49223
49224         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
49225         Problem reported by Matthew Woehlke.
49226
49227 2006-11-09  Bruno Haible  <bruno@clisp.org>
49228
49229         * lib/tempname.c (gen_tempname): Remove variant that invokes
49230         __gen_tempname.
49231         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
49232         __gen_tempname.
49233
49234 2006-11-08  Bruno Haible  <bruno@clisp.org>
49235
49236         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
49237         to 'yes' instead of 'cross-compiling'.
49238
49239 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
49240
49241         * lib/quotearg.h (quotearg_free): New decl.
49242         * lib/quotearg.c (quotearg_free): New function.
49243         (slot0, nslots, slotvec0, slotvec):
49244         Now file-scope so that quotearg_free can get at them.
49245
49246 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49247
49248         Sync from Automake.
49249         * build-aux/gnupload: Add missing 'gnu' to example URL.
49250         Report by Karl Berry.
49251
49252 2006-11-08  Bruno Haible  <bruno@clisp.org>
49253
49254         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
49255         Suggested by Paul Eggert.
49256
49257 2006-11-08  Jim Meyering  <jim@meyering.net>
49258
49259         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
49260         It's already included if !_LIBC.
49261         (fts_safe_changedir): Add a comment.
49262
49263 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49264
49265         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
49266         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
49267         Matthew Woehlke.
49268
49269         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
49270         definitions up, to avoid colliding with change below.
49271         (static_inline) [HAVE_INLINE]: New macro.
49272         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
49273         Provide extern decls when !HAVE_INLINE.  Do not define unless
49274         static_inline is defined, either by us or by xmalloc.c.  Use
49275         static_inline rather than static inline.
49276         (XCALLOC): Optimize sizeof(T) = 1 case.
49277         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
49278
49279 2006-11-07  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
49282         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
49283         AC_C_INLINE.
49284         * modules/xalloc (Files): Add m4/inline.m4.
49285
49286 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49287
49288         * README: Fix typo.
49289         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
49290         (Miscellanous Notes): ...from this.
49291
49292 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49293
49294         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
49295         Mention that offsetof should be used instead of sizeof.
49296         From Bruno Haible.
49297
49298 2006-11-07  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
49301
49302 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49303
49304         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49305         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
49306         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49307         (gl_tree_add_before, gl_tree_add_after):
49308         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
49309         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
49310         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49311         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
49312         (gl_linked_add_after, gl_linked_add_at): Likewise.
49313         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
49314         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49315         (gl_tree_add_before, gl_tree_add_after): Likewise.
49316         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
49317         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
49318         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
49319
49320 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49321
49322         * lib/gl_oset.h: Use C comment style, not C++ comment style.
49323
49324 2006-11-06  Bruno Haible  <bruno@clisp.org>
49325
49326         * m4/inline.m4: New file.
49327         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
49328         * modules/list (Files): Add m4/inline.m4.
49329         * modules/oset (Files): Likewise.
49330
49331 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49332
49333         * lib/idcache.c: Include <stddef.h>, for offsetof.
49334         (struct userid.name): Change from char * to a flexible array member.
49335         All uses changed.
49336         * modules/idcache (Depends-on): Add flexmember.
49337
49338         * MODULES.html.sh (Core language properties): New module flexmember.
49339         * modules/flexmember, m4/flexmember.m4: New files.
49340
49341         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
49342         inline functions that are identical with the old xnmalloc_inline,
49343         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
49344         that we can avoid some unnecessary integer multiplications and
49345         divisions in the common case where the element size is known at
49346         compile time.
49347         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
49348         needed.
49349         (xnboundedmalloc): Remove.
49350         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
49351         arguments, for consistency with rest of this header.
49352         (xcharalloc): Rewrite using XNMALLOC.
49353         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
49354         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
49355         versions have been moved to lib/xalloc.h and renamed to be the
49356         non-*_inline versions.
49357         (xmalloc, xrealloc): Implement without reference to the xnmalloc
49358         and xnrealloc functions, since those functions are now inline and
49359         now call us.
49360         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
49361         renaming described above.
49362         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
49363         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
49364         captures the dependency in AC_C_INLINE.
49365
49366         New module canonicalize-lgpl, proposed by Charles Wilson in
49367         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
49368         with a few small changes afterwards.
49369         * MODULES.html.sh (File system functions): New module
49370         canonicalize-lgpl.
49371         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
49372         and canonicalize_file_name.
49373         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
49374         * modules/canonicalize-lgpl: New files.
49375
49376 2006-11-05  Bruno Haible  <bruno@clisp.org>
49377
49378         * gnulib-tool (func_import, func_create_testdir): Create directories
49379         also for files in subdirectories of lib/.
49380
49381 2006-11-05  Bruno Haible  <bruno@clisp.org>
49382
49383         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
49384         ANSI C compliant.
49385
49386 2006-11-03  Bruno Haible  <bruno@clisp.org>
49387
49388         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49389         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
49390         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
49391         (xnboundedmalloc): New inline function.
49392         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
49393         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49394         xmalloc.
49395         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49396         xmalloc.
49397         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49398         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49399         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49400         xmalloc.
49401         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49402         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49403         xmalloc.
49404         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49405         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49406         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49407         xmalloc.
49408         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49409         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49410         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49411         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49412         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49413         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49414         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49415
49416 2006-11-03  Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/c-ctype.h [C++]: Define functions without name mangling.
49419         * lib/fwriteerror.h [C++]: Likewise.
49420         * lib/gcd.h [C++]: Likewise.
49421         * lib/linebreak.h [C++]: Likewise.
49422
49423 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49424
49425         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49426         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49427         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49428         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49429         Check for functions and headers just once.
49430         Check for declaration of canonicalize_file_name.
49431         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49432
49433 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49434
49435         * gnulib-tool (func_import): Fix typo in actioncmd.
49436
49437 2006-11-02  Bruno Haible  <bruno@clisp.org>
49438
49439         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49440         newline sequence in the Makefile.am snippet as a space, like "make"
49441         does.
49442         Reported by Roger Persson <perrog@gmail.com>.
49443
49444 2006-11-01  Bruno Haible  <bruno@clisp.org>
49445
49446         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49447         already declared in <string.h>.
49448         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49449
49450 2006-11-01  Bruno Haible  <bruno@clisp.org>
49451
49452         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49453         * lib/strcase.h: Include <string.h>.
49454         (strcasecmp): Define to rpl_strcasecmp here.
49455
49456 2006-11-01  Bruno Haible  <bruno@clisp.org>
49457
49458         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49459
49460 2006-11-01  Eric Blake  <ebb9@byu.net>
49461
49462         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49463
49464         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49465
49466 2006-10-29  Bruno Haible  <bruno@clisp.org>
49467
49468         Make it compile in C++ mode.
49469         * lib/full-write.c (full_rw): Add a cast.
49470
49471 2006-11-01  Bruno Haible  <bruno@clisp.org>
49472
49473         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49474         be POSIX compliant.
49475         Reported by Roger Persson <perrog@gmail.com>.
49476
49477 2006-11-01  Eric Blake  <ebb9@byu.net>
49478
49479         * lib/getopt_.h: Fix comments.
49480
49481 2006-10-31  Eric Blake  <ebb9@byu.net>
49482
49483         * modules/tmpdir (Depends-on): Add sys_stat.
49484         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49485         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49486         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49487         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49488         tempname.
49489
49490 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49491
49492         Avoid some C++ diagnostics reported by Bruno Haible.
49493         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49494         xmalloc.
49495         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49496         (struct slotvec): Move to top level.
49497         (quotearg_n_options): Rewrite to avoid xmalloc.
49498         * lib/xalloc.h (xcharalloc): New function.
49499         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49500         [defined __cplusplus]: Add function template that provides result
49501         type propagation.  This part of the change is from Bruno Haible.
49502
49503 2006-10-29  Bruno Haible  <bruno@clisp.org>
49504
49505         Make it compile in C++ mode.
49506         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49507         * lib/strnlen1.c (strnlen1): Cast memchr result.
49508         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49509         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49510         (create_temp_dir): Rename local variable 'template'.
49511         (compile_csharp_using_sscli): Add cast.
49512         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49513         * lib/findprog.c (find_in_path): Likewise.
49514         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49515         * lib/wait-process.c (register_slave_subprocess): Likewise.
49516
49517 2006-10-22  Bruno Haible  <bruno@clisp.org>
49518
49519         * modules/tsearch: New file.
49520         * lib/tsearch.h: New file.
49521         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49522         * m4/tsearch.m4: New file.
49523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49524
49525 2006-10-29  Eric Blake  <ebb9@byu.net>
49526
49527         * lib/arcfour.c: Assume config.h.
49528         * lib/arctwo.c: Likewise.
49529         * lib/base64.c: Likewise.
49530         * lib/check-version.c: Likewise.
49531         * lib/crc.c: Likewise.
49532         * lib/des.c: Likewise.
49533         * lib/gc-gnulib.c: Likewise.
49534         * lib/gc-libgcrypt.c: Likewise.
49535         * lib/gc-pbkdf2-sha1.c: Likewise.
49536         * lib/getaddrinfo.c: Likewise.
49537         * lib/getdelim.c: Likewise.
49538         * lib/getline.c: Likewise.
49539         * lib/hmac-md5.c: Likewise.
49540         * lib/hmac-sha1.c: Likewise.
49541         * lib/iconvme.c: Likewise.
49542         * lib/md2.c: Likewise.
49543         * lib/md4.c: Likewise.
49544         * lib/memxor.c: Likewise.
49545         * lib/read-file.c: Likewise.
49546         * lib/readline.c: Likewise.
49547         * lib/rijndael-alg-fst.c: Likewise.
49548         * lib/rijndael-api-fst.c: Likewise.
49549         * lib/xgetdomainname.c: Likewise.
49550
49551 2006-10-28  Eric Blake  <ebb9@byu.net>
49552
49553         * lib/xstrndup.c: Assume config.h.
49554
49555 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49558         stat-macros.h is now for our own macros, whereas stat_h is for
49559         macros in the <sys/stat.h> name space.
49560         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49561         (STAT_MACROS_H): Remove.
49562         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49563         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49564         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49565         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49566         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49567         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49568         Move these macros to ...
49569         * lib/stat_.h: here.  Don't include stat-macros.h.
49570         * lib/canonicalize.c: Don't include stat-macros.h.
49571         * lib/chown.c: Likewise.
49572         * lib/euidaccess.c: Likewise.
49573         * lib/file-type.c: Likewise.
49574         * lib/filemode.c: Likewise.
49575         * lib/glob.c: Likewise.
49576         * lib/isapipe.c: Likewise.
49577         * lib/lchown.c: Likewise.
49578         * lib/lstat.c: Likewise.
49579         * lib/mkdir-p.c: Likewise.
49580         * lib/rmdir.c: Likewise.
49581         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49582         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49583         unless mkdir isn't declared, to speed up 'configure'.
49584         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49585         would define all the S_* symbols.
49586         * modules/canonicalize (Depends-on):
49587         Depend on sys_stat, not stat-macros.
49588         * modules/chown: Likewise.
49589         * modules/euidaccess: Likewise.
49590         * modules/filemode: Likewise.
49591         * modules/file-type: Likewise.
49592         * modules/glob: Likewise.
49593         * modules/isapipe: Likewise.
49594         * modules/lchown: Likewise.
49595         * modules/lstat: Likewise.
49596         * modules/mkancesdirs: Likewise.
49597         * modules/rmdir: Likewise.
49598         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49599         * modules/modechange: Likewise.
49600         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49601         (configure.ac): Remove gl_STAT_MACROS.
49602         * modules/sys_stat (Depends-on): Remove stat-macros.
49603
49604 2006-10-27  Bruno Haible  <bruno@clisp.org>
49605
49606         * m4/signed.m4: Remove file.
49607         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49608         invocation.
49609         * modules/vasnprintf (Files): Remove m4/signed.m4.
49610
49611 2006-10-27  Bruno Haible  <bruno@clisp.org>
49612
49613         Update to GNU gettext 0.16.
49614         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49615         m4/inttypes-h.m4, m4/signed.m4.
49616         * m4/gettext.m4: Update to GNU gettext 0.16.
49617         * m4/intl.m4: New file, from GNU gettext.
49618         * m4/intldir.m4: New file, from GNU gettext.
49619         * config/srclist.txt: Update
49620
49621 2006-10-27  Eric Blake  <ebb9@byu.net>
49622
49623         * MODULES.html.sh: Document tempname.
49624         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49625         dependencies.
49626         (Files): Move lib/tempname.c...
49627         * modules/tempname: ...to this new module.
49628         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49629         (gl_PREREQ_TEMPNAME): Move...
49630         * m4/tempname.m4: ...to this new file.
49631         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49632         * modules/sys_stat (Depends-on): Add stat-macros.
49633         * lib/stat_.h (includes): Pick up stat macros.
49634         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49635         if stat macros are broken.
49636         * lib/tempname.c (includes): No need to include "stat-macros.h".
49637         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49638         (direxists, __path_search) [!_LIBC]: Don't compile these in
49639         gnulib; the tmpdir module covers that.
49640         * lib/tempname.h: New file.
49641
49642 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49643
49644         * COPYING: Explain how gnulib-tool converts licence headers.
49645         Almost all wording by Eric Blake.
49646
49647 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49648
49649         * lib/mbchar.h (is_basic_table): Make read-only.
49650         * lib/mbchar.c (is_basic_table): Likewise.
49651         Reported by John Darrington.
49652
49653 2006-10-25  Bruno Haible  <bruno@clisp.org>
49654
49655         * lib/progname.h (set_program_name): Undefine before defining.
49656
49657 2006-10-25  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49660         false for non-gcc C++ compilers.
49661         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49662
49663 2006-10-24  Bruno Haible  <bruno@clisp.org>
49664
49665         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49666         iconv implementations like Irix iconv.
49667
49668 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49669
49670         * modules/vararrays: New file.
49671         * m4/vararrays.m4: New file, taken from diffutils.
49672         * MODULES.html.sh: New module vararrays.
49673
49674 2006-10-24  Karl Berry  <karl@gnu.org>
49675
49676         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
49677         Don't call GNU Unix.
49678
49679 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49680
49681         * users.txt: Add Libtool.
49682
49683         Sync from Libtool:
49684
49685         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49686
49687         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
49688         to gnulib's policy of including config.h unconditionally.
49689
49690 2006-10-24  Bruno Haible  <bruno@clisp.org>
49691
49692         * modules/wcwidth (Files): Add m4/wint_t.m4.
49693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
49694         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
49695
49696 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49697
49698         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
49699         to pacify GCC with some -W flags enabled.  Problem reported by
49700         Bruno Haible.
49701
49702 2006-10-24  Jim Meyering  <jim@meyering.net>
49703
49704         * MODULES.html.sh: Remove uinttostr.  It's not a module.
49705         Reported by Karl Berry.
49706
49707 2006-10-23  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
49710
49711 2006-10-24  Bruno Haible  <bruno@clisp.org>
49712
49713         * lib/gl_list.h: Use C comment style, not C++ comment style.
49714
49715 2006-10-23  Eric Blake  <ebb9@byu.net>
49716
49717         * lib/getaddrinfo.c (includes): Add missing include.
49718
49719 2006-10-23  Bruno Haible  <bruno@clisp.org>
49720             Paul Eggert  <eggert@cs.ucla.edu>
49721
49722         Ability to rename obstack_free.
49723         * lib/obstack.h (__obstack_free): New macro. Declare instead of
49724         obstack_free.
49725         (obstack_free): Invoke the __obstack_free macro.
49726         * lib/obstack.c (obstack_free): Use __obstack_free macro.
49727
49728 2006-10-23  Bruno Haible  <bruno@clisp.org>
49729             Paul Eggert  <eggert@cs.ucla.edu>
49730
49731         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
49732         __argc, __argv from the declaration. (They are defined as macros on
49733         mingw.)
49734
49735 2006-10-22  Bruno Haible  <bruno@clisp.org>
49736
49737         * doc/gnulib-intro.texi: New file.
49738         * doc/gnulib.texi: Include it.
49739
49740 2006-10-21  Bruno Haible  <bruno@clisp.org>
49741
49742         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
49743         "Introduction", "Miscellanous Notes", "Particular Modules".
49744
49745 2006-10-21  Bruno Haible  <bruno@clisp.org>
49746
49747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49748         Change mostlyclean-local rule to avoid sh syntax error from bash
49749         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
49750
49751 2006-10-23  Jim Meyering  <jim@meyering.net>
49752
49753         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
49754         in place of snprintf.
49755
49756         * modules/inttostr (Files): Add lib/uinttostr.c.
49757         * lib/uinttostr.c (inttostr): New file/function.
49758         * lib/inttostr.h (uinttostr): Declare.
49759         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
49760         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49761         Add uinttostr.
49762         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
49763
49764 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49765
49766         * lib/canonicalize.c (ELOOP): Define if not already defined.
49767         Problem reported by Bruno Haible in
49768         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
49769
49770 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49771
49772         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
49773         Problem reported by Perry Smith and Ville Laurikari.
49774
49775         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
49776         uses.
49777
49778 2006-10-19  Bruno Haible  <bruno@clisp.org>
49779
49780         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
49781         for mingw.
49782
49783 2006-10-19  Bruno Haible  <bruno@clisp.org>
49784
49785         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
49786         Needed for mingw.
49787
49788 2006-10-19  Bruno Haible  <bruno@clisp.org>
49789
49790         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
49791
49792 2006-10-19  Bruno Haible  <bruno@clisp.org>
49793
49794         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
49795         it.
49796
49797 2006-10-19  Bruno Haible  <bruno@clisp.org>
49798
49799         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
49800         invocation.
49801
49802 2006-10-19  Bruno Haible  <bruno@clisp.org>
49803
49804         * gnulib-tool (func_create_testdir): Don't include ftruncate and
49805         mountlist by default.
49806
49807 2006-10-16  Bruno Haible  <bruno@clisp.org>
49808
49809         * lib/c-strstr.c: Include c-strstr.h.
49810
49811 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49812
49813         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
49814         in a slash.
49815
49816 2006-10-18  Bruno Haible  <bruno@clisp.org>
49817
49818         * lib/lock.h [C++]: Wrap definitions in extern "C".
49819
49820 2006-10-18  Bruno Haible  <bruno@clisp.org>
49821
49822         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
49823         gl_LIBOBJS list.
49824
49825 2006-10-18  Bruno Haible  <bruno@clisp.org>
49826
49827         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
49828
49829 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         * lib/xstrtol.h: Include gettext.h.
49832         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
49833         Problem reported by Eric Blake.
49834         * modules/xstrtol (Depends-on): Add gettext-h.
49835
49836 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
49837
49838         * lib/strftime.c (advance): New macro.
49839         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49840         incomplete type, so you can't add 0 to it.  Problem and patch
49841         reported by Eelco Dolstra for dietlibc.
49842
49843 2006-10-18  Jim Meyering  <jim@meyering.net>
49844
49845         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49846         type for a local, and rename it: s/up/user_proc/.
49847
49848 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49849
49850         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49851         READ_UTMP_USER_PROCESS.
49852         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49853
49854 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49855
49856         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49857         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49858
49859 2006-10-17  Eric Blake  <ebb9@byu.net>
49860
49861         * lib/sigprocmask.c (sigprocmask): Fix typo.
49862
49863         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49864
49865         * modules/clean-temp (Makefile.am): Don't add to make output...
49866         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49867         config.h.
49868
49869 2006-10-17  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49872         differently if DEFAULT_TEXT_DOMAIN is set.
49873
49874 2006-10-16  Bruno Haible  <bruno@clisp.org>
49875
49876         * lib/clean-temp.c: Include fwriteerror.h.
49877
49878 2006-10-16  Bruno Haible  <bruno@clisp.org>
49879
49880         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49881
49882 2006-10-16  Bruno Haible  <bruno@clisp.org>
49883
49884         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49885         * lib/sigprocmask.h: Include <sys/types.h>.
49886         (sigset_t): Use the system's definition if present.
49887
49888 2006-10-17  Eric Blake  <ebb9@byu.net>
49889
49890         * lib/xvasprintf.c (includes): Assume config.h.
49891         * lib/xasprintf.c (includes): Likewise.
49892
49893 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49894
49895         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49896         at least as wide as intmax_t.
49897
49898 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49899
49900         (Imported from Automake.)
49901         * build-aux/gnupload: Update to version 1.1 of directive file.
49902
49903 2006-10-16  Eric Blake  <ebb9@byu.net>
49904
49905         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49906         match Automake 1.10a.
49907
49908 2006-10-14  Bruno Haible  <bruno@clisp.org>
49909
49910         * modules/sigprocmask: New file.
49911         * lib/sigprocmask.h: New file.
49912         * lib/sigprocmask.c: New file.
49913         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49914         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49915         request sigprocmask.o.
49916         (gl_PREREQ_SIGPROCMASK): New macro.
49917         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49918         (Depends-on): Add sigprocmask.
49919         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49920         gt_SIGNALBLOCKING. Test for 'raise' only once.
49921         * lib/fatal-signal.c: Include sigprocmask.h.
49922         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49923         unblock_fatal_signals): Define always.
49924         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49925         sigprocmask.
49926
49927 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         Sync from Automake.
49930         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49931         which incorrectly sets the mode of an existing destination
49932         directory.  In some cases the unpatched install-sh could do the
49933         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49934         system.  We hope this is rare in practice, but it's clearly worth
49935         fixing.  Problem reported by Alex Unleashed in
49936         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49937         Also, don't bother to check for -m bugs unless we're using -m;
49938         suggested by Stepan Kasal.
49939
49940 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49941
49942         Sync from Automake.
49943         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49944         `-c' flag, so they appear at the same position as in %FASTDEP%
49945         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49946         which ignores unknown options only after the first non-option.
49947         Bug report against M4 by Nelson H. F. Beebe.
49948
49949 2006-10-13  Jim Meyering  <jim@meyering.net>
49950
49951         Fix a bug in yesterday's change.
49952         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49953         p->fts_statp->st_dev would be used uninitialized.
49954         Ensures that we always call fts_stat on the very first entry.
49955         Miklos Szeredi reported that find -xdev stopped working.
49956
49957 2006-10-12  Bruno Haible  <bruno@clisp.org>
49958
49959         * gnulib-tool (func_get_automake_snippet): Append an automatically
49960         computed EXTRA_DIST augmentation.
49961         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49962         * modules/alloca-opt (Makefile.am): Likewise.
49963         * modules/allocsa (Makefile.am): Likewise.
49964         * modules/arcfour (Makefile.am): Likewise.
49965         * modules/arctwo (Makefile.am): Likewise.
49966         * modules/argmatch (Makefile.am): Likewise.
49967         * modules/argz (Makefile.am): Likewise.
49968         * modules/atexit (Makefile.am): Likewise.
49969         * modules/backupfile (Makefile.am): Likewise.
49970         * modules/byteswap (Makefile.am): Likewise.
49971         * modules/c-strtod (Makefile.am): Likewise.
49972         * modules/c-strtold (Makefile.am): Likewise.
49973         * modules/calloc (Makefile.am): Likewise.
49974         * modules/canon-host (Makefile.am): Likewise.
49975         * modules/canonicalize (Makefile.am): Likewise.
49976         * modules/chdir-long (Makefile.am): Likewise.
49977         * modules/chdir-safer (Makefile.am): Likewise.
49978         * modules/check-version (Makefile.am): Likewise.
49979         * modules/chown (Makefile.am): Likewise.
49980         * modules/cloexec (Makefile.am): Likewise.
49981         * modules/close-stream (Makefile.am): Likewise.
49982         * modules/closeout (Makefile.am): Likewise.
49983         * modules/crc (Makefile.am): Likewise.
49984         * modules/csharpexec (Makefile.am): Likewise.
49985         * modules/cycle-check (Makefile.am): Likewise.
49986         * modules/des (Makefile.am): Likewise.
49987         * modules/dev-ino (Makefile.am): Likewise.
49988         * modules/dirfd (Makefile.am): Likewise.
49989         * modules/dirname (Makefile.am): Likewise.
49990         * modules/dup2 (Makefile.am): Likewise.
49991         * modules/eealloc (Makefile.am): Likewise.
49992         * modules/error (Makefile.am): Likewise.
49993         * modules/euidaccess (Makefile.am): Likewise.
49994         * modules/exclude (Makefile.am): Likewise.
49995         * modules/exitfail (Makefile.am): Likewise.
49996         * modules/fcntl-safer (Makefile.am): Likewise.
49997         * modules/fcntl (Makefile.am): Likewise.
49998         * modules/file-type (Makefile.am): Likewise.
49999         * modules/fileblocks (Makefile.am): Likewise.
50000         * modules/filemode (Makefile.am): Likewise.
50001         * modules/filenamecat (Makefile.am): Likewise.
50002         * modules/fnmatch (Makefile.am): Likewise.
50003         * modules/fopen-safer (Makefile.am): Likewise.
50004         * modules/fpending (Makefile.am): Likewise.
50005         * modules/fprintftime (Makefile.am): Likewise.
50006         * modules/free (Makefile.am): Likewise.
50007         * modules/fsusage (Makefile.am): Likewise.
50008         * modules/ftruncate (Makefile.am): Likewise.
50009         * modules/fts (Makefile.am): Likewise.
50010         * modules/gc-arcfour (Makefile.am): Likewise.
50011         * modules/gc-des (Makefile.am): Likewise.
50012         * modules/gc-hmac-md5 (Makefile.am): Likewise.
50013         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
50014         * modules/gc-md4 (Makefile.am): Likewise.
50015         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50016         * modules/gc-sha1 (Makefile.am): Likewise.
50017         * modules/gc (Makefile.am): Likewise.
50018         * modules/getaddrinfo (Makefile.am): Likewise.
50019         * modules/getcwd (Makefile.am): Likewise.
50020         * modules/getdelim (Makefile.am): Likewise.
50021         * modules/getdomainname (Makefile.am): Likewise.
50022         * modules/getgroups (Makefile.am): Likewise.
50023         * modules/gethostname (Makefile.am): Likewise.
50024         * modules/gethrxtime (Makefile.am): Likewise.
50025         * modules/getline (Makefile.am): Likewise.
50026         * modules/getloadavg (Makefile.am): Likewise.
50027         * modules/getlogin_r (Makefile.am): Likewise.
50028         * modules/getndelim2 (Makefile.am): Likewise.
50029         * modules/getopt (Makefile.am): Likewise.
50030         * modules/getpagesize (Makefile.am): Likewise.
50031         * modules/getpass-gnu (Makefile.am): Likewise.
50032         * modules/getpass (Makefile.am): Likewise.
50033         * modules/getsubopt (Makefile.am): Likewise.
50034         * modules/gettime (Makefile.am): Likewise.
50035         * modules/gettimeofday (Makefile.am): Likewise.
50036         * modules/getugroups (Makefile.am): Likewise.
50037         * modules/getusershell (Makefile.am): Likewise.
50038         * modules/glob (Makefile.am): Likewise.
50039         * modules/group-member (Makefile.am): Likewise.
50040         * modules/hard-locale (Makefile.am): Likewise.
50041         * modules/hash (Makefile.am): Likewise.
50042         * modules/hmac-md5 (Makefile.am): Likewise.
50043         * modules/hmac-sha1 (Makefile.am): Likewise.
50044         * modules/human (Makefile.am): Likewise.
50045         * modules/idcache (Makefile.am): Likewise.
50046         * modules/imaxabs (Makefile.am): Likewise.
50047         * modules/imaxdiv (Makefile.am): Likewise.
50048         * modules/inet_ntop (Makefile.am): Likewise.
50049         * modules/inet_pton (Makefile.am): Likewise.
50050         * modules/intprops (Makefile.am): Likewise.
50051         * modules/inttostr (Makefile.am): Likewise.
50052         * modules/inttypes (Makefile.am): Likewise.
50053         * modules/isapipe (Makefile.am): Likewise.
50054         * modules/javaversion (Makefile.am): Likewise.
50055         * modules/lchmod (Makefile.am): Likewise.
50056         * modules/lchown (Makefile.am): Likewise.
50057         * modules/localcharset (Makefile.am): Likewise.
50058         * modules/long-options (Makefile.am): Likewise.
50059         * modules/lstat (Makefile.am): Likewise.
50060         * modules/malloc (Makefile.am): Likewise.
50061         * modules/mathl (Makefile.am): Likewise.
50062         * modules/mbchar (Makefile.am): Likewise.
50063         * modules/md2 (Makefile.am): Likewise.
50064         * modules/md4 (Makefile.am): Likewise.
50065         * modules/md5 (Makefile.am): Likewise.
50066         * modules/memcasecmp (Makefile.am): Likewise.
50067         * modules/memchr (Makefile.am): Likewise.
50068         * modules/memcmp (Makefile.am): Likewise.
50069         * modules/memcoll (Makefile.am): Likewise.
50070         * modules/memcpy (Makefile.am): Likewise.
50071         * modules/memmem (Makefile.am): Likewise.
50072         * modules/memmove (Makefile.am): Likewise.
50073         * modules/mempcpy (Makefile.am): Likewise.
50074         * modules/memrchr (Makefile.am): Likewise.
50075         * modules/memset (Makefile.am): Likewise.
50076         * modules/memxor (Makefile.am): Likewise.
50077         * modules/mkancesdirs (Makefile.am): Likewise.
50078         * modules/mkdir-p (Makefile.am): Likewise.
50079         * modules/mkdir (Makefile.am): Likewise.
50080         * modules/mkdtemp (Makefile.am): Likewise.
50081         * modules/mkstemp (Makefile.am): Likewise.
50082         * modules/mktime (Makefile.am): Likewise.
50083         * modules/modechange (Makefile.am): Likewise.
50084         * modules/mountlist (Makefile.am): Likewise.
50085         * modules/nanosleep (Makefile.am): Likewise.
50086         * modules/obstack (Makefile.am): Likewise.
50087         * modules/openat (Makefile.am): Likewise.
50088         * modules/pagealign_alloc (Makefile.am): Likewise.
50089         * modules/pathmax (Makefile.am): Likewise.
50090         * modules/physmem (Makefile.am): Likewise.
50091         * modules/poll (Makefile.am): Likewise.
50092         * modules/posixtm (Makefile.am): Likewise.
50093         * modules/posixver (Makefile.am): Likewise.
50094         * modules/putenv (Makefile.am): Likewise.
50095         * modules/quote (Makefile.am): Likewise.
50096         * modules/quotearg (Makefile.am): Likewise.
50097         * modules/raise (Makefile.am): Likewise.
50098         * modules/read-file (Makefile.am): Likewise.
50099         * modules/readline (Makefile.am): Likewise.
50100         * modules/readlink (Makefile.am): Likewise.
50101         * modules/readtokens (Makefile.am): Likewise.
50102         * modules/readutmp (Makefile.am): Likewise.
50103         * modules/realloc (Makefile.am): Likewise.
50104         * modules/regex (Makefile.am): Likewise.
50105         * modules/rename-dest-slash (Makefile.am): Likewise.
50106         * modules/rename (Makefile.am): Likewise.
50107         * modules/rijndael (Makefile.am): Likewise.
50108         * modules/rmdir (Makefile.am): Likewise.
50109         * modules/rpmatch (Makefile.am): Likewise.
50110         * modules/safe-read (Makefile.am): Likewise.
50111         * modules/safe-write (Makefile.am): Likewise.
50112         * modules/same-inode (Makefile.am): Likewise.
50113         * modules/same (Makefile.am): Likewise.
50114         * modules/save-cwd (Makefile.am): Likewise.
50115         * modules/savedir (Makefile.am): Likewise.
50116         * modules/setenv (Makefile.am): Likewise.
50117         * modules/settime (Makefile.am): Likewise.
50118         * modules/sha1 (Makefile.am): Likewise.
50119         * modules/sig2str (Makefile.am): Likewise.
50120         * modules/snprintf (Makefile.am): Likewise.
50121         * modules/stat-macros (Makefile.am): Likewise.
50122         * modules/stat-time (Makefile.am): Likewise.
50123         * modules/stdbool (Makefile.am): Likewise.
50124         * modules/stdint (Makefile.am): Likewise.
50125         * modules/stdlib-safer (Makefile.am): Likewise.
50126         * modules/stpcpy (Makefile.am): Likewise.
50127         * modules/stpncpy (Makefile.am): Likewise.
50128         * modules/strcase (Makefile.am): Likewise.
50129         * modules/strcasestr (Makefile.am): Likewise.
50130         * modules/strchrnul (Makefile.am): Likewise.
50131         * modules/strcspn (Makefile.am): Likewise.
50132         * modules/strdup (Makefile.am): Likewise.
50133         * modules/strerror (Makefile.am): Likewise.
50134         * modules/strftime (Makefile.am): Likewise.
50135         * modules/strndup (Makefile.am): Likewise.
50136         * modules/strnlen (Makefile.am): Likewise.
50137         * modules/strpbrk (Makefile.am): Likewise.
50138         * modules/strsep (Makefile.am): Likewise.
50139         * modules/strstr (Makefile.am): Likewise.
50140         * modules/strtod (Makefile.am): Likewise.
50141         * modules/strtoimax (Makefile.am): Likewise.
50142         * modules/strtok_r (Makefile.am): Likewise.
50143         * modules/strtol (Makefile.am): Likewise.
50144         * modules/strtoll (Makefile.am): Likewise.
50145         * modules/strtoul (Makefile.am): Likewise.
50146         * modules/strtoull (Makefile.am): Likewise.
50147         * modules/strtoumax (Makefile.am): Likewise.
50148         * modules/strverscmp (Makefile.am): Likewise.
50149         * modules/sys_socket (Makefile.am): Likewise.
50150         * modules/sys_stat (Makefile.am): Likewise.
50151         * modules/sysexits (Makefile.am): Likewise.
50152         * modules/time_r (Makefile.am): Likewise.
50153         * modules/timegm (Makefile.am): Likewise.
50154         * modules/timespec (Makefile.am): Likewise.
50155         * modules/tmpfile-safer (Makefile.am): Likewise.
50156         * modules/trim (Makefile.am): Likewise.
50157         * modules/unistd-safer (Makefile.am): Likewise.
50158         * modules/unlinkdir (Makefile.am): Likewise.
50159         * modules/unlocked-io (Makefile.am): Likewise.
50160         * modules/userspec (Makefile.am): Likewise.
50161         * modules/utime (Makefile.am): Likewise.
50162         * modules/utimecmp (Makefile.am): Likewise.
50163         * modules/utimens (Makefile.am): Likewise.
50164         * modules/vasnprintf (Makefile.am): Likewise.
50165         * modules/vasprintf (Makefile.am): Likewise.
50166         * modules/vsnprintf (Makefile.am): Likewise.
50167         * modules/xalloc (Makefile.am): Likewise.
50168         * modules/xgetcwd (Makefile.am): Likewise.
50169         * modules/xnanosleep (Makefile.am): Likewise.
50170         * modules/xreadlink (Makefile.am): Likewise.
50171         * modules/xstrtod (Makefile.am): Likewise.
50172         * modules/xstrtol (Makefile.am): Likewise.
50173         * modules/xstrtold (Makefile.am): Likewise.
50174         * modules/yesno (Makefile.am): Likewise.
50175         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
50176
50177 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50178
50179         * modules/error (Makefile.am): Distribute files through
50180         EXTRA_DIST, not lib_SOURCES.
50181
50182 2006-10-12  Eric Blake  <ebb9@byu.net>
50183
50184         * modules/error (Makefile.am): Distribute files in /lib.
50185         * modules/obstack (Makefile.am): Likewise.
50186
50187 2006-10-12  Bruno Haible  <bruno@clisp.org>
50188
50189         * modules/acl (Makefile.am): Distribute all files in lib/ through
50190         EXTRA_DIST.
50191         * modules/arcfour (Makefile.am): Likewise.
50192         * modules/arctwo (Makefile.am): Likewise.
50193         * modules/argmatch (Makefile.am): Likewise.
50194         * modules/argz (Makefile.am): Likewise.
50195         * modules/atexit (Makefile.am): Likewise.
50196         * modules/backupfile (Makefile.am): Likewise.
50197         * modules/c-strtod (Makefile.am): Likewise.
50198         * modules/c-strtold (Makefile.am): Likewise.
50199         * modules/calloc (Makefile.am): Likewise.
50200         * modules/canon-host (Makefile.am): Likewise.
50201         * modules/canonicalize (Makefile.am): Likewise.
50202         * modules/chdir-long (Makefile.am): Likewise.
50203         * modules/chdir-safer (Makefile.am): Likewise.
50204         * modules/check-version (Makefile.am): Likewise.
50205         * modules/chown (Makefile.am): Likewise.
50206         * modules/cloexec (Makefile.am): Likewise.
50207         * modules/close-stream (Makefile.am): Likewise.
50208         * modules/closeout (Makefile.am): Likewise.
50209         * modules/crc (Makefile.am): Likewise.
50210         * modules/cycle-check (Makefile.am): Likewise.
50211         * modules/des (Makefile.am): Likewise.
50212         * modules/dirfd (Makefile.am): Likewise.
50213         * modules/dirname (Makefile.am): Likewise.
50214         * modules/dup2 (Makefile.am): Likewise.
50215         * modules/euidaccess (Makefile.am): Likewise.
50216         * modules/exclude (Makefile.am): Likewise.
50217         * modules/exitfail (Makefile.am): Likewise.
50218         * modules/fcntl-safer (Makefile.am): Likewise.
50219         * modules/file-type (Makefile.am): Likewise.
50220         * modules/fileblocks (Makefile.am): Likewise.
50221         * modules/filemode (Makefile.am): Likewise.
50222         * modules/filenamecat (Makefile.am): Likewise.
50223         * modules/fnmatch (Makefile.am): Likewise.
50224         * modules/fopen-safer (Makefile.am): Likewise.
50225         * modules/fpending (Makefile.am): Likewise.
50226         * modules/fprintftime (Makefile.am): Likewise.
50227         * modules/free (Makefile.am): Likewise.
50228         * modules/fsusage (Makefile.am): Likewise.
50229         * modules/ftruncate (Makefile.am): Likewise.
50230         * modules/fts (Makefile.am): Likewise.
50231         * modules/gc (Makefile.am): Likewise.
50232         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50233         * modules/getaddrinfo (Makefile.am): Likewise.
50234         * modules/getcwd (Makefile.am): Likewise.
50235         * modules/getdelim (Makefile.am): Likewise.
50236         * modules/getdomainname (Makefile.am): Likewise.
50237         * modules/getgroups (Makefile.am): Likewise.
50238         * modules/gethostname (Makefile.am): Likewise.
50239         * modules/gethrxtime (Makefile.am): Likewise.
50240         * modules/getline (Makefile.am): Likewise.
50241         * modules/getloadavg (Makefile.am): Likewise.
50242         * modules/getlogin_r (Makefile.am): Likewise.
50243         * modules/getopt (Makefile.am): Likewise.
50244         * modules/getpass (Makefile.am): Likewise.
50245         * modules/getpass-gnu (Makefile.am): Likewise.
50246         * modules/getsubopt (Makefile.am): Likewise.
50247         * modules/gettime (Makefile.am): Likewise.
50248         * modules/gettimeofday (Makefile.am): Likewise.
50249         * modules/getugroups (Makefile.am): Likewise.
50250         * modules/getusershell (Makefile.am): Likewise.
50251         * modules/glob (Makefile.am): Likewise.
50252         * modules/group-member (Makefile.am): Likewise.
50253         * modules/hard-locale (Makefile.am): Likewise.
50254         * modules/hash (Makefile.am): Likewise.
50255         * modules/hmac-md5 (Makefile.am): Likewise.
50256         * modules/hmac-sha1 (Makefile.am): Likewise.
50257         * modules/human (Makefile.am): Likewise.
50258         * modules/idcache (Makefile.am): Likewise.
50259         * modules/imaxabs (Makefile.am): Likewise.
50260         * modules/imaxdiv (Makefile.am): Likewise.
50261         * modules/inet_ntop (Makefile.am): Likewise.
50262         * modules/inet_pton (Makefile.am): Likewise.
50263         * modules/inttostr (Makefile.am): Likewise.
50264         * modules/isapipe (Makefile.am): Likewise.
50265         * modules/lchown (Makefile.am): Likewise.
50266         * modules/long-options (Makefile.am): Likewise.
50267         * modules/lstat (Makefile.am): Likewise.
50268         * modules/malloc (Makefile.am): Likewise.
50269         * modules/mathl (Makefile.am): Likewise.
50270         * modules/mbchar (Makefile.am): Likewise.
50271         * modules/md2 (Makefile.am): Likewise.
50272         * modules/md4 (Makefile.am): Likewise.
50273         * modules/md5 (Makefile.am): Likewise.
50274         * modules/memcasecmp (Makefile.am): Likewise.
50275         * modules/memchr (Makefile.am): Likewise.
50276         * modules/memcmp (Makefile.am): Likewise.
50277         * modules/memcoll (Makefile.am): Likewise.
50278         * modules/memcpy (Makefile.am): Likewise.
50279         * modules/memmem (Makefile.am): Likewise.
50280         * modules/memmove (Makefile.am): Likewise.
50281         * modules/mempcpy (Makefile.am): Likewise.
50282         * modules/memrchr (Makefile.am): Likewise.
50283         * modules/memset (Makefile.am): Likewise.
50284         * modules/memxor (Makefile.am): Likewise.
50285         * modules/mkancesdirs (Makefile.am): Likewise.
50286         * modules/mkdir (Makefile.am): Likewise.
50287         * modules/mkdir-p (Makefile.am): Likewise.
50288         * modules/mkdtemp (Makefile.am): Likewise.
50289         * modules/mkstemp (Makefile.am): Likewise.
50290         * modules/mktime (Makefile.am): Likewise.
50291         * modules/modechange (Makefile.am): Likewise.
50292         * modules/mountlist (Makefile.am): Likewise.
50293         * modules/nanosleep (Makefile.am): Likewise.
50294         * modules/openat (Makefile.am): Likewise.
50295         * modules/pagealign_alloc (Makefile.am): Likewise.
50296         * modules/physmem (Makefile.am): Likewise.
50297         * modules/poll (Makefile.am): Likewise.
50298         * modules/posixtm (Makefile.am): Likewise.
50299         * modules/posixver (Makefile.am): Likewise.
50300         * modules/putenv (Makefile.am): Likewise.
50301         * modules/quote (Makefile.am): Likewise.
50302         * modules/quotearg (Makefile.am): Likewise.
50303         * modules/raise (Makefile.am): Likewise.
50304         * modules/read-file (Makefile.am): Likewise.
50305         * modules/readline (Makefile.am): Likewise.
50306         * modules/readlink (Makefile.am): Likewise.
50307         * modules/readtokens (Makefile.am): Likewise.
50308         * modules/readutmp (Makefile.am): Likewise.
50309         * modules/realloc (Makefile.am): Likewise.
50310         * modules/regex (Makefile.am): Likewise.
50311         * modules/rename (Makefile.am): Likewise.
50312         * modules/rename-dest-slash (Makefile.am): Likewise.
50313         * modules/rijndael (Makefile.am): Likewise.
50314         * modules/rmdir (Makefile.am): Likewise.
50315         * modules/rpmatch (Makefile.am): Likewise.
50316         * modules/safe-read (Makefile.am): Likewise.
50317         * modules/safe-write (Makefile.am): Likewise.
50318         * modules/same (Makefile.am): Likewise.
50319         * modules/save-cwd (Makefile.am): Likewise.
50320         * modules/savedir (Makefile.am): Likewise.
50321         * modules/setenv (Makefile.am): Likewise.
50322         * modules/settime (Makefile.am): Likewise.
50323         * modules/sha1 (Makefile.am): Likewise.
50324         * modules/sig2str (Makefile.am): Likewise.
50325         * modules/snprintf (Makefile.am): Likewise.
50326         * modules/stdlib-safer (Makefile.am): Likewise.
50327         * modules/stpcpy (Makefile.am): Likewise.
50328         * modules/stpncpy (Makefile.am): Likewise.
50329         * modules/strcase (Makefile.am): Likewise.
50330         * modules/strcasestr (Makefile.am): Likewise.
50331         * modules/strchrnul (Makefile.am): Likewise.
50332         * modules/strcspn (Makefile.am): Likewise.
50333         * modules/strdup (Makefile.am): Likewise.
50334         * modules/strerror (Makefile.am): Likewise.
50335         * modules/strftime (Makefile.am): Likewise.
50336         * modules/strndup (Makefile.am): Likewise.
50337         * modules/strnlen (Makefile.am): Likewise.
50338         * modules/strpbrk (Makefile.am): Likewise.
50339         * modules/strsep (Makefile.am): Likewise.
50340         * modules/strstr (Makefile.am): Likewise.
50341         * modules/strtod (Makefile.am): Likewise.
50342         * modules/strtoimax (Makefile.am): Likewise.
50343         * modules/strtok_r (Makefile.am): Likewise.
50344         * modules/strtol (Makefile.am): Likewise.
50345         * modules/strtoll (Makefile.am): Likewise.
50346         * modules/strtoul (Makefile.am): Likewise.
50347         * modules/strtoull (Makefile.am): Likewise.
50348         * modules/strtoumax (Makefile.am): Likewise.
50349         * modules/strverscmp (Makefile.am): Likewise.
50350         * modules/time_r (Makefile.am): Likewise.
50351         * modules/timegm (Makefile.am): Likewise.
50352         * modules/tmpfile-safer (Makefile.am): Likewise.
50353         * modules/unistd-safer (Makefile.am): Likewise.
50354         * modules/unlinkdir (Makefile.am): Likewise.
50355         * modules/userspec (Makefile.am): Likewise.
50356         * modules/utime (Makefile.am): Likewise.
50357         * modules/utimecmp (Makefile.am): Likewise.
50358         * modules/utimens (Makefile.am): Likewise.
50359         * modules/vasnprintf (Makefile.am): Likewise.
50360         * modules/vasprintf (Makefile.am): Likewise.
50361         * modules/vsnprintf (Makefile.am): Likewise.
50362         * modules/xalloc (Makefile.am): Likewise.
50363         * modules/xgetcwd (Makefile.am): Likewise.
50364         * modules/xnanosleep (Makefile.am): Likewise.
50365         * modules/xreadlink (Makefile.am): Likewise.
50366         * modules/xstrtod (Makefile.am): Likewise.
50367         * modules/xstrtol (Makefile.am): Likewise.
50368         * modules/xstrtold (Makefile.am): Likewise.
50369         * modules/yesno (Makefile.am): Likewise.
50370
50371 2006-10-12  Jim Meyering  <jim@meyering.net>
50372
50373         * m4/getloadavg.m4: Revert the change below.
50374
50375         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
50376         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
50377         fail with a symlink, which is what coreutils' ./bootstrap now
50378         creates by default.
50379
50380 2006-10-12  Bruno Haible  <bruno@clisp.org>
50381
50382         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
50383         mingw.
50384         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
50385         MSVC and mingw explicitly.
50386
50387 2006-10-11  Simon Josefsson  <jas@extundo.com>
50388             Bruno Haible  <bruno@clisp.org>
50389
50390         Add support for multiple gnulib-tool invocations in the scope of a
50391         single configure.ac file.
50392         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
50393         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50394         with the same contents as the _LIBADD variable.
50395         (func_emit_initmacro_start, func_emit_initmacro_end,
50396         func_emit_initmacro_done): New functions.
50397         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50398         gl_LIBOBJS and gl_LTLIBOBJS.
50399
50400 2006-10-11  Bruno Haible  <bruno@clisp.org>
50401
50402         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50403         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50404         autoreconf. Instead, invoke autopoint explicitly but move back the
50405         *.m4 files from gnulib.
50406
50407 2006-10-11  Bruno Haible  <bruno@clisp.org>
50408
50409         * gnulib-tool (func_usage): Make module names after --create-testdir
50410         optional.
50411         (func_create_testdir): If no module was specified, use nearly all
50412         modules.
50413
50414 2006-10-12  Jim Meyering  <jim@meyering.net>
50415
50416         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50417         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50418         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50419         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50420         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50421         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50422         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50423         (fts_set_stat_required): New function.
50424         (fts_open): Defer the calls to fts_stat, if possible or requested.
50425         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50426         into fts_stat itself.
50427         (fts_read): Perform any required (deferred) fts_stat call.
50428         (fts_build): Likewise, for the directory we're about to open and read.
50429         In the readdir loop, carefully decide whether each entry will require
50430         an eventual call to fts_stat, using dirent.d_type info if available.
50431         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50432         a command line argument into this function.  Update all callers.
50433         Map a return value of FTS_DOT to FTS_D for a command line argument.
50434         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50435         Thanks to Miklos Szeredi for his tenacity and for the initial
50436         bug report about "find" failing on a FUSE-based file system.
50437
50438         * lib/fts.c (fts_open): Use consistent indentation.
50439
50440 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50441
50442         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50443         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50444         reported by Jim Meyering.  All uses of cache variables renamed
50445         to match Autoconf's.
50446         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50447         the other one.
50448
50449         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50450         Fix misspelling in diagnostic.
50451
50452 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50453
50454         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50455         defined.  Problem reported by Matthew Woehlke.
50456
50457         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50458         Add support for Tandem NonStop R series.
50459         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50460         Use new macro.
50461
50462         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50463         (has_trailing_slash): Omit size arg; all callers changed.
50464         Omit 'inline', since it doesn't help performance and we'd
50465         need to configure it.
50466         Don't count //, ///, etc. as having a trailing slash.
50467         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50468         (rpl_rename_dest_slash): On failure, use rename's errno rather
50469         than (in some cases) an incorrect or junk errno.
50470         Simplify code by removing need to compute length; this does
50471         cause it to make two passes instead of one over the file name,
50472         but it's worth it.
50473
50474         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50475         change, since Autoconf's version may no longer be appropriate now
50476         that we are using CVS Autoconf's version.  Add support for Tandem.
50477
50478 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50479             Bruno Haible  <bruno@clisp.org>
50480
50481         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50482         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50483         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50484         gl_AC_TYPE_LONG_LONG.
50485
50486         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50487         instead of HAVE_LONG_LONG.
50488         * lib/printf-args.c (printf_fetchargs): Likewise.
50489         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50490         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50491         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50492         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50493         gl_AC_TYPE_LONG_LONG.
50494
50495 2006-10-11  Bruno Haible  <bruno@clisp.org>
50496
50497         * m4/longlong.m4: Add comments.
50498         * m4/ulonglong.m4: Likewise.
50499
50500 2006-10-10  Bruno Haible  <bruno@clisp.org>
50501
50502         Make it possible to #define stpcpy, strdup to aliases.
50503         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50504         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50505
50506 2006-10-10  Bruno Haible  <bruno@clisp.org>
50507
50508         Make it possible to #define gcd to an alias.
50509         * lib/gcd.c: Include config.h.
50510
50511 2006-10-10  Bruno Haible  <bruno@clisp.org>
50512
50513         Make it possible to #define c_isascii to an alias.
50514         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50515         defined. Undefine the macros before defining them, to avoid gcc
50516         warnings.
50517         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50518         define NO_C_CTYPE_MACROS early.
50519
50520 2006-10-10  Bruno Haible  <bruno@clisp.org>
50521
50522         Make it possible to #define set_program_name to an alias.
50523         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50524         ENABLE_RELOCATABLE early.
50525
50526 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50527
50528         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50529         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50530         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50531         More generally, don't assume that 64-bit signed int is available
50532         if unsigned int is, and vice versa.
50533         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50534         unsigned symbols, not on their signed counterparts.
50535         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50536         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50537         (UINT64_C, UINTMAX_C):
50538         Likewise.
50539         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50540         unsigned counterparts.
50541         (Have_long_long, Unsigned): New macros.
50542         (Int): Renamed from INT.
50543         (strtoimax): Use the new macros.
50544         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50545         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50546         * modules/inttypes (inttypes.h): Substitute
50547         HAVE_UNSIGNED_LONG_LONG_INT.
50548         * modules/stdint (stdint.h): Likewise.
50549         (Files): Add m4/ulonglong.m4.
50550
50551 2006-10-10  Bruno Haible  <bruno@clisp.org>
50552
50553         Fix a gcc -Wshadow warning.
50554         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50555         to 'bucket'.
50556         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50557         gl_linked_indexof_from_to): Likewise.
50558         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50559         Likewise.
50560         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50561         Likewise.
50562         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50563         Reported by Eric Blake.
50564
50565 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50566
50567         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50568         for NetBSD.  Problem reported by Bruno Haible.
50569
50570 2006-10-09  Jim Meyering  <jim@meyering.net>
50571
50572         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50573         Patch from Bruno Haible.
50574
50575 2006-10-09  Jim Meyering  <jim@meyering.net>
50576
50577         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50578         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50579         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50580
50581 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50582
50583         Don't include <config.h> twice; this doesn't work in some cases,
50584         e.g., when config.h has "#define intmax_t long long int" and
50585         we include <config.h>, <inttypes.h>, <config.h> in that order.
50586         Problem reported by Matthew Woehlke in:
50587         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50588         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50589         * lib/fts-cycle.c: Don't include config.h.
50590         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50591         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50592         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50593         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50594         inttypes.h.
50595         * lib/xstrtoumax.c: Likewise.
50596         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50597         __strtol and the like, so that this module is more like its siblings.
50598         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50599         Remove; no longer needed now that we assume gnulib inttypes.h.
50600
50601 2006-10-08  Bruno Haible  <bruno@clisp.org>
50602
50603         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50604         option.
50605
50606 2006-10-07  Jim Meyering  <jim@meyering.net>
50607
50608         * modules/inttypes (inttypes.h): Revert what seems to have been
50609         an inadvertent part of today's change: use "|", not "/" in the
50610         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50611
50612 2006-10-07  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/sublist: New file.
50615
50616 2006-10-07  Bruno Haible  <bruno@clisp.org>
50617
50618         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50619         * modules/argz (argz.h): Likewise.
50620         * modules/arpa_inet (arpa/inet.h): Likewise.
50621         * modules/byteswap (byteswap.h): Likewise.
50622         * modules/configmake (configmake.h): Likewise.
50623         * modules/fcntl (fcntl.h): Likewise.
50624         * modules/fnmatch (fnmatch.h): Likewise.
50625         * modules/getopt (getopt.h): Likewise.
50626         * modules/glob (glob.h): Likewise.
50627         * modules/inttypes (inttypes.h): Likewise.
50628         * modules/netinet_in (netinet/in.h): Likewise.
50629         * modules/poll (poll.h): Likewise.
50630         * modules/stdbool (stdbool.h): Likewise.
50631         * modules/stdint (stdint.h): Likewise.
50632         * modules/sys_select (sys/select.h): Likewise.
50633         * modules/sys_socket (sys/socket.h): Likewise.
50634         * modules/sys_stat (sys/stat.h): Likewise.
50635         * modules/sysexits (sysexits.h): Likewise.
50636         * modules/unistd (unistd.h): Likewise.
50637         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50638         Add a "DO NOT EDIT" comment to the generated file.
50639         (func_import): Likewise for gnulib-comp.m4.
50640
50641 2006-10-07  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/gl_sublist.h: New file.
50644         * lib/gl_sublist.c: New file.
50645
50646 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50647
50648         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50649         name (relative to the original working directory) and the file
50650         name component (relative to the temporary working directory).  All
50651         callers changed.
50652         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50653         * lib/mkdir-p.c (make_dir_parents): Likewise.
50654         * lib/mkdir-p.h (make_dir_parents): Likewise.
50655
50656 2006-10-06  Eric Blake  <ebb9@byu.net>
50657
50658         Define several macros for use by the clean-temp module.
50659         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50661         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50662
50663         * lib/clean-temp.h (close_stream_temp): New declaration.
50664         * lib/clean-temp.c (includes): Pull in headers according to what
50665         other modules are in use.
50666         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50667
50668 2006-10-06  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50671         instead of fopen, fwriteerror.
50672
50673 2006-10-06  Bruno Haible  <bruno@clisp.org>
50674
50675         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
50676         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
50677         int.
50678         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
50679         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
50680         Return an error indicator.
50681         Suggested by Eric Blake.
50682
50683 2006-10-06  Bruno Haible  <bruno@clisp.org>
50684
50685         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
50686         Reported by Eric Blake.
50687
50688 2006-10-06  Bruno Haible  <bruno@clisp.org>
50689
50690         * modules/closeout (Description): Mention stderr too.
50691
50692 2006-10-06  Bruno Haible  <bruno@clisp.org>
50693         and Paul Eggert  <eggert@cs.ucla.edu>
50694
50695         * lib/closeout.c (close_stdout): Also close stderr.
50696         * lib/closeout.h: Update comment.
50697
50698 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50699
50700         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
50701         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
50702         * lib/dirchownmod.c: Include lchown.h.
50703         * lib/lchown.c: Don't include files that lchown.h now includes.
50704         Don't declare chown, since lchown.h now does that.
50705         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
50706         (lchown): Define to rpl_chown if lchown is declared but
50707         does not exist.  Declare using a prototype if lchown is not
50708         declared.  Add a copyright notice.
50709         * lib/mkstemp.h: Include <unistd.h>.
50710         * lib/openat.c: Include lchown.h.
50711
50712         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
50713         we now test for that separately.
50714         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
50715         rather than O_NOFOLLOW, when testing whether it's possible to
50716         avoid a race condition reliably.
50717         * lib/savewd.c (savewd_chdir): Likewise.
50718
50719         Remove macros that are no longer needed now that stdint.h is
50720         reliable.
50721         * lib/fsusage.c (UINTMAX_MAX): Remove.
50722         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
50723         * lib/utimecmp.c (SIZE_MAX): Remove.
50724
50725         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
50726
50727         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
50728         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
50729         O_NOATIME works.
50730
50731 2006-10-05  Bruno Haible  <bruno@clisp.org>
50732
50733         * lib/gl_list.h (gl_sortedlist_search_from_to,
50734         gl_sortedlist_indexof_from_to): New declarations.
50735         (gl_list_implementation): New fields sortedlist_search_from_to,
50736         sortedlist_indexof_from_to.
50737         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
50738         inline functions.
50739         * lib/gl_list.c (gl_sortedlist_search_from_to,
50740         gl_sortedlist_indexof_from_to): New functions.
50741         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
50742         function.
50743         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
50744         (gl_array_sortedlist_search_from_to): New function.
50745         (gl_array_list_implementation): Update.
50746         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
50747         function.
50748         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
50749         (gl_carray_sortedlist_search_from_to): New function.
50750         (gl_carray_list_implementation): Update.
50751         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
50752         gl_linked_sortedlist_indexof_from_to): New functions.
50753         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50754         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50755         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
50756         gl_tree_sortedlist_indexof_from_to): New functions.
50757         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50758         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50759         Update.
50760         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50761         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
50762         Update.
50763
50764 2006-10-05  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
50767         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
50768         (struct gl_list_implementation): Add fields search_from_to,
50769         indexof_from_to. Remove fields search, indexof.
50770         (gl_list_search): Use the search_from_to method.
50771         (gl_list_search_from, gl_list_search_from_to): New functions.
50772         (gl_list_indexof): Use the indexof_from_to method.
50773         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50774         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
50775         (gl_list_search_from, gl_list_search_from_to): New functions.
50776         (gl_list_indexof): Use the indexof_from_to method.
50777         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50778         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
50779         gl_array_indexof. Add start_index, end_index arguments.
50780         (gl_array_search_from_to): Renamed from gl_array_search. Add
50781         start_index, end_index arguments.
50782         (gl_array_remove, gl_array_list_implementation): Update.
50783         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
50784         gl_carray_indexof. Add start_index, end_index arguments.
50785         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
50786         start_index, end_index arguments.
50787         (gl_carray_remove, gl_carray_list_implementation): Update.
50788         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
50789         gl_linked_search. Add start_index, end_index arguments.
50790         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
50791         start_index, end_index arguments.
50792         (gl_linked_remove): Update.
50793         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50794         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50795         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
50796         field to 'size_t'.
50797         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
50798         gl_tree_search. Add start_index, end_index arguments.
50799         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50800         start_index, end_index arguments.
50801         (gl_tree_remove): Update.
50802         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50803         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50804         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
50805         function.
50806         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
50807         gl_tree_search. Add start_index, end_index arguments.
50808         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50809         start_index, end_index arguments.
50810         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50811         Update.
50812         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50813
50814 2006-10-05  Bruno Haible  <bruno@clisp.org>
50815
50816         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
50817
50818         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
50819         fwriteerror_temp): New declarations.
50820         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
50821         (descriptors): New variable.
50822         (cleanup): First, close the descriptors.
50823         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
50824         fclose_temp, fwriteerror_temp): New functions.
50825
50826 2006-10-04  Jim Meyering  <jim@meyering.net>
50827
50828         * lib/fts.c (fts_open): Tiny comment change.
50829
50830 2006-10-04  Bruno Haible  <bruno@clisp.org>
50831
50832         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
50833         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
50834         gl_LOCK_BODY.
50835         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
50836         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
50837         gl_LOCK_EARLY_BODY.
50838         (gl_LOCK): Require gl_LOCK_BODY.
50839
50840 2006-10-04  Bruno Haible  <bruno@clisp.org>
50841
50842         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50843         (gl_oset_search_atleast): New declaration.
50844         (struct gl_oset_implementation): Add field 'search_atleast'.
50845         (gl_oset_search_atleast): New inline function.
50846         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50847         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50848         (gl_array_oset_implementation): Update.
50849         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50850         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50851         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50852
50853 2006-10-04  Bruno Haible  <bruno@clisp.org>
50854
50855         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50856
50857 2006-10-03  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50860         from gl_avltreehash_list_implementation.
50861
50862 2006-10-03  Bruno Haible  <bruno@clisp.org>
50863
50864         * lib/gl_oset.c (gl_oset_add): Fix return type.
50865
50866 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50867
50868         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50869
50870 2006-10-02  Eric Blake  <ebb9@byu.net>
50871
50872         * modules/strnlen (Depends-on): Add extensions.
50873
50874 2006-10-02  Eric Blake  <ebb9@byu.net>
50875
50876         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50877         definition in 2.60+.
50878
50879 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50880
50881         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50882         checks.
50883
50884 2006-10-02  Bruno Haible  <bruno@clisp.org>
50885
50886         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50887         to the AUTOMAKE_OPTIONS.
50888         Reported by Jim Meyering.
50889
50890 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50891
50892         Work around bug in Solaris 10 /proc file system:
50893         /proc/self/fd/NNN/.. isn't the parent directory of
50894         the directory whose file descriptor is NNN.  This needs to
50895         be worked around at run time, not compile time, since a
50896         program might be built on Solaris 8, where things work, and
50897         run on Solaris 10.
50898         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50899         to use the following interface instead:
50900         (OPENAT_BUFFER_SIZE): New macro.
50901         (openat_proc_name): New function.
50902         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50903         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50904         Likewise.
50905         * lib/openat-proc.c: New file.
50906         * modules/openat (Files): Add lib/openat-proc.c.
50907         (Depends-on): Add same-inode, stdbool.
50908         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50909
50910 2006-09-29  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50913         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50914         argument. Set stdout_closed before testing for ferror, not after.
50915         (fwriteerror, fwriteerror_no_ebadf): New functions.
50916
50917 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50918
50919         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50920
50921 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50922
50923         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50924         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50925
50926 2006-09-28  Jim Meyering  <jim@meyering.net>
50927
50928         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50929         Include <unistd.h>.
50930
50931 2006-09-28  Bruno Haible  <bruno@clisp.org>
50932
50933         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50934         * modules/linkedhash-list (Depends-on): Likewise.
50935         * modules/rbtreehash-list (Depends-on): Likewise.
50936
50937 2006-09-28  Bruno Haible  <bruno@clisp.org>
50938
50939         * lib/strndup.h: Simplify the redefinition of strndup.
50940         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50941         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50942
50943 2006-09-28  Bruno Haible  <bruno@clisp.org>
50944
50945         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50946         * lib/gl_linkedhash_list.c: Likewise.
50947         * lib/gl_rbtreehash_list.c: Likewise.
50948
50949 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50950
50951         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50952         getaddrinfo.
50953
50954         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50955         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50956         it causes <stdio_ext.h> to cause a compile-time error.
50957         Problem reported by Nelson H. F. Beebe.
50958         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50959         of HAVE_DECL___PENDING.
50960
50961         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50962         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50963         declaration.
50964
50965 2006-09-27  Jim Meyering  <jim@meyering.net>
50966
50967         This file could end up with a definition for a function
50968         named __strndup, rather than rpl_strndup on a system with
50969         incomplete weak_alias support.
50970         * lib/strndup.c (strndup): Rename from __strndup.
50971         Remove #defines that used to map __strndup to strndup.
50972         Don't use K&R prototypes.
50973         Remove LIBC-related code, since this file is not sync'd with glibc.
50974         * lib/strndup.h: Revamp, accordingly.
50975         * m4/strndup.m4: Modernize.
50976
50977 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * modules/savewd (Depends-on): Add 'raise'.
50980         * lib/savewd.c: Include <signal.h>, for 'raise'.
50981
50982 2006-09-26  Jim Meyering  <jim@meyering.net>
50983
50984         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50985         when we detect Darwin 8.7.0's acl_get_file bug.
50986         Rearrange to perform the new (below) run-test while $LIBS
50987         contains any acl-related library.  Set USE_ACL at the end.
50988         (gl_ACL_GET_FILE): New function.
50989
50990 2006-09-26  Eric Blake  <ebb9@byu.net>
50991
50992         * lib/verror.c: Include <config.h> unconditionally.
50993
50994 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * modules/clock-time (Maintainer): Add self.
50997         * modules/getlogin_r (Depends-on): Add extensions.
50998
50999 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51000
51001         * modules/clock-time: New module.
51002         * modules/nanosleep (Depends-on): Add clock-time.
51003         * modules/gethrxtime (Depends-on): Likewise.
51004         * modules/gettime (Depends-on): Likewise.
51005         * modules/settime (Depends-on): Likewise.
51006
51007         * modules/fts-lgpl: Depend on openat.
51008         * modules/mkancesdirs: Depend on savewd.
51009         * modules/mkdir-p: Likewise.
51010
51011 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51012
51013         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
51014
51015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
51016         `gl_have_arbitrary_file_name_length_limit' to
51017         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
51018         actually works between configure runs.
51019
51020 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51021             Bruno Haible  <bruno@clisp.org>
51022
51023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
51024
51025 2006-09-25  Jim Meyering  <jim@meyering.net>
51026
51027         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
51028         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
51029
51030 2006-09-25  Eric Blake  <ebb9@byu.net>
51031
51032         * gnulib-tool (func_import, func_create_testdir): Fix typos in
51033         exec's in 2006-09-18 patch when shuffling fds.
51034
51035 2006-09-25  Bruno Haible  <bruno@clisp.org>
51036
51037         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
51038         Reported by Jim Meyering.
51039
51040 2006-09-24  Jim Meyering  <jim@meyering.net>
51041
51042         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
51043         compare a pointer against a literal "0".  That caused failures with
51044         at least HP-UX's hpcc.
51045
51046 2006-09-22  Simon Josefsson  <jas@extundo.com>
51047
51048         * modules/gc-sha1:
51049         * modules/gc-md4:
51050         * modules/gc-hmac-sha1:
51051         * modules/gc-hmac-md5:
51052         * modules/gc-des:
51053         * modules/gc-arcfour: Distribute more files.
51054
51055 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51056
51057         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
51058         (gl_linked_iterator_from_to): Initialize struct completely.
51059         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
51060         (gl_tree_iterator_from_to): Likewise
51061         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
51062         * lib/gl_array_list.c [lint] (gl_array_iterator)
51063         (gl_array_iterator_from_to): Likewise.
51064         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
51065         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
51066         (gl_carray_iterator_from_to): Likewise.
51067
51068         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
51069         * lib/md4.c (md4_process_block): Remove unused variable.
51070         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
51071         parentheses for clarity.
51072
51073 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51074
51075         * modules/bison-i18n (Depends-on): Add gettext.
51076
51077 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51078
51079         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
51080         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
51081         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
51082         also add missing comma that caused broken test.
51083         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
51084         stdlib.h, for `abort'.
51085         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
51086         variables.
51087         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
51088         include unistd.h if present, for `rmdir'.
51089         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
51090         variables.
51091         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
51092         in the process include standard headers for prototypes.
51093         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
51094         gets declared on GNU/Linux.
51095         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
51096         unistd.h, for `rmdir'.
51097         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
51098
51099         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
51100         always true.
51101         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
51102
51103         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
51104
51105 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51106
51107         * gnulib-tool (func_version): Create output all at once.  This
51108         may help avoid triggering unnecessary SIGPIPEs, and at any
51109         rate it doesn't hurt.
51110
51111 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51112             Bruno Haible  <bruno@clisp.org>
51113
51114         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
51115         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51116         * m4/signed.m4 (bh_C_SIGNED): Likewise.
51117
51118         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
51119         (gl_FUNC_VASPRINTF): Invoke it.
51120
51121 2006-09-22  Bruno Haible  <bruno@clisp.org>
51122
51123         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
51124         getloadavg.c as first argument.
51125
51126 2006-09-22  Bruno Haible  <bruno@clisp.org>
51127
51128         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
51129         at the beginning of the gl_INIT macro.
51130         * modules/getloadavg (configure.ac): Pass $gl_source_base to
51131         gl_GETLOADAVG.
51132
51133 2006-09-22  Bruno Haible  <bruno@clisp.org>
51134
51135         * gnulib-tool (func_create_megatestdir): Don't include the config-h
51136         module.
51137         Suggested by Ralf Wildenhues.
51138
51139 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51140
51141         Import this patch from libc:
51142
51143         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
51144
51145         * lib/regex_internal.c (re_string_reconstruct): Handle
51146         offset < pstr->valid_raw_len && pstr->offsets_needed case.
51147         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
51148         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
51149         re_string_context_at.
51150
51151         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
51152         now requires it.
51153         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
51154         gl_REGEX now does it for us.
51155         (gl_REGEX): Add test taken from
51156         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
51157
51158         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
51159         Check that large offsets work.  Modernize Autoconf usages.
51160         Prefer "yes" to mean a good thing rather than a bad.
51161         Don't put "#define mkstemp" in config.h, as this might interfere
51162         with standard system headers that "#define mkstemp mkstemp64".
51163
51164         * modules/mkstemp (Depends-on): Add extensions, so that
51165         mkstemp is visible on some platforms.
51166         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
51167         (Include): Change to "mkstemp.h" from <stdlib.h>.
51168         (Files): Add mkstemp.h.
51169
51170         * lib/mkstemp.h: New file, since some standard headers
51171         #define mkstemp.
51172         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
51173         Include "mkstemp.h".
51174         Make the _LIBC code resemble glibc original more,
51175         e.g., use K&R style.
51176         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
51177         (mkstemp): Remove, since mkstemp.h does this for us.
51178         * lib/stdlib--.h: Include mkstemp.h.
51179
51180         Import this patch from libc:
51181
51182         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
51183
51184         * lib/tempname.c (__gen_tempname): Change attempts_min
51185         into a macro.  Use preprocessor to decide how to initialize
51186         attempts [Coverity CID 67].
51187
51188 2006-09-20  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/mkdtemp.c: Import from libc.
51191         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
51192                 * sysdeps/posix/tempname.c (__gen_tempname): Change
51193                 attempts_min into a macro.  Use preprocessor to decide how to
51194                 initialize attempts [Coverity CID 67].
51195         2001-11-27  Paul Eggert  <eggert@twinsun.com>
51196                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
51197                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
51198
51199 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51200
51201         * gnulib-tool (func_exit): New function, to allow to pass the
51202         exit status portably through the trap.  Use everywhere.
51203         (--help, --version): Signal a write error.
51204         (trap): catch SIGPIPE, for write errors.
51205         Exit at the end of the trap, with the correct exit status.
51206
51207 2006-09-19  Karl Berry  <karl@gnu.org>
51208
51209         * doc/gnulib.texi: note about the license texinfo files.
51210
51211 2006-09-19  Eric Blake  <ebb9@byu.net>
51212
51213         * gnulib-tool: Avoid space-tab.
51214
51215 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51216
51217         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
51218         that prevented coreutils 6.1 from building.  Problem reported
51219         by Petter Reinholdtsen.
51220
51221 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51222
51223         * gnulib-tool (avoidlist): Fix typo that broke options like
51224         --avoid=lock that are used by coreutils bootstrap.
51225
51226 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
51227
51228         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
51229         more systematically.
51230
51231 2006-09-18  Jim Meyering  <jim@meyering.net>
51232
51233         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
51234
51235 2006-09-18  Bruno Haible  <bruno@clisp.org>
51236
51237         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
51238
51239 2006-09-18  Bruno Haible  <bruno@clisp.org>
51240
51241         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
51242         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
51243         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
51244         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
51245         * m4/gettext.m4: Require autoconf >= 2.52.
51246         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
51247         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
51248         of gl_cv_header_inttypes_h.
51249
51250 2006-09-18  Bruno Haible  <bruno@clisp.org>
51251
51252         * lib/javaversion.c: Include configmake.h.
51253
51254 2006-09-18  Bruno Haible  <bruno@clisp.org>
51255
51256         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
51257         avoid that the while loops be executed in a subshell.
51258
51259 2006-09-18  Bruno Haible  <bruno@clisp.org>
51260
51261         * MODULES.html.sh (func_module): Break long lines.
51262         Suggested by Bruce Korb <bkorb@gnu.org>.
51263
51264 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51265
51266         Speed up by a factor of 1.12.
51267         * gnulib-tool (nl): New variable.
51268         (func_import): Rewrite include directive extraction to only read each
51269         directive once.
51270
51271 2006-09-17  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/javaversion (Makefile.am): Remove DEFS setting.
51274         (Depends-on): Add configmake, for PKGDATADIR definition.
51275
51276 2006-09-17  Bruno Haible  <bruno@clisp.org>
51277
51278         * gnulib-tool (func_create_testdir): Rewrite all files at once.
51279
51280 2006-09-17  Bruno Haible  <bruno@clisp.org>
51281
51282         * gnulib-tool (func_append): New function, stolen from libtool.m4.
51283         (func_modules_transitive_closure, func_modules_add_dummy,
51284         func_modules_to_filelist, func_import, func_create_testdir,
51285         func_create_megatestdir, ...): Use it wherever possible.
51286         Suggested by Ralf Wildenhues.
51287
51288 2006-09-16  Karl Berry  <karl@gnu.org>
51289
51290         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
51291         to avoid sectioning errors.
51292         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
51293         [ifinfo]: blank line after @center-ed titles.
51294         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
51295         Spell FSF address consistently with others.
51296         (These changes approved by rms.)
51297
51298 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51299
51300         Speed up by a factor of 1.61.
51301         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
51302         already checked module names again.
51303
51304 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51305
51306         Speed up by a factor of 1.13.
51307         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
51308         for new_files, and the input to func_add_or_update.
51309
51310 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51311
51312         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
51313         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
51314
51315 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         * modules/mkancesdirs (Depends-on): Add fcntl.
51318         * modules/savewd: New file.
51319         * MODULES.html.sh (File system functions): Add savewd.
51320
51321         * modules/configmake (Makefile.am): Add support for the
51322         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
51323
51324 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * m4/savewd.m4: New file.
51327
51328 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
51331         (dirchownmod): New arg FD.  All callers changed.
51332         Use FD rather than opening the directory ourself, as opening is
51333         now the caller's responsibility.
51334         * lib/dirchownmod.h: Likewise.
51335         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
51336         hosts that require <sys/types.h> before <sys/stat.h>.  Include
51337         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
51338         (test_dir): Remove.
51339         (mkancesdirs): Return length of prefix of FILE that has already
51340         been made, or -2 if there is a child doing the work.  Redo
51341         algorithm so that it is O(N) rather than O(N**2).  Optimize away
51342         ".", and treat ".." specially since it might stray back into
51343         already-created areas.  Use a subprocess if necessary.  New arg
51344         WD; all users changed.  MAKE_DIR function should now return 1
51345         if it creates a directory that is not readable.  Return -2 if
51346         a child process is spun off.
51347         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
51348         Adjust signature to match code.
51349         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
51350         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
51351         all users changed.
51352         * lib/savewd.c, lib/savewd.h: New files.
51353
51354 2006-09-15  Jim Meyering  <jim@meyering.net>
51355
51356         * modules/rename-dest-slash: New module.
51357         * MODULES.html.sh (posix_compat): Add it here.
51358
51359         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
51360
51361 2006-09-15  Jim Meyering  <jim@meyering.net>
51362
51363         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
51364         file.
51365
51366         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
51367
51368 2006-09-15  Jim Meyering  <jim@meyering.net>
51369
51370         * lib/rename-dest-slash.c (has_trailing_slash): Use
51371         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
51372         (rpl_rename_dest_slash): Perform the cheaper trailing slash
51373         test before testing whether SRC is a directory.
51374         Suggestions from Bruno Haible.
51375
51376         Avoid a warning about an unused variable.
51377         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
51378         into the #ifdef block where it's used.
51379
51380         * lib/rename-dest-slash.c: New file.
51381
51382 2006-09-14  Bruno Haible  <bruno@clisp.org>
51383
51384         * lib/allocsa.c: Include <config.h> unconditionally.
51385         * lib/asnprintf.c: Likewise.
51386         * lib/asprintf.c: Likewise.
51387         * lib/c-strcasecmp.c: Likewise.
51388         * lib/c-strcasestr.c: Likewise.
51389         * lib/c-strncasecmp.c: Likewise.
51390         * lib/c-strstr.c: Likewise.
51391         * lib/classpath.c: Likewise.
51392         * lib/clean-temp.c: Likewise.
51393         * lib/concatpath.c: Likewise.
51394         * lib/copy-file.c: Likewise.
51395         * lib/csharpcomp.c: Likewise.
51396         * lib/csharpexec.c: Likewise.
51397         * lib/execute.c: Likewise.
51398         * lib/fatal-signal.c: Likewise.
51399         * lib/findprog.c: Likewise.
51400         * lib/fwriteerror.c: Likewise.
51401         * lib/gl_array_list.c: Likewise.
51402         * lib/gl_array_oset.c: Likewise.
51403         * lib/gl_avltree_list.c: Likewise.
51404         * lib/gl_avltree_oset.c: Likewise.
51405         * lib/gl_avltreehash_list.c: Likewise.
51406         * lib/gl_carray_list.c: Likewise.
51407         * lib/gl_linked_list.c: Likewise.
51408         * lib/gl_linkedhash_list.c: Likewise.
51409         * lib/gl_list.c: Likewise.
51410         * lib/gl_oset.c: Likewise.
51411         * lib/gl_rbtree_list.c: Likewise.
51412         * lib/gl_rbtree_oset.c: Likewise.
51413         * lib/gl_rbtreehash_list.c: Likewise.
51414         * lib/imaxabs.c: Likewise.
51415         * lib/imaxdiv.c: Likewise.
51416         * lib/javacomp.c: Likewise.
51417         * lib/javaexec.c: Likewise.
51418         * lib/javaversion.c: Likewise.
51419         * lib/linebreak.c: Likewise.
51420         * lib/localcharset.c: Likewise.
51421         * lib/lock.c: Likewise.
51422         * lib/mbchar.c: Likewise.
51423         * lib/mbswidth.c: Likewise.
51424         * lib/mkdtemp.c: Likewise.
51425         * lib/pipe.c: Likewise.
51426         * lib/printf-args.c: Likewise.
51427         * lib/printf-parse.c: Likewise.
51428         * lib/progname.c: Likewise.
51429         * lib/progreloc.c: Likewise.
51430         * lib/readlink.c: Likewise.
51431         * lib/sh-quote.c: Likewise.
51432         * lib/stpcpy.c: Likewise.
51433         * lib/stpncpy.c: Likewise.
51434         * lib/strcasecmp.c: Likewise.
51435         * lib/strcasestr.c: Likewise.
51436         * lib/strcspn.c: Likewise.
51437         * lib/striconv.c: Likewise.
51438         * lib/strncasecmp.c: Likewise.
51439         * lib/strnlen1.c: Likewise.
51440         * lib/strstr.c: Likewise.
51441         * lib/strtok_r.c: Likewise.
51442         * lib/tls.c: Likewise.
51443         * lib/tmpdir.c: Likewise.
51444         * lib/unicodeio.c: Likewise.
51445         * lib/unsetenv.c: Likewise.
51446         * lib/vasnprintf.c: Likewise.
51447         * lib/vasprintf.c: Likewise.
51448         * lib/wait-process.c: Likewise.
51449         * lib/xallocsa.c: Likewise.
51450         * lib/xsetenv.c: Likewise.
51451         * lib/xstriconv.c: Likewise.
51452
51453 2006-09-13  Simon Josefsson  <jas@extundo.com>
51454
51455         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51456         that internally, suggested by Ralf Wildenhues
51457         <Ralf.Wildenhues@gmx.de>.
51458
51459 2006-09-13  Simon Josefsson  <jas@extundo.com>
51460
51461         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51462         @LIBOBJS@.
51463         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51464
51465 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51466
51467         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51468         longer worry about uses that don't define HAVE_CONFIG_H.
51469         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51470         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51471         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51472         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51473         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51474         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51475         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51476         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51477         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51478         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51479         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51480         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51481         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51482         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51483         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51484         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51485         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51486         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51487         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51488         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51489         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51490         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51491         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51492         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51493         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51494         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51495         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51496         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51497         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51498         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51499         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51500         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51501         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51502         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51503         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51504         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51505         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51506         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51507         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51508         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51509         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51510         Likewise.
51511
51512 2006-09-13  Eric Blake  <ebb9@byu.net>
51513
51514         * lib/getopt.c: Fix typo in last commit.
51515
51516 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51517
51518         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51519         dgettext.
51520
51521 2006-09-12  Jim Meyering  <jim@meyering.net>
51522
51523         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51524         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51525         Reported by Nelson H. F. Beebe.
51526
51527 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51528
51529         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51530         program_invocation_name and program_invocation_short_name are
51531         initialized.
51532         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51533         and program_invocation_short_name to argp.h, so they are visible
51534         to user programs.
51535         * lib/argp.h: Likewise
51536
51537 2006-09-10  Bruno Haible  <bruno@clisp.org>
51538
51539         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51540         m4/inttypes_h.m4, m4/uintmax_t.m4.
51541
51542 2006-09-10  Bruno Haible  <bruno@clisp.org>
51543
51544         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51545         gl_AC_TYPE_UINTMAX_T.
51546
51547 2006-09-10  Bruno Haible  <bruno@clisp.org>
51548
51549         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51550
51551 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51552
51553         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51554         convention.  Text proposed by Bruno Haible.
51555         (struct argp_option): Document the use of N_() wrappers.
51556
51557         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51558         '\v', and translate the two parts separately, instead of feeding
51559         the whole string to gettext.  This allows to exclude
51560         '\v' from the strings visible to the translator by writing doc
51561         strings as N_("..") "\v" N_("..").
51562
51563 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51564
51565         * config/srclist.txt: Undo latest change; the bug was fixed.
51566
51567 2006-09-09  Bruno Haible  <bruno@clisp.org>
51568
51569         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51570         assignments if building a library without libtool.
51571         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51572         in func_emit_lib_Makefile_am.
51573         (func_import): When building a static library libfoo.a, arrange to
51574         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51575         (func_create_testdir): Likewise.
51576         * modules/gc (configure.ac, Makefile.am): If building statically,
51577         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51578         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51579         * modules/striconv (configure.ac, Makefile.am): Likewise.
51580         Based on a suggestion by Ralf Wildenhues.
51581
51582 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51583
51584         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51585         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51586         Also:
51587
51588         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51589         Add year_2050_test to catch glibc bug 2821
51590         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51591
51592         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51593         Prefer #ifdef to #if.
51594
51595         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51596         Return from 'main' instead of calling 'exit'.
51597
51598 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51601         returned the maximum time_t value rather than (time_t) -1.
51602         Problem originally reported by William Bardwell
51603         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51604
51605         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51606         Moved to here ...
51607         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51608         ... from here.
51609
51610 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51611
51612         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51613         2821 is fixed.
51614
51615 2006-09-08  Jim Meyering  <jim@meyering.net>
51616
51617         Don't make generated files read-only.  That would bother too many
51618         people.  However, do retain the ability to work when targets are
51619         read-only: remove the destination and temporary files before writing
51620         them (when generated via sed or echo), or by using the -f option for
51621         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51622         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51623         * modules/byteswap, modules/configmake, modules/fcntl:
51624         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51625         * modules/localcharset, modules/netinet_in, modules/poll:
51626         * modules/stdbool, modules/stdint, modules/sys_select:
51627         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51628
51629 2006-09-08  Jim Meyering  <jim@meyering.net>
51630
51631         Avoid new build failure on FreeBSD 6.0.
51632         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51633         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51634         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51635
51636 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51637
51638         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51639
51640 2006-09-07  Jim Meyering  <jim@meyering.net>
51641
51642         Fix global typo in last change: use chmod u-w, not chmod u-x.
51643         Spotted by Paul Eggert and Bruce Korb.
51644         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51645         * modules/byteswap, modules/configmake, modules/fcntl:
51646         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51647         * modules/localcharset, modules/netinet_in, modules/poll:
51648         * modules/stdbool, modules/stdint, modules/sys_select:
51649         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51650
51651 2006-09-06  Jim Meyering  <jim@meyering.net>
51652
51653         Make generated files be read-only.
51654         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51655         Ensure that each generated file is now read-only.
51656         * modules/argz: Likewise.
51657         * modules/arpa_inet: Likewise.
51658         * modules/byteswap: Likewise.
51659         * modules/configmake: Likewise.
51660         * modules/fcntl: Likewise.
51661         * modules/fnmatch: Likewise.
51662         * modules/getopt: Likewise.
51663         * modules/glob: Likewise.
51664         * modules/inttypes: Likewise.
51665         * modules/netinet_in: Likewise.
51666         * modules/poll: Likewise.
51667         * modules/stdbool: Likewise.
51668         * modules/stdint: Likewise.
51669         * modules/sys_select: Likewise.
51670         * modules/sys_socket: Likewise.
51671         * modules/sys_stat: Likewise.
51672         * modules/sysexits: Likewise.
51673         * modules/localcharset: Same as above, but continue using temporary
51674         file named "t-$@" (why different?) rather than the "$@-t" used
51675         everywhere else.
51676
51677         * modules/sysexits (Makefile.am): Replace literal occurrences
51678         of "sysexit.h" more readable, and more consistent, "$@".
51679
51680 2006-09-06  Bruno Haible  <bruno@clisp.org>
51681
51682         * modules/striconv: New file.
51683         * modules/xstriconv: New file.
51684         * MODULES.html.sh (Internationalization functions): Add striconv,
51685         xstriconv.
51686
51687 2006-09-06  Bruno Haible  <bruno@clisp.org>
51688
51689         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
51690         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
51691         not using libtool correctly.
51692
51693 2006-09-06  Bruno Haible  <bruno@clisp.org>
51694
51695         * lib/striconv.h: New file.
51696         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
51697         iconvstring.c.
51698         * lib/xstriconv.h: New file.
51699         * lib/xstriconv.c: New file.
51700
51701 2006-09-06  Bruno Haible  <bruno@clisp.org>
51702
51703         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51704         lib_..._LDFLAGS.
51705
51706 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51707
51708         * lib/argz_.h: Sync from Libtool.
51709
51710         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
51711                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51712
51713         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
51714
51715 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51716
51717         * modules/trim: New file.
51718
51719 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51720
51721         * lib/trim.h: New file.
51722         * lib/trim.c: New file.
51723
51724 2006-09-05  Bruno Haible  <bruno@clisp.org>
51725
51726         * MODULES.html.sh (String handling): Add trim.
51727
51728 2006-09-04  Karl Berry  <karl@gnu.org>
51729
51730         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
51731         until next release.
51732
51733 2006-09-03  Bruno Haible  <bruno@clisp.org>
51734
51735         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
51736         correctly.
51737
51738 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51739
51740         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
51741         not gl_GETLOADAVG.  Omit unneeded semicolons.
51742         Problems reported by Ralf Wildenhues in
51743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51744         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
51745         at the end, which is the usual gnulib style.
51746
51747         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
51748         of doing all the work ourselves.
51749         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
51750         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
51751
51752 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51753
51754         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
51755         Problem reported by Ralf Wildenhues in
51756         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51757
51758         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
51759         HAVE_STRUCT_STATFS_F_FSTYPENAME.
51760
51761 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51762
51763         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
51764         yesterday's patch by changing test -n to test -z.
51765
51766 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51767
51768         * modules/getloadavg (Files): Add m4/getloadavg.m4.
51769         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
51770         the former is now obsolescent.
51771
51772         * modules/chdir-long (Depends-on): Add fcntl.
51773
51774 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51775
51776         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
51777         obsolescent, and programs should use gnulib instead.
51778         * m4/getloadavg.m4: New file, with contents taken from Autoconf
51779         but with prefixes changed.
51780
51781 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
51784         or stdbool.h, because they might not exist while configuring.
51785
51786         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
51787         Don't include unistd.h or limits.h; not needed, since chdir-long.h
51788         does that for us.
51789         (O_DIRECTORY): Remove.
51790
51791 2006-08-31  Eric Blake  <ebb9@byu.net>
51792
51793         * gnulib-tool: Don't let emacs change spaces to TAB.
51794
51795 2006-08-31  Bruno Haible  <bruno@clisp.org>
51796
51797         * gnulib-tool: When calling func_import more than once, do it in a
51798         subshell.
51799         Reported by Eric Blake <ebb9@byu.net>.
51800
51801 2006-08-31  Bruno Haible  <bruno@clisp.org>
51802
51803         * gnulib-tool (nl): Remove variable.
51804         (sed_transform_lib_file): Use more robust test for config-h module.
51805         (func_import): Fix typo in 2006-08-25 patch.
51806
51807 2006-08-31  Bruno Haible  <bruno@clisp.org>
51808
51809         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
51810         specified, augment Makefile.am variables instead of assigning them.
51811
51812 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51813
51814         Work around a bug in both the Linux and SunOS 64-bit kernels:
51815         nanosleep mishandles sleeps for longer than 2**31 seconds.
51816         Problem reported by Frank v Waveren in
51817         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
51819         Check for nanosleep bug.
51820         (LIB_NANOSLEEP): Append clock_gettime library if needed.
51821
51822 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51823
51824         Work around a bug in both the Linux and SunOS 64-bit kernels:
51825         nanosleep mishandles sleeps for longer than 2**31 seconds.
51826         Problem reported by Frank v Waveren in
51827         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51828         * lib/nanosleep.c (BILLION): New constant.
51829         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
51830         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
51831         implementation.
51832
51833 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51834
51835         * modules/nanosleep (Depends-on): Add gettime.
51836
51837 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51838         and Simon Josefsson  <jas@extundo.com>
51839         and Oskar Liljeblad  <oskar@osk.mine.nu>
51840
51841         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51842         * gnulib-tool (func_import): New license type 'unmodifiable license
51843         text'.
51844         * modules/fdl: Use it.  Longer description.
51845         * module/gpl, module/lgpl: New files.
51846
51847 2006-08-30  Jim Meyering  <jim@meyering.net>
51848
51849         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51850         shadowing the parameter.
51851
51852 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51853
51854         Sync from Libtool:
51855
51856         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51857
51858         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51859         sharing with gnulib.  Report by Eric Blake.
51860
51861 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51862
51863         * modules/isapipe: New file.
51864         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51865
51866 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * modules/configmake (Makefile.am): Add a comment, and omit
51869         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51870         by Bruno Haible.
51871
51872 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         * m4/isapipe.m4: New file.
51875
51876 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51877
51878         * lib/isapipe.c, lib/isapipe.h: New files.
51879
51880 2006-08-29  Jim Meyering  <jim@meyering.net>
51881
51882         * modules/configmake (Makefile.am): Make configmake.h depend on
51883         Makefile.  Otherwise, a stale configmake.h could hang around.
51884
51885 2006-08-29  Eric Blake  <ebb9@byu.net>
51886
51887         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51888         resolution of upstream bug 3044.
51889
51890 2006-08-29  Bruno Haible  <bruno@clisp.org>
51891
51892         * modules/localcharset (Depends-on): Add configmake.
51893         (Makefile.am): Remove setting of LIBDIR through DEFS.
51894
51895 2006-08-29  Bruno Haible  <bruno@clisp.org>
51896
51897         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51898         defined.
51899
51900 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         * modules/fcntl: New file.
51903         * modules/chdir-safer (Depends-on): Add fcntl.
51904         * modules/fts: Likewise.
51905         * modules/mkdir-p: Likewise.
51906
51907         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51908         This undoes the most recent change, since we're now addressing the
51909         problem in a different way.
51910
51911         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51912         into output, since the output might be called Makefile.am even
51913         if $makefile_name is something different.
51914         (func_import): Use $makefile_am rather than
51915         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51916         empty.
51917
51918         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51919
51920 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51921
51922         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51923         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51924         recent change to stdint.m4, since we're now addressing the problem in a
51925         different way.
51926
51927 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51928
51929         * m4/fcntl_h.m4: New file.
51930
51931 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51932
51933         * lib/fcntl_.h: New file.
51934         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51935         the fcntl module.
51936         * lib/dirchownmod.c: Likewise.
51937         * lib/fts.c: Likewise.
51938
51939         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51940         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51941         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51942         just before including <inttypes.h>, to avoid circular inclusion.
51943
51944 2006-08-28  Jim Meyering  <jim@meyering.net>
51945
51946         * doc/visibility.texi: Actually read and correct the grammar of the
51947         sentence affected by yesterday's change.
51948
51949 2006-08-28  Eric Blake  <ebb9@byu.net>
51950
51951         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51952         needs wrapper.
51953
51954 2006-08-28  Eric Blake  <ebb9@byu.net>
51955
51956         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51957
51958 2006-08-28  Eric Blake  <ebb9@byu.net>
51959
51960         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51961
51962 2006-08-28  Bruno Haible  <bruno@clisp.org>
51963
51964         * modules/c-strstr: New file, from GNU gettext.
51965         * MODULES.html.sh (String handling): Add c-strstr.
51966
51967 2006-08-28  Bruno Haible  <bruno@clisp.org>
51968
51969         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51970         macros.
51971         Reported by Eric Blake.
51972
51973 2006-08-28  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51976         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51977         * lib/vasprintf.c: Include errno.h, limits.h.
51978         (EOVERFLOW): New fallback definition.
51979         (vasprintf): Test here whether the string length is > INT_MAX.
51980         * lib/vsnprintf.c: Include errno.h, limits.h.
51981         (EOVERFLOW): New fallback definition.
51982         (vsnprintf): Fix bug when generated string was too long for the buffer.
51983         Test here whether the string length is > INT_MAX.
51984
51985 2006-08-28  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/inttypes_.h (SCNX*): Remove definitions.
51988         Reported by Eric Blake.
51989
51990 2006-08-28  Bruno Haible  <bruno@clisp.org>
51991
51992         * lib/c-strstr.h: New file, from GNU gettext.
51993         * lib/c-strstr.c: New file, from GNU gettext.
51994
51995 2006-08-28  Bruno Haible  <bruno@clisp.org>
51996
51997         * gnulib-tool: Reorder some statements.
51998
51999 2006-08-28  Bruno Haible  <bruno@clisp.org>
52000
52001         * gnulib-tool: New option --makefile-name.
52002         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
52003         $makefile_name.
52004         (func_import): Write $makefile_name to the cache file, and read it from
52005         there unless explicitly specified. Use $makefile_name as file name
52006         instead of Makefile.am. Adjust the recommendations accordingly.
52007
52008 2006-08-28  Bruno Haible  <bruno@clisp.org>
52009
52010         * gnulib-tool (func_verify_module): Check against misapplying patch.
52011
52012 2006-08-28  Bruno Haible  <bruno@clisp.org>
52013
52014         * gnulib-tool (func_relativize, func_relconcat): New functions.
52015         Give an error if --local-dir is given with --update.
52016         Remove trailing slashes from $local_gnulib_dir.
52017         (func_import): Store the relativized $local_gnulib_dir in
52018         gnulib-cache.m4, and read it from there if not specified explicitly.
52019
52020 2006-08-28  Bruno Haible  <bruno@clisp.org>
52021
52022         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
52023         is the current directory. Respect also $local_gnulib_dir.
52024
52025 2006-08-28  Bruno Haible  <bruno@clisp.org>
52026             Simon Josefsson  <jas@extundo.com>
52027
52028         BeOS portability.
52029         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
52030
52031 2006-08-27  Jim Meyering  <jim@meyering.net>
52032
52033         * doc/visibility.texi: Remove duplicate word: "pointer".
52034
52035 2006-08-26  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
52038         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
52039         (Makefile.am): Create inttypes.h from inttypes_.h.
52040         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
52041
52042         * modules/imaxabs: New file.
52043
52044         * modules/imaxdiv: New file.
52045
52046 2006-08-26  Bruno Haible  <bruno@clisp.org>
52047
52048         * m4/inttypes.m4: New file.
52049         * m4/_inttypes_h.m4: Remove file.
52050         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
52051         PRI_MACROS_BROKEN.
52052         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
52053
52054         * m4/imaxabs.m4: New file.
52055
52056         * m4/imaxdiv.m4: New file.
52057
52058 2006-08-26  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/inttypes_.h: New file.
52061         * lib/inttypes.h: Remove file.
52062         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
52063
52064         * lib/imaxabs.c: New file.
52065
52066         * lib/imaxdiv.c: New file.
52067
52068 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52069
52070         New config-h module, so that "make" output needn't be cluttered
52071         by -DHAVE_CONFIG_H.
52072         * MODULES.html.sh (Support for building libraries and executables):
52073         Add config-h.
52074         * modules/config-h: New file.
52075         * gnulib-tool (nl, sed_transform_lib_file): New vars.
52076         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
52077         the config-h module is used.
52078
52079         New configmake module, so that "make" output needn't be cluttered
52080         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
52081         * MODULES.html.sh (Support for building libraries and executables):
52082         Add configmake.
52083         * modules/configmake: New file.
52084
52085 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52086
52087         * m4/config-h.m4: New file.
52088
52089 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52090
52091         * config/srclist.txt: Add elisp-comp.
52092
52093 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         * MODULES.html.sh (Support for building libraries and executables):
52096         Add elisp-comp.
52097         * build-aux/elisp-comp: New file.
52098         * modules/elisp-comp: New file.
52099
52100 2006-08-24  Bruno Haible  <bruno@clisp.org>
52101
52102         * gnulib-tool (func_create_testdir): Use non-default values of
52103         sourcebase and m4base.
52104
52105 2006-08-24  Bruno Haible  <bruno@clisp.org>
52106
52107         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
52108         HTML structure.
52109
52110 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52111
52112         * modules/openat (Depends-on): Add lchown.
52113
52114 2006-08-23  Bruno Haible  <bruno@clisp.org>
52115
52116         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
52117         of gl_LOCK_EARLY instead of gl_LOCK.
52118
52119 2006-08-23  Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
52122         on OSF/1 to no.
52123         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
52124
52125 2006-08-23  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
52128         as unusable.
52129
52130         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
52131         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
52132         (gl_LOCK): New macro.
52133
52134 2006-08-22  Simon Josefsson  <jas@extundo.com>
52135
52136         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
52137         to md5 module.
52138
52139 2006-08-22  Simon Josefsson  <jas@extundo.com>
52140
52141         * MODULES.html.sh: Add "Support for maintaining and release
52142         projects".
52143
52144         * build-aux/gnupload: New file, from coreutils.
52145
52146 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52147
52148         Avoid the need for AC_LIBSOURCES in m4 macros.
52149         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
52150         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
52151         * modules/check-version (EXTRA_DIST): Add check-version.h.
52152         * modules/crc (EXTRA_DIST): Add crc.h.
52153         * modules/des (EXTRA_DIST): Add des.h.
52154         * modules/gc (EXTRA_DIST): Add gc.h.
52155         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
52156         * modules/getline (EXTRA_DIST): Add getline.h.
52157         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
52158         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
52159         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
52160         * modules/md2 (EXTRA_DIST): Add md2.h.
52161         * modules/md4 (EXTRA_DIST): Add md4.h.
52162         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
52163         * modules/read-file (EXTRA_DIST): Add read-file.h.
52164         * modules/readline (EXTRA_DIST): Add readline.h.
52165         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
52166         rijndael-api-fst.h.
52167
52168 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52169
52170         * m4/rijndael.m4 (gl_ARCFOUR):
52171         * m4/arctwo.m4 (gl_ARCTWO):
52172         * m4/check-version.m4 (gl_CHECK_VERSION):
52173         * m4/crc.m4 (gl_CRC):
52174         * m4/des.m4 (gl_DES):
52175         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
52176         * m4/gc.m4 (gl_GC):
52177         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
52178         * m4/getline.m4 (gl_FUNC_GETLINE):
52179         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
52180         * m4/hmac-md5.m4 (gl_HMAC_MD5):
52181         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
52182         * m4/md2.m4 (gl_MD2):
52183         * m4/md4.m4 (gl_MD4):
52184         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
52185         * m4/read-file.m4 (gl_FUNC_READ_FILE):
52186         * m4/readline.m4 (gl_FUNC_READLINE):
52187         * m4/rijndael.m4 (gl_RIJNDAEL):
52188         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52189         to get the necessary .h files and whatnot.
52190
52191 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
52194         gnulib rather than the other way around.
52195         * config/srclistvars.sh (COREUTILS): Remove.
52196
52197 2006-08-22  Jim Meyering  <jim@meyering.net>
52198
52199         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
52200
52201         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
52202
52203 2006-08-22  Eric Blake  <ebb9@byu.net>
52204
52205         * modules/regexprops-generic: New file.
52206         * MODULES.html.sh (Support for building documentation): List it.
52207
52208 2006-08-22  Eric Blake  <ebb9@byu.net>
52209
52210         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
52211         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52212         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
52213         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
52214
52215 2006-08-22  Bruno Haible  <bruno@clisp.org>
52216
52217         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
52218         and lib_LTLIBRARIES like the other lib_* variables.
52219
52220 2006-08-22  Bruno Haible  <bruno@clisp.org>
52221
52222         * build-aux/x-to-1.in: New file, from GNU gettext.
52223
52224 2006-08-22  Bruno Haible  <bruno@clisp.org>
52225
52226         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
52227         <utmpx.h> exists.
52228
52229 2006-08-22  Bruno Haible  <bruno@clisp.org>
52230
52231         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
52232         <utmpx.h> exists.
52233
52234 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52235
52236         BeOS portability.
52237         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
52238         exist.
52239         Problem reported by Bruno Haible.
52240
52241 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52242
52243         Avoid the need for AC_LIBSOURCES in m4 macros.
52244         * modules/acl (EXTRA_DIST): Add acl.h.
52245         * modules/argmatch (Files): Add m4/argmatch.m4.
52246         (configure.ac): Add gl_ARGMATCH.
52247         (EXTRA_DIST): Renamed from lib_SOURCES, for
52248         consistency with the other modules.  Remove argmatch.c.
52249         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
52250         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
52251         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
52252         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
52253         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
52254         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
52255         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
52256         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
52257         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
52258         * modules/closeout (EXTRA_DIST): Add closeout.h.
52259         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
52260         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
52261         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
52262         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
52263         dirname.h; remove basename.c and stripslash.c.
52264         * modules/exclude (EXTRA_DIST): Add exclude.h.
52265         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
52266         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
52267         * modules/file-type (EXTRA_DIST): Add file-type.h.
52268         * modules/filemode (EXTRA_DIST): Add filemode.h.
52269         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
52270         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52271         * modules/fpending (EXTRA_DIST): Add __fpending.h.
52272         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
52273         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
52274         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
52275         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
52276         * modules/getdate (EXTRA_DIST): Add getdate.c.
52277         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
52278         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
52279         * modules/getpass (EXTRA_DIST): Add getpass.h.
52280         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
52281         * modules/group-member (EXTRA_DIST): Add group-member.h.
52282         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
52283         * modules/hash (EXTRA_DIST): Add hash.h.
52284         * modules/human (EXTRA_DIST): Add human.h.
52285         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
52286         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
52287         * modules/lchown (EXTRA_DIST): Add lchown.h.
52288         * modules/long-options (EXTRA_DIST): Add long-options.h.
52289         * modules/lstat (EXTRA_DIST): Add lstat.h.
52290         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
52291         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
52292         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
52293         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
52294         * modules/memxor (EXTRA_DIST): Add memxor.h.
52295         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
52296         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
52297         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
52298         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
52299         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
52300         * modules/physmem (EXTRA_DIST): Add physmem.h.
52301         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
52302         * modules/posixver (EXTRA_DIST): Add posixver.h.
52303         * modules/quote (EXTRA_DIST): Add quote.h.
52304         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
52305         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
52306         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
52307         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
52308         regex_internal.h regexec.c.
52309         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
52310         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
52311         * modules/same (EXTRA_DIST): Add same.h.
52312         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
52313         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
52314         * modules/savedir (EXTRA_DIST): Add savedir.h.
52315         * modules/sha1 (EXTRA_DIST): Add sha1.h.
52316         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
52317         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
52318         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
52319         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
52320         * modules/strdup (EXTRA_DIST): Add strdup.h.
52321         * modules/strftime (EXTRA_DIST): Add strftime.h.
52322         * modules/strndup (EXTRA_DIST): Add strndup.h.
52323         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
52324         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
52325         * modules/time_r (EXTRA_DIST): Add time_r.h.
52326         * modules/timespec (EXTRA_DIST): Add timespec.h.
52327         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52328         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
52329         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
52330         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
52331         * modules/userspec (EXTRA_DIST): Add userspec.h.
52332         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
52333         * modules/utimens (EXTRA_DIST): Add utimens.h.
52334         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
52335         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
52336         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
52337         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
52338         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
52339         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
52340         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
52341         * modules/yesno (EXTRA_DIST): Add yesno.h.
52342
52343 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52344
52345         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
52346
52347         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
52348         * m4/dev-ino.m4, same-inode.m4: Remove.
52349
52350         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
52351         * m4/acl.m4 (AC_FUNC_ACL):
52352         * m4/backupfile.m4 (gl_BACKUPFILE):
52353         * m4/c-strtod.m4 (gl_C99_STRTOLD):
52354         * m4/canon-host.m4 (gl_CANON_HOST):
52355         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52356         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
52357         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
52358         * m4/cloexec.m4 (gl_CLOEXEC):
52359         * m4/close-stream.m4 (gl_CLOSE_STREAM):
52360         * m4/closeout.m4 (gl_CLOSEOUT):
52361         * m4/dirfd.m4 (gl_FUNC_DIRFD):
52362         * m4/dirname.m4 (gl_DIRNAME):
52363         * m4/exclude.m4 (gl_EXCLUDE):
52364         * m4/exitfail.m4 (gl_EXITFAIL):
52365         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
52366         * m4/file-type.m4 (gl_FILE_TYPE):
52367         * m4/filemode.m4 (gl_FILEMODE):
52368         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
52369         * m4/fpending.m4 (gl_FUNC_FPENDING):
52370         * m4/fprintftime.m4 (gl_FPRINTFTIME):
52371         * m4/fts.m4 (gl_FUNC_FTS):
52372         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
52373         * m4/getdate.m4 (gl_GETDATE):
52374         * m4/gethrxtime.m4 (gl_GETHRXTIME):
52375         * m4/getpagesize.m4 (gl_GETPAGESIZE):
52376         * m4/getpass.m4 (gl_FUNC_GETPASS):
52377         * m4/gettime.m4 (gl_GETTIME):
52378         * m4/getugroups.m4 (gl_GETUGROUPS):
52379         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
52380         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
52381         * m4/hard-locale.m4 (gl_HARD_LOCALE):
52382         * m4/hash.m4 (gl_HASH):
52383         * m4/idcache.m4 (gl_IDCACHE):
52384         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
52385         * m4/lchown.m4 (gl_FUNC_LCHOWN):
52386         * m4/long-options.m4 (gl_LONG_OPTIONS):
52387         * m4/lstat.m4 (gl_FUNC_LSTAT):
52388         * m4/md5.m4 (gl_MD5):
52389         * m4/memcasecmp.m4 (gl_MEMCASECMP):
52390         * m4/memcoll.m4 (gl_MEMCOLL):
52391         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
52392         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
52393         * m4/memxor.m4 (gl_MEMXOR):
52394         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52396         * m4/modechange.m4 (gl_MODECHANGE):
52397         * m4/mountlist.m4 (gl_MOUNTLIST):
52398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52399         * m4/openat.m4 (gl_FUNC_OPENAT):
52400         * m4/pathmax.m4 (gl_PATHMAX):
52401         * m4/physmem.m4 (gl_PHYSMEM):
52402         * m4/posixtm.m4 (gl_POSIXTM):
52403         * m4/posixver.m4 (gl_POSIXVER):
52404         * m4/quote.m4 (gl_QUOTE):
52405         * m4/quotearg.m4 (gl_QUOTEARG):
52406         * m4/readtokens.m4 (gl_READTOKENS):
52407         * m4/readutmp.m4 (gl_READUTMP):
52408         * m4/regex.m4 (gl_REGEX):
52409         * m4/safe-read.m4 (gl_SAFE_READ):
52410         * m4/safe-write.m4 (gl_SAFE_WRITE):
52411         * m4/same.m4 (gl_SAME):
52412         * m4/save-cwd.m4 (gl_SAVE_CWD):
52413         * m4/savedir.m4 (gl_SAVEDIR):
52414         * m4/settime.m4 (gl_SETTIME):
52415         * m4/sha1.m4 (gl_SHA1):
52416         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52417         * m4/stat-macros.m4 (gl_STAT_MACROS):
52418         * m4/stat-time.m4 (gl_STAT_TIME):
52419         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52420         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52421         * m4/strdup.m4 (gl_FUNC_STRDUP):
52422         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52423         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52424         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52425         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52426         * m4/time_r.m4 (gl_TIME_R):
52427         * m4/timespec.m4 (gl_TIMESPEC):
52428         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52429         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52430         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52431         * m4/userspec.m4 (gl_USERSPEC):
52432         * m4/utimecmp.m4 (gl_UTIMECMP):
52433         * m4/utimens.m4 (gl_UTIMENS):
52434         * m4/xalloc.m4 (gl_XALLOC):
52435         * m4/xgetcwd.m4 (gl_XGETCWD):
52436         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52437         * m4/xreadlink.m4 (gl_XREADLINK):
52438         * m4/xstrtod.m4 (gl_XSTRTOD):
52439         * m4/yesno.m4 (gl_YESNO):
52440         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52441         to get the necessary .h files and whatnot.
52442
52443 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52444             Bruno Haible  <bruno@clisp.org>
52445
52446         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52447         /bin/sh understanding of '!' conditional negation.
52448
52449 2006-08-21  Jim Meyering  <jim@meyering.net>
52450
52451         * modules/openat (Depends-on): Really alphabetize.
52452
52453         * modules/acl (Depends-on): Add error and quote.
52454
52455         * check-module (find_included_lib_files): Add at-func.c to the
52456         ok-to-include-more-than-once white list.
52457
52458         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52459
52460 2006-08-21  Bruno Haible  <bruno@clisp.org>
52461
52462         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52463         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52464         Reported by Martin Lambers <marlam@marlam.de>.
52465
52466 2006-08-21  Bruno Haible  <bruno@clisp.org>
52467
52468         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52469         specify an installation location, don't emit a noinst_LIBRARIES or
52470         noinst_LTLIBRARIES assignment.
52471
52472 2006-08-21  Bruno Haible  <bruno@clisp.org>
52473
52474         BeOS portability.
52475         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52476         BeOS has mbrtowc() but no <wctype.h>.
52477
52478 2006-08-21  Bruno Haible  <bruno@clisp.org>
52479
52480         BeOS portability.
52481         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52482         exist.
52483
52484 2006-08-21  Bruno Haible  <bruno@clisp.org>
52485
52486         BeOS portability.
52487         * lib/mbchar.h: Include <wctype.h> only if it exists.
52488
52489 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52490
52491         Remove files that are no longer needed by their respective modules.
52492         * m4/obstack.m4: Remove.
52493         * m4/strerror_r.m4: Remove.
52494         * m4/uint32_t.m4: Remove.
52495         * m4/uintptr_t.m4: Remove.
52496         * m4/ullong_max.m4: Remove.
52497         * m4/xstrtoimax.m4: Remove.
52498         * m4/xstrtoumax.m4: Remove.
52499
52500         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52501         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52502         dependencies now capture this.
52503
52504         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52505         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52506         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52507         * m4/human.m4 (gl_HUMAN): Likewise.
52508         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52509         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52510
52511         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52512
52513         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52514         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52515         stdint.
52516         * m4/human.m4 (gl_HUMAN): Likewise.
52517         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52518         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52519         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52520         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52521         * m4/xstrtol (gl_XSTRTOL): Likewise.
52522
52523         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52524         AC_TYPE_LONG_LONG_INT.
52525         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52526         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52527         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52528         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52529
52530         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52531         on stdbool.
52532
52533         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52534         (gl_PREREQ_XSTRTOUL): Remove.
52535
52536         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52537
52538         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52539         mode.
52540
52541 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         Add and change modules to make it easier for coreutils to use
52544         gnulib-tool.
52545         * modules/backupfile (Files): Remove m4/d-ino.m4.
52546         (Depends-on): Add d-ino.
52547         * modules/cycle-check (Depends-on): Add stdint.
52548         (lib_SOURCES): Add cycle-check.h.
52549         * modules/d-ino: New module.
52550         * modules/d-type: New module.
52551         * modules/error (Files): Remove m4/strerror_r.m4.
52552         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52553         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52554         m4/inttypes_h.m4, m4/uintmax_t.m4.
52555         (Depends-on): Add stdint.
52556         (lib_SOURCES): Add fsusage.h.
52557         * modules/getcwd (Files): Remove d-ino.m4.
52558         (Depends-on): Add d-ino.
52559         * modules/getndelim2 (Depends-on): Add stdint.
52560         * modules/glob (Files): Remove m4/d-type.m4.
52561         (Depends-on): Add d-type.
52562         * modules/host-os: New module.
52563         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52564         m4/inttypes_h.m4, m4/uintmax_t.m4.
52565         * Depends-on: Add stdint.
52566         (lib_SOURCES): Add human.h.
52567         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52568         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52569         m4/uintmax_t.m4, m4/ulonglong.m4.
52570         (Depends-on): Add stdint.
52571         (EXTRA_DIST): Add inttostr.h.
52572         * modules/lchmod: New module.
52573         * modules/link-follow: New module.
52574         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52575         (Depends-on): Add lchmod.
52576         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52577         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52578         (Depends-on): Add stdint.
52579         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52580         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52581         (Depends-on): Add stdint.
52582         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52583         * modules/perl: New module.
52584         * modules/regex (Depends-on): Add stdint.
52585         * modules/rmdir-errno: New module.
52586         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52587         m4/intmax_t.m4.
52588         (Depends-on): Add stdint.
52589         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52590         m4/uintmax_t.m4.
52591         (Depends-on): Add stdint.
52592         * modules/unlink-busy: New module.
52593         * modules/utimecmp (Depends-on): Add stdint.
52594         * modules/uptime: New module.
52595         * modules/winsz-ioctl: New module.
52596         * modules/winsz-termios: New module.
52597         * modules/xnanosleep (Depends-on): Add nanosleep.
52598         * modules/ullong_max: Remove.
52599         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52600         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52601         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52602         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52603         (Depends-on): Add inttypes.
52604         (lib_SOURCES): Add xstrtol.h.
52605         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52606         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52607         * MODULES.html.sh: Move 'assert' into the assert section.
52608         Move 'dummy' into the linking section.
52609         Remove ullong_max.
52610         Add section for compatibility checks for POSIX:2001 functions,
52611         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52612         winsz-ioctl, and winsz-termios into it.
52613         Add lchmod.
52614         Add top-level Misc section and put host-os, perl, and uptime
52615         into it.
52616
52617 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52618
52619         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52620         now assume the stdint module.  Do not include inttypes.h.
52621         * lib/fsusage.h: Likewise.
52622         * lib/getndelim2.c: Likewise.
52623         * lib/human.h: Likewise.
52624         * lib/inttostr.h: Likewise.
52625         * lib/obstack.c: Likewise.
52626         * lib/regex_internal.h: Likewise.
52627         * lib/tempname.c: Likewise.
52628         * lib/utimecmp.c: Likewise.
52629         * lib/xstrtol.h: Likewise.
52630
52631         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52632
52633         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52634         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52635         * lib/xtime.h: Likewise.
52636
52637 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52638
52639         * modules/openat (Files): Add lib/fchmodat.c.
52640         Fixes problem reported by Jay Youngman.
52641
52642 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52643
52644         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52645         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52646
52647 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52648             Bruno Haible  <bruno@clisp.org>
52649
52650         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52651         and is a script that invokes bison. Tighten the code. Add comments.
52652
52653 2006-08-18  Jim Meyering  <jim@meyering.net>
52654
52655         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52656         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52657         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52658         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52659
52660 2006-08-18  Bruno Haible  <bruno@clisp.org>
52661
52662         * modules/bison-i18n: New file.
52663         * MODULES.html.sh (Internationalization functions): Add it.
52664
52665 2006-08-18  Bruno Haible  <bruno@clisp.org>
52666
52667         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52668         sys/statvfs.h. When getmntinfo was found, check its declaration and
52669         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52670
52671 2006-08-18  Bruno Haible  <bruno@clisp.org>
52672
52673         * m4/bison-i18n.m4: New file, from bison.
52674
52675 2006-08-18  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
52678         (ME_DUMMY): Treat "kernfs" as a dummy.
52679         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
52680
52681 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         Update from coreutils.
52684
52685         2006-08-15  Jim Meyering  <jim@meyering.net>
52686
52687         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
52688
52689         2006-01-17  Jim Meyering  <jim@meyering.net>
52690
52691         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
52692
52693         2006-01-11  Jim Meyering  <jim@meyering.net>
52694
52695         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
52696         Check for the lchmod function.
52697
52698 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52699
52700         Update from coreutils.
52701
52702         * lib/__fpending.h: Add copyright notice.
52703         * lib/fprintftime.h: Likewise.
52704         * lib/savedir.c: Use (C) in copyright notice.
52705         * lib/savedir.h: Likewise.
52706
52707         2006-08-15  Jim Meyering  <jim@meyering.net>
52708
52709         * lib/at-func.c: New file, with the logic of all emulated at-functions.
52710         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
52711         in support of the EXPECTED_ERRNO macro.
52712         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
52713         definitions.  Instead, define the appropriate symbols and include
52714         "at-func.c".
52715         * lib/mkdirat.c (mkdirat): Likewise.
52716         * lib/fchmodat.c (fchmodat): Likewise.
52717         (ENOSYS): Remove definition.
52718         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
52719         it.  Don't include "unistd--.h" -- it wasn't ever used.
52720
52721         2006-01-17  Jim Meyering  <jim@meyering.net>
52722
52723         Rewrite fts.c not to change the current working directory,
52724         by using openat, fstatat, fdopendir, etc..
52725
52726         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
52727         (HAVE_OPENAT_SUPPORT): Define.
52728         [_LIBC] (fchdir): Don't undef or define; no longer used.
52729         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
52730         Now, this `function' always succeeds, and consumes its file descriptor
52731         parameter -- so callers must not close such FDs.  Update callers.
52732         (diropen_fd, opendirat, cwd_advance_fd): New functions.
52733         (diropen): Add parameter, SP.  Adjust all callers.
52734         Implement using diropen_fd, rather than open.
52735         (fts_open): Initialize new member, fts_cwd_fd.
52736         Remove fts_rft-setting code.
52737         (fts_close): Close fts_cwd_fd, if necessary.
52738         (__opendir2): Define in terms of opendir or opendirat,
52739         depending on whether the FST_NOCHDIR flag is set.
52740         (fts_build): Since fts_safe_changedir consumes its FD, and since
52741         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
52742         and close the dup'd file descriptor upon failure.
52743         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
52744         (fts_safe_changedir): Tweak semantics to reflect that this function
52745         now calls cwd_advance_fd and hence consumes its FD argument.
52746         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
52747         [struct FTS] (fts_rft): Remove now-unused member.
52748         [struct FTS] (fts_cycle.state): Improve comment.
52749
52750         * lib/openat.c (openat_needs_fchdir): New function.
52751         * lib/openat.h (openat_needs_fchdir): Declare it.
52752
52753 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52754
52755         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
52756         Problem and fix reported by Pádraig Brady in
52757         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
52758
52759 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52760
52761         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
52762
52763 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * lib/memcoll.c (memcoll): Optimize for the common case where the
52766         arguments are bytewise equal.
52767
52768 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * doc/regexprops-generic.texi: Add a copyright notice.
52771
52772 2006-08-15  Bruno Haible  <bruno@clisp.org>
52773
52774         * modules/tmpdir (License): Change to LGPL.
52775
52776 2006-08-15  Bruno Haible  <bruno@clisp.org>
52777
52778         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
52779         module.
52780
52781 2006-08-14  Simon Josefsson  <jas@extundo.com>
52782
52783         * config/srclist.txt: Add gnupload.
52784
52785 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52786
52787         Change copyright notice from LGPL 2 to GPL 2, since that's the
52788         standard form used in the gnulib repository.
52789         * tests/test-lock.c: Likewise.
52790         * tests/test-stdint.c: Likewise.
52791         * tests/test-tls.c: Likewise.
52792
52793         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
52794         prelude-manager.  User shorter URLs for GNU projects, without '?'.
52795         Add copyright notice.
52796
52797         * check-module: Add copyright notice.  Output a copyright
52798         notice if "--version" is specified.
52799         * modules/COPYING: New file.
52800         * tests/test-getaddrinfo.c: Add copyright notice.
52801         * tests/test-verify.c: Likewise.
52802
52803 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52804
52805         Change copyright notice from LGPL 2 to GPL 2, since that's the
52806         standard form used in the gnulib repository.
52807         * lib/lock.c: LGPL -> GPL.
52808         * lib/lock.h: Likewise.
52809         * lib/strnlen1.c: Likewise.
52810         * lib/strnlen1.h: Likewise.
52811         * lib/tls.c: Likewise.
52812         * lib/tls.h: Likewise.
52813         * lib/tmpdir.c: Likewise.
52814
52815         * lib/TODO: Remove; this belongs only in coreutils.
52816
52817 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52818
52819         Add copyright notices to long-enough files that lack them, since
52820         otherwise the files aren't clearly free.  Use the same notice that
52821         getdate.texi already uses.
52822         * doc/alloca-opt.texi: Add copyright notice.
52823         * doc/alloca.texi: Likewise.
52824         * doc/ctime.texi: Likewise.
52825         * doc/functions.texi: Likewise.
52826         * doc/gcd.texi: Likewise.
52827         * doc/gnulib-tool.texi: Likewise.
52828         * doc/inet_ntoa.texi: Likewise.
52829         * doc/visibility.texi: Likewise.
52830
52831         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
52832         * doc/quote.texi: Add copyright notice.
52833
52834         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
52835         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
52836         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
52837         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52838         is now obsolete, and give a pointer to the Sun list.
52839         Add copyright notice.
52840
52841 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52842
52843         * config/srclistvars.sh: Add copyright notice.
52844
52845 2006-08-14  Eric Blake  <ebb9@byu.net>
52846
52847         Import the following change from libc:
52848
52849         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52850
52851         Upstream bug 2997.
52852         * lib/misc/error.c: Add space between program name and message if file
52853         name is missing.
52854
52855 2006-08-12  Karl Berry  <karl@gnu.org>
52856
52857         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52858         remove, these originate in gnulib now.
52859
52860 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52861
52862         * doc/Makefile (standards.info standards.html standards.dvi):
52863         Also depend on make-stds.texi.
52864
52865 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52866
52867         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52868         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52869
52870         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52871         in wchar_t.  Problem reported by Eric Blake.
52872
52873         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52874         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52875         Also, help the compiler to keep LEN in a register.
52876
52877 2006-08-11  Eric Blake  <ebb9@byu.net>
52878
52879         * users.txt: Sort.  Add tar.
52880
52881 2006-08-11  Bruno Haible  <bruno@clisp.org>
52882
52883         * users.txt: New file.
52884
52885 2006-08-11  Bruno Haible  <bruno@clisp.org>
52886
52887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52888         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52889
52890 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52891
52892         * modules/snprintf (Depends-on): Remove minmax.
52893         (Maintainer): Add self and Bruno.
52894
52895 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52898         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52899         (EOVERFLOW): Define if the system does not.
52900         Do not include "minmax.h"; it wasn't used.
52901         (snprintf): Don't assume size_t promotes to an unsigned type.
52902         Fix bug when generated string was too long for the buffer: the
52903         buffer's contents are supposed to be the initial prefix of the
52904         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52905         exceeds INT_MAX; do the check ourselves.
52906
52907         Import the following changes from libc:
52908
52909         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52910
52911         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52912         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52913         set wc to the byte which couldn't be converted.
52914         (re_string_reconstruct): Don't clear valid_raw_len before calling
52915         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52916         tip_context using re_string_context_at.
52917
52918         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52919
52920         * lib/posix/regex.h: g++ still cannot handled [restrict].
52921
52922         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52923
52924         * lib/posix/regex.h: Remove special handling for VMS.
52925
52926 2006-08-10  Jim Meyering  <jim@meyering.net>
52927
52928         * modules/same-inode: New module.
52929         * modules/dev-ino: New module.
52930         * modules/cycle-check: Depend on these modules, rather than simply
52931         including their .h files.
52932         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52933         required via m4/cycle-check.m4.
52934         * modules/same: Depend on new same-inode module, rather than
52935         including same-inode.h.
52936         * modules/chdir-safer: New file.
52937
52938         * modules/chown (Depends-on): Add stat-macros.
52939
52940 2006-08-10  Jim Meyering  <jim@meyering.net>
52941
52942         * m4/cycle-check.m4: New file.
52943         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52944         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52945
52946 2006-08-10  Eric Blake  <ebb9@byu.net>
52947
52948         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52949         in from original proposal.
52950
52951 2006-08-10  Eric Blake  <ebb9@byu.net>
52952         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52953
52954         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52955         namespace.
52956
52957 2006-08-10  Bruno Haible  <bruno@clisp.org>
52958
52959         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52960         as well.
52961
52962 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52963
52964         Sync from coreutils.
52965
52966         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52967
52968         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52969         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52970
52971 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52972
52973         * modules/restrict: Remove; no longer needed now that we assume
52974         Autoconf 2.59 or later.
52975         * MODULES.html.sh: Remove 'restrict'.
52976         * modules/argp (Depends-on): Remove 'restrict'.
52977         * modules/base64 (Depends-on): Likewise.
52978         * modules/gc (Depends-on): Likewise.
52979         * modules/getaddrinfo (Depends-on): Likewise.
52980         * modules/glob (Depends-on): Likewise.
52981         * modules/inet_ntop (Depends-on): Likewise.
52982         * modules/inet_pton (Depends-on): Likewise.
52983         * modules/memxor (Depends-on): Likewise.
52984         * modules/regex (Depends-on): Likewise.
52985         * modules/strtok_r (Depends-on): Likewise.
52986         * modules/time_r (Depends-on): Likewise.
52987
52988 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52989
52990         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52991         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52992         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52993         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52994         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52995         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52996         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52997         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52998
52999         Merge from coreutils.
53000         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
53001         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
53002         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53003         * m4/time_r.m4 (gl_TIME_R): Likewise.
53004
53005 2006-08-09  Karl Berry  <karl@gnu.org>
53006
53007         * config/srclist.txt: no more gettext-tools, per Bruno.
53008
53009 2006-08-08  Eric Blake  <ebb9@byu.net>
53010
53011         * modules/verror: New module.
53012         * MODULES.html.sh: Document it.
53013
53014 2006-08-08  Eric Blake  <ebb9@byu.net>
53015
53016         * lib/verror.h, lib/verror.c: New files.
53017
53018 2006-08-08  Eric Blake  <ebb9@byu.net>
53019
53020         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
53021         verror_at_line output complies with GNU Coding Standards even when
53022         file is NULL.
53023
53024 2006-08-07  Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
53027         versions of AIX.
53028         Reported by Ralf Wildenhues.
53029
53030 2006-08-07  Bruno Haible  <bruno@clisp.org>
53031
53032         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
53033         in an AC_DEFUN. Needed so that the autoconf snippets can use
53034         AC_REQUIRE.
53035
53036 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53037
53038         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53039         Initialize pkgdata_DATA.
53040         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
53041         overriding it.
53042
53043 2006-08-06  Eric Blake  <ebb9@byu.net>
53044
53045         * lib/error.h: Fold in some upstream changes from glibc.
53046         * lib/error.c: Likewise.
53047
53048 2006-08-04  Bruno Haible  <bruno@clisp.org>
53049
53050         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53051         Make the mostlyclean-local rule depend on mostlyclean-generic.
53052         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
53053
53054 2006-07-31  Bruno Haible  <bruno@clisp.org>
53055
53056         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
53057         <stdlib.h>, <string.h>.
53058
53059 2006-07-30  Bruno Haible  <bruno@clisp.org>
53060
53061         * modules/readlink (License): Change to LGPL.
53062
53063 2006-07-30  Bruno Haible  <bruno@clisp.org>
53064
53065         * modules/javaversion (Makefile.am): Distribute javaversion.java and
53066         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
53067         set PKGDATADIR to point to it.
53068
53069 2006-07-30  Bruno Haible  <bruno@clisp.org>
53070
53071         * modules/csharpexec (configure.ac): Comment out macro invocation.
53072         * modules/javaexec (configure.ac): Likewise.
53073         * modules/javacomp-script (configure.ac): Likewise.
53074
53075         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
53076
53077 2006-07-30  Bruno Haible  <bruno@clisp.org>
53078
53079         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
53080         linked-list.
53081
53082 2006-07-30  Bruno Haible  <bruno@clisp.org>
53083
53084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
53085
53086 2006-07-30  Bruno Haible  <bruno@clisp.org>
53087
53088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53089         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
53090         get removed.
53091
53092 2006-07-29  Bruno Haible  <bruno@clisp.org>
53093
53094         Make it possible for gnulib-tool to work with locally modified or
53095         augmented gnulib repositories.
53096         * gnulib-tool (func_usage): Document --local-dir option.
53097         (local_gnulib_dir): New variable.
53098         Handle --local-dir option.
53099         (func_lookup_file): New function.
53100         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
53101         (func_get_description, func_get_filelist, func_get_description,
53102         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
53103         func_get_automake_snippet, func_get_include_directive,
53104         func_get_license, func_get_maintainer): Use func_lookup_file.
53105         (func_import, func_create_testdir): Use func_lookup_file.
53106
53107 2006-07-29  Bruno Haible  <bruno@clisp.org>
53108
53109         * modules/setenv (Depends-on): Add unistd.
53110
53111 2006-07-29  Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
53114
53115 2006-07-29  Bruno Haible  <bruno@clisp.org>
53116
53117         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
53118
53119 2006-07-29  Bruno Haible  <bruno@clisp.org>
53120
53121         * gnulib-tool (import, update): If there is no Makefile.am, look at
53122         aclocal.m4, instead of bailing out.
53123
53124 2006-07-29  Bruno Haible  <bruno@clisp.org>
53125
53126         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
53127         Categorize the options by when they are useful.
53128
53129 2006-07-29  Bruno Haible  <bruno@clisp.org>
53130
53131         * gnulib-tool (func_usage): Document option --no-libtool.
53132         Handle option --no-libtool.
53133         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
53134         for changed semantics of $libtool variable.
53135         (func_import): Likewise. If libtool is not used, show this through
53136         an option --no-libtool.
53137         (func_create_testdir): Update.
53138
53139 2006-07-29  Bruno Haible  <bruno@clisp.org>
53140
53141         * gnulib-tool (func_import): Extend error message about missing
53142         --doc-base.
53143
53144 2006-07-29  Bruno Haible  <bruno@clisp.org>
53145
53146         * gnulib-tool (func_import): Don't create the $docbase directory if
53147         there is no file to store there.
53148
53149 2006-07-29  Bruno Haible  <bruno@clisp.org>
53150
53151         * gnulib-tool (autoconf_minversion): If a --dir option is given and
53152         relevant, look for configure.ac there, not in the current directory.
53153         Also use a simple search for AC_PREREQ, not "autoconf --trace".
53154
53155 2006-07-29  Bruno Haible  <bruno@clisp.org>
53156
53157         * gnulib-tool (SORT): New variable.
53158         (func_usage): Undocument --assume-autoconf option.
53159         Remove --assume-autoconf option handling.
53160         (autoconf_minversion): Determine from the contents of configure.ac.
53161         (func_import): Remove autoconf_minversion handling.
53162         Suggested by Eric Blake.
53163
53164 2006-07-29  Bruno Haible  <bruno@clisp.org>
53165
53166         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
53167
53168 2006-07-29  Bruno Haible  <bruno@clisp.org>
53169
53170         * config/srclist.txt (*setenv.[ch]): Remove rules.
53171
53172 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53173
53174         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
53175
53176 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53177
53178         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
53179         arpa/inet.h.
53180
53181 2006-07-28  Simon Josefsson  <jas@extundo.com>
53182
53183         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
53184         * modules/inet_pton (Depends-on): Likewise.
53185
53186 2006-07-28  Simon Josefsson  <jas@extundo.com>
53187
53188         * m4/netinet_in_h.m4: New file.
53189
53190 2006-07-28  Simon Josefsson  <jas@extundo.com>
53191
53192         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
53193         #include's.
53194
53195 2006-07-28  Simon Josefsson  <jas@extundo.com>
53196
53197         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
53198         #include's.
53199
53200 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
53201
53202         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
53203         setgid on directories only if they set these bits.
53204         * lib/modechange.h: Remove obsolete comment about masks.
53205
53206 2006-07-28  Eric Blake  <ebb9@byu.net>
53207
53208         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
53209         macro expansion.
53210
53211 2006-07-28  Bruno Haible  <bruno@clisp.org>
53212
53213         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
53214
53215 2006-07-28  Bruno Haible  <bruno@clisp.org>
53216
53217         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
53218
53219 2006-07-28  Bruno Haible  <bruno@clisp.org>
53220
53221         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53222         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53223         Define fallbacks.
53224         Avoids link error on FreeBSD 4.x.
53225         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53226
53227         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
53228         encoding.
53229         * lib/mbswidth.c (iswcntrl): Likewise.
53230
53231 2006-07-27  Bruno Haible  <bruno@clisp.org>
53232
53233         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
53234         test.
53235
53236 2006-07-27  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
53239         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
53240         defined.
53241
53242 2006-07-26  Eric Blake  <ebb9@byu.net>
53243
53244         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
53245
53246 2006-07-26  Eric Blake  <ebb9@byu.net>
53247
53248         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
53249         like mingw that lack mkstemp.
53250         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
53251         avoid compilation warning on mingw.
53252
53253 2006-07-26  Bruno Haible  <bruno@clisp.org>
53254
53255         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
53256         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
53257         INT_FAST*_MIN, INTPTR_MIN.
53258
53259 2006-07-25  Bruno Haible  <bruno@clisp.org>
53260
53261         * modules/version-etc (Depends-on): Add stdarg.
53262
53263 2006-07-25  Bruno Haible  <bruno@clisp.org>
53264
53265         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
53266         complex commands.
53267
53268 2006-07-25  Bruno Haible  <bruno@clisp.org>
53269
53270         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
53271         defined in <stdarg.h> or config.h.
53272
53273 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53274
53275         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
53276         (gl_STDIO_SAFER): Remove.
53277
53278 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53279
53280         * MODULES.html.sh (File stream based Input/Output):
53281         Add fopen-safer, tmpfile-safer; remove stdio-safer.
53282         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
53283         * modules/fopen-safer, modules/tmpfile-safer: New files.
53284         * modules/stdio-safer: Remove.
53285
53286 2006-07-24  Bruno Haible  <bruno@clisp.org>
53287
53288         * modules/tmpdir: New file.
53289         * MODULES.html.sh (File system functions): Add it.
53290
53291 2006-07-24  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
53294         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
53295
53296 2006-07-24  Bruno Haible  <bruno@clisp.org>
53297
53298         * modules/clean-temp: New file.
53299
53300 2006-07-24  Bruno Haible  <bruno@clisp.org>
53301
53302         * m4/tmpdir.m4: New file, from GNU gettext.
53303
53304 2006-07-24  Bruno Haible  <bruno@clisp.org>
53305
53306         * lib/tmpdir.h: New file, from GNU gettext.
53307         * lib/tmpdir.c: New file, from GNU gettext.
53308
53309 2006-07-24  Bruno Haible  <bruno@clisp.org>
53310
53311         * lib/clean-temp.h: New file, from GNU gettext.
53312         * lib/clean-temp.c: New file, from GNU gettext.
53313
53314 2006-07-23  Eric Blake  <ebb9@byu.net>
53315
53316         * modules/stdio-safer (Files): Add tmpfile-safer.c.
53317         (Depends-on): Add binary-io.
53318
53319 2006-07-23  Eric Blake  <ebb9@byu.net>
53320
53321         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
53322
53323 2006-07-23  Eric Blake  <ebb9@byu.net>
53324
53325         * lib/tmpfile-safer.c: New file.
53326         * lib/stdio-safer.h (fopen_safer): Add prototype.
53327         * lib/stdio--.h (tmpfile): Make safer.
53328
53329 2006-07-23  Bruno Haible  <bruno@clisp.org>
53330
53331         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
53332         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
53333         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
53334         gl_linked_remove_at): Use it.
53335
53336 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53337         and Simon Josefsson <jas@extundo.com>
53338
53339         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
53340
53341         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
53342
53343 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         * modules/close-stream: New file.
53346         * modules/closeout (Description): Make it clear that it exits
53347         with a diagnostic on error.
53348         (Depends-on): Add close-stream.  Remove fpending, stdbool.
53349         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
53350
53351 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53352
53353         * m4/close-stream.m4: New file.
53354
53355 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53356
53357         * lib/close-stream.c, lib/close-stream.h: New files.
53358
53359 2006-07-22  Bruno Haible  <bruno@clisp.org>
53360
53361         Merge from GNU gettext 0.15.
53362
53363         2006-05-01  Bruno Haible  <bruno@clisp.org>
53364
53365                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
53366
53367         2006-07-22  Bruno Haible  <bruno@clisp.org>
53368
53369                 * modules/javaversion: New file.
53370                 * MODULES.html.sh (Java): Add javaversion.
53371
53372         2006-03-12  Bruno Haible  <bruno@clisp.org>
53373
53374                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
53375
53376         2005-12-04  Bruno Haible  <bruno@clisp.org>
53377
53378                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
53379                 (untested).
53380
53381         2006-06-21  Bruno Haible  <bruno@clisp.org>
53382
53383                 Avoid warnings from recent versions of mcs.
53384                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
53385                 -o, -L, -r any more. Use options documented since mcs-1.0
53386                 instead. Similarly for -g.
53387
53388         2005-12-04  Bruno Haible  <bruno@clisp.org>
53389
53390                 * build-aux/csharpcomp.sh.in: Suffix for resources is
53391                 .resources, not .resource.
53392
53393         2005-07-09  Bruno Haible  <bruno@clisp.org>
53394
53395                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53396                 add a .dll suffix.
53397                 Reported by Mark Junker <mjscod@gmx.de>.
53398
53399         2006-07-22  Bruno Haible  <bruno@clisp.org>
53400
53401                 * modules/gettext: Upgrade to gettext-0.15.
53402                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53403                 m4/visibility.m4.
53404                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53405
53406 2006-07-22  Bruno Haible  <bruno@clisp.org>
53407
53408         Merge from GNU gettext 0.15.
53409
53410         2006-03-25  Bruno Haible  <bruno@clisp.org>
53411
53412                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53413
53414         2006-07-21  Bruno Haible  <bruno@clisp.org>
53415
53416                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53417                 "1.1".
53418
53419         2006-05-09  Bruno Haible  <bruno@clisp.org>
53420
53421                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53422                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53423                 for the conftestver execution.
53424
53425         2006-05-01  Bruno Haible  <bruno@clisp.org>
53426
53427                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53428                 optional target-version argument. Verify that the compiler
53429                 groks source of the specified source-version, or add -source
53430                 option as necessary. Verify that the compiler produces
53431                 bytecode in the specified target-version, or add -target and
53432                 -source options as necessary. Make the result of the test
53433                 available as variable CONF_JAVAC. Also log error output in
53434                 config.log.
53435
53436         2006-03-11  Bruno Haible  <bruno@clisp.org>
53437
53438                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53439
53440         2006-05-09  Bruno Haible  <bruno@clisp.org>
53441
53442                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53443                 CLASSPATH_SEPARATOR to a semicolon.
53444
53445         2006-03-12  Bruno Haible  <bruno@clisp.org>
53446
53447                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53448                 available as variable CONF_JAVA, for subsequent autoconf
53449                 tests. Also log error output in config.log.
53450
53451         2006-07-19  Bruno Haible  <bruno@clisp.org>
53452
53453                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53454                 that getline works on glibc2 systems. Needed to avoid trouble
53455                 in relocatable.c.
53456                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53457
53458         2005-12-04  Bruno Haible  <bruno@clisp.org>
53459
53460                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53461                 launcher (untested).
53462
53463         2005-12-04  Bruno Haible  <bruno@clisp.org>
53464
53465                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53466
53467         2006-07-22  Bruno Haible  <bruno@clisp.org>
53468
53469                 * gettext.m4: Update from GNU gettext-0.15.
53470                 * nls.m4: Likewise.
53471                 * po.m4: Likewise.
53472                 * inttypes-pri.m4: Likewise.
53473                 * inttypes-h.m4: Renamed from inttypes.m4.
53474                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53475
53476 2006-07-22  Bruno Haible  <bruno@clisp.org>
53477
53478         Merge from GNU gettext 0.15.
53479
53480         2005-07-05  Bruno Haible  <bruno@clisp.org>
53481
53482                 * printf-args.c (printf_fetchargs): Work around broken
53483                 definition of wint_t on mingw.
53484
53485         2005-02-12  Bruno Haible  <bruno@clisp.org>
53486
53487                 * xallocsa.h: Add extern "C" for C++.
53488
53489         2006-05-17  Bruno Haible  <bruno@clisp.org>
53490
53491                 Cygwin portability.
53492                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53493
53494         2006-04-30  Bruno Haible  <bruno@clisp.org>
53495
53496                 * progreloc.c: Include <mach-o/dyld.h> if available.
53497                 (find_executable): Use _NSGetExecutablePath when possible.
53498
53499         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53500
53501                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53502                 function.
53503
53504         2005-12-29  Bruno Haible  <bruno@clisp.org>
53505
53506                 * progreloc.c (set_program_name_and_installdir): Fix
53507                 compilation error.
53508
53509         2005-12-04  Bruno Haible  <bruno@clisp.org>
53510
53511                 Cygwin portability.
53512                 * progreloc.c: Include <windows.h> also on Cygwin.
53513                 (find_executable): Add support for Cygwin.
53514                 (set_program_name_and_installdir): Handle also platforms with
53515                 nonempty EXEEXT.
53516
53517         2006-07-11  Bruno Haible  <bruno@clisp.org>
53518
53519                 * javacomp.c: Fix a comment.
53520                 Reported by Jim Meyering.
53521
53522         2006-04-30  Bruno Haible  <bruno@clisp.org>
53523
53524                 * javacomp.h (compile_java_class): Add source_version,
53525                 target_version arguments.
53526                 * javacomp.c: Rewritten to choose only a compiler that
53527                 respects the specified source_version and target_version.
53528
53529         2006-06-27  Bruno Haible  <bruno@clisp.org>
53530
53531                 Assume correct S_ISDIR macro.
53532                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53533
53534         2006-07-22  Bruno Haible  <bruno@clisp.org>
53535
53536                 * javaversion.h: New file, from GNU gettext.
53537                 * javaversion.c: New file, from GNU gettext.
53538                 * javaversion.java: New file, from GNU gettext.
53539                 * javaversion.class: New file, from GNU gettext.
53540
53541         2006-05-17  Bruno Haible  <bruno@clisp.org>
53542
53543                 Cygwin portability.
53544                 * javaexec.c (execute_java_class): Test for jview program
53545                 also on Cygwin.
53546
53547         2006-04-09  Bruno Haible  <bruno@clisp.org>
53548
53549                 * fatal-signal.c: Don't include string.h.
53550                 (at_fatal_signal): Use a copying loop instead of memcpy.
53551
53552         2005-12-04  Bruno Haible  <bruno@clisp.org>
53553
53554                 * csharpexec.c: Add support for 'clix' launcher (untested).
53555                 (execute_csharp_using_sscli): New function.
53556                 (execute_csharp_program): Call it.
53557
53558         2006-06-21  Bruno Haible  <bruno@clisp.org>
53559
53560                 Avoid warnings from recent versions of mcs.
53561                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53562                 -o, -L, -r any more. Use options documented since mcs-1.0
53563                 instead. Similarly for -g.
53564
53565         2005-07-09  Bruno Haible  <bruno@clisp.org>
53566
53567                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53568                 add a .dll suffix.
53569                 Reported by Mark Junker <mjscod@gmx.de>.
53570
53571         2006-06-17  Bruno Haible  <bruno@clisp.org>
53572
53573                 * config.charset: Update for NetBSD 3.0.
53574
53575         2006-05-17  Bruno Haible  <bruno@clisp.org>
53576
53577                 Cygwin portability.
53578                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53579
53580         2006-05-16  Bruno Haible  <bruno@clisp.org>
53581
53582                 * localcharset.c [CYGWIN]: Include <windows.h>.
53583                 (get_charset_aliases): For Cygwin, return the same CPxxx
53584                 aliases list as under WIN32.
53585                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53586                 the environment variables. Fall back to GetACP().
53587
53588         2006-04-05  Bruno Haible  <bruno@clisp.org>
53589
53590                 * config.charset: Update Juan Manuel Guerrero's address.
53591
53592         2005-02-12  Bruno Haible  <bruno@clisp.org>
53593
53594                 * allocsa.h: Add extern "C" for C++.
53595
53596         2005-02-10  Bruno Haible  <bruno@clisp.org>
53597
53598                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53599                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53600
53601         2006-07-22  Bruno Haible  <bruno@clisp.org>
53602
53603                 * gettext.h: Update to GNU gettext-0.15.
53604
53605 2006-07-22  Bruno Haible  <bruno@clisp.org>
53606
53607         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53608         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53609         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53610
53611 2006-07-21  Eric Blake  <ebb9@byu.net>
53612
53613         * modules/stdlib-safer: New file.
53614         * MODULES.html.sh (File stream based Input/Output): Add
53615         stdlib-safer.
53616
53617 2006-07-21  Eric Blake  <ebb9@byu.net>
53618
53619         * lib/stdlib-safer.h: New file from coreutils, required by
53620         stdlib--.h.
53621
53622 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53623
53624         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53625
53626 2006-07-20  Bruno Haible  <bruno@clisp.org>
53627
53628         * gnulib-tool: Recognize new option --assume-autoconf.
53629         (autoconf_minversion): New variable.
53630         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53631
53632 2006-07-20  Bruno Haible  <bruno@clisp.org>
53633
53634         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53635
53636 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53637
53638         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53639         Reindent and repaginate.
53640
53641 2006-07-19  Derek Price  <derek@ximbiot.com>
53642
53643         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53644         Correct grammar.
53645
53646 2006-07-17  Bruno Haible  <bruno@clisp.org>
53647
53648         * modules/list: New file.
53649         * modules/array-list: New file.
53650         * modules/carray-list, modules/carray-list-tests: New files.
53651         * modules/linked-list, modules/linked-list-tests: New files.
53652         * modules/avltree-list, modules/avltree-list-tests: New files.
53653         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53654         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53655         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53656         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53657         * modules/oset: New file.
53658         * modules/array-oset: New file.
53659         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53660         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53661         * tests/test-carray_list.c: New file.
53662         * tests/test-linked_list.c: New file.
53663         * tests/test-avltree_list.c: New file.
53664         * tests/test-rbtree_list.c: New file.
53665         * tests/test-linkedhash_list.c: New file.
53666         * tests/test-avltreehash_list.c: New file.
53667         * tests/test-rbtreehash_list.c: New file.
53668         * tests/test-avltree_oset.c: New file.
53669         * tests/test-rbtree_oset.c: New file.
53670         * MODULES.html.sh (Container data structures): New section.
53671
53672 2006-07-17  Bruno Haible  <bruno@clisp.org>
53673
53674         * m4/gl_list.m4: New file.
53675
53676 2006-07-17  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/gl_list.h: New file.
53679         * lib/gl_list.c: New file.
53680         * lib/gl_array_list.h: New file.
53681         * lib/gl_array_list.c: New file.
53682         * lib/gl_carray_list.h: New file.
53683         * lib/gl_carray_list.c: New file.
53684         * lib/gl_linked_list.h: New file.
53685         * lib/gl_linked_list.c: New file.
53686         * lib/gl_anylinked_list1.h: New file.
53687         * lib/gl_anylinked_list2.h: New file.
53688         * lib/gl_avltree_list.h: New file.
53689         * lib/gl_avltree_list.c: New file.
53690         * lib/gl_anyavltree_list1.h: New file.
53691         * lib/gl_anyavltree_list2.h: New file.
53692         * lib/gl_rbtree_list.h: New file.
53693         * lib/gl_rbtree_list.c: New file.
53694         * lib/gl_anyrbtree_list1.h: New file.
53695         * lib/gl_anyrbtree_list2.h: New file.
53696         * lib/gl_anytree_list1.h: New file.
53697         * lib/gl_anytree_list2.h: New file.
53698         * lib/gl_linkedhash_list.h: New file.
53699         * lib/gl_linkedhash_list.c: New file.
53700         * lib/gl_anyhash_list1.h: New file.
53701         * lib/gl_anyhash_list2.h: New file.
53702         * lib/gl_avltreehash_list.h: New file.
53703         * lib/gl_avltreehash_list.c: New file.
53704         * lib/gl_rbtreehash_list.h: New file.
53705         * lib/gl_rbtreehash_list.c: New file.
53706         * lib/gl_anytreehash_list1.h: New file.
53707         * lib/gl_anytreehash_list2.h: New file.
53708
53709         * lib/gl_oset.h: New file.
53710         * lib/gl_oset.c: New file.
53711         * lib/gl_array_oset.h: New file.
53712         * lib/gl_array_oset.c: New file.
53713         * lib/gl_avltree_oset.h: New file.
53714         * lib/gl_avltree_oset.c: New file.
53715         * lib/gl_rbtree_oset.h: New file.
53716         * lib/gl_rbtree_oset.c: New file.
53717         * lib/gl_anytree_oset.h: New file.
53718
53719 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53720
53721         * m4/mkancesdirs.m4: New file.
53722         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
53723         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
53724         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
53725         it.
53726
53727 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53728
53729         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
53730         * lib/mkancesdirs.h: New files.
53731         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
53732         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
53733         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
53734         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
53735         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
53736         callers changed.  Revamp internals significantly, by not
53737         attempting to create directories that are temporarily more
53738         permissive than the final results.  Do not attempt to use
53739         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
53740         This removes some race conditions, fixes some bugs, and simplifies
53741         things.  Use new dirchownmod function to do owner and mode changes.
53742         * lib/mkdir-p.h: Likewise.
53743         * lib/modechange.c (octal_to_mode): New function.
53744         (struct mode_change): New member mentioned.
53745         (make_node_op_equals): New arg mentioned.  All callers changed.
53746         (mode_compile): Keep track of which mode bits the user has explicitly
53747         mentioned.
53748         (mode_adjust): New arg DIR, so that we implement the X op correctly.
53749         New arg PMODE_BITS, to keep track of which mode bits the user
53750         mentioned; it treats S_ISUID and S_ISGID speciall.
53751         All callers changed.
53752         * lib/modechange.h: Likewise.
53753
53754 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         * MODULES.html.sh: Add mkancestors.
53757         * modules/mkancesdirs: New module.
53758         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
53759         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
53760         The chdir-safer and afs files are now orphans; I'll remove them
53761         unless someone speaks up.
53762         Add lib/dirchownmod.c, lib/dirchownmod.h.
53763         (Depends-on): Remove alloca, chown, save-cwd, dirname.
53764         Add lchown, mkancesdirs.
53765         (Maintainer): Add self.
53766
53767 2006-07-15  Karl Berry  <karl@gnu.org>
53768
53769         * gnulib-tool: help message wording/arrangement.
53770
53771 2006-07-14  Simon Josefsson  <jas@extundo.com>
53772
53773         * doc/gnulib.texi (Libtool and Windows): New section.
53774
53775 2006-07-12  Simon Josefsson  <jas@extundo.com>
53776
53777         * modules/gendocs (License): Fix license, approved by Karl.
53778
53779 2006-07-12  Eric Blake  <ebb9@byu.net>
53780
53781         * MODULES.html.sh: Add gendocs.
53782
53783 2006-07-11  Eric Blake  <ebb9@byu.net>
53784
53785         * modules/fdl: New module, to install doc/fdl.texi.
53786         * MODULES.html.sh: Add new section for documentation modules.
53787         * gnulib-tool: Avoid space-tab.
53788         (--doc-base): New option, to manage files from doc.
53789
53790 2006-07-11  Eric Blake  <ebb9@byu.net>
53791
53792         * m4/absolute-header.m4: Fix comments to match recent change.
53793
53794 2006-07-11  Eric Blake  <ebb9@byu.net>
53795
53796         * gnulib-tool: List --doc-base before --tests-base.
53797
53798 2006-07-11  Derek R. Price  <derek@ximbiot.com>
53799
53800         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
53801
53802 2006-07-11  Bruno Haible  <bruno@clisp.org>
53803
53804         * README: Mention where to put documentation.
53805
53806 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53807
53808         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
53809
53810 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53811
53812         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
53813         to stdint.m4.
53814
53815 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53816
53817         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
53818         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
53819         "no/such/file/stdint.h" when there is no such file, so that
53820         the resulting C code can be parsed by dodgy compilers.
53821         Problems reported by Bob Proulx.
53822
53823 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53824
53825         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
53826         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53827         macros into the GNU _D_EXACT_NAMLEN.
53828         * lib/savedir.c:  Likewise.
53829         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
53830
53831 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53832         and Paul Eggert  <eggert@cs.ucla.edu>
53833
53834         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
53835         * m4/savedir.m4:
53836         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53837         macros into the GNU _D_EXACT_NAMLEN.
53838
53839 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53840
53841         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53842         around the absolute name, to work around a problem with the HP-UX
53843         11.23 native C compiler, reported by Bob Proulx.
53844
53845 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53846
53847         * doc/maintain.texi, make-stds.texi: Sync from
53848         <http://savannah.gnu.org/projects/gnustandards>.
53849
53850 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53851
53852         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53853
53854 2006-07-09  Jim Meyering  <jim@meyering.net>
53855
53856         * m4/glob.m4: Remove a doubled word in a comment.
53857
53858 2006-07-09  Jim Meyering  <jim@meyering.net>
53859
53860         * lib/argp-pv.c: Remove a doubled word in a comment.
53861         * lib/check-version.c (check_version): Likewise.
53862         * lib/javacomp.c (compile_java_class): Likewise.
53863
53864 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53865
53866         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53867         for the benefit of people using Autoconf 2.60.  If you want to
53868         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53869         (or m4/onceonly.m4, if pre-2.57) manually.
53870
53871 2006-07-08  Jim Meyering  <jim@meyering.net>
53872
53873         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53874         comment.
53875         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53876         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53877         comment.
53878
53879 2006-07-08  Jim Meyering  <jim@meyering.net>
53880
53881         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53882
53883 2006-07-07  Simon Josefsson  <jas@extundo.com>
53884
53885         * tests/test-crc.c: Change expected crc value, the test vector
53886         were probably computed using the old broken crc.c?
53887
53888 2006-07-06  Simon Josefsson  <jas@extundo.com>
53889
53890         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53891         now the canonical place for the M4 file).
53892
53893         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53894         from the sys_socket dependency now.
53895
53896         * modules/inet_pton (Files): Ditto.
53897
53898         * modules/inet_ntop (Files): Ditto.
53899
53900 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53901
53902         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53903         not gl_PREREQ_GETUSERSHELL.
53904
53905 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53906
53907         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53908         with only one argument, for Autoconf 2.60.
53909         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53910         expand to nothing, so add a shell command to avoid syntax error.
53911         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53912
53913 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53914
53915         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53916
53917 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53918
53919         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53920         no longer needed.  Check for isblank decl.
53921         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53922         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53923         of existence.
53924
53925 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53926
53927         * lib/getloadavg.c: Use __VMS, not VMS.
53928         * lib/getopt.c: Likewise.
53929         * lib/getpagesize.h: Likewise.
53930         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53931         and probably does not work.
53932
53933 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53934
53935         * lib/.cppi-disable: Add wcwidth.
53936         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53937         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53938         (ISGRAPH): Remove.  All uses changed to isgraph.
53939         (FOLD) [!defined _LIBC]: Remove special case.
53940         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53941         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53942         HAVE_ISBLANK.
53943         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53944         case.
53945
53946 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53947
53948         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53949         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53950         brackets.  Other minor changes to suppress some compiler
53951         warnings.
53952
53953 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53954         and Paul Eggert  <eggert@cs.ucla.edu>
53955
53956         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53957         of invoking obsolescent AC_HEADER_DIRENT macro.
53958         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53959         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53960         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53961         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53962         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53963         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53964         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53965         * m4/readdir.m4: Remove; no longer needed.
53966
53967 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53968         and Paul Eggert  <eggert@cs.ucla.edu>
53969
53970         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53971         Don't worry about this obsolete case any more.
53972         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53973         directories.
53974         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53975         worry about this obsolete case any more.
53976         * lib/fts.c: Likewise.
53977         * lib/getcwd.c: Likewise.
53978         * lib/glob.h: Likewise.
53979         * lib/savedir.c: Likewise.
53980
53981 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53982
53983         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53984         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53985         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53986         needed.
53987         All uses removed.
53988         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53989         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53990         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53991         needed.
53992         * m4/getdate.m4 (gl_GETDATE): Likewise.
53993         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53994         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53995         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53996         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53997         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53998         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53999         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
54000         needed.
54001
54002 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54003
54004         * lib/memcasecmp.c: Include <limits.h>.
54005         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
54006         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
54007         Don't assume isdigit succeeds only on '0' through '9'.
54008
54009 2006-07-05  Eric Blake  <ebb9@byu.net>
54010
54011         * modules/getaddrinfo (Depends-on): Add snprintf.
54012
54013 2006-07-05  Eric Blake  <ebb9@byu.net>
54014
54015         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
54016         to avoid 'header present but could not be compiled' on cygwin.
54017
54018 2006-07-05  Eric Blake  <ebb9@byu.net>
54019
54020         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
54021         missing from netdb.h.
54022         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
54023
54024 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54025
54026         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
54027         no longer needed.
54028         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
54029         * m4/getdate.m4 (gl_GETDATE): Likewise.
54030         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
54031         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
54032         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54033         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54034         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54035
54036 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54037
54038         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
54039         All uses of is_space replaced by isspace.
54040         * lib/exit.h: Don't talk about STDC_HEADERS.
54041         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
54042         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
54043         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
54044         replaced by isprint etc.
54045         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
54046         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54047         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
54048         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
54049         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
54050         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54051
54052 2006-07-05  Bruno Haible  <bruno@clisp.org>
54053
54054         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
54055         the function exists, before testing against AIX.
54056         Reported by Martin Lambers <marlam@marlam.de>.
54057
54058 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54059
54060         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
54061         From Mark D. Baushke.
54062
54063 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54064
54065         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
54066         to the absolute name, not just one, to bypass Sun C 5.8's
54067         "warning: #include of /usr/include/... may be non-portable".
54068
54069 2006-07-04  Eric Blake  <ebb9@byu.net>
54070
54071         * modules/dirname-tests: New test module.
54072         * tests/test-dirname.c: New file, replacing dirname.c
54073         TEST_DIRNAME section that was recently deleted.
54074
54075 2006-07-04  Bruno Haible  <bruno@clisp.org>
54076
54077         Assume ANSI C header files and <ctype.h> functions.
54078         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
54079         (mbsnwidth): Use isprint, iscntrl instead.
54080
54081 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54082
54083         Merge from coreutils.
54084         * MODULES.html.sh: Add xstrtold.
54085         * modules/xstrtold: New file.
54086         * modules/cycle-check (Files): Add lib/same-inode.h.
54087         * modules/dirname (Files): Add m4/double-slash-root.m4.
54088         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
54089         * modules/mkdir-p (Files): Add lib/same-inode.h.
54090         * modules/same (Files): Add lib/same-inode.h.
54091
54092 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54093
54094         * m4/absolute-header.m4: Renamed from full-header-path.m4.
54095         This is to keep the terminology clean; POSIX talks about
54096         "absolute pathnames", not "full pathnames", but the GNU
54097         Coding Standards say to use "path" for something else;
54098         so use "absolute" to keep both sides happy.
54099         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
54100         Set gl_absolute_header, not gl_full_header_path.
54101         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
54102         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
54103         All uses changed.
54104
54105         Merge from coreutils.
54106
54107         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
54108
54109         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
54110         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
54111         want to require the building of c-strtod.o.
54112         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
54113         needs -lm directly.
54114         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
54115
54116         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54117
54118         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
54119         --as-needed option if available.  Problem reported by Albert Chin in
54120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
54121         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
54122         cc merely issues a bunch of annoying warnings for --as-needed
54123         (this problem was reported by Bob Proulx).  Also, try linking with
54124         -lm to detect a bug in binutils 2.16 (this problem was reported
54125         by Ralf Wildenhues).
54126
54127         2006-06-18  Jim Meyering  <jim@meyering.net>
54128
54129         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
54130         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
54131         macro.
54132         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
54133         also check for glibc-2.4's abort-inducing bug.
54134
54135         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
54136         Low-probability clean-up should be to use rmdir to get rid of
54137         the just-created directory, not unlink.
54138
54139         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
54140         configure fail, and request a bug report to inform us about it.
54141         Add a comment that, barring reports to the contrary, in 2007 we'll
54142         assume ftruncate is universally available.
54143
54144         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
54145
54146         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
54147
54148         2006-03-12  Jim Meyering  <jim@meyering.net>
54149
54150         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
54151         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
54152         * m4/same.m4 (gl_SAME): Likewise.
54153         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
54154
54155         2006-03-11  Eric Blake  <ebb9@byu.net>
54156
54157         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
54158         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
54159         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
54160         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
54161
54162 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
54165         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
54166         reported by Mark D. Baushke, one in
54167         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
54168
54169         Merge from coreutils.
54170
54171         * lib/.cppi-disable: Add stdint_.h.
54172         * lib/.cvsignore: Add stdint.h.
54173
54174         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
54175
54176         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
54177         both double and long double versions.
54178         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
54179         * lib/xstrtold.c: New file.
54180         * lib/xstrtod.h (xstrtold): New decl.
54181
54182         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54183
54184         * lib/filemode.c (setst): Remove.
54185         (strmode): Rewrite to avoid setst.  This makes the code shorter,
54186         (arguably) clearer, and the generated code is a bit smaller on my
54187         Debian GNU/Linux stable x86 host.
54188
54189         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * lib/filemode.c: Include "filemode.h" first, to test the interface.
54192         Assume that filemode.h includes sys/types.h and sys/stat.h.
54193         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
54194         (ftypelet): Reorder to put common cases first, for efficiency.
54195         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
54196         to do 'M'.
54197         (strmode): Renamed from mode_string, and now stores 12 bytes instead
54198         of 10, for compatibility with FreeBSD.  All callers changed.
54199         (filemodestring): Now stores 12 bytes instead of 10, and sets file
54200         types that can't be deduced solely from st_mode.  First arg is now a
54201         const pointer.
54202         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
54203         (strmode): Renamed from mode_string.
54204         (filemodestring): New decl.
54205         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
54206         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
54207         needed.
54208         (S_ISPORT, S_ISWHT): New macros, if not already defined.
54209
54210         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
54211
54212         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
54213         fsusage.h now does that.  Include fsusage.h first, to test interface.
54214         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
54215         at most one method (the old code could have generated decls that
54216         didn't conform to C89, not that this was ever exercised).
54217         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
54218
54219         2006-03-19  Jim Meyering  <jim@meyering.net>
54220
54221         Work even in a chroot where d_ino values for entries in "/"
54222         don't match the stat.st_ino values for the same names.
54223         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
54224         number, iterate through all entries again, using lstat instead.
54225         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
54226         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
54227
54228         * lib/getcwd.c (__getcwd): Clarify a comment.
54229         Use memcpy in place of a call to strcpy.
54230
54231         2006-03-12  Jim Meyering  <jim@meyering.net>
54232
54233         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
54234         matches that of the current directory (which we're about to chdir ".."
54235         out of), then save the dev-ino of the parent, instead.
54236
54237         * lib/same-inode.h (SAME_INODE): New file/macro.
54238         * lib/chdir-safer.c (SAME_INODE): Remove definition.
54239         Include "same-inode.h", instead.
54240         * lib/same.c: Likewise.
54241         * lib/cycle-check.h: Include "same-inode.h".
54242         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
54243         * lib/cycle-check.c (SAME_INODE): Remove definition.
54244         * lib/root-dev-ino.h: Include "same-inode.h".
54245
54246         2006-03-11  Eric Blake  <ebb9@byu.net>
54247
54248         * lib/same.c (same_name): s/base_name/last_component/
54249         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
54250         * lib/filenamecat.c (file_name_concat): Likewise.
54251
54252         2006-03-11  Eric Blake  <ebb9@byu.net>,
54253                     Paul Eggert  <eggert@cs.ucla.edu>
54254
54255         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
54256         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
54257         drive prefix.
54258         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
54259         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
54260         (last_component): New method.
54261         * lib/dirname.c (dir_len): Determine when drive letters need a
54262         subsequent slash.  Preserve // when it is special.
54263         (dir_name): Don't append dot when drive letter is absolute.
54264         [TEST_DIRNAME]: Move into a full-blown gnulib test.
54265         * lib/basename.c (base_name): New semantics - malloc the result.
54266         Preserve // when it is special.  Preserve relative files that look
54267         like drive letters.
54268         (base_len): Preserve // when it is special.
54269         (last_component): New method, similar to old base_name semantics.
54270         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
54271         base_name.  Strip redundant slashes from ///.
54272
54273 2006-07-03  Jim Meyering  <jim@meyering.net>
54274
54275         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
54276         macro is used before the first cycle_check call.
54277
54278 2006-07-03  Eric Blake  <ebb9@byu.net>
54279
54280         * modules/dirname (Depends-on): Add xstrndup.
54281
54282 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54283
54284         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
54285         test cases, so that config.log is a bit easier to follow.
54286
54287 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54288
54289         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
54290         both are 64 bits, since this seems to be the tradition, and this
54291         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
54292         we ever run into a host that prefers long long to long in this
54293         case, we'll need another configure-time test.  Problem reported by
54294         Jim Meyering.
54295
54296 2006-07-02  Eric Blake  <ebb9@byu.net>
54297
54298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
54299
54300 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54301
54302         * modules/inttypes (Depends-on): No longer depends on stdint.
54303         * modules/stdint (Description): Say more about assumptions.
54304         Say that the fast types might differ.  Say macros are used.
54305         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
54306         (Makefile.am): Revise list of substituted symbols to match
54307         new stdint.m4.
54308         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
54309         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
54310         * tests/test-stdint.c (verify_same_types)
54311         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
54312         the code conforms to C99/C89.
54313         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
54314         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
54315
54316 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54317
54318         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
54319         but fix a bug, by requiring at least 64 bits.
54320         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54321         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
54322         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
54323         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
54324
54325         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
54326         changes.  Make 2.59 a prerequisite.  Check and substitute for
54327         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
54328         inttypes.h.  Do not use special include files; just use the
54329         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
54330         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
54331         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
54332         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
54333         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
54334         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
54335         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
54336         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
54337         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
54338         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
54339         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
54340         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
54341         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
54342         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
54343         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
54344         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
54345         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
54346         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
54347         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
54348         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
54349         WINT_MAX.  Check for C99 conformance more strictly, by detecting
54350         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
54351         not check for things that C99 does not require, e.g., int8_t.  If
54352         a test isn't needed unless <stdint.h> isn't working, and is
54353         unlikely to be needed for any other reason, then don't do it
54354         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
54355         size_t, since we assume C89 freestanding at least.  Do not check
54356         for sig_atomic_t, wchar_t, or wint_t, since the code now does
54357         the right thing even if the types are not defined.  Instead use:
54358         (gl_STDINT_TYPE_PROPERTIES): New macro.
54359         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
54360         testing whether <sys/types.h> clashes, as Autoconf does this for
54361         us now.  All uses removed.
54362         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
54363         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
54364         (gl_CHECK_TYPE_SAME):
54365         Remove; no longer needed.
54366         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
54367         exists, since we'll return 0 anyway in that case.
54368         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
54369
54370 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54371
54372         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
54373         possible collision with system files.
54374         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
54375         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
54376         WCHAR_MIN and WCHAR_MAX in this case.
54377         (<stddef.h>): Do not include; no longer needed.
54378         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
54379         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
54380         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
54381         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
54382         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
54383         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
54384         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
54385         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
54386         !defined(__c99))]: Include in this case too, since it's harmless
54387         now.
54388         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
54389         dangerous to do so.
54390         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
54391         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
54392         (_STDINT_MIN, _STDINT_MAX): New macros.
54393         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54394         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54395         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54396         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54397         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54398         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54399         macros, not typedefs; this simplifies things quite a bit.
54400         Use long int for all types narrower than int64_t.
54401         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54402         Define in terms of long long int or int64_t or long int,
54403         not int64_t or int32_t.  This saves some compile-time testing.
54404         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54405         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54406         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54407         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54408         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54409         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54410         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54411         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54412         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54413         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54414         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54415         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54416         undef any previous version and define our own version, for
54417         simplicity and consistency with the new macros for types.
54418         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54419         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54420         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54421         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54422         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54423         @WINT_T_SUFFIX@ to keep things simple here.
54424         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54425         Simplify by assuming typical 8/16/32/64 host, since we're
54426         already doing that elsewhere anyway.
54427         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54428         and assume long long int is 64 bits if available.  This
54429         speeds up 'configure'.
54430
54431 2006-07-01  Eric Blake  <ebb9@byu.net>
54432
54433         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54434         Reported by Andreas Buening.
54435
54436 2006-07-01  Eric Blake  <ebb9@byu.net>
54437
54438         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54439
54440 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54441
54442         * lib/getaddrinfo.c: fixed typo
54443
54444 2006-06-29  Jim Meyering  <jim@meyering.net>
54445
54446         * modules/strftime (Maintainer): Add my name, since with the
54447         FPRINTFTIME changes strftime.c has forked from glibc.
54448
54449 2006-06-29  Eric Blake  <ebb9@byu.net>
54450
54451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54452
54453 2006-06-29  Eric Blake  <ebb9@byu.net>
54454
54455         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54456
54457 2006-06-29  Eric Blake  <ebb9@byu.net>
54458
54459         * lib/stat_.h: New file.
54460
54461 2006-06-29  Eric Blake  <ebb9@byu.net>
54462
54463         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54464         unused static function.
54465
54466 2006-06-29  Eric Blake  <ebb9@byu.net>
54467
54468         * doc/functions.texi (Function Portability): Document missing lstat
54469         on mingw.
54470
54471 2006-06-29  Eric Blake  <ebb9@byu.net>
54472
54473         * MODULES.html.sh: Add sys_stat.
54474         * modules/sys_stat: New module.
54475         * modules/mkstemp (Depends-on): Add sys_stat.
54476
54477 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54478
54479         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54480
54481 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54482
54483         * m4/c-bs-a.m4: Removed.
54484
54485 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54486
54487         * lib/strftime.c: Assume strftime() exists.
54488
54489 2006-06-29  Derek Price  <derek@ximbiot.com>
54490
54491         * modules/c-bs-a: Removed - \a is C89.
54492         * MODULES.html.sh: Remove c-bs-a.
54493
54494 2006-06-29  Bruno Haible  <bruno@clisp.org>
54495
54496         * modules/wcwidth (License): Change to LGPL.
54497
54498 2006-06-28  Simon Josefsson  <jas@extundo.com>
54499
54500         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54501         on _WIN32.
54502
54503         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54504         getnameinfo.
54505
54506 2006-06-28  Simon Josefsson  <jas@extundo.com>
54507
54508         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54509
54510 2006-06-28  Simon Josefsson  <jas@extundo.com>
54511
54512         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54513         functions there.  It will succeed on Windows XP, but on Windows
54514         2000 and (presumably) earlier, it will fail, and use the internal
54515         re-implementation.
54516         (use_win32_p): New function.
54517         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54518         Support AI_NUMERICSERV to disable getservbyname.
54519         (getnameinfo): New function, only supports
54520         NI_NUMERICHOST|NI_NUMERICSERV for now.
54521
54522         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54523         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54524         getnameinfo.
54525
54526 2006-06-28  Eric Blake  <ebb9@byu.net>
54527
54528         * modules/wcwidth: New file.
54529         * modules/mbchar (Depends-on): Add wcwidth.
54530         * modules/mbswidth (Depends-on): Add wcwidth.
54531         * MODULES.html.sh: Add wcwidth.
54532
54533 2006-06-28  Eric Blake  <ebb9@byu.net>
54534
54535         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54537
54538 2006-06-28  Eric Blake  <ebb9@byu.net>
54539
54540         * lib/xvasprintf.h: Fix comments.
54541
54542 2006-06-28  Eric Blake  <ebb9@byu.net>
54543
54544         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54545         * lib/mbswidth.c (wcwidth): Move from here...
54546         * lib/wcwidth.h: ...to this new file.
54547
54548 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54549
54550         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54551
54552         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54553         it's obsolete.
54554         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54555
54556 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54557
54558         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54559         Autoconf 2.60 says this stuff was obsolete.
54560
54561 2006-06-28  Bruno Haible  <bruno@clisp.org>
54562
54563         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54564
54565 2006-06-28  Bruno Haible  <bruno@clisp.org>
54566
54567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54568         gt_TYPE_WCHAR_T.
54569
54570 2006-06-28  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54573         declaration for wcwidth.
54574         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54575
54576 2006-06-28  Bruno Haible  <bruno@clisp.org>
54577
54578         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54579         (mkdir): Define using _mkdir.
54580
54581 2006-06-28  Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/getaddrinfo.h: Fix POSIX URL.
54584         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54585         _WIN32.
54586         (use_win32_p): Make static.
54587         (getaddrinfo): Reject service name if it is empty or does not consist
54588         solely of decimal digits, or if its value is > 65535.
54589         (getnameinfo): Remove useless casts.
54590
54591 2006-06-27  Simon Josefsson  <jas@extundo.com>
54592
54593         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54594         Eggert and Martin Lambers.
54595
54596 2006-06-27  Simon Josefsson  <jas@extundo.com>
54597
54598         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54599         Eggert and Martin Lambers.
54600
54601 2006-06-27  Bruno Haible  <bruno@clisp.org>
54602
54603         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54604         result to 0, not to empty.
54605         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54606
54607 2006-06-27  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54610
54611 2006-06-26  Simon Josefsson  <jas@extundo.com>
54612
54613         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54614         present.
54615
54616 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54617
54618         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54619         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54621
54622 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54623
54624         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54625
54626 2006-06-26  Bruno Haible  <bruno@clisp.org>
54627
54628         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54629
54630 2006-06-26  Bruno Haible  <bruno@clisp.org>
54631
54632         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54633
54634 2006-06-26  Bruno Haible  <bruno@clisp.org>
54635
54636         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54637         SGI C compiler in pre-C99 mode.
54638         Suggested by Mark D. Baushke and Larry Jones.
54639
54640 2006-06-26  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54643         WCHAR_MAX.
54644         Reported by Mark D. Baushke and Larry Jones.
54645
54646 2006-06-26  Bruno Haible  <bruno@clisp.org>
54647
54648         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54649         in pre-C99 mode.
54650         Suggested by Mark D. Baushke and Larry Jones.
54651
54652 2006-06-23  Simon Josefsson  <jas@extundo.com>
54653             Bruno Haible  <bruno@clisp.org>
54654
54655         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54656         Emit mostlyclean-local rule.
54657         (func_emit_tests_Makefile_am): Likewise.
54658         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54659
54660 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54661
54662         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54663
54664 2006-06-23  Bruno Haible  <bruno@clisp.org>
54665
54666         * tests/test-stdint.c: Update to match ISO C 99 Technical
54667         Corrigendum 1.
54668
54669 2006-06-23  Bruno Haible  <bruno@clisp.org>
54670
54671         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54672
54673 2006-06-23  Bruno Haible  <bruno@clisp.org>
54674
54675         * lib/stdint_.h: Treat IRIX like OpenBSD.
54676
54677 2006-06-23  Bruno Haible  <bruno@clisp.org>
54678
54679         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
54680         ISO C 99 Technical Corrigendum 1.
54681
54682 2006-06-22  Simon Josefsson  <jas@extundo.com>
54683
54684         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
54685         MinGW.
54686
54687 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
54690         needed.  Some compiler complained about some of them.  Problem reported
54691         by Larry Jones in
54692         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
54693
54694 2006-06-21  Simon Josefsson  <jas@extundo.com>
54695
54696         * tests/test-getaddrinfo.c: New file.
54697
54698         * modules/getaddrinfo-tests: New file.
54699
54700         * MODULES.html.sh: Add inet_pton.
54701
54702         * modules/inet_pton: New file.
54703
54704 2006-06-21  Simon Josefsson  <jas@extundo.com>
54705
54706         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
54707         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
54708         of using the (limited) gnulib implementation on Windows XP.
54709
54710         * m4/inet_pton.m4: New file.
54711
54712 2006-06-21  Simon Josefsson  <jas@extundo.com>
54713
54714         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
54715         variable.
54716
54717         * lib/socket_.h: Don't define WINVER.
54718
54719         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
54720         slightly modified to work in gnulib.
54721
54722 2006-06-21  Simon Josefsson  <jas@extundo.com>
54723
54724         * doc/gnulib.texi (Windows sockets): Add.
54725
54726 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54727
54728         * lib/read-file.c (fread_file): Start with buffer allocation of
54729         0 bytes rather than 1 byte; this simplifies the code.
54730         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
54731         code to free buffer and save/restore errno.
54732         (internal_read_file): Remove unused local.
54733
54734 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
54737         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
54738         Problem reported by Denis Excoffier in
54739         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
54740
54741 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54742
54743         * modules/sys_socket, modules/socklen: Include sys/types since
54744         FreeBSD 4.x's sys/socket.h needs it.
54745
54746 2006-06-19  Simon Josefsson  <jas@extundo.com>
54747
54748         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
54749
54750 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
54753
54754 2006-06-19  Bruno Haible  <bruno@clisp.org>
54755
54756         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
54757         and FULL_PATH_INTTYPES_H in angle brackets.
54758         Reported by Mark D. Baushke <mdb@gnu.org>.
54759
54760 2006-06-17  Eric Blake  <ebb9@byu.net>
54761
54762         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
54763         errno.
54764
54765 2006-06-17  Bruno Haible  <bruno@clisp.org>
54766
54767         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
54768         <sys/inttypes.h>.
54769
54770 2006-06-17  Bruno Haible  <bruno@clisp.org>
54771
54772         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
54773         whether errno is declared. Assume <errno.h> declares errno.
54774
54775 2006-06-17  Bruno Haible  <bruno@clisp.org>
54776
54777         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
54778
54779 2006-06-17  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
54782         problem on Solaris 2.5.1.
54783
54784 2006-06-16  Eric Blake  <ebb9@byu.net>
54785
54786         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
54787         * lib/unicodeio.c [!defined errno]: Likewise.
54788         * lib/strtol.c [!defined errno]: Likewise.
54789         * lib/strtod.c [!defined errno]: Likewise.
54790
54791 2006-06-15  Eric Blake  <ebb9@byu.net>
54792
54793         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
54794
54795 2006-06-15  Eric Blake  <ebb9@byu.net>
54796
54797         * config/srclist.txt (ssize_t.m4): Lose sync.
54798
54799 2006-06-15  Bruno Haible  <bruno@clisp.org>
54800
54801         * modules/stdint (Files): Include m4/full-header-path.m4,
54802         m4/size_max.m4, m4/wchar_t.m4.
54803         (Makefile.am): Many more substitutions.
54804         * modules/stdint-tests: New file.
54805         * tests/test-stdint.c: New file.
54806
54807 2006-06-15  Bruno Haible  <bruno@clisp.org>
54808
54809         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
54810         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
54811         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
54812         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
54813         gl_CHECK_TYPE_SAME): New macros.
54814
54815 2006-06-15  Bruno Haible  <bruno@clisp.org>
54816
54817         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
54818
54819 2006-06-15  Bruno Haible  <bruno@clisp.org>
54820
54821         * lib/stdint_.h: Rewritten to be fully auto-configured.
54822         Fixes bug on HP-UX/IA64.
54823
54824 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
54825
54826         * lib/getdate.y (__attribute__): Don't define if already defined.
54827         Problem reported by Larry Jones.
54828         * lib/utimens.c (__attribute__): Likewise.
54829
54830 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
54831
54832         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
54833         reported by Andreas Schwab.
54834
54835 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54836             Bruno Haible  <bruno@clisp.org>
54837
54838         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54839         check for the declaration of strnlen and a run test that exposes the
54840         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54841         rpl_strndup.
54842
54843 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54844             Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54847
54848 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54849
54850         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54851         compile test, for Tru64 4.0D.
54852
54853 2006-05-28  Karl Berry  <karl@gnu.org>
54854
54855         * config/srclist.txt (printf-args.c): lose sync.
54856
54857 2006-05-26  Martin Lambers  <marlam@marlam.de>
54858
54859         * lib/getpass.c: Updates the test for the native W32 API, and adds
54860         missing includes, thus fixing compilation warnings.
54861
54862 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54863
54864         * lib/exclude.c (exclude_fnmatch): New function.
54865         (excluded_file_name): Call exclude_fnmatch.
54866         * lib/exclude.h (excluded_file_name): New prototype
54867
54868 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54869
54870         * lib/tempname.c (small_open, large_open): New macros.
54871         (__open, __open64) [!_LIBC]: Remove.
54872         (__gen_tempname): Use small_open and large_open instead of __open
54873         and __open64.  This fixes a portability bug on HP-UX 11.11i
54874         reported by Simon Wing-Tang in
54875         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54876
54877 2006-05-24  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54880         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54881         Reported by Thorsten Maerz <torte@netztorte.de> via
54882         Aaron Stone <aaron@serendipity.cx>.
54883
54884 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54885
54886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54887         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54888         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54889         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54890         not really conditional on the cache.
54891         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54892
54893 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54894
54895         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54896         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54897         (my_usleep): Don't mishandle maximum value.
54898
54899 2006-05-19  Jim Meyering  <jim@meyering.net>
54900
54901         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54902
54903 2006-05-17  Bruno Haible  <bruno@clisp.org>
54904
54905         Cygwin portability.
54906         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54907
54908 2006-05-17  Bruno Haible  <bruno@clisp.org>
54909
54910         * lib/stdint_.h: Fix recognition of Cygwin.
54911
54912 2006-05-15  Bruno Haible  <bruno@clisp.org>
54913
54914         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54915         on libtool patch by Ralf Wildenhues.
54916
54917 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54918
54919         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54920         test for C99 conformance; (bool) 0.5 is an integer constant
54921         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54922         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54923
54924 2006-05-11  Simon Josefsson  <jas@extundo.com>
54925
54926         * m4/xvasprintf.m4: Fix obvious typo.
54927
54928 2006-05-11  Jim Meyering  <jim@meyering.net>
54929
54930         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54931         James Lemley.
54932
54933 2006-05-10  Simon Josefsson  <jas@extundo.com>
54934
54935         * lib/md4.c: Typo fix, update copyright years.
54936         (K1, K2): Don't use L because it turn computations into 64-bit on
54937         64-bit platforms.
54938
54939 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54940
54941         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54942         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54943         unwanted sign propagation, e.g., on hosts with 64-bit int.
54944         There still are some problems with reeelly weird theoretical hosts
54945         (e.g., 33-bit int) but it's not worth worrying about now.
54946         * lib/sha1.c (rol): Likewise.
54947         (K1, K2, K3, K4): Remove unnecessary L suffix.
54948
54949 2006-05-10  Bruno Haible  <bruno@clisp.org>
54950
54951         * lib/des.c: Cast to avoid warnings.
54952
54953 2006-05-09  Bruno Haible  <bruno@clisp.org>
54954
54955         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54956         (Depends-on): Depend also on xsize, stdarg.
54957         (configure.ac): Add gl_XVASPRINTF.
54958
54959 2006-05-09  Bruno Haible  <bruno@clisp.org>
54960
54961         * m4/xvasprintf.m4: New file.
54962
54963 2006-05-09  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54966         (EOVERFLOW): Define fallback value.
54967         (xstrcat): New function.
54968         (xvasprintf): Recognize the special case of a string concatenation.
54969
54970 2006-05-08  Eric Blake  <ebb9@byu.net>
54971
54972         * gnulib-tool (func_version): Base copyright year on CVS date.
54973         (func_emit_copyright_notice): New function.
54974         (func_emit_lib_Makefile_am): Use it.
54975         (func_emit_tests_Makefile_am): Likewise.
54976         (func_import): Likewise.
54977
54978 2006-05-08  Bruno Haible  <bruno@clisp.org>
54979
54980         * modules/stdarg: New file.
54981         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54982
54983 2006-05-08  Bruno Haible  <bruno@clisp.org>
54984
54985         * m4/stdarg.m4: New file, from GNU gettext.
54986
54987 2006-05-08  Bruno Haible  <bruno@clisp.org>
54988
54989         * config/srclist.txt (build-aux/config.rpath): different from latest
54990         release.
54991
54992 2006-05-08  Bruno Haible  <bruno@clisp.org>
54993
54994         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54995
54996 2006-05-05  Jim Meyering  <jim@meyering.net>
54997
54998         * m4/warning.m4: New file, derived from bison's file by the same name.
54999
55000 2006-05-03  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/stdint_.h: Shorter URL.
55003         * lib/inttypes.h: Likewise.
55004
55005 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55006
55007         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
55008
55009 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55010
55011         * lib/verify.h: Document the internals better.  Most of this change
55012         was written by Bruno Haible.
55013
55014 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         * doc/verify.texi: New file, partly based on a proposal by
55017         Bruno Haible.
55018
55019 2006-05-02  Bruno Haible  <bruno@clisp.org>
55020
55021         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
55022         test from here...
55023         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
55024
55025 2006-04-29  Bruno Haible  <bruno@clisp.org>
55026
55027         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
55028         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
55029
55030 2006-04-29  Bruno Haible  <bruno@clisp.org>
55031
55032         * gnulib-tool: Make --update option actually work.
55033
55034 2006-04-29  Bruno Haible  <bruno@clisp.org>
55035
55036         * doc/gcd.texi: New file.
55037         * doc/gnulib.texi: Include it.
55038
55039 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         * lib/getdate.y (get_date): When adding relative date, start with the
55042         initial time, not with the result of the first mktime call.
55043
55044 2006-04-25  Bruno Haible  <bruno@clisp.org>
55045
55046         * gnulib-tool (func_import): Output the include directives in three
55047         blocks, sorted separately.
55048         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55049
55050 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55051
55052         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
55053         to define main with arguments, for C++.  Reported by Eric Blake.
55054         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
55055         Prefer 'int main ()' to 'int main (void)', for C++.
55056         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
55057         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
55058         for 'main', for C99 and C++.
55059
55060 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55061
55062         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
55063         Don't assume that exit status -1 is valid.
55064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55065         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55066         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
55067         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
55068         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
55069         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
55070         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
55071         functions can be used without declaring them, or that you can
55072         exit with status -1.
55073         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
55074
55075 2006-04-24  Karl Berry  <karl@gnu.org>
55076
55077         * config/srclist.txt (longdouble.m4): sync lost.
55078
55079 2006-04-24  Eric Blake  <ebb9@byu.net>
55080
55081         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
55082
55083 2006-04-24  Bruno Haible  <bruno@clisp.org>
55084
55085         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
55086         poll() implementation in AIX.
55087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55088
55089 2006-04-24  Bruno Haible  <bruno@clisp.org>
55090
55091         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
55092         assigned exactly once.
55093
55094 2006-04-23  Claudio Fontana  <claudio@gnu.org>
55095             Bruno Haible  <bruno@clisp.org>
55096
55097         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
55098         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
55099         for AM_CPPFLAGS.
55100
55101 2006-04-23  Bruno Haible  <bruno@clisp.org>
55102
55103         * modules/copy-file: Depend on unistd.
55104         * modules/execute: Likewise.
55105         * modules/fatal-signal: Likewise.
55106         * modules/findprog: Likewise.
55107         * modules/mkdtemp : Likewise.
55108         * modules/pipe: Likewise.
55109         * modules/wait-process: Likewise.
55110
55111 2006-04-23  Bruno Haible  <bruno@clisp.org>
55112
55113         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
55114         condition was already detected.
55115         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55116
55117 2006-04-23  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/copy-file.c: Include <unistd.h> unconditionally.
55120         * lib/execute.c: Likewise.
55121         * lib/fatal-signal.c: Likewise.
55122         * lib/findprog.c: Likewise.
55123         * lib/mkdtemp.c: Likewise.
55124         * lib/pipe.h: Likewise.
55125         * lib/pipe.c: Likewise.
55126         * lib/wait-process.h: Likewise.
55127
55128 2006-04-23  Bruno Haible  <bruno@clisp.org>
55129
55130         * gnulib-tool (func_usage): Fix --import description. Document
55131         --update.
55132         (func_import): Create temporary file in a temporary directory, if
55133         --dry-run is specified. Silence errors from 'grep' when there are no
55134         m4 files in $m4dir.
55135         (func_create_testdir): Silence errors from 'grep' when there are no
55136         m4 files in $m4dir.
55137         Reported by Karl Berry <karl@freefriends.org>.
55138
55139 2006-04-20  Bruno Haible  <bruno@clisp.org>
55140
55141         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
55142         one argument, so that the code will be portable to Autoconf 2.60.
55143         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
55144         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55145         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
55146
55147 2006-04-19  Derek Price  <derek@ximbiot.com>
55148             Eric Blake  <ebb9@byu.net>
55149
55150         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
55151         rather than "/full/path.h".  Update comment to match.  Shorten &
55152         generalize m4_translit call via AS_TR_CPP.
55153
55154 2006-04-19  Derek Price  <derek@ximbiot.com>
55155             Eric Blake  <ebb9@byu.net>
55156
55157         * lib/inttypes.h: Correct grammar in comment.
55158
55159 2006-04-18  Derek Price  <derek@ximbiot.com>
55160             Paul Eggert  <eggert@cs.ucla.edu>
55161
55162         * modules/inttypes: New file.
55163         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
55164
55165 2006-04-18  Derek Price  <derek@ximbiot.com>
55166             Paul Eggert  <eggert@cs.ucla.edu>
55167
55168         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
55169         New files.
55170
55171 2006-04-18  Derek Price  <derek@ximbiot.com>
55172             Paul Eggert  <eggert@cs.ucla.edu>
55173
55174         * lib/inttypes.h: New file.
55175         * lib/strtoimax.c: Assume <inttypes.h>.
55176
55177 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
55180         isn't mounted.  Problem reported by Kir Kolyshkin.
55181
55182 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55183
55184         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
55185         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
55186         Derek R. Price.
55187         * lib/regex.h (RE_DUP_MAX): Update comment to match current
55188         implementation.
55189
55190 2006-04-12  Eric Blake  <ebb9@byu.net>
55191
55192         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
55193         is now done automatically by the corresponding Autoconf macro.
55194
55195 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
55196
55197         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
55198         time_r.h.
55199
55200 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55201
55202         Merge regex changes from libc, removing some of our
55203         POSIX-conformance changes that were rejected and redoing them in a
55204         less-intrusive way.
55205
55206         * lib/regcomp.c (re_compile_internal, init_dfa):
55207         Length arg is now size_t, not Idx.  All uses changed.
55208         (peek_token): Forward decl now says internal_function.
55209         (__re_error_msgid, __re_error_msgid_idx):
55210         Now static rather than extern with attribute_hidden.
55211         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
55212         For some reason libc prefers K&R style defns for external functions.
55213         (regerror) [!defined _LIBC]: Likewise.
55214         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
55215         (seek_collating_symbol_entry, lookup_collation_sequence_value):
55216         (build_range_exp, build_collating_symbol):
55217         Use K&R-style defn.
55218         (re_compile_fastmap): Use '\0' to memset, not 0.
55219         (utf8_sb_map): Make the calculations more obvious.
55220         (init_dfa, parse_bracket_exp, build_charclass_op):
55221         Call calloc and cast result, as glibc does.
55222         (init_word_char, fetch_token, peek_token, peek_token_bracket):
55223         (build_range_exp, build_collating_symbol):
55224         Now internal functions.
55225
55226         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
55227
55228         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
55229         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
55230         Don't depend on VMS; depend on __VMS instead, for POSIX
55231         namespace cleanness.
55232         (regoff_t): Define to ssize_t, not long int.
55233
55234         Remove the REG_ macros named below.  Instead, make the old names
55235         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
55236         __USE_GNU_REGEX.
55237         (REG_BACKSLASH_ESCAPE_IN_LISTS):
55238         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
55239         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
55240         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
55241         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
55242         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
55243         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
55244         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
55245         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
55246         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
55247         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
55248         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
55249         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
55250         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
55251         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
55252         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
55253         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
55254         (REG_NREGS):
55255         Remove.  All uses replaced by the old RE_* names.
55256         (RE_BACKSLASH_ESCAPE_IN_LISTS):
55257         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
55258         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
55259         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
55260         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
55261         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
55262         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
55263         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
55264         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
55265         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
55266         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
55267         Don't bother having these macros be independent of each others'
55268         values, since they no longer exist in the POSIX name space.
55269
55270         Rename the following member names back to their old names,
55271         unless !__USE_GNU_REGEX.  All uses changed back.
55272         (buffer): Renamed from re_buffer.
55273         (allocated): Renamed from re_allocated.
55274         (used): Renamed from re_used.
55275         (syntax): Renamed from re_syntax.
55276         (fastmap): Renamed from re_fastmap.
55277         (translate): Renamed from re_translate.
55278         (can_be_null): Renamed from re_can_be_null.
55279         (regs_allocated): Renamed from re_regs_allocated.
55280         (fastmap_accurate): Renamed from re_fastmap_accurate.
55281         (no_sub): Renamed from re_no_sub.
55282         (not_bol): Renamed from re_not_bol.
55283         (not_eol): Renamed from re_not_eol.
55284         (newline_anchor): Renamed from re_newline_anchor.
55285         (num_regs): Renamed from rm_num_regs.
55286         (start): Renamed from rm_start.
55287         (end): Renamed from rm_end.
55288
55289         (free_state): Move up a bit.
55290
55291         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
55292         #define to be empty.
55293         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
55294         when that is what is intended.
55295         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
55296         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
55297         (MAX): New macro.
55298         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
55299         All uses changed back to re_malloc, etc.  It's now the caller's
55300         responsibility to check for overflow; all callers changed.
55301         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
55302         (re_x2nrealloc): Remove.
55303         (free_state): Remove decl.
55304
55305         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
55306         (re_set_registers, re_exec):
55307         Use K&R-style defn.
55308
55309         2006-01-31  Roland McGrath  <roland@redhat.com>
55310
55311         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
55312         Reported by Mike Frysinger <vapier@gentoo.org>.
55313
55314         2006-01-15  Andreas Jaeger  <aj@suse.de>
55315
55316         [BZ #1950]
55317         * lib/regex_internal.c (re_string_reconstruct): Adjust for
55318         build_wcs_upper_buffer change.
55319         (build_wcs_upper_buffer): Change return type.
55320
55321         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
55322
55323         * lib/regex_internal.h: Include <stdint.h> if available.
55324
55325         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
55326
55327         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
55328
55329         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55330
55331         * lib/regcomp.c: Adjust for changed secondary hash function.
55332
55333         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
55334
55335         * lib/regex.h: Pretty printing.
55336         Clean up namespace a bit.
55337
55338         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
55339
55340         * lib/regexec.c (update_cur_sifted_state, check_arrival,
55341         check_arrival_add_next_nodes): Avoid using uninitialized variable.
55342
55343         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55344                     Ulrich Drepper  <drepper@redhat.com>
55345
55346         [BZ #1302]
55347         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
55348         changed.
55349         (bitset_word_t): Renamed from bitset_word.  All uses changed.
55350
55351         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
55352
55353         [BZ #281]
55354         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
55355         * lib/regcomp.c: Remove unnecessary uses of
55356         unsigned RE_TRANSLATE_TYPE.
55357         * lib/regex_internal.h: Likewise.
55358         * lib/regex_internal.c: Likewise.
55359         * lib/regexec.c: Likewise.
55360         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
55361
55362         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
55363
55364         * lib/regexec.c (find_recover_state): Remove unnecessary
55365         initialization.
55366         (transit_state_bkref): Make DFA a const pointer.
55367         (get_subexp): Likewise.
55368         (check_arrival): Likewise.
55369         (update_cur_sifted_state): Likewise.
55370         (re_search_internal): Likewise.
55371         (prune_impossible_nodes): Likewise.
55372         (acquire_init_state_context): Likewise.
55373         (proceed_next_node): Likewise.
55374         (set_regs): Likewise.
55375         (free_fail_stack_return): Likewise.
55376         (check_arrival_expand_ecl): Mark DFA parameter as const.
55377         (check_arrival_expand_ecl_sub): Likewise.
55378         (check_subexp_limits): Likewise.
55379         (sub_epsilon_src_nodes):  Likewise.
55380         (add_epsilon_src_nodes):  Likewise.
55381         (merge_state_array): Likewise.
55382         (update_regs): Likewise.
55383         (build_trtable): Likewise.
55384         (sift_states_backward): Mark MCTX parameter as const.
55385         (build_sifted_states): Likewise.
55386         (update_cur_sifted_state): Likewise.
55387         (sift_states_mkref): Likewise.
55388         (check_arrival_expand_ecl): Mark eclosure as const.
55389         (check_dst_limits_calc_pos_1): Likewise.
55390         * lib/regex_internal.h (re_match_context_t): Make dfa a const
55391         pointer.
55392
55393         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55394
55395         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55396         (transit_state_sb): Likewise.
55397         (transit_state_mb): Likewise.
55398         (sift_states_iter_mb): Likewise.
55399         (check_arrival_add_next_nodes): Likewise.
55400         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55401         [_LIBC] (re_search_2_stub): Use mempcpy.
55402
55403         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55404         mbrtowc for very simple UTF-8 case.
55405
55406         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55407         a pointer-to-const.
55408         (re_acquire_state_context): Likewise.
55409         * lib/regex_internal.h: Adjust prototypes.
55410
55411         * lib/regex.c: Prevent using C++ compilers.
55412
55413         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55414         (re_acquire_state_context): Likewise.
55415
55416 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55417
55418         * modules/regex (Depends-on): Add ssize_t.
55419
55420 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55421
55422         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55423         translation table.
55424
55425 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55426
55427         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55428
55429 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55430             Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55433         <sys/types.h> and <inttypes.h>.
55434
55435 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55436
55437         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55438         `__error_t_defined', so argp.h will not typedef the former.
55439
55440 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55443         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55444         glibc names.  Even if glibc is changed to conform to POSIX, the
55445         traditional names will be available anyway, since regex depends on
55446         the extensions module.  Also, fix a longstanding typo in the
55447         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55448         reported by Emanuele Giaquinta.  Also, change sense of cached
55449         variable, so that the message makes sense.
55450
55451 2006-03-24  Simon Josefsson  <jas@extundo.com>
55452
55453         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55454         including some doc fixes.
55455         (base64_encode_alloc): Fix +1 bug on allocation failures.
55456
55457 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55458
55459         * lib/base64.c (base64_encode): Do not read past end of array with
55460         unsanitized input on systems with CHAR_BIT > 8.
55461
55462 2006-03-24  Eric Blake  <ebb9@byu.net>
55463
55464         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55465
55466 2006-03-22  Karl Berry  <karl@gnu.org>
55467
55468         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55469         * config/srclistvars.sh (COREUTILS): new var.
55470
55471 2006-03-17  Jim Meyering  <jim@meyering.net>
55472
55473         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55474         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55475
55476 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55477
55478         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55479         no longer needs it.  Instead, check that regoff_t is as least
55480         as wide as ptrdiff_t.
55481
55482         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55483         so that our regex.h stays compatible with the installed regex.
55484         This is helpful for installers who configure --without-included-regex.
55485         Problem reported by Emanuele Giaquinta.
55486
55487 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55488
55489         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55490         Typedef to long int, not to off_, as POSIX will likely change
55491         in that direction.
55492
55493 2006-03-15  Eric Blake  <ebb9@byu.net>
55494
55495         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55496
55497 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55498
55499         * lib/argp-help.c (validate_uparams): Fix typo
55500         * lib/argp-parse.c (argp_default_options): Consistently begin help
55501         messages with a lowercase letter.
55502
55503 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55504
55505         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55506         overrun buffers and shouldn't be used (much as gets shouldn't be
55507         used).
55508         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55509
55510 2006-03-08  Simon Josefsson  <jas@extundo.com>
55511
55512         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55513         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55514
55515 2006-03-08  Simon Josefsson  <jas@extundo.com>
55516
55517         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55518         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55519
55520 2006-03-08  Simon Josefsson  <jas@extundo.com>
55521
55522         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55523         signal that configure disabled the device.
55524
55525 2006-03-08  Simon Josefsson  <jas@extundo.com>
55526
55527         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55528         languages.
55529
55530 2006-03-07  Simon Josefsson  <jas@extundo.com>
55531
55532         * modules/getopt (Depends-on): Add unistd.
55533
55534         * modules/unistd: New file.
55535
55536 2006-03-07  Simon Josefsson  <jas@extundo.com>
55537
55538         * modules/gc-random: New file.
55539
55540 2006-03-07  Simon Josefsson  <jas@extundo.com>
55541
55542         * m4/unistd_h.m4: New file.
55543
55544 2006-03-07  Simon Josefsson  <jas@extundo.com>
55545
55546         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55547         test to be side-effect free by storing the result in the cache
55548         variable gl_cv_lib_readline, and moving the assignment of
55549         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55550         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55551
55552 2006-03-07  Simon Josefsson  <jas@extundo.com>
55553
55554         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55555         error on missing devices (the functions will return an error).
55556
55557         * m4/gc.m4: Move random stuff to gc-random.m4
55558
55559 2006-03-07  Simon Josefsson  <jas@extundo.com>
55560
55561         * lib/unistd_.h: New file.
55562
55563 2006-03-07  Simon Josefsson  <jas@extundo.com>
55564
55565         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55566
55567 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55568
55569         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55570         Problem reported by Juan Manuel Guerrero.
55571
55572 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55575         the unistd module.
55576         * lib/getlogin_r.c: Likewise.
55577         * lib/getlogin_r.h: Likewise.
55578         * lib/glob.c: Likewise.
55579         * lib/pagealign_alloc.c: Likewise.
55580         * lib/unistd_.h: Remove; no longer needed.
55581
55582 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55583
55584         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55585         Add unistd.
55586         * modules/c-stack (Depends-on): Add unistd.
55587         * modules/getlogin_r: Likewise.
55588         * modules/glob: Likewise.
55589         * modules/pagealign_alloc: Likewise.
55590         * modules/unistd (Files): Remove lib/unistd_.h.
55591         (EXTRA_DIST): Remove.
55592         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55593         need unistd_.h.
55594         (MOSTLYCLEANFILES): Remove unistd.h-t.
55595
55596 2006-03-03  Simon Josefsson  <jas@extundo.com>
55597
55598         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55599
55600 2006-03-03  Simon Josefsson  <jas@extundo.com>
55601
55602         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55603         libidn and bison.
55604
55605 2006-03-03  Simon Josefsson  <jas@extundo.com>
55606
55607         * build-aux/maint.mk: Add indent target.
55608
55609 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55610
55611         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55612         our replacement poll.h in any case, to avoid a differing
55613         declaration from a system header.  Seen on AIX.
55614
55615 2006-03-01  Simon Josefsson  <jas@extundo.com>
55616
55617         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55618         <kasal@ucw.cz>.
55619
55620 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55621
55622         * modules/gettime (Depends-on): Add extensions module.
55623         * modules/nanosleep (Depends-on): Likewise.
55624         * modules/settime (Depends-on): Likewise.
55625
55626 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55627
55628         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55629         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55630         pedantically.
55631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55632         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55633
55634         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55635         not "==".  Reported by Ralf Wildenhues.
55636
55637 2006-03-01  Karl Berry  <karl@gnu.org>
55638
55639         * doc/Copyright/request-*: new files, synced from gnuorg.
55640
55641 2006-03-01  Karl Berry  <karl@gnu.org>
55642
55643         * config/srclist.txt (Copyright/*): new entries.
55644
55645 2006-02-28  Simon Josefsson  <jas@extundo.com>
55646
55647         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55648
55649 2006-02-27  Simon Josefsson  <jas@extundo.com>
55650
55651         * lib/base64.h: Indent #define's.  From Jim Meyering
55652         <jim@meyering.net>.
55653
55654 2006-02-27  Jim Meyering  <jim@meyering.net>
55655
55656         Revert the change of 2006-02-24, so these files can continue
55657         to be sync'd from gettext.
55658         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55659         of `config.h'.
55660
55661 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55662
55663         * modules/intprops: New file.
55664         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55665         Add intprops.
55666         * modules/getloadavg (Files): Remove lib/intprops.h.
55667         (Depends-on): Add intprops.
55668         * modules/human: Likewise.
55669         * modules/inttostr: Likewise.
55670         * modules/openat: Likewise.
55671         * modules/sig2str: Likewise.
55672         * modules/userspec: Likewise.
55673         * modules/utimecmp: Likewise.
55674         * modules/xnanosleep: Likewise.
55675         * modules/xstrtol: Likewise.
55676
55677 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
55678
55679         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
55680         * modules/lock-tests (TESTS): Use $(EXEEXT).
55681         * modules/tls-tests: Likewise.
55682         * modules/argp-tests: Likewise.
55683         (check_PROGRAMS): New var, replacing...
55684         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
55685
55686 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55687
55688         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
55689         `config.h'.
55690
55691 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55692
55693         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
55694
55695 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55696
55697         Sync from coreutils.
55698         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
55699         gl_CHDIR_SAFER.
55700
55701 2006-02-22  Jim Meyering  <jim@meyering.net>
55702
55703         Sync from coreutils.
55704         * m4/chdir-safer.m4: New file.
55705
55706 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
55709         AT_FDCWD exceeds INT_MAX.
55710         * lib/openat.h (AT_FDCWD): Likewise.
55711
55712 2006-02-17  Eric Blake  <address@hidden>
55713
55714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
55715
55716 2006-02-16  Simon Josefsson  <jas@extundo.com>
55717
55718         * modules/getaddrinfo (Depends-on): Add sys_socket.
55719
55720 2006-02-15  Simon Josefsson  <jas@extundo.com>
55721
55722         * build-aux/maint.mk: Add dsyntax-check rule.
55723
55724 2006-02-15  Eric Blake  <ebb9@byu.net>
55725
55726         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
55727         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
55728         'present but cannot compile' warnings on cygwin.
55729         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
55730         use ws2tcpip.h if sys/socket.h works.
55731         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
55732         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
55733
55734 2006-02-14  Simon Josefsson  <jas@extundo.com>
55735
55736         * modules/maintainer-makefile (Files): Rename.
55737
55738         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
55739         and (the local) Makefile.cfg to maint-cfg.mk.
55740
55741         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
55742         to the latter.
55743
55744         * modules/maintainer-makefile: New module.
55745
55746         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
55747         severaly stripped to make it possible to build it up from scratch
55748         with reliable tests.
55749
55750         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
55751         fixes to permit overriding the default actions when configure and
55752         makefile are not available.
55753
55754 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55755
55756         Sync from coreutils.
55757         * modules/lstat (Depends-on): Don't depend on xalloc.
55758         (License): Change from GPL to LGPL, since this is now simply a
55759         replacement for a libc function.
55760
55761 2006-02-14  Jim Meyering  <jim@meyering.net>
55762
55763         Sync from coreutils.
55764
55765         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
55766         failure on deficient systems, and simplify gnulib lgpl dependencies.
55767         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
55768         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
55769
55770         * lib/xalloc-die.c: Remove unused definition of N_.
55771
55772 2006-02-14  Jim Meyering  <jim@meyering.net>
55773
55774         Sync from coreutils.
55775         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
55776         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
55777         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
55778         double-quote uses of that variable, to accommodate the rare case in
55779         which getmntent is available in none of the libraries checked.  This
55780         happens at least on FreeBSD 5.0.
55781
55782 2006-02-13  Simon Josefsson  <jas@extundo.com>
55783
55784         * gnulib-tool (Usage): Fix --import, from
55785         karl@freefriends.org (Karl Berry).
55786
55787 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55788
55789         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
55790
55791 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
55792
55793         * lib/argp-namefrob.h: Restore changes accidentally lost during the
55794         "autoupdate" on 2005-12-12.
55795
55796 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55797
55798         * modules/closeout (Depends-on): Remove atexit.
55799
55800 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55801
55802         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
55803         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
55804
55805 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55806
55807         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
55808         __EXTENSIONS__ if this causes compilation to fail.  Problem
55809         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
55810         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
55811
55812 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
55815         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
55816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
55817         All uses changed.
55818
55819 2006-01-26  Simon Josefsson  <jas@extundo.com>
55820
55821         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
55822         prototype is visible on mingw32.
55823
55824         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
55825         for mingw32.
55826
55827         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
55828         mingw32).
55829
55830 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
55833         attempt to open for write; this always fails, at least on POSIX
55834         hosts.  This reinstates the 2006-01-09 change, which was
55835         inadvertently removed.
55836
55837 2006-01-26  Bruno Haible  <bruno@clisp.org>
55838
55839         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55840         Reported by Paul Eggert.
55841
55842 2006-01-26  Bruno Haible  <bruno@clisp.org>
55843             Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * lib/stdbool_.h (_Bool)
55846         [(! (defined __cplusplus || defined __BEOS__)
55847           && !defined __GNUC__
55848           && !(defined __HP_cc || defined __xlc__
55849                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55850                || defined __sgi))]:
55851         #define to signed char in these cases too; this simplifies
55852         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55853         etc., separately) and makes it more conservative.
55854
55855 2006-01-25  Simon Josefsson  <jas@extundo.com>
55856
55857         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55858         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55859         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55860
55861 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55862
55863         * lib/argp-namefrob.h: Bugfix. Remove stray #
55864
55865 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55866
55867         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55868         so that we test the test.
55869         Check for yet another HP-UX cc bug involving *bool |= bool.
55870
55871 2006-01-25  Karl Berry  <karl@gnu.org>
55872
55873         * config/srclist.txt (vasnprintf.c): sync lost.
55874
55875 2006-01-25  Jim Meyering  <jim@meyering.net>
55876
55877         Sync from the stable (b5) branch of coreutils:
55878
55879         * lib/fts.c (fts_children): Don't let close() clobber errno from
55880         failed fchdir().
55881
55882         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55883         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55884         a dangling symlink.  That can also happen at least for ELOOP.
55885         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55886         FYI, this bug predates the inclusion of fts.c in coreutils.
55887
55888         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55889         in their own block, so pre-c99 compilers don't object.
55890
55891         Avoid the double-free (first in fts_read, second in fts_close) that
55892         would occur when an `active' directory is made inaccessible (e.g.,
55893         via chmod a-x) during a traversal.
55894         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55895         before returning.  Reproduce this failure by
55896         mkdir -p a/b; cd a; chmod a-x . b
55897         Reported by Stavros Passas.
55898
55899 2006-01-25  Jim Meyering  <jim@meyering.net>
55900
55901         * lib/fileblocks.c: Remove more useless parentheses.
55902         * lib/readutmp.h: Likewise.
55903
55904 2006-01-25  Bruno Haible  <bruno@clisp.org>
55905
55906         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55907         warnings.
55908         Reported by Paul Eggert.
55909
55910 2006-01-25  Bruno Haible  <bruno@clisp.org>
55911
55912         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55913         rid of a trap command. For Solaris sh.
55914         Reported by Mark D. Baushke <mdb@gnu.org>.
55915
55916 2006-01-24  Simon Josefsson  <jas@extundo.com>
55917
55918         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55919         Bruno.
55920
55921 2006-01-24  Karl Berry  <karl@gnu.org>
55922
55923         * config/srclist.txt (argp-namefrob.h): sync lost.
55924
55925 2006-01-24  Jim Meyering  <jim@meyering.net>
55926
55927         * modules/openat (Files): Add lib/intprops.h.
55928         From Mark D. Baushke.
55929
55930 2006-01-24  Jim Meyering  <jim@meyering.net>
55931
55932         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55933         Reported by Mark D. Baushke.
55934
55935 2006-01-24  Jim Meyering  <jim@meyering.net>
55936
55937         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55938
55939 2006-01-24  Bruno Haible  <bruno@clisp.org>
55940
55941         * modules/strnlen (Maintainer): Change from glibc to all.
55942
55943 2006-01-24  Bruno Haible  <bruno@clisp.org>
55944
55945         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55946         Patch by Paul Eggert.
55947
55948 2006-01-24  Bruno Haible  <bruno@clisp.org>
55949
55950         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55951         already has it.
55952         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55953         2005-11-26.
55954
55955         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55956         'signed char' to avoid problems with the built-in _Bool type.
55957         Reported by Paul Eggert on 2005-11-26.
55958
55959 2006-01-24  Bruno Haible  <bruno@clisp.org>
55960
55961         * gnulib-tool (func_import): Avoid constructing complicated sed
55962         expressions inside backquote.
55963         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55964
55965 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55966
55967         These changes imported from libc.
55968         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55969         test and two separate function calls.
55970         * lib/strndup.c (__strndup): Add libc_hidden_def.
55971
55972 2006-01-23  Simon Josefsson  <jas@extundo.com>
55973
55974         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55975         Remove the test_*_SOURCES variable: automake infers it by default.
55976         * modules/tls-tests: Likewise.
55977
55978 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55979
55980         Work around porting bugs reported by Dieter in
55981         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55982         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55983         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55984         Include "getopt.h" first, to check interface.
55985         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55986         !HAVE_DECL_GETENV.
55987         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55988         (__strndup): Revert to K&R-style function dfns, the glibc style.
55989         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55990         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55991         Include strnlen.h first, to get prototype properly.
55992         (strnlen): Renamed from __strnlen.
55993         Remove weak alias.
55994
55995 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55996
55997         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55998
55999 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56000
56001         * config/srclist.txt: Adjust to reflect glibc reorganization.
56002         This affects only comments.
56003
56004 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56005
56006          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
56007          Reported by Bruce Korb <bkorb@gnu.org>.
56008
56009 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56010
56011         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
56012         to pacify gcc -Wswitch-default.
56013
56014 2006-01-22  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
56017         temporary buffer for sprintf, take into account the precision also
56018         for 'd', 'i', 'u', 'o', 'x', 'X'.
56019
56020 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56021
56022         * modules/argp-tests: New module
56023         * tests/test-argp.c: New file
56024         * tests/test-argp-2.sh: New file
56025
56026 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56027
56028         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
56029         (__argp_base_name): Removed
56030         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
56031         typo.
56032         (__argp_base_name): Provide macro definition or extern declaration
56033         depending on the configuration
56034
56035 2006-01-20  Simon Josefsson  <jas@extundo.com>
56036
56037         * modules/inet_ntop (Depends-on): Depend on sys_socket.
56038
56039 2006-01-20  Simon Josefsson  <jas@extundo.com>
56040
56041         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
56042
56043 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56044
56045         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
56046         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
56047         Suggested by Bruno Haible.
56048
56049 2006-01-20  Karl Berry  <karl@gnu.org>
56050
56051         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
56052         until changes propagate, I guess.
56053
56054 2006-01-19  Simon Josefsson  <jas@extundo.com>
56055
56056         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
56057
56058 2006-01-19  Simon Josefsson  <jas@extundo.com>
56059
56060         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
56061
56062 2006-01-19  Simon Josefsson  <jas@extundo.com>
56063
56064         * gnulib-tool: Set check_PROGRAMS.
56065
56066         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56067         modules/des-tests, modules/gc-arcfour-tests,
56068         modules/gc-arctwo-tests, modules/gc-des-tests,
56069         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56070         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56071         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56072         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56073         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56074         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
56075         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
56076         test_*_SOURCES.
56077
56078 2006-01-18  Simon Josefsson  <jas@extundo.com>
56079
56080         * modules/socklen (Depends-on): Depend on sys_socket.
56081
56082 2006-01-18  Simon Josefsson  <jas@extundo.com>
56083
56084         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56085         modules/des-tests, modules/gc-arcfour-tests,
56086         modules/gc-arctwo-tests, modules/gc-des-tests,
56087         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56088         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56089         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56090         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56091         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56092         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
56093         $(EXEEXT) to automake TESTS variable, for mingw32.
56094
56095 2006-01-17  Simon Josefsson  <jas@extundo.com>
56096
56097         * modules/socklen (Include): Need sys/socket.h.
56098
56099 2006-01-17  Bruno Haible  <bruno@clisp.org>
56100
56101         * modules/ssize_t (Include): Add <sys/types.h>.
56102
56103 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
56104
56105         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
56106         it's not portable and it doesn't work with cross-compiles.
56107         Problem reported by Bruno Haible.  Fix missing-$ typo in
56108         'test "gl_cv_ignore_unused_libraries" ...' that prevented
56109         -zignore from being used with Sun's C compiler.
56110
56111 2006-01-12  Simon Josefsson  <jas@extundo.com>
56112
56113         * lib/base64.c: Fix warning, reported by Bruno Haible
56114         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
56115
56116 2006-01-12  Bruno Haible  <bruno@clisp.org>
56117
56118         * modules/ldd: New file.
56119         * build-aux/ldd.sh.in: New file.
56120         * MODULES.html.sh (Support for building libraries and executables): Add
56121         ldd.
56122
56123 2006-01-12  Bruno Haible  <bruno@clisp.org>
56124
56125         * m4/ldd.m4: New file.
56126
56127 2006-01-12  Bruno Haible  <bruno@clisp.org>
56128
56129         * gnulib-tool (func_import, func_create_testdir): Don't go into an
56130         endless loop while replacing $auxdir with build-aux.
56131
56132 2006-01-11  Simon Josefsson  <jas@extundo.com>
56133
56134         * lib/stdint_.h (SIZE_MAX): Add missing (.
56135
56136 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56137
56138         Sync from coreutils.
56139         * lib/md5.c: Fix commentary typos.
56140         (alignof, UNALIGNED_P): No need for a GCC-specific version.
56141         * lib/md5.h (__attribute__): Remove; unused.
56142         * lib/sha1.c: Fix commentary to match md5 better.
56143         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
56144         so that we don't need to worry about alignment.  All uses changed.
56145         This merges the 2005-10-28 md5 change into sha1.
56146
56147 2006-01-11  Jim Meyering  <jim@meyering.net>
56148
56149         Sync from coreutils.
56150         * lib/md5.c (OP): Fix spacing.
56151
56152 2006-01-11  Bruno Haible  <bruno@clisp.org>
56153
56154         Ensure automatic ordering between gl_LOCK and gl_ARGP.
56155         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
56156         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
56157
56158 2006-01-11  Bruno Haible  <bruno@clisp.org>
56159
56160         Ensure automatic ordering between gl_LOCK and gl_ARGP.
56161         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
56162         the "early" section as well.
56163
56164 2006-01-11  Bruno Haible  <bruno@clisp.org>
56165
56166         Avoid "ar: no archive members specified" error on MacOS X.
56167         * gnulib-tool (func_modules_add_dummy): New function.
56168         (func_import, func_create_testdir): Invoke it.
56169
56170 2006-01-11  Bruno Haible  <bruno@clisp.org>
56171
56172         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
56173         with $auxdir in AC_CONFIG_FILES statements.
56174
56175 2006-01-11  Bruno Haible  <bruno@clisp.org>
56176
56177         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56178         Initialize also noinst_HEADERS to empty.
56179
56180 2006-01-11  Bruno Haible  <bruno@clisp.org>
56181
56182         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
56183         variables.
56184         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
56185         autoreconf.
56186
56187 2006-01-11  Bruno Haible  <bruno@clisp.org>
56188
56189         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
56190         overridable by the user.
56191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56192
56193 2006-01-10  Simon Josefsson  <jas@extundo.com>
56194
56195         * modules/sys_socket: New file.
56196
56197 2006-01-10  Simon Josefsson  <jas@extundo.com>
56198
56199         * m4/sys_socket_h.m4: New file.
56200
56201 2006-01-10  Simon Josefsson  <jas@extundo.com>
56202
56203         * lib/socket_.h: New file.
56204
56205 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56206
56207         * modules/readutmp (Maintainer): Add myself.
56208
56209 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56210
56211         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
56212         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
56213         People who are still concerned with buggy memcmp implementations
56214         can invoke gl_FUNC_MEMCMP themselves.
56215
56216 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56217
56218         * lib/regex_internal.h (BITSET_WORD_BITS):
56219         Work around a bug in 64-bit PGC (before version 6.1-2), where the
56220         preprocessor mishandles large unsigned values as if they were signed.
56221         Problem reported by Claudio Fontana in
56222         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
56223
56224 2006-01-10  Jim Meyering  <jim@meyering.net>
56225
56226         Avoid the double-free (first in fts_read, second in fts_close) that
56227         would occur when an `active' directory is made inaccessible (e.g.,
56228         via chmod a-x) during a traversal.
56229         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
56230         before returning.  Reproduce this failure by
56231         mkdir -p a/b; cd a; chmod a-x . b
56232         Reported by Stavros Passas.
56233
56234         Sync from coreutils.
56235         * lib/sha1.c: Tweak grammar in a comment.
56236
56237 2006-01-10  Jim Meyering  <jim@meyering.net>
56238
56239         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
56240         Patch by Joerg Sonnenberger.
56241
56242 2006-01-10  Bruno Haible  <bruno@clisp.org>
56243
56244         * modules/readutmp: Depend on module free.
56245         * modules/strtok_r: Depend on module restrict.
56246
56247 2006-01-10  Bruno Haible  <bruno@clisp.org>
56248
56249         * modules/gettext (configure.ac): Add an invocation of
56250         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
56251
56252 2006-01-10  Bruno Haible  <bruno@clisp.org>
56253
56254         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
56255         Reported by Werner Lemberg <wl@gnu.org>.
56256
56257 2006-01-10  Bruno Haible  <bruno@clisp.org>
56258
56259         * lib/localcharset.c: Update from GNU gettext.
56260
56261 2006-01-10  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/argp.h (__const): Remove macro. Use const instead.
56264         * lib/argp-fmtstream.h (__const): Likewise.
56265         * lib/glob_.h (__const): Remove macro.
56266         * lib/glob-libc.h: Use const instead of __const.
56267
56268 2006-01-10  Bruno Haible  <bruno@clisp.org>
56269
56270         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
56271         variable.
56272         Needed to avoid an automake error regarding the 'gettext' module.
56273
56274 2006-01-09  Simon Josefsson  <jas@extundo.com>
56275
56276         * modules/inet_ntop (Depends-on): Add restrict.
56277
56278 2006-01-09  Simon Josefsson  <jas@extundo.com>
56279
56280         * modules/gc-rijndael-tests (License): Put under LGPL.
56281
56282         * modules/gc-des-tests (License): Likewise.
56283
56284         * modules/gc-arcfour-tests (License): Likewise.
56285
56286         * modules/gc-arctwo-tests (License): Likewise.
56287
56288         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
56289
56290         * modules/gc-hmac-sha1-tests (Files): Likewise.
56291
56292         * modules/gc-hmac-md5-tests (License): Likewise.
56293
56294         * modules/gc-sha1-tests (License): Likewise.
56295
56296         * modules/gc-md5-tests (License): Likewise.
56297
56298         * modules/gc-md4-tests (License): Likewise.
56299
56300         * modules/gc-md2-tests (License): Likewise.
56301
56302         * modules/gc-tests (License): Likewise.
56303
56304         * modules/des-tests (License): Likewise.
56305
56306         * modules/md4-tests (License): Likewise.
56307
56308         * modules/md2-tests (License): Likewise.
56309
56310 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         Sync from coreutils:
56313
56314         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
56315         * modules/lib-ignore: New file.
56316         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
56317         chdir-safer.m4, lchmod.m4.
56318         * modules/openat: Add mkdirat.c, openat-priv.h.
56319
56320 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56321
56322         Sync from coreutils.
56323         * m4/lib-ignore.m4: New file.
56324         * m4/lchmod.m4: New file.
56325
56326 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56327
56328         Sync from coreutils.
56329         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
56330         for write access: POSIX says that must fail.
56331         * lib/fts.c (diropen): Likewise.
56332         * lib/save-cwd.c (save_cwd): Likewise.
56333         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
56334         well, for minor improvements on hosts that lack O_DIRECTORY.
56335         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
56336         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
56337         Fall back on chown if open failed with EACCES.
56338
56339         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
56340         Report an error at compile-time if only a 1-second nominal clock
56341         resolution is found.
56342
56343         * lib/lchmod.h: New file.
56344         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
56345         (make_dir_parents): Use lchown rather than chown, and
56346         lchmod rather than chmod.
56347
56348         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
56349         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
56350         "proc" reported by n0dalus.
56351
56352         * lib/mountlist.c: Include <limits.h>.
56353         (dev_from_mount_options)
56354         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
56355         New function.  It no longer assumes "dev=" has the System V meaning
56356         on Linux (since it doesn't).  It also parses "dev=" more carefully.
56357         (read_file_system_list)
56358         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
56359         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
56360         dev= in that case.
56361
56362         * lib/posixtm.h (PDS_PRE_2000): New macro.
56363         * lib/posixtm.c (year): Arg is now syntax_bits rather than
56364         allow_century.  All usages changed.  Reject dates outside the range
56365         1969-1999 if PDS_PRE_2000 is used.
56366
56367 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56368
56369         Sync from coreutils.
56370         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
56371         (Time of day items): Mention the possibility of leap seconds.
56372         Problem reported by Dr. David Alan Gilbert.
56373
56374 2006-01-09  Jim Meyering  <jim@meyering.net>
56375
56376         Sync from coreutils.
56377
56378         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
56379
56380         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
56381
56382         * lib/modechange.c (mode_compile): Reject an invalid mode string
56383         that starts with an octal digit.  From Andreas Gruenbacher.
56384
56385         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
56386         and dup to open_safer and dup_safer, respectively.
56387         (openat_permissive): Fix typo in comment.
56388
56389         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
56390         "gettext.h"; either no longer needed or are guaranteed by openat.h.
56391         (_): Remove; no longer needed.
56392         (openat): Renamed from rpl_openat; no need for rpl_openat
56393         since openat.h renames openat for us.
56394         Replace most of the body with a call to openat_permissive,
56395         to avoid duplicate code.
56396         Port to (probably hypothetical) environments were mode_t is
56397         wider than int.
56398         (openat_permissive): Require mode arg, so that we can check
56399         types better.  Put it just after flags.  Change cwd failure
56400         indicator from pointer-to-bool to pointer-to-errno-value.
56401         All callers changed.
56402         Invoke openat_save_fail and/or openat_restore_fail if
56403         cwd_errno is null, so that openat can call us.
56404         (openat_permissive, fdopendir, fstatat, unlinkat):
56405         Simplify errno handling to avoid some duplicate code,
56406         as it's OK to set errno on success.
56407         * lib/openat.h: Revamp code so that function macros depend on
56408         __OPENAT_PREFIX only, not also on AT_FDCWD.
56409         (openat_ro): Remove.  Caller changed to use openat_permissive.
56410         (openat_permissive): Now a macro, if not a function.
56411         (openat_restore_fail, openat_save_fail): Now always functions,
56412         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56413
56414         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56415         and openat.c.
56416         * lib/mkdirat.c: Include openat-priv.h.
56417         Remove definitions of macros defined therein.
56418         * lib/openat.c: Likewise.
56419
56420         * lib/mkdirat.c (mkdirat): New file and function.
56421         * lib/openat.h (mkdirat): Declare.
56422
56423         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56424
56425         * lib/openat.h (openat_permissive): Declare.
56426         (openat_ro): Define.
56427
56428         * lib/openat.c (EXPECTED_ERRNO): New macro.
56429         (openat_permissive): New function -- used in remove.c rewrite.
56430         (all functions): Set errno just before returning, only if there
56431         was an actual failure.
56432         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56433
56434         Emulate openat-family functions using Linux's procfs, if possible.
56435         Idea and some code based on Ulrich Drepper's glibc changes.
56436
56437         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56438         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56439         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56440         before falling back on save_cwd and restore_cwd.
56441         (fdopendir, fstatat, unlinkat): Likewise.
56442
56443         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56444         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56445
56446         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56447         as second argument to va_arg.  Otherwise, some versions of gcc
56448         warn that `if this code is reached, the program will abort'.
56449
56450 2006-01-09  Jim Meyering  <jim@meyering.net>
56451
56452         Sync from coreutils.
56453         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56454         Require openat-priv.h.
56455
56456 2006-01-09  Bruno Haible  <bruno@clisp.org>
56457
56458         * modules/strnlen (Include): Use strnlen.h.
56459
56460 2006-01-09  Bruno Haible  <bruno@clisp.org>
56461
56462         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56463
56464 2006-01-09  Bruno Haible  <bruno@clisp.org>
56465
56466         * lib/sysexit_.h (EX_OK): New macro.
56467         Suggested by Martin Lambers <marlam@marlam.de>.
56468
56469 2006-01-09  Bruno Haible  <bruno@clisp.org>
56470
56471         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56472         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56473
56474 2006-01-09  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56477         numbers.
56478
56479 2006-01-09  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56482         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56483         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56484         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56485
56486 2006-01-09  Bruno Haible  <bruno@clisp.org>
56487
56488         * build-aux/javacomp.sh.in: New file, moved from lib/.
56489         * modules/javacomp-script (Files): Update.
56490         (configure.ac): Add AC_CONFIG_FILES invocation.
56491         (EXTRA_DIST): Remove variable.
56492
56493         * build-aux/javaexec.sh.in: New file, moved from lib/.
56494         * modules/javaexec (Files): Update.
56495         (configure.ac): Add AC_CONFIG_FILES invocation.
56496         (EXTRA_DIST): Remove javaexec.sh.in.
56497
56498         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56499         * modules/csharpcomp-script (Files): Update.
56500         (configure.ac): Add AC_CONFIG_FILES invocation.
56501         (EXTRA_DIST): Remove variable.
56502
56503         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56504         * modules/csharpexec (Files): Update.
56505         (configure.ac): Add AC_CONFIG_FILES invocation.
56506         (EXTRA_DIST): Remove csharpexec.sh.in.
56507
56508 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56509
56510         Sync from coreutils.
56511
56512         Add POSIX ACL support
56513         * lib/acl.h (copy_acl, set_acl): Add declarations.
56514         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56515         systems other than Linux.
56516         (chmod_or_fchmod): New function: use fchmod when possible,
56517         and chmod otherwise.
56518         (file_has_acl): Add a POSIX ACL implementation, with a
56519         Linux-specific subcase.
56520         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56521         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56522         acls are unsupported.
56523         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56524         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56525         are unsupported.
56526
56527 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56528
56529         Sync from coreutils.
56530         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56531
56532 2006-01-07  Bruno Haible  <bruno@clisp.org>
56533
56534         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56535         gl_EARLY.
56536
56537 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56538
56539         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56540         Problem reported for Mingw by Mark Junker.
56541
56542 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56543
56544         * README: Gnulib normally doesn't generate a tarball.
56545
56546 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56547
56548         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56549         long int, not int, for nanosecond counts, so that people who are
56550         used to POSIX struct timespec won't be surprised.  Reported by Jim
56551         Meyering.
56552
56553 2005-12-28  Bruno Haible  <bruno@clisp.org>
56554
56555         * build-aux/config.rpath: Update from GNU gettext.
56556
56557 2005-12-16  Jim Meyering  <jim@meyering.net>
56558
56559         * modules/fprintftime: New module.
56560         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56561
56562 2005-12-16  Jim Meyering  <jim@meyering.net>
56563
56564         * m4/fprintftime.m4: New file.
56565
56566 2005-12-16  Jim Meyering  <jim@meyering.net>
56567
56568         * lib/fprintftime.c, lib/fprintftime.h: New files.
56569
56570 2005-12-15  Simon Josefsson  <jas@extundo.com>
56571
56572         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56573         new m4/socklen.m4.
56574
56575 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56576
56577         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56578         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56579
56580 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56581
56582         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56583         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56584         struct uparams is valid. Fall back to the default values if it is
56585         not.
56586
56587 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56588
56589         * modules/argp (Files): Add argp-pin.c
56590         (Depends-on): dirname
56591         (lib_SOURCES): Add argp-pin.c
56592
56593 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56594
56595         * m4/argp.m4:  Check if program_invocation_name and
56596         program_invocation_short_name are declared and define appropriate
56597         macros if they are not.
56598
56599 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56600
56601         * lib/argp-help.c (__argp_base_name): New function
56602         (__argp_short_program_name): Rewrite using __argp_base_name
56603         * lib/argp-namefrob.h: Define program_invocation_name and
56604         program_invocation_short_name if requested
56605         (__argp_base_name): Add prototype
56606         * lib/argp-parse.c (argp_def): Use gettext wrappers
56607         (argp_default_parser): Use __argp_base_name
56608         * lib/argp-pin.c: New file. Defines program_invocation_name and
56609         program_invocation_short_name on systems that lack them.
56610
56611 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56612
56613         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56614         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56615         porting problem reported by Georg Schwarz in
56616         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56617
56618 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56619
56620         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56621         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56622         porting problem reported by Georg Schwarz in
56623         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56624
56625 2005-12-05  Bruno Haible  <bruno@clisp.org>
56626
56627         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56628         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56629         Reported by Mark Junker <mjscod@gmx.de>.
56630
56631 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56632
56633         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56634         Use implementation from Albert Chin, with some
56635         comments/corrections by Stepan Kasal and myself.
56636
56637 2005-12-02  Bruno Haible  <bruno@clisp.org>
56638
56639         * gnulib-tool (func_import): Accept GPLed build tool modules when
56640         --lgpl is given.
56641         * modules/csharpcomp-script: New file.
56642         * modules/csharpcomp: Depend on it.
56643         * modules/javacomp-script: New file.
56644         * modules/javacomp: Depend on it.
56645         Suggested by Simon Josefsson.
56646
56647 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56648
56649         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56650         statement, to work around an HP-UX 10.20 compiler bug reported by
56651         Peter O'Gorman.
56652
56653 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56654
56655         * modules/savedir (Depends-on): Add openat.
56656
56657 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56658
56659         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56660         (uintmax_t) [defined uintmax_t]: Do not declare.
56661         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56662         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56663         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56664         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56665         sake of portability to weird hosts that C allows (though we don't
56666         know of any practical examples).
56667
56668         * lib/savedir.h (fdsavedir): New decl.
56669         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56670         contains most of the former guts of savedir.
56671         (savedir): Use savedirstream.
56672         Include "openat.h".
56673
56674 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56675
56676         * modules/obstack (Files): Add m4/ulonglong.m4.
56677         Problem reported by Davide Angelocola.
56678
56679 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56680
56681         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
56682         coreutils no longer futzes with rounding modes.
56683
56684 2005-11-14  Jim Meyering  <jim@meyering.net>
56685
56686         * lib/mkstemp-safer.c: Include <config.h>, required for possible
56687         replacement of mkstemp.
56688
56689 2005-11-10  Simon Josefsson  <jas@extundo.com>
56690
56691         * lib/readline.c: Remove EOL.
56692
56693 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56694
56695         * modules/gethrxtime (Depends-on): Add gettime.
56696
56697 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
56700         or gettimeofday; no longer needed.
56701
56702 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
56705         time business.
56706         (gethrxtime) [! (HAVE_NANOUPTIME
56707         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
56708         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
56709         our own approximation.
56710
56711 2005-11-08  Eric Blake  <ebb9@byu.net>
56712
56713         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56714
56715 2005-11-08  Eric Blake  <ebb9@byu.net>
56716
56717         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56718
56719 2005-11-04  Bruno Haible  <bruno@clisp.org>
56720
56721         * gnulib-tool: Implement --update mode.
56722
56723 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56724
56725         Fix porting problem reported by Theodoros V. Kalamatianos.
56726         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
56727         Don't assume that futimes failing means we must fail.
56728
56729 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56730
56731         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
56732         variables to suggest the intended function of the PATH_MAX check.
56733
56734 2005-10-30  Kean Johnston  <jkj@sco.com>
56735
56736         Trivial changes to support SCO systems.
56737         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
56738         as PATH_MAX.
56739         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
56740         where __ptr is null when no I/O is pending.
56741
56742 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56743
56744         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
56745         leave errno alone.  Problem reported by Dmitry V. Levin.
56746
56747 2005-10-28  Simon Josefsson  <jas@extundo.com>
56748
56749         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
56750         Test more.
56751
56752         * tests/test-gc-md2.c, tests/test-md2.c: New files.
56753
56754         * modules/md2, modules/md2-tests: New files.
56755
56756 2005-10-28  Simon Josefsson  <jas@extundo.com>
56757
56758         * m4/inet_ntop.m4: More tests.
56759
56760         * m4/gc-md2.m4, md2.m4: New file.
56761
56762 2005-10-28  Simon Josefsson  <jas@extundo.com>
56763
56764         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
56765         "restrict" keywords, as per POSIX.  Protect the function
56766         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
56767         Don't use K&R prototypes.  Check the sprintf return values.
56768         Re-define EAFNOSUPPORT if not present.  Indent.
56769
56770         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
56771         suggested by Bruno Haible <bruno@clisp.org>.
56772
56773         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
56774
56775         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
56776
56777         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
56778         libgcrypt).
56779
56780         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
56781
56782         * lib/md2.h, lib/md2.c: New files.
56783
56784 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
56785
56786         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
56787         errno alone.  Problem reported by Frederic Jolliton.
56788
56789 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56790
56791         * modules/verify (License): Change from GPL to LGPL.  This is a
56792         tiny module and there are apparently near-equivalents that are
56793         under the BSD license.
56794
56795 2005-10-24  Simon Josefsson  <jas@extundo.com>
56796
56797         * modules/sha1: Relicense to LGPL.
56798
56799 2005-10-24  Simon Josefsson  <jas@extundo.com>
56800
56801         * lib/md4.h: Shrink buffer size, now that we changed the type.
56802
56803 2005-10-23  Simon Josefsson  <jas@extundo.com>
56804
56805         * gnulib-tool (func_import): Fix --tests-base.
56806
56807 2005-10-22  Simon Josefsson  <jas@extundo.com>
56808
56809         * modules/arcfour (Depends-on): Need stdint.
56810
56811 2005-10-22  Simon Josefsson  <jas@extundo.com>
56812
56813         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
56814         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
56815
56816 2005-10-22  Simon Josefsson  <jas@extundo.com>
56817
56818         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
56819         suggested by Bruno Haible <bruno@clisp.org>.
56820
56821 2005-10-22  Simon Josefsson  <jas@extundo.com>
56822
56823         * lib/crc.h: Include stddef.h, for size_t.
56824
56825 2005-10-22  Simon Josefsson  <jas@extundo.com>
56826
56827         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
56828         arcfour_context struct (simplify test vector testing in GNU
56829         Shishi).
56830
56831 2005-10-21  Simon Josefsson  <jas@extundo.com>
56832
56833         * modules/des, modules/des-tests: New files.
56834
56835         * modules/gc-des, modules/gc-des-tests: New files.
56836
56837         * tests/test-des.c, tests/test-gc-des.c: New file.
56838
56839 2005-10-21  Simon Josefsson  <jas@extundo.com>
56840
56841         * modules/arctwo, modules/arctwo-tests: New files.
56842
56843         * tests/test-arctwo.c: New file.
56844
56845         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56846
56847         * tests/test-gc-arctwo.c: New file.
56848
56849 2005-10-21  Simon Josefsson  <jas@extundo.com>
56850
56851         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56852         Bruno Haible <bruno@clisp.org>.
56853
56854         * m4/gc-des.m4: New file.
56855
56856 2005-10-21  Simon Josefsson  <jas@extundo.com>
56857
56858         * m4/arctwo.m4: New file.
56859
56860         * m4/gc-arctwo.m4: New file.
56861
56862 2005-10-21  Simon Josefsson  <jas@extundo.com>
56863
56864         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56865         block.
56866
56867 2005-10-21  Simon Josefsson  <jas@extundo.com>
56868
56869         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56870         <bruno@clisp.org>.
56871
56872         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56873
56874         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56875         Bruno Haible <bruno@clisp.org>.
56876
56877         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56878         <bruno@clisp.org>.
56879
56880 2005-10-21  Simon Josefsson  <jas@extundo.com>
56881
56882         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56883
56884 2005-10-21  Simon Josefsson  <jas@extundo.com>
56885
56886         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56887
56888 2005-10-21  Simon Josefsson  <jas@extundo.com>
56889
56890         * lib/des.h, lib/des.c: New files.
56891
56892         * lib/gc-gnulib.c: Support DES.c
56893
56894 2005-10-21  Simon Josefsson  <jas@extundo.com>
56895
56896         * lib/arctwo.h, lib/arctwo.c: New files.
56897
56898         * lib/gc-gnulib.c: Support ARCTWO.
56899
56900 2005-10-21  Simon Josefsson  <jas@extundo.com>
56901
56902         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56903         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56904
56905 2005-10-21  Simon Josefsson  <jas@extundo.com>
56906
56907         * gnulib-tool (func_import, func_create_testdir): Define automake
56908         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56909         Makefile.am snippet),
56910         suggested by Bruno Haible <bruno@clisp.org>.
56911
56912         * modules/gc (Makefile.am): Use it.
56913
56914 2005-10-21  Bruno Haible  <bruno@clisp.org>
56915
56916         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56917         patch.
56918
56919 2005-10-19  Simon Josefsson  <jas@extundo.com>
56920
56921         * tests/test-gc-rijndael.c: New file.
56922
56923         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56924
56925 2005-10-19  Simon Josefsson  <jas@extundo.com>
56926
56927         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56928         interface too.
56929
56930 2005-10-19  Simon Josefsson  <jas@extundo.com>
56931
56932         * tests/test-gc-arcfour.c: New file.
56933
56934         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56935
56936 2005-10-19  Simon Josefsson  <jas@extundo.com>
56937
56938         * modules/gc-md4, modules/gc-md4-tests: New file.
56939
56940         * tests/test-gc-md4.c: New file.
56941
56942 2005-10-19  Simon Josefsson  <jas@extundo.com>
56943
56944         * m4/gc-md4.m4: New file.
56945
56946 2005-10-19  Simon Josefsson  <jas@extundo.com>
56947
56948         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56949         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56950         <kasal@ucw.cz>.
56951
56952 2005-10-19  Simon Josefsson  <jas@extundo.com>
56953
56954         * m4/gc-arcfour.m4: New file.
56955
56956         * m4/gc-rijndael.m4: New file.
56957
56958 2005-10-19  Simon Josefsson  <jas@extundo.com>
56959
56960         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56961
56962 2005-10-19  Simon Josefsson  <jas@extundo.com>
56963
56964         * lib/gc-gnulib.c: Support ARCFOUR.
56965
56966 2005-10-19  Simon Josefsson  <jas@extundo.com>
56967
56968         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56969         support.
56970
56971         * lib/gc.h: Add ECB enum type.
56972
56973         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56974
56975 2005-10-18  Simon Josefsson  <jas@extundo.com>
56976
56977         * tests/test-md5.c: New file.
56978
56979         * modules/md5-tests: New file.
56980
56981 2005-10-18  Simon Josefsson  <jas@extundo.com>
56982
56983         * tests/test-md4.c: New file.
56984
56985         * modules/md4, modules/md4-tests: New files.
56986
56987 2005-10-18  Simon Josefsson  <jas@extundo.com>
56988
56989         * m4/md4.m4: New file.
56990
56991 2005-10-18  Simon Josefsson  <jas@extundo.com>
56992
56993         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56994
56995 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56996
56997         * gnulib-tool (func_create_testdir): Omit the second check whether
56998         BUILT_SOURCES in nonempty.
56999
57000 2005-10-17  Simon Josefsson  <jas@extundo.com>
57001
57002         * tests/test-rijndael.c: New file.
57003
57004 2005-10-17  Simon Josefsson  <jas@extundo.com>
57005
57006         * modules/sha1: Depend on stdint instead of md5.
57007
57008         * modules/md5: Depend on stdint, remove uint32_t.
57009
57010 2005-10-17  Simon Josefsson  <jas@extundo.com>
57011
57012         * modules/gc-sha1-tests: New file.
57013
57014         * tests/test-gc-sha1.c: New file.
57015
57016 2005-10-17  Simon Josefsson  <jas@extundo.com>
57017
57018         * m4/md5.m4: Remove call to uint32_t.m4.
57019
57020 2005-10-17  Simon Josefsson  <jas@extundo.com>
57021
57022         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
57023
57024         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
57025         md5.h.
57026
57027         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
57028
57029         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
57030
57031 2005-10-17  Simon Josefsson  <jas@extundo.com>
57032
57033         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
57034
57035 2005-10-17  Simon Josefsson  <jas@extundo.com>
57036
57037         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
57038
57039 2005-10-17  Simon Josefsson  <jas@extundo.com>
57040
57041         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
57042
57043         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
57044
57045 2005-10-17  Bruno Haible  <bruno@clisp.org>
57046
57047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
57048         that it can also be used in a test.
57049
57050 2005-10-16  Bruno Haible  <bruno@clisp.org>
57051
57052         * gnulib-tool (func_emit_tests_Makefile_am): Also define
57053         TESTS_ENVIRONMENT, so that individual tests can augment it.
57054
57055         * gnulib-tool (func_create_testdir): Use an intermediate target for
57056         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
57057         macros, like $(ALLOCA_H), which cannot be passed through the command
57058         line.
57059
57060 2005-10-15  Simon Josefsson  <jas@extundo.com>
57061
57062         * modules/rijndael-tests: New file.
57063
57064         * modules/rijndael: New file.
57065
57066 2005-10-15  Simon Josefsson  <jas@extundo.com>
57067
57068         * m4/rijndael.m4: New file.
57069
57070 2005-10-15  Simon Josefsson  <jas@extundo.com>
57071
57072         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
57073
57074         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
57075
57076 2005-10-14  Simon Josefsson  <jas@extundo.com>
57077
57078         * tests/test-arcfour.c: New file.
57079
57080         * modules/arcfour, modules/arcfour-tests: New files.
57081
57082 2005-10-14  Simon Josefsson  <jas@extundo.com>
57083
57084         * m4/arcfour.m4: New file.
57085
57086 2005-10-14  Simon Josefsson  <jas@extundo.com>
57087
57088         * lib/arcfour.h, lib/arcfour.c: New files.
57089
57090 2005-10-14  Roland McGrath  <roland@redhat.com>
57091
57092         Import from libc.  [BZ #1331]
57093         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
57094         macro argument.
57095         Reported by Matej Vela <vela@debian.org>.
57096
57097 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
57100         include <wchar.h>; no longer needed.
57101
57102 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57103
57104         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
57105
57106 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
57107         and  Ulrich Drepper  <drepper@redhat.com>
57108
57109         Import from libc.
57110         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
57111         instead of inline stream orientation test and two separate
57112         function calls.  Pay no attention to USE_IN_LIBIO.
57113
57114 2005-10-13  Simon Josefsson  <jas@extundo.com>
57115
57116         * modules/gc-hmac-md5-tests: New file.
57117
57118         * tests/test-gc-hmac-sha1.c: New file.
57119
57120         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
57121
57122         * modules/gc-hmac-md5-tests: New file.
57123
57124         * tests/test-gc-md5.c: New file.
57125
57126         * modules/gc-md5-tests: New file.
57127
57128 2005-10-13  Simon Josefsson  <jas@extundo.com>
57129
57130         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
57131         Move memory allocation outside of loop.
57132
57133 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
57134
57135         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
57136         intermediate directory is in a read-only file system.  Problem
57137         reported by Eric Blake.
57138
57139 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
57140
57141         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
57142
57143 2005-10-12  Simon Josefsson  <jas@extundo.com>
57144
57145         * tests/test-hmac-sha1.c: New file.
57146
57147         * modules/hmac-sha1-tests: New file.
57148
57149         * modules/hmac-sha1: New file.
57150
57151 2005-10-12  Simon Josefsson  <jas@extundo.com>
57152
57153         * modules/gc-sha1: New file.
57154
57155 2005-10-12  Simon Josefsson  <jas@extundo.com>
57156
57157         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
57158
57159         * tests/test-gc-pbkdf2-sha1.c: New file.
57160
57161 2005-10-12  Simon Josefsson  <jas@extundo.com>
57162
57163         * modules/gc-md5, modules/gc-hmac-md5: New files.
57164
57165         * modules/gc (Files): Remove md5, memxor and hmac files.
57166
57167 2005-10-12  Simon Josefsson  <jas@extundo.com>
57168
57169         * m4/gc-pbkdf2-sha1.m4: New file.
57170
57171         * m4/gc-hmac-sha1.m4: New file.
57172
57173         * m4/gc-sha1: New file.
57174
57175         * m4/hmac-sha1.m4: New file.
57176
57177 2005-10-12  Simon Josefsson  <jas@extundo.com>
57178
57179         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
57180
57181         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
57182
57183 2005-10-12  Simon Josefsson  <jas@extundo.com>
57184
57185         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
57186         suggested by Bruno Haible <bruno@clisp.org>.
57187
57188 2005-10-12  Simon Josefsson  <jas@extundo.com>
57189
57190         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
57191
57192 2005-10-12  Simon Josefsson  <jas@extundo.com>
57193
57194         * lib/gc-pbkdf2-sha1.c: New file.
57195
57196         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
57197
57198 2005-10-12  Simon Josefsson  <jas@extundo.com>
57199
57200         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
57201
57202         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
57203
57204 2005-10-12  Simon Josefsson  <jas@extundo.com>
57205
57206         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
57207         GC_USE_HMAC_MD5, respectively.
57208
57209         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
57210         (gc_md5): Fix typo.
57211
57212         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
57213
57214         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
57215
57216         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
57217
57218 2005-10-12  Bruno Haible  <bruno@clisp.org>
57219
57220         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
57221         Reported by Stepan Kasal <kasal@ucw.cz>.
57222
57223 2005-10-11  Simon Josefsson  <jas@extundo.com>
57224
57225         * tests/test-crc.c: New file.
57226
57227         * modules/crc, modules/crc-tests: New files.
57228
57229 2005-10-11  Simon Josefsson  <jas@extundo.com>
57230
57231         * m4/crc.m4: New file.
57232
57233 2005-10-11  Simon Josefsson  <jas@extundo.com>
57234
57235         * lib/gc.h: Add gc_hash and gc_hash_buffer.
57236
57237         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
57238
57239         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
57240
57241 2005-10-11  Simon Josefsson  <jas@extundo.com>
57242
57243         * lib/crc.h, lib/crc.c: New files.
57244
57245         * lib/gc.h (gc_hash_buffer): Add doc.
57246
57247 2005-10-11  Bruno Haible  <bruno@clisp.org>
57248
57249         * modules/c-strcasestr: New file.
57250         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
57251
57252 2005-10-11  Bruno Haible  <bruno@clisp.org>
57253
57254         * modules/c-strcase: New file.
57255         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
57256
57257 2005-10-11  Bruno Haible  <bruno@clisp.org>
57258
57259         * lib/strcasecmp.c: Include limits.h.
57260         (strcasecmp): Avoid integer overflow on exotic platforms.
57261         * lib/strncasecmp.c: Include limits.h.
57262         (strncasecmp): Avoid integer overflow on exotic platforms.
57263         Reported by Paul Eggert.
57264
57265 2005-10-11  Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/c-strcasestr.h: New file, from GNU gettext.
57268         * lib/c-strcasestr.c: New file, from GNU gettext.
57269
57270 2005-10-11  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/c-strcase.h: New file, from GNU gettext.
57273         * lib/c-strcasecmp.c: New file, from GNU gettext.
57274         * lib/c-strncasecmp.c: New file, from GNU gettext.
57275
57276 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57277
57278         * modules/mempcpy (License): GPL -> LGPL.
57279         * modules/strchrnul (License): Likewise.
57280         * modules/sysexits (License): Likewise.
57281
57282 2005-10-08  Simon Josefsson  <jas@extundo.com>
57283
57284         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
57285
57286 2005-10-07  Simon Josefsson  <jas@extundo.com>
57287
57288         * m4/memxor.m4: Remove gl_C_RESTRICT call.
57289
57290 2005-10-06  Simon Josefsson  <jas@extundo.com>
57291
57292         * tests/test-hmac-md5.c: New file.
57293
57294         * modules/hmac-md5-tests: New file.
57295
57296         * modules/hmac-md5: New file.
57297
57298 2005-10-06  Simon Josefsson  <jas@extundo.com>
57299
57300         * m4/hmac-md5.m4: New file.
57301
57302         * m4/memxor.m4: Require gl_C_RESTRICT.
57303
57304 2005-10-06  Simon Josefsson  <jas@extundo.com>
57305
57306         * lib/memxor.c (memxor): Avoid casts and warnings.
57307
57308 2005-10-06  Simon Josefsson  <jas@extundo.com>
57309
57310         * lib/hmac-md5.c: New file.
57311
57312         * lib/hmac.h: New file.
57313
57314 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57315
57316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
57317         promotes to int, not unsigned int, to catch the AIX 5.3
57318         compiler bug.
57319
57320 2005-10-05  Simon Josefsson  <jas@extundo.com>
57321
57322         * modules/memxor: New file.
57323
57324         * modules/iconv (Files): Move config.rpath to havelib, it is used
57325         there.
57326
57327         * modules/havelib (Files): Add config.rpath.
57328
57329 2005-10-05  Simon Josefsson  <jas@extundo.com>
57330
57331         * m4/memxor.m4: New file.
57332
57333 2005-10-05  Simon Josefsson  <jas@extundo.com>
57334
57335         * lib/memxor.c (memxor): Fix compiler error.
57336
57337         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
57338         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
57339
57340         * lib/memxor.h, lib/memxor.c: New files.
57341
57342         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
57343         we assume all systems have it, suggested by Jim Meyering
57344         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
57345         any systems lack sys/socket.h; mingw32 is known to lack it, but we
57346         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
57347         same reasons.
57348
57349 2005-10-05  Simon Josefsson  <jas@extundo.com>
57350
57351         * config/srclist.txt: Add glibc bug 1423 for md5.h.
57352
57353 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57354
57355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
57356         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
57357         needed, since the source code now assumes these .h files.
57358
57359 2005-10-05  Derek Price  <derek@ximbiot.com>
57360
57361         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
57362
57363 2005-10-05  Bruno Haible  <bruno@clisp.org>
57364
57365         * modules/stdint (License): Change to LGPL.
57366
57367 2005-10-04  Simon Josefsson  <jas@extundo.com>
57368
57369         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
57370         D. Baushke" <mdb@gnu.org>.
57371
57372 2005-10-04  Bruno Haible  <bruno@clisp.org>
57373
57374         * lib/verify.h (verify_true): Provide alternative definition for C++.
57375
57376 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
57377
57378         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
57379         (SSIZE_MAX): New macro, if not already defined.
57380         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
57381         than 2 GiB.
57382
57383 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57384
57385         Sync from coreutils.
57386         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
57387         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
57388         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
57389         ULLONG_MAX doesn't work with 2.7.2.1.
57390
57391 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57392
57393         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57394         From Ben Pfaff.
57395
57396         * modules/exclude (Depends-on): Depend on verify.
57397         * modules/strtoimax (Depends-on): Likewise.
57398         * modules/utimecmp (Depends-on): Likewise.
57399
57400 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57401
57402         * lib/exclude.c: Include verify.h.
57403         (verify): Remove.  All callers changed to use verify.h's version.
57404         * lib/strtoimax.c: Likewise.
57405         * lib/utimecmp.c: Likewis.e
57406
57407         Sync from coreutils.
57408         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57409         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57410         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57411         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57412         bother returning ENOSYS if settimeofday or stime fails; just let
57413         them return whatever errno they want to return.
57414         * lib/utimens.c: Include unistd.h, for dup2.
57415         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57416         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57417
57418 2005-10-02  Jim Meyering  <jim@meyering.net>
57419
57420         Sync from coreutils.
57421         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57422         from glibc-2.2.5 that fails for read-only files.
57423
57424 2005-10-02  Jim Meyering  <jim@meyering.net>
57425
57426         Sync from coreutils.
57427         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57428         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57429         `#if HAVE_CONFIG_H'.
57430         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57431         Remove AT_FDCWD test.
57432         Do not consume the fd unless successful.
57433         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57434         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57435         block, so that we don't even try to compile it if settimeofday is
57436         available.  This works around a compilation failure on OSF1 V5.1,
57437         due to stime requiring a `long int*' while tv_sec is `int'.
57438
57439 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57440
57441         Sync from coreutils.
57442         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57443         against `yes', rather than just testing for nonempty.
57444
57445 2005-10-01  Simon Josefsson  <jas@extundo.com>
57446
57447         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57448         and Darwin.
57449
57450         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57451         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57452         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57453         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57454         Check if struct addrinfo is declared.
57455
57456 2005-10-01  Simon Josefsson  <jas@extundo.com>
57457
57458         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57459         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57460         AI_* and EAI_* definitions.  Protect function declarations.
57461
57462 2005-10-01  Jim Meyering  <jim@meyering.net>
57463
57464         Sync from coreutils.
57465
57466         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57467         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57468         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57469         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57470         in the inet and nsl libraries.  Required on Solaris 5.7.
57471
57472 2005-10-01  Jim Meyering  <jim@meyering.net>
57473
57474         Sync from coreutils.
57475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57476         in the inet and nsl libraries.  Required on Solaris 5.7.
57477
57478 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57479
57480         * lib/getdelim.c (getdelim): Remove unused variables.
57481
57482 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57483
57484         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57485         so that the code works even with ancient cpp.  Portability problem
57486         with GCC 2.7.2.1 reported by Thomas M.Ott.
57487
57488 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57489
57490         * modules/regex (Depends-on): Add strcase.
57491
57492         * modules/gethostname (Licence): Change from GPL to LGPL, since
57493         gethostname.c is a trivial implementation of a standard library
57494         function.
57495         * modules/poll (License): Change from GPL to LGPL, since it's
57496         derived from LGPL code.
57497
57498 2005-09-27  Jim Meyering  <jim@meyering.net>
57499
57500         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57501         HAVE_CONFIG_H.
57502
57503         * lib/intprops.h (signed_type_or_expr__): Define.
57504         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57505         for unsigned types.
57506
57507 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57508
57509         * lib/verify.h (verify_expr): Remove, replacing with:
57510         (verify_true): New macro that returns true instead of void.
57511         (verify_type__): Remove.
57512         (verify): Use verify_true rather than verify_type__.
57513
57514 2005-09-26  Bruno Haible  <bruno@clisp.org>
57515
57516         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57517         is necessary.
57518         (lib_SOURCES): Remove mbchar.c.
57519         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57520         (Files): Add m4/mbrtowc.m4.
57521         * modules/mbiter: Likewise.
57522         * modules/mbuiter: Likewise.
57523
57524 2005-09-26  Bruno Haible  <bruno@clisp.org>
57525
57526         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57527         compile mbchar.c if they are not both present.
57528         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57529         * m4/mbiter.m4 (gl_MBITER): Likewise.
57530         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57531         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57532         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57533
57534 2005-09-25  Jim Meyering  <jim@meyering.net>
57535
57536         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57537         also uses socklen_t.
57538
57539 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57540
57541         * lib/utimens.c (ENOSYS): Define if not already defined.
57542         (futimens): Support having a null PATH if the file descriptor
57543         is nonnegative.
57544
57545         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57546         Remove.
57547         (__attribute): Define to empty unless GCC 3.1 or later.
57548         This works around a core dump on OpenBSD 3.4, which has GCC
57549         2.95.3, which dumps core when given __attribute__(()).  It also
57550         simplifies other tests, since we really don't want to bother with
57551         worrying about which ancient version of GCC supported what.
57552         Original problem reported by Yoann Vandoorselaere, with part of
57553         the fix suggested by Derek Price.
57554
57555 2005-09-24  Jim Meyering  <jim@meyering.net>
57556
57557         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57558         so we can once again use a positive bitfield width of 1 -- now we
57559         don't have to explain why we were using a bitfield width of 2.
57560
57561 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57562
57563         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57564         and similarly for the other external symbols.  Problem reported
57565         by James Gallager.
57566
57567         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57568         bug reported by Jim Meyering.
57569
57570         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57571         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57572         not needed, since socklen is a prerequisite module.
57573
57574 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57575
57576         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57577         Problem reported by Eric Blake.
57578         (getaddrinfo): Initialize se so that it's not garbage.
57579         Redo internal storage allocation so that it doesn't make unportable
57580         assumptions about alignment.
57581         Fix a memory leak.
57582
57583         * lib/utimens.c (futimens): Use futimesat if available.
57584         Prefer it to futimes since it doesn't have the futimes bug.
57585
57586         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57587         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57588         Instead, declare a function that returns a pointer to an array,
57589         and use verify_type__ to declare the size of the array.
57590         Problem and germ of a solution reported by Bruno Haible.
57591         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57592         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57593
57594 2005-09-23  Jim Meyering  <jim@meyering.net>
57595
57596         Sync from coreutils.
57597         Correct build failure (socklen_t not defined) on at least
57598         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57599         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57600
57601 2005-09-23  Jim Meyering  <jim@meyering.net>
57602
57603         * modules/getaddrinfo (Depends-on): Add socklen.
57604
57605 2005-09-23  Bruno Haible  <bruno@clisp.org>
57606
57607         * tests/test-verify.c: New file.
57608
57609 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         Sync from coreutils.
57612
57613         * modules/argmatch (Depends-on): Add verify.
57614         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57615         unistd-safer.
57616         * modules/save-cwd (Depends-on): Likewise.
57617
57618         * modules/openat (Files): Add lib/openat-die.c.
57619         (Depends-on): Remove error, exitfail.
57620         Add dirname.
57621
57622         * modules/verify: New file.
57623         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57624         with "verify" module.
57625
57626 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57627
57628         Sync from coreutils.
57629
57630         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57631         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57632         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57633         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57634         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57635         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57636         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57637         Don't bother checking for string.h, stdlib.h, unistd.h.
57638         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57639         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57640         module's job.
57641         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57642         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57643
57644         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57645         (gl_GETDATE): Use it.
57646
57647         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57648
57649 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57650
57651         Sync from coreutils.
57652
57653         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57654         stat-time.h.
57655         * lib/argmatch.h: Include verify.h
57656         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57657         (ARGMATCH_ASSERT): Remove; unused.
57658         * lib/canonicalize.c: Assume STDC_HEADERS.
57659         * lib/exclude.c: Include "strcase.h".
57660         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57661         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57662         and stdio-safer.h.
57663         (getusershell): Call fopen, not fopen_safer.
57664         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57665         Do not include unistd-safer.h.
57666         (save_cwd): Don't call fd_safer; no longer needed
57667         now that we include fcntl--.h.
57668
57669         * lib/getdate.y (relative_time): New type.
57670         (RELATIVE_TIME_0): New constant.
57671         (parser_control): Use relative_time instead of doing it ourselves.
57672         (%union): Add new relative_time rel member.
57673         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
57674         Now typeless.
57675         (relunit, relunit_snumber): Now of type rel.
57676         (zone, rel, relunit, get_date): Adjust to above changes.
57677
57678         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
57679         Do not include unistd-safer.h.
57680         (getloadavg): Don't call fd_safer; no longer needed
57681         now that we include fcntl--.h.
57682
57683         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
57684         (make_dir_parents): Treat ENOSYS like EEXIST.
57685
57686         Improve quality of diagnostics on restore_cwd failure.
57687         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
57688         (make_dir_parents): Last arg is now int * (for errno), not bool *.
57689         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
57690         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
57691         each time through the loop.  Do not diagnose restore_cwd failure;
57692         that is the caller's job (and perhaps the caller does not care).
57693
57694         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
57695         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
57696         If the file already exists but is not a directory, don't bother
57697         to try to make its parents.
57698         Close potential file descriptor leak if we can't chdir("/") (!).
57699         Don't always return true if chdir($PWD) fails; return true only
57700         if the requested action was done successfully (except for the
57701         chdir($PWD)).
57702         Don't log final directory unless we actually made it.
57703         Refactor to avoid duplicate code to fix up permissions.
57704         Don't attempt to fix up parent permissions if chdir($PWD) fails.
57705
57706         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
57707         to make it a bit faster and (I hope) clearer.
57708         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
57709         Fix bug in formats like %2N.
57710
57711         * lib/verify.h: New file.
57712
57713 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57714
57715         Sync from coreutils.
57716         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
57717
57718 2005-09-22  Jim Meyering  <jim@meyering.net>
57719
57720         Sync from coreutils.
57721
57722         * m4/lstat.m4 (gl_FUNC_LSTAT):
57723         Use AC_LIBSOURCES to require lstat.c and lstat.h.
57724         Remove obsolete comment.
57725         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
57726         * m4/xstrtod.m4: Likewise.
57727
57728         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
57729
57730 2005-09-22  Jim Meyering  <jim@meyering.net>
57731
57732         Sync from coreutils.
57733
57734         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
57735
57736         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
57737         the .tm_year member, since otherwise gcc-4.0 would now warn about
57738         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
57739
57740         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
57741         order to avoid an unsuppressible warning from gcc on 64-bit systems.
57742
57743         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
57744         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
57745         when run in a time zone for which daylight savings time is in effect
57746         for the starting date.
57747
57748         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
57749         stop us from restricting permissions of just-created absolute-named
57750         directories.
57751         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
57752         to restore initial working directory.
57753         * lib/mkdir-p.c (make_dir_parents): New parameter:
57754         different_working_dir, to tell caller if/when we change the working
57755         directory and are unable to return to the initial one.
57756         * lib/mkdir-p.h (make_dir_parents): Update prototype.
57757         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
57758         `return false'.  This fixes a bug introduced on 2004-07-30.
57759
57760         * lib/openat.c (fdopendir): Be sure to close the supplied
57761         file descriptor before returning.  This makes our replacement
57762         implementation a little closer to Solaris's, where fdopendir
57763         ties the file descriptor to the returned DIR* pointer.
57764         * lib/openat.c (unlinkat): New function.
57765         * lib/openat.h (unlinkat): Add prototype.
57766         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
57767         (openat_restore_fail): Rename from openat_restore_die.
57768         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
57769
57770         Provide an alternative to exiting immediately upon save_cwd or
57771         restore_cwd failure.  Now, an application can arrange e.g.,
57772         to perform a longjump in that case.
57773         * lib/openat.c: Include dirname.h.
57774         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
57775         (rpl_openat, fdopendir, fstatat): Call openat_save_die
57776         and openat_restore_die rather than calling error directly.
57777         Don't include "error.h" or "exitfail.h"; they're no longer needed.
57778
57779         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
57780         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
57781         define.
57782
57783         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
57784         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
57785                             int utc, int nanoseconds);
57786         Background:
57787         date should not have to allocate a megabyte of virtual memory to
57788         handle a format argument like +%1048575T.  When implemented with
57789         strftime, it must allocate such a buffer, use strftime to fill it
57790         in, print it, then free it.
57791         With fprintftime, it simply prints everything and exits.
57792         With no need for memory allocation, that's one fewer way to fail.
57793         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
57794         optional field width, not before, so we accept %9:z, not %:9z.
57795         (my_strftime): Be sure to use L_('x') for literals.
57796
57797         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
57798         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
57799         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
57800         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
57801         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
57802         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
57803         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
57804         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
57805         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
57806         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
57807         * lib/xgethostname.c, lib/xreadlink.c:
57808         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
57809
57810         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
57811         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
57812         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
57813         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57814         and don't include <sys/file.h>).
57815
57816 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
57817
57818         Sync from coreutils.
57819
57820         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
57821         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
57822         [!LDAV_DONE]: Avoid unused variable warning.
57823
57824 2005-09-21  Bruno Haible  <bruno@clisp.org>
57825
57826         * lib/unicodeio.h (unicode_to_mb): New declaration.
57827
57828 2005-09-20  Derek Price  <derek@ximbiot.com>
57829
57830         * lib/getaddrinfo.c: Don't include <netdb.h> included from
57831         getaddrinfo.h.
57832
57833 2005-09-20  Bruno Haible  <bruno@clisp.org>
57834
57835         * gnulib-tool: Remove trailing slashes from the values specified for
57836         --source-base, --m4-base, --tests-base, --aux-dir.
57837         Suggested by Simon Josefsson <jas@extundo.com>.
57838
57839 2005-09-20  Bruno Haible  <bruno@clisp.org>
57840
57841         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57842         func_modules_to_filelist, func_import, func_create_testdir): Make all
57843         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57844         change when gnulib-tool is invoked in a different locale.
57845
57846 2005-09-19  Simon Josefsson  <jas@extundo.com>
57847
57848         * m4/socklen.m4: Fix typo.
57849
57850 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57851
57852         Use a consistent style for including <config.h>.
57853         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57854         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57855         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57856         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57857         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57858         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57859         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57860         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57861         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57862         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57863         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57864         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57865         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57866         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57867         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57868         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57869         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57870         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57871         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57872         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57873         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57874         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57875         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57876         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57877         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57878         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57879         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57880         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57881         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57882         lib/xstrtoumax.c, lib/yesno.c:
57883         Standardize inclusion of config.h.
57884         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57885         lib/inttostr.h:  Removed inclusion of config.h from header files.
57886         * lib/inttostr.c:  Adjusted in-tree users.
57887         * lib/timespec.h: Remove superfluous warning to include config.h.
57888         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57889         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57890         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57891         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57892         config.h with HAVE_CONFIG_H.
57893
57894 2005-09-19  Jim Meyering  <jim@meyering.net>
57895
57896         * modules/pathmax (License): Change to LGPL.
57897
57898 2005-09-19  Derek Price  <derek@ximbiot.com>
57899
57900         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57901
57902 2005-09-19  Bruno Haible  <bruno@clisp.org>
57903
57904         * gnulib-tool (import): Provide default for --tests-base.
57905
57906 2005-09-19  Bruno Haible  <bruno@clisp.org>
57907
57908         * doc/quote.texi: New file, extracted from gnulib.texi.
57909         * doc/ctime.texi: New file, extracted from gnulib.texi.
57910         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57911         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57912         * doc/gnulib.texi: Include them.
57913
57914 2005-09-18  Bruno Haible  <bruno@clisp.org>
57915
57916         Portability fix.
57917         * gnulib-tool (func_readlink): New function.
57918         (func_ln_if_changed): Use it.
57919
57920 2005-09-18  Bruno Haible  <bruno@clisp.org>
57921
57922         * gnulib-tool: Support --with-tests also with --import.
57923         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57924         (func_import): Use variables $testsbase and $inctests. Emit a
57925         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57926         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57927         SUBDIRS += $testsdir.
57928         (func_create_testdir): Update.
57929
57930 2005-09-18  Bruno Haible  <bruno@clisp.org>
57931
57932         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57933         instead of $dry_run.
57934         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57935         (func_ln_if_changed): Don't handle dry-run here.
57936         (func_import): In dry-run mode, detect more precisely which actions
57937         would be performed, and don't use "...ing" verbs.
57938
57939 2005-09-18  Bruno Haible  <bruno@clisp.org>
57940
57941         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57942         (func_import): Use join on two temporary files instead of three nested
57943         loops, in order to determine which files are new or old.
57944
57945 2005-09-18  Bruno Haible  <bruno@clisp.org>
57946
57947         * gnulib-tool (func_import): Comment out code that spits out the
57948         new files with --dry-run.
57949
57950 2005-09-18  Bruno Haible  <bruno@clisp.org>
57951
57952         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57953
57954 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57955
57956         * lib/stat-time.h: New file.
57957         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57958         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57959         in a different way.
57960         (timespec_cmp): New function.
57961         * lib/utimecmp.c: Include stat-time.h.
57962         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57963         members exist, not on the obsolescent ST_MTIM_NSEC.
57964         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57965
57966 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57967
57968         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57969
57970 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57971
57972         * MODULES.html.sh (File system functions): Add stat-time.
57973         * modules/stat-time: New file.
57974         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57975         is now done in a different way, by the stat-time module.
57976         * modules/utimecmp (Depends-on): Add stat-time.
57977
57978 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57979
57980         * m4/st_mtim.m4: Remove.  Superseded by...
57981         * m4/stat-time.m4: New file.
57982         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57983         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57984
57985 2005-09-15  Derek Price  <derek@ximbiot.com>
57986
57987         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57988
57989 2005-09-15  Derek Price  <derek@ximbiot.com>
57990
57991         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57992         * lib/regex_internal.c: Ditto, using this...
57993         (__GNUC_PREREQ): ...new macro.
57994         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57995         using...
57996         (__GNUC_PREREQ): ...this new macro.
57997
57998         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57999
58000 2005-09-15  Derek Price  <derek@ximbiot.com>
58001             Paul Eggert  <eggert@cs.ucla.edu>
58002
58003         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
58004         changes, consolidating in...
58005         * lib/regex_internal.h: ...this file.
58006
58007 2005-09-13  Jim Meyering  <jim@meyering.net>
58008
58009         * lib/canon-host.c: Filter through gnu indent and reword comments
58010         slightly.
58011         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
58012
58013 2005-09-13  Derek Price  <derek@ximbiot.com>
58014
58015         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
58016         failure.
58017         Reported by Jim Meyering  <jim@meyering.net>.
58018
58019 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58020
58021         * lib/base64.c: Typo.
58022         (base64_encode): Put b64str in initialized data section.
58023
58024 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
58025
58026         Merge glibc and coreutils changes into gnulib, plus a few
58027         extra fixes.
58028         * lib/md5.c: Use #error rather than a string.
58029         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
58030         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
58031         (__attribute__): Define to empty for non recent-GCC.
58032         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
58033         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
58034         Renamed from their non-__ counterparts, with new macros replacing
58035         them if not _LIBC.  Add __THROW attribute.
58036         (rol): Remove.
58037         (struct md5_ctx): Align buffer if using GCC.
58038         * lib/sha1.h (struct sha1_ctx): Likewise.
58039         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
58040         The old name was backwards.
58041         (NOTSWAP): Remove; not used.
58042         (rol): New macro, moved here from md5.h.
58043         (sha1_process_block): Remove a FIXME that doesn't make sense.
58044
58045 2005-09-12  Derek Price  <derek@ximbiot.com>
58046
58047         Return usable errors from canon-host.
58048         * lib/canon-host.h: New file.
58049         * lib/canon-host.c (canon_host): Wrap...
58050         (canon_host_r): ...this new function, which now relies exclusively on
58051         getaddrinfo.
58052         (ch_strerror): New function.
58053         (last_cherror): New global.
58054         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
58055         interface.
58056         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
58057         void *.
58058         (freeaddrinfo): Free ai->ai_canonname when set.
58059
58060 2005-09-12  Derek Price  <derek@ximbiot.com>
58061
58062         Make canon-host require getaddrinfo.
58063         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
58064         AC_LIBSOURCE canon-host.h.  Call...
58065         (gl_PREREQ_CANON_HOST): ...this new function, which requires
58066         gl_GETADDRINFO.
58067         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
58068
58069 2005-09-12  Derek Price  <derek@ximbiot.com>
58070
58071         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
58072         LGPL.
58073         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
58074
58075 2005-09-12  Derek Price  <derek@ximbiot.com>
58076
58077         * lib/gai_strerror.c: Include config.h when available.  Include
58078         getaddrinfo.h before other headers to test interface.
58079         Reported by Larry Jones <lawrence.jones@ugs.com>.
58080
58081 2005-09-12  Derek Price  <derek@ximbiot.com>
58082             Paul Eggert  <eggert@cs.ucla.edu>
58083
58084         * modules/glob (Files): Add glob-libc.h.
58085
58086 2005-09-12  Derek Price  <derek@ximbiot.com>
58087             Paul Eggert  <eggert@cs.ucla.edu>
58088
58089         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
58090         glob_.h, glob-libc.h.
58091         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
58092
58093 2005-09-12  Derek Price  <derek@ximbiot.com>
58094             Paul Eggert  <eggert@cs.ucla.edu>
58095
58096         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
58097         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
58098         protecting things that should be done only in gnulib contexts.
58099         * lib/glob_.h: New file, containing only the glob things needed for
58100         gnulib.
58101         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
58102         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
58103         (glob, globfree, glob_pattern_p): Now defined simply in terms of
58104         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
58105         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
58106         and to respect the namespace rules better.
58107
58108 2005-09-08  Simon Josefsson  <jas@extundo.com>
58109
58110         * modules/socklen: New file.
58111
58112 2005-09-08  Simon Josefsson  <jas@extundo.com>
58113
58114         * m4/socklen.m4: New file.
58115
58116 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         * modules/utimens (Files): Add m4/utimbuf.m4, since
58119         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
58120         Reported by Sergey Poznyakoff.
58121
58122 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58123
58124         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
58125         definitions, since that's the preferred style in glibc.
58126         Fix a minor spacing issue, and update copyright notice to match
58127         glibc's.
58128
58129 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58130
58131         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
58132
58133 2005-09-06  Simon Josefsson  <jas@extundo.com>
58134
58135         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
58136         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
58137
58138 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58139
58140         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
58141         warning.
58142
58143 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58144
58145         * config/srclist.txt: Add glibc bug 1302.
58146
58147 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
58148
58149         Change bitset word type from unsigned int to unsigned long int,
58150         as this has better performance on typical 64-bit hosts.
58151         Port bitset code to hosts with unusual word sizes.
58152         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
58153         (build_collating_symbol):
58154         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
58155         argument is a bitset.  This is merely a style issue, but it makes
58156         it clearer that an entire array is expected.
58157         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
58158         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
58159         Port to the case where bitset_word is not the same as unsigned int.
58160         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58161         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
58162         Likewise.
58163         * lib/regexec.c (check_dst_limits_calc_pos_1,
58164         check_subexp_matching_top):
58165         (build_trtable, group_nodes_into_DFAstates):
58166         Likewise.
58167         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
58168         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
58169         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
58170         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
58171         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
58172         * lib/regcomp.c (optimize_subexps, lower_subexp):
58173         Work even if bitset_word has holes in its bitwise representation.
58174         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
58175         * lib/regexec.c (check_dst_limits_calc_pos_1,
58176         check_subexp_matching_top):
58177         Likewise.
58178         * lib/regex_internal.c (re_string_reconstruct):
58179         Don't assume UCHAR_MAX == 255.
58180         * lib/regex_internal.h (bitset_set_all): Likewise.
58181         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
58182         All uses changed.
58183         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
58184         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
58185         All uses changed.
58186         (BITSET_WORD_MAX): New macro.
58187         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
58188         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
58189         (bitset_empty, bitset_copy):
58190         Prefer sizeof (bitset) to multiplying it out ourselves.
58191         (bitset_not_merge): Remove; unused.
58192         (bitset_contain): Return bool, not unsigned int with one bit on.
58193         All callers changed.
58194         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
58195         alignment than re_node_set; do this by defining a new internal
58196         type struct dests_alloc and using it to allocate memory.
58197
58198 2005-09-05  Bruno Haible  <bruno@clisp.org>
58199
58200         * gnulib-tool (func_import): Fix comparison in handling of symbolic
58201         links.
58202
58203 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
58204
58205         * modules/size_max (Makefile.am): Add size_max.h
58206
58207 2005-09-04  Derek Price  <derek@ximbiot.com>
58208
58209         * gnulib-tool (func_import): Fix reversed $symbolic logic.
58210
58211 2005-09-03  Simon Josefsson  <jas@extundo.com>
58212
58213         * gnulib-tool: Fix typo.
58214
58215 2005-09-03  Simon Josefsson  <jas@extundo.com>
58216
58217         * config/srclist.txt: Add glibc bug 1293.
58218
58219 2005-09-03  Derek Price  <derek@ximbiot.com>
58220
58221         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
58222         From Larry Jones <lawrence.jones@ugs.com>.
58223
58224 2005-09-02  Simon Josefsson  <jas@extundo.com>
58225
58226         * modules/socklen: New file.
58227
58228 2005-09-02  Simon Josefsson  <jas@extundo.com>
58229
58230         * modules/havelib: New module.
58231
58232         * modules/gettext, modules/iconv, modules/lock, modules/readline:
58233         Use havelib.
58234
58235 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58236
58237         Check for arithmetic overflow when calculating sizes, to prevent
58238         some buffer-overflow issues.  These patches are conservative, in the
58239         sense that when I couldn't determine whether an overflow was possible,
58240         I inserted a run-time check.
58241         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
58242         macros.
58243         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
58244         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
58245         (re_xnrealloc, re_x2nrealloc): New inline functions.
58246         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
58247         parse_bracket_exp):
58248         (build_equiv_class, build_charclass): Check for arithmetic overflow
58249         in size expression calculations.
58250         * lib/regex_internal.c (re_string_realloc_buffers):
58251         (build_wcs_upper_buffer, re_node_set_add_intersect):
58252         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
58253         (re_dfa_add_node, register_state): Likewise.
58254         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
58255         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
58256         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
58257         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
58258
58259 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58260
58261         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58262         m4/ulonglong.m4.  Problem reported by Martin Lambers.
58263
58264 2005-09-02  Bruno Haible  <bruno@clisp.org>
58265
58266         Support for lib vs. lib64 distinction on biarch platforms.
58267         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
58268         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
58269         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
58270
58271 2005-09-02  Bruno Haible  <bruno@clisp.org>
58272
58273         * gnulib-tool (import): In the other first-use case, provide defaults
58274         as well.
58275
58276 2005-09-02  Bruno Haible  <bruno@clisp.org>
58277
58278         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
58279         patches not yet found in the latest gettext release.
58280
58281 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58282
58283         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
58284         to avoid a collision with bits/local_lim.h in glibc.
58285         All uses changed.  Problem reported by Dmitry V. Levin in
58286         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
58287
58288         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
58289         bugs in int versus size_t comparisons.
58290         (re_string_context_at): Fix bug where the code assumed that
58291         Idx is signed.
58292
58293         Use bool where appropriate.
58294         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
58295         All callers changed.
58296         (calc_eclosure_iter): Likewise, for ROOT arg.
58297         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
58298         (build_charclass_op): Likewise, for NON_MATCH arg.
58299         * lib/regex_internal.c (re_string_allocate, re_string_construct):
58300         (re_string_construct_common): Likewise, for ICASE arg.
58301         * lib/regexec.c (re_search_2_stub, re_search_stub):
58302         Likewise, for RET_LEN arg.
58303         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
58304         (set_regs): Likewise, for FL_BACKTRACK arg.
58305         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
58306         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
58307         (calc_eclosure_iter, parse_bracket_exp):
58308         Use bool for internal variables that are booleans.
58309         * lib/regexec.c (re_search_internal, check_matching,
58310         proceed_next_node):
58311         (set_regs, build_sifted_states, sift_states_bkref):
58312         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
58313         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58314         (find_collation_sequence_value):
58315         Likewise.
58316         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
58317         (re_node_set_compare):
58318         Return bool, not int. All callers changed.
58319         * lib/regexec.c (check_halt_node_context, check_dst_limits):
58320         (build_trtable, check_node_accept): Likewise.
58321         * lib/regex_internal.h: Include stdbool.h.
58322
58323         Fix bugs uncovered when converting to bool.
58324         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
58325         failure instead of charging ahead blindly.
58326         * lib/regex_internal.c (register_state): Likewise.
58327         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
58328         for freeing internal storage.
58329         (group_nodes_into_DFA_states): Use unsigned int, not int, for
58330         bitset pieces used as boolean, to avoid undefined behavior
58331         on hosts that do int overflow checking.
58332
58333 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58334
58335         * config/srclist.txt: Add glibc bugs 1285-1287.
58336
58337 2005-09-01  Jim Meyering  <jim@meyering.net>
58338
58339         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
58340         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
58341         Require gl_STAT_MACROS, too.
58342
58343 2005-09-01  Bruno Haible  <bruno@clisp.org>
58344
58345         * gnulib-tool (import): In the first-use case, provide defaults.
58346
58347 2005-09-01  Bruno Haible  <bruno@clisp.org>
58348
58349         * gnulib-tool (func_import): Remove the .tmp files.
58350
58351 2005-09-01  Bruno Haible  <bruno@clisp.org>
58352
58353         * gnulib-tool (func_import): Fix handling of symbolic links.
58354
58355 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58356
58357         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
58358         old glibc regex code mishandles strings longer than 2**31 bytes.
58359         This patch fixes this when the regex code is used in gnulib
58360         (i.e., outside glibc).
58361
58362         This patch should not affect the use of the regex code inside
58363         glibc.  No doubt this problem also needs to be handled for glibc
58364         as well, but the result will be an incompatible change to the
58365         glibc ABI, and the old ABI will have to be supported too.  That
58366         can be the the subject for another patch.
58367
58368         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
58369         governing whether the rest of this patch is active.  By default,
58370         the macro is disabled and the patch has no effect.
58371         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
58372         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
58373         (struct re_pattern_buffer, re_search, re_search_2, re_match):
58374         (re_match_2, re_set_registers): Use the new types.
58375         * lib/regex_internal.h (Idx, re_hashval_t): New types.
58376         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
58377         New macros.
58378         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
58379         (re_string_context_at, bin_tree_t, re_dfastate_t):
58380         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
58381         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
58382         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
58383         (re_string_char_size_at, re_string_wchar_at):
58384         (re_string_elem_size_at):
58385         Use the new types and macros to port to 64-bit hosts.
58386         Use unsigned types for internal values, so that the code
58387         mostly works even for arrays larger than SSIZE_MAX.
58388         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
58389         (search_duplicated_node, calc_eclosure_iter, fetch_number):
58390         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
58391         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
58392         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
58393         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58394         (calc_inveclosure, parse_dup_op, build_range_exp):
58395         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58396         (fetch_number, create_token_tree, mark_opt_subexp):
58397         Likewise.
58398         * lib/regex_internal.c (re_string_construct_common,
58399         create_ci_newstate):
58400         (create_cd_newstate, re_string_allocate, re_string_construct):
58401         (re_string_realloc_buffers, build_wcs_upper_buffer):
58402         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58403         (re_string_reconstruct, re_string_peek_byte_case):
58404         (re_string_fetch_byte_case, re_string_context_at):
58405         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58406         (re_node_set_init_copy, re_node_set_add_intersect):
58407         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58408         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58409         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58410         (re_acquire_state, re_acquire_state_context, register_state):
58411         Likewise.
58412         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58413         search_cur_bkref_entry):
58414         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58415         (re_search_internal, re_search_2_stub, re_search_stub)
58416         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58417         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58418         (update_cur_sifted_state, check_dst_limits):
58419         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58420         (check_subexp_limits, sift_states_bkref, merge_state_array):
58421         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58422         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58423         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58424         (expand_bkref_cache, check_node_accept_bytes):
58425         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58426         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58427         (acquire_init_state_context, check_halt_node_context):
58428         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58429         (sift_states_backward, clean_state_log_if_needed):
58430         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58431         (find_recover_state, transit_state_sb, transit_state_mb):
58432         (transit_state_bkref, build_trtable, match_ctx_clean):
58433         Likewise.
58434         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58435         to work around an assumption that REG_MISSING is negative.
58436
58437         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58438         (seek_collating_symbol_entry) [defined _LIBC]:
58439         (lookup_collation_sequence_value) [defined _LIBC]:
58440         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58441         Use prototypes rather than old-style function definitions.
58442         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58443         (transit_state_sb) [0]:
58444         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58445
58446         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58447         rm_eo.
58448
58449         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58450         (optimize_subexps, lower_subexp):
58451         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58452         since the signed shift might overflow.  Use 1u<<31 instead.
58453         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58454         Likewise.
58455         * lib/regexec.c (check_dst_limits_calc_pos_1,
58456         check_subexp_matching_top): Likewise.
58457
58458         * lib/regcomp.c (optimize_subexps, lower_subexp):
58459         Use CHAR_BIT rather than 8, for clarity.
58460         * lib/regexec.c (check_dst_limits_calc_pos_1):
58461         (check_subexp_matching_top): Likewise.
58462         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58463         have to worry about portability issues when shifting it left.
58464         Remove no-longer-needed test for table_size > 0.
58465         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58466         in a word, as the resulting behavior is undefined.
58467         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58468         in one case, a <= should have been an <, and in another case the
58469         whole test was missing.
58470         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58471         the standard name CHAR_BIT.
58472         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58473         this is not true on one's complement and signed-magnitude hosts.
58474
58475         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58476         next_last_offset.
58477         (struct re_dfa_t): Remove unused member states_alloc.
58478         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58479
58480 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58481
58482         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58483         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58484         and large-file glibc and in 32-bit large-file Solaris.
58485
58486 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58487
58488         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58489         lengths fit in regoff_t; this isn't true if regoff_t is the same
58490         width as size_t.
58491         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58492         (= START + RANGE) instead of RANGE.  This avoids overflow
58493         problems when regoff_t is the same width as size_t.
58494         All callers changed.
58495         (re_search_2_stub): Check for overflow when adding the
58496         sizes of the two strings.
58497         (re_search_stub): Check for overflow when adding START
58498         to RANGE; if it occurs, substitute the extreme value.
58499
58500 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58501
58502         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58503
58504 2005-08-31  Jim Meyering  <jim@meyering.net>
58505
58506         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58507         a pointer-to-const.
58508         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58509         (register_state): Likewise.
58510         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58511         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58512         (group_nodes_into_DFAstates): Likewise.
58513
58514 2005-08-31  Jim Meyering  <jim@meyering.net>
58515
58516         * check-module: Add a FIXME comment.
58517
58518 2005-08-31  Eric Blake  <ebb9@byu.net>
58519
58520         * modules/unistd-safer (Files): Add unistd--.h.
58521         * modules/stdio-safer (Files): Add stdio--.h.
58522
58523 2005-08-31  Derek Price  <derek@ximbiot.com>
58524
58525         * lib/getdelim.c (getdelim): Return EOF on EOF.
58526         Reported by Larry Jones <lawrence.jones@ugs.com>.
58527
58528 2005-08-31  Bruno Haible  <bruno@clisp.org>
58529
58530         Avoid unnecessary diffs in the generated lib/Makefile.am.
58531         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58532         the generated files.
58533         (func_import): Don't set cmd.
58534
58535 2005-08-31  Bruno Haible  <bruno@clisp.org>
58536
58537         * lib/strstr.c: Include <stddef.h>, for NULL.
58538         * lib/strcasestr.c: Likewise.
58539         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58540
58541 2005-08-31  Bruno Haible  <bruno@clisp.org>
58542
58543         * gnulib-tool: New option --macro-prefix.
58544         (func_import): Use macro_prefix.
58545         (import): Handle option --macro-prefix.
58546
58547 2005-08-31  Bruno Haible  <bruno@clisp.org>
58548
58549         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58550         Also use new variables cached_lgpl, cached_libtool.
58551
58552 2005-08-31  Bruno Haible  <bruno@clisp.org>
58553
58554         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58555         always instantiating them.
58556
58557 2005-08-31  Bruno Haible  <bruno@clisp.org>
58558
58559         * gnulib-tool (func_import): Read the previous cached settings
58560         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58561         earlier added by gnulib but are now dropped. Warn when a gnulib file
58562         overwrites a non-gnulib file.
58563
58564 2005-08-31  Bruno Haible  <bruno@clisp.org>
58565
58566         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58567         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58568         projects that don't keep autogenerated files in CVS. Put into
58569         actioncmd only the specified modules, not the transitive closure.
58570
58571 2005-08-31  Bruno Haible  <bruno@clisp.org>
58572
58573         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58574         Create directories that shall be filled.
58575         (import): Don't look for gl_* macros in configure.ac. Recurse across
58576         all directories containing a gnulib-cache.m4 files, if meaningful.
58577
58578 2005-08-31  Bruno Haible  <bruno@clisp.org>
58579
58580         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58581         (import): Set seen_libtool when we see gl_LIBTOOL.
58582
58583 2005-08-31  Bruno Haible  <bruno@clisp.org>
58584
58585         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58586         declaration macro definitions from generated gnulib.m4.
58587
58588 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58589
58590         * lib/iconvme.h: Add prototype for iconv_alloc.
58591
58592 2005-08-29  Simon Josefsson  <jas@extundo.com>
58593
58594         * lib/iconvme.c: Fix errno.
58595
58596 2005-08-29  Bruno Haible  <bruno@clisp.org>
58597
58598         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58599         that it works when the directory contains spaces.
58600
58601 2005-08-29  Bruno Haible  <bruno@clisp.org>
58602
58603         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58604
58605 2005-08-29  Bruno Haible  <bruno@clisp.org>
58606
58607         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58608         Emit more advice.
58609
58610 2005-08-29  Bruno Haible  <bruno@clisp.org>
58611         and Stepan Kasal  <kasal@ucw.cz>
58612
58613         * check-module: If more parameters are given, check each of them
58614         separately; add more exceptions, as noted by Jim Meyering.
58615         (check_module): New procedure.
58616         (%exempt_header): Now contains all exceptions.
58617
58618 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58619
58620         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58621
58622 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58623
58624         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58625
58626 2005-08-28  Bruno Haible  <bruno@clisp.org>
58627
58628         * m4/gnulib-tool.m4: New file.
58629
58630 2005-08-27  Jim Meyering  <jim@meyering.net>
58631
58632         * modules/unistd-safer (Files): Add pipe-safer.c.
58633         * modules/fcntl-safer (Files): Add creat-safer.c.
58634
58635 2005-08-27  Jim Meyering  <jim@meyering.net>
58636
58637         * m4/stdlib-safer.m4: New file.  From coreutils.
58638         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58639         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58640         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58641         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58642         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58643
58644 2005-08-27  Jim Meyering  <jim@meyering.net>
58645
58646         * lib/fopen-safer.c: Merge minor changes from coreutils.
58647         * lib/dup-safer.c: Likewise.
58648         * lib/fd-safer.c: Likewise.
58649
58650         Merge from coreutils.
58651         * lib/stdio--.h: New file.
58652         * lib/stdlib--.h: New file.
58653         * lib/mkstemp-safer.c: New file.
58654
58655         GNU tar needs these.
58656         * lib/pipe-safer.c: New file.
58657         * lib/creat-safer.c: New file.
58658         * lib/fcntl--.h (creat): Define to creat_safer.
58659         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58660         * lib/unistd--.h (pipe): Define to pipe_safer.
58661         * lib/unistd-safer.h: Declare pipe_safer.
58662
58663 2005-08-26  Simon Josefsson  <jas@extundo.com>
58664
58665         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58666         Haible <bruno@clisp.org>.
58667
58668 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58669
58670         * lib/regex_internal.h: Remove all references to
58671         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58672         or better.
58673         (bitset_not, bitset_merge, bitset_not_merge):
58674         (bitset_mask, re_string_allocate, re_string_construct):
58675         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
58676         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
58677         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
58678         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
58679         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58680         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58681         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
58682         (re_acquire_state_context):
58683         Remove unnecessary forward decls.
58684         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
58685         Put __attribute at function definition,
58686         now that the function decl has been removed.
58687         * lib/regex_internal.c (re_string_peek_byte_case):
58688         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
58689         Likewise.
58690
58691 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
58692
58693         * m4/regex.m4: Add AC_PREREQ(2.50).
58694         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
58695
58696 2005-08-25  Simon Josefsson  <jas@extundo.com>
58697
58698         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
58699         __fsetlocking.
58700
58701 2005-08-25  Simon Josefsson  <jas@extundo.com>
58702
58703         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
58704         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
58705         GLIBC specific code.
58706
58707 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58708
58709         Make regex safe for g++.  This fixes one real bug (an "err"
58710         that should have been "*err").  g++ problem reported by
58711         Sam Steingold.
58712         * lib/regex_internal.h (re_calloc): New macro, consistent with
58713         re_malloc etc.  All callers of calloc changed to use re_calloc.
58714         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
58715         not int.  All callers changed.
58716         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
58717         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
58718         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
58719         (find_recover_state): Change "err" to "*err"; this fixes what
58720         appears to be a real bug.
58721         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
58722         versus int.
58723
58724 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58725
58726         * modules/regex (Depends-on): Add malloc, since the code
58727         assumes that !malloc(0) means failure.
58728
58729 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58730
58731         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
58732
58733         alloca modernization/simplification for regex.
58734         * lib/regex.c: Remove portability cruft for alloca.  This no longer
58735         needs to be at the start of the file, and can be moved into
58736         regex_internal.h and simplified.
58737         * lib/regex_internal.h: Include <alloca.h>.
58738         (__libc_use_alloca) [!defined _LIBC]: New macro.
58739         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
58740         now works outside glibc.
58741
58742 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58743
58744         * config/srclist.txt: Add glibc bugs 1241, 1245.
58745
58746 2005-08-25  Jim Meyering  <jim@meyering.net>
58747
58748         * lib/open-safer.c: Include <config.h>.
58749         Otherwise, we'd lose LARGEFILE support in any file using
58750         e.g. "fcntl--.h"
58751
58752 2005-08-25  Bruno Haible  <bruno@clisp.org>
58753
58754         * m4/minmax.m4: Require autoconf 2.52.
58755         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
58756         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
58757         alternatives of translit over the alphabet.
58758         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
58759
58760 2005-08-24  Simon Josefsson  <jas@extundo.com>
58761
58762         * tests/test-getpass.c: New file.
58763
58764 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58765
58766         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
58767         for GNU regex features.
58768
58769 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
58772         * lib/regex.h (regerror): Likewise.
58773
58774         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
58775         requires this.  (The code never needed it.)
58776
58777         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
58778         All uses of recently-renamed identifiers changed to use the new,
58779         POSIX-compliant names.  The code will build and run just fine
58780         without these changes, but it's better to eat our own dog food
58781         and use the standard-conforming names.
58782
58783         * lib/regex.h: Fix a multitude of POSIX name space violations.
58784         These changes have an effect only for programs that define
58785         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
58786         do not change anything for programs compiled in the normal way.
58787         Also, there is no effect on the ABI.
58788
58789         (_REGEX_SOURCE): New macro.
58790         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
58791         defined and _GNU_SOURCE is not; this fixes a name space violation.
58792
58793         Rename the following macros to obey POSIX requirements.
58794         The old names are still visible as macros if _REGEX_SOURCE is defined.
58795         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
58796         RE_BACKSLASH_ESCAPE_IN_LISTS.
58797         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
58798         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
58799         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
58800         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
58801         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
58802         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
58803         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
58804         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
58805         (REG_INTERVALS): renamed from RE_INTERVALS.
58806         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
58807         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
58808         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
58809         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
58810         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
58811         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
58812         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
58813         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
58814         RE_UNMATCHED_RIGHT_PAREN_ORD.
58815         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
58816         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
58817         (REG_DEBUG): renamed from RE_DEBUG.
58818         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
58819         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
58820         unusual, since we can't clash with the POSIX REG_ICASE.
58821         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
58822         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
58823         (REG_NO_SUB): renamed from RE_NO_SUB.
58824         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
58825         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
58826         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
58827         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
58828         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
58829         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
58830         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
58831         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
58832         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
58833         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
58834         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
58835         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
58836         RE_SYNTAX_POSIX_MINIMAL_BASIC.
58837         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58838         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58839         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58840         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58841         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58842         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58843         (REG_FIXED): Renamed from REGS_FIXED.
58844         (REG_NREGS): Renamed from RE_NREGS.
58845
58846         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58847         of other REG_* macros, since POSIX says the user is allowed to
58848         #undef these macros selectively.
58849
58850         (reg_errcode_t): Update comment stating what other tables need
58851         to be consistent.
58852
58853         Rename the following enum values to obey POSIX requirements.
58854         The old names are still visible as macros.
58855         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58856         is not defined, since GNU is supposed to be a superset of POSIX as
58857         much as possible, and since we want reg_errcode_t to be a signed
58858         type for implementation consistency.
58859         (_REG_NOERROR): Renamed from REG_NOERROR.
58860         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58861         (_REG_BADPAT): Renamed from REG_BADPAT.
58862         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58863         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58864         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58865         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58866         (_REG_EBRACK): Renamed from REG_EBRACK.
58867         (_REG_EPAREN): Renamed from REG_EPAREN.
58868         (_REG_EBRACE): Renamed from REG_EBRACE.
58869         (_REG_BADBR): Renamed from REG_BADBR.
58870         (_REG_ERANGE): Renamed from REG_ERANGE.
58871         (_REG_ESPACE): Renamed from REG_ESPACE.
58872         (_REG_BADRPT): Renamed from REG_BADRPT.
58873         (_REG_EEND): Renamed from REG_EEND.
58874         (_REG_ESIZE): Renamed from REG_ESIZE.
58875         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58876         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58877         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58878         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58879         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58880
58881         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58882         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58883         changed.  But support the old name if the new one is not defined
58884         and if _REGEX_SOURCE.
58885
58886         Change the following member names in struct re_pattern_buffer.
58887         The old names are still supported if !_REGEX_SOURCE.
58888         The new names are always supported, regardless of _REGEX_SOURCE.
58889         (re_buffer): Renamed from buffer.
58890         (re_allocated): Renamed from allocated.
58891         (re_used): Renamed from used.
58892         (re_syntax): Renamed from syntax.
58893         (re_fastmap): Renamed from fastmap.
58894         (re_translate): Renamed from translate.
58895         (re_can_be_null): Renamed from can_be_null.
58896         (re_regs_allocated): Renamed from regs_allocated.
58897         (re_fastmap_accurate): Renamed from fastmap_accurate.
58898         (re_no_sub): Renamed from no_sub.
58899         (re_not_bol): Renamed from not_bol.
58900         (re_not_eol): Renamed from not_eol.
58901         (re_newline_anchor): Renamed from newline_anchor.
58902
58903         Change the following member names in struct re_registers.
58904         The old names are still supported if !_REGEX_SOURCE.
58905         The new names are always supported, regardless of _REGEX_SOURCE.
58906         (rm_num_regs): Renamed from num_regs.
58907         (rm_start): Renamed from start.
58908         (rm_end): Renamed from end.
58909
58910         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58911         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58912         Prepend __ to parameter names.
58913
58914         Undo yesterday's changes.
58915
58916 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58919         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58920         lib/regex.c.
58921
58922 2005-08-24  Jim Meyering  <jim@meyering.net>
58923
58924         Sync from coreutils.
58925         * m4/fcntl-safer.m4: New file.
58926
58927         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58928         and object files for this module.
58929
58930 2005-08-24  Jim Meyering  <jim@meyering.net>
58931
58932         Sync from coreutils.
58933         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58934
58935 2005-08-24  Jim Meyering  <jim@meyering.net>
58936
58937         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58938         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58939
58940 2005-08-24  Jim Meyering  <jim@meyering.net>
58941
58942         * modules/fcntl-safer: New module.
58943         * modules/fts (Depends-on): Add fcntl-safer.
58944         * MODULES.html.sh (File descriptor based Input/Output):
58945         Add fcntl-safer.
58946
58947 2005-08-24  Bruno Haible  <bruno@clisp.org>
58948
58949         Support for unit test modules.
58950         * modules/README: Mention tests modules.
58951         * modules/TEMPLATE-TESTS: New file.
58952         * gnulib-tool: New options --extract-tests-module, --with-tests and
58953         --tests-base (unused for the moment).
58954         (testsbase, inctests): New variables.
58955         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58956         (func_verify_module): Exclude TEMPLATE-TESTS.
58957         (func_verify_nontests_module, func_verify_tests_module): New functions.
58958         (func_get_dependencies): Add implicit dependency for tests modules.
58959         (func_get_tests_module): New function.
58960         (func_modules_transitive_closure): When --with-tests was specified,
58961         include the unit tests as well, unless explicitly avoided.
58962         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58963         (func_emit_tests_Makefile_am): New function.
58964         (func_create_testdir): When --with-tests was specified, emit a
58965         tests/ directory.
58966         * MODULES.html.sh (Future developments): Update.
58967
58968 2005-08-24  Bruno Haible  <bruno@clisp.org>
58969
58970         * modules/tls-tests: New file.
58971         * tests/test-tls.c: New file, from GNU gettext.
58972
58973 2005-08-24  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/lock-tests: New file.
58976         * tests/test-lock.c: New file, from GNU gettext.
58977
58978 2005-08-24  Bruno Haible  <bruno@clisp.org>
58979
58980         * lib/lock.h: Add multiple inclusion guard.
58981         * lib/tls.h: Add multiple inclusion guard.
58982
58983 2005-08-24  Bruno Haible  <bruno@clisp.org>
58984
58985         * gnulib-tool: Add support for the --aux-dir option to
58986         --create-testdir, --create-megatestdir, --test, --megatest.
58987         (func_create_testdir, func_create_megatestdir): Optionally emit a
58988         AC_CONFIG_AUX_DIR directive.
58989         (create-testdir, create-megatestdir, test, megatest): Provide a
58990         default value for $auxdir.
58991
58992 2005-08-24  Bruno Haible  <bruno@clisp.org>
58993
58994         * gnulib-tool (import): Use compound statement instead of subshell
58995         where possible.
58996
58997 2005-08-24  Bruno Haible  <bruno@clisp.org>
58998
58999         * gnulib-tool (import): Change --aux-dir default to "build-aux".
59000
59001 2005-08-24  Bruno Haible  <bruno@clisp.org>
59002
59003         * gnulib-tool (func_version): Update.
59004
59005 2005-08-24  Bruno Haible  <bruno@clisp.org>
59006
59007         * gnulib-tool (func_import, func_create_testdir,
59008         func_create_megatestdir): Quote all autoconf macro arguments.
59009
59010 2005-08-24  Bruno Haible  <bruno@clisp.org>
59011
59012         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
59013         option --force, because --force causes the aclocal.m4 of each
59014         subdirectory to be newer than the corresponding config.h.in.
59015
59016 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59017
59018         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
59019         All contents moved to gl_REGEX.
59020         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
59021         assume that it does.
59022
59023 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59024
59025         * lib/regex.h (REG_NOSYS)
59026         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
59027         Define, since POSIX requires it as of 2001.
59028         (_REG_ENOSYS)
59029         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
59030         New private symbol, used to keep the enum signed in all cases.
59031         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
59032         Youngman in
59033         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
59034
59035         * lib/regex_internal.c (re_string_skip_chars, register_state):
59036         (calc_state_hash):
59037         Remove forward decls; no longer needed now that we use prototypes.
59038         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
59039         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
59040         (clean_state_log_if_needed): Likewise.
59041
59042 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59043
59044         * config/srclist.txt: Add glibc bugs 1231-1233.
59045
59046 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         Fix problems reported by Sam Steingold in
59049         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
59050         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
59051         assumed that reg_errcode_t is a signed type, which is not
59052         necessarily true if _XOPEN_SOURCE is not defined.
59053         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
59054         since some compilers warn about it otherwise.
59055
59056 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59057
59058         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
59059         (init_word_char, create_initial_state, duplicate_node_closure):
59060         (fetch_token, peek_token_bracket, build_range_exp):
59061         (build_collating_symbol): Remove forward decls; no longer needed
59062         now that we use prototypes.
59063
59064         * lib/regcomp.c:
59065         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
59066         (re_compile_fastmap_iter, regcomp, regerror, regfree):
59067         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
59068         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
59069         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
59070         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
59071         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
59072         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
59073         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
59074         (build_range_exp, build_collating_symbol, parse_bracket_exp):
59075         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
59076         (build_charclass, build_charclass_op, fetch_number, create_tree):
59077         (create_token_tree, mark_opt_subexp, duplicate_tree):
59078         Use prototypes rather than old-style definitions.
59079
59080         * lib/regex_internal.c:
59081         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
59082         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
59083         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59084         (re_string_reconstruct, re_string_peek_byte_case):
59085         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
59086         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59087         (re_node_set_init_copy, re_node_set_add_intersect):
59088         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59089         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59090         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59091         (re_acquire_state, re_acquire_state_context, register_state):
59092         (create_ci_newstate, create_cd_newstate, free_state):
59093         Likewise.
59094         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
59095         re_search_2):
59096         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
59097         (re_search_internal, prune_impossible_nodes):
59098         (acquire_init_state_context, check_matching, static):
59099         (check_halt_node_context, check_halt_state_context, proceed_next_node):
59100         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
59101         (update_regs, sift_states_backward, build_sifted_states):
59102         (clean_state_log_if_needed, merge_state_array):
59103         (update_cur_sifted_state, add_epsilon_src_nodes):
59104         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
59105         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
59106         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
59107         (find_recover_state, check_subexp_matching_top, transit_state_mb):
59108         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
59109         (check_arrival, check_arrival_add_next_nodes):
59110         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59111         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59112         (check_node_accept_bytes, check_node_accept, extend_buffers):
59113         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
59114         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
59115         (sift_ctx_init):
59116         Likewise.
59117
59118         * lib/regex_internal.h:
59119         (re_string_allocate, re_string_construct, re_string_reconstruct):
59120         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
59121         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
59122         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
59123         (re_string_context_at, re_string_peek_byte_case):
59124         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
59125         is defined, since we now use prototypes always.
59126
59127         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
59128         C89 or better.  All uses removed.
59129
59130 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         * config/srclist.txt: Add glibc bugs 1220-1227.
59133
59134 2005-08-20  Jim Meyering  <jim@meyering.net>
59135
59136         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
59137         of unused local, dfa.
59138
59139 2005-08-20  Bruno Haible  <bruno@clisp.org>
59140
59141         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
59142
59143 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59144
59145         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
59146         (re_node_set_insert_last, re_dfa_add_node):
59147         Rename local variables to avoid GCC shadowing warnings.
59148
59149 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59150
59151         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
59152         [defined lint]: Suppress bogus uninitialized-variable warnings.
59153
59154         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
59155         and let the caller return REG_ESPACE if out of space.  This
59156         removes an uninitialied-variable warning with GCC 4.0.1, and also
59157         avoids taking the address of a local variable.  All callers
59158         changed.
59159
59160 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59161
59162         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
59163         $LIBCSRC/posix/regexec.c.
59164         Add glibc bug 1217 for regcomp.c.
59165
59166 2005-08-19  Jim Meyering  <jim@meyering.net>
59167
59168         * lib/regexec.c (proceed_next_node): Redo local variables to
59169         avoid GCC shadowing warnings.
59170
59171 2005-08-18  Bruno Haible  <bruno@clisp.org>
59172
59173         * lib/strstr.c (strstr): Fix return value in multibyte case.
59174         * lib/strcasestr.c (strcasestr): Likewise.
59175
59176 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59177
59178         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
59179
59180 2005-08-17  Jim Meyering  <jim@meyering.net>
59181
59182         Make the %s format (seconds since the epoch) work for a negative
59183         number and when used with a zero-padded field width, e.g. %015s.
59184
59185         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
59186         label so that it precedes the code to set `digits'.  Otherwise,
59187         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
59188         print `00-22'.  Now, it prints `-0022', as it should.
59189
59190 2005-08-17  Bruno Haible  <bruno@clisp.org>
59191
59192         * modules/strstr (Files): Add m4/mbrtowc.m4.
59193         (Depends-on): Add mbuiter.
59194
59195 2005-08-17  Bruno Haible  <bruno@clisp.org>
59196
59197         * modules/strcasestr: New file.
59198         * MODULES.html.sh (String handling, based on ANSI C 89): Add
59199         strcasestr.
59200
59201 2005-08-17  Bruno Haible  <bruno@clisp.org>
59202
59203         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
59204
59205 2005-08-17  Bruno Haible  <bruno@clisp.org>
59206
59207         * modules/mbuiter: New file.
59208         * MODULES.html.sh (Extended multibyte and wide character utilities):
59209         Add mbuiter.
59210
59211 2005-08-17  Bruno Haible  <bruno@clisp.org>
59212
59213         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
59214         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
59215
59216 2005-08-17  Bruno Haible  <bruno@clisp.org>
59217
59218         * m4/strcasestr.m4: New file.
59219
59220 2005-08-17  Bruno Haible  <bruno@clisp.org>
59221
59222         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
59223         * lib/strstr.c: Completely rewritten, with multibyte locale support.
59224
59225 2005-08-17  Bruno Haible  <bruno@clisp.org>
59226
59227         * lib/strcasestr.h: New file.
59228         * lib/strcasestr.c: New file.
59229
59230 2005-08-17  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/strcasecmp.c: Use mbuiter.h.
59233
59234 2005-08-17  Bruno Haible  <bruno@clisp.org>
59235
59236         * lib/mbuiter.h: New file.
59237
59238 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59239
59240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
59241         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
59242         and gl_GETOPT are both invoked via different paths (as happens
59243         with GNU tar CVS because it uses both argp and getopt), the former
59244         wins.
59245
59246 2005-08-16  Bruno Haible  <bruno@clisp.org>
59247
59248         * modules/tls: New file.
59249         * MODULES.html.sh (Multithreading): Add tls.
59250
59251 2005-08-16  Bruno Haible  <bruno@clisp.org>
59252
59253         * modules/strnlen1: New file.
59254         * MODULES.html.sh (String handling): Add strnlen1.
59255
59256 2005-08-16  Bruno Haible  <bruno@clisp.org>
59257
59258         * modules/strcase (Files): Add m4/mbrtowc.m4.
59259         (Depends-on): Add strnlen1, mbchar.
59260
59261 2005-08-16  Bruno Haible  <bruno@clisp.org>
59262
59263         * modules/mbiter: New file.
59264         * MODULES.html.sh (Extended multibyte and wide character utilities):
59265         Add mbiter.
59266
59267 2005-08-16  Bruno Haible  <bruno@clisp.org>
59268
59269         * modules/mbfile: New file.
59270         * MODULES.html.sh (Extended multibyte and wide character utilities):
59271         Add mbfile.
59272
59273 2005-08-16  Bruno Haible  <bruno@clisp.org>
59274
59275         * modules/mbchar: New file.
59276         * MODULES.html.sh (Extended multibyte and wide character utilities):
59277         New section.
59278
59279 2005-08-16  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/tls.m4: New file, from GNU gettext.
59282
59283 2005-08-16  Bruno Haible  <bruno@clisp.org>
59284
59285         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
59286         always.
59287         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
59288
59289 2005-08-16  Bruno Haible  <bruno@clisp.org>
59290
59291         * m4/mbiter.m4: New file.
59292
59293 2005-08-16  Bruno Haible  <bruno@clisp.org>
59294
59295         * m4/mbfile.m4: New file.
59296
59297 2005-08-16  Bruno Haible  <bruno@clisp.org>
59298
59299         * m4/mbchar.m4: New file.
59300
59301 2005-08-16  Bruno Haible  <bruno@clisp.org>
59302
59303         * lib/tls.h: New file, from GNU gettext.
59304         * lib/tls.c: New file, from GNU gettext.
59305
59306 2005-08-16  Bruno Haible  <bruno@clisp.org>
59307
59308         * lib/strnlen1.h: New file.
59309         * lib/strnlen1.c: New file.
59310
59311 2005-08-16  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
59314         (mbi_init): Update.
59315         (mbi_avail, mbi_advance): Let the iteration end before the terminating
59316         NUL byte, not after it.
59317
59318 2005-08-16  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/strcase.h (strcasecmp): Add note in comments.
59321         * lib/strncasecmp.c: Use code from strcasecmp.c.
59322         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
59323         (strcasecmp): Work correctly in multibyte locales.
59324
59325 2005-08-16  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/mbiter.h: New file.
59328
59329 2005-08-16  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/mbfile.h: New file.
59332
59333 2005-08-16  Bruno Haible  <bruno@clisp.org>
59334
59335         * lib/mbchar.h: New file.
59336         * lib/mbchar.c: New file.
59337
59338 2005-08-16  Bruno Haible  <bruno@clisp.org>
59339
59340         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
59341         the valid ones. Makes the comparison operations transitive:
59342         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
59343         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
59344
59345 2005-08-15  Simon Josefsson  <jas@extundo.com>
59346
59347         * modules/ssize_t (License): Change to 'unlimited'.
59348
59349         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
59350
59351 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59352
59353         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
59354         Add comments for each pending glibc patch.
59355
59356 2005-08-15  Bruno Haible  <bruno@clisp.org>
59357
59358         * lib/regex.h (__restrict_arr): Don't define to __restrict if
59359         __cplusplus is defined.
59360
59361 2005-08-14  Jim Meyering  <jim@meyering.net>
59362
59363         Sync from coreutils.
59364
59365         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
59366         Use the hash-table-based cycle-detection code not just when
59367         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
59368         Reported by James Youngman in
59369         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
59370         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
59371         FTS_TIGHT_CYCLE_CHECK.
59372         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
59373         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
59374         once again.
59375         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
59376         * lib/fts.c (fd_safer): Remove decl.
59377         Include fcntl--.h rather than unistd-safer.h
59378         (fts_safe_changedir): Don't call fd_safer; no longer needed
59379         now that we include fcntl--.h.
59380
59381 2005-08-12  Simon Josefsson  <jas@extundo.com>
59382
59383         * modules/getndelim2: Use ssize_t module.
59384         * modules/getnline: Likewise.
59385         * modules/safe-read: Likewise.
59386         * modules/xreadlink: Likewise.
59387
59388         * modules/ssize_t: New file.
59389
59390 2005-08-12  Simon Josefsson  <jas@extundo.com>
59391
59392         * m4/readline.m4: Look for termcap, curses or ncurses if required.
59393
59394 2005-08-12  Simon Josefsson  <jas@extundo.com>
59395
59396         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59397         ssize_t.
59398
59399 2005-08-12  Simon Josefsson  <jas@extundo.com>
59400
59401         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59402         readline, getdelim and check_version.
59403         (Support for systems lacking ISO C 99: Sizes of integer types):
59404         Add size_max.
59405
59406 2005-08-12  Bruno Haible  <bruno@clisp.org>
59407
59408         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59409
59410 2005-08-11  Simon Josefsson  <jas@extundo.com>
59411
59412         * modules/readline: New file.
59413
59414         * modules/strnlen (Files): Add strnlen.h.
59415
59416 2005-08-11  Simon Josefsson  <jas@extundo.com>
59417
59418         * m4/readline.m4: New file.
59419
59420 2005-08-11  Simon Josefsson  <jas@extundo.com>
59421
59422         * lib/readline.h, readline.c: New file.
59423
59424 2005-08-11  Simon Josefsson  <jas@extundo.com>
59425
59426         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59427         gl_AVOID.
59428
59429 2005-08-11  Bruno Haible  <bruno@clisp.org>
59430
59431         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59432
59433 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59434
59435         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59436
59437 2005-08-10  Simon Josefsson  <jas@extundo.com>
59438
59439         * tests/test-iconvme.c: New file.
59440
59441 2005-08-10  Simon Josefsson  <jas@extundo.com>
59442
59443         * m4/strnlen.m4: New file.
59444
59445         * m4/strndup.m4: Don't check for strnlen declaration, done in
59446         strnlen.m4.
59447
59448 2005-08-10  Simon Josefsson  <jas@extundo.com>
59449
59450         * lib/strndup.c: Use strnlen.h.
59451
59452         * lib/strnlen.h: New file.
59453
59454 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59455
59456         * README: Typos.
59457
59458 2005-08-02  Simon Josefsson  <jas@extundo.com>
59459
59460         * modules/readline: New file.
59461
59462 2005-08-02  Simon Josefsson  <jas@extundo.com>
59463
59464         * modules/getdelim: New file.
59465
59466         * modules/getline: Rewrite, don't use getndelim2.
59467
59468 2005-08-02  Simon Josefsson  <jas@extundo.com>
59469
59470         * m4/getline.m4: Separate out getdelim stuff into separate module.
59471
59472         * m4/getdelim.m4: New file.
59473
59474 2005-08-02  Simon Josefsson  <jas@extundo.com>
59475
59476         * lib/getline.h, getline.c: Rewrite.
59477
59478         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59479
59480 2005-07-31  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/lock.h (gl_lock_initializer): New macro.
59483         (gl_lock_define_initialized): Use it.
59484         (gl_rwlock_initializer): New macro.
59485         (gl_rwlock_define_initialized): Use it.
59486         (gl_recursive_lock_initializer): New macro.
59487         (gl_recursive_lock_define_initialized): Use it.
59488
59489 2005-07-30  Karl Berry  <karl@gnu.org>
59490
59491         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59492         Report from Ben Pfaff, regarding getopt.
59493
59494 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59495
59496         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59497         normal way.
59498         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59499         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59500         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59501         (gl_GETOPT): Use the new macros.  Most of the implementation
59502         is moved to the new macros.  This is for programs like Emacs
59503         that don't want all the functionality of gl_GETOPT.
59504
59505 2005-07-26  Bruno Haible  <bruno@clisp.org>
59506
59507         * m4/lock.m4: Update from GNU gettext.
59508
59509 2005-07-26  Bruno Haible  <bruno@clisp.org>
59510
59511         * lib/lock.h: Update from GNU gettext.
59512         * lib/lock.c: Update from GNU gettext.
59513
59514 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59517         obsolescent AC_TRY_RUN.  Include the default includes files, for
59518         'exit'.
59519
59520 2005-07-24  Bruno Haible  <bruno@clisp.org>
59521
59522         * modules/visibility: New file.
59523         * MODULES.html.sh (Misc): Add visibility.
59524
59525 2005-07-24  Bruno Haible  <bruno@clisp.org>
59526
59527         * m4/visibility.m4: New file.
59528
59529 2005-07-24  Bruno Haible  <bruno@clisp.org>
59530
59531         * doc/visibility.texi: New file.
59532
59533 2005-07-22  Bruno Haible  <bruno@clisp.org>
59534
59535         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59536         $(ALLOCA_H), redundant through BUILT_SOURCES.
59537         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59538         redundant through BUILT_SOURCES.
59539         * modules/byteswap (Makefile.am): Remove explicit dependency on
59540         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59541         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59542         $(FNMATCH_H), redundant through BUILT_SOURCES.
59543         * modules/getopt (Makefile.am): Remove explicit dependency on
59544         $(GETOPT_H), redundant through BUILT_SOURCES.
59545         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59546         redundant through BUILT_SOURCES.
59547         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59548         redundant through BUILT_SOURCES.
59549         * modules/stdbool (Makefile.am): Remove explicit dependency on
59550         $(STDBOOL_H), redundant through BUILT_SOURCES.
59551         * modules/stdint (Makefile.am): Remove explicit dependency on
59552         $(STDINT_H), redundant through BUILT_SOURCES.
59553         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59554         Remove explicit dependency on $(SYSEXITS_H).
59555         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59556
59557 2005-07-18  Simon Josefsson  <jas@extundo.com>
59558
59559         * lib/check-version.c (check_version): Accept identical versions too.
59560
59561 2005-07-18  Bruno Haible  <bruno@clisp.org>
59562
59563         * modules/lock: New file.
59564         * MODULES.html.sh (Multithreading): New section.
59565
59566 2005-07-18  Bruno Haible  <bruno@clisp.org>
59567
59568         * m4/lock.m4: New file, from GNU gettext.
59569
59570 2005-07-18  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/lock.h: New file, from GNU gettext.
59573         * lib/lock.c: New file, from GNU gettext.
59574
59575 2005-07-18  Bruno Haible  <bruno@clisp.org>
59576
59577         * lib/lock.h (gl_once_t): New type.
59578         (gl_once_define, gl_once): New macros.
59579         * lib/lock.c (fresh_once): New variable.
59580         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59581         functions.
59582
59583 2005-07-16  Simon Josefsson  <jas@extundo.com>
59584
59585         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59586         workaround, suggested by Bruno.
59587
59588 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59589
59590         * modules/xalloc (Depends-on): Add xalloc-die.
59591         * modules/xvasprintf (Depends-on): Add xalloc-die.
59592
59593 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59594
59595         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59596         with a minor change.
59597
59598 2005-07-15  Bruno Haible  <bruno@clisp.org>
59599
59600         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59601         When using lib/poll.c, define poll as rpl_poll.
59602
59603 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * modules/argp (Depends-on): Remove unlocked-io.
59606
59607 2005-07-14  Derek Price  <derek@ximbiot.com>
59608
59609         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59610         for glob symlink bug.
59611
59612 2005-07-14  Bruno Haible  <bruno@clisp.org>
59613
59614         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59615         Instead, test for *_unlocked function declarations directly.
59616
59617 2005-07-11  Simon Josefsson  <jas@extundo.com>
59618
59619         * modules/size_max: New file.
59620
59621         * modules/xsize: Depend on size_max module for size_max.m4.
59622
59623 2005-07-11  Simon Josefsson  <jas@extundo.com>
59624
59625         * lib/size_max.h: New file.
59626
59627 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59630         copyright symbol and the year.
59631         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59632         (version_etc_va): Use parameterized copyright notice.
59633         Reword to conform to the current GNU coding standards.
59634
59635 2005-07-11  Karl Berry  <karl@gnu.org>
59636
59637         * doc/gnulib.texi (Quoting): new node.
59638         (Initial import): more info, from Patrice.
59639
59640 2005-07-11  Bruno Haible  <bruno@clisp.org>
59641
59642         * gnulib-tool (func_usage): Document option --avoid.
59643         (Command line options): Handle --avoid.
59644         (func_acceptable): New function.
59645         (func_modules_transitive_closure): Use it.
59646
59647 2005-07-11  Bruno Haible  <bruno@clisp.org>
59648
59649         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59650         Reported by Jim Meyering.
59651
59652 2005-07-10  Bruno Haible  <bruno@clisp.org>
59653
59654         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59655         Needed when size_t is smaller than 'unsigned int'.
59656         Reported by Paul Eggert.
59657
59658 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59659
59660         * modules/argp (Depends-on): Add unlocked-io
59661
59662 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59663
59664         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59665         block of defines.
59666
59667 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59668
59669         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59670         fix now.
59671
59672 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59673         and Paul Eggert  <eggert@cs.ucla.edu>
59674
59675         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
59676         in wint_t, not wchar_t.  Remove now-unnecessary cast.
59677
59678 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59679
59680         * modules/regex (Files): Add lib/regex_internal.c,
59681         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
59682         (Depends-on): Add extensions.
59683         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
59684
59685 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
59688         pathconf.
59689         * m4/same.m4 (gl_SAME): Likewise.
59690         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
59691
59692         * m4/regex.m4: Adjust to new libc regex implementation.
59693         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
59694         all the .c and .h parts of (the new) regex.
59695         Quote the m4 stuff better.
59696         Check for RE_ICASE bug of old gnulib.
59697         Check for REG_STARTEND of recent libc.
59698         Rename local variables from jm_* to gl_*.
59699         Quote operand of "test -f".
59700         Say "recent enough" version of libc, not "version 2".
59701         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
59702         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
59703         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
59704         Remove check for btowc, isascii.
59705         Require AM_LANGINFO_CODESET.
59706
59707 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59708
59709         * lib/regex.c, regex.h: Sync from libc.
59710         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
59711         * lib/regexec.c:
59712         New files, synced from libc, except that regex_internal.h
59713         currently has a small porting fix.
59714
59715 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59716
59717         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
59718         regex_internal.c, regexec.c.
59719         Add regex_internal.h too, but as a comment, since the libc version
59720         is currently broken in gnulib mode.
59721
59722 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59723
59724         Support programs like Emacs that use gnulib but not gettext.
59725         * MODULES.html.sh (Internationalization functions): Add gettext-h.
59726         * modules/gettext-h: New file.
59727         * modules/gettext (Files): Remove lib/gettext.h.
59728         (Depends-on): Add gettext-h.
59729         (Makefile.am): Remove lib_SOURCES.
59730         * modules/argmatch, modules/c-stack, modules/closeout:
59731         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
59732         * modules/execute, modules/file-type, modules/getaddrinfo:
59733         * modules/getopt, modules/human, modules/javacomp:
59734         * modules/javaexec, modules/mkdir-p, modules/obstack:
59735         * modules/openat, modules/pagealign_alloc, modules/pipe:
59736         * modules/quotearg, modules/regex, modules/rpmatch:
59737         * modules/unicodeio, modules/userspec, modules/version-etc:
59738         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
59739         * modules/xsetenv:
59740         Depend on gettext-h, not gettext.
59741
59742 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * gnulib-tool (func_import): Add support for 'public domain' license.
59745         * modules/alloca, modules/atexit, modules/memmove:
59746         Now public domain, not GPL.
59747         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
59748         * modules/realloc, modules/strerror, modules/strtod:
59749         Now LGPL, not GPL.
59750
59751 2005-07-05  Bruno Haible  <bruno@clisp.org>
59752
59753         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
59754         autoconf CVS. Needed for mingw.
59755
59756 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59757
59758         Remove the dependency of the strftime module on the tzset module.
59759         * modules/strftime (Depends-on): Remove dependency on tzset.
59760
59761 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59762
59763         Remove the dependency of the strftime module on the tzset module.
59764         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
59765         gl_FUNC_TZSET_CLOBBER.
59766
59767 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         Remove the dependency of the strftime module on the tzset module.
59770         * lib/strftime.c (my_strftime)
59771         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
59772         Copy the input structure, to work around some of the bug with
59773         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
59774         Solaris releases, you should also use the tzset module, but we won't
59775         require it as a dependency any more since we don't want LGPLed code
59776         to depend on GPLed code.
59777
59778 2005-07-02  Jim Meyering  <jim@meyering.net>
59779
59780         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
59781         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
59782         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
59783         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
59784
59785 2005-07-02  Jim Meyering  <jim@meyering.net>
59786
59787         * lib/backupfile.c (backup_args): Change a `0' to NULL.
59788
59789 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59790
59791         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
59792         declares only 'struct timespec;' (!).
59793
59794 2005-07-01  Jim Meyering  <jim@meyering.net>
59795
59796         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
59797         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
59798         * lib/save-cwd.c, tempname.c:
59799         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59800         and don't include <sys/file.h>).
59801
59802 2005-06-29  Jim Meyering  <jim@meyering.net>
59803
59804         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
59805         type name.  Use the variable name instead.
59806         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
59807         Likewise.
59808
59809 2005-06-28  Simon Josefsson  <jas@extundo.com>
59810
59811         * modules/check-version (Files): Add check-version.m4.
59812
59813 2005-06-28  Simon Josefsson  <jas@extundo.com>
59814
59815         * m4/check-version.m4: New file, suggested by Jim Meyering
59816         <jim@meyering.net>.
59817
59818 2005-06-28  Simon Josefsson  <jas@extundo.com>
59819
59820         * lib/check-version.h, lib/check-version.c: New files.
59821
59822 2005-06-28  Simon Josefsson  <jas@extundo.com>
59823
59824         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
59825         collision with global variable.  Better indentation.  Don't
59826         increment buffer pointer beyond buffer end.  Based on comments
59827         from Paul Eggert <eggert@cs.ucla.edu>.
59828
59829         * lib/base64.h: Indent.
59830
59831 2005-06-28  Simon Josefsson  <jas@extundo.com>
59832
59833         * doc/gnulib.texi (Library version handling): New section.
59834
59835 2005-06-28  Jim Meyering  <jim@meyering.net>
59836
59837         * check-module (find_included_lib_files): Hard-code another
59838         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59839         but modules/fts-lgpl (correctly) does not list those files.
59840
59841         * modules/canonicalize (Files): Add lib/pathmax.h.
59842
59843 2005-06-25  Simon Josefsson  <jas@extundo.com>
59844
59845         * modules/check-version: New file.
59846
59847 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59848
59849         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59850         initializer of struct addrinfo, as an indication that we don't
59851         care how many members the structure has.
59852
59853 2005-06-24  Derek Price  <derek@ximbiot.com>
59854         and Bruno Haible  <bruno@clisp.org>
59855
59856         Remove stat module & update lstat.
59857         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59858         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59859         * m4/stat.m4: Remove this file.
59860
59861 2005-06-24  Derek Price  <derek@ximbiot.com>
59862         and Bruno Haible  <bruno@clisp.org>
59863
59864         Remove stat module & update lstat.
59865         * lib/stat.c: Remove this file...
59866         (slash_aware_lstat): ...moving this content and its support...
59867         * lib/lstat.c (rpl_lstat): ...into here.
59868         * lib/lstat.h: New file.
59869
59870 2005-06-24  Derek Price  <derek@ximbiot.com>
59871         and Bruno Haible  <bruno@clisp.org>
59872
59873         Remove stat module & update lstat.
59874         * config/srclist.txt (libc sources): Remove stat.
59875
59876 2005-06-24  Derek Price  <derek@ximbiot.com>
59877         and Bruno Haible  <bruno@clisp.org>
59878
59879         Remove stat module & update lstat.
59880         * MODULES.html.sh (stat): Remove.
59881         * MODULES.html: Regenerated.
59882         * modules/lstat (Description): Correct function name.
59883         (Files): Add "lstat.h".
59884         (Depends-on): Remove stat, add xalloc, stat-macros.
59885         * modules/stat: Remove this file.
59886         (Include): Add "lstat.h", remove <sys/stat.h>.
59887
59888 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59889
59890         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59891         (ranged_convert): Don't save conversion in a temporary struct.
59892         This causes a warning with GCC 4.0.0, and anyway in the typical
59893         case it's not worth the extra 100 bytes or so of code.
59894         (ranged_convert, __mktime_internal): When calling a function via a
59895         pointer P, use P () rather than (*P) (), as we now assume C89 or
59896         better.
59897
59898 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59901         "who -r" failed to give output.  Problem reported by Tim Waugh.
59902
59903         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59904         (xcalloc): Use it to avoid needless tests.
59905         Problem reported by Jim Meyering.
59906
59907 2005-06-20  Derek Price  <derek@ximbiot.com>
59908
59909         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59910         unnecessary for Autoconfs > 2.59c.
59911
59912 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59913
59914         * lib/argp.h (__option_is_short): Check upper limit of
59915         __key. Isprint() requires its argument to have the value
59916         of an unsigned char or EOF.
59917
59918 2005-06-16  Jim Meyering  <jim@meyering.net>
59919
59920         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59921         when either N or S is zero.
59922
59923 2005-06-16  Derek Price  <derek@ximbiot.com>
59924
59925         * m4/bison.m4: Declare YACC & YFLAGS precious.
59926
59927 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59930         multibyte string or pattern, fall back on unibyte matching.
59931         Problem reported by James Youngman.
59932
59933 2005-06-08  Bruno Haible  <bruno@clisp.org>
59934
59935         * modules/csharpcomp: New file.
59936         * MODULES.html.sh (C#): Add csharpcomp.
59937
59938 2005-06-08  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/csharpcomp.m4: New file, from GNU gettext.
59941
59942 2005-06-08  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/csharpcomp.h: New file, from GNU gettext.
59945         * lib/csharpcomp.c: New file, from GNU gettext.
59946         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59947
59948 2005-06-08  Bruno Haible  <bruno@clisp.org>
59949
59950         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59951         warning on mingw.
59952
59953 2005-06-07  Derek Price  <derek@ximbiot.com>
59954
59955         Sync from CVS.
59956         * lib/glob_.h: Indent nested #ifdef.
59957
59958 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         Sync from coreutils.
59961         Use "file name" when talking about file names, instead of "filename"
59962         or "path", as per the GNU coding standards.
59963         * lib/mkdir-p.c: Renamed from makepath.c.
59964         (make_dir_parents): Renamed from make_path.  All callers changed.
59965         * lib/mkdir-p.h: Likewise.  All includers changed.
59966         * lib/filenamecat.c: Renamed from path-concat.c.
59967         (file_name_concat): Renamed from path_concat.  All callers changed.
59968         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59969         * lib/filenamecat.h: Likewise.  All includers changed.
59970         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59971         in comments or local variable names.
59972         * lib/basename.c: Likewise.
59973         * lib/canonicalize.c, canonicalize.h: Likewise.
59974         * lib/dirname.c, dirname.h: Likewise.
59975         * lib/euidaccess.c: Likewise.
59976         * lib/exclude.c: Likewise
59977         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59978         * lib/fsusage.c, fsuage.h: Likewise.
59979         * lib/fts.c, fts_.h: Likewise.
59980         * lib/getcwd.c: Likewise.
59981         * lib/getloadavg.c: Likewise.
59982         * lib/mkstemp.c: Likewise.
59983         * lib/mountlist.c, mountlist.h: Likewise.
59984         * lib/openat.c, openat.h: Likewise.
59985         * lib/readlink-stub.c: Likewise.
59986         * lib/readutmp.c, readutmp.h: Likewise.
59987         * lib/rename.c: Likewise.
59988         * lib/rmdir.c: Likewise.
59989         * lib/same.c: Likewise.
59990         * lib/savedir.c: Likewise.
59991         * lib/stripslash.c: Likewise.
59992         * lib/tempname.c: Likewise.
59993         * lib/xreadlink.c: Likewise.
59994         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59995         All uses changed.
59996         * lib/exclude.h: Likewise.
59997
59998         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59999         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60000         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
60001         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60002         * lib/pathmax.h: Include <limits.h> unconditionally, since other
60003         files have been getting away with it for years (MORE/BSD 4.3
60004         is extinct now).
60005         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
60006         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60007
60008         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
60009         Define to 256, not 255, as per modern POSIX.
60010
60011 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         Sync from coreutils.
60014         Use "file name" when talking about file names, instead of "filename"
60015         or "path", as per the GNU coding standards.
60016         * MODULES.html.sh: mkdir-p renamed from makepath.
60017         filenamecat renamed from path-concat.
60018         * modules/filenamecat: Renamed from modules/path-concat.
60019         (Files): filenamecat.h and filenamecat.c renamed from
60020         path-concat.h and path-concat.c.
60021         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
60022         (Include): filenamecat.h, not path-concat.h.
60023         * modules/mkdir-p: Renamed from modules/makepath.
60024         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
60025         makepath.c.
60026         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
60027         (Include): mkdir-p.h, not makepath.h.
60028
60029 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60030
60031         Sync from coreutils.
60032         * m4/mkdir-p.m4: Renamed from makepath.m4.
60033         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
60034         Rename files from makepath.c to mkdir-p.c, and from
60035         makepath.h to mkdir-p.h.
60036         * m4/filenamecat.m4: Renamed from path-concat.m4.
60037         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
60038         Rename files from path-concat.c to filenamecat.c,
60039         and from path-concat.h to filenamecat.h.
60040         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
60041         "file name" in local variables or comments.
60042         * m4/rename.m4: Likewise.
60043
60044 2005-06-01  Bruno Haible  <bruno@clisp.org>
60045
60046         * modules/csharpexec: New file.
60047         * MODULES.html.sh (C#): New section.
60048
60049 2005-06-01  Bruno Haible  <bruno@clisp.org>
60050
60051         * m4/csharp.m4: New file, from GNU gettext.
60052         * m4/csharpexec.m4: New file, from GNU gettext.
60053
60054 2005-06-01  Bruno Haible  <bruno@clisp.org>
60055
60056         * lib/csharpexec.h: New file, from GNU gettext.
60057         * lib/csharpexec.c: New file, from GNU gettext.
60058         * lib/csharpexec.sh.in: New file, from GNU gettext.
60059
60060 2005-05-31  Derek Price  <derek@ximbiot.com>
60061             Paul Eggert  <eggert@cs.ucla.edu>
60062
60063         Sync from cvs.
60064         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60065
60066 2005-05-31  Derek Price  <derek@ximbiot.com>
60067             Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         Sync from cvs.
60070         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60071
60072 2005-05-29  Derek Price  <derek@ximbiot.com>
60073
60074         * config/srclist.txt (glob_.h, glob.c): Add these files.
60075
60076 2005-05-29  Derek Price  <derek@ximbiot.com>
60077
60078         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
60079         * modules/glob: New file.
60080         * modules/getlogin_r: Add link to POSIX spec in description.
60081
60082 2005-05-29  Derek Price  <derek@ximbiot.com>
60083             Paul Eggert  <eggert@cs.ucla.edu>
60084
60085         * m4/glob.m4: New file.
60086
60087 2005-05-29  Derek Price  <derek@ximbiot.com>
60088             Paul Eggert  <eggert@cs.ucla.edu>
60089
60090         * lib/glob_.h, lib/glob.c: New files.
60091
60092 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60093
60094         * modules/fts (Files): Remove m4/inttypes-pri.m4.
60095         * modules/fts-lgpl (Depends-on): Remove gettext.
60096
60097 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60098
60099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
60100         and don't require gt_INTTYPES_PRI.
60101
60102 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60103
60104         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
60105
60106         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
60107         the configuration hassle isn't worth it.
60108         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
60109         (LONGEST_MODIFIER, PRIuMAX): Remove.
60110
60111 2005-05-27  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/getlogin_r.h: Remove second include of <stddef.h>.
60114
60115 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
60118         _POSIX_PTHREAD_SEMANTICS for Solaris.
60119
60120 2005-05-25  Derek Price  <derek@ximbiot.com>
60121
60122         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
60123
60124 2005-05-25  Derek Price  <derek@ximbiot.com>
60125             Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         * modules/getlogin_r, m4/getlogin_r.m4: New files.
60128         * lib/getlogin_r.c, getlogin_r.h: New files.
60129
60130 2005-05-25  Bruno Haible  <bruno@clisp.org>
60131             Derek Price  <derek@ximbiot.com>
60132
60133         * lib/getlogin_r.h: Simplify API documentation.
60134
60135 2005-05-23  Derek Price  <derek@ximbiot.com>
60136
60137         * modules/minmax (Files): Add m4/minmax.m4.
60138         (configure.ac): Add gl_MINMAX.
60139
60140 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60141
60142         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
60143         so that unistd-safer.h (GPL'ed code) need not be included.
60144
60145 2005-05-22  Bruno Haible  <bruno@clisp.org>
60146
60147         * m4/minmax.m4: New file.
60148         Based on a patch by Derek Price <derek@ximbiot.com>.
60149
60150 2005-05-22  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
60153         (INT64_MIN): Fix definition.
60154         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
60155
60156         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
60157         NEED_SIGNED_INT_TYPES.
60158
60159         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
60160         HAVE_SYSTEM_INTTYPES.
60161
60162 2005-05-22  Bruno Haible  <bruno@clisp.org>
60163
60164         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
60165         Also include <sys/param.h> if it defines MIN, MAX.
60166         Based on a patch by Derek Price <derek@ximbiot.com>.
60167
60168 2005-05-21  Jim Meyering  <jim@meyering.net>
60169
60170         * modules/fts (Files): Add m4/inttypes-pri.m4.
60171         (Depends-on): Add lstat and remove gettext.  Alphabetize.
60172
60173 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60174
60175         New fts module.
60176         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
60177         (setup_dir, free_dir): New functions.
60178         (enter_dir, leave_dir): Define trivial
60179         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
60180         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
60181         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
60182         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
60183         Move to fts-cycle.c.
60184         (fts_open): Use setup_dir.
60185         (fts_close): Use free_dir.
60186         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
60187         This adds a label and some gotos, but the alternatives were messier.
60188         Check for memory allocation failure when entering a dir.
60189         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
60190         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
60191         (FTS): New member fts_cycle, that is a union that contains the
60192         old active_dir_ht and cycle_state.  All uses changed to mention
60193         fts_cycle.ht and fts_cycle.state.
60194         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
60195         fts.c, with the following changes:
60196         (setup_dir, free_dir): New functions.
60197         (enter_dir): Now returns bool.  Return true if successful, false
60198         if memory exhausted.  All callers changed.
60199         Do not bother partly cleaning up on
60200         memory allocation failure; that is free_dir's job.
60201         However, free ad if hash_insert fails, to avoid memory leak.
60202         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
60203         fts->fts_options to see which union member to use.
60204
60205 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60206
60207         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
60208         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
60209
60210 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
60213
60214 2005-05-20  Jim Meyering  <jim@meyering.net>
60215
60216         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
60217         Now a macro, to pacify GCC.
60218
60219 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60220
60221         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
60222         of -1.
60223
60224 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60225
60226         * lib/chown.c (rpl_chown): Return -1 on failure.
60227
60228 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60229
60230         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
60231         Don't check for stddef.h.
60232         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
60233         don't use its results.
60234         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
60235         since we include them unconditionally.  Don't require
60236         AM_STDBOOL_H, since stdbool is a prerequisite.
60237         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
60238         since we assume C89 or better.
60239         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
60240         as we don't use their results.
60241         Don't check for fchdir, memmove, memset, strrchr, as we use
60242         them unconditionally.
60243         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
60244         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
60245
60246 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60247
60248         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
60249         Include <stddef.h> unconditionally, since we assume C89 now.
60250         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
60251         * lib/fts.c: Include fts_.h first, to check interface.
60252         Do not include intprops.h; no longer needed.
60253         Include cycle-check.h and hash.h, since fts_.h no longer does.
60254         Remove unnecessary casts of closedir to void.
60255         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
60256         decide whether to decrement nlinks.
60257         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
60258         (FTS): Use struct hash_table * instead of Hash_table, so that
60259         we no longer need to include hash.h here.
60260
60261 2005-05-18  Jim Meyering  <jim@meyering.net>
60262
60263         * modules/dirfd (License): Change to LGPL.  Most of the code
60264         is already in the public domain.
60265
60266 2005-05-18  Jim Meyering  <jim@meyering.net>
60267
60268         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
60269         Reported by Yoann Vandoorselaere.
60270
60271 2005-05-17  Jim Meyering  <jim@meyering.net>
60272
60273         * m4/fts.m4: New file, from coreutils.
60274
60275 2005-05-17  Jim Meyering  <jim@meyering.net>
60276
60277         * lib/fts.c, lib/fts_.h: New files, from coreutils.
60278
60279 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         Sync from coreutils.
60282         * m4/unlinkdir.m4: New file.
60283
60284 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         Sync from coreutils.
60287         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
60288         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
60289         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
60290         White space changes only.
60291         * lib/makepath.c (make_path): Port to hosts where leading "//" is
60292         special.
60293         * lib/yesno.c: Include getline.h, not ctype.h.
60294         (yesno): Don't remove leading white space; POSIX doesn't allow it.
60295         Use getline to remove arbitrary restriction on response length.
60296
60297 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60298
60299         * config/srclist-update: Spell out "Street" in FSF postal
60300         mail address; this is the style the FSF seems to prefer.
60301
60302         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
60303         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
60304         this updates FSF postal mail address.
60305
60306         Sync from coreutils.
60307         * modules/unlinkdir: New file.
60308         * modules/yesno (Depends-on): Add getline.
60309         * MODULES.html.sh (File system functions): Add unlinkdir.
60310
60311 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
60314         lib/strsep.h:
60315         Change the initial comment to refer to GPL, not LGPL.
60316         gnulib-tool will change it to LGPL as needed.
60317
60318         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
60319         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
60320         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
60321         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
60322         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
60323         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
60324         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
60325         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
60326         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
60327         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
60328         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
60329         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
60330         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
60331         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
60332         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
60333         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
60334         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
60335         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
60336         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
60337         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
60338         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
60339         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
60340         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
60341         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
60342         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
60343         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
60344         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
60345         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
60346         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
60347         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
60348         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
60349         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
60350         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
60351         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
60352         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
60353         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
60354         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
60355         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
60356         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
60357         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
60358         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
60359         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
60360         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
60361         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
60362         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
60363         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
60364         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
60365         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
60366         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
60367         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
60368         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60369         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
60370         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
60371         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
60372         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
60373         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
60374         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
60375         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
60376         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
60377         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
60378         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
60379         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
60380         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
60381         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
60382         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
60383         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
60384         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
60385         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
60386         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
60387         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
60388         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
60389         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
60390         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
60391         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
60392         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
60393         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60394         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60395         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60396         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60397         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60398         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60399         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60400         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60401         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60402         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60403         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60404         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60405         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60406         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60407         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60408         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60409         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60410         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60411         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60412         lib/yesno.c, lib/yesno.h:
60413         Update FSF postal mail address.
60414
60415 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60416
60417         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60418         tests/test-memmem.c, tests/test-stpncpy.c:
60419         Update FSF postal mail address.
60420
60421 2005-05-13  Bruno Haible  <bruno@clisp.org>
60422
60423         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60424         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60425         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60426         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60427         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60428         Add support for 64-bit integers in the MSVC compiler.
60429
60430 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60431
60432         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60433
60434 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60435
60436         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60437
60438 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60439
60440         * doc/getdate.texi (General date syntax): Don't say that date
60441         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60442         Problem reported by Nic Ferrier.
60443
60444 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60445
60446         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60447         specified in ai_socktype. Fix invalid ai_protocol
60448         check. ai_protocol is usually set to 0 or depending on
60449         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60450         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60451         ai_socktype / ai_protocol in the returned addrinfo structure.
60452
60453 2005-05-10  Simon Josefsson  <jas@extundo.com>
60454
60455         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60456         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60457
60458 2005-05-10  Karl Berry  <karl@gnu.org>
60459
60460         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60461         (from http://www.gnu.org/licenses).
60462         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60463         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60464         fdl.texi suffices.
60465
60466 2005-05-10  Karl Berry  <karl@gnu.org>
60467
60468         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60469         (COPYING.DOC): remove.
60470
60471         * config/srclist-update: new FSF address.
60472
60473 2005-05-10  Derek Price  <derek@ximbiot.com>
60474
60475         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60476         possible.
60477
60478 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60479             Bruno Haible  <bruno@clisp.org>
60480
60481         * modules/inet_ntop: New file.
60482         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60483         inet_ntop.
60484
60485 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60486             Bruno Haible  <bruno@clisp.org>
60487
60488         * m4/inet_ntop.m4: New file.
60489
60490 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60491             Bruno Haible  <bruno@clisp.org>
60492
60493         * lib/inet_ntop.h: New file.
60494         * lib/inet_ntop.c: New file, from glibc with modifications.
60495
60496 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60497
60498         * modules/time_r (License): Change to LGPL.
60499         * modules/extensions (License): Change to LGPL.  Actually,
60500         the license is more permissive than that, but currently gnulib-tool
60501         doesn't know how to handle more-permissive licenses.
60502
60503         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60504         Problem reported by Dave Love.
60505
60506 2005-05-08  Jim Meyering  <jim@meyering.net>
60507
60508         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60509         blank.
60510
60511 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60512
60513         * modules/argmatch (Depends-on): Add stdbool.
60514         * modules/backupfile (Depends-on): Likewise.
60515         * modules/chdir-long (Depends-on): Likewise.
60516         * modules/closeout (Depends-on): Likewise.
60517         * modules/cycle-check (Depends-on): Likewise.
60518         * modules/dirname (Depends-on): Likewise.
60519         * modules/fnmatch (Depends-on): Likewise.
60520         * modules/fsusage (Depends-on): Likewise.
60521         * modules/fwriteerror (Depends-on): Likewise.
60522         * modules/getcwd (Depends-on): Likewise.
60523         * modules/getloadavg (Depends-on): Likewise.
60524         * modules/hard-locale (Depends-on): Likewise.
60525         * modules/makepath (Depends-on): Likewise.
60526         * modules/mountlist (Depends-on): Likewise.
60527         * modules/nanosleep (Depends-on): Likewise.
60528         * modules/posixtm (Depends-on): Likewise.
60529         * modules/quotearg (Depends-on): Likewise.
60530         * modules/readtokens (Depends-on): Likewise.
60531         * modules/readtokens0 (Depends-on): Likewise.
60532         * modules/readutmp (Depends-on): Likewise.
60533         * modules/save-cwd (Depends-on): Likewise.
60534         * modules/strftime (Depends-on): Likewise.
60535         * modules/userspec (Depends-on): Likewise.
60536         * modules/utimecmp (Depends-on): Likewise.
60537         * modules/xgetcwd (Depends-on): Likewise.
60538         * modules/xnanosleep (Depends-on): Likewise.
60539         * modules/xstrtod (Depends-on): Likewise.
60540         * modules/yesno (Depends-on): Likewise.
60541
60542 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60545         needless checks.
60546
60547 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60548
60549         Merge from coreutils.  Among other things,
60550         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60551         * lib/fd-safer.c: New file.
60552         * lib/fcntl-safer.h, open-safer.c: Remove.
60553         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60554         * lib/dup-safer.c: Include unistd-safer.h first.
60555         Don't include errno.h.
60556         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60557         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60558         * lib/file-type.c: Rely on file-type.h change.
60559         * lib/getloadavg.c: Include unistd-safer.h.
60560         (getloadavg): Use safer open.
60561         * lib/getusershell.c: Include "stdio-safer.h".
60562         (getusershell): Use safer fopen.
60563         * lib/long-options.c (long_options): Use NULL rather than 0.
60564         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60565         'free'.
60566         * lib/modechange.c: Likewise.
60567         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60568         (MODE_DONE): New constant.
60569         (struct mode_change): Remove 'next' member.
60570         (make_node_op_equals): New function; like the old one of the
60571         same name, except it allocates an array.
60572         (mode_compile, mode_create_from_ref): Use it.
60573         (mode_compile): Allocate result as an array, not a linked list.
60574         Parse octal string ourself, so that we catch mistakes like "+0".
60575         (mode_adjust): Arg is an array, not a linked list.
60576         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60577         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60578         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60579         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60580         Remove.  This is now stat-macros.h's job.
60581         (talloc): Remove.  All callers replaced by xalloc, so that
60582         our invokers don't have to worry about reporting memory failures.
60583         (make_node_op_equals): Remove.
60584         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60585         New constants.
60586         (struct mode_change): Moved here from modechange.h.
60587         (mode_append_entry): Remove.
60588         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60589         apps to have incorrect behavior.  Use simpler algorithm for head
60590         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60591         Detect more invalid usages rather than having somewhat-random behavior.
60592         Don't insert an "a=" action, as that leads to incorrect behavior.
60593         (mode_compile, mode_create_from_ref): Return NULL on error instead
60594         of an enum, since now there's only one way to have an error.  All
60595         callers changed.
60596         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60597         at the correct time.  Simplify calculation of "+u" and its ilk.
60598         Don't mishandle "+X".
60599         (mode_free): Remove "register" and localize decls.
60600         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60601         (struct mode_change): Move to modechange.c; callers don't
60602         need to see this stuff.
60603         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60604         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60605         (mode_change, mode_adjust): Reflect the new signatures noted above.
60606         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60607         that might redefine system include files.
60608         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60609         (my_usleep): Use NULL rather than (void *) 0.
60610         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60611         Use siginterrupt to specify that system calls should be interrupted.
60612         (rpl_nanosleep): Move initialization of suspended closer to call of
60613         my_usleep.
60614         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60615         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60616         (desirable_utmp_entry): New function.
60617         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60618         using x2nrealloc, to simplify logic.
60619         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60620         size calculation.  Do not assume utmp file is a regular file.
60621         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60622         (READ_UTMP_CHECK_PIDS): New constant.
60623         * lib/save-cwd.c: Include unistd-safer.h.
60624         (save_cwd): Use fd_safer.
60625         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60626         [!_LIBC] Include "stat-macros.h" instead.
60627         * lib/unistd-safer.h (fd_safer): New decl.
60628
60629 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60630
60631         * modules/getloadavg (Depends-on): Add unistd-safer.
60632         * modules/getusershell (Depends-on): Add stdio-safer.
60633         * modules/lstat (Depends-on): Remove xalloc.
60634         * modules/mkstemp (Depends-on): Add stat-macros.
60635         * modules/modechange (Depends-on): Remove xstrtol.
60636         Add stat-macros, xalloc.
60637         * modules/save-cwd (Depends-on): Add unistd-safer.
60638         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60639         * modules/unistd-safer (Files): Add lib/fd-safer.c
60640         (Makefile.am): Remove lib_SOURCES.
60641
60642         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60643         Remove fcntl-safer; unistd-safer supersedes it.
60644
60645 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60648         AC_HEADER_STAT.
60649         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60650         (gl_PREREQ_CHOWN): Remove.
60651         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60652         it.  Don't require AC_HEADER_STAT.
60653         (gl_PREREQ_LSTAT): Remove.
60654         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60655         Don't require AC_HEADER_STAT.
60656         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60657         (gl_PREREQ_RMDIR): Remove.
60658         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60659         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60660         the stat-macros module a prerequisite.
60661         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60662         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60663         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60664         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60665         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60666         variable names.
60667         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60668         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60669         variable prefixes.
60670         * m4/fcntl-safer.m4: Remove.
60671         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60672         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60673         Invoke gl_PREREQ_FD_SAFER.
60674         (gl_PREREQ_FD_SAFER): New macro.
60675         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
60676         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
60677         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
60678         Remove duplicate call to AC_LIBOBJ(readutmp).
60679         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
60680
60681         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
60682         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
60683
60684 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60685
60686         * MODULES.html.sh (Misc): Add byteswap.
60687
60688 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60689
60690         * modules/getcwd (Depends-on): Add extensions.
60691         * modules/openat (Depends-on): Likewise.
60692
60693 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60694
60695         * modules/byteswap: New file.
60696
60697 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60698
60699         * m4/byteswap.m4: New file.
60700
60701 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60702
60703         * lib/byteswap_.h: New file.
60704
60705 2005-04-25  Karl Berry  <karl@gnu.org>
60706
60707         * m4/gettext.m4: Update from GNU gettext 0.14.4.
60708
60709 2005-04-25  Albert Chin  <china@thewrittenword.com>
60710
60711         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
60712         Toolkit C bug.
60713
60714 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
60715
60716         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
60717         (func_ln_if_changed) Remove forcibly for no error message
60718         in case file does not exist.
60719
60720 2005-04-19  Simon Josefsson  <jas@extundo.com>
60721
60722         * gnulib-tool (Options): Make --symlink mean --symbolic.
60723
60724 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
60725
60726         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
60727
60728 2005-04-16  Simon Josefsson  <jas@extundo.com>
60729
60730         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
60731
60732 2005-04-15  Simon Josefsson  <jas@extundo.com>
60733
60734         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
60735
60736 2005-04-15  Simon Josefsson  <jas@extundo.com>
60737
60738         * gnulib-tool: Rename --symlink to --symbolic.
60739
60740 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
60741
60742         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
60743         symbolic links to files instead of copying/moving.  Add --aux-dir,
60744         specifying directory relative --dir where auxiliary build tools
60745         are placed.
60746
60747 2005-04-14  Bruno Haible  <bruno@clisp.org>
60748
60749         * modules/allocsa (License): Change to LGPL.
60750         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
60751
60752 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60753
60754         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
60755         that "UTC +1 second" continues to work.  Problem reported
60756         by Dmitry V. Levin.
60757         (relunit_snumber): New rule.
60758         (relunit): Use it.
60759
60760 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60761
60762         * lib/getdate.y (universal_time_zone_table): New constant.
60763         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
60764         universal_time_zone_table.
60765         (lookup_zone): Prefer universal_time_zone_table to
60766         local_time_zone_table, so that "GMT" time stamps are allowed in
60767         London during the summer.  Problem reported by Ian Abbott.
60768
60769 2005-04-12  Jim Meyering  <jim@meyering.net>
60770
60771         * lib/human.c (humblock): Set *options even when returning due to
60772         xstrtoumax conversion failure.  Thanks to a used-uninitialized
60773         warning from gcc-4.
60774
60775 2005-04-09  Jim Meyering  <jim@meyering.net>
60776
60777         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
60778         -Wuninitialized: initialize tm0.tm_year.
60779
60780 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
60783         count, since there's no maximum.  All uses changed.
60784         Add member dsts_seen.
60785         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
60786         not being INT_MAX.
60787         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
60788         Use pc_rels_seen to decide whther a date is absolute.
60789
60790         * lib/getdate.y (number): Don't overwrite year.
60791         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
60792         check.
60793
60794 2005-04-02  Simon Josefsson  <jas@extundo.com>
60795
60796         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
60797         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
60798
60799 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
60800
60801         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
60802         where no absolute path name can be longer than PATH_MAX.
60803
60804 2005-03-27  Jim Meyering  <jim@meyering.net>
60805
60806         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
60807
60808 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
60809
60810         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
60811         "one's complement" -> "ones' complement" in comment, as per Knuth.
60812         "value of type" -> "type or expression" in comment.
60813         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
60814
60815 2005-03-26  Jim Meyering  <jim@meyering.net>
60816
60817         Comment nits.
60818         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
60819         Correct typos: s/or/of/.
60820
60821 2005-03-26  Jim Meyering  <jim@meyering.net>
60822
60823         * modules/check-include-files: Move to ../ and rename to...
60824         * check-module: ...this.
60825
60826 2005-03-25  Jim Meyering  <jim@meyering.net>
60827
60828         * modules/xvasprintf (Files): Add xalloc.h.
60829
60830 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60831
60832         * modules/gettext (Files): config/config.rpath ->
60833         build-aux/config.rpath
60834         * modules/iconv (Files): Likewise.
60835         Problem reported by Oskar Liljeblad.
60836
60837 2005-03-23  Jim Meyering  <jim@meyering.net>
60838
60839         * modules/check-include-files: New script to check for
60840         missing dependencies, multiple includes, etc.
60841
60842         * modules/c-strtold (Depends-on): Add xalloc.
60843         * modules/c-strtod (Depends-on): Add xalloc.
60844         * modules/hash (Depends-on): Add xalloc.
60845         (Files): Remove lib/xalloc.h.
60846
60847         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60848         * modules/userspec (Files): Add lib/inttostr.h.
60849
60850 2005-03-23  Jim Meyering  <jim@meyering.net>
60851
60852         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60853
60854 2005-03-22  Jim Meyering  <jim@meyering.net>
60855
60856         * modules/stat-macros: New module.
60857         * modules/canonicalize, modules/euidaccess, modules/file-type,
60858         * modules/filemode, modules/lchown, modules/makepath,
60859         * modules/rmdir, modules/stat: Depend on new stat-macros module
60860         rather than listing lib/stat-macros.h manually.
60861         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60862
60863 2005-03-22  Jim Meyering  <jim@meyering.net>
60864
60865         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60866
60867 2005-03-22  Bruno Haible  <bruno@clisp.org>
60868
60869         * config/srclist.txt: Replace target directory 'config' with
60870         'build-aux'.
60871         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60872         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60873         ../build-aux/.
60874
60875 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60876
60877         * modules/chdir-long (Depends-on): Add mempcpy.
60878
60879         * modules/acl, modules/backupfile, modules/c-strtod,
60880         modules/c-strtold, modules/canon-host, modules/canonicalize,
60881         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60882         modules/exclude, modules/exitfail, modules/file-type,
60883         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60884         modules/getdate, modules/getline, modules/getpagesize,
60885         modules/getpass, modules/getugroups, modules/group-member,
60886         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60887         modules/inttostr, modules/long-options, modules/makepath,
60888         modules/md5, modules/memcasecmp, modules/memcoll,
60889         modules/modechange, modules/mountlist, modules/path-concat,
60890         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60891         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60892         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60893         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60894         modules/strftime, modules/strndup, modules/strverscmp,
60895         modules/timespec, modules/unlocked-io, modules/userspec,
60896         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60897         modules/yesno:
60898         Remove lib_SOURCES line from Makefile.am section, as this is now
60899         done automatically by the corresponding Autoconf macro.
60900
60901 2005-03-21  Jim Meyering  <jim@meyering.net>
60902
60903         Changes imported from coreutils.
60904
60905         * lib/cycle-check.c: Don't include xalloc.h.
60906
60907         * lib/path-concat.c: Don't include assert.h.
60908         (path_concat): Remove assertion that would have triggered
60909         for ABASE starting with more than one slash.
60910         Reported by Andreas Schwab.
60911
60912         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60913         properly when ABASE is an absolute file name.
60914         Correct the description of this function.
60915         Include <assert.h>.
60916         Add an assertion and a test driver.
60917         This fixes a bug introduced on 2004-07-02.
60918         Andreas Schwab reported the resulting failure of cp --parents:
60919         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60920
60921 2005-03-21  Jim Meyering  <jim@meyering.net>
60922
60923         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60924         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60925
60926 2005-03-21  Jim Meyering  <jim@meyering.net>
60927         and  Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60930         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60931         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60932         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60933         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60934         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60935         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60936         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60937         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60938         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60939         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60940         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60941         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60942         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60943         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60944         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60945         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60946         for these modules.
60947
60948 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60951         (which shouldn't happen), generate nothing instead of returning 0
60952         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60953
60954 2005-03-16  Bruno Haible  <bruno@clisp.org>
60955
60956         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60957         HAVE_LONGLONG_64BIT.
60958
60959 2005-03-16  Bruno Haible  <bruno@clisp.org>
60960
60961         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60962         HAVE_LONGLONG_64BIT.
60963
60964 2005-03-16  Bruno Haible  <bruno@clisp.org>
60965
60966         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60967         HAVE_LONGLONG_64BIT.
60968
60969 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60972         reliably distinguish strftime failure from empty output on POSIX
60973         hosts.
60974
60975 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60978         (iconv_string): Don't guess a size-zero buffer, as that might cause
60979         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60980         result would be 'too large', where 'too large' is (heuristically)
60981         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60982         overflow concerns.  This will prevent some unwanted malloc failures
60983         when the inputs are very large.
60984
60985 2005-03-15  Karl Berry  <karl@gnu.org>
60986
60987         * config/srclist.txt (config.rpath): from gettext.
60988         * config/config.rpath: update.
60989
60990 2005-03-15  Bruno Haible  <bruno@clisp.org>
60991
60992         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60993         to 'negate'.
60994
60995         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60996         variable.
60997
60998         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60999         results.
61000
61001 2005-03-14  Simon Josefsson  <jas@extundo.com>
61002
61003         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
61004         <fx@gnu.org>.
61005
61006 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
61009         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
61010         intprops.h.
61011         * lib/strtol.c: Likewise.
61012
61013 2005-03-14  Jim Meyering  <jim@meyering.net>
61014
61015         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
61016         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
61017         to be nonzero so that we (and caller) can detect the difference
61018         between a valid zero-length expansion and an error return, even
61019         when the underlying strftime fails before writing anything into
61020         that location.
61021
61022 2005-03-14  Bruno Haible  <bruno@clisp.org>
61023
61024         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
61025         Update from GNU gettext 0.14.3.
61026
61027 2005-03-10  Jim Meyering  <jim@meyering.net>
61028
61029         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
61030
61031 2005-03-10  Jim Meyering  <jim@meyering.net>
61032
61033         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
61034         so that this module works on systems without fchdir.
61035
61036 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         Factor int-properties macros into a single file, except for
61039         glibc-related files.
61040         * lib/intprops.h: New file.
61041         * lib/getloadavg.c: Include it instead of limits.h.
61042         (INT_STRLEN_BOUND): Remove.
61043         * lib/human.c: Include intprops.h.
61044         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
61045         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
61046         302/1000.
61047         * lib/inttostr.h: Include intprops.h instead of limits.h.
61048         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
61049         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
61050         for consistency with intprops.h.
61051         (time_t_is_integer, twos_complement_arithmetic): Use them.
61052         * lib/sig2str.h: Include <signal.h>, intprops.h.
61053         (INT_STRLEN_BOUND): Remove.
61054         * lib/strftime.c (TYPE_SIGNED): Remove.
61055         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
61056         * lib/strtol.c: Adjust comments to match intprops.h.
61057         * lib/userspec.c: Include intprops.h.
61058         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
61059         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
61060         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
61061         instead of rolling our own expressions.
61062         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
61063
61064         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
61065         instead of int.
61066         (my_strftime): Do not mishandle years close to INT_MAX, by doing
61067         the right thing even if adding 1900 would overflow.  Similarly
61068         for tm_mon + 1 and tm_yday + 1.
61069         Make %Y always equivalent to %C%y, and similarly for %G and %g.
61070         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
61071         (DO_SIGNED_NUMBER): New macro.
61072         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
61073
61074 2005-03-07  Bruno Haible  <bruno@clisp.org>
61075
61076         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
61077
61078 2005-03-07  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
61081
61082 2005-03-04  Derek R. Price  <derek@ximbiot.com>
61083
61084         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
61085         (func_import): Only replace files via --import when they have actually
61086         changed.
61087
61088 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61089
61090         * m4/mmap-anon.m4: New file.
61091         * m4/pagealign_alloc.m4: New file.
61092
61093 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61094             Bruno Haible  <bruno@clisp.org>
61095
61096         * modules/pagealign_alloc: New file.
61097         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
61098
61099 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61100             Bruno Haible  <bruno@clisp.org>
61101
61102         * lib/pagealign_alloc.h: New file.
61103         * lib/pagealign_alloc.c: New file.
61104
61105 2005-03-03  Bruno Haible  <bruno@clisp.org>
61106
61107         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
61108         Use an all-permissive copyright notice, recommended by RMS.
61109
61110 2005-03-02  Bruno Haible  <bruno@clisp.org>
61111
61112         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
61113         of AIX, the replacement has to be done only after <string.h> is
61114         included, therefore not in config.h. stpncpy.h does the replacement,
61115         and stpncpy.c uses it.
61116
61117 2005-03-02  Bruno Haible  <bruno@clisp.org>
61118
61119         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
61120         stpncpy.c uses it.
61121
61122 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
61125         The workaround isn't strictly needed for POSIX conformance, and
61126         it's too much of a pain to configure and maintain.  We'll ask
61127         people to fix their kernels instead.
61128         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
61129         (NANOSLEEP_BUG_WORKAROUND): Remove.
61130         (xnanosleep): Remove the workaround.
61131
61132 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61133
61134         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
61135         Reported by Derek Price.
61136         (Include): Add "timespec.h".
61137
61138         * modules/xnanosleep (Depends-on): Remove gethrxtime.
61139
61140 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61141
61142         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
61143         to detect nanosleep bug.
61144
61145 2005-03-01  Bruno Haible  <bruno@clisp.org>
61146
61147         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
61148
61149 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         * modules/gethrxtime: New file.
61152         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
61153         (Depends-on): Add gethrxtime.
61154         (configure.ac): Add gl_XNANOSLEEP.
61155         (Makefile.am): Remove lib_SOURCES line.
61156
61157 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61158
61159         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
61160         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
61161
61162 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
61165         * lib/timespec.h (gettime): Return void, since it always
61166         succeeds now.  All uses changed.
61167         * lib/gettime.c (gettime) Likewise.
61168         [HAVE_NANOTIME]: Prefer nanotime.
61169         Assume gettimeofday succeeds, as POSIX requires.
61170         Assime time () succeeds, since other code already does.
61171         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
61172         (timespec_subtract): Remove.
61173         (NANOSLEEP_BUG_WORKAROUND): New constant.
61174         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
61175         things considerably.  Use it only on GNU/Linux hosts, since the
61176         workaround shouldn't be needed elsewhere.
61177
61178 2005-02-24  Bruno Haible  <bruno@clisp.org>
61179
61180         * modules/gettext (Files): Add m4/glibc2.m4.
61181
61182 2005-02-24  Bruno Haible  <bruno@clisp.org>
61183
61184         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
61185         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
61186         * m4/progtest.m4:
61187         Update from GNU gettext 0.14.2.
61188         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
61189
61190 2005-02-24  Bruno Haible  <bruno@clisp.org>
61191
61192         * lib/localcharset.c: Update from GNU gettext 0.14.2.
61193         * lib/config.charset: Update from GNU gettext 0.14.2.
61194
61195 2005-02-24  Bruno Haible  <bruno@clisp.org>
61196
61197         * lib/gettext.h: Update from GNU gettext 0.14.2.
61198
61199 2005-02-23  Simon Josefsson  <jas@extundo.com>
61200
61201         * m4/iconvme.m4: New file.
61202
61203 2005-02-23  Jim Meyering  <jim@meyering.net>
61204
61205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
61206         change.
61207         Thanks to Bruno Haible for catching it.
61208
61209 2005-02-22  Simon Josefsson  <jas@extundo.com>
61210
61211         * modules/iconvme: New file.
61212
61213         * MODULES.html.sh: Add iconvme.
61214
61215 2005-02-22  Simon Josefsson  <jas@extundo.com>
61216
61217         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
61218
61219 2005-02-22  Simon Josefsson  <jas@extundo.com>
61220
61221         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
61222
61223 2005-02-22  Jim Meyering  <jim@meyering.net>
61224
61225         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
61226         s/ifndef/ifdef/.
61227
61228 2005-02-20  Neil Conway  <neilc@samurai.com>
61229
61230         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
61231         returned by OSX/Darwin if the specified buffer is not large
61232         enough for the hostname.
61233
61234 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61235
61236         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
61237         pass it to _help, otherwise the latter coredumps trying to
61238         dereference state.root_argp.
61239
61240 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61241
61242         * modules/chdir-long (Depends-on): Add memrchr.
61243         * modules/memrchr (Files): Add lib/memrchr.h.
61244         (Include): "memrchr.h".
61245
61246 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61247
61248         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
61249
61250 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * lib/memrchr.h: New file.
61253         * lib/chdir-long.c: Include it.
61254         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
61255         Don't bother including stddef.h.
61256
61257 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61258
61259         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
61260         inclusion.
61261         Include <sys/types.h>, for dev_t.
61262         (ME_DUMMY, ME_REMOTE): Move from here....
61263         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
61264         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
61265         Dmitry V. Levin.
61266         Include mountlist.h first, to test the interface.
61267
61268 2005-01-29  Bruno Haible  <bruno@clisp.org>
61269
61270         * lib/progname.c (program_name): Initialize.
61271         Needed when linking statically on MacOS X.
61272
61273 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         Sync from coreutils.
61276         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
61277         (Depends-on): Add c-strtod.
61278         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
61279
61280 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61281
61282         Sync from coreutils.
61283         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
61284
61285         Remove files that are specific to coreutils.
61286         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
61287
61288 2005-01-28  Bruno Haible  <bruno@clisp.org>
61289
61290         * modules/javacomp: New file.
61291         * MODULES.html.sh (Java): Add javacomp.
61292
61293 2005-01-28  Bruno Haible  <bruno@clisp.org>
61294
61295         * m4/javacomp.m4: New file, from GNU gettext.
61296
61297 2005-01-28  Bruno Haible  <bruno@clisp.org>
61298
61299         * lib/javacomp.sh.in: New file, from GNU gettext.
61300         * lib/javacomp.h: New file, from GNU gettext.
61301         * lib/javacomp.c: New file, from GNU gettext.
61302
61303 2005-01-26  Simon Josefsson  <jas@extundo.com>
61304
61305         * lib/gai_strerror.c: Use GPL in header.
61306
61307 2005-01-26  Bruno Haible  <bruno@clisp.org>
61308
61309         * modules/javaexec: New file.
61310         * MODULES.html.sh (Java): Add javaexec.
61311
61312 2005-01-26  Bruno Haible  <bruno@clisp.org>
61313
61314         * m4/javaexec.m4: New file, from GNU gettext.
61315
61316 2005-01-26  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/javaexec.sh.in: New file, from GNU gettext.
61319         * lib/javaexec.h: New file, from GNU gettext.
61320         * lib/javaexec.c: New file, from GNU gettext.
61321
61322 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61323
61324         * modules/lchown (Depends-on): Remove lchown.h
61325
61326 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61327
61328         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
61329         must be defined if the header file was not found, in order
61330         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
61331
61332 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61333
61334         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
61335         initializers for struct pentry_state.
61336         (__argp_error): Check return value of __asprintf
61337         (__argp_failure): Translate error message
61338
61339         * lib/argp-parse.c: Removed braces around the expansion of N_()
61340
61341 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61342
61343         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
61344         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
61345         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
61346         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
61347         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
61348         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
61349         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
61350         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
61351         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
61352         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
61353         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
61354         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
61355         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
61356         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
61357         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
61358         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
61359         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
61360         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
61361         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
61362         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
61363         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
61364         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
61365         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
61366         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
61367         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
61368         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
61369         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
61370         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
61371         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
61372         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
61373         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
61374         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
61375         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
61376         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
61377         xstrtol.m4, xstrtoumax.m4, yesno.m4:
61378         Use an all-permissive copyright notice, recommended by RMS.
61379
61380 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61381
61382         * modules/chdir-long (Depends-on): Remove mempcpy.
61383
61384 2005-01-21  Jim Meyering  <jim@meyering.net>
61385
61386         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
61387         same value as for Solaris 9.
61388
61389         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
61390         component length.  This included changing the parameter to be
61391         of type `char *' rather than `char const *'.
61392         * lib/chdir-long.h (chdir_long): Update prototype.
61393
61394         * lib/openat.c (fdopendir, fstatat): New functions.
61395         * lib/openat.h: Include headers required for use of DIR and struct
61396         stat.
61397         [AT_SYMLINK_NOFOLLOW]: Define.
61398         (fdopendir, fstatat): Add prototypes.
61399
61400 2005-01-21  Bruno Haible  <bruno@clisp.org>
61401
61402         * modules/classpath: New file.
61403         * MODULES.html.sh (Java): Add classpath.
61404
61405 2005-01-21  Bruno Haible  <bruno@clisp.org>
61406
61407         * lib/classpath.h: New file, from GNU gettext.
61408         * lib/classpath.c: New file, from GNU gettext.
61409
61410 2005-01-20  Simon Josefsson  <jas@extundo.com>
61411
61412         * modules/version-etc-fsf: New file.
61413
61414 2005-01-20  Simon Josefsson  <jas@extundo.com>
61415
61416         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61417         * lib/version-etc.c: Remove version_etc_copyright.
61418         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61419         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61420
61421 2005-01-20  Simon Josefsson  <jas@extundo.com>
61422
61423         * lib/base64.h (isbase64): Add.
61424
61425         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61426         using a unsigned prototype, don't inline.
61427         (base64_decode): Use it.
61428
61429 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61430
61431         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61432         it.
61433
61434 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61435
61436         * lib/save-cwd.c (save_cwd): Remove code to support the case
61437         where fchdir is missing or flaky.
61438
61439 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61440
61441         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61442
61443 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61446         AC_LIBSOURCES now does this.
61447         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61448         with new ullong_max module.
61449
61450 2005-01-19  Bruno Haible  <bruno@clisp.org>
61451
61452         * modules/sh-quote: New file.
61453         * MODULES.html.sh (Executing programs): Add sh-quote.
61454
61455 2005-01-19  Bruno Haible  <bruno@clisp.org>
61456
61457         * lib/sh-quote.h: New file, from GNU gettext.
61458         * lib/sh-quote.c: New file, from GNU gettext.
61459
61460 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61461
61462         Merge from coreutils.
61463         * m4/ullong_max.m4: New file.
61464         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61465         (gl_MACROS): Assume localeconv exists.
61466
61467 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         Merge changes from coreutils, as described below in several
61470         changelogs dated today.
61471
61472         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61473         (O_DIRECTORY): Remove; not needed here, since "." must be
61474         a directory.  All uses removed.
61475         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61476         universal on Suns, and we also need to test for IRIX.
61477         Revamp code to use 'if' rather than '#if'.
61478         Avoid unnecessary comparison of cwd->desc to 0.
61479
61480         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61481         for known valid error numbers rather than observed invalid ones.
61482
61483 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61484
61485         * modules/ullong_max: New file.
61486
61487         * modules/chdir-long, modules/openat: New files.
61488         * modules/save-cwd (Depends-on): Depend on chdir-long.
61489         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61490
61491 2005-01-18  Jim Meyering  <jim@meyering.net>
61492
61493         Merge from coreutils.
61494         * m4/chdir-long.m4, m4/openat.m4: New files.
61495         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61496         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61497         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61498         is sane and DOES follow symlinks.  Besides, testing 20 different
61499         systems found no broken chown implementations.
61500         Prompted by a change in rsync's copy of this macro.
61501         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61502
61503         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61504
61505         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61506         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61507         NULL-means-set-to-current-time semantics.
61508         Remove temporary file immediately, rather than waiting
61509         for configure's at-exit trap code to do it.
61510
61511 2005-01-18  Jim Meyering  <jim@meyering.net>
61512
61513         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61514
61515         * lib/utimens.c (futimens): Account for the fact that futimes
61516         can also fail with errno == ENOSYS or errno == ENOENT.
61517         Patch from Dmitry V. Levin.
61518
61519         Change the name of the robust chdir function from chdir to chdir_long.
61520         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61521         (restore_cwd): Use chdir_long, not chdir.
61522         * lib/chdir-long.c: Renamed from chdir.c.
61523         * lib/chdir-long.h: Renamed from chdir.h.
61524         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61525         Hurd.
61526
61527 2005-01-18  Bruno Haible  <bruno@clisp.org>
61528
61529         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61530         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61531         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61532         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61533         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61534         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61535         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61536         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61537         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61538         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61539         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61540         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61541         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61542         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61543         Use an all-permissive copyright notice, recommended by RMS.
61544
61545 2005-01-18  Bob Proulx  <bob@proulx.com>
61546
61547         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61548         simplify offsetof() macro construct to avoid compile failure with
61549         native HP-UX 11.0 ANSI C compiler.
61550
61551 2005-01-17  Bruno Haible  <bruno@clisp.org>
61552
61553         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61554         redundant because stpncpy.m4 takes care of it.
61555
61556 2005-01-17  Bruno Haible  <bruno@clisp.org>
61557
61558         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61559
61560 2005-01-17  Bruno Haible  <bruno@clisp.org>
61561
61562         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61563         used.
61564
61565 2005-01-17  Bruno Haible  <bruno@clisp.org>
61566
61567         * lib/fwriteerror.h (fwriteerror): Change specification to include
61568         fclose.
61569         * lib/fwriteerror.c: Include <stdbool.h>.
61570         (fwriteerror): At the end, close the file stream. Record whether
61571         stdout was already closed.
61572
61573 2005-01-17  Bruno Haible  <bruno@clisp.org>
61574
61575         * lib/execute.c (environ): Declare if needed.
61576         * lib/pipe.c (environ): Likewise.
61577         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61578
61579 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61580
61581         * modules/argp: Depend on vsnprintf
61582
61583 2005-01-10  Jim Meyering  <jim@meyering.net>
61584
61585         * modules/closeout (Depends-on): Add atexit.
61586
61587 2005-01-06  Bruno Haible  <bruno@clisp.org>
61588
61589         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61590
61591 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61594         definitions to be after all include files, to avoid collisions.
61595         Problem reported by Bob Proulx.
61596
61597 2005-01-04  Jim Meyering  <jim@meyering.net>
61598
61599         Changes imported from coreutils.
61600         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61601         as the mkstemp template, use a temporary directory and an
61602         8.3-friendly template to avoid trouble on systems like DJGPP.
61603         Reported by Juan M. Guerrero via Stepan Kasal.
61604         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61605         close. Remove the temporary directory right away, rather than waiting
61606         for configure's at-exit trap code to do it.
61607         Suggestion from Stepan Kasal.
61608
61609 2005-01-01  Simon Josefsson  <jas@extundo.com>
61610
61611         * gnulib-tool: Print #include directives when --import'ing.
61612
61613 2004-12-28  Simon Josefsson  <jas@extundo.com>
61614
61615         * tests/test-base64.c: Include required header files.  Remove
61616         unused variables.
61617
61618 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61619
61620         * modules/error (Depends-on): Remove gettext.
61621
61622 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61623
61624         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61625         not needed.  This removes a dependency on the gettext module.
61626         [defined _LIBC]: Do not include <libintl.h>; not needed.
61627
61628 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61629
61630         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61631         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61632
61633 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61636         HAVE_DECL_STRTOLD.
61637
61638 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61639
61640         * modules/getdate (Depends-on): Remove alloca-opt.
61641
61642 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61645
61646 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         * lib/argp-parse.c: Include <stddef.h>.
61649         (alignof, alignto): New macros.
61650         (parser_init): Don't assume that void * is aligned sufficiently
61651         for struct option.
61652
61653         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61654         need to extend the stack.
61655         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61656         large.
61657
61658 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61659
61660         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61661
61662 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61663
61664         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61665         (2004-10-24) change.  Apparently this was a false alarm.
61666
61667         * modules/getdate: Depend on alloca-opt, not alloca.
61668
61669 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61670
61671         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61672         Remove now-obsolete comment about AIX.
61673         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
61674         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
61675         (YYMAXDEPTH): New macro.
61676
61677 2004-12-18  Simon Josefsson  <jas@extundo.com>
61678
61679         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
61680
61681 2004-12-18  Bruno Haible  <bruno@clisp.org>
61682
61683         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
61684
61685 2004-12-18  Bruno Haible  <bruno@clisp.org>
61686
61687         * lib/fatal-signal.c (fatal_signals): Make non-const.
61688         (init_fatal_signals): New function.
61689         (uninstall_handlers, install_handlers): Ignore signals that were set to
61690         SIG_IGN.
61691         (at_fatal_signal): Call init_fatal_signals.
61692         (init_fatal_signal_set): Likewise. Ignore signals that were set to
61693         SIG_IGN.
61694         Reported by Paul Eggert.
61695
61696 2004-12-18  Bruno Haible  <bruno@clisp.org>
61697
61698         * doc/alloca.texi: New file.
61699         * doc/alloca-opt.texi: New file.
61700
61701 2004-12-17  Jim Meyering  <jim@meyering.net>
61702
61703         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
61704         Otherwise, install-sh could exit with improper exit status when
61705         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
61706
61707 2004-12-16  Simon Josefsson  <jas@extundo.com>
61708
61709         * tests/test-base64.c: Add license.
61710
61711 2004-12-15  Stepan Kasal  <address@hidden>
61712
61713         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
61714
61715 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
61716
61717         * modules/getcwd (Files): Add m4/d-ino.m4.
61718         Suggested by Mark D. Baushke.
61719
61720 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61721
61722         * lib/getdate.y (textint): New member "negative".
61723         (time_zone_hhmm): New function.
61724         Expect 14 shift-reduce conflicts, not 13.
61725         (o_colon_minutes): New rule.
61726         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
61727         (yylex): Set the "negative" member of signed numbers.
61728
61729 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         * doc/getdate.texi (Time of day items, Time zone items):
61732         Describe new formats +00:00, UTC+00:00.
61733
61734 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61735
61736         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
61737         spurious "-l"s.  Problem reported by Stepan Kasal.
61738
61739 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
61740
61741         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
61742         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
61743
61744 2004-12-04  Simon Josefsson  <jas@extundo.com>
61745
61746         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
61747         Vandoorselaere <yoann@prelude-ids.org>.
61748
61749 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61750
61751         Changes imported from coreutils.
61752         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
61753         exist.
61754         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
61755
61756 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         Changes imported from coreutils.
61759         * lib/hard-locale.c: Assume <locale.h> exists.
61760         Include "strdup.h".
61761         (GLIBC_VERSION): New macro.
61762         (hard_locale): Assume setlocale exists.
61763         Rewrite to avoid #ifdef.
61764         Use strdup rather than malloc + strcpy.
61765         * lib/human.c: Assume <locale.h> exists.
61766         (human_readable): Assume localeconv exists.
61767
61768 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61769
61770         * modules/hard-locale (Depends-on): Add strdup.
61771
61772 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61773
61774         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
61775         convert T2, not T.  (Imported from libc.)
61776
61777 2004-11-30  Simon Josefsson  <jas@extundo.com>
61778
61779         * modules/restrict (License): Change to LGPL.
61780
61781 2004-11-30  Simon Josefsson  <jas@extundo.com>
61782
61783         * m4/restrict.m4: Add copyright and copying conditions.
61784
61785 2004-11-30  Simon Josefsson  <jas@extundo.com>
61786
61787         * m4/base64.m4: New file.
61788
61789 2004-11-30  Simon Josefsson  <jas@extundo.com>
61790
61791         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
61792         base64.
61793
61794         * tests/test-base64.c: New file.
61795
61796         * modules/base64: New file.
61797
61798 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61799
61800         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
61801         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
61802
61803         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
61804
61805 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
61808         (__getcwd.c): Don't restore errno; glibc doesn't.
61809         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
61810         first, falling back to our code only if its results look suspicious.
61811         Ensure that the resulting buffer is only as large as necessary.
61812
61813         * lib/readutmp.c: Include readutmp.h first.
61814         Include <errno.h>, since readutmp.h no longer does that.
61815         * lib/readutmp.h: Don't include <errno.h>,
61816         <sys/param.h>, <time.h>; not needed to establish interface.
61817         (errno): Remove decl.
61818         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
61819         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
61820         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
61821
61822 2004-11-28  Simon Josefsson  <jas@extundo.com>
61823
61824         * lib/base64.h, base64.c: New file.
61825
61826 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61827
61828         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
61829
61830 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61831
61832         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
61833         (Depends-on): Remove pathmax, same.  Add mempcpy.
61834         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
61835         (Makefile.am): Append getcwd.h to lib_SOURCES.
61836         (Include): Add getcwd.h.
61837         (Maintainer): Change from Jim Meyering to "all, glibc",
61838         since getdate now uses intended-for-glibc code.
61839         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61840         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61841
61842 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61843
61844         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61845         HP's ANSI C compiler.
61846         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61847         Declaring int functions causes warnings on some modern systems and
61848         shouldn't be needed to compile on ancient ones.
61849         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61850         defined.
61851
61852         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61853         with the following changes.
61854         (__set_errno): Parenthesize properly.
61855         Include <stdbool.h>.
61856         (MIN, MAX, MATCHING_INO): New macros.
61857         (__getcwd): Define with prototype, not K&R form.
61858         Use heuristics to allocate default buffer on stack if possible.
61859         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61860         behavior, and to avoid the PATH_MAX limit when computing
61861         ../../../../...
61862         Use MATCHING_INO to compare inode number to file.
61863         Check for arithmetic overflow in size calculations.
61864         Fix bug in reallocation of dot array that caused getcwd to fail
61865         on directories nested deeper than 75.
61866         Be more careful about saving errno on error.
61867         Do not use realloc; use only free+malloc, as this is a bit
61868         more flexible and avoids a needless copy operation.
61869         Do not inspect st_dev and st_ino for symbolic links; POSIX
61870         doesn't specify the latter.
61871         Check for closedir errors.
61872         Avoid needless casts.
61873         Use "#ifdef weak_alias" around weak_alias, to be like other
61874         glibc code.
61875         The following changes to getcwd.c have effect only when used in
61876         gnulib; they have no effect inside glibc proper.
61877         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61878         as alloca isn't used.
61879         (alloca, __alloca): Likewise.
61880         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61881         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61882         unconditionally, as gnulib assumes C89 or better.
61883         Do not include <sys/param.h>.
61884         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61885         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61886         better.
61887         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61888         Include <dirent.h> in a way that is compatible with modern Autoconf.
61889         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61890         New macros, if not already defined.
61891         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61892         Use "_LIBC", not "defined _LIBC", for consistency.
61893         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61894         a mempcpy module.
61895         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61896         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61897         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61898         credit only to Jim Meyering and adjust the copyright dates.
61899         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61900         <stdlib.h>, <unistd.h>, "pathmax.h".
61901         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61902         (INITIAL_BUFFER_SIZE): Remove.
61903         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61904
61905 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61906
61907         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61908         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61909         Use the _ONCE methods, for efficiency.
61910         Check for fcntl.h.  In test program, include <errno.h>
61911         and <fcntl.h> if available.  Remove old K&R cruft from
61912         test program.  Check for common errors in GNU/Linux,
61913         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61914         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61915         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61916         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61917         name accordingly.
61918         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61919         accommodate new getcwd.c.
61920         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61921         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61922         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61923         that's all we need now.
61924
61925 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61926
61927         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61928         argp-parse.c depends on getopt internals, that means we should
61929         always use our getopt, to be on the safe side.
61930         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61931         order not to spoil the result of an eventual previous invocation
61932         of gl_GETOPT_SUBSTITUTE.
61933
61934 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61935
61936         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61937         redefinition warnings. To avoid them, include the defines
61938         in `#if !defined __need_getopt ... #endif'. The only place
61939         where __getopt_argv_const is used is in definitions
61940         of getopt_long and getopt_long_only below, which are as well
61941         protected by `#ifndef __need_getopt'.
61942         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61943         __need_getopt after including <stdio.h> and <unistd.h> These
61944         headers might have defined it.
61945
61946 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61947
61948         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61949
61950 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61951
61952         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61953         (futimens): New function, which uses futimes if available.
61954         (futimens, utimens): Support timespec==NULL, with same semantics
61955         as utime and utimens.
61956         * lib/utimens.h (futimens): New decl.
61957
61958 2004-11-23  Jim Meyering  <jim@meyering.net>
61959
61960         * lib/getopt_.h: Remove trailing blanks.
61961
61962 2004-11-23  Jim Meyering  <jim@meyering.net>
61963
61964         * lib/__fpending.c: Add comment.
61965
61966 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * modules/canonicalize (Depends-on): Add xreadlink.
61969         Problem reported by James Youngman.
61970
61971 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61972
61973         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61974         New macros.
61975         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61976         optopt): Use them instead of invoking ## directly; otherwise, the
61977         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61978
61979 2004-11-19  Bruno Haible  <bruno@clisp.org>
61980
61981         * lib/strtok_r.c: Move comments from here...
61982         * lib/strtok_r.h: ... to here.
61983
61984 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61985
61986         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61987         implementations that mishandle size_t overflow.
61988
61989 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61990
61991         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61992         might fail.  Problem reported by Yoann Vandoorselaere.
61993         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61994         implementations that mishandle size_t overflow.
61995
61996 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61997
61998         * modules/canon-host (Depends-on): Add strdup.
61999
62000 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
62003
62004 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * lib/canon-host.c: Include "strdup.h".
62007         (canon_host): Use getaddrinfo if available, so that IPv6 works.
62008         Use strdup instead of malloc/strcpy to duplicate strings.
62009
62010         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
62011         (human_space_before_unit): New constant.
62012         * lib/human.c (human_readable): Support it.
62013
62014         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
62015         (xgetcwd): Set errno correctly when failing.
62016         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
62017         the failure is actually due to a PATH_MAX problem.
62018
62019         Further getopt changes to make it more likely that glibc will
62020         buy the changes back.
62021         * lib/getopt.c (POSIXLY_CORRECT): New constant.
62022         (getopt): Use it, so to preserve glibc semantic
62023         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
62024         when compiling for libc.
62025         * lib/getopt_.h (__getopt_argv_const): Bring it back.
62026         (getopt_long, getopt_long_only): Use it.
62027
62028         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62029         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
62030         (getopt): Argv is now char * const *, as per standard.
62031         (_getopt_internal_r, _getopt_internal): Argv is now char **,
62032         not char *__getopt_argv_const *.
62033         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62034         _getopt_long_only_r): Likewise.
62035         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
62036         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62037         _getopt_long_r, _getopt_long_only_r): Likewise.
62038         * lib/getopt_.h (__getopt_argv_const): Remove.
62039         (getopt): Argv is now char * const *, as per standard.
62040
62041         * lib/getdate.y (tORDINAL): New token.
62042         (day, relunit): Allow it for relative times.
62043         (relative_time_table): Use tORDINAL for ordinals.
62044
62045 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62046
62047         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
62048         Document that "second" isn't allowed as an ordinal number.
62049
62050 2004-11-16  Jim Meyering  <jim@meyering.net>
62051
62052         * modules/closeout (Depends-on): Add fpending.
62053
62054 2004-11-15  Jim Meyering  <jim@meyering.net>
62055
62056         * lib/closeout.c: Include "__fpending.h" once again.
62057         Include <stdbool.h>.
62058         (close_stdout): Don't fail just because stdout was closed initially,
62059         since some programs don't write to stdout in the normal course of
62060         operation (other than --version and --help), and we don't want this
62061         function to make e.g. `touch file >&-' fail.
62062         But do fail if it was closed and someone has tried to write to it.
62063         E.g., `printf foo >&-' must fail.
62064
62065 2004-11-13  Jim Meyering  <jim@meyering.net>
62066
62067         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
62068
62069 2004-11-12  Simon Josefsson  <jas@extundo.com>
62070
62071         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
62072         small doc fix is still pending.
62073
62074 2004-11-11  Simon Josefsson  <jas@extundo.com>
62075
62076         * modules/strtok_r: New file.
62077
62078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62079         strtok_r.
62080
62081 2004-11-11  Simon Josefsson  <jas@extundo.com>
62082
62083         * m4/strtok_r.m4: New file.
62084
62085         * m4/getopt.m4: Replace opterr.
62086
62087 2004-11-11  Simon Josefsson  <jas@extundo.com>
62088
62089         * lib/strtok_r.h, strtok_r.c: New file.
62090
62091 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
62094         of replacing opterr, getopt, etc.  This should handle the
62095         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
62096
62097 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
62100         we can stop lying to compilers about the constness of argv when we
62101         are compiled outside glibc.
62102         (getopt, getopt_long, getopt_long_only): Use it.
62103         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62104         _getopt_internal, getopt): Likewise.
62105         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62106         _getopt_long_only_r): Likewise.
62107         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62108         _getopt_long_r, _getopt_long_only_r): Likewise.
62109
62110         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
62111         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
62112         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
62113         the other external symbols.
62114         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
62115         declaration, since the above renaming now works around collisions.
62116
62117 2004-11-11  Jim Meyering  <jim@meyering.net>
62118
62119         * lib/linebreak.c: Remove trailing blanks.
62120         * lib/alloca_.h: Likewise.
62121         * lib/acosl.c: Likewise.
62122         * lib/euidaccess.c: Likewise.
62123         * lib/allocsa.h: Likewise.
62124
62125 2004-11-10  Simon Josefsson  <jas@extundo.com>
62126
62127         * m4/getaddrinfo.m4: New file.
62128
62129 2004-11-10  Simon Josefsson  <jas@extundo.com>
62130
62131         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
62132
62133 2004-11-10  Simon Josefsson  <jas@extundo.com>
62134
62135         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62136         getaddrinfo.
62137
62138         * modules/getaddrinfo: New file.
62139
62140 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
62143
62144 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         * lib/mktime.c (SHR): New macro, which is a portable
62147         substitute for >> that should work even on Crays.
62148         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
62149         Problem reported by Mark D. Baushke in
62150         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
62151         * lib/getdate.y (SHR): Likewise.
62152         (tm_diff): Use it.
62153         * lib/strftime.c (SHR): Likewise.
62154         (tm_diff): Use it.
62155         * lib/quotearg.c (struct quoting_options): Use unsigned int for
62156         quote_these_too, so that right shifts are well defined.  All uses
62157         changed.
62158
62159 2004-11-10  Jim Meyering  <jim@meyering.net>
62160
62161         Ensure that no close failure goes unreported.
62162         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
62163         return early when it seems there's nothing to flush.
62164         Don't include __fpending.h.
62165
62166 2004-11-10  Jim Meyering  <jim@meyering.net>
62167
62168         * modules/closeout (Depends-on): Remove fpending.
62169
62170 2004-11-10  Jim Meyering  <jim@meyering.net>
62171
62172         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
62173
62174 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
62177         gl_FUNC_STRFTIME.
62178         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
62179         and AC_REQUIRE when possible, to avoid duplicate checks.
62180         Check for <wchar.h>.
62181
62182 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62183
62184         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
62185
62186 2004-11-09  Bruno Haible  <bruno@clisp.org>
62187
62188         * m4/sockpfaf.m4: New file.
62189
62190 2004-11-05  Bruno Haible  <bruno@clisp.org>
62191
62192         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
62193         Reported by Mark D. Baushke <mdb@cvshome.org>.
62194
62195 2004-11-04  Bruno Haible  <bruno@clisp.org>
62196
62197         2004-09-11  Bruno Haible  <bruno@clisp.org>
62198                 * allocsa.valgrind: New file.
62199         2004-02-06  Bruno Haible  <bruno@clisp.org>
62200                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
62201                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
62202                 Reported by Christopher Seip <chris.seip@hp.com>.
62203
62204 2004-11-04  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/allocsa (Files): Add lib/allocsa.valgrind.
62207         (Makefile.am): Distribute it.
62208
62209 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62210
62211         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
62212         with errno == ERANGE if the buffer is too small.
62213         Problem reported by Mark D. Baushke.
62214
62215 2004-11-03  Albert Chin  <china@thewrittenword.com>
62216             Paul Eggert  <eggert@cs.ucla.edu>
62217
62218         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
62219         equivalent, substitute $ac_type for equivalent type rather than
62220         blindly using uint32_t *always* which won't work if uint32_t is not
62221         available.  Define _UINT32_T to work around typedef of uint32_t if
62222         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
62223         2.5.1.
62224
62225 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62226
62227         * m4/jm-macros.m4: Sync from coreutils.
62228         (gl_MACROS): Check for mbrlen, for pathchk.
62229         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
62230
62231 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62232
62233         * lib/xreadlink.c (MAXSIZE): New macro.
62234         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
62235         size does not exceed MAXSIZE.  Avoid cast.
62236         As suggested by Mark D. Baushke in
62237         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
62238         if readlink fails with buffer size just under MAXSIZE, try again
62239         with MAXSIZE.
62240
62241 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62242
62243         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
62244
62245 2004-11-02  Derek R. Price  <derek@ximbiot.com>
62246         and  Paul Eggert  <eggert@cs.ucla.edu>
62247
62248         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
62249         (get_date): Overparenthesize to avoid GCC warning.
62250
62251 2004-11-02  Bruno Haible  <bruno@clisp.org>
62252
62253         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
62254         returns void.
62255
62256 2004-11-02  Bruno Haible  <bruno@clisp.org>
62257
62258         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
62259         function returns void.
62260
62261 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62262
62263         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
62264         fflush_unlocked, flockfile, funlockfile, funlockfile,
62265         fputs_unlocked, putc_unlocked.
62266
62267 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62268
62269         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62270         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
62271         already declared.
62272
62273 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         * modules/getdate (Files): Add doc/getdate.texi.
62276         (Depends-on): Add setenv, xalloc.
62277
62278 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62279
62280         * lib/getdate.y: Add support for TZ="foo" within a date string.
62281         Fix some bugs near time_t boundaries.  Reject dates with
62282         out-of-range components, e.g., "Sept 31".
62283         Include <stdlib.h>, "setenv.h", "xalloc.h".
62284         (ISDIGIT_LOCALE): Remove; unused.
62285         Note that the TZ and time functions used here are not reentrant.
62286         (mktime_ok, get_tz): New functions.
62287         (TZBUFSIZE): New constant.
62288         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
62289         This requires that we sometimes generate our own TZ="XXX..." setting.
62290
62291 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62292
62293         * doc/getdate.texi: New file, from coreutils with modifications for
62294         the new TZ parsing.
62295
62296 2004-10-27  Derek R. Price  <derek@ximbiot.com>
62297
62298         * lib/mktime.c (not_equal_tm): Remove redundant check.
62299
62300 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62301
62302         * modules/regex (lib_SOURCES): Add regex.c.
62303         Reported by James Youngman in
62304         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
62305
62306 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         * lib/getdate.y: Use Bison 1.875 features, and some minor
62309         code cleanups.  This change does not affect semantics.
62310         Don't include <stdlib.h>; no longer needed.
62311         Don't include unlocked-io.h; only the "#if TEST" code uses
62312         stdio, and performance isn't crucial there.
62313         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
62314         Bison 1.875 features as described below.
62315         All uses of "PC." replaced by "pc->".
62316         (YYSTYPE): Add a forward declaration.
62317         (yylex, yyerror): Use full prototypes in forward decls.
62318         Use "%pure-parser" rather than obsolescent "%pure_parser".
62319         Use %parse-param and %lex-param instead of obsolescent
62320         YYPARSE_PARAM and YYLEX_PARAM.
62321         (meridian_table, month_and_day_table, time_units_table,
62322         relative_time_table, time_zone_table, military_table,
62323         lookup_zone, lookup_word, get_date):
62324         Use NULL instead of 0 where appropriate.
62325         (to_hour): Avoid abort (), to avoid a dependency on
62326         stdlib.h.
62327         (yyerror, yylex): Now accepts parser_control * arg.
62328         (main) [TEST]: Use '\0' rather than 0 for char.
62329
62330 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62331
62332         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
62333
62334 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62335
62336         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
62337         It's now the caller's responsibility to handle the case where
62338         !HAVE_GETPAGESIZE && !defined getpagesize.
62339
62340         * lib/mktime.c (leapyear): Arg is long int, not int.
62341
62342 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
62345
62346 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62347
62348         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
62349         missing.  Problem reported by James Youngman.
62350
62351 2004-10-16  Simon Josefsson  <jas@extundo.com>
62352
62353         * gnulib-tool: Fix comments.  Fix parse problem.
62354         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
62355
62356 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
62357
62358         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
62359         implementation of getopt_long.  Problem reported by Alexander Taler in:
62360         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
62361
62362 2004-10-15  Bruno Haible  <bruno@clisp.org>
62363
62364         * gnulib-tool: Untabify. Initialize supplied_libname.
62365         (func_usage): More homogenous output.
62366         (func_modules_transitive_closure, func_modules_to_filelist,
62367         func_emit_lib_Makefile_am): New functions.
62368         (func_import): New function, extracted from big case statement. Use
62369         func_get_license, func_modules_transitive_closure,
62370         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
62371         opt_lgpl. Don't use test -a, as it's not portable.
62372         (func_create_testdir): Use func_modules_transitive_closure,
62373         func_modules_to_filelist, func_emit_lib_Makefile_am.
62374
62375 2004-10-15  Bruno Haible  <bruno@clisp.org>
62376
62377         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
62378
62379 2004-10-15  Bruno Haible  <bruno@clisp.org>
62380
62381         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
62382         the portions belonging to each module.
62383         Suggested by Derek Robert Price <derek@ximbiot.com>.
62384
62385 2004-10-12  Simon Josefsson  <jas@extundo.com>
62386
62387         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62388         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
62389         to real functions.
62390
62391 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62392
62393         * modules/vsnprintf: New file.
62394
62395 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62396
62397         * m4/vsnprintf.m4: New file.
62398
62399 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62400
62401         * lib/vsnprintf.h: New file.
62402         * lib/vsnprintf.c: New file.
62403
62404 2004-10-11  Bruno Haible  <bruno@clisp.org>
62405
62406         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62407         vsnprintf.
62408
62409 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62410
62411         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62412
62413 2004-10-07  Bruno Haible  <bruno@clisp.org>
62414
62415         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62416         fits into the provided buffer.
62417
62418 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         * lib/diacrit.c, diacrit.h: Add GPL notice.
62421
62422         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62423         notice.
62424         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62425         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62426         This avoids a potential constant-folding bug.
62427
62428 2004-10-05  Bruno Haible  <bruno@clisp.org>
62429
62430         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62431         for the declaration of strsep.
62432
62433 2004-10-05  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62436
62437 2004-10-04  Simon Josefsson  <jas@extundo.com>
62438
62439         * modules/memmem: New file.
62440         * tests/test-memmem.c: New file.
62441         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62442
62443 2004-10-04  Simon Josefsson  <jas@extundo.com>
62444
62445         * m4/memmem.m4: New file.
62446
62447 2004-10-04  Simon Josefsson  <jas@extundo.com>
62448
62449         * lib/memmem.h: New file.
62450         * lib/memmem.c: New file, taken from glibc.
62451
62452 2004-10-04  Simon Josefsson  <jas@extundo.com>
62453
62454         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62455         '#ifdef USE_UNLOCKED_IO'.
62456
62457 2004-10-04  Simon Josefsson  <jas@extundo.com>
62458
62459         * config/srclist.txt: Add memmem from glibc.
62460
62461 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62462
62463         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62464
62465         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62466         modules/exclude, modules/getdate, modules/getline,
62467         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62468         modules/getusershell, modules/linebuffer, modules/md5,
62469         modules/mountlist, modules/posixtm, modules/readtokens,
62470         modules/readutmp, modules/regex, modules/sha1,
62471         modules/version-etc, modules/yesno:
62472         Remove dependency on unlocked-io.
62473
62474 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62475
62476         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62477
62478         * m4/unlocked-io.m4: Add copyright notice.
62479         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62480
62481 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62482
62483         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62484         * lib/xmalloc.c (xmemdup): Likewise.
62485         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62486         XFREE): Remove these long-obsolescent macros.
62487         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62488         * lib/xstrdup.c: Remove.
62489
62490         * lib/regex.c (re_comp): Cast gettext return value to char *,
62491         Problem reported by Martin Neitzel via Mark D. Baushke.
62492
62493 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62494
62495         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62496         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62497         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62498         regex.c, sha1.c, version-etc.c, yesno.c:
62499         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62500         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62501         the includer's responsibility.
62502
62503         Sync from coreutils.
62504
62505         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62506         points to the start of a string, as the C Standard says the
62507         resulting behavior is undefined.
62508
62509         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62510         simple -> simple_backups, numbered_existing ->
62511         numbered_existing_backups, numbered -> numbered_backups
62512         to avoid shadowing problems.  All uses changed.
62513         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62514         * lib/backupfile.c (check_extension, numbered_backup):
62515         Rename locals to avoid shadowing 'basename'.
62516         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62517         once.
62518
62519         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62520         * lib/.cvsignore: Add getopt.h.
62521
62522 2004-10-04  Bruno Haible  <bruno@clisp.org>
62523
62524         * modules/README: New file.
62525         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62526         not a module.
62527
62528 2004-10-02  Jim Meyering  <jim@meyering.net>
62529
62530         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62531
62532 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62533
62534         * modules/strsep: New file.
62535
62536 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62537
62538         * m4/strsep.m4: New file.
62539
62540 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62541
62542         * lib/strsep.h: New file.
62543         * lib/strsep.c: New file.
62544
62545 2004-10-01  Simon Josefsson  <jas@extundo.com>
62546
62547         * lib/snprintf.c (snprintf): Handle size==0.
62548
62549 2004-10-01  Simon Josefsson  <jas@extundo.com>
62550             Bruno Haible  <bruno@clisp.org>
62551
62552         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62553         (snprintf): Declare 'args'.
62554
62555 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         * lib/snprintf.c: Remove comments as to why each header is needed.
62558
62559 2004-10-01  Bruno Haible  <bruno@clisp.org>
62560
62561         * MODULES.html.sh: Add strsep.
62562
62563 2004-09-30  Simon Josefsson  <jas@extundo.com>
62564
62565         * modules/snprintf: New file.
62566
62567 2004-09-30  Simon Josefsson  <jas@extundo.com>
62568
62569         * m4/snprintf.m4: New file.
62570
62571 2004-09-30  Simon Josefsson  <jas@extundo.com>
62572
62573         * lib/snprintf.h, lib/snprintf.c: New files.
62574
62575 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62576
62577         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62578         (hol_entry_help): Never translate an empty string.
62579         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62580         * lib/argp.h (OPTION_NO_TRANS): New option.
62581
62582 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         * modules/argp (Maintainer): Replace Simon Josefsson
62585         by Sergey Poznyakoff.
62586
62587 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62588
62589         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62590         changes merged back into glibc.
62591
62592 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62595
62596 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62597
62598         * lib/xvasprintf.c: Include xalloc.h.
62599         (xvasprintf): Use xalloc_die, not xmalloc_die.
62600
62601 2004-09-29  Bruno Haible  <bruno@clisp.org>
62602
62603         * modules/alloca-opt: New file, derived from modules/alloca.
62604         * modules/allocsa: Depend on alloca-opt instead of alloca.
62605         * modules/setenv: Likewise.
62606         * modules/vasnprintf: Likewise.
62607         * MODULES.html.sh: Add alloca-opt.
62608
62609 2004-09-28  Simon Josefsson  <jas@extundo.com>
62610
62611         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62612         LGPL, and to replace license template from GPL to LGPL.
62613
62614 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * modules/dummy: Change license to LGPL.
62617
62618 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62621
62622 2004-09-24  Simon Josefsson  <jas@extundo.com>
62623
62624         * modules/minmax (License): Change from GPL to LGPL.
62625
62626 2004-09-23  Simon Josefsson  <jas@extundo.com>
62627
62628         * gnulib-tool (--import): Typo.
62629
62630 2004-09-23  Simon Josefsson  <jas@extundo.com>
62631
62632         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62633
62634 2004-09-22  Bruno Haible  <bruno@clisp.org>
62635
62636         * modules/*: Add 'License' field.
62637         * gnulib-tool: Accept --extract-license option.
62638         (func_get_license): New function.
62639
62640 2004-09-21  Bruno Haible  <bruno@clisp.org>
62641
62642         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62643         Reported by Simon Josefsson.
62644
62645 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62646
62647         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62648         gl_AC_TYPE_LONG_LONG.
62649
62650 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62651
62652         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62653
62654 2004-09-18  Simon Josefsson  <jas@extundo.com>
62655         and  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62658         calls with autoreconf.  Define GL_LIB.
62659
62660 2004-09-14  Karl Berry  <karl@gnu.org>
62661
62662         * config/srclist.txt: unsync setenv.c, sigh.
62663
62664 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62665
62666         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62667         Problem reported by Bruno Haible in:
62668         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62669
62670 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62671
62672         * config/srclist.txt: Comment out argp-pvh.c.
62673
62674 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
62675
62676         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
62677         in case some system header has #define'd it.  Problem reported by
62678         Soeren D. Schulze in
62679         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
62680
62681 2004-09-09  Karl Berry  <karl@gnu.org>
62682
62683         * regex.[ch]: delete from the root.  These were supposed to be
62684                 synced with emacs cvs, but this has not happened for about
62685                 a year, and anyway nothing else uses emacs regex.[ch].
62686                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
62687                 lib/regex[.ch] is untouched.
62688
62689 2004-09-09  Bruno Haible  <bruno@clisp.org>
62690
62691         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
62692
62693 2004-09-09  Bruno Haible  <bruno@clisp.org>
62694
62695         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
62696         modifications.
62697         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
62698
62699 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62700
62701         * modules/xvasprintf: New file.
62702         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
62703
62704 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62705
62706         * lib/xvasprintf.h: New file.
62707         * lib/xvasprintf.c: New file.
62708         * lib/xasprintf.c: New file.
62709
62710 2004-09-08  Bruno Haible  <bruno@clisp.org>
62711
62712         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
62713
62714 2004-09-08  Bruno Haible  <bruno@clisp.org>
62715
62716         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
62717         length is > INT_MAX.
62718         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
62719         more.
62720
62721 2004-09-08  Bruno Haible  <bruno@clisp.org>
62722
62723         * lib/stdint_.h: New file, taken from GNU clisp.
62724
62725 2004-09-08  Bruno Haible  <bruno@clisp.org>
62726             Oskar Liljeblad  <oskar@osk.mine.nu>
62727
62728         * modules/stdint: New file.
62729         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
62730
62731 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62732
62733         Import from coreutils.
62734         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
62735         strings on unbounded length.  alloca's performance benefits aren't
62736         that important here.
62737         (V_STRDUP): Remove.
62738         (parse_with_separator): New function, with most of the internals
62739         of the old parse_user_spec.  Allow user to omit both user and group,
62740         for compatibility with FreeBSD.
62741         Clone only the user name, not the entire spec.
62742         Do not set *uid, *gid unless entirely successful.
62743         Avoid memory leak in some failing cases.
62744         Fix regression for USER.GROUP reported by Dmitry V. Levin in
62745         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
62746         (parse_user_spec): Rewrite to use parse_with_separator.
62747
62748 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62749
62750         * modules/userspec: Don't depend on alloca.
62751
62752 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
62755
62756 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62757
62758         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
62759         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
62760         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
62761
62762 2004-08-16  Simon Josefsson  <jas@extundo.com>
62763
62764         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
62765         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
62766         Add --dry-run for --import.
62767         Let user provided command line parameters override configure.ac
62768         settings.
62769
62770 2004-08-12  Simon Josefsson  <jas@extundo.com>
62771
62772         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
62773         as discussed with Paul Eggert in threads rooted at
62774         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
62775         and
62776         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
62777         Before, the test was empty, and relied on ELIDE_CODE in source
62778         code.)
62779         (gl_PREREQ_GETOPT): New macro.
62780         (gl_GETOPT): Use them.
62781
62782 2004-08-12  Simon Josefsson  <jas@extundo.com>
62783
62784         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
62785         * lib/getopt_.h: Renamed from getopt.h.
62786
62787 2004-08-12  Simon Josefsson  <jas@extundo.com>
62788
62789         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
62790         Change default library name from libfoo to libgnu.
62791         Now, if you have a configure.ac that says:
62792                 gl_SOURCE_BASE(gl)
62793                 gl_M4_BASE(gl/m4)
62794                 gl_MODULES(error getopt etcetera)
62795                 gl_INIT
62796         you can import all you need by running:
62797                 ../gnulib/gnulib-tool --import
62798
62799         * modules/getopt (Files): Rename getopt.h to getopt_.h.
62800         (Makefile.am): Rewrite, use logic from argz.
62801         (Include): Use <getopt.h> instead of "getopt.h".
62802
62803 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * modules/argp (Files): Add m4/unlocked-io.m4.
62806         (Depends-on): Add extensions.
62807
62808 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
62811         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
62812         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
62813         Check for program_invocation_name, program_invocation_short_name,
62814         flockfile, funlockfile, features.h, _getopt_long_only_r.
62815
62816 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62817
62818         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
62819         its complicated substitute.
62820         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
62821         and program_invocation_name.
62822         (__argp_basename) [!_LIBC]: Remove; the only use was
62823         replaced by its body.
62824         (__argp_short_program_name): Change condition from
62825         !defined __argp_short_program_name to
62826         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
62827         to match argp-namefrob.h.
62828         (__argp_failure): Don't assume strerror_r returns char *.
62829         * lib/argp-parse.c (N_): Define unconditionally.
62830         (argp_default_options): Fill out initializers with 0 to avoid
62831         gcc warnings.
62832
62833 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
62836         getopt1.c.
62837
62838 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         Merge from coreutils.
62841
62842         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62843
62844         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62845         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62846
62847 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62848
62849         Merge from coreutils.
62850
62851         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62852         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62853         for Reliant Unix 5.43.
62854
62855         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62856         (union fooround): Use uintmax_t, not long int.
62857         The rest is a merge from libc:
62858         [defined _LIBC]: Include <shlib-compat.h>.
62859         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62860
62861         * lib/settime.c (settime): Recode to avoid warning with
62862         Sun Forte C 6U2.
62863
62864         * lib/strverscmp.c: Convert to UTF-8.
62865
62866 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62867
62868         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62869         m4/uintmax_t.m4.
62870
62871 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62872
62873         * modules/xalloc-die: New file.
62874         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62875
62876         * modules/md5 (Files): Add m4/uint32_t.m4.
62877         * modules/sha1: Renamed from modules/sha.
62878         (Files):
62879         Rename lib/sha.h to lib/sha1.h.
62880         Rename lib/sha.c to lib/sha1.c.
62881         Rename m4/sha.m4 to m4/sha1.m4.
62882         (lib_SOURCES): Likewise.
62883         (configure.ac): Rename gl_SHA to gl_SHA1.
62884         (Include): sha.h -> sha1.h.
62885
62886 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62887
62888         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62889         * m4/sha1.m4: Renamed from sha.m4.
62890         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62891
62892 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62893
62894         * lib/obstack.h (obstack_empty_p):
62895         Don't assume that chunk->contents is suitably aligned.
62896         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62897         Likewise. Problem reported by Benno in
62898         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62899
62900         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62901         readable.  This could be improved further but it'd take some work.
62902
62903 2004-08-08  Simon Josefsson  <jas@extundo.com>
62904
62905         * modules/xgethostname (Depends-on): Remove exit and error (not
62906         used).
62907
62908         * modules/getpass-gnu: Add getpass.h.
62909         (Depends-on): Add stdbool.
62910         * modules/getpass: Add getpass.h.
62911
62912 2004-08-08  Simon Josefsson  <jas@extundo.com>
62913
62914         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62915         Check getpass declaration.
62916
62917 2004-08-08  Simon Josefsson  <jas@extundo.com>
62918
62919         * lib/xgethostname.c: Don't include error.h (not used).
62920
62921         * lib/getpass.h: Add.
62922         * lib/getpass.c: Include getpass.h first.
62923
62924 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62925
62926         * lib/xalloc-die.c: New file.
62927         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62928         All uses removed.
62929         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62930         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62931         xalloc-die.c.
62932         (_, N_, xalloc_die): Move to xalloc-die.c.
62933         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62934         so that we needn't mess with xalloc_msg_memory_exhausted.
62935
62936         * lib/sha1.h: Renamed from sha.h.
62937         (SHA1_H): Renamed from _SHA_H.
62938         (sha1_ctx): Renamed from sha_ctx.
62939         (sha1_init_ctx): Renamed from sha_init_ctx.
62940         (sha1_process_block): Renamed from sha_process_block.
62941         (sha1_process_bytes): Renamed from sha_process_bytes.
62942         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62943         (sha1_read_ctx): Renamed from sha_read_ctx.
62944         (sha1_stream): Renamed from sha_stream.
62945         (sha1_buffer): Renamed from sha_buffer.
62946         * lib/sha1.c: Likewise; renamed from sha.c.
62947         Do not include <sys/types.h>.
62948         Include <stddef.h> rather than <stdlib.h>.
62949
62950 2004-08-08  Bruno Haible  <bruno@clisp.org>
62951
62952         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62953         FILESYSTEM_PREFIX_LEN.
62954         * lib/progreloc.c: Likewise.
62955         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62956
62957 2004-08-06  Simon Josefsson  <jas@extundo.com>
62958
62959         * modules/progname (Depends-on): Don't depend on stdbool.
62960
62961 2004-08-06  Simon Josefsson  <jas@extundo.com>
62962
62963         * modules/getsubopt: New file.
62964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62965         getsubopt.
62966
62967 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62968
62969         More merge from coreutils.
62970
62971         * m4/utimens.m4, m4/utimecmp.m4: New files.
62972         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62973         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62974         prereq.m4, sha.m4: Import changes from coreutils.
62975
62976 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         More merge from coreutils.
62979         * modules/raise, modules/readtokens0, modules/utimens:
62980         * modules/utimecmp, module/xnanosleep: New files.
62981         * modules/strftime: Add lib/strftime.h.
62982         Change include from <time.h> to "strftime.h".
62983         * modules/yesno: Add lib/yesno.h.
62984         * modules/backupfile: Remove lib/addext.c.
62985         * modules/euidaccess: Add stat-macros.h.
62986         * modules/canonicalize, modules/euidaccess,
62987         modules/filemode, modules/lchown, modules/makepath,
62988         modules/rmdir, modules/stat: Likewise.
62989
62990 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62991
62992         Merge from tar.
62993         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62994         SIZE_MAX is a valid preprocessor constant.
62995         (__argp_basename): Change from "#ifndef _LIBC"
62996         to "#ifndef __argp_short_program_name", so that
62997         we don't compile these functions for tar.
62998
62999         More merges from coreutils.
63000         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
63001         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
63002         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
63003         * lib/addext.c: Remove; no longer needed.
63004         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
63005         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
63006         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
63007         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
63008         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
63009         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
63010         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
63011         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
63012         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
63013         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63014         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
63015         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
63016         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
63017         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
63018         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
63019         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
63020         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
63021         Import changes from coreutils.
63022
63023 2004-08-05  Simon Josefsson  <jas@extundo.com>
63024
63025         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
63026
63027 2004-08-05  Simon Josefsson  <jas@extundo.com>
63028
63029         * m4/getsubopt.m4: New file.
63030
63031 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63032
63033         Merge from coreutils.
63034
63035         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
63036         * m4/getcwd-path-max.m4: New files.
63037
63038         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
63039         FILESYSTEM_PREFIX_LEN ->
63040         FILE_SYSTEM_PREFIX_LEN.
63041         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
63042         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
63043         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
63044         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
63045
63046         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
63047         prerequisite modules now handle the DOS stuff.
63048         Don't check for unistd.h.
63049
63050 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         Merge from coreutils.
63053
63054         * lib/.gdb-history: Remove; this doesn't belong here.
63055
63056         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
63057         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
63058         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
63059         * lib/getcwd.c: New files.
63060
63061         * lib/dirname.h: Include <stdbool.h>.
63062         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
63063         for consistency with POSIX terminology.  All uses changed.
63064         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
63065         (strip_trailing_slashes): Use bool for booleans.
63066         * lib/stripslash.c (strip_trailing_slashes): Likewise.
63067
63068         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
63069         sometimes returns a positive errno value even when it succeeds.
63070         (print_errno_message) [!LIBC]: Fall back on strerror if
63071         __strerror_r fails.
63072
63073         * lib/path-concat.c (mempcpy): Don't define if a system header defines
63074         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
63075         (longest_relative_suffix): New function.
63076         (path_concat): Use it.  Assume first argument is not NULL.
63077         Port to DOS.  Omit redundant separators.
63078         Report an error instead of returning NULL.
63079         Use mempcpy instead of memcpy.
63080         (xpath_concat): Remove: not declared or used.
63081
63082         * lib/same.h: Include <stdbool.h>
63083         (same_name): Return bool, not int.
63084         * lib/same.c (same_name): Likewise.
63085         (errno): Don't declare; we assume C89 or better now.
63086
63087         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
63088         if not already defined.
63089
63090         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
63091         * lib/dup-safer.c (errno): Likewise.
63092
63093 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         Merge from coreutils.
63096         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
63097         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
63098         * modules/path-concat: Don't depend on strdup.
63099
63100 2004-08-03  Simon Josefsson  <jas@extundo.com>
63101
63102         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
63103         * lib/progname.h: Don't include stdbool.h.
63104
63105 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
63108         * MODULES.html.sh (func_all_modules): Remove fatal.
63109
63110 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
63113
63114 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63115
63116         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
63117         working.
63118
63119 2004-08-02  Simon Josefsson  <jas@extundo.com>
63120
63121         * lib/getsubopt.h: New file, with comments from Bruno Haible.
63122         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
63123         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
63124
63125 2004-08-01  Simon Josefsson  <jas@extundo.com>
63126
63127         * lib/xgetdomainname.c: Include stdlib.h, for free().
63128
63129 2004-07-19  Bruno Haible  <bruno@clisp.org>
63130
63131         * MODULES.html.sh (func_all_modules): Add dummy.
63132
63133 2004-07-16  Simon Josefsson  <jas@extundo.com>
63134
63135         * modules/dummy: New file.
63136
63137 2004-07-16  Simon Josefsson  <jas@extundo.com>
63138
63139         * lib/dummy.c: New file.
63140
63141 2004-07-16  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/backupfile.h: Add extern "C" for C++.
63144         * lib/closeout.h: Likewise.
63145         * lib/copy-file.h: Likewise.
63146         * lib/findprog.h: Likewise.
63147         * lib/full-write.h: Likewise.
63148         * lib/pathname.h: Likewise.
63149         * lib/progname.h: Likewise.
63150         * lib/stpcpy.h: Likewise.
63151         * lib/stpncpy.h: Likewise.
63152         * lib/strcase.h: Likewise.
63153         * lib/strstr.h: Likewise.
63154         * lib/xalloc.h: Likewise.
63155
63156         * lib/mbswidth.h: Add extern "C" for C++.
63157         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
63158
63159 2004-07-13  Robert Millan  <robertmh@gnu.org>
63160
63161         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
63162
63163 2004-07-09  Simon Josefsson  <jas@extundo.com>
63164
63165         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
63166         failed without this.)
63167
63168 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63169
63170         * modules/chown (Files): Add lib/fchown-stub.c, since
63171         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
63172
63173 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * lib/fchown-stub.c: New file.
63176
63177 2004-06-24  Jim Meyering  <jim@meyering.net>
63178
63179         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
63180
63181 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * modules/argz: Omit "#include".
63184
63185         * MODULES.html.sh (func_all_modules): Add calloc, to match
63186         2004-06-01 addition of calloc module.
63187
63188 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         * m4/argz.m4: New file, which is autoupdated from libtool.
63191
63192 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63193
63194         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
63195         libtool.
63196
63197 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * config/srclist-update: Don't insist on "USA." before the
63200         close-comment, as libtool omits the period and puts the */ on a
63201         separate line.
63202         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
63203         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
63204
63205 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
63206
63207         * modules/argz: New file.
63208         * MODULES.html.sh (func_all_modules): Add argz.
63209
63210 2004-06-12  Jim Meyering  <jim@meyering.net>
63211         and  Paul Eggert  <eggert@cs.ucla.edu>
63212
63213         * modules/hash (Files): Add lib/xalloc.h.
63214         * modules/pipe (Depends-on): Add wait-process.
63215         * modules/stat (Depends-on): Add xalloc.
63216         * modules/userspec (Files): Add lib/userspec.h.
63217         * modules/xstrto
63218
63219         Upgrade from gettext-0.13.
63220         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
63221         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
63222         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
63223
63224 2004-06-10  Jim Meyering  <jim@meyering.net>
63225
63226         * lib/calloc.c: New file.
63227
63228 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * lib/getdate.y (yylex): Allow space between sign and number.
63231         Problem reported by Dan Jacobson.
63232
63233 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63234
63235         Merge from coreutils CVS.
63236
63237         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
63238         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
63239         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
63240         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
63241         xstrtol.m4: Fix copyright date and/or serial number.
63242
63243         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
63244         See if we need an fchown replacement.
63245         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
63246         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
63247         and use the replacement function if we detect either defect.
63248
63249         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
63250         gl_UTIMECMP.
63251
63252 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63253         and  Jim Meyering  <jim@meyering.net>
63254
63255         Merge from coreutils CVS.
63256
63257         * lib/stat-macros.h: New file, with contents from file-type.h
63258         and coreutils' system.h.
63259         * lib/file-type.c: Include "stat-macros.h".
63260         * lib/file-type.h (file_type): Move all macro definitions to new file,
63261         stat-macros.h.
63262
63263         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
63264         Wrap old code with this conditional.
63265         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
63266         function that does not dereference symlinks.
63267         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
63268
63269         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
63270         dependency problems.
63271         (xreadlink): Accept new arg SIZE, for efficiency.
63272         All decls and uses changed.
63273         * lib/xreadlink.h: Include <stddef.h>, for size_t.
63274
63275         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
63276         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
63277
63278         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
63279         sysexits.h.
63280
63281 2004-06-01  Jim Meyering  <jim@meyering.net>
63282
63283         * m4/calloc.m4: New file.
63284
63285 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
63286
63287         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
63288         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
63289         Also, fix a typo in a diagnostic.
63290
63291 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
63294         or AC_FUNC_REALLOC.
63295
63296 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63297
63298         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
63299         macros to be defined.
63300         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
63301         the allocator returns NULL because the requested size is zero.
63302
63303 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63304
63305         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
63306         var.  Add comment explaining why libc still defines it.  This
63307         merges the following patch from glibc:
63308         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
63309
63310 2004-05-20  Andreas Schwab  <schwab@suse.de>
63311
63312         * m4/free.m4: Replace free if it not known to work, not the other
63313         way round.
63314
63315 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
63318         present in glibc since revision 1.1 of this file.
63319         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
63320         obstack_alignment_mask, obstack_alloc, obstack_base,
63321         obstack_blank, obstack_blank_fast, obstack_chunk_size,
63322         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
63323         obstack_grow0, obstack_init, obstack_int_grow,
63324         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
63325         obstack_next_free, obstack_object_size, obstack_ptr_grow,
63326         obstack_ptr_grow_fast, obstack_room): Remove declarations of
63327         nonexistent functions.
63328
63329 2004-05-18  Karl Berry  <karl@gnu.org>
63330
63331         * config/srclist.txt: break link for vasnprintf.c.
63332
63333 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63334
63335         Port obstack to the AS/400, where pointers are 16 bytes wide and
63336         you cannot cast an integer to a valid pointer.  This patch is
63337         currently waiting to be integrated into glibc; see
63338         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
63339
63340         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
63341         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
63342         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
63343         (struct obstack): temp member is now a union of a pointer and
63344         an integer, instead of an integer.  All integer uses changed.
63345         This does not affect the physical layout of struct obstack,
63346         except on hosts (like the AS/400) where the size or alignment of
63347         void * is greater than that of ptrdiff_t.
63348         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
63349         __STDC__)]: Store temporary in pointer member of union, not
63350         integer member.
63351         * lib/obstack.c: Include <stddef.h>, for offsetof.
63352         (struct fooalign): Remove; it doesn't need a name.
63353         (union fooround): Change double to long double, and add void *.
63354         (DEFAULT_ALIGNMENT): Use offsetof to compute.
63355         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
63356         not a macro.  Hence the values are always int; so remove all
63357         casts-to-int in uses.
63358
63359 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63360
63361         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
63362         we can get this patch merged into glibc.
63363
63364 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63365             Paul Eggert  <eggert@cs.ucla.edu>
63366
63367         * m4/argp: Depend on alloca.
63368
63369 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63370             Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
63373         freecoding.
63374
63375 2004-05-17  Bruno Haible  <bruno@clisp.org>
63376
63377         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
63378         precision that consists of a '.' followed by an empty digit string.
63379         Patch by Tor Lillqvist <tml@iki.fi>.
63380
63381 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
63384         for backward compatibility with older code.  We need our own
63385         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
63386         it under some other name, and our alloca.h will define it.
63387
63388 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63389             Derek Price  <derek@ximbiot.com>
63390
63391         * lib/alloca.c: Include <alloca.h>, to get our interface.
63392         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
63393         include <alloca.h> first.  Use C89 prototype for alloca; this
63394         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63395         Use #elif for simplicity, since we can assume C89 now.
63396         Don't try to source the system alloca.h since it will not be found
63397         and to prevent recursively including its replacement.
63398         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63399         * lib/regex.c: Likewise.
63400
63401 2004-05-16  Derek Price  <derek@ximbiot.com>
63402             Paul Eggert  <eggert@cs.ucla.edu>
63403
63404         getline cleanup.  This changes the getndelim2 API: both order of
63405         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63406         no delimiter).
63407
63408         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63409         interface does that.
63410         (getline): Always use getdelim, so that we don't have two
63411         copies of this code.
63412         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63413         if available.
63414         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63415         (GETNDELIM2_MAXIMUM): New macro.
63416         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63417         instead of the old practice of delim2==0.  All callers changed.
63418         Return -1 on overflow, instead of returning junk.
63419         Do not set *linesize unless allocation succeeds.
63420         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63421         that we include sys/types.h.
63422         * lib/getnline.h: Likewise.
63423         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63424         (getndelim2): Reorder arguments.
63425         * lib/getnline.c (getnline, getndelim):
63426         Don't discard the NMAX argument.
63427         (getnline): Invoke getndelim, to avoid code duplication.
63428         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63429         of (size_t) -1 by callers of the getnline family.
63430
63431 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63434         Check for gettimeofday.
63435         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63436         Check for settimeofday, stime.
63437
63438 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63439
63440         * lib/nanosleep.c (suspended): Change its type from int to
63441         sig_atomic_t volatile.
63442         (first_call): Make it private to rpl_nanosleep, and have it
63443         be zero initially as that's a bit faster.
63444         (my_usleep): Round up fractional times instead of truncating them,
63445         as this is the usual meaning for 'sleep'.
63446
63447         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63448         doesn't work.
63449         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63450         (ENOSYS): Define if not defined.
63451         (settime): Fall back on stime if it exists and settimeofday fails.
63452         But don't bother with fallbacks if a method fails with errno == EPERM.
63453
63454 2004-05-11  Jim Meyering  <jim@meyering.net>
63455
63456         Prior to this change, the save_cwd caller required read access to the
63457         current directory on most systems (ones with the fchdir function).
63458
63459         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63460         fails, try write-only, and finally, resort to using xgetcwd.
63461
63462 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63463
63464         * lib/obstack.c, obstack.h: Import changes from libc.
63465
63466 2004-04-28  Bruno Haible  <bruno@clisp.org>
63467
63468         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63469         also implicitly appends .exe to executables.
63470         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63471         accepts Windows pathnames.
63472         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63473         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63474         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63475         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63476         Reported by Derek Robert Price <derek@ximbiot.com>.
63477
63478 2004-04-21  Karl Berry  <karl@gnu.org>
63479
63480         * config/srclist.txt (localcharset.c): break sync.
63481
63482 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63483
63484         * m4/host-os.m4: Add a copyright notice.
63485
63486 2004-04-20  Jim Meyering  <jim@meyering.net>
63487
63488         Change UTILS_ to gl_ in AC_DEFINE'd names.
63489         Change utils_- and jm_-prefixed variables, too.
63490         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63491         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63492         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63493
63494         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63495         Don't emit trailing blanks.
63496         Also rename jm_-prefixed variables to have gl_ prefix.
63497
63498         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63499         Also rename jm_-prefixed variables to have gl_ prefix.
63500
63501         * m4/jm-macros.m4: Reflect the renamings.
63502         * m4/prereq.m4: Likewise.
63503
63504 2004-04-20  Jim Meyering  <jim@meyering.net>
63505
63506         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63507         memory.
63508
63509 2004-04-20  Jim Meyering  <jim@meyering.net>
63510             Bruno Haible  <bruno@clisp.org>
63511
63512         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63513         memory when realloc fails.
63514
63515 2004-04-19  Jim Meyering  <jim@meyering.net>
63516
63517         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63518         now that readutmp.c may call `free (0)'.
63519
63520 2004-04-19  Bruno Haible  <bruno@clisp.org>
63521
63522         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63523         * m4/inttypes_h.m4: Likewise.
63524         * m4/stdint_h.m4: Likewise.
63525         * m4/intmax_t.m4: Likewise.
63526         * m4/uintmax_t.m4: Likewise.
63527
63528 2004-04-18  Jim Meyering  <jim@meyering.net>
63529
63530         * m4/prereq.m4: Don't forbid jm_ prefix.
63531
63532         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63533         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63534         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63535         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63536         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63537         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63538         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63539         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63540         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63541         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63542         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63543         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63544         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63545         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63546         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63547         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63548         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63549         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63550         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63551
63552 2004-04-18  Jim Meyering  <jim@meyering.net>
63553
63554         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63555         failure, don't leak memory and do call END_UTMP_ENT.
63556
63557 2004-04-16  Jim Meyering  <jim@meyering.net>
63558
63559         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63560         coreutils' stat program.
63561         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63562
63563 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63564
63565         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63566         C89.
63567         (CHAR_BIT): Remove, since we assume C89.
63568         Include <stdint.h> if available, as per current Autoconf CVS advice.
63569
63570 2004-03-31  Jim Meyering  <jim@meyering.net>
63571
63572         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63573         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63574         * m4/xalloc.m4: Likewise.
63575
63576 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63577
63578         Merge from coreutils.
63579
63580         * m4/inttostr.m4: New file.
63581         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63582         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63583         Require gl_CLOCK_TIME.
63584         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63585
63586 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63587
63588         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63589         not bool, to be more consistent with Unix conventions.
63590         Suggested by Bruno Haible.
63591
63592         Merge from coreutils.
63593
63594         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63595         * lib/umaxtostr.c: New files.
63596
63597         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63598         the usual <time.h> dance.
63599         (get_date): Change signature to support fractional time stamps.
63600         All callers changed.
63601         * lib/getdate.y: Include "getdate.h" first, as we can now
63602         assume C89 and don't need to worry about 'const'.
63603         Similarly, include "unlocked-io.h" near start, not in middle.
63604         Include <limits.h>.
63605         (textint.value): Use long int rather than int.
63606         (textint.digits): Use size_t rather than int.
63607         (BILLION, LOG10_BILLION): New constants.
63608         (parser_control): New member rel_ns.  Members day_ordinal,
63609         time_zone, month, day, hour, minutes, rel_year, rel_month,
63610         rel_day, rel_hour, rel_minutes, rel_seconds
63611         are now long int, not int.  Member seconds is now struct timespec,
63612         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63613         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63614         not int.
63615         (%union.intval): Now long int, not int.
63616         New member timespec.
63617         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63618         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63619         (spec): Now is a timespec or an item list.
63620         (timespec, items): New nonterminals.
63621         (time, rel, relunit, number, get_date):
63622         Add support for fractional seconds.
63623         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63624         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63625         (to_hour): First arg is now long int, not int.
63626         (to_year): Returns long int, not int.
63627         Don't treat year -70 like 70.
63628         (tm_diff): Returns long int, not int.
63629         (lookup_word): Use bool instead of int when appropriate.
63630         (yylex): Use size_t for count, not int.
63631         Detect overflow when parsing large integer constants.
63632         Add support for fractions.
63633         (get_date): Make pointers 'const' if possible.
63634         Use more-portable code to detect integer overflow.
63635         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63636         Don't use ctime; it's not reliable if the year has >4 digits.
63637
63638         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63639         This is for compatibility with BSD.
63640
63641         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63642         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63643         From coreutils' system.h.
63644
63645         * lib/userspec.c: Don't include "posixver.h".
63646         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63647         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63648         compatible extension.  Simplify code by removing a boolean int
63649         that was always nonzero if a string was nonnull.
63650
63651 2004-03-30  Jim Meyering  <jim@meyering.net>
63652
63653         Merge from coreutils.
63654
63655         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63656         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63657         on some systems one must include <grp.h> before it.
63658         Reported by Christian Krackowizer.
63659
63660 2004-03-30  Jim Meyering  <jim@meyering.net>
63661
63662         Merge from coreutils.
63663
63664         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63665
63666         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63667         an empty input stream.
63668
63669         * lib/readtokens.c: Include <stdbool.h>.
63670         (readtoken): Use `size_t' rather than int/long.
63671         All callers adjusted.
63672         Use `bool' rather than `int' where appropriate.
63673         Use memset rather than an explicit loop.
63674         Use x2nrealloc rather than xrealloc.
63675         Allow the use of `\0' as a delimiter.
63676         (readtokens): Likewise.
63677         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
63678
63679 2004-03-30  Jim Meyering  <jim@meyering.net>
63680
63681         * m4/realloc.m4: Remove file, since now it does no more than
63682         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
63683         the `configure.ac' section of module/realloc.
63684         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
63685
63686 2004-03-30  Bruno Haible  <bruno@clisp.org>
63687
63688         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
63689         nonnull.
63690
63691 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63692
63693         Merge changes to getloadavg.c from coreutils and Emacs.
63694
63695         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
63696         Define to an expression, not to the empty string.
63697         Include cloexec.h and xalloc.h.
63698         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
63699         Use set_cloexec_flag rather than rolling our own.
63700         * lib/cloexec.c, lib/cloexec.h: New files.
63701
63702 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63703
63704         * m4/cloexec.m4: New file.
63705
63706 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63707
63708         * lib/getopt.h: Sync with libc CVS.
63709
63710 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63711             Bruno Haible  <bruno@clisp.org>
63712
63713         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
63714         mbswidth.
63715
63716 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63717             Bruno Haible  <bruno@clisp.org>
63718
63719         * lib/mbswidth.h: Include <wchar.h> only if
63720         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
63721         <wchar.h>.
63722         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
63723
63724 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63725
63726         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
63727         Sync with libc CVS.
63728         * lib/getopt_int.h: New file, also synced from libc.
63729
63730 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63731
63732         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
63733         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
63734         Bring back getopt.c, getopt.h, getopt1.c.
63735
63736 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63737
63738         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
63739         All uses changed.  Check for sa_sigaction member; this fixes
63740         a bug first reported by Jason Andrade in
63741         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63742
63743 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63744
63745         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
63746         '#if' expressions.  Unlike the code it replaces, it does not
63747         depend on (defined _SC_PAGESIZE).  However, it does depend on
63748         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
63749         first reported by Jason Andrade in
63750         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63751
63752 2004-02-25  Simon Josefsson  <jas@extundo.com>
63753
63754         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
63755
63756 2004-02-25  Simon Josefsson  <jas@extundo.com>
63757
63758         * lib/strdup.h: New file.
63759         * lib/strdup.c: Include it.
63760         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
63761         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
63762
63763 2004-02-23  Karl Berry  <karl@gnu.org>
63764
63765         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
63766         (from fencepost.gnu.org:/gd/gnuorg).
63767
63768 2004-02-23  Karl Berry  <karl@gnu.org>
63769
63770         * config/srclistvars.sh (GNUORG) [karl]: redefine.
63771         * config/srclist.txt: add maintain/standards documents.
63772
63773 2004-02-18  Bruno Haible  <bruno@clisp.org>
63774
63775         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
63776         Reported by Derek Robert Price <derek@ximbiot.com>.
63777
63778 2004-02-16  Karl Berry  <karl@gnu.org>
63779
63780         * config/mkinstalldirs, install-sh: update from automake.
63781
63782 2004-02-06  Karl Berry  <karl@gnu.org>
63783
63784         * m4/po.m4: update from gettext 0.14.1.
63785
63786 2004-02-06  Karl Berry  <karl@gnu.org>
63787
63788         * lib/config.charset: update from gettext 0.14.1.
63789
63790 2004-02-05  Paul Eggert  <eggert@twinsun.com>
63791
63792         Add comments and code, prompted by suggestions from Bruno Haible
63793         for sh-quote.
63794         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
63795         describing the enum quoting_style values.
63796         * lib/quotearg.c (quotearg_alloc): New function.
63797         (quotearg_buffer_restyled): Treat lone { and } as special.
63798         Treat = as special.  Work around bug with older shells
63799         that "see" a '\' that is really the 2nd byte of a multibyte char.
63800         Quote empty string with shell_quoting_style.
63801
63802 2004-02-03  Bruno Haible  <bruno@clisp.org>
63803
63804         * m4/pipe.m4: New file, from GNU gettext.
63805
63806 2004-02-03  Bruno Haible  <bruno@clisp.org>
63807
63808         * lib/pipe.h: New file, from GNU gettext.
63809         * lib/pipe.c: New file, from GNU gettext.
63810
63811 2004-01-27  Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/execute.m4: New file, from GNU gettext.
63814
63815 2004-01-27  Bruno Haible  <bruno@clisp.org>
63816
63817         * lib/execute.h: New file, from GNU gettext.
63818         * lib/execute.c: New file, from GNU gettext.
63819         * lib/w32spawn.h: New file, from GNU gettext.
63820
63821 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63822
63823         Merge from diffutils.
63824
63825         * lib/file-type.c (file_type): Add typed memory objects.
63826         * lib/file-type.h (S_TYPEISTMO): New macro.
63827
63828         * lib/c-stack.h (c_stack_action): Remove argv argument.
63829         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
63830         (die): Don't calculate message unless segv_action returns.
63831         (get_stack_location, min_address_from_argv, max_address_from_argv,
63832         volatile stack_base, volatile_stack_size): Remove.
63833         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
63834         that every segmentation violation is a stack overflow.  (Ouch!)
63835         See Debian bug 136249 (still outstanding) for more info about why
63836         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
63837
63838 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63839
63840         Exit-status fix from coreutils.
63841
63842         Use exit_failure consistently in place of EXIT_FAILURE,
63843         so that program exit statuses are consistent on failure.
63844
63845         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63846         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63847         * lib/argmatch.h: Comment fix to match the above.
63848         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63849         Now a macro referring to exit_failure, instead of a separate
63850         variable.  Include "exitfail.h" to get it.
63851         * lib/xstrtol.h: Include "exitfail.h".
63852         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63853
63854         * lib/long-options.c (parse_long_options): Use prototype
63855         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63856         for clarity.
63857
63858 2004-01-21  Jim Meyering  <jim@meyering.net>
63859
63860         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63861         so as not to conflict with a different-sized __mktime_internal
63862         function in GNU libc.
63863         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63864         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63865
63866 2004-01-20  Karl Berry  <karl@gnu.org>
63867
63868         * config/config.guess: update from config.
63869
63870         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63871
63872 2004-01-20  Bruno Haible  <bruno@clisp.org>
63873
63874         Safer stack allocation.
63875         * lib/setenv.c: Include allocsa.h.
63876         (alloca): Remove fallback definition.
63877         (freea): Remove macro.
63878         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63879         instead of freea.
63880
63881 2004-01-20  Bruno Haible  <bruno@clisp.org>
63882
63883         * m4/eealloc.m4: New file, from GNU gettext.
63884
63885 2004-01-20  Bruno Haible  <bruno@clisp.org>
63886
63887         * m4/allocsa.m4: New file, from GNU gettext.
63888
63889 2004-01-20  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/xallocsa.h: New file, from GNU gettext.
63892         * lib/xallocsa.c: New file, from GNU gettext.
63893
63894 2004-01-20  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63897
63898 2004-01-20  Bruno Haible  <bruno@clisp.org>
63899
63900         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63901         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63902         specially.
63903
63904 2004-01-20  Bruno Haible  <bruno@clisp.org>
63905
63906         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63907         patch.
63908
63909 2004-01-20  Bruno Haible  <bruno@clisp.org>
63910
63911         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63912
63913 2004-01-20  Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/eealloc.h: New file.
63916
63917 2004-01-20  Bruno Haible  <bruno@clisp.org>
63918
63919         * lib/binary-io.h: Avoid warnings on Cygwin.
63920
63921 2004-01-20  Bruno Haible  <bruno@clisp.org>
63922
63923         * lib/allocsa.h: New file, from GNU gettext.
63924         * lib/allocsa.c: New file, from GNU gettext.
63925
63926 2004-01-18  Karl Berry  <karl@gnu.org>
63927
63928         * doc/gpl.texi, doc/lgpl.texi: new files.
63929
63930 2004-01-18  Karl Berry  <karl@gnu.org>
63931
63932         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63933         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63934
63935 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63936
63937         Merge from coreutils.
63938
63939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63940         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63941         (gl_DEFAULT_POSIX2_VERSION): Move
63942         the documentation from 'configure' into 'config.hin',
63943         so that 'configure --help' isn't burdened by it and
63944         we don't have to worry about its formatting there.
63945         Reword the documentation so that it's more succinct
63946         and can be run together into a single paragraph.
63947         * m4/same.m4 (gl_SAME): Check for pathconf.
63948
63949 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63950
63951         Merge from coreutils.
63952
63953         * lib/posixver.c: Include posixver.h.
63954
63955         * lib/same.c: Include <stdbool.h>, <limits.h>.
63956         (_POSIX_NAME_MAX): Define if not defined.
63957         (MIN): New macro.
63958         (same_name): If file names are silently truncated, report
63959         that the file names are the same if they are the same after
63960         the silent truncation.
63961
63962         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63963         conversion function.
63964         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63965         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63966         longer needed.
63967
63968 2004-01-15  Jim Meyering  <jim@meyering.net>
63969
63970         Merge from coreutils.
63971
63972         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63973         if no library is required.
63974         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63975         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63976         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63977         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63978         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63979         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63980         value, $ac_cv_search_crypt, if it's "none required".
63981         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63982         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63983         not gl_FUNC_GETLOADAVG.
63984         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63985         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63986
63987 2004-01-15  Jim Meyering  <jim@meyering.net>
63988
63989         Merge from coreutils.
63990
63991         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63992         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63993         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63994
63995         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63996         optional configure-time default.
63997
63998         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63999
64000         * lib/xreadlink.c (xreadlink): Correct outdated comment.
64001
64002 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
64003
64004         Merge from coreutils.
64005
64006         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
64007         value, $ac_cv_search_nanosleep, if it's "none required".
64008
64009 2004-01-14  Paul Eggert  <eggert@twinsun.com>
64010
64011         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
64012         with like-named macro in fnmatch.c.
64013         (EXT): Use an internal constant instead.
64014
64015         Merge fnmatch patches from glibc.
64016         * lib/fnmatch.c (mbsinit): Remove define.
64017         Add libc_hidden_ver (__fnmatch, fnmatch).
64018         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
64019         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
64020
64021 2004-01-14  Karl Berry  <karl@gnu.org>
64022
64023         * config/install-sh: update from automake.
64024
64025 2004-01-13  Karl Berry  <karl@gnu.org>
64026
64027         * config/install-sh: update from automake.
64028
64029 2004-01-09  Karl Berry  <karl@gnu.org>
64030
64031         * config/install-sh: update from automake.
64032
64033 2004-01-05  Karl Berry  <karl@gnu.org>
64034
64035         * config/config.{sub,guess}: update from config.
64036
64037 2003-12-31  Karl Berry  <karl@gnu.org>
64038
64039         * config/depcomp: update from automake.
64040
64041 2003-12-14  Karl Berry  <karl@gnu.org>
64042
64043         * lib/config.charset: update from gettext-runtime.
64044
64045 2003-12-03  Paul Eggert  <eggert@twinsun.com>
64046
64047         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
64048         Bug reported by Alfred M. Szmidt.
64049
64050 2003-12-03  Bruno Haible  <bruno@clisp.org>
64051
64052         * m4/gettext.m4: Upgrade from gettext-0.13.
64053         * m4/po.m4: Upgrade from gettext-0.13.
64054         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
64055         * m4/intmax.m4: New file, from gettext-0.13.
64056         * m4/printf-posix.m4: New file, from gettext-0.13.
64057
64058 2003-11-29  Karl Berry  <karl@gnu.org>
64059
64060         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
64061
64062 2003-11-25  Paul Eggert  <eggert@twinsun.com>
64063             Bruno Haible  <bruno@clisp.org>
64064
64065         * lib/printf-parse.h: Don't include sys/types.h.
64066         (ARG_NONE): New macro.
64067         (char_directive): Change type of *arg_index fields to size_t.
64068         * lib/printf-parse.c: Don't include sys/types.h.
64069         (SSIZE_MAX): Remove macro.
64070         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
64071         Remove unnecessary overflow check.
64072         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
64073         fields.
64074
64075 2003-11-25  Bruno Haible  <bruno@clisp.org>
64076
64077         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
64078
64079 2003-11-25  Bruno Haible  <bruno@clisp.org>
64080
64081         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
64082         gt_TYPE_SSIZE_T.
64083
64084 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64085
64086         * modules/alloca: Remove dependency on xalloc.
64087
64088 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64089
64090         * lib/alloca.c: Remove dependency on xalloc module.
64091         (xalloc_die): Remove.
64092         (memory_full) [!defined emacs]: New macro.
64093         [!defined emacs]: Don't include xalloc.h.
64094         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
64095         address arithmetic overflows.  Change datatypes a bit to avoid
64096         unnecessary casts.
64097
64098 2003-11-22  Jim Meyering  <jim@meyering.net>
64099
64100         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
64101         s/size/size_t/.
64102
64103 2003-11-21  Karl Berry  <karl@gnu.org>
64104
64105         * config/config.{sub,guess}: update from config.
64106
64107 2003-11-18  Karl Berry  <karl@gnu.org>
64108
64109         * config/config.{sub,guess}: update from config.
64110
64111         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
64112
64113 2003-11-17  Paul Eggert  <eggert@twinsun.com>
64114
64115         * README: Mention that S+T cannot overflow if S is the size of
64116         an existing object and T is sufficiently small.
64117
64118 2003-11-17  Jim Meyering  <jim@meyering.net>
64119
64120         On systems without utime and without a utimes function capable of
64121         dealing with a NULL struct utimbuf* argument, this utime replacement
64122         could -- in unusual circumstances -- leak a file descriptor.
64123         * lib/utime.c: Include <unistd.h> and <errno.h>.
64124         (utime_null): Be sure to close `fd' and to preserve errno.
64125         Reported by Geoff Collyer via Arnold Robbins.
64126
64127 2003-11-17  Bruno Haible  <bruno@clisp.org>
64128
64129         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
64130         (Depends-on): Add xsize.
64131
64132 2003-11-17  Bruno Haible  <bruno@clisp.org>
64133
64134         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
64135
64136 2003-11-17  Bruno Haible  <bruno@clisp.org>
64137
64138         * lib/vasnprintf.c (alloca): Remove fallback definition.
64139         (freea): Remove definition.
64140         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
64141         Reported by Paul Eggert.
64142
64143 2003-11-16  Paul Eggert  <eggert@twinsun.com>
64144             Bruno Haible  <bruno@clisp.org>
64145
64146         Protect against address arithmetic overflow.
64147         * lib/printf-args.h: Include stddef.h.
64148         (arguments): Change type of field 'count' to size_t.
64149         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
64150         'unsigned int' where appropriate.
64151         * lib/printf-parse.h: Include sys/types.h.
64152         (char_directive): Change type of *arg_index fields to ssize_t.
64153         (char_directives): Change type of fields 'count', max_*_length to
64154         size_t.
64155         * lib/printf-parse.c: Include sys/types.h and xsize.h.
64156         (SSIZE_MAX): Define fallback value.
64157         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
64158         instead of 'int' where appropriate. Check a_allocated, d_allocated
64159         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
64160         * lib/vasnprintf.c: Include xsize.h.
64161         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
64162         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
64163         overflow. Avoid wraparound when converting a width or precision from
64164         decimal to binary.
64165
64166 2003-11-16  Bruno Haible  <bruno@clisp.org>
64167
64168         Update from GNU gettext.
64169         * lib/printf-parse.c: Generalize to it can be compiled for wide
64170         strings.
64171         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
64172         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
64173         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
64174         SNPRINTF): New macros.
64175         Don't include <alloca.h> if the file is used inside libintl.
64176         (local_wcslen): New function, for Solaris 2.5.1.
64177         (VASNPRINTF): Use it instead of wcslen.
64178
64179 2003-11-16  Bruno Haible  <bruno@clisp.org>
64180
64181         * lib/xsize.h (xmax): New function.
64182         (xsum, xsum3, xsum4): Declare as "pure" functions.
64183
64184 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64185
64186         * modules/xalloc (Files): Undo latest change, since xalloc.h
64187         no longer needs SIZE_MAX or PTRDIFF_MAX.
64188
64189 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64190
64191         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
64192         gl_PTRDIFF_MAX.
64193
64194 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64195
64196         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
64197         "return", to pacify some unknown compiler.  Problem reported
64198         by Joerg Schilling.
64199
64200 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64201
64202         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
64203         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
64204         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
64205         heuristic is just as accurate as far as we know, and it removes a
64206         dependency on size_max.m4 and ptrdiff_max.m4.
64207
64208 2003-11-11  Bruno Haible  <bruno@clisp.org>
64209
64210         * modules/xsize (Files): Add m4/size_max.m4.
64211         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
64212
64213 2003-11-11  Bruno Haible  <bruno@clisp.org>
64214
64215         * m4/size_max.m4: New file.
64216         * m4/ptrdiff_max.m4: New file.
64217         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
64218         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
64219         (gl_XALLOC): Invoke it.
64220
64221 2003-11-11  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
64224         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
64225         defined.
64226
64227 2003-11-10  Paul Eggert  <eggert@twinsun.com>
64228
64229         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
64230         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
64231         rejected some allocations of exactly SIZE_MAX - 2 bytes.
64232         From Bruno Haible.
64233         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
64234         not (size_t) -1, since it's defined here.
64235
64236 2003-11-09  Karl Berry  <karl@gnu.org>
64237
64238         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
64239
64240 2003-11-06  Paul Eggert  <eggert@twinsun.com>
64241
64242         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
64243         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
64244         Reject sizes of exactly SIZE_MAX bytes.
64245         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
64246         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
64247
64248 2003-11-05  Bruno Haible  <bruno@clisp.org>
64249
64250         * lib/xsize.h: Include limits.h, to avoid a possible collision with
64251         SIZE_MAX defined in <limits.h> on Solaris.
64252
64253 2003-11-04  Jim Meyering  <jim@meyering.net>
64254
64255         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
64256         variable names, rather than @VAR@.
64257         * modules/poll: Likewise.
64258
64259 2003-11-04  Bruno Haible  <bruno@clisp.org>
64260
64261         * modules/xsize: New file.
64262         * modules/linebreak: Depend on xsize.
64263         * MODULES.html.sh (func_all_modules): Add xsize.
64264
64265 2003-11-04  Bruno Haible  <bruno@clisp.org>
64266
64267         * m4/xsize.m4: New file.
64268
64269 2003-11-04  Bruno Haible  <bruno@clisp.org>
64270
64271         * lib/xsize.h: New file.
64272         * lib/linebreak.c: Include xsize.h.
64273         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
64274         argument for overflow.
64275         Suggested by Paul Eggert.
64276
64277 2003-11-03  Karl Berry  <karl@gnu.org>
64278
64279         * config/config.{guess,sub}: update from config.
64280
64281 2003-11-03  Jim Meyering  <jim@meyering.net>
64282
64283         * modules/userspec (lib_SOURCES): Add userspec.h.
64284         (Include): Add "userspec.h".
64285         Improve description.
64286
64287 2003-11-03  Jim Meyering  <jim@meyering.net>
64288
64289         * lib/userspec.c: Include "userspec.h".
64290         * lib/userspec.h: New file.
64291
64292 2003-11-03  Bruno Haible  <bruno@clisp.org>
64293
64294         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
64295
64296 2003-11-03  Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
64299         available, to avoid (extremely rare) race condition.
64300         Suggested by Paul Eggert.
64301
64302 2003-11-02  Karl Berry  <karl@gnu.org>
64303
64304         * config/srclist.txt (vasprintf.c): sync broken, sigh.
64305
64306 2003-10-31  Paul Eggert  <eggert@twinsun.com>
64307
64308         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
64309         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
64310         (read_filesystem_list): Set and use me_type_malloced.
64311         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
64312         whatever the type happens to be), for brevity and consistency.
64313         Check for size calculation overflow on Alphas running OSF/1.
64314
64315 2003-10-31  Jim Meyering  <jim@meyering.net>
64316
64317         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
64318
64319         * lib/linebuffer.c: Include <string.h> for declaration of memset.
64320
64321 2003-10-30  Paul Eggert  <eggert@twinsun.com>
64322             Bruno Haible  <bruno@clisp.org>
64323
64324         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
64325         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
64326
64327 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64328
64329         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
64330         netbsd*-gnu*.  Suggested by Robert Millan.
64331
64332 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64333
64334         * modules/group-member: Depend on stdbool.
64335
64336 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64337
64338         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
64339
64340 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64341
64342         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
64343         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
64344         after the 'gnu' in these cases.  This fixes some bugs in the
64345         previous change, and is based on suggestions by Robert Millan.
64346
64347 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64348
64349         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
64350         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
64351         no longer needed.
64352         * lib/quotearg.c (quotearg_n_options): Use it.
64353         * lib/group-member.c: Include <stdbool.h>.
64354         (free_group_info): Arg is now const *; don't free arg.
64355         (get_group_info): Now returns bool and accepts struct group_info *,
64356         rather than returning a malloc'ed struct group_info *.
64357         All uses changed.  Check for overflow in internal size calculation.
64358
64359         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
64360         rather than xmalloc/xrealloc.
64361         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
64362         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
64363         conformance bug: the old code used a pointer after freeing the
64364         storage that it addressed.
64365         * lib/hash.c (hash_initialize): Simplify the code by using
64366         xalloc_oversized rather than doing it by hand.
64367         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
64368         the buffer preserved.  Use free and xmalloc instead.
64369         * lib/quotearg.c (quotearg_n_options): Likewise.
64370         Use a simpler test for size overflow.  Don't use xalloc_oversized
64371         because unsigned int might be wider than size_t (!); this suggests
64372         that we should switch from unsigned int to size_t for slot numbers.
64373
64374 2003-10-28  Paul Eggert  <eggert@twinsun.com>
64375
64376         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
64377         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
64378         NetBSD kernels.  Requested by Richard Stallman.
64379
64380 2003-10-27  Paul Eggert  <eggert@twinsun.com>
64381
64382         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
64383         to allocate the returned structure.  Do not allocate a subarray,
64384         as x2nrealloc will do that.
64385         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
64386         instead of xnrealloc.
64387         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
64388
64389 2003-10-27  Bruno Haible  <bruno@clisp.org>
64390
64391         * lib/stdbool_.h: Better support for BeOS.
64392
64393 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64394
64395         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64396         now uses inline.
64397
64398 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64399
64400         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64401         callers that want to do their own size-overflow checking.  Include
64402         <stdbool.h>, since xalloc_oversized returns bool.
64403         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64404         to use xalloc_oversized.
64405
64406         Add two functions x2realloc, x2nrealloc, for programs that grow
64407         arrays dynamically by doubling their sizes.
64408         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64409         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64410         New functions.
64411
64412         Port to C99 semantics for 'inline' of external functions.
64413         Bug reported by Bruno Haible.
64414         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64415         with the old contents of xnmalloc.
64416         (xnmalloc, xmalloc): Use it.
64417         (xnrealloc_inline): New static inline function,
64418         with the old contents of xnrealloc.
64419         (xnrealloc, xrealloc): Use it.
64420
64421         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64422         that.
64423
64424 2003-10-26  Karl Berry  <karl@gnu.org>
64425
64426         * config/srclist.txt (COPYING.DOC): no longer available from
64427         /gd/gnuorg; don't know where the ultimate source is.
64428
64429 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64430
64431         Fix several address-calculation bugs in the hash modules,
64432         plus some minor code cleanup.
64433
64434         * lib/hash.h: Include <stdbool.h>, for bool.
64435         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64436         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64437         hash_get_n_entries, hash_get_max_bucket_length,
64438         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64439         hash_rehash): Use size_t rather than unsigned.
64440         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64441         hash_get_n_buckets_used, hash_get_n_entries,
64442         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64443         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64444         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64445         Likewise.
64446         (SIZE_MAX): Define if not defined.
64447         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64448         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64449         hash_print):
64450         Use const * when possible.
64451         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64452         (check_tuning): Fix bug: if tuning parameters were very close to
64453         0 or 1, rounding errors could have caused subscript violations.
64454         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64455         (hash_initialize): Add 'fail:' label
64456         to free table and return NULL, and use it to simplify code.
64457         Use calloc rather than clearing the storage ourself.
64458         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64459         buffer size calculations.
64460         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64461         Include <stddef.h>, for size_t.
64462         * lib/hash-pjw.c (hash_pjw): Likewise.
64463         Switch to method described by Bruno Haible.
64464         Include <limits.h>, for CHAR_BIT.
64465         (SIZE_BITS): New macro.
64466
64467 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64468
64469         * m4/getline.m4 (AM_FUNC_GETLINE):
64470         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64471         hosts.  Problem reported by Derek Robert Price in
64472         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64473         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64474         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64475
64476 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64477
64478         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64479         ceiling the allocation at NMAX bytes rather than silently
64480         discarding input bytes before NMAX is reached.  This makes
64481         a difference only if NMAX exceeds SIZE_MAX / 2.
64482
64483         * lib/obstack.c: Merge from glibc.
64484         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64485         Add libc_hidden_def (_obstack_newchunk).
64486         (_obstack_free) [! defined _LIBC]: Remove.
64487         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64488         a clone of the function body.
64489         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64490         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64491
64492         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64493         glibc.
64494         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64495         arg to memcpy.
64496
64497         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64498         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64499         Don't use lvalue casts, as GCC plans to remove support for them
64500         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64501         was also present in the non-GCC version, indicating that this
64502         code had always been buggy and had never been widely used.
64503         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64504         Use the fast variant of each macro, rather than copying the
64505         definiens of the fast variant; that way, we'll be more likely to
64506         catch future bugs in the fast variants.
64507
64508 2003-10-20  Bruno Haible  <bruno@clisp.org>
64509
64510         * modules/wait-process: New file.
64511         * MODULES.html.sh (func_all_modules): Add wait-process.
64512
64513 2003-10-20  Bruno Haible  <bruno@clisp.org>
64514
64515         * m4/wait-process.m4: New file.
64516
64517 2003-10-20  Bruno Haible  <bruno@clisp.org>
64518
64519         * lib/wait-process.h: New file, from GNU gettext.
64520         * lib/wait-process.c: New file, from GNU gettext.
64521
64522 2003-10-19  Jim Meyering  <jim@meyering.net>
64523
64524         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64525         HPUX 10.20.
64526
64527 2003-10-18  Karl Berry  <karl@gnu.org>
64528
64529         * config/config.guess: update from config.
64530
64531 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64532
64533         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64534         (getgroups): First arg is int, not size_t.
64535         Don't let 'free' mangle errno.
64536
64537 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64538
64539         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64540
64541 2003-10-16  Karl Berry  <karl@gnu.org>
64542
64543         * config/config.{guess,sub}: update from config.
64544
64545 2003-10-16  Jim Meyering  <jim@meyering.net>
64546
64547         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64548         memcpy.
64549
64550 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64551
64552         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64553         (SIZE_MAX): Remove.
64554         (new_exclude, add_exclude_file): Initial size no longer needs to
64555         be a power of 2.
64556         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64557         our own address arithmetic overflow checking.
64558
64559         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64560         (fnmatch): Do not alloca more than 2000 wide characters;
64561         instead, use malloc for large buffers.
64562         Check for address arithmetic overflow, and return -1
64563         with errno set to ENOMEM in that case.
64564         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64565         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64566         instead, return -1.  Check for address arithmetic overflow.
64567
64568 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64569
64570         Handle invalid suffixes and overflow independently, so that
64571         callers can treat them independently as needed.  Fix some bugs in
64572         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64573         suffix for a human-readable blocksize.  The major caller-visible
64574         change is the addition of a new
64575         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64576         that both overflow and suffix chars were found.
64577
64578         * lib/human.c (humblock): Don't check separately for invalid suffix
64579         char; that is xstrtoumax's job (now that its bug is fixed).
64580         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64581         INTMAX_MAX]: New macros.
64582         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64583         TYPE_MAXIMUM): New macros.
64584         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64585         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64586         if overflow occurs, as it's what __strtol does and it's more useful
64587         in practice.
64588         (__xstrtol): If __strtol reports some error other than ERANGE,
64589         reflect it to the caller as LONGINT_INVALID.  If it reports
64590         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64591         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64592         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64593         value.
64594         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64595         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64596         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64597         [defined UINTMAX_MAX]: New macros.
64598
64599 2003-10-14  Bruno Haible  <bruno@clisp.org>
64600
64601         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64602
64603 2003-10-14  Bruno Haible  <bruno@clisp.org>
64604
64605         * m4/sig_atomic_t: New file, from GNU gettext.
64606         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64607
64608 2003-10-14  Bruno Haible  <bruno@clisp.org>
64609
64610         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64611         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64612         Also use volatile where needed.
64613
64614 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64615
64616         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64617         Change maintainer from Bruno Haible to 'all'.
64618
64619 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64620
64621         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64622
64623 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64624
64625         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64626         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64627         and define in terms of the other primitives.
64628         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64629         (SIZE_MAX): Define if not already defined.
64630         (array_size_overflow): New function.
64631         (xalloc_die): Abort instead of exiting if 'error' returns.
64632         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64633         (xmalloc, xrealloc): Use them.
64634         (xcalloc): Check for address arithmetic overflow.
64635         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64636         a bit faster than strcpy.
64637
64638 2003-10-10  Simon Josefsson  <jas@extundo.com>
64639
64640         * modules/argp (Depends-on): Add restrict and strcase.
64641
64642 2003-10-10  Simon Josefsson  <jas@extundo.com>
64643
64644         * m4/argp.m4: Add AC_C_INLINE.
64645
64646 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64647
64648         Merge getpass from libc, plus a few fixes.
64649
64650         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64651         Include <stdbool.h>.
64652         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64653         __fsetlocking to empty.
64654         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64655         do include <bits/libc-lock.h>.
64656         Do not include <fcntl.h>; not needed.
64657         [_LIBC]: Include <wchar.h>.
64658         (NOTCANCEL_MODE): New macro.
64659         (flockfile, funlockfile) [_LIBC]: New macros.
64660         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64661         [!_LIBC]: New macros.
64662         (call_fclose): New function.
64663         (getpass): Use it.  Save tty stream separately; this simplifies the
64664         code and makes it more reliable if stdin happens to equal stdout.
64665         Invoke __fsetlocking on tty.
64666         Handle thread cancellation if needed.
64667         Namespace cleanup (use __tcgetattr, __getline).
64668         Use bool for Booleans.
64669         [USE_IN_LIBIO]: Handle wide streams.
64670         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64671         stream might go where.
64672
64673         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
64674         doesn't have to include <stdio.h> before us.
64675         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
64676         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
64677         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
64678         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
64679         if not declared, so that we can use getpass.c code from libc without
64680         rewriting it.
64681         (flockfile, ftrylockfile, funlockfile): New macros.
64682
64683 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64684
64685         * modules/getpass: Depend on stdbool.
64686
64687 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64688
64689         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
64690
64691 2003-10-07  Karl Berry  <karl@gnu.org>
64692
64693         * config/config.{guess,sub}: update from config.
64694
64695 2003-10-06  Jim Meyering  <jim@meyering.net>
64696             Bruno Haible  <bruno@clisp.org>
64697
64698         This lets translators provide better translations for the
64699         "Written by ..." part of --version output.
64700         * lib/version-etc.h: Include stdarg.h.
64701         (version_etc_copyright): Declare as readonly.
64702         (version_etc): Make this function variadic with a NULL-terminated list
64703         of author name strings.
64704         (version_etc_va): New declaration.
64705         * lib/version-etc.c: Include stdarg.h, stdlib.h.
64706         (version_etc_copyright): Declare as readonly.
64707         (version_etc_va): New function. Provide a different translatable string
64708         for each possible number of authors < 10. Abbreviate when there are 10
64709         authors or more.
64710         (version_etc): Make this function variadic. Call version_etc_va.
64711         Suggestion from Gary V. Vaughan.
64712
64713         * lib/long-options.h (parse_long_options): Change prototype: the
64714         authors string is moved to the end and becomes variadic.
64715         * lib/long-options.c: Include stdarg.h.
64716         (parse_long_options): Make this function variadic, too.
64717         Call version_etc_va, not version_etc.
64718
64719 2003-10-06  Bruno Haible  <bruno@clisp.org>
64720
64721         * modules/version-etc-2: Remove file.
64722         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
64723
64724 2003-10-06  Bruno Haible  <bruno@clisp.org>
64725
64726         * modules/fatal-signal: New file.
64727         * MODULES.html.sh (func_all_modules): Add fatal-signal.
64728
64729 2003-10-06  Bruno Haible  <bruno@clisp.org>
64730
64731         * m4/fatal-signal.m4: New file.
64732         * m4/signalblocking.m4: New file, from GNU gettext.
64733
64734 2003-10-06  Bruno Haible  <bruno@clisp.org>
64735
64736         * lib/version-etc-2.h: Remove file.
64737         * lib/version-etc-2.c: Remove file.
64738
64739 2003-10-06  Bruno Haible  <bruno@clisp.org>
64740
64741         * lib/fatal-signal.h: New file, from GNU gettext.
64742         * lib/fatal-signal.c: New file, from GNU gettext.
64743
64744 2003-10-05  Paul Eggert  <eggert@twinsun.com>
64745
64746         * README: Rework advice for preventing empty .o files.
64747         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
64748         not <sys/types.h>.
64749
64750 2003-10-04  Karl Berry  <karl@gnu.org>
64751
64752         * lib/argp*: update from libc.
64753
64754 2003-10-04  Karl Berry  <karl@gnu.org>
64755
64756         * config/config.{guess,sub}: update from config.
64757
64758 2003-10-02  Bruno Haible  <bruno@clisp.org>
64759
64760         * modules/lchown (Include): Add lchown.h.
64761         * modules/time_r (Include): Use "..." syntax.
64762         * modules/xgetdomainname (Include): Add xgetdomainname.h.
64763
64764 2003-10-01  Simon Josefsson  <jas@extundo.com>
64765
64766         * MODULES.html.sh (func_all_modules): Move gethostname from section
64767         'based on' to section 'lacking' POSIX:2001.
64768
64769 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
64770
64771         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
64772         to output mode on the same stream.
64773
64774 2003-09-29  Paul Eggert  <eggert@twinsun.com>
64775
64776         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
64777         Fix arg typo in previous patch.
64778
64779 2003-09-28  Jim Meyering  <jim@meyering.net>
64780
64781         * lib/error.c: Correct cpp indentation.
64782
64783 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64784
64785         * modules/free: New file.
64786
64787 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64788
64789         * m4/free.m4: New file.
64790
64791 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64792
64793         * lib/minmax.h (MIN, MAX)
64794         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
64795         Omit the special code that used __typeof__, since we worry that
64796         it could be more trouble than it's worth.  See:
64797         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
64798         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
64799
64800         * lib/free.c: New file.
64801
64802 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
64803
64804         Trivial fixes to Makefile.am parts of module listings.
64805         * modules/strstr: Append strstr.h to lib_SOURCES.
64806         * modules/strcase: Likewise, for strcase.h.
64807
64808 2003-09-27  Karl Berry  <karl@gnu.org>
64809
64810         * config/mkinstalldirs: update from automake.
64811
64812 2003-09-26  Paul Eggert  <eggert@twinsun.com>
64813
64814         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
64815         (error_tail): Do not loop, reallocating temporary buffer, since
64816         the output cannot contain more wide characters than the input
64817         contains bytes, the size must be big enough already.  This avoids
64818         one potential size overflow calculation.  Check for size overflow
64819         when calculating temporary buffer size.  Free temporary buffer
64820         when done, if it was allocated with malloc; this plugs a memory
64821         leak.  Remove casts from void * to pointers, that are no longer
64822         needed now that we're assuming C89 or better.
64823
64824         Merge error changes from glibc.
64825
64826         * lib/error.c, error.h: Update copyright notice header to match glibc.
64827         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
64828         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
64829         Disable cancellation while printing error.
64830         * lib/error.h: Prepend __ to parameter names.
64831
64832 2003-09-26  Jim Meyering  <jim@meyering.net>
64833
64834         * lib/error.c (error_tail): Move some declarations
64835         into inner scope where the local variables are used.
64836
64837 2003-09-26  Bruno Haible  <bruno@clisp.org>
64838
64839         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64840         stpncpy().
64841         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64842
64843 2003-09-26  Bruno Haible  <bruno@clisp.org>
64844
64845         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64846         (stpncpy): Define as alias for gnu_stpncpy.
64847         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64848
64849 2003-09-25  Simon Josefsson  <jas@extundo.com>
64850
64851         * lib/xgetdomainname.h: New file.
64852         * lib/xgetdomainname.c: New file.
64853
64854 2003-09-25  Simon Josefsson  <jas@extundo.com>
64855             Bruno Haible  <bruno@clisp.org>
64856
64857         * modules/getdomainname: New file.
64858         * modules/xgetdomainname: New file.
64859         * MODULES.html.sh (func_all_modules): Add getdomainname,
64860         xgetdomainname.
64861
64862 2003-09-25  Simon Josefsson  <jas@extundo.com>
64863             Bruno Haible  <bruno@clisp.org>
64864
64865         * m4/getdomainname.m4: New file.
64866
64867 2003-09-25  Simon Josefsson  <jas@extundo.com>
64868             Bruno Haible  <bruno@clisp.org>
64869
64870         * lib/getdomainname.h: New file.
64871         * lib/getdomainname.c: New file.
64872
64873 2003-09-25  Karl Berry  <karl@gnu.org>
64874
64875         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64876
64877 2003-09-25  Karl Berry  <karl@gnu.org>
64878
64879         * config/install-sh: update from automake.
64880
64881 2003-09-25  Bruno Haible  <bruno@clisp.org>
64882
64883         * modules/version-etc-2: New file, from modules/version-etc with
64884         modifications.
64885         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64886
64887 2003-09-25  Bruno Haible  <bruno@clisp.org>
64888
64889         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64890         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64891
64892 2003-09-24  Simon Josefsson  <jas@extundo.com>
64893
64894         * modules/xgethostname: Add xgethostname.h.
64895
64896 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64897
64898         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64899         the buffer associated with the argument.  Bug reported by
64900         Simon Josefsson.
64901
64902 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64903
64904         * README: Document assumptions that 'int' is at least 32 bits
64905         wide, that integer arithmetic is 2's complement without overflow,
64906         that there are no holes in integer values, that adding sizes of
64907         two nonoverlapping objects can't overflow, and that all-bits-zero
64908         yields scalar zero.  Fix spelling and capitalization typos.
64909
64910 2003-09-19  Karl Berry  <karl@gnu.org>
64911
64912         * lib/argp.h: update from libc.
64913
64914 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64915
64916         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64917         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64918         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64919
64920 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64921
64922         * gnulib-tool: Use "test -h", not "test -L", for portability
64923         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64924         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64925         (sed_extract_prog): Issue s commands one-by-one, rather than
64926         using \| in one s command.
64927
64928 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64929
64930         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64931         input error, instead of returning NULL the next time we are called
64932         (and therefore losing track of errno).
64933
64934 2003-09-16  Bruno Haible  <bruno@clisp.org>
64935
64936         * gnulib-tool (func_create_testdir): Warn about duplicated
64937         dependencies.
64938
64939 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64940
64941         * modules/argmatch, modules/fatal, modules/obstack,
64942         modules/xalloc, modules/xgethostname: Sort dependencies by
64943         importance, not alphabetically.
64944
64945 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64946
64947         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64948         fails, so that the caller gets the proper errno.
64949
64950         * lib/readutmp.c (read_utmp): Likewise.
64951         Check for fstat error.  Close stream and free storage
64952         when failing.
64953
64954 2003-09-14  Karl Berry  <karl@gnu.org>
64955
64956         * config/srclist.txt (strdup.c): disable for c89 changes.
64957
64958 2003-09-14  Jim Meyering  <jim@meyering.net>
64959
64960         * lib/getloadavg.c: Correct cpp indentation.
64961         * lib/strdup.c: Likewise.
64962         * lib/vasnprintf.c: Likewise.
64963
64964 2003-09-14  Bruno Haible  <bruno@clisp.org>
64965
64966         * modules/fwriteerror: New file.
64967         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64968
64969 2003-09-14  Bruno Haible  <bruno@clisp.org>
64970
64971         * lib/fwriteerror.h: New file.
64972         * lib/fwriteerror.c: New file.
64973
64974 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64975
64976         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64977         modules/xgethostname, modules/xalloc: Depend on exit.
64978
64979 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64980
64981         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64982
64983         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64984         and AC_MINIX, too, so that their extensions are available.
64985
64986         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64987         This macro has been superseded by gl_BACKUPFILE.
64988
64989         More patches to assume C89 or better.
64990
64991         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64992
64993         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64994         unconditionally.
64995         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64996         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64997         Include <string.h>, <stdlib.h> unconditionally.
64998         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64999         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
65000         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
65001         headers or for string.h.
65002         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
65003         or strtoul.
65004
65005         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
65006         headers.
65007         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
65008         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65009         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
65010         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
65011         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65012         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
65013         memcpy, memset.
65014         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
65015         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
65016         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
65017         strtol.
65018         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
65019         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
65020         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
65021         strtoul.
65022
65023 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65024
65025         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
65026         * lib/obstack.c [!defined _LIBC]: Likewise.
65027         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
65028         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
65029         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
65030
65031         More changes to assume C89 or better.
65032
65033         * lib/error.c (error_tail): Assume vprintf.
65034
65035         * lib/argmatch.c (getenv): Remove decl.
65036         * lib/progreloc.c (get_full_program_name): Define via prototype.
65037         * lib/setenv.c (clearenv): Likewise.
65038         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
65039         needed.
65040         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
65041         (malloc, memcpy): Remove decls.
65042         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
65043         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
65044         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65045         (memcpy): Remove macro.
65046         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
65047         (__P): Remove.  All uses removed.
65048         (PTR): Remove.  All uses changed to void *.
65049         (CHAR_BIT, NULL): Remove.
65050         (spaces, zeros, memset_space, memset_zero)
65051         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
65052         Remove.
65053         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
65054         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
65055         Define with prototype.
65056         Remove now-unnecessary prototype decl.
65057         (extra_args_spec): Assume ANSI C.  All uses changed.
65058         (extra_args_spec_iso): Remove.
65059         (my_strftime, emacs_strftimeu): Define via prototype.
65060         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
65061         unconditionally.
65062         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
65063         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
65064         (strtoul, strtol): Remove decls.
65065         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
65066         LONG_MAX): Remove.
65067         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65068         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
65069         (LOCALE_PARAM_PROTO): New macro.
65070         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
65071         (INTERNAL (strtol), strtol): Define with a prototype.
65072         (PARAMS): Remove.  All uses removed.
65073         * lib/tempname.c: Include <string.h> unconditionally.
65074         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
65075         * lib/xgethostname.c (main): Define with a prototype.
65076         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
65077         Include <stdlib.h> unconditionally.
65078         (calloc, malloc, realloc, free): Remove decls.
65079         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
65080         Include <stdlib.h> unconditionally.  Sort include file names.
65081         (strtod): Remove.
65082         (xstrtod): Define with a prototype.
65083         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
65084         (strtol, strtoul): Remove decls.
65085
65086 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65087
65088         More patches to assume C89 or better.
65089         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
65090         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
65091         string.h, memchr, STDC_HEADERS.
65092
65093 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65094
65095         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
65096         Include <stdlib.h>, <string.h> unconditionally.
65097         Remove now-unnecessary cast to char *.
65098         * lib/strnlen.c: Include <string.h> unconditionally.
65099         * lib/yesno.c (yesno): Define with a prototype.
65100
65101 2003-09-11  Bruno Haible  <bruno@clisp.org>
65102
65103         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
65104
65105 2003-09-10  Jim Meyering  <jim@meyering.net>
65106
65107         * lib/error.c: Correct indentation of cpp directives.
65108
65109 2003-09-10  Bruno Haible  <bruno@clisp.org>
65110
65111         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
65112         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
65113         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
65114         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
65115         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
65116         <stdlib.h> and <string.h> checks.
65117         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
65118         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
65119
65120 2003-09-10  Bruno Haible  <bruno@clisp.org>
65121
65122         * lib/strcspn.c: Include <string.h> unconditionally.
65123         * lib/strpbrk.c: Include <string.h> unconditionally.
65124         * lib/strstr.c: Include <string.h> unconditionally.
65125         * lib/unicodeio.c: Include <string.h> unconditionally.
65126         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
65127         * lib/unsetenv.c: Likewise.
65128         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
65129         * lib/yesno.c: Include <stdlib.h> unconditionally.
65130         (rpmatch): Add prototype.
65131
65132 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65133
65134         More patches to assume C89 or better.
65135         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
65136         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
65137         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
65138         or for string.h.
65139         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
65140         stdlib.h.
65141         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
65142         C headers.
65143         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
65144         string.h.
65145         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
65146         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
65147         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
65148         or for string.h.
65149         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
65150         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
65151         C headers.
65152         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
65153         memcpy.
65154         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
65155         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
65156         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
65157         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
65158         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
65159         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
65160         string.h, free.
65161         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
65162         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
65163         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
65164         C headers, or for string.h.
65165         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
65166         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
65167         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
65168         headers, memory.h, stdlib.h, string.h, strings.h.
65169         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
65170         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
65171         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
65172         strchr.
65173         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
65174         headers, memory.h, string.h.
65175         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
65176         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
65177         free.
65178         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
65179         headers.
65180         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
65181         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
65182         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
65183         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
65184         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
65185
65186 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65187
65188         More K&R removal.
65189
65190         * lib/acosl.c (main): Use a prototype.
65191         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
65192         tanl.c: Likewise.
65193
65194         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
65195
65196         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
65197         (getopt, etopt_long, getopt_long_only, _getopt_internal)
65198         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
65199         with a prototype.
65200         * lib/getopt.c (const): Remove macro.
65201         Include <string.h> unconditionally.
65202         (my_index): Remove; all uses changed to strchr.
65203         (strlen): Remove decl.
65204         (exchange): Remove forward decl; no longer needed.
65205         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
65206         Define with prototype.
65207         * lib/getopt1.c (const): Remove macro.
65208         (getopt_long, getopt_long_only, main): Define with prototype.
65209
65210         * lib/getugroups.c: Include <string.h> unconditionally.
65211
65212         * lib/getusershell.c: Include <stdlib.h> unconditionally.
65213         (getusershell, setusershell, endusershell, readname, main):
65214         Define with prototypes.
65215
65216         * lib/group-member.c: Include group-member.h first.
65217         Include <stdlib.h> unconditionally.
65218
65219         * lib/hard-locale.c: Include hard-locale.h first.
65220         Include <stdlib.h>, <string.h> unconditionally.
65221
65222         * lib/hash.c (free, malloc): Remove decls.
65223         Include <stdlib.h> unconditionally.
65224
65225         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
65226         (getenv): Do not declare.
65227
65228         * lib/idcache.c: Include <string.h> unconditionally.
65229
65230         * lib/long-options.c: Include long-options.h first, to test interface.
65231         Include <stdlib.h> unconditionally.
65232
65233         * lib/makepath.c: Include makepath.h first, to test interface.
65234         Include <stdlib.h> and <string.h> unconditionally.
65235
65236         * lib/linebuffer.c: Include <stdlib.h>.
65237         (free): Remove decl.
65238
65239         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
65240         stddef.h. rpl_malloc returns void *, not char *.
65241         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
65242         prototype.
65243
65244         * lib/md5.h: Include <limits.h> unconditionally.
65245         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
65246         (__P): Remove; all uses removed.
65247         * lib/md5.c: Include "md5.h" first.
65248         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
65249         md5_buffer, md5_process_bytes, md5_process_block):
65250         Define with prototypes.
65251         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
65252         * lib/sha.c: Include "sha.h" first.
65253         Include <stdlib.h>, <string.h> unconditionally.
65254
65255         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
65256         * lib/memcmp.c (__ptr_t): Likewise.
65257         * lib/memrchr.c (__ptr_t): Likewise.
65258         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
65259         Include <string.h> unconditionally.
65260         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
65261         * lib/memchr.c: Include <stdlib.h> unconditionally.
65262         * lib/memchr.c (LONG_MAX): Remove.
65263         * lib/memrchr.c (LONG_MAX): Likewise.
65264         * lib/memchr.c (__memchr): Define via a prototype.
65265         * lib/memrchr.c (__memrchr): Likewise.
65266         * lib/memcmp.c (__P): Remove, and remove all uses.
65267         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
65268         Remove forward decls; no longer needed.
65269         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
65270         Use types required by C89 in prototype.
65271
65272         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
65273         * lib/savedir.c: Likewise.
65274         * lib/mkdir.c (free): Remove decl.
65275         * lib/rmdir.c (rmdir): Define with a prototype.
65276         * lib/savedir.c: Include savedir.h first, to test interface.
65277
65278         * lib/mktime.c (STDC_HEADERS): Remove.
65279         Include <stdlib.h>, <string.h> unconditionally.
65280
65281         * lib/modechange.c: Include <stdlib.h> unconditionally.
65282         (malloc): Remove decl.
65283
65284         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
65285         (free): Remove decl.
65286
65287         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
65288         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
65289         (This type really should be intptr_t, but that's a C99ism.)
65290         (_obstack_memcpy): Remove: all uses changed to memcpy.
65291         Include <string.h> unconditionally.
65292         (struct obstack): Assume __STDC__ for types of members
65293         chunkfun, freefun, extra_arg.
65294         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
65295         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
65296         obstack_begin, obstack_specify_allocation,
65297         obstack_specify_allocation_with_arg, obstack_chunkfun,
65298         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
65299         Remove unprototyped decls and the macros that use them.
65300         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
65301         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
65302         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
65303         (defined __STDC__ && __STDC__)]:
65304         Remove nonprototyped code.
65305         Include <stdlib.h> unconditionally.
65306         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
65307         _obstack_allocated_p, _obstack_free, obstack_free,
65308         _obstack_memory_used, print_and_abort):
65309         Define using prototypes.
65310         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
65311         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
65312         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
65313         obstack_next_free, obstack_object_size, obstack_room) [0]:
65314         Remove unused, unprototyped code.
65315
65316         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
65317
65318         * lib/physmem.c (physmem_total, physmem_available, main): Define
65319         with prototypes.
65320
65321         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
65322         (main): Define with a prototype.
65323
65324         * lib/posixver.c (getenv): Remove decl.
65325
65326         * lib/putenv.c (malloc): Returns void *, not char *.
65327         Include <string.h> unconditionally.
65328         (strchr, memcpy, NULL): Do not define.
65329
65330         * lib/readtokens.c: Include readtokens.h first, to test interface.
65331         Include <stdlib.h>, <string.h> unconditionally.
65332         (init_tokenbuffer): Define with a prototype.
65333
65334         * lib/regex.c (PARAMS): Remove.  All uses removed.
65335         All uses of _RE_ARGS removed, too.
65336         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65337         unconditionally.
65338         (bzero): Assume memset exists.
65339         (memcmp, memcpy, NULL): Remove.
65340         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
65341         char, or assignments to local vars of type signed char.
65342         (init_syntax_once, PREFIX(extract_number_and_incr),
65343         PREFIX(print_partial_compiled_pattern),
65344         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
65345         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
65346         PREFIX(regex_grow_registers), PREFIX(regex_compile),
65347         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
65348         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
65349         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
65350         wcs_compile_range, byte_compile_range, truncate_wchar,
65351         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
65352         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
65353         count_mbs_length, wcs_re_match_2_internal,
65354         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
65355         PREFIX(alt_match_null_string_p),
65356         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
65357         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
65358         regfree, PREFIX(extract_number)): Define with prototype.  Remove
65359         now-unnecessary declaration, if any.
65360         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
65361         regcomp, regexec):
65362         Remove now-unnecessary casts among pointer types.
65363         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
65364
65365         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
65366         (free): Remove decl.
65367
65368         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
65369
65370         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
65371         (free): Remove decl.
65372
65373         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
65374         * lib/xgetcwd.c: Likewise.
65375
65376         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
65377         (free): Remove decl.
65378
65379         * lib/strchrnul.c (strchrnul): Define with a prototype.
65380         Fix bug: c_in was not converted to char before searching.
65381
65382         The following changes are not K&R related:
65383
65384         * lib/group-member.h: Include <sys/types.h>, so that this file is
65385         self-contained.
65386         * lib/makepath.h: Likewise.
65387
65388         * lib/getusershell.c (readname, default_index, line_size, readname):
65389         Use size_t, not int, for sizes.
65390         (readname): If the size overflows, report an error instead of
65391         looping forever.
65392
65393 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65394
65395         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65396         libc.
65397
65398 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65399
65400         * README: New section: portability guidelines.
65401
65402 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65403
65404         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65405         C89 spec.
65406
65407 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65408
65409         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65410
65411 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65412
65413         Assume C89 or better; remove K&R cruft.
65414         A few of these changes were first proposed by Derek Robert Price
65415         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65416
65417         * lib/addext.c: Include <string.h> unconditionally.
65418         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65419         Don't declare getenv or malloc.
65420
65421         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65422         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65423         (NULL): Remove.
65424         (find_stack_direction, alloca): Use prototypes.
65425
65426         * lib/atexit.c (atexit): Define using a prototype.
65427
65428         * lib/basename.c, dirname.c, stripslash.c:
65429         Include <string.h> unconditionally.
65430
65431         * lib/bcopy.c: Include <stddef.h>.
65432         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65433
65434         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65435
65436         * lib/error.h (error, error_at_line, error_print_progname)
65437         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65438         * lib/error.c: Include error.h first, to check interface.
65439         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65440         (VA_START): Remove; all uses changeed to va_start.
65441         (exit, strerror): Remove decls.
65442         (error_print_progname): Prototype uncondionally.
65443         Don't include <errno.h>; no longer needed.
65444         (private_strerror): Remove.
65445         (error_tail): Always define.
65446         (error, error_at_line): Assume C89 or better; always use prototypes.
65447         * lib/fatal.c: Include "fatal.h" first, to test interface.
65448         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65449         (VA_START): Remove; all uses changed to va_start.
65450         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65451         this case.
65452         (exit): Remove decl.
65453         (fatal): Prototype unconditionally.  Assume va_start works.
65454         Abort at end, to pacify gcc.
65455
65456         * lib/euidaccess.c (main): Define with a prototype.
65457
65458         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65459
65460         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65461
65462         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65463         prototypes.
65464         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65465         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65466         (getenv): Remove decl.
65467         (fnmatch): Define using a prototype.
65468         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65469         (FCT): Define using a prototype.
65470
65471         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65472
65473         * lib/gethostname.c: Include <stddef.h>.
65474         (gethostname): Define with prototype.  Length is size_t, not int.
65475
65476 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65477
65478         Assume C89 or better; remove K&R cruft.
65479         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65480         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65481         string.h, getenv, malloc.
65482         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65483         headers.
65484         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65485         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65486         do not check for strerror.
65487         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65488         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65489         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65490         do not check for doprnt or vprintf.
65491         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65492         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65493
65494 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65495
65496         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65497         getversion.c should have been removed then, but was accidentally
65498         preserved.
65499
65500         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65501         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65502
65503 2003-09-08  Karl Berry  <karl@gnu.org>
65504
65505         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65506                 config, forget about prep.
65507
65508         * config/depcomp, missing: update from automake.
65509
65510 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65511
65512         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65513         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65514
65515 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65516
65517         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65518         copy_tm_result.  Bug reported by Simon Josefsson in
65519         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65520
65521 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65522
65523         * m4/time_r.m4: New file.
65524         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65525         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65526         is. Check for timegm declaration.
65527         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65528         Do not check for gmtime_r.
65529         Replace mktime if __mktime_internal does not exist and if mktime
65530         hasn't been replaced already.
65531
65532 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65533
65534         * lib/time_r.c, lib/time_r.h: New files.
65535
65536         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65537         __localtime_r.
65538         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65539         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65540
65541         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65542         __gmtime_r.
65543         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65544         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65545         Include <time_r.h>.
65546
65547         * lib/timegm.c: Switch to glibc implementation, with the following
65548         changes:
65549         [defined HAVE_CONFIG_H]: Include <config.h>.
65550         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65551         (__mktime_internal) [!defined _LIBC]: New decl.
65552         (__gmtime_r) [!defined _LIBC]: New macro and function.
65553         (timegm): Use a prototype, since gnulib assumes C89.
65554         Do not bother declaring tmp to be const, as it's not really usefu.
65555         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65556         (timegm): Declare only if HAVE_DECL_TIMEGM.
65557
65558 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65559
65560         * MODULES.html.sh (func_all_modules): Add time_r.
65561         * modules/time_r: New file.
65562         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65563         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65564
65565 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65566
65567         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65568         Bug reported by Lute Kamstra in
65569         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65570
65571         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65572         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65573         course with correspondingly smaller numbers for tomorrow and
65574         yesterday.  From Tadayoshi Funaba.  Originally installed into
65575         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65576         coreutils merge?).
65577
65578 2003-08-31  Simon Josefsson  <jas@extundo.com>
65579
65580         * modules/timegm: New file.
65581         * MODULES.html.sh (func_all_modules): Add timegm.
65582
65583 2003-08-31  Simon Josefsson  <jas@extundo.com>
65584
65585         * m4/timegm.m4: New file.
65586
65587 2003-08-31  Simon Josefsson  <jas@extundo.com>
65588
65589         * lib/timegm.h: New file.
65590         * lib/timegm.c: New file.  Based on
65591         wget-1.8.2/src/http.c:mktime_from_utc.
65592
65593 2003-08-31  Karl Berry  <karl@gnu.org>
65594
65595         * lib/argp.h: update from libc.
65596
65597 2003-08-28  Bruno Haible  <bruno@clisp.org>
65598
65599         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65600         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65601         followed by '#define fnmatch fnmatch_posix' gives an error.
65602
65603 2003-08-28  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65606         warning on QNX, which defines O_BINARY to 000000.
65607
65608 2003-08-27  Jim Meyering  <jim@meyering.net>
65609
65610         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65611         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65612         would fail after 32.  Reported by Danny Levinson.  Details here:
65613         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65614
65615 2003-08-24  Bruno Haible  <bruno@clisp.org>
65616
65617         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65618         MSVC7 <stdio.h> is included later.
65619
65620 2003-08-22  Simon Josefsson  <jas@extundo.com>
65621
65622         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65623
65624 2003-08-20  Karl Berry  <karl@gnu.org>
65625
65626         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65627
65628 2003-08-20  Bruno Haible  <bruno@clisp.org>
65629
65630         * modules/progname: New file.
65631         * MODULES.html.sh (func_all_modules): Add progname.
65632
65633 2003-08-20  Bruno Haible  <bruno@clisp.org>
65634
65635         * lib/progname.h: New file, from GNU gettext.
65636         * lib/progname.c: New file, from GNU gettext.
65637         * lib/progreloc.c: New file, from GNU gettext.
65638
65639 2003-08-19  Jim Meyering  <jim@meyering.net>
65640
65641         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65642         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65643
65644 2003-08-19  Bruno Haible  <bruno@clisp.org>
65645
65646         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65647         more.
65648
65649 2003-08-19  Bruno Haible  <bruno@clisp.org>
65650
65651         * lib/xstrdup.c: Assume <string.h> exists.
65652
65653 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65654
65655         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65656         in makefile rules.
65657
65658 2003-08-18  Jim Meyering  <jim@meyering.net>
65659
65660         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65661         * m4/lib-ld.m4: Likewise.
65662
65663 2003-08-18  Jim Meyering  <jim@meyering.net>
65664
65665         * lib/setenv.h: Indent nested cpp directive.
65666         * lib/vasnprintf.c: Remove trailing blanks.
65667
65668 2003-08-17  Simon Josefsson  <jas@extundo.com>
65669
65670         * modules/xstrndup: New file.
65671         * MODULES.html.sh (func_all_modules): Add xstrndup.
65672
65673 2003-08-17  Simon Josefsson  <jas@extundo.com>
65674
65675         * modules/argp: Fix autoconf macro name. Add more dependencies.
65676
65677 2003-08-17  Simon Josefsson  <jas@extundo.com>
65678
65679         * m4/xstrndup.m4: New file.
65680
65681 2003-08-17  Simon Josefsson  <jas@extundo.com>
65682
65683         * m4/argp.m4: New file.
65684
65685 2003-08-17  Simon Josefsson  <jas@extundo.com>
65686             Bruno Haible  <bruno@clisp.org>
65687
65688         * lib/xstrndup.h: New file.
65689         * lib/xstrndup.c: New file.
65690
65691 2003-08-17  Bruno Haible  <bruno@clisp.org>
65692
65693         * modules/strndup (Files, Include): Add lib/strndup.h.
65694
65695 2003-08-17  Bruno Haible  <bruno@clisp.org>
65696
65697         * modules/euidaccess (Files): Add lib/euidaccess.h.
65698
65699 2003-08-17  Bruno Haible  <bruno@clisp.org>
65700
65701         * lib/strndup.h: New file.
65702
65703 2003-08-17  Bruno Haible  <bruno@clisp.org>
65704
65705         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
65706         like AC_GNU_SOURCE.
65707         * modules/extensions (configure.ac): Comment out the invocation of
65708         gl_USE_SYSTEM_EXTENSIONS.
65709
65710 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65711
65712         Merges from coreutils, etc.
65713         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
65714         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
65715         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
65716         fixing a typo.
65717         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
65718         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
65719
65720 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65721
65722         Document merge from coreutils.
65723         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
65724         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
65725         * modules/utime: Add m4/utimes-null.m4.
65726
65727 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65728
65729         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
65730         space, undoing this 2003-08-12 change:
65731         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65732
65733 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65734
65735         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
65736         strtoul.c from libc, undoing this 2003-08-12 change:
65737         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65738
65739 2003-08-16  Jim Meyering  <jim@meyering.net>
65740
65741         Merges from coreutils.
65742         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
65743         prefix.  Adjust cache variables similarly.  Create 500 rather than
65744         just 300 files, to exercise bug on Darwin6.5, too.
65745         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
65746         $missing_dir.
65747         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
65748         AM_SYS_POSIX_TERMIOS.
65749         Reported by mkc@mathdogs.com.
65750         Also change use of $am_cv_sys_posix_termios
65751         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
65752         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
65753         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
65754         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
65755         in /proc/mounts until it finds one with matching device number.  This
65756         is unnecessary when the FILE argument *is* a mount point.  No stat call
65757         is necessary in that case.  So, disable the statvfs-testing code on
65758         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
65759         as RedHat bug# 84846.
65760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65761         to 1MB, so as not to render systems with no stack size limit (e.g.,
65762         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65763         Include <unistd.h>.  On some systems,
65764         it is required for the definition of _SC_PAGESIZE.
65765
65766 2003-08-16  Jim Meyering  <jim@meyering.net>
65767
65768         Merge from coreutils.
65769         * lib/xstrtoimax.c: #else #if -> #elif.
65770         * lib/xstrtoumax.c: Likewise.
65771
65772 2003-08-16  Jim Meyering  <jim@meyering.net>
65773
65774         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
65775         * m4/utimes.m4: Removed.
65776         * m4/utimes-null.m4: Renamed from utimes.m4.
65777
65778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65779         to 1MB, so as not to render systems with no stack size limit (e.g.,
65780         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65781         Include <unistd.h>.  On some systems,
65782         it is required for the definition of _SC_PAGESIZE.
65783
65784 2003-08-16  Jim Meyering  <jim@meyering.net>
65785         and Paul Eggert  <eggert@cs.ucla.edu>
65786
65787         Merges from coreutils, etc.
65788
65789         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
65790         using the latest version from cvs.  This avoids problems with #line
65791         directives using a vendor (Sun) compiler.
65792         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
65793         Don't set GETGROUPS_LIB here; now it's
65794         done via getgroups.m4's wrapper function.
65795         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
65796         rather than just in sh-util/configure.in, so that the
65797         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
65798         same.
65799         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
65800         AC_FUNC_GETLOADAVG where to find getloadavg.c.
65801         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
65802         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
65803         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
65804         Remove code that is now done by the newly-required macros.
65805         Append $(EXEEXT) to DF_PROG.
65806         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
65807         Do not invoke or require the following here,
65808         since prereq.m4 or some gnulib .m4 now does this for us:
65809         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
65810         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
65811         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
65812         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
65813         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
65814         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
65815         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
65816         AC_FUNC_OBSTACK.
65817         Do not replace the following functions, as this is now the job
65818         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
65819         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
65820         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
65821         atexit getpass, strdup, getpagesize.
65822         Replace 'raise'.
65823         Do not check for the following functions, as this is now the job
65824         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
65825         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
65826         setregid.
65827         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
65828         Check for sys/sysctl.h.
65829         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
65830         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
65831         of checking for ssize_t ourselves.
65832
65833         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
65834         Require every macro that gnulib/modules/* suggests for us.
65835         (jm_PREREQ_ADDEXT): New macro.
65836         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
65837         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65838
65839         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65840         (gl_PHYSMEM): Use it.
65841         Also check for `table' function.
65842         Check for new headers and functions.
65843         Add check for sys/sysmp.h.
65844         With suggestions from Kaveh Ghazi.
65845         Ignore headers that are present but cannot be compiled.  This
65846         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65847         C 5.4.
65848
65849 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65850
65851         Document merge from coreutils.
65852         * modules/userspec: Depend on posixver.
65853         * modules/strftime: Depend on tzset.
65854
65855 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65856
65857         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65858         rather than tab, after '#' in shell-script copyright notices.
65859         Suggested by Bruno Haible.
65860
65861 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65862
65863         * config/srclist-update: Use three spaces, rather than tab, after '#'
65864         in shell-script copyright notices.  Suggested by Bruno Haible.
65865         Remove unnecessary parenthesization in regular expression.
65866
65867 2003-08-15  Jim Meyering  <jim@meyering.net>
65868
65869         Merge from coreutils.
65870         * lib/xgethostname.c: Include <stdlib.h>.
65871         (xghostname): Don't exit for anything other than memory-related
65872         failure; just return NULL.
65873         * lib/userspec.c: Include "posixver.h".
65874         (parse_user_spec): Accept `.' as a separator only
65875         in pre-POSIX-200112 mode.
65876         * lib/strtoimax.c: Use #elif rather than #else #if.
65877         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65878         Remove function, now that we can rely on a working tzset function.
65879         [!_LIBC]: Ensure that the required autoconf test has been run.
65880         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65881         Use underlying_strftime for %r.
65882         * lib/sha.c: Merge in some clean-up and optimization changes from
65883         glibc.
65884         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65885         Ensure that it is a multiple of 64.
65886         Rearrange loop exit tests so as to avoid performing an
65887         additional fread after encountering an error or EOF.
65888         * lib/realloc.c: Update copyright date.
65889
65890 2003-08-15  Jim Meyering  <jim@meyering.net>
65891         and Paul Eggert  <eggert@twinsun.com>
65892
65893         Merge from coreutils.
65894         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65895         member but strut utmpx does not.  Needed for AIX 4.3.3.
65896         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65897
65898 2003-08-15  Jim Meyering  <jim@meyering.net>
65899         and Paul Eggert  <eggert@cs.ucla.edu>
65900
65901         Merges from coreutils, etc.
65902         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65903         Require gl_FUNC_TZSET_CLOBBER.
65904         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65905         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65906         members.
65907
65908 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65909
65910         Help the merge from coreutils.
65911         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65912         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65913         * m4/tzset.m4: Use it too.
65914
65915 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65916
65917         * modules/tzset: New file.
65918
65919 2003-08-14  Jim Meyering  <jim@meyering.net>
65920
65921         Merges from coreutils.
65922         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65923         variable names, rather than @FNMATCH_H@.
65924         * modules/alloca: Likewise for $(ALLOCA_H).
65925
65926         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65927         the three copies of the literal target, `fnmatch.h'.
65928         * modules/alloca (alloca.h): Likewise.
65929
65930 2003-08-14  Jim Meyering  <jim@meyering.net>
65931
65932         Merge from coreutils.
65933         * m4/tzset.m4: New file.
65934         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65935         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65936         otherwise, AIX 5.1 systems would end up using the latter.
65937         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65938         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65939         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65940         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65941
65942 2003-08-14  Jim Meyering  <jim@meyering.net>
65943
65944         Merge from coreutils.
65945         * lib/obstack.h: Whitespace changes.
65946         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65947         and xcalloc return values.
65948         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65949         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65950         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65951         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65952         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65953         error from mntctl.
65954         Use mntctl's return value to drive the entry-processing loop, since
65955         we can't rely on the value of the vmt_length member in the last
65956         entry.  On some systems doing so could result in exhausting
65957         virtual memory.  Based in part on a patch from Mike Jetzer.
65958
65959 2003-08-14  Jim Meyering  <jim@meyering.net>
65960         and Paul Eggert  <eggert@twinsun.com>
65961
65962         Merges from coreutils, plus other fixes.
65963         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65964         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65965         for credits and details.  Thanks to Kaveh Ghazi for helping
65966         to keep these files in sync.
65967         (ARRAY_SIZE): Define it.
65968         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65969         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65970         (memcasecmp): Don't assume size_t fits in unsigned int.
65971         Remove casts and duplicate code.
65972         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65973         (memcpy): Remove definition.
65974         Merge in some clean-up and optimization changes from glibc.
65975         [BLOCKSIZE]: Move definition to top of file.
65976         Ensure that it is a multiple of 64.
65977         Rearrange loop exit tests so as to avoid performing an
65978         additional fread after encountering an error or EOF.
65979         * lib/md5.h (md5_uintptr): Define.
65980         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65981         return to the initial working directory.  Preserve errno
65982         for caller.
65983         * lib/idcache.c: Include "xalloc.h".
65984         (xmalloc, xrealloc): Remove decls.
65985         (getuser): Remove casts no longer required in C89.
65986         * lib/human.c: Include stdio.h, for sprintf.
65987         * lib/group-member.c: Include "xalloc.h".
65988         (xmalloc, xrealloc): Remove decls.
65989         (get_group_info): Remove casts no longer required in C89.
65990         * lib/getusershell.c (readname): Remove casts no longer required in
65991         C89.
65992         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65993         * lib/getline.c: Whitespace fix, from coreutils.
65994
65995 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65996
65997         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65998         Check for isascii.
65999
66000         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66001         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66002         Undo previous (whitespace-only) change.
66003
66004 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66005
66006         * lib/exclude.c: Include <ctype.h>
66007         (IN_CTYPE_DOMAIN): New macro.
66008         (is_space): New fn.
66009         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
66010         and empty lines.
66011
66012         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66013         Undo previous (whitespace-only) change.
66014
66015 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66016
66017         * config/srclist-update: Change update back to the old behavior,
66018         leaving whitespace alone.  Use one 'sed' command rather than a
66019         pipeline.
66020         (fixlicense): Now a variable, not a function.
66021         (remove_trailing_blanks): Remove.
66022         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
66023         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66024         Undo previous (whitespace-only) change.
66025
66026 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66027
66028         Merge from coreutils.
66029         * modules/euidaccess: Add lib_SOURCES, include for new
66030         file euidaccess.h
66031
66032 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66033
66034         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66035         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66036         Normalize leading white space and remove trailing white space.
66037
66038         Merge from coreutils
66039         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
66040
66041         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
66042         0.12.1.  These files are now being upgraded automatically by
66043         ../config/srclist-update.
66044
66045 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66046
66047         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66048         Normalize leading white space and remove trailing white space.
66049         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
66050         notice, as per ../config/srclist-update.
66051
66052         Merge from coreutils.
66053         * lib/euidaccess.h: New file.
66054         * lib/euidaccess.c: Include it.
66055         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
66056         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
66057         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
66058
66059 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66060
66061         * config/srclist-update: Add copyright notice.
66062         (remove_id_lines, remove_trailing_blanks): New constants.
66063         (fixfile): Use them to normalize spacing a bit in copied files.
66064         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66065         Normalize leading white space and remove trailing white space.
66066
66067         * config/texinfo.tex: Sync with texinfo.
66068
66069         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
66070         strtoul.c from libc, to merge coreutils whitespace changes.
66071
66072         * config/srclist.txt: Get the following m4 files from gettext:
66073         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
66074         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
66075         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
66076         wint_t.m4.
66077
66078 2003-08-12  Karl Berry  <karl@gnu.org>
66079
66080         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
66081         been made.
66082
66083 2003-08-11  Paul Eggert  <eggert@twinsun.com>
66084
66085         * modules/gnu-source, m4/gnu-source.m4:
66086         Remove; we're assuming Autoconf 2.54 or later now.
66087         Suggested by Bruno Haible.
66088         * MODULES.html.sh (func_all_modules): Remove gnu-source.
66089
66090 2003-08-11  Bruno Haible  <bruno@clisp.org>
66091
66092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
66093
66094 2003-08-11  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
66097         (vasnprintf): Use it instead of wcslen.
66098
66099 2003-08-11  Bruno Haible  <bruno@clisp.org>
66100
66101         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
66102         value to ensure that _Bool promotes to int. Use #define for _Bool when
66103         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
66104
66105 2003-08-10  Karl Berry  <karl@gnu.org>
66106
66107         * lib/regex.h: update from libc (whitespace fix).
66108
66109 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66110
66111         Merge some files from coreutils.  These changes were
66112         originally made by Jim Meyering.
66113         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
66114         many older Unixes require this.
66115         * lib/alloca.c (alloca): Remove cast to argument of free;
66116         no longer needed in C89.
66117         * lib/alloca_.h, regex.h: Fix white space to match
66118         what GNU indent does.
66119
66120 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66121
66122         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
66123         apparently Emacs's Unicode mode got confused before my 2003-08-05
66124         checkin.
66125
66126 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66127
66128         * m4/extensions.m4: New file.
66129         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
66130         Require gl_USE_SYSTEM_EXTENSIONS.
66131         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
66132         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
66133
66134 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66135
66136         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
66137         * modules/extensions, modules/gnu-source: New files.
66138         * modules/timespec, modules/unlocked-io: Depend on extensions.
66139
66140 2003-08-07  Paul Eggert  <eggert@twinsun.com>
66141
66142         * modules/restrict: New file.
66143         * MODULES.html.sh (func_all_modules): Add restrict.
66144         * modules/regex: Depend on restrict.
66145
66146 2003-08-07  Paul Eggert  <eggert@twinsun.com>
66147
66148         * m4/restrict.m4: New file.
66149         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
66150
66151 2003-08-07  Bruno Haible  <bruno@clisp.org>
66152
66153         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
66154         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
66155
66156 2003-08-07  Bruno Haible  <bruno@clisp.org>
66157
66158         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
66159         makes the module 'getndelim2' compatible with the module 'getline'.
66160
66161 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66162
66163         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
66164         byte with "\201" to avoid glitches when editing that source file
66165         with multi-gnome-terminal.
66166
66167 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66168
66169         * lib/bumpalloc.h: Remove.
66170
66171 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66172
66173         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
66174         * modules/bumpalloc: Remove.
66175
66176 2003-08-04  Paul Eggert  <eggert@twinsun.com>
66177
66178         * lib/getloadavg.c: Change copyright notice and spacing to conform to
66179         GNU coding style.
66180
66181         Merge from coreutils.
66182         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
66183         1. From glibc.
66184         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
66185         from Karl Berry, implemented by Jim Meyering.
66186         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
66187         from Dmitry V. Levin.
66188         Remove anachronistic cast of xrealloc.
66189         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
66190         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
66191         type. Otherwise, it wouldn't compile with at least /bin/cc on
66192         ymp-cray-unicos9.0.2.X.
66193         Combine two mostly-identical uses of alloca into one.
66194         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
66195
66196 2003-08-04  Dave Love  <d.love@dl.ac.uk>
66197
66198         [From Emacs.]
66199
66200         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
66201         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
66202         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
66203         obsolete NLIST_NAME_UNION.
66204         [__GNU__]: Undef BSD and FSCALE.
66205         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
66206
66207 2003-08-03  Paul Eggert  <eggert@twinsun.com>
66208
66209         * lib/stdbool_.h (_Bool): Make it signed char, instead of
66210         an enum type, so that it's guaranteed to promote to int.  See:
66211         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
66212
66213 2003-08-03  Karl Berry  <karl@gnu.org>
66214
66215         * config/depcomp: update from automake.
66216
66217 2003-07-31  Paul Eggert  <eggert@twinsun.com>
66218
66219         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
66220         (strerror): Don't assume that a printable int fits in 14 bytes.
66221
66222 2003-07-31  Bruno Haible  <bruno@clisp.org>
66223
66224         * modules/getpass-gnu: New file.
66225         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
66226
66227 2003-07-31  Bruno Haible  <bruno@clisp.org>
66228
66229         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
66230
66231 2003-07-24  Karl Berry  <karl@gnu.org>
66232
66233         * config/missing: update from automake.
66234
66235 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
66236             Bruno Haible  <bruno@clisp.org>
66237
66238         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
66239         * lib/getline.c (getline, getdelim): Likewise.
66240         Remove _GNU_SOURCE define; now it's defined in config.h through
66241         m4/getline.m4.
66242
66243 2003-07-23  Karl Berry  <karl@gnu.org>
66244
66245         * config/config.sub: update from prep.
66246
66247 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66248
66249         * modules/xalloc (Depends-on): Add exitfail.
66250         * modules/xmemcoll: Likewise.
66251
66252 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66253
66254         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
66255         over-parenthesization in macros.
66256
66257         Sync with coreutils.
66258
66259         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
66260         required by C99.
66261
66262         Use `exit_failure' for xalloc and xmemcoll instead of their own
66263         private exit-failure variables.
66264         * lib/xalloc.h (xalloc_exit_failure): Remove.
66265         * lib/xmalloc.c: Likewise.  Include exitfail.h.
66266         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
66267         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
66268         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
66269         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
66270
66271 2003-07-20  Jim Meyering  <jim@meyering.net>
66272
66273         * modules/closeout (Depends-on): Add exitfail.
66274         Suggestion from Bruno Haible.
66275
66276 2003-07-19  Karl Berry  <karl@gnu.org>
66277
66278         * config/config.sub: update from prep.
66279
66280 2003-07-18  Paul Eggert  <eggert@twinsun.com>
66281
66282         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
66283         Remove.
66284         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
66285         to test that it can stand by itself.  Include "exitfail.h".
66286         Clients should set exit_failure instead.
66287         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
66288
66289 2003-07-18  Bruno Haible  <bruno@clisp.org>
66290
66291         * modules/getndelim2: New file.
66292         * modules/getline: Share files with module getndelim2.
66293         * modules/getnline: Depend on getndelim2 instead of sharing files with
66294         it. Add getnline.c to lib_SOURCES.
66295         * MODULES.html.sh (func_all_modules): Add getndelim2.
66296
66297 2003-07-18  Bruno Haible  <bruno@clisp.org>
66298
66299         * m4/getndelim2.m4: New file.
66300         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
66301         invoke gl_PREREQ_GETNDELIM2.
66302         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
66303         gl_PREREQ_GETNDELIM2.
66304         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
66305         gl_GETNDELIM2.
66306
66307 2003-07-18  Bruno Haible  <bruno@clisp.org>
66308
66309         * lib/getndelim2.h: New file.
66310         * lib/getndelim2.c: Make into a module of its own. Include config.h,
66311         getndelim2.h.
66312         (getndelim2): Make non-static. Change return type to ssize_t.
66313         * lib/getline.h: Change argument names.
66314         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
66315         * lib/getnline.c: Include getndelim2.h.
66316
66317 2003-07-18  Andreas Schwab  <schwab@suse.de>
66318
66319         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
66320
66321 2003-07-17  Karl Berry  <karl@gnu.org>
66322
66323         * config/config.sub: update from prep.
66324
66325 2003-07-17  Bruno Haible  <bruno@clisp.org>
66326
66327         * modules/getnline: New file.
66328         * modules/getline: Add lib/getndelim2.c to source file list.
66329         * MODULES.html.sh (func_all_modules): Add getnline.
66330
66331 2003-07-17  Bruno Haible  <bruno@clisp.org>
66332
66333         * m4/getnline.m4: New file.
66334
66335 2003-07-17  Bruno Haible  <bruno@clisp.org>
66336
66337         * m4/Makefile.am.in: Remove file.
66338         * m4/Makefile.am: Remove file.
66339         * m4/Makefile.in: Remove file.
66340
66341 2003-07-17  Bruno Haible  <bruno@clisp.org>
66342
66343         * lib/getnline.h: New file.
66344         * lib/getnline.c: New file.
66345         * lib/getndelim2.c: New file, extracted from getline.c.
66346         (getndelim2): Renamed from getdelim2, with added nmax argument.
66347         * lib/getline.c: Include getndelim2.c.
66348         (getdelim2): Moved out to getndelim2.c.
66349         (getline, getdelim): Update.
66350
66351 2003-07-17  Bruno Haible  <bruno@clisp.org>
66352
66353         * lib/Makefile.am: Remove file.
66354         * lib/Makefile.in: Remove file.
66355
66356 2003-07-17  Bruno Haible  <bruno@clisp.org>
66357
66358         * configure.in: Remove file.
66359         * Makefile.in: Remove file.
66360
66361 2003-07-17  Bruno Haible  <bruno@clisp.org>
66362
66363         * MODULES.html.sh: Put the </BODY> right before </HTML>.
66364
66365 2003-07-16  Karl Berry  <karl@gnu.org>
66366
66367         * config/srclist-update: was running fixlicense twice, which caused
66368                 texinfo.tex to be nullified for some reason.  Simplify,
66369                 $gplsrc is no longer needed as far as I can see?
66370
66371 2003-07-16  Jim Meyering  <jim@meyering.net>
66372
66373         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
66374
66375 2003-07-15  Paul Eggert  <eggert@twinsun.com>
66376
66377         * config/srclist.txt: Get the following files from gettext-runtime/intl
66378         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
66379         ref-del.sin.  From Bruno Haible.
66380         * config/srclist-update (fixfile): Change grep pattern again, since the
66381         previous fix didn't work (there was another trailing $).  Use
66382         '[$]' to escape the $s.
66383
66384 2003-07-15  Karl Berry  <karl@gnu.org>
66385
66386         * lib/vasnprintf.c: update from gettext.
66387
66388 2003-07-15  Karl Berry  <karl@gnu.org>
66389
66390         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
66391         gets expanded when surrounded by '$'.
66392
66393 2003-07-15  Jim Meyering  <jim@meyering.net>
66394
66395         * modules/save-cwd: Don't depend on error.  From Derek Price.
66396
66397 2003-07-15  Jim Meyering  <jim@meyering.net>
66398
66399         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66400
66401 2003-07-14  Simon Josefsson  <jas@extundo.com>
66402
66403         * modules/mempcpy: New file.
66404         * MODULES.html.sh (func_all_modules): Add mempcpy.
66405
66406 2003-07-14  Simon Josefsson  <jas@extundo.com>
66407
66408         * m4/mempcpy.m4: New file.
66409
66410 2003-07-14  Simon Josefsson  <jas@extundo.com>
66411
66412         * lib/mempcpy.h: New file.
66413         * lib/mempcpy.c: New file.
66414
66415 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66416
66417         * modules/getdate, modules/posixtm: Depend on mktime.
66418
66419 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66420
66421         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66422         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66423         unicodeio.c, unicodeio.h, unlocked-io.h:
66424         Switch from LGPL to GPL.
66425
66426 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66427
66428         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66429         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66430         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66431         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66432         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66433         updated automatically by ../config/srclist-update.  This changes
66434         their license from LPGL to GPL.
66435
66436 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66437
66438         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66439         assumed to refer to the root of the most recent stable gettext version.
66440         * config/srclistvars.sh: Add defaults for eggert.
66441         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66442         Match "This program" as well as "The program".  This is needed
66443         for gettext.
66444
66445 2003-07-14  Jim Meyering  <jim@meyering.net>
66446
66447         Don't emit diagnostics.  Let callers do that.
66448         * lib/save-cwd.c: Don't include "error.h".
66449         (save_cwd): Don't call error.  Ensure that errno is valid
66450         when returning nonzero.
66451
66452         * lib/save-cwd.h (restore_cwd): Update prototype.
66453         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66454         Simplify.  Don't call error upon failure.  Let callers do that.
66455         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66456         when auditing is enabled.  But don't bother updating the #if.
66457
66458 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66459
66460         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66461         it breaks C++ compilation.
66462         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66463
66464 2003-07-10  Simon Josefsson  <jas@extundo.com>
66465
66466         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66467
66468 2003-07-10  Jim Meyering  <jim@meyering.net>
66469
66470         * m4/clock_time.m4: Remove trailing blank.
66471         * m4/intmax_t.m4: Likewise.
66472
66473 2003-07-10  Jim Meyering  <jim@meyering.net>
66474
66475         * lib/vasnprintf.c: Remove trailing blanks.
66476         Make cpp indentation consistent.
66477
66478 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66479
66480         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66481         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66482         Switch from LGPL to GPL.
66483
66484 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66485
66486         * config/srclist.txt: Sort sublists.  Add
66487         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66488         that differ from gnulib for one reason or another; we'd like this list
66489         to be smaller but for now let's document what we have.
66490
66491 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66492
66493         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66494         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66495         and sweeter "eval x=$x".
66496         * config/srclist.txt: Get lib/argp* from glibc.
66497
66498 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66499
66500         * lib/mktime.c: Fix some boundary cases and remove need for floating
66501         point.
66502
66503         Issue a compile-time diagnostic if time_t is floating point, or if
66504         two's complement arithmetic is not in effect, or if arithmetic
66505         right shift does not propagate the sign.  These assumptions were
66506         all in the original code but they weren't checked.
66507
66508         (TIME_T_MIDPOINT, verify): New macros.
66509         (__isleap): Remove; it has integer overflow problems.
66510         (leapyear): New function, without those problems.
66511         (ydhms_tm_diff): Remove; splitting into two parts.
66512         (ydhms_diff): New function, containing the arithmetic part of
66513         the old ydhms_tm_diff function.  Issue a compile-time
66514         diagnostic if we are not using C99 integer division.
66515         Avoid casts when possible.
66516         (guess_time_tm): New function, containing the checking part of
66517         the old ydhms_tm_diff function.  Return the new value, rather than
66518         the difference between it and the old.  Accept a new argument T
66519         so that *T specifies the old value.  Check for overflow in the result.
66520
66521         (__mktime_internal): Use a time_t offset, not a long int offset.
66522         This undoes the 2003-06-04 change, which is no longer needed now
66523         that we have better overflow checking.
66524         (localtime_offset): Likewise.
66525
66526         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66527         and long are 64-bit but int is only 32-bit.
66528         (ydhms_diff): Use long int to store year1 and yday1.
66529         Issue a compile-time diagnostic if long int is not wide enough.
66530
66531         (__mktime_internal): Use long int to store adjusted year and yday.
66532         Use plain C rather than preprocessor commands, if that doesn't
66533         affect efficiency.
66534         Check for overflow (and try to repair) after each probe
66535         rather than checking only at the very end.  This avoids some bugs
66536         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66537         does not equal GMT offset at maximum time).
66538         Use integer to check for overflow rather than floating point; this
66539         is more portable to non-IEEE hosts, and is a tad faster.
66540         When we detect that we are oscillating between two values,
66541         don't check whether tm_isdst has the requested value, since
66542         we already know the answer.  When tm_isdst has the wrong value,
66543         use a different heuristic to find the right one, based on the
66544         extreme values actually observed in practice in tz2003a,
66545         rather than the (overly optimistic) "previous 3 calendar quarters".
66546
66547         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66548         "T const" to accommodate glibc style.
66549         (check_result): Use less-confusing report format.  "long" -> "long int.
66550         (main): Likewise.
66551         Don't loop if the iteration overflows time_t.
66552         Allow a negative step in the iteration.
66553
66554 2003-07-06  Karl Berry  <karl@gnu.org>
66555
66556         * config/depcomp: update from automake.
66557         * config/config.sub: update from prep.
66558
66559 2003-07-03  Karl Berry  <karl@gnu.org>
66560
66561         * config/config.guess: update from prep.
66562
66563 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66564
66565         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66566         xreadlink.c now includes it unconditionally.
66567
66568 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66569
66570         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66571         having it depend on HAVE_SYS_TYPES_H.
66572
66573 2003-07-01  Bruno Haible  <bruno@clisp.org>
66574
66575         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66576         <sys/types.h> should be sufficient.
66577         Reported by Paul Eggert.
66578
66579 2003-06-26  Karl Berry  <karl@gnu.org>
66580
66581         * config/depcomp: update from automake.
66582
66583 2003-06-26  Bruno Haible  <bruno@clisp.org>
66584
66585         * modules/human: Depend on module stdbool.
66586
66587 2003-06-25  Bruno Haible  <bruno@clisp.org>
66588
66589         * modules/readlink: New file.
66590         * modules/xreadlink: Depend on it.
66591         * MODULES.html.sh (func_all_modules): Add readlink.
66592
66593 2003-06-25  Bruno Haible  <bruno@clisp.org>
66594
66595         * m4/readlink.m4: New file.
66596
66597 2003-06-25  Bruno Haible  <bruno@clisp.org>
66598
66599         * lib/readlink.c: New file.
66600
66601 2003-06-22  Karl Berry  <karl@gnu.org>
66602
66603         * config/srclist.txt: update mkinstalldirs from automake.
66604         * config/mkinstalldirs: update.
66605
66606 2003-06-22  Bruno Haible  <bruno@clisp.org>
66607
66608         Portability to mingw32.
66609         * m4/ssize_t.m4: New file, from GNU gettext.
66610         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66611         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66612
66613 2003-06-22  Bruno Haible  <bruno@clisp.org>
66614
66615         * modules/safe-read: Add m4/ssize_t.m4.
66616         * modules/xreadlink: Add m4/ssize_t.m4.
66617
66618 2003-06-20  Bruno Haible  <bruno@clisp.org>
66619
66620         Assume C89, so PARAMS isn't needed.
66621         * lib/unicodeio.h (PARAMS): Remove.
66622         * lib/unicodeio.c: Don't use PARAMS.
66623
66624 2003-06-18  Karl Berry  <karl@gnu.org>
66625
66626         * config/config.{guess,sub}: update from prep.
66627
66628 2003-06-18  Jim Meyering  <jim@meyering.net>
66629
66630         Merge changes from coreutils.
66631         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66632         Remove explicit declarations of xmalloc and realloc.
66633         Include xalloc.h.
66634         (read_utmp): Remove anachronistic cast of xmalloc.
66635
66636 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66637
66638         Assume C89, so PARAMS isn't needed.
66639         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66640         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66641         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66642         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66643         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66644         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66645         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66646         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66647         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66648         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66649         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66650         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66651         no longer needed. Anyway, config.h should always be included before any
66652         other file.
66653
66654 2003-06-11  Simon Josefsson  <jas@extundo.com>
66655
66656         * modules/sysexits: New file.
66657         * MODULES.html.sh (func_all_modules): Add sysexits.
66658
66659 2003-06-11  Simon Josefsson  <jas@extundo.com>
66660
66661         * lib/sysexit_.h: New file.
66662
66663 2003-06-11  Derek Price  <derek@ximbiot.com>
66664
66665         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66666         necessary.
66667
66668 2003-06-11  Bruno Haible  <bruno@clisp.org>
66669
66670         * m4/sysexits.m4: New file.
66671
66672 2003-06-10  Simon Josefsson  <jas@extundo.com>
66673
66674         * lib/argp.h: New file, from glibc.
66675         * lib/argp-ba.c: New file, from glibc.
66676         * lib/argp-eexst.c: New file, from glibc.
66677         * lib/argp-fmtstream.c: New file, from glibc.
66678         * lib/argp-fmtstream.h: New file, from glibc.
66679         * lib/argp-fs-xinl.c: New file, from glibc.
66680         * lib/argp-help.c: New file, from glibc.
66681         * lib/argp-namefrob.h: New file, from glibc.
66682         * lib/argp-parse.c: New file, from glibc.
66683         * lib/argp-pv.c: New file, from glibc.
66684         * lib/argp-pvh.c: New file, from glibc.
66685         * lib/argp-xinl.c: New file, from glibc.
66686
66687 2003-06-10  Simon Josefsson  <jas@extundo.com>
66688
66689         * modules/strchrnul: New file.
66690
66691 2003-06-10  Simon Josefsson  <jas@extundo.com>
66692
66693         * modules/argp: New file.
66694
66695 2003-06-10  Simon Josefsson  <jas@extundo.com>
66696
66697         * m4/strchrnul.m4: New file.
66698
66699 2003-06-10  Simon Josefsson  <jas@extundo.com>
66700
66701         * lib/strchrnul.h: New file.
66702         * lib/strchrnul.c: New file.
66703
66704 2003-06-10  Bruno Haible  <bruno@clisp.org>
66705
66706         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
66707
66708 2003-06-07  Karl Berry  <karl@gnu.org>
66709
66710         * config/config.{guess,sub}: update from prep.
66711
66712 2003-06-07  Jim Meyering  <jim@meyering.net>
66713
66714         * modules/strtod: Use $(...) notation, not @...@ for
66715         AC_REPLACE'd variables.
66716         * modules/localcharset: Likewise.
66717
66718 2003-06-07  Jim Meyering  <jim@meyering.net>
66719
66720         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
66721         in place of my name in the copyright comment.
66722         Remove definition and uses of __P.
66723
66724         From coreutils.
66725         * lib/stat.c: Don't declare xmalloc explicitly.
66726         Instead, include "xalloc.h".
66727         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
66728         xrealloc, and xcalloc return values.
66729         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
66730         Improve comment.
66731         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
66732
66733 2003-06-07  Bruno Haible  <bruno@clisp.org>
66734
66735         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
66736         avoid AC_CONFIG_LINKS.
66737         * modules/fnmatch (Makefile.am): Use explicit creation rule for
66738         fnmatch.h, to avoid AC_CONFIG_LINKS.
66739         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
66740
66741 2003-06-07  Bruno Haible  <bruno@clisp.org>
66742
66743         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
66744         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
66745         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66746         directory.
66747         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
66748         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66749         directory.
66750
66751 2003-06-06  Jim Meyering  <jim@meyering.net>
66752
66753         Merge from coreutils.
66754         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
66755         Consolidate declarations and initializations of *_base* locals.
66756
66757         Merge from coreutils.
66758         This avoids a core dump on systems without GNU putenv,
66759         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
66760         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
66761         (unsetenv): New static function, from GNU libc.
66762         (rpl_putenv): Use it.
66763
66764         * lib/modechange.c: Remove trailing blanks.
66765
66766         Merge from coreutils.
66767         * lib/fsusage.c: Remove declaration of statfs.
66768         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
66769
66770         * lib/posixtm.c: Include <stdbool.h> unconditionally.
66771
66772 2003-06-06  Jim Meyering  <jim@meyering.net>
66773
66774         * lib/stdbool_.h: Renamed from stdbool.h.in.
66775
66776 2003-06-06  Jim Meyering  <jim@meyering.net>
66777             Bruno Haible  <bruno@clisp.org>
66778
66779         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
66780         Adjust Makefile.am snippet not to redirect directly to target.
66781         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
66782
66783 2003-06-05  Paul Eggert  <eggert@twinsun.com>
66784
66785         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
66786         mismatch, look in future quarters as well as past.  This fixes a
66787         bug when processing fall-backwards gaps immediately after a long
66788         period of daylight-saving time.
66789
66790         * lib/mktime.c: Assume freestanding C89 or better.
66791         (HAVE_LIMITS_H): Remove.  Assume it's 1.
66792         (__P): Remove; not used.
66793         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
66794         (mktime, not_equal_tm, print_tm, check_result,
66795         main): Use prototypes.  Use const * where appropriate.
66796         (main): Fix typo in testing code that uncovered by above changes.
66797         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
66798
66799 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66800
66801         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
66802         locale.h, localeconv.  This merges changes from coreutils.
66803
66804         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
66805         It can be removed after the next Autoconf is released.
66806         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
66807         needed.
66808
66809 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66810
66811         * lib/mktime.c: Fix Debian bug 177940
66812         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
66813         (localtime_offset): Now long int, not time_t, because we want it
66814         to be guaranteed to be signed.  All uses changed.
66815         (__mktime_internal): If overflow would occur when adding offset,
66816         don't add it.
66817
66818         Merge 'human' changes from coreutils.  Rewrite to support
66819         locale-specific notations like thousands separators.
66820         * lib/human.c: Simplify authorship notice.
66821         Include human.h immediately after config.h.
66822         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
66823         <limits.h>: Do not include, since human.h does.
66824         (SIZE_MAX, UINTMAX_MAX): New macros.
66825         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
66826         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
66827         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
66828         (power_letter): Renamed from suffixes.
66829         (generate_suffix_backwards): Remove.
66830         (adjust_value): Now takes int style (because of human.h changes)
66831         and long double value (for greater precision on some platforms).
66832         (group_number): New function.
66833         (human_readable): Use it.  Use integer options, not enum.
66834         Put the options before the sizes in the arg list.
66835         Support all the new options.
66836         The old human_readable function has been removed;
66837         use inttostr.h instead.
66838         (human_readable, default_block_size, humblock):
66839         Use uintmax_t, not int, for block sizes.
66840         (human_readable_inexact, block_size_types): Remove.
66841         (block_size_opts): New constant.
66842         (human_options): Renamed from human_block_size, with new signature
66843         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66844         * lib/human.h: Add copyright and authorship notice.
66845         Include <limits.h> and <stdbool.h> unconditionally.
66846         (PARAMS): Remove.  All uses removed.
66847         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66848         (enum human_inexact_style): Remove tag; now a nameless enum.
66849         (human_floor, human_ceiling, human_round_to_even): Now have
66850         values 2, 0, 1 rather than -1, 1, 0.
66851         (human_group_digits, human_suppress_point_zero, human_autoscale,
66852         human_base_1024, human_SI, human_B): New constants.
66853         (human_readable_inexact, human_block_size): Remove.
66854         (human_readable): Size args are now uintmax_t, not int.
66855         (human_options): New decl.
66856
66857         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66858         unnecessary now that we assume C89 or better.  This change
66859         imported from coreutils.
66860
66861         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66862         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66863         in the 2003-05-30 sync from glibc.
66864
66865         .h files should stand alone, but we shouldn't include <sys/types.h>
66866         if we can get away with just <stddef.h>.
66867
66868         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66869         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66870         rather than <sys/types.h>, as we merely need size_t.
66871         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66872         to get size_t.
66873         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66874         Include <stdio.h>, to get FILE.
66875         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66876         memcasecmp.h has included <stddef.h> and all we need is size_t.
66877         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66878         our interface, instead of including <sys/types.h>
66879
66880 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66881
66882         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66883         now, as glibc mktime is buggy on non-glibc systems.
66884
66885 2003-06-03  Karl Berry  <karl@gnu.org>
66886
66887         * config/config.sub: update from prep.
66888
66889 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66890
66891         [from coreutils]
66892         Fix some minor time-related bugs with POSIX time arguments.
66893         Some valid time stamps were being rejected (notably -1, and
66894         time stamps before 1900 on 64-bit hosts).  And some invalid
66895         time stamps were being accepted, e.g. September 31.
66896
66897         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66898         that we can return (time_t) -1 successfully.
66899         * lib/posixtm.c: Likewise.
66900         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66901         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66902         (t): Remove static var.
66903         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66904         of static var.  All uses changed.
66905         (year): Do not reject years before 1900; they can occur with
66906         64-bit time_t.
66907         (posix_time_parse): Do not check for out-of-range components;
66908         that is now the caller's responsibility, since our checks were
66909         only approximations.
66910         (posixtime): Use mktime to check for out-of-range components,
66911         since it knows them exactly.
66912         If mktime returns (time_t) -1, check whether an error actually occurred
66913         by invoking localtime on -1.
66914         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66915         posixtime failures better.
66916         Improve the test data (in comments only).
66917
66918 2003-06-02  Karl Berry  <karl@gnu.org>
66919
66920         * config/mkinstalldirs (version): new variable.
66921         (--version): new option.
66922         (usage): improve message.
66923
66924 2003-05-30  Karl Berry  <karl@gnu.org>
66925
66926         * lib/mktime.c: update from libc.
66927
66928 2003-05-30  Bruno Haible  <bruno@clisp.org>
66929
66930         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66931         * config/config.rpath: Upgrade to gettext-0.12.1.
66932
66933 2003-05-30  Bruno Haible  <bruno@clisp.org>
66934
66935         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66936         * m4/nls.m4: New file, from gettext-0.12.1.
66937         * m4/po.m4: New file, from gettext-0.12.1.
66938         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66939
66940 2003-05-30  Bruno Haible  <bruno@clisp.org>
66941
66942         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66943         * lib/localcharset.h: Likewise.
66944         * lib/localcharset.c: Likewise.
66945
66946 2003-05-29  Karl Berry  <karl@gnu.org>
66947
66948         * config/config.rpath: update from gettext.
66949
66950 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66951
66952         Assume the headers required for C89 freestanding compilers.
66953         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66954         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66955         * m4/human.m4 (gl_HUMAN): Likewise.
66956         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66957         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66958         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66959         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66960         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66961         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66962
66963 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66964
66965         Assume the headers required for C89 freestanding compilers.
66966         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66967         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66968         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66969         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66970         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66971         define, since <limits.h> is guaranteed to do that.
66972         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66973         * lib/exclude.c: Include <stdbool.h> unconditionally.
66974         * lib/tempname.c: Include <stddef.h> unconditionally.
66975         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66976         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66977         <stddef.h> does that.
66978         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66979         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66980         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66981         needed.
66982         * lib/xstrtol.c: Likewise.
66983         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66984         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66985
66986         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66987         warnings on some platforms.
66988
66989         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66990         arbitrarily.
66991
66992 2003-05-26  Jim Meyering  <jim@meyering.net>
66993
66994         Merge in a change from coreutils:
66995         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66996         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66997         that condition, rather than `-1' which is slightly misleading.
66998         Change the name of the cache variable to have the gl_ prefix.
66999         Prompted by a patch from Richard Dawe for DJGPP.
67000
67001 2003-05-24  Karl Berry  <karl@gnu.org>
67002
67003         * config/config.guess: update from prep.
67004
67005 2003-05-22  Karl Berry  <karl@gnu.org>
67006
67007         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
67008
67009 2003-05-20  Karl Berry  <karl@gnu.org>
67010
67011         * config/config.guess: update from prep.
67012
67013 2003-05-18  Karl Berry  <karl@gnu.org>
67014
67015         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
67016         might actually be set by the user.
67017
67018         * config/depcomp, install-sh, mdate-sh: update from automake.
67019
67020 2003-05-17  Bruno Haible  <bruno@clisp.org>
67021
67022         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
67023         invalid expansion for AC_EGREP_CPP.
67024         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
67025         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
67026         Suggested by Akim Demaille <akim@epita.fr> in
67027         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
67028
67029 2003-05-12  Jim Meyering  <jim@meyering.net>
67030
67031         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
67032         the space-padded-by-default conversion specifiers, %e, %k, %l.
67033
67034 2003-05-12  Bruno Haible  <bruno@clisp.org>
67035
67036         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
67037         the string is longer than 4 KB.
67038
67039 2003-05-11  Karl Berry  <karl@gnu.org>
67040
67041         * config/config.{guess,sub}: update from prep.
67042
67043 2003-05-09  Bruno Haible  <bruno@clisp.org>
67044
67045         * modules/error: Add m4/strerror_r.m4 to file list.
67046
67047 2003-05-03  Bruno Haible  <bruno@clisp.org>
67048
67049         Upgrade to Unicode-4.0.
67050         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
67051         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
67052         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
67053         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
67054         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
67055         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
67056         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
67057         Change width of U+E0100..U+E01EF from 1 to 0.
67058
67059 2003-04-25  Jim Meyering  <jim@meyering.net>
67060
67061         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
67062         of type size_t, not int.
67063
67064 2003-04-25  Bruno Haible  <bruno@clisp.org>
67065
67066         * lib/copy-file.c: Include <stddef.h>, for size_t.
67067
67068 2003-04-21  Paul Eggert  <eggert@twinsun.com>
67069
67070         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
67071         code which expansion is under static control.  Patch imported from
67072         Akim Demaille's patch to Bison; see
67073         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
67074
67075 2003-04-14  Bruno Haible  <bruno@clisp.org>
67076
67077         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
67078
67079 2003-04-11  Jim Meyering  <jim@meyering.net>
67080
67081         Merge changes from Coreutils.
67082
67083         2003-03-22  Jim Meyering  <jim@meyering.net>
67084
67085         * lib/strftime.c (widen): Cast alloca return value to proper type.
67086
67087         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
67088
67089         From GNU libc.
67090         * lib/strftime.c (my_strftime): Handle very large width
67091         specifications for numeric values correctly.  Improve checks for
67092         overflow.
67093
67094         2003-01-19  Jim Meyering  <jim@meyering.net>
67095
67096         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
67097         definitions.
67098         (nl_get_alt_digit) [! defined my_strftime]: Define.
67099         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
67100         _nl_get_alt_digit and _nl_get_walt_digit.
67101
67102         * lib/strftime.c (my_strftime): Merge in locale-related changes from
67103         libc. These changes have no effect outside of _LIBC.
67104
67105 2003-04-10  Bruno Haible  <bruno@clisp.org>
67106
67107         * modules/findprog: New file.
67108         * MODULES.html.sh (func_all_modules): Add it.
67109
67110 2003-04-10  Bruno Haible  <bruno@clisp.org>
67111
67112         * m4/findprog.m4: New file.
67113         * m4/eaccess.m4: New file.
67114
67115 2003-04-10  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/findprog.h: New file, from GNU gettext.
67118         * lib/findprog.c: New file, from GNU gettext.
67119
67120 2003-04-05  Jim Meyering  <jim@meyering.net>
67121
67122         Merge changes from Coreutils.
67123
67124         * lib/exclude.h (PARAMS): Remove definition and uses.
67125         * lib/exclude.c: Remove uses of `PARAMS'.
67126
67127         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
67128         Add test-cases for DOS filenames. Declare program_name.
67129         (main): Set up program_name.  Patch by Rich Dawe.
67130
67131         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67132         error from mntctl.
67133         Use mntctl's return value to drive the entry-processing loop, since
67134         we can't rely on the value of the vmt_length member in the last
67135         entry.  On some systems doing so could result in exhausting
67136         virtual memory.  Based in part on a patch from Mike Jetzer.
67137
67138 2003-04-04  Bruno Haible  <bruno@clisp.org>
67139
67140         * modules/linebreak: New file.
67141         * MODULES.html.sh (func_all_modules): Add it.
67142
67143 2003-04-04  Bruno Haible  <bruno@clisp.org>
67144
67145         * m4/linebreak.m4: New file.
67146
67147 2003-04-04  Bruno Haible  <bruno@clisp.org>
67148
67149         * lib/linebreak.h: New file, from GNU gettext.
67150         * lib/linebreak.c: New file, from GNU gettext with slight
67151         modifications.
67152         * lib/lbrkprop.h: New file, from GNU gettext.
67153
67154 2003-04-03  Bruno Haible  <bruno@clisp.org>
67155
67156         * modules/utf8-ucs4: New file.
67157         * modules/utf16-ucs4: New file.
67158         * modules/ucs4-utf8: New file.
67159         * modules/ucs4-utf16: New file.
67160         * MODULES.html.sh (func_all_modules): Add them.
67161
67162 2003-04-03  Bruno Haible  <bruno@clisp.org>
67163
67164         * m4/utf-ucs4.m4: New file.
67165         * m4/ucs4-utf.m4: New file.
67166
67167 2003-04-03  Bruno Haible  <bruno@clisp.org>
67168
67169         * lib/utf8-ucs4.h: New file, from GNU gettext.
67170         * lib/utf16-ucs4.h: New file, from GNU gettext.
67171         * lib/ucs4-utf8.h: New file, from GNU gettext.
67172         * lib/ucs4-utf16.h: New file, from GNU gettext.
67173
67174 2003-04-02  Bruno Haible  <bruno@clisp.org>
67175
67176         * modules/binary-io: New file.
67177         * MODULES.html.sh (func_all_modules): Add it.
67178
67179 2003-04-02  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/binary-io.h: New file, from GNU gettext.
67182
67183 2003-04-01  Bruno Haible  <bruno@clisp.org>
67184
67185         * modules/pathname: New file.
67186         * MODULES.html.sh (func_all_modules): Add it.
67187
67188 2003-04-01  Bruno Haible  <bruno@clisp.org>
67189
67190         * lib/pathname.h: New file, from GNU gettext.
67191         * lib/concatpath.c: New file, from GNU gettext.
67192
67193 2003-03-30  Bruno Haible  <bruno@clisp.org>
67194
67195         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
67196
67197 2003-03-30  Bruno Haible  <bruno@clisp.org>
67198
67199         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
67200         function chown() doesn't exist.
67201
67202 2003-03-28  Bruno Haible  <bruno@clisp.org>
67203
67204         * modules/copy-file: New file.
67205         * MODULES.html.sh (func_all_modules): Add it.
67206
67207 2003-03-28  Bruno Haible  <bruno@clisp.org>
67208
67209         * m4/copy-file.m4: New file.
67210
67211 2003-03-28  Bruno Haible  <bruno@clisp.org>
67212
67213         * lib/copy-file.h: New file, from GNU gettext.
67214         * lib/copy-file.c: New file, from GNU gettext.
67215
67216 2003-03-18  Jim Meyering  <jim@meyering.net>
67217
67218         * lib/quote.c (quote_n): Fix typo in comment.
67219
67220 2003-03-18  Bruno Haible  <bruno@clisp.org>
67221
67222         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
67223         checking.
67224         * m4/onceonly_2_57.m4: Likewise.
67225
67226 2003-03-17  Bruno Haible  <bruno@clisp.org>
67227
67228         * m4/onceonly.m4: Require autoconf 2.54 or newer.
67229         (m4_quote): Remove macro.
67230         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
67231
67232 2003-03-14  Jim Meyering  <jim@meyering.net>
67233
67234         Merge changes from Coreutils.
67235         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
67236         to be const, in order to avoid warnings.
67237         (obstack_room): Likewise.
67238         (obstack_empty_p): Likewise.
67239
67240 2003-03-14  Bruno Haible  <bruno@clisp.org>
67241
67242         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
67243         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
67244
67245 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67246
67247         Merge changes from Bison.
67248         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
67249         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
67250         when compiling Bison 1.875's `bitset bset = obstack_alloc
67251         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
67252         * lib/hash.c: Include <stdbool.h> unconditionally.
67253
67254 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67255
67256         * m4/onceonly.m4 (m4_quote): New macro.
67257         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
67258         Quote AC_FOREACH variable-expansions properly.
67259
67260 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67261
67262         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
67263
67264 2003-03-09  Paul Eggert  <eggert@twinsun.com>
67265
67266         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
67267         Reported by Bruce Becker; see:
67268         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
67269
67270 2003-03-03  Paul Eggert  <eggert@twinsun.com>
67271             Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
67274         Reported by John Hughes, see
67275         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
67276
67277 2003-02-20  Bruno Haible  <bruno@clisp.org>
67278
67279         * MODULES.html.sh (func_all_modules): Add poll.
67280
67281 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67282
67283         * modules/poll: New file.
67284
67285 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67286
67287         * lib/poll_.h: New file.
67288         * lib/poll.c: New file.
67289
67290 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67291
67292         * m4/poll.m4: New file.
67293
67294 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67295
67296         * modules/mathl: New file.
67297
67298 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67299
67300         * lib/mathl.h: New file.
67301         * lib/acosl.c: New file.
67302         * lib/asinl.c: New file.
67303         * lib/atanl.c: New file.
67304         * lib/ceill.c: New file.
67305         * lib/cosl.c: New file.
67306         * lib/expl.c: New file.
67307         * lib/floorl.c: New file.
67308         * lib/frexpl.c: New file.
67309         * lib/ldexpl.c: New file.
67310         * lib/logl.c: New file.
67311         * lib/sincosl.c: New file.
67312         * lib/sinl.c: New file.
67313         * lib/sqrtl.c: New file.
67314         * lib/tanl.c: New file.
67315         * lib/trigl.c: New file.
67316         * lib/trigl.h: New file.
67317
67318 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67319
67320         * m4/mathl.m4: New file.
67321
67322 2003-02-18  Bruno Haible  <bruno@clisp.org>
67323
67324         * MODULES.html.sh (func_all_modules): Add mathl.
67325
67326 2003-02-17  Bruno Haible  <bruno@clisp.org>
67327
67328         * modules/mkdtemp: New module.
67329         * MODULES.html.sh (func_all_modules): Add it.
67330
67331 2003-02-17  Bruno Haible  <bruno@clisp.org>
67332
67333         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
67334
67335 2003-02-17  Bruno Haible  <bruno@clisp.org>
67336
67337         * lib/mkdtemp.h: New file, from GNU gettext.
67338         * lib/mkdtemp.c: New file, from GNU gettext.
67339
67340 2003-02-02  Jim Meyering  <jim@meyering.net>
67341
67342         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
67343         e.g. glibc-2.2.93.
67344
67345 2003-01-31  Bruno Haible  <bruno@clisp.org>
67346
67347         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
67348         'rpl_rename'.
67349         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
67350         'rpl_strnlen'.
67351         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
67352         'rpl_strtod'.
67353         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
67354         'rpl_utime'.
67355
67356 2003-01-31  Bruno Haible  <bruno@clisp.org>
67357
67358         * lib/rename.c: #undef rename before defining rpl_rename.
67359         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
67360
67361 2003-01-30  Bruno Haible  <bruno@clisp.org>
67362
67363         * modules/vasnprintf, modules/vasprintf: New modules.
67364         * MODULES.html.sh (func_all_modules): Add them.
67365
67366 2003-01-30  Bruno Haible  <bruno@clisp.org>
67367
67368         * m4/signed.m4: New file, from GNU gettext.
67369         * m4/longdouble.m4: New file, from GNU gettext.
67370         * m4/wchar_t.m4: New file, from GNU gettext.
67371         * m4/wint_t.m4: New file, from GNU gettext.
67372         * m4/vasnprintf.m4: New file.
67373         * m4/vasprintf.m4: New file.
67374
67375 2003-01-30  Bruno Haible  <bruno@clisp.org>
67376
67377         * lib/printf-args.h: New file, from GNU gettext.
67378         * lib/printf-args.c: New file, from GNU gettext.
67379         * lib/printf-parse.h: New file, from GNU gettext.
67380         * lib/printf-parse.c: New file, from GNU gettext.
67381         * lib/vasnprintf.h: New file, from GNU gettext.
67382         * lib/vasnprintf.c: New file, from GNU gettext.
67383         * lib/asnprintf.c: New file, from GNU gettext.
67384         * lib/vasprintf.h: New file, from GNU gettext with modifications.
67385         * lib/vasprintf.c: New file, from GNU gettext.
67386         * lib/asprintf.c: New file, from GNU gettext.
67387
67388 2003-01-29  Bruno Haible  <bruno@clisp.org>
67389
67390         * modules/stpncpy: New module.
67391         * MODULES.html.sh (func_all_modules): Add it.
67392
67393 2003-01-29  Bruno Haible  <bruno@clisp.org>
67394
67395         * m4/stpncpy.m4: New file.
67396
67397 2003-01-29  Bruno Haible  <bruno@clisp.org>
67398
67399         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67400         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67401
67402 2003-01-28  Bruno Haible  <bruno@clisp.org>
67403
67404         * modules/c-ctype: New module.
67405         * MODULES.html.sh (func_all_modules): Add it.
67406
67407 2003-01-28  Bruno Haible  <bruno@clisp.org>
67408
67409         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67410         Paul Eggert.
67411         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67412         Paul Eggert.
67413
67414 2003-01-27  Bruno Haible  <bruno@clisp.org>
67415
67416         * modules/xsetenv: New module.
67417         * MODULES.html.sh (func_all_modules): Add it.
67418
67419 2003-01-27  Bruno Haible  <bruno@clisp.org>
67420
67421         * lib/xsetenv.h: New file, from GNU gettext.
67422         * lib/xsetenv.c: New file, from GNU gettext.
67423
67424 2003-01-23  Jim Meyering  <jim@meyering.net>
67425
67426         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67427         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67428
67429 2003-01-23  Bruno Haible  <bruno@clisp.org>
67430
67431         * modules/minmax: New module.
67432         * MODULES.html.sh (func_all_modules): Add it.
67433
67434 2003-01-23  Bruno Haible  <bruno@clisp.org>
67435
67436         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67437         Eggert.
67438
67439 2003-01-22  Bruno Haible  <bruno@clisp.org>
67440
67441         * modules/exit: New module.
67442         * MODULES.html.sh (func_all_modules): Add it.
67443
67444 2003-01-22  Bruno Haible  <bruno@clisp.org>
67445
67446         * lib/exit.h: New file, from GNU gettext.
67447
67448 2003-01-19  Bruno Haible  <bruno@clisp.org>
67449
67450         * gnulib-tool: Recognize option --extract-maintainer.
67451         (func_get_maintainer): New function.
67452         * modules/*: Add Maintainer entry.
67453
67454 2003-01-16  Jim Meyering  <jim@meyering.net>
67455
67456         * m4/regex.m4: The `regex' struct is both input and output.
67457         Initialize it before each use.  Patch by Tim Waugh.
67458
67459 2003-01-16  Bruno Haible  <bruno@clisp.org>
67460
67461         * MODULES.html.sh: Add a table of contents. Add the module name as
67462         leftmost column. Add hyperlinks.
67463
67464 2003-01-15  Bruno Haible  <bruno@clisp.org>
67465
67466         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67467
67468 2003-01-15  Bruno Haible  <bruno@clisp.org>
67469
67470         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67471         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67472         suffix.
67473
67474 2003-01-15  Bruno Haible  <bruno@clisp.org>
67475
67476         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67477
67478 2003-01-15  Bruno Haible  <bruno@clisp.org>
67479
67480         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67481         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67482
67483 2003-01-14  Jim Meyering  <jim@meyering.net>
67484
67485         * lib/same.c (same_name): Tweak a comment.
67486
67487 2003-01-14  Bruno Haible  <bruno@clisp.org>
67488
67489         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67490         when a string comparison is sufficient.
67491
67492 2003-01-14  Bruno Haible  <bruno@clisp.org>
67493
67494         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67495         'unsigned int'.
67496
67497 2003-01-14  Bruno Haible  <bruno@clisp.org>
67498
67499         * lib/hash-pjw.c: Add comment about low quality of this function.
67500
67501 2003-01-13  Bruno Haible  <bruno@clisp.org>
67502
67503         * modules/stpcpy: Distribute lib/stpcpy.h.
67504         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67505
67506 2003-01-13  Bruno Haible  <bruno@clisp.org>
67507
67508         * modules/*: Add a description.
67509         * modules/strpbrk: Fix Makefile.am snippet.
67510         * modules/strtoimax: Fix dependencies.
67511         * modules/strtoumax: Likewise.
67512
67513 2003-01-13  Bruno Haible  <bruno@clisp.org>
67514
67515         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67516         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67517         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67518
67519 2003-01-13  Bruno Haible  <bruno@clisp.org>
67520
67521         * gnulib-tool (func_create_testdir): Store config/* files in the main
67522         directory.
67523         * config.rpath: Move to ...
67524         * config/config.rpath: ... here.
67525         * modules/gettext: Contains config/config.rpath, not config.rpath.
67526         * modules/iconv: Likewise.
67527
67528 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67529
67530         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67531         to avoid collisions with libcurses and libreadline.
67532
67533         * m4/getstr.m4: Remove.
67534         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67535
67536 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67537
67538         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67539         to avoid collisions with libcurses and libreadline.
67540
67541         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67542         * lib/getstr.h, getstr.c: Remove.
67543         * lib/getline.c: Include "getline.h", to check interface.
67544         Move body of old getstr.c here: this defines MIN_CHUNK and
67545         declares getdelim2, which is renamed from getstr.
67546         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67547
67548         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67549         All uses changed.
67550         * lib/linebuffer.h: Likewise.
67551         (readline): Remove backward-compatibility macro.
67552
67553 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67554
67555         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67556         to avoid collisions with libcurses and libreadline.
67557         * getstr: Remove.
67558         * MODULES.html.sh: Remove getstr.
67559         * modules/getline: Depend on unlocked-io, not getstr.
67560
67561 2003-01-12  Jim Meyering  <jim@meyering.net>
67562
67563         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67564
67565 2003-01-10  Bruno Haible  <bruno@clisp.org>
67566
67567         * modules/alloca: Change Makefile.am requirements. Simplify Include
67568         requirements. Add lib/alloca_.h to file list.
67569
67570 2003-01-10  Bruno Haible  <bruno@clisp.org>
67571
67572         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67573
67574 2003-01-10  Bruno Haible  <bruno@clisp.org>
67575
67576         * lib/alloca_.h: New file.
67577         * lib/getdate.y: Unconditionally include alloca.h.
67578         * lib/makepath.c: Likewise.
67579         * lib/setenv.c: Likewise.
67580         * lib/userspec.c: Likewise.
67581
67582 2003-01-09  Karl Berry  <karl@gnu.org>
67583
67584         * MODULES.html.sh: include `dirname $0` in PATH, to find
67585         gnulib-tool.
67586
67587 2003-01-09  Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67590         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67591
67592 2003-01-09  Bruno Haible  <bruno@clisp.org>
67593
67594         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67595
67596 2003-01-09  Bruno Haible  <bruno@clisp.org>
67597
67598         * lib/stdbool.h.in: New file.
67599
67600 2003-01-09  Bruno Haible  <bruno@clisp.org>
67601
67602         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67603         * MODULES.html.sh: Likewise.
67604
67605 2003-01-08  Jim Meyering  <jim@meyering.net>
67606
67607         * lib/full-write.c: Undefine and define-away `const' after inclusion
67608         of errno.h, not before.  Suggestion from Bruno Haible.
67609
67610 2003-01-08  Bruno Haible  <bruno@clisp.org>
67611
67612         * modules/full-read: Depend on full-write.
67613
67614 2003-01-08  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/safe-read.c: Include specification header first, to ensure its
67617         selfcontainedness.
67618         * lib/full-write.c: Likewise.
67619
67620 2003-01-07  Jim Meyering  <jim@meyering.net>
67621
67622         * lib/full-write.c: Rework so that it may serve to define full_read,
67623         too.
67624         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67625
67626 2003-01-07  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67629         <inttypes.h>.
67630         * lib/xstrtol.h: Likewise.
67631         * lib/xstrtoimax.c: Likewise.
67632         * lib/xstrtoumax.c: Likewise.
67633         * lib/human.h: Likewise.
67634
67635         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67636         on systems that have <inttypes.h> but not <stdint.h>.
67637
67638 2003-01-07  Bruno Haible  <bruno@clisp.org>
67639
67640         * MODULES.html.sh: Add copyright notice.
67641         (missed_files): Omit CVS directory entries.
67642         (func_module): Make it work with sed-3.02.
67643         * MODULES.txt: Remove file.
67644
67645 2003-01-06  Jim Meyering  <jim@meyering.net>
67646
67647         * lib/version-etc.c: Update year in translatable copyright string.
67648
67649 2003-01-03  Karl Berry  <karl@gnu.org>
67650
67651         * config/config.{guess,sub}: update from prep.
67652
67653 2003-01-02  Karl Berry  <karl@gnu.org>
67654
67655         * doc/COPYING.DOC: belatedly updated to 1.2.
67656
67657 2003-01-01  Karl Berry  <karl@gnu.org>
67658
67659         * gnulib-tool (func_verify_module): report module name $module in
67660         error message, not $1.
67661         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67662         be created, only if it doesn't exist.
67663         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67664
67665 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67666
67667         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67668
67669 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67670
67671         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67672         memcmp if strcoll doesn't work.
67673
67674 2002-12-31  Bruno Haible  <bruno@clisp.org>
67675
67676         * lib/utime.c (utime_null): No need to call ftruncate if the file was
67677         nonempty.
67678
67679 2002-12-31  Bruno Haible  <bruno@clisp.org>
67680
67681         * lib/memcoll.c (STRCOLL): New macro.
67682         (memcoll): Use it.
67683
67684 2002-12-31  Bruno Haible  <bruno@clisp.org>
67685
67686         * lib/localcharset.h: New file.
67687         * lib/localcharset.c: Include it.
67688         * lib/unicodeio.c: Likewise.
67689
67690 2002-12-31  Bruno Haible  <bruno@clisp.org>
67691
67692         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
67693         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
67694
67695 2002-12-31  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/getline.h: Include <stddef.h>, for size_t.
67698
67699         * lib/unicodeio.h: Include <stddef.h>, for size_t.
67700         * lib/unicodeio.c: Don't include <stddef.h>.
67701
67702 2002-12-31  Bruno Haible  <bruno@clisp.org>
67703
67704         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
67705         HAVE_TM_ZONE.
67706
67707 2002-12-24  Karl Berry  <karl@gnu.org>
67708
67709         * config/config.guess: update from prep.
67710
67711 2002-12-24  Bruno Haible  <bruno@clisp.org>
67712
67713         General infrasructure.
67714         * m4/README: Rewritten.
67715         * m4/onceonly.m4: New file.
67716         * m4/onceonly_2_57.m4: New file.
67717
67718         Module atexit.
67719         * m4/atexit.m4: New file.
67720
67721         Module strtod.
67722         * m4/strtod.m4: New file.
67723
67724         Module strtol.
67725         * m4/strtol.m4: New file.
67726
67727         Module strtoul.
67728         * m4/strtoul.m4: New file.
67729
67730         Module memchr.
67731         * m4/memchr.m4: New file.
67732
67733         Module memcmp.
67734         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
67735         (jm_FUNC_MEMCMP): Invoke it.
67736
67737         Module memcpy.
67738         * m4/memcpy.m4: New file.
67739
67740         Module memmove.
67741         * m4/memmove.m4: New file.
67742
67743         Module memset.
67744         * m4/memset.m4: New file.
67745
67746         Module strcspn.
67747         * m4/strcspn.m4: New file.
67748
67749         Module strpbrk.
67750         * m4/strpbrk.m4: New file.
67751
67752         Module strstr.
67753         * m4/strstr.m4: New file.
67754
67755         Module strerror.
67756         * m4/strerror.m4: New file.
67757
67758         Module mktime.
67759         * m4/mktime.m4: Renamed from jm-mktime.m4.
67760         (gl_PREREQ_MKTIME): New macro.
67761         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
67762
67763         Module malloc.
67764         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
67765         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
67766         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
67767
67768         Module realloc.
67769         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
67770         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
67771         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
67772
67773         Module strftime.
67774         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
67775         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
67776         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
67777         gl_TM_GMTOFF.
67778         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
67779
67780         Module xalloc.
67781         * m4/xalloc.m4: New file.
67782
67783         Module alloca.
67784         * m4/alloca.m4: New file.
67785
67786         Module putenv.
67787         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
67788         (jm_FUNC_PUTENV): Invoke it.
67789
67790         Module setenv.
67791         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
67792         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
67793         when invoked twice.
67794         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
67795         gt_FUNC_SETENV.
67796
67797         Module memrchr.
67798         * m4/memrchr.m4: New file.
67799
67800         Module stpcpy.
67801         * m4/stpcpy.m4: New file.
67802
67803         Module strcase.
67804         * m4/strcase.m4: New file.
67805
67806         Module strdup.
67807         * m4/strdup.m4: New file.
67808
67809         Module strnlen.
67810         * m4/strnlen.m4: New file.
67811
67812         Module strndup.
67813         * m4/strndup.m4: New file.
67814
67815         Module xstrtod.
67816         * m4/xstrtod.m4: New file.
67817
67818         Module xstrtol.
67819         * m4/xstrtol.m4: New file.
67820
67821         Module getdate.
67822         * m4/getdate.m4: New file.
67823
67824         Module unlocked-io.
67825         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
67826         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
67827         * m4/jm-glibc-io.m4n: Remove file.
67828
67829         Module long-options.
67830         * m4/long-options.m4: New file.
67831
67832         Module md5.
67833         * m4/md5.m4: New file.
67834
67835         Module sha.
67836         * m4/sha.m4: New file.
67837
67838         Module getstr.
67839         * m4/getstr.m4: New file.
67840
67841         Module getline.
67842         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67843         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67844         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67845         simply getline. Infoke gl_PREREQ_GETLINE.
67846
67847         Module obstack.
67848         * m4/obstack.m4: New file.
67849
67850         Module hash.
67851         * m4/hash.m4: New file.
67852
67853         Module readtokens.
67854         * m4/readtokens.m4: New file.
67855
67856         Module strverscmp.
67857         * m4/strverscmp.m4: New file.
67858
67859         Module stdbool.
67860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67861         OSF/1.
67862
67863         Module strtoll.
67864         * m4/strtoll.m4: New file.
67865
67866         Module strtoull.
67867         * m4/strtoull.m4: New file.
67868
67869         Module strtoimax.
67870         * m4/strtoimax.m4: New file.
67871
67872         Module strtoumax.
67873         * m4/strtoumax.m4: New file.
67874
67875         Module xstrtoimax.
67876         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67877         jm_AC_PREREQ_XSTRTOIMAX.
67878         Moved the strtol prerequisites to strtol.m4.
67879         Moved the strtoll prerequisites to strtoll.m4.
67880         Moved the strtoimax prerequisites to strtoimax.m4.
67881
67882         Module xstrtoumax.
67883         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67884         jm_AC_PREREQ_XSTRTOUMAX.
67885         Moved the strtoul prerequisites to strtoul.m4.
67886         Moved the strtoull prerequisites to strtoull.m4.
67887         Moved the strtoumax prerequisites to strtoumax.m4.
67888
67889         Module chown.
67890         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67891         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67892
67893         Module dup2.
67894         * m4/dup2.m4: New file.
67895
67896         Module ftruncate.
67897         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67898         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67899
67900         Module getgroups.
67901         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67902         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67903
67904         Module gettimeofday.
67905         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67906         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67907         gl_PREREQ_GETTIMEOFDAY.
67908
67909         Module mkdir.
67910         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67911         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67912
67913         Module mkstemp.
67914         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67915         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67916         jm_AC_TYPE_UINTMAX_T.
67917         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67918
67919         Module stat.
67920         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67921         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67922
67923         Module lstat.
67924         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67925         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67926
67927         Module timespec.
67928         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67929         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67930         * m4/st_mtim.m4: Indentation.
67931
67932         Module nanosleep.
67933         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67934         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67935         gl_PREREQ_NANOSLEEP.
67936
67937         Module regex.
67938         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67939         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67940         (gl_REGEX): New macro.
67941
67942         Module rename.
67943         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67944         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67945
67946         Module rmdir.
67947         * m4/rmdir.m4: New file.
67948
67949         Module utime.
67950         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67951         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67952         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67953
67954         Module dirname.
67955         * m4/dirname.m4: New file.
67956
67957         Module getopt.
67958         * m4/getopt.m4: New file.
67959
67960         Module unistd-safer.
67961         * m4/unistd-safer.m4: New file.
67962
67963         Module fnmatch.
67964         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67965         declaration.
67966         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67967         (gl_FUNC_FNMATCH_POSIX): New macro.
67968         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67969         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67970         simply fnmatch.
67971
67972         Module exclude.
67973         * m4/exclude.m4: New file.
67974
67975         Module human.
67976         * m4/human.m4: New file.
67977
67978         Module acl.
67979         * m4/acl.m4: Nop.
67980
67981         Module backupfile.
67982         * m4/backupfile.m4: New file.
67983         * m4/d-ino.m4: Indentation.
67984
67985         Module fsusage.
67986         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67987         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67988         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67989
67990         Module dirfd.
67991         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67992         requirements.
67993
67994         Module euidaccess.
67995         * m4/euidaccess.m4: New file.
67996
67997         Module file-type.
67998         * m4/file-type.m4: New file.
67999
68000         Module fileblocks.
68001         * m4/fileblocks.m4: New file.
68002
68003         Module filemode.
68004         * m4/filemode.m4: New file.
68005
68006         Module isdir.
68007         * m4/isdir.m4: New file.
68008
68009         Module lchown.
68010         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
68011         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
68012
68013         Module makepath.
68014         * m4/makepath.m4: New file.
68015
68016         Module modechange.
68017         * m4/modechange.m4: New file.
68018
68019         Module mountlist.
68020         * m4/mountlist.m4: New file.
68021         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
68022         Indentation.
68023
68024         Module path-concat.
68025         * m4/path-concat.m4: New file.
68026
68027         Module pathmax.
68028         * m4/pathmax.m4: New file.
68029
68030         Module same.
68031         * m4/same.m4: New file.
68032
68033         Module save-cwd.
68034         * m4/save-cwd.m4: New file.
68035
68036         Module savedir.
68037         * m4/savedir.m4: New file.
68038
68039         Module xgetcwd.
68040         * m4/xgetcwd.m4: New file.
68041         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
68042
68043         Module xreadlink.
68044         * m4/xreadlink.m4: New file.
68045
68046         Module safe-read.
68047         * m4/safe-read.m4: New file.
68048
68049         Module safe-write.
68050         * m4/safe-write.m4: New file.
68051
68052         Module closeout.
68053         * m4/closeout.m4: New file.
68054
68055         Module stdio-safer.
68056         * m4/stdio-safer.m4: New file.
68057
68058         Module getpass.
68059         * m4/getpass.m4: New file.
68060
68061         Module getugroups.
68062         * m4/getugroups.m4: New file.
68063
68064         Module group-member.
68065         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
68066         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
68067
68068         Module idcache.
68069         * m4/idcache.m4: New file.
68070
68071         Module userspec.
68072         * m4/userspec.m4: New file.
68073
68074         Module gettime.
68075         * m4/clock_time.m4: New file.
68076         * m4/gettime.m4: New file.
68077
68078         Module settime.
68079         * m4/settime.m4: New file.
68080
68081         Module posixtm.
68082         * m4/posixtm.m4: New file.
68083
68084         Module gethostname.
68085         * m4/gethostname.m4: New file.
68086
68087         Module canon-host.
68088         * m4/canon-host.m4: New file.
68089
68090         Module gettext.
68091         * m4/codeset.m4: New file, from gettext-0.11.5.
68092         * m4/gettext.m4: New file, from gettext-0.11.5.
68093         * m4/glibc21.m4: New file, from gettext-0.11.5.
68094         * m4/iconv.m4: New file, from gettext-0.11.5.
68095         * m4/intdiv0.m4: New file, from gettext-0.11.5.
68096         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
68097         * m4/inttypes.m4: New file, from gettext-0.11.5.
68098         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
68099         * m4/isc-posix.m4: New file, from gettext-0.11.5.
68100         * m4/lcmessage.m4: New file, from gettext-0.11.5.
68101         * m4/lib-ld.m4: New file, from gettext-0.11.5.
68102         * m4/lib-link.m4: New file, from gettext-0.11.5.
68103         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
68104         * m4/progtest.m4: New file, from gettext-0.11.5.
68105         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
68106         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
68107         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
68108
68109         Module localcharset.
68110         * m4/localcharset.m4: New file.
68111
68112         Module hard-locale.
68113         * m4/hard-locale.m4: New file.
68114
68115         Module mbswidth.
68116         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
68117         onceonly macros.
68118         * m4/mbrtowc.m4: Add comment.
68119
68120         Module memcasecmp.
68121         * m4/memcasecmp.m4: New file.
68122
68123         Module memcoll.
68124         * m4/memcoll.m4: New file.
68125
68126         Module unicodeio.
68127         * m4/unicodeio.m4: New file.
68128
68129         Module rpmatch.
68130         * m4/rpmatch.m4: New file.
68131
68132         Module yesno.
68133         * m4/yesno.m4: New file.
68134
68135         Module exitfail.
68136         * m4/exitfail.m4: New file.
68137
68138         Module c-stack.
68139         * m4/c-stack.m4 (gl_C_STACK): New macro.
68140         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
68141
68142         Module error.
68143         * m4/error.m4 (gl_ERROR): New macro.
68144         (jm_PREREQ_ERROR): Use onceonly macros.
68145
68146         Module fatal.
68147         * m4/fatal.m4: New file.
68148
68149         Module getloadavg.
68150         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
68151         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
68152
68153         Module getpagesize.
68154         * m4/getpagesize.m4: New file.
68155
68156         Module getusershell.
68157         * m4/getusershell.m4: New file.
68158
68159         Module physmem.
68160         * m4/physmem.m4: New file.
68161
68162         Module posixver.
68163         * m4/posixver.m4: New file.
68164
68165         Module quotearg.
68166         * m4/quotearg.m4: New file.
68167
68168         Module quote.
68169         * m4/quote.m4: New file.
68170
68171         Module readutmp.
68172         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
68173
68174         Module sig2str.
68175         * m4/sig2str.m4: New file.
68176
68177         Other.
68178         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
68179         ulonglong.m4.
68180         * m4/intmax_t.m4: New file.
68181         * m4/d-type.m4: Indentation.
68182         * m4/jm-macros.m4: Update.
68183         * m4/prereq.m4 (jm_PREREQ): Update.
68184         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
68185         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
68186         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
68187         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
68188         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
68189         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
68190         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
68191         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
68192         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
68193         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
68194         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
68195         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
68196         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
68197         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
68198         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
68199         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
68200         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
68201         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
68202         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
68203
68204 2002-12-24  Bruno Haible  <bruno@clisp.org>
68205
68206         * MODULES.txt: Update according to m4/ changes.
68207
68208         Module gettext.
68209         * config.rpath: New file, from gettext-0.11.5.
68210
68211         * modules/*: New module descriptions.
68212         * gnulib-tool: New file.
68213         * MODULES.html.sh: New file.
68214
68215 2002-12-21  Karl Berry  <karl@gnu.org>
68216
68217         * doc/fdl.texi: update to version 1.2.
68218
68219 2002-12-19  Karl Berry  <karl@gnu.org>
68220
68221         * config/config.guess: update from prep.
68222
68223 2002-12-18  Bruno Haible  <bruno@clisp.org>
68224
68225         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
68226         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
68227
68228 2002-12-17  Bruno Haible  <bruno@clisp.org>
68229
68230         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
68231         stdlib.h, string.h.
68232
68233 2002-12-17  Bruno Haible  <bruno@clisp.org>
68234
68235         * lib/canon-host.c (strdup): Remove unused declaration.
68236
68237         * lib/fsusage.c: Include full_read.h.
68238         (get_fs_usage): Use full_read instead of safe_read.
68239
68240         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
68241
68242 2002-12-12  Karl Berry  <karl@gnu.org>
68243
68244         * config/config.guess: update from prep.
68245
68246 2002-12-11  Bruno Haible  <bruno@clisp.org>
68247
68248         * m4/setenv.m4: New file, from gettext-0.11.5.
68249
68250 2002-12-11  Bruno Haible  <bruno@clisp.org>
68251
68252         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
68253         not unsetenv().
68254         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
68255         modifications:
68256
68257         2002-12-11  Bruno Haible  <bruno@clisp.org>
68258
68259                 * setenv.c (alloca): Fall back to malloc.
68260                 (freea): New macro.
68261                 (setenv): Use freea() to free memory allocated with alloca().
68262
68263         2002-11-13  Bruno Haible  <bruno@clisp.org>
68264
68265                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
68266                 function declarations.
68267                 * unsetenv.c (unsetenv): Likewise.
68268
68269         2002-03-04  Bruno Haible  <bruno@clisp.org>
68270
68271                 Portability to AIX 4.3.3.
68272                 * unsetenv.c: New file, extracted from setenv.c.
68273                 * setenv.c: Move the unsetenv() function to unsetenv.c.
68274
68275         2001-12-20  Bruno Haible  <bruno@clisp.org>
68276
68277                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
68278                 use malloc instead. For SunOS 4.
68279
68280         2001-12-11  Bruno Haible  <bruno@clisp.org>
68281
68282                 * setenv.c: Declare alloca.
68283                 (compar_fn_t): New typedef.
68284                 (KNOWN_VALUE, STORE_VALUE): Use it.
68285
68286         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
68287         setenv.h.
68288
68289 2002-12-10  Paul Eggert  <eggert@twinsun.com>
68290
68291         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
68292         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
68293         Choose values that are less likely to collide with system fnmatch
68294         options.
68295         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
68296         defined (e.g., a pure POSIX system).
68297         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
68298         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
68299
68300 2002-12-06  Paul Eggert  <eggert@twinsun.com>
68301
68302         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
68303         a pain in practice to deal with generated m4 files.  This change
68304         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
68305
68306         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
68307         and jm-glibc-io.m4, as they are no longer a special case.
68308         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
68309         kludge and the auto-generation stuff.  Check only whether the
68310         functions are declared, not whether they exist, since older hosts
68311         that don't declare the functions can't use the optimization anyway.
68312
68313 2002-12-06  Jim Meyering  <jim@meyering.net>
68314
68315         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
68316
68317         Merge in changes from libc's misc/error.c, in preparation
68318         for the merge of gnulib's changes back into libc.
68319
68320         * lib/error.c (_): Define only if not already defined.
68321         Move definition to follow all #include directives.
68322         Include unlocked-io.h only if !_LIBC.
68323         [_LIBC]: Include <libio/libioP.h>.
68324         [USE_IN_LIBIO]: Include <libio/iolibio.h>
68325         (fflush): Tweak definition to use INTUSE.
68326         (putc): Define.
68327
68328 2002-12-05  Paul Eggert  <eggert@twinsun.com>
68329
68330         * lib/alloca.c [defined emacs]: Include "lisp.h".
68331         (xalloc_die) [defined emacs]: New macro.
68332         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
68333         [! defined emacs]: Include <xalloc.h>.
68334         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
68335         (pointer): Typedef to POINTER_TYPE *.
68336         (malloc): Remove decl; we now always use xmalloc.
68337         (alloca): Use old-style definition, since Emacs needs this.
68338         Check for arithmetic overflow when computing combined size.
68339
68340 2002-12-04  Paul Eggert  <eggert@twinsun.com>
68341
68342         Do not generate unlocked-io.h automatically, since it's easier to
68343         maintain it by hand.
68344
68345         * lib/unlocked-io.h: New file, from GNU diffutils,
68346         but with proper copyright notice and attribution.
68347         * lib/gen-uio: Remove.
68348         * lib/Makefile.am: Add copyright notice.
68349         (libfetish_a_SOURCES): Add unlocked-io.h.
68350         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
68351         (DISTCLEANFILES, io_functions): Remove macros.
68352         (EXTRA_DIST): Remove gen_uio.
68353         (unlocked-io.h): Remove rule.
68354
68355 2002-12-04  Jim Meyering  <jim@meyering.net>
68356
68357         Reflect the fact that stat.c and lstat.c are no longer generated.
68358         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
68359         (DISTCLEANFILES): Likewise.
68360         (EXTRA_DIST): Likewise.
68361         (all_local): Don't depend on stat.c or lstat.c.
68362         (stat.c, lstat.c): Remove rules.
68363         (EXTRA_DIST): Remove xstat.in.
68364
68365         * lib/xstat.in: Remove file.  Contents moved into stat.c.
68366         * lib/stat.c: New file.  Contents mostly from xstat.in.
68367         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
68368         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
68369
68370         * lib/safe-read.c: Rework so that it may serve to define safe_write,
68371         too.
68372         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
68373
68374 2002-12-03  Jim Meyering  <jim@meyering.net>
68375
68376         * lib/safe-read.c, safe-write.c: Change variable names and comments,
68377         but not semantics, to minimize the differences between these two files.
68378         (safe_read): Change comment to mention SAFE_READ_ERROR.
68379
68380         * lib/safe-read.c (IS_EINTR): Define.
68381         (safe_read): Use IS_EINTR in place of in-function cpp directives.
68382
68383 2002-12-02  Jim Meyering  <jim@meyering.net>
68384
68385         * lib/safe-read.c (EINTR): Define.
68386         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68387         (INT_MAX): Provide fallback.
68388         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
68389
68390         * lib/safe-read.h (SAFE_READ_ERROR): Define.
68391
68392 2002-12-02  Bruno Haible  <bruno@clisp.org>
68393
68394         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68395         Define, taken from safe-read.c.
68396         (INT_MAX): Provide fallback.
68397         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68398         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68399
68400         * lib/safe-read.c (EINTR): Remove definition.
68401         (safe_read): Don't use EINTR if it is absent.
68402
68403 2002-12-01  Jim Meyering  <jim@meyering.net>
68404
68405         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68406         zero.
68407         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68408
68409 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68410
68411         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68412         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68413         with `if (! (value < limit)) abort ();', for readability.
68414
68415 2002-11-26  Karl Berry  <karl@gnu.org>
68416
68417         * lib/strdup.c: copy from libc again, with jim's ok.
68418         * lib/.cppi-disable: re-add strdup.c
68419
68420 2002-11-25  Karl Berry  <karl@gnu.org>
68421
68422         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68423         instead of "strtol.c".
68424
68425 2002-11-25  Karl Berry  <karl@gnu.org>
68426
68427         * config/install-sh: update from automake for variable quoting, $0 in
68428         error msgs, etc.
68429
68430         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68431         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68432         entry.
68433
68434 2002-11-25  Jim Meyering  <jim@meyering.net>
68435
68436         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68437
68438 2002-11-24  Karl Berry  <karl@gnu.org>
68439
68440         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68441         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68442
68443 2002-11-24  Jim Meyering  <jim@meyering.net>
68444
68445         Update from coreutils:
68446
68447         * lib/mktime.c: Merge in changes from libc.
68448
68449         Avoid a link-time failure on some Linux systems.
68450         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68451         (otherwise).
68452         (__mon_yday): Declare with the STATIC attribute.
68453         (__mktime_internal): Likewise.
68454         Based on a report from Greg Schafer.
68455
68456 2002-11-23  Jim Meyering  <jim@meyering.net>
68457
68458         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68459         Use `unsigned', not `int', as type of index.
68460
68461         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68462
68463         * lib/fsusage.c: Remove unneeded parentheses around operands of
68464         `defined'.
68465
68466 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68467
68468         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68469         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68470         so that we can be included first.
68471         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68472         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68473         No need to include stddef.h or sys/types.h any more.
68474         Surround local include files with "", not "<>".
68475         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68476         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68477         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68478         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68479         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68480         (ISPRINT): Remove; no longer needed now that we assume C89.
68481
68482         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68483         Preserve errno.
68484
68485         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68486         quotearg_char): Use SIZE_MAX rather than
68487         (size_t) -1 when we are talking about "infinity".
68488
68489         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68490
68491 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68492
68493         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68494         hint that one should use `if (! x) abort ();' rather than `assert
68495         (x);', and anyway it's one less thing to worry about configuring.
68496         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68497         hash_rehash, hash_insert): Use abort rather than assert.
68498
68499 2002-11-22  Bruno Haible  <bruno@clisp.org>
68500
68501         * lib/safe-read.h: Assume C89. Add comments.
68502         (safe_read): Change return type to size_t.
68503         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68504         byte counts > SSIZE_MAX correctly.
68505         * lib/safe-write.h: New file.
68506         * lib/safe-write.c: New file.
68507         * lib/full-read.h: New file.
68508         * lib/full-read.c: New file.
68509         * lib/full-write.h: Assume C89. Add comments.
68510         * lib/full-write.c: Include safe-write.h.
68511         (full_write): Rewritten to use safe_write.
68512         Suggested by Jim Meyering and Paul Eggert.
68513
68514 2002-11-21  Jim Meyering  <jim@meyering.net>
68515
68516         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68517
68518         Merge in changes from the coreutils.
68519
68520         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68521         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68522         <stdint.h>.
68523         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68524         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68525         int.  Work more efficiently if X is the same width as uintmax_t.
68526         Do not compare X to -1, to avoid bogus compiler warning.
68527         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68528         Don't assume that f_frsize and f_bsize are the same type.
68529
68530         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68531         warning on FreeBSD.
68532
68533         * lib/makepath.c (make_path): Restore umask *before* creating the final
68534         component.
68535         (make_path): Minor reformatting.
68536
68537         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68538         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68539         HAVE_MALLOC/HAVE_REALLOC.
68540
68541         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68542         dummy ones.  At least on GNU/Linux systems, `auto' means something
68543         else.
68544         From Michael Stone.
68545
68546 2002-11-21  Bruno Haible  <bruno@clisp.org>
68547
68548         Remove case insensitive option matching.
68549         * lib/argmatch.h (argcasematch): Remove declaration.
68550         (ARGCASEMATCH): Remove macro.
68551         (__xargmatch_internal): Remove case_sensitive argument.
68552         (XARGMATCH): Update.
68553         (XARGCASEMATCH): Remove macro.
68554         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68555         case_sensitive argument.
68556         (argcasematch): Remove function.
68557         (__xargmatch_internal): Remove case_sensitive argument.
68558         (main): Use XARGMATCH instead of XARGCASEMATCH.
68559
68560         * lib/xmalloc.c: Change compile-time error message. Add comment about
68561         required autoconf version.
68562
68563 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68564
68565         Merge argmatch cleanups from Bison.  Assume C89.
68566
68567         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68568         Include stdlib.h, for EXIT_FAILURE.
68569         Always include <string.h>, since we assume C89.
68570         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68571         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68572         Include <stddef.h> instead, since it's all we need for size_t.
68573         (PARAMS): Remove.  All uses removed.
68574         (ARRAY_CARDINALITY): Do not bother to #undef.
68575         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68576         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68577         Remove unnecessary parentheses.
68578         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68579         Insert necessary parentheses.
68580         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68581         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68582
68583 2002-11-19  Bruno Haible  <bruno@clisp.org>
68584
68585         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68586         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68587
68588         * lib/mbswidth.h (PARAMS): Remove macro.
68589         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68590         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68591
68592         * lib/gcd.h (PARAMS): Remove macro.
68593         (gcd): Use ANSI C function declarations.
68594         * lib/gcd.c (gcd): Likewise.
68595
68596 2002-11-15  Bruno Haible  <bruno@clisp.org>
68597
68598         * lib/strcspn.c: Include <stddef.h>.
68599         (strcspn): Use ANSI C function declaration. Change return type to
68600         size_t. Use NULL.
68601         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68602         (strpbrk): Use NULL.
68603         * lib/strpbrk.h (PARAMS): Remove macro.
68604         (strpbrk): Use ANSI C function declaration.
68605         * lib/strstr.c: Don't include <sys/types.h>.
68606         * lib/strstr.h (PARAMS): Remove macro.
68607         (strstr): Use ANSI C function declarations.
68608
68609 2002-11-14  Karl Berry  <karl@gnu.org>
68610
68611         * config/mkinstalldirs: `do' on separate line, instead of
68612         `for var; do'.
68613
68614 2002-11-06  Bruno Haible  <bruno@clisp.org>
68615
68616         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68617         * lib/gcd.c (gcd): Likewise.
68618
68619 2002-11-05  Bruno Haible  <bruno@clisp.org>
68620
68621         * lib/gcd.h: New file, from gettext-0.11.5.
68622         * lib/gcd.c: New file, from gettext-0.11.5.
68623
68624 2002-11-05  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68627         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68628         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68629         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68630
68631         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68632         <libintl.h>.
68633         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68634         <libintl.h>.
68635
68636         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68637         * lib/human.c: Include gettext.h instead of <libintl.h>.
68638         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68639         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68640         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68641         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68642         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68643         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68644         (textdomain): Remove definition.
68645         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68646
68647         * lib/long-options.c: Remove include of <libintl.h> and definition of
68648         _.
68649         * lib/same.c: Remove include of <libintl.h> and definition of _.
68650
68651 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68652
68653         * lib/config.charset: A few additions for Solaris.
68654
68655 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68656
68657         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68658         * lib/localcharset.c (locale_charset): Declare as extern "C".
68659
68660 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68661
68662         * lib/config.charset: msdos in uk_UA uses CP1125.
68663
68664 2002-11-04  Bruno Haible  <bruno@clisp.org>
68665
68666         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68667         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68668         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68669         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68670         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68671
68672 2002-11-04  Bruno Haible  <bruno@clisp.org>
68673
68674         * lib/localcharset.c (locale_charset): Don't return an empty string.
68675
68676 2002-11-04  Bruno Haible  <bruno@clisp.org>
68677
68678         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
68679         aliases.
68680
68681 2002-11-04  Bruno Haible  <bruno@clisp.org>
68682
68683         * lib/config.charset: Update for newest glibc. Add canonical names
68684         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
68685
68686 2002-11-04  Bruno Haible  <bruno@clisp.org>
68687
68688         * lib/config.charset: Add support for NetBSD.
68689
68690 2002-11-04  Bruno Haible  <bruno@clisp.org>
68691
68692         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
68693
68694 2002-11-01  Bruno Haible  <bruno@clisp.org>
68695
68696         * configure.in: Add AC_CONFIG_AUX_DIR call.
68697         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
68698         test/Makefile.
68699         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
68700
68701 2002-09-28  Karl Berry  <karl@gnu.org>
68702
68703         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
68704         installed automake until the next release, since changes have been
68705         made.
68706
68707 2002-09-25  Karl Berry  <karl@gnu.org>
68708
68709         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
68710         * lib/getopt*: copy from libc/posix.
68711         * lib/gettext.h: copy from gettext.
68712         * lib/.cppi-disable: add strdup.c, gettext.h.
68713
68714 2002-09-25  Karl Berry  <karl@gnu.org>
68715
68716         * config/srclist.txt: enable gettext.h check.
68717         * config/config.{guess,sub}: update from prep.
68718         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
68719                 from automake 1.6.3.
68720         See srclist*.
68721
68722 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
68723
68724         * regex.c (PATFETCH): Remove the translating fetch.
68725         (PATFETCH_RAW): Rename to PATFETCH.
68726         (set_image_of_range): New fun.
68727         (SET_RANGE_TABLE_WORK_AREA): Use it.
68728         (regex_compile): Don't translate the pattern chars so eagerly.
68729         Only do it when inserting an `exactn' bytecode or when handling
68730         a char-range.
68731         (mutually_exclusive_p): Avoid empty statement.
68732
68733 2002-07-06  Jim Meyering  <meyering@lucent.com>
68734
68735         * m4/README: Don't mention Makefile.am.in.
68736         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
68737
68738 2002-07-01  Jim Meyering  <meyering@lucent.com>
68739
68740         * lib/c-stack.c: Include sys/time.h.
68741         From Volker Borchert.
68742
68743 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68744
68745         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
68746
68747 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68748
68749         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
68750         New macro.  Use it uniformly instead of
68751         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
68752         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
68753         reported by Vin Shelton.
68754
68755 2002-06-22  Paul Eggert  <eggert@twinsun.com>
68756
68757         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
68758         Do not assume SA_SIGINFO behavior.
68759         Bug reported by Jim Meyering on NetBSD 1.5.2.
68760
68761 2002-06-22  Jim Meyering  <meyering@lucent.com>
68762
68763         * m4/c-stack.m4: New file, from diffutils-2.8.2.
68764         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
68765
68766         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
68767         now that configure.ac uses AC_GNU_SOURCE.
68768         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
68769         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
68770
68771         Update to latest tools.  Suggestions from Paul Eggert.
68772         * m4/stdbool.m4: New file, from diffutils-2.8.2.
68773         * m4/gnu-source.m4: Update from diffutils-2.8.2.
68774         * m4/fnmatch.m4: Likewise.
68775         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
68776         to AC_HEADER_STDBOOL
68777
68778 2002-06-22  Jim Meyering  <meyering@lucent.com>
68779
68780         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
68781         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
68782
68783 2002-06-22  Jim Meyering  <meyering@lucent.com>
68784
68785         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
68786
68787         * lib/exitfail.c, exitfail.h: Likewise.
68788         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
68789
68790         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
68791         of fnmatch.h.
68792         (EXTRA_DIST): Add fnmatch_loop.c.
68793         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
68794
68795         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
68796         * lib/fnmatch.c: Update from diffutils-2.8.2.
68797         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
68798         * lib/fnmatch.h: Remove file.
68799
68800 2002-06-21  Jim Meyering  <meyering@lucent.com>
68801
68802         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
68803         * m4/mbrtowc.m4: Likewise.
68804
68805         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
68806         * m4/mbswidth.m4: Reflect name change:
68807         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
68808         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68809
68810         * m4/lib-link.m4: Update from gettext-0.11.2.
68811         * m4/gettext.m4: Likewise.
68812
68813         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
68814         From Alfred M. Szmidt.
68815
68816 2002-06-18  Paul Eggert  <eggert@twinsun.com>
68817
68818         * lib/file-type.h: Report an error if neither S_ISREG nor
68819         S_IFREG is defined, instead of using a test specific to glibc
68820         2.2.  This should be safe, since POSIX requires S_ISREG and
68821         Unix Version 7 had S_IFREG.  We don't need to check for
68822         <sys/types.h> since we don't use any symbols that it defines.
68823
68824 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
68825
68826         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
68827         $@-t, so that each temporary file name is unique and valid in the first
68828         8 characters, for operation under DOS.
68829
68830 2002-06-15  Paul Eggert  <eggert@twinsun.com>
68831
68832         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
68833
68834 2002-06-15  Jim Meyering  <meyering@lucent.com>
68835
68836         Work even with DJGPP 2.03, which lacks support for symlinks.
68837         From Richard Dawe.
68838         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68839         is defined.
68840         * lib/lchown.c (S_ISLNK): Likewise.
68841
68842 2002-06-15  Jim Meyering  <meyering@lucent.com>
68843
68844         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68845         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68846         have been included before this file.
68847
68848 2002-06-14  Jim Meyering  <meyering@lucent.com>
68849
68850         * lib/file-type.h: Use the version from diffutils-2.8.2.
68851         * lib/file-type.c: Likewise.
68852
68853 2002-06-07  Jim Meyering  <meyering@lucent.com>
68854
68855         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68856         They're needed at least for NetBSD 1.5.2.
68857         ($statxfs_includes): Include those same headers.
68858         ($statxfs_includes): Include sys/vfs.h if available.
68859         ($statxfs_includes): Likewise for sys/statvfs.h.
68860         Check for the following members in both structs statfs and statvfs:
68861         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68862
68863 2002-06-01  Jim Meyering  <meyering@lucent.com>
68864
68865         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68866         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68867
68868 2002-05-28  Jim Meyering  <meyering@lucent.com>
68869
68870         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68871         Reported by Volker Borchert.
68872
68873 2002-05-27  Jim Meyering  <meyering@lucent.com>
68874
68875         Fix a problem seen only on nonconforming systems whereby ls.c's
68876         use of localtime, and then of gettimeofday would cause trouble:
68877         the localtime call used to initialize rpl_gettimeofday's save
68878         mechanism would clobber ls's current local time information so
68879         that in any long listing the first file would always be listed
68880         with date 1970-01-01.  Analysis by Volker Borchert.
68881
68882         * lib/gettimeofday.c (localtime): Undefine.
68883         (rpl_localtime): New function.
68884
68885 2002-05-27  Jim Meyering  <meyering@lucent.com>
68886
68887         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68888         localtime.
68889
68890         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68891         use the replacement function; it wouldn't resolve at link time.
68892         Reported by Volker Borchert.
68893
68894 2002-05-22  Jim Meyering  <meyering@lucent.com>
68895
68896         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68897         file-type.h.
68898         * lib/file-type.h: New file.
68899         * lib/file-type.c (file_type): New file/function.  Extracted from
68900         diffutils.
68901
68902 2002-04-30  Jim Meyering  <meyering@lucent.com>
68903
68904         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68905
68906 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68907
68908         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68909
68910 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68911
68912         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68913         Do not check for alloca.h (no longer used) or stdbool.h (was never
68914         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68915
68916 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68917
68918         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68919
68920 2002-04-29  Jim Meyering  <meyering@lucent.com>
68921
68922         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68923         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68924         Use AC_FUNC_STRNLEN here instead.
68925
68926         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68927         With autoconf-2.53a, it's part of AC_PROG_CC.
68928
68929 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68930
68931         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68932         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68933
68934 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68935
68936         * lib/sig2str.h, lib/sig2str.c: New files.
68937         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68938
68939 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68940
68941         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68942         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68943         of 127, since 64 is the largest conceivable number for ancient
68944         nonstandard hosts.
68945         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68946
68947 2002-04-28  Jim Meyering  <meyering@lucent.com>
68948
68949         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68950
68951 2002-04-24  Jim Meyering  <meyering@lucent.com>
68952
68953         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68954         (jm_PREREQ): Use it.
68955
68956         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68957         mach/mach.h fcntl.h.
68958         Check for this function: setlocale.
68959
68960 2002-04-24  Jim Meyering  <meyering@lucent.com>
68961
68962         * lib/gettext.h: New file, from Gettext.
68963         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68964         (libfetish_a_SOURCES): Add gettext.h.
68965
68966 2002-04-16  Jim Meyering  <meyering@lucent.com>
68967
68968         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68969         ut_pid, ut_id, ut_exit.
68970
68971 2002-04-16  Jim Meyering  <meyering@lucent.com>
68972
68973         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68974         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68975         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68976
68977 2002-04-12  Jim Meyering  <meyering@lucent.com>
68978
68979         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68980         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68981         existence of the getmntinfo function.  Needed for Darwin 5.3.
68982
68983         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68984         This is necessary at least on Darwin 5.3.
68985
68986         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68987         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68988         strnlen.o in the library, and that makes some versions of ranlib
68989         object.
68990
68991 2002-04-12  Jim Meyering  <meyering@lucent.com>
68992
68993         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68994
68995 2002-04-09  Jim Meyering  <meyering@lucent.com>
68996
68997         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68998         to be more precise.  Rather than saying we're checking whether the
68999         function `works', say what we're testing.
69000         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
69001         Reported by Bruno Haible.
69002
69003 2002-03-10  Jim Meyering  <meyering@lucent.com>
69004
69005         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
69006         Suggestion from Santiago Vila.
69007
69008 2002-03-08  Jim Meyering  <meyering@lucent.com>
69009
69010         * lib/rename.c: Mention that this wrapper is needed also on
69011         mips-dec-ultrix4.4 systems.
69012
69013 2002-03-02  Jim Meyering  <meyering@lucent.com>
69014
69015         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
69016         not HAVE_CLOCK_SETTIME.
69017
69018 2002-02-27  Paul Eggert  <eggert@twinsun.com>
69019
69020         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
69021         Check for clock_settime.
69022
69023 2002-02-27  Paul Eggert  <eggert@twinsun.com>
69024
69025         * lib/nanosleep.h: Rename to....
69026         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
69027
69028         * lib/gettime.c: New file.
69029         * lib/settime.c: New file.
69030         * lib/stime.c: Remove.
69031
69032         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
69033         timespec.h.  Remove nanosleep.h.
69034
69035 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69036
69037         * m4/acl.m4: New file.
69038         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
69039         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
69040
69041 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69042
69043         * lib/acl.c, lib/acl.h: New files.
69044         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
69045
69046 2002-02-24  Jim Meyering  <meyering@lucent.com>
69047
69048         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
69049         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
69050         cause trouble.  Reported by Nelson Beebe.
69051
69052 2002-02-23  Paul Eggert  <eggert@twinsun.com>
69053
69054         * lib/path-concat.c (xpath_concat): Reorder code to pacify
69055         compilers that don't know that xalloc_die never returns.
69056
69057 2002-02-20  Jim Meyering  <meyering@lucent.com>
69058
69059         * lib/getdate.c: Regenerate using bison-1.33.
69060
69061 2002-02-17  Jim Meyering  <meyering@lucent.com>
69062
69063         * config/config.guess (main): Don't use `head -1'; it's no longer
69064         portable. Use `sed 1q' instead.
69065
69066 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
69067
69068         * m4/codeset.m4: Upgrade to gettext-0.11.
69069         * m4/gettext.m4: Upgrade to gettext-0.11.
69070         * m4/glibc21.m4: Upgrade to gettext-0.11.
69071         * m4/iconv.m4: Upgrade to gettext-0.11.
69072         * m4/isc-posix.m4: Upgrade to gettext-0.11.
69073         * m4/lcmessage.m4: Upgrade to gettext-0.11.
69074         * m4/lib-ld.m4: New file, from gettext-0.11.
69075         * m4/lib-link.m4: New file, from gettext-0.11.
69076         * m4/lib-prefix.m4: New file, from gettext-0.11.
69077         * m4/progtest.m4: Upgrade to gettext-0.11.
69078
69079 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69080
69081         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
69082         (jm_PREREQ): Use it.
69083
69084 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69085
69086         * lib/posixver.c, lib/posixver.h: New files.
69087         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69088
69089 2002-02-02  Paul Eggert  <eggert@twinsun.com>
69090             Bruno Haible  <bruno@clisp.org>
69091
69092         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
69093         (fwrite_success_callback): New declaration.
69094         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
69095         print_unicode_char. Call failure callback instead of error.
69096         (fwrite_success_callback): New function.
69097         (exit_failure_callback): New function.
69098         (fallback_failure_callback): New function.
69099         (print_unicode_char): Call unicode_to_mb.
69100
69101 2002-01-26  Jim Meyering  <meyering@lucent.com>
69102
69103         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
69104         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
69105
69106 2002-01-26  Jim Meyering  <meyering@lucent.com>
69107
69108         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
69109
69110 2002-01-22  Paul Eggert  <eggert@twinsun.com>
69111
69112         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
69113
69114 2002-01-22  Jim Meyering  <meyering@lucent.com>
69115
69116         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
69117         Otherwise, some versions of automake would omit the rule that makes
69118         Makefile from Makefile.in.
69119
69120 2002-01-21  Paul Eggert  <eggert@twinsun.com>
69121
69122         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
69123         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69124         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
69125         (memcoll): Set errno to zero if there is no error.
69126
69127         * lib/quotearg.c (quotearg_buffer_restyled):
69128         Fix bug with quoting buffers containing NUL when backslashing escapes.
69129         This bug was exposed by the other changes in this patch.
69130         (quotearg_n_options): New arg ARGSIZE.
69131         All callers changed.
69132         (quoting_options_from_style): New function.
69133         (quotearg_n_style): Use it.
69134         (quotearg_n_style_mem): New function.
69135
69136         * lib/quotearg.h (quotearg_n_style_mem): New function.
69137
69138 2002-01-19  Jim Meyering  <meyering@lucent.com>
69139
69140         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
69141         Remove useless quotes: DF_PROG="df".
69142         * m4/strnlen.m4: New file.
69143
69144 2002-01-16  Paul Eggert  <eggert@twinsun.com>
69145
69146         * lib/backupfile.c (ISDIGIT): Comment fix.
69147         * lib/getdate.y (ISDIGIT): Likewise.
69148         * lib/posixtm.c (ISDIGIT, year): Likewise.
69149         * lib/strverscmp.c (ISDIGIT): Likewise.
69150         * lib/userspec.c (ISDIGIT): Likewise.
69151
69152 2002-01-16  Jim Meyering  <meyering@lucent.com>
69153
69154         * lib/getdate.y: Add three semicolons, each just before a closing
69155         brace. Bison (as of version 1.31) no longer papers over that mistake.
69156
69157 2002-01-05  Jim Meyering  <meyering@lucent.com>
69158
69159         * lib/version-etc.c (version_etc_copyright): Update copyright year.
69160
69161 2001-12-19  Paul Eggert  <eggert@twinsun.com>
69162
69163         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
69164         not silently exit merely because the output buffer happens to
69165         have nothing pending.
69166
69167 2001-12-18  Paul Eggert  <eggert@twinsun.com>
69168
69169         See the big note in ../ChangeLog.
69170         * lib/human.c (suffixes): Prefer K to k for 1024.
69171         (generate_suffix_backwards): New function.
69172         (human_readable_inexact): Use it.
69173         * lib/xstrtol.c (__xstrtol): If there is no number but there
69174         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
69175         Accept 'K' as well as 'k'.
69176
69177 2001-12-15  Jim Meyering  <meyering@lucent.com>
69178
69179         * lib/regex.h (__restrict_arr): Update from libc.
69180
69181         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
69182         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
69183         (STREQ): Define.
69184
69185 2001-12-14  Jim Meyering  <meyering@lucent.com>
69186
69187         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
69188         Suggestion from Bruno Haible.
69189
69190 2001-12-10  Jim Meyering  <meyering@lucent.com>
69191
69192         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
69193         xrealloc, Instead, include "xalloc.h".
69194         (initbuffer): Don't cast xmalloc return value to char*.
69195         (readline): Reword comment.
69196         Don't cast xrealloc return value to char*
69197         Return NULL, not 0.
69198
69199 2001-12-09  Jim Meyering  <meyering@lucent.com>
69200
69201         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
69202         about `signed and unsigned type in conditional expression'.
69203         * lib/posixtm.c (posix_time_parse): Likewise.
69204
69205         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
69206
69207         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
69208         to avoid a pedantic warning.
69209
69210         * lib/getstr.c: Don't include assert.h.
69211         (getstr): Remove warning-evoking assertions.
69212         Return -1 if offset parameter is out of bounds.
69213         Change the type of a local from int to size_t.
69214
69215         * lib/strftime.c (my_strftime_localtime_r): Include this function
69216         definition in the `#if ! HAVE_TM_GMTOFF' block.
69217
69218         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
69219         Include xalloc.h instead.
69220
69221 2001-12-02  Jim Meyering  <meyering@lucent.com>
69222
69223         * lib/tempname.c: Don't declare getenv, thus reverting the change of
69224         2001-11-18.  It's no longer necessary, now that stdlib.h is always
69225         included.
69226
69227         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
69228         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
69229
69230 2001-11-30  Akim Demaille  <akim@epita.fr>
69231
69232         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
69233         before being defined.
69234
69235 2001-11-27  Paul Eggert  <eggert@twinsun.com>
69236
69237         * lib/quotearg.h (quotearg_n, quotearg_n_style):
69238         First arg is int, not unsigned.
69239         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
69240         (SIZE_MAX, UINT_MAX): New macros.
69241         (quotearg_n_options): Abort if N is negative.
69242         Avoid overflow check on hosts where size_t is 64 bits and int
69243         is 32 bits, as overflow is impossible there.
69244         Fix off-by-one typo that caused unnecessary reallocation.
69245
69246 2001-11-27  Jim Meyering  <meyering@lucent.com>
69247
69248         * lib/tempname.c: Merge with version from libc.
69249         * lib/regex.c: Likewise.
69250
69251         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
69252         systems for which STDC_HEADERS is 0, it was not included, resulting in
69253         a warning about an integer-to-pointer conversion problem with getenv.
69254         Reported by Volker Borchert.
69255
69256 2001-11-26  Jim Meyering  <meyering@lucent.com>
69257
69258         * lib/gtod.h: Remove file.
69259         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
69260         * lib/gettimeofday.c: Don't include gtod.h.
69261         (GTOD_init): Remove function.
69262         (rpl_gettimeofday): Do its job here instead, rather than aborting.
69263         Suggestion from Volker Borchert.
69264
69265 2001-11-23  Jim Meyering  <meyering@lucent.com>
69266
69267         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
69268         it.
69269         * lib/hash.c (struct hash_table): Define it here instead.
69270
69271 2001-11-22  Jim Meyering  <meyering@lucent.com>
69272
69273         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
69274
69275 2001-11-20  Jim Meyering  <meyering@lucent.com>
69276
69277         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
69278         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
69279
69280 2001-11-19  Jim Meyering  <meyering@lucent.com>
69281
69282         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
69283         directory.  Use "conftestXXXXXX" as the template.
69284         Suggestion from Paul Eggert.
69285
69286         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
69287         immediately, so the test doesn't mistakenly hit the max-open-files
69288         limit.
69289
69290 2001-11-18  Paul Eggert  <eggert@twinsun.com>
69291
69292         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
69293         (TEMPORARIES): New macro.
69294         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
69295         removes an artificial limitation (e.g. HP-UX 10.20, where
69296         TMP_MAX is 17576).
69297
69298 2001-11-18  Jim Meyering  <meyering@lucent.com>
69299
69300         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
69301
69302 2001-11-18  Jim Meyering  <meyering@lucent.com>
69303
69304         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
69305         on SunOS 4.
69306
69307         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
69308         files will be created before anything else.
69309
69310 2001-11-17  Paul Eggert  <eggert@twinsun.com>
69311
69312         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
69313         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
69314
69315 2001-11-17  Jim Meyering  <meyering@lucent.com>
69316
69317         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
69318         Prompted by a report from Bob Proulx.
69319
69320         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
69321         Instead, require UTILS_FUNC_MKSTEMP.
69322
69323 2001-11-17  Jim Meyering  <meyering@lucent.com>
69324
69325         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
69326         Now, that's done as part of AC_FUNC_STRTOD.
69327
69328 2001-11-17  Jim Meyering  <meyering@lucent.com>
69329
69330         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
69331         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
69332         rather than group writable.  Patch by Juan F. Codagnone.
69333
69334         * lib/readtokens.c: Remove explicit declarations of xmalloc and
69335         xrealloc, Instead, include "xalloc.h".
69336
69337         * lib/mountlist.c: Include unlocked-io.h after all system headers.
69338         Remove explicit declarations of xmalloc, xrealloc,
69339         and xstrdup.  Instead, include "xalloc.h".
69340
69341         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
69342         unlocked-io.h.
69343         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
69344         Likewise.
69345         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
69346
69347         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
69348         Reported by Padraig Brady.
69349
69350         * lib/mkstemp.c: #undef mkstemp.
69351         Include config.h.
69352         (rpl_mkstemp): Rename from mkstemp.
69353         Protoize.
69354
69355 2001-11-16  Jim Meyering  <meyering@lucent.com>
69356
69357         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
69358         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
69359         determine the amount of total physical memory, use pstat_getstatic.
69360         HPUX-11 doesn't define _SC_PHYS_PAGES.
69361         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
69362         If sysconf couldn't be used to determine the amount of available
69363         physical memory, use both pstat_getstatic and pstat_getdynamic.
69364         Based on a patch from Bob Proulx.
69365
69366 2001-11-10  Jim Meyering  <meyering@lucent.com>
69367
69368         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
69369         (jm_PREREQ): Use it.
69370
69371 2001-11-09  Jim Meyering  <meyering@lucent.com>
69372
69373         * m4/jm-macros.m4: Require autoconf-2.52f.
69374         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
69375         Use these AC_-prefixed names, not the AM_-prefixed ones.
69376
69377         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
69378
69379 2001-11-05  Jim Meyering  <meyering@lucent.com>
69380
69381         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
69382
69383 2001-11-04  Jim Meyering  <meyering@lucent.com>
69384
69385         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
69386         $DEFS.
69387
69388 2001-11-03  Jim Meyering  <meyering@lucent.com>
69389
69390         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
69391         of AC_DEFUN.
69392
69393         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69394         know the name of the variable in the macro definition.
69395
69396 2001-11-03  Jim Meyering  <meyering@lucent.com>
69397
69398         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69399         in argmatch_to_argument call.
69400
69401         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69402         argument.
69403
69404         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69405         e.g., a fault due to an attempt to free a NULL pointer.
69406
69407 2001-11-01  Jim Meyering  <meyering@lucent.com>
69408
69409         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69410         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69411
69412 2001-11-01  Jim Meyering  <meyering@lucent.com>
69413
69414         * lib/dirfd.c, lib/dirfd.h: New files.
69415         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69416
69417         * lib/hash.c (hash_print) [TESTING]: Clean up.
69418
69419 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69420
69421         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69422         to avoid a warning if -Wall.
69423
69424 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69425
69426         * README: New file
69427         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69428         (per RMS's instructions, this is now the canonical source)
69429         * lgpl/, gpl/: New directories.
69430
69431 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69432
69433         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69434
69435 2001-10-21  Jim Meyering  <meyering@lucent.com>
69436
69437         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69438         this code would end up calling gettext even in packages built
69439         with --disable-nls.
69440         * lib/getopt.c (_): Likewise.
69441         * lib/regex.c (_): Likewise.
69442
69443 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69444
69445         * m4/error.m4 (jm_PREREQ_ERROR):
69446         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69447         AC_FUNC_STRERROR_R does that.
69448         Check for strerror declaration.
69449
69450         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69451         are supposed to have them these days.
69452         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69453         Merge changes from latest Autoconf CVS.
69454         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69455         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69456         POSIX decided to standardize on the int flavor of strerror_r.
69457
69458 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69459
69460         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69461         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69462         Use strerror_r that is only a macro, even if it is not a function.
69463         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69464         (private_strerror): Use prototypes, not old-style function definition.
69465         (print_errno_message): New function.
69466         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69467         char*-flavored one.
69468         (error_tail, error, error_at_line): Use it.
69469
69470 2001-10-11  Jim Meyering  <meyering@lucent.com>
69471
69472         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69473         and quote_n (1, ... to avoid clobbering a buffer.
69474
69475 2001-10-05  Jim Meyering  <meyering@lucent.com>
69476
69477         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69478         hash-pjw.h.
69479         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69480         * lib/hash-pjw.h: New file.
69481
69482 2001-09-30  Jim Meyering  <meyering@lucent.com>
69483
69484         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69485         `struct fsstat' has the `f_fstypename' member.
69486         Use that to define FS_TYPE, which is now used to make
69487         the getfsstat link test tighter.
69488
69489 2001-09-30  Jim Meyering  <meyering@lucent.com>
69490
69491         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69492         Include <sys/ucred.h>, for Apple Darwin.
69493         Include sys/mount.h and sys/fs_types.h only if available.
69494         (FS_TYPE): Define.
69495         (read_filesystem_list): Use FS_TYPE.
69496
69497 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69498
69499         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69500         a boolean context.
69501
69502 2001-09-29  Jim Meyering  <meyering@lucent.com>
69503
69504         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69505         [one-argument getmntent function]): Include stdio.h before mntent.h.
69506         SunOS 4.1.x needs it for the declaration of `FILE'.
69507         Patch by Volker Borchert.
69508
69509         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69510         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69511         sys/fs_types.h, and make the link-test for getfsstat guard #include
69512         directives with appropriate #if HAVE_*_H tests so that we can
69513         detect getfsstat on Apple Darwin1.3.7 systems.
69514         Reported by Nelson Beebe.
69515         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69516
69517 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69518
69519         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69520         #defines strtoimax.  Also treat the other strto* functions
69521         like strtoimax.
69522
69523         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69524         Check for strtoul and strtoumax,
69525         as those declarations are made even in the signed case.
69526         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69527         Likewise, for strtol and strtoimax.
69528
69529 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69530
69531         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69532         #defines strtoimax.  Also treat the other strto* functions
69533         like strtoimax.
69534
69535         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69536         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69537         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69538
69539 2001-09-26  Jim Meyering  <meyering@lucent.com>
69540
69541         Most macros in unlocked-io.h had the wrong number of arguments.
69542         * lib/gen-uio: New script.
69543         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69544         * lib/unlocked-io.hin: Remove file.
69545         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69546         rather than trying to embed it here.
69547         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69548         Reported by Padraig Brady.
69549
69550 2001-09-25  Volker Borchert  <bt@teknon.de>
69551
69552         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69553         `result'.
69554
69555 2001-09-24  Jim Meyering  <meyering@lucent.com>
69556
69557         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69558
69559 2001-09-23  Jim Meyering  <meyering@lucent.com>
69560
69561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69562         instead of the mere test for existence of mntent.h.  The latter
69563         would get a false-positive on AIX 3.4 systems.
69564         In the outer getmntent if-block, don't die if neither of the getmntent
69565         tests succeeds.  Instead, just fall through and continue with the
69566         remaining tests.
69567
69568 2001-09-23  Jim Meyering  <meyering@lucent.com>
69569
69570         * lib/mountlist.c: Remove useless parentheses in #if directives.
69571         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69572         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69573
69574 2001-09-22  Jim Meyering  <meyering@lucent.com>
69575
69576         * m4/gettext.m4: New file.  From gettext.
69577         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69578         * m4/progtest.m4: Likewise
69579         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69580         * m4/glibc21.m4: Likewise.
69581
69582         * m4/libintl.m4: Remove.  No longer used.
69583
69584 2001-09-22  Jim Meyering  <meyering@lucent.com>
69585
69586         * lib/localcharset.c: Update from latest gettext.
69587         * lib/config.charset: Likewise.
69588
69589 2001-09-20  Jim Meyering  <meyering@lucent.com>
69590
69591         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69592         strtoimax.
69593         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69594         strtoumax.
69595
69596 2001-09-20  Jim Meyering  <meyering@lucent.com>
69597
69598         * lib/xstrtol.c (strtoimax): Guard declaration with
69599         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69600         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69601         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69602         (strtoumax): Likewise, for completeness (it wasn't necessary).
69603
69604 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69605
69606         * lib/strtoimax.c (HAVE_LONG_LONG):
69607         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69608         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69609         to work around bug in IBM C compiler.
69610
69611 2001-09-17  Jim Meyering  <meyering@lucent.com>
69612
69613         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69614         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69615         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69616         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69617         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69618         whenever the right hand side need not be expanded by the shell.
69619
69620 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69621
69622         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69623         library.  It's not correct, as some older glibcs are buggy.
69624         fnmatch wasn't fixed until glibc 2.2.
69625
69626         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69627         special shell magic here.
69628
69629 2001-09-16  Jim Meyering  <meyering@lucent.com>
69630
69631         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69632         * m4/jm-macros.m4: Require it.
69633
69634 2001-09-16  Jim Meyering  <meyering@lucent.com>
69635
69636         * lib/mkdir.c: New file.
69637
69638 2001-09-15  Jim Meyering  <meyering@lucent.com>
69639
69640         * m4/jm-macros.m4: Check for help2man.
69641
69642 2001-09-11  Jim Meyering  <meyering@lucent.com>
69643
69644         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69645         The body, by Paul Eggert, was moved here from configure.in.
69646         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69647
69648 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69649
69650         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69651         (jm_PREREQ): Use it.
69652
69653 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69654
69655         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69656         Use ssize_t, not int, to store result of readlink.
69657         Check for ssize_t overflow as well as size_t overflow,
69658         as POSIX says the result of readlink is implementation-defined
69659         when ssize_t overflows.
69660         Remove unnecessary cast to char*.
69661         Use free+malloc instead of realloc, as the storage doesn't need
69662         to be preserved and it's clearer and can be more efficient that way.
69663         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69664         * lib/xreadlink.h (xreadlink): Update prototype.
69665
69666 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69667
69668         * lib/xgetcwd.c: Revert some of the previous change; intead,
69669         fix the HAVE_GETCWD_NULL code to behave more like the
69670         !HAVE_GETCWD_NULL code used to.
69671
69672         Include "xalloc.h".
69673         (xgetcwd): Do not return NULL when memory is exhausted; instead,
69674         invoke xalloc_die.
69675
69676 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69677
69678         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
69679         sys/param.h, as pathmax.h includes them.
69680
69681 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69682
69683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
69684         (jm_PREREQ_XGETCWD): New macro.
69685
69686         * m4/getcwd.m4: New file.
69687
69688 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69689
69690         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
69691         like the HAVE_GETCWD_NULL code.
69692         Include pathmax.h if not HAVE_GETCWD.
69693         Do not include xalloc.h.
69694         (INITIAL_BUFFER_SIZE): New symbol.
69695         Do not use xmalloc / xrealloc, since the caller is responsible for
69696         handling errors.  Preserve errno around `free' during failure.
69697         Do not overrun buffer when using getwd.
69698
69699 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69700
69701         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
69702         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
69703         getcwd (NULL, 0).
69704
69705 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69706
69707         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
69708         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
69709         spotted by Jim Meyering.
69710
69711 2001-09-03  Jim Meyering  <meyering@lucent.com>
69712
69713         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
69714         failure.
69715
69716 2001-09-02  Jim Meyering  <meyering@lucent.com>
69717
69718         * lib/error.c: Update from GNU libc.
69719
69720 2001-09-01  Jim Meyering  <meyering@lucent.com>
69721
69722         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
69723         Used by df.
69724
69725 2001-09-01  Jim Meyering  <meyering@lucent.com>
69726
69727         * lib/xreadlink.c: New file.
69728         * lib/xreadlink.h: New file.
69729         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
69730         xreadlink.h.
69731
69732         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
69733         doesn't conflict with sparc Solaris 7's definition in
69734         /usr/include/sys/int_types.h.
69735
69736         * lib/exclude.c: Use `""', not `<>' to #include non-system header
69737         files.
69738         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
69739         and strncasecmp as r-values.  Unixware didn't have declarations.
69740
69741 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69742
69743         * lib/xstrtol.h: Add copyright notice.
69744         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
69745         LONGINT_INVALID_SUFFIX_CHAR.
69746
69747 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69748
69749         * lib/xstrtol.c (strtoimax): New decl.
69750
69751 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69752
69753         * lib/xgetcwd.c: Don't include pathmax.h.
69754         Include stdlib.h and unistd.h if available.
69755         Include xalloc.h.
69756         (xmalloc, xstrdup, free): Remove decls.
69757         (xgetcwd): Don't assume sizes fit in unsigned.
69758         Check for overflow when computing sizes.
69759         Simplify reallocation code.
69760
69761 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69762
69763         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
69764         a directory's st_size can have an arbitrary value, so the old
69765         usage could waste an arbitrary amount of memory.  All uses
69766         changed.
69767         * lib/savedir.h: Update prototype.
69768
69769 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69770
69771         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
69772
69773         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
69774         old strtoimax.c.
69775
69776         Also, make the following further changes to make this file's
69777         configuration more similar to that of strtol.c:
69778         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
69779         (strtoumax, uintmax_t, strtoull, strtol): Remove.
69780         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
69781         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
69782         changed to signed values.
69783
69784         And make the following changes as well:
69785         Fix copyright notice, as 1999 was missing.
69786         (verify): New macro.
69787         (strtoimax): Check sizes at compile-time, not run-time.
69788         Prefer strtol to strtoll if both work.
69789         (main): Remove; it was not that useful and was a pain to maintain.
69790
69791         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
69792
69793 2001-08-31  Jim Meyering  <meyering@lucent.com>
69794
69795         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
69796         Use an initial, malloc'd, buffer of length 128 rather than
69797         a statically allocated one of length 1024.
69798
69799 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69800
69801         Simplify code, partly by assuming autoconf 2.52 semantics.
69802
69803         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
69804
69805         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
69806         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
69807         All uses removed.
69808         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
69809         Move AC_REQUIRE to next-to-top level, to avoid confusion.
69810         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
69811         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
69812         jm_AC_HEADER_INTTYPES_H.
69813         * m4/jm-macros.m4 (jm_MACROS): Likewise.
69814
69815         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
69816
69817         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69818         Quote first arg of AC_DEFUN.
69819         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
69820         since they are needed to parse the include file even if we need
69821         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
69822         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
69823         but with opposite signedness.
69824
69825 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69826
69827         Merge 'exclude' changes from tar 1.13.22.
69828         This fixes one or two unlikely storage allocation overflow bugs,
69829         but doesn't change user-visible behavior otherwise.
69830
69831 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69832
69833         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
69834         (jm_PREREQ_EXCLUDE): New macro.
69835
69836 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69837
69838         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69839         tm to be declared.
69840
69841 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69842
69843         * lib/hash.c: Remove '2001' from copyright notice.
69844
69845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69846
69847         * lib/full-write.h: New file.
69848         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69849         * lib/full-write.c: Correct credits, as cccp.c no longer
69850         exists and anyway it was so heavily changed from the old cccp
69851         code as to be unrecognizable.  Include full-write.h.
69852         (full_write) Return size_t, with short writes meaning failure.
69853         All callers changed.  This fixes a bug with large buffers
69854         on 64-bit hosts.
69855         * lib/utime.c: Include full-write.h.
69856
69857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69858
69859         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69860         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69861         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69862         Include if available.
69863         (<xalloc.h>): Include
69864         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69865         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69866         collide with FNM macros.
69867         (struct patopts): New struct.
69868         (struct exclude): Use it, as exclude patterns now come with options.
69869         (new_exclude): Support above changes.
69870         (new_exclude, add_exclude_file):
69871         Initial size must now be a power of two to simplify overflow checking.
69872         (free_exclude, fnmatch_no_wildcards): New function.
69873         (excluded_filename): No longer requires options arg, as the options
69874         are determined by add_exclude.  Now returns bool, not int.
69875         (excluded_filename, add_exclude):
69876         Add support for the fancy new exclusion options.
69877         (add_exclude, add_exclude_file): Now takes int options arg.
69878         Check for arithmetic overflow when computing sizes.
69879         (add_exclude_file): xrealloc might modify errno, so don't
69880         realloc until after errno might be used.
69881
69882         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69883         New macros.
69884         (free_exclude): New decl.
69885         (add_exclude, add_exclude_file): Now takes int options arg.
69886         (excluded_filename): No longer requires options arg, as the options
69887         are determined by add_exclude.  Now returns bool, not int.
69888
69889 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69890
69891         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69892
69893 2001-08-27  Jim Meyering  <meyering@lucent.com>
69894
69895         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69896
69897         * lib/version-etc.c (N_): Remove definition.
69898         Revert most of last change.
69899         Instead, simply don't mark the `Copyright...' string for translation.
69900         Based on advice from Paul Eggert.
69901
69902         * lib/strtoxmax.c: Tweak comment.
69903
69904 2001-08-26  Jim Meyering  <meyering@lucent.com>
69905
69906         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69907
69908         * m4/xstrtoimax.m4: New file.
69909         * m4/xstrtoumax.m4: Add comments explaining why we
69910         AC_REPLACE_FUNCS(strtol).
69911
69912 2001-08-26  Jim Meyering  <meyering@lucent.com>
69913
69914         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69915         of copyright with `%s' so translators don't get an untranslated
69916         message in 2002.
69917         (COPYRIGHT_YEAR): Define.
69918         (version_etc): Use fprintf rather than fputs.
69919         Suggestion from Ulrich Drepper.
69920
69921         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69922
69923         * lib/strtoll.c: New file, from GNU libc.
69924         * lib/xstrtoimax.c: New file.
69925
69926         * lib/xstrtol.h: Add xstrtoimax.
69927         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69928         * lib/strtoimax.c: New file.  Likewise, but first define
69929         STRTOUXMAX_SIGNED.
69930
69931         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69932         ...
69933         * lib/strtoxmax.c: ... then renamed to this.
69934
69935 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69936
69937         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69938         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69939         (jm_AC_TYPE_INTMAX_T): New macro.
69940         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69941
69942         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69943
69944         * m4/longlong.m4: Renamed from ulonglong.m4.
69945         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69946         * m4/uintmax_t.m4: Removed.
69947
69948 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69949
69950         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69951         Port to Solaris 8, where 'sed' requires a space after the 'r'
69952         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69953         Redirect output to $tmp just once.
69954
69955 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69956
69957         * lib/addext.c (<errno.h>): Include.
69958         (errno): Declare if not defined.
69959         (addext): Work correctly when pathconf returns -1 and leaves
69960         errno alone because there is no limit.  Also, work even if
69961         pathconf returns a value greater than SIZE_MAX.
69962
69963 2001-08-12  Jim Meyering  <meyering@lucent.com>
69964
69965         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69966         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69967         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69968         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69969         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69970         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69971         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69972         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69973         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69974         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69975         utime.m4, utimes.m4, xstrtoumax.m4:
69976         Quote the first argument in each use of AC_DEFUN.
69977
69978 2001-08-12  Jim Meyering  <meyering@lucent.com>
69979
69980         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69981         Simply `return getcwd (NULL, 0);'.
69982         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69983         Use 1300 as initial value for length, not PATH_MAX.
69984
69985         * lib/pathmax.h: Clean up cpp syntax.
69986
69987 2001-08-12  Jim Meyering  <meyering@lucent.com>
69988
69989         * lib/gettimeofday.c: New file.
69990         * lib/gtod.h: New file.
69991         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69992
69993 2001-08-05  Jim Meyering  <meyering@lucent.com>
69994
69995         * m4/jm-macros.m4: Require autoconf-2.52.
69996
69997 2001-08-04  Jim Meyering  <meyering@lucent.com>
69998
69999         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
70000         stmt, to get in sync with glibc.
70001
70002 2001-08-03  Paul Eggert  <eggert@twinsun.com>
70003
70004         The following changes are from gettext 0.10.39 as maintained by
70005         Bruno Haible.
70006
70007         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
70008         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
70009         with inverted sense.  All uses changed.
70010
70011         * lib/mbswidth.c: Don't include <limits.h>.
70012         Include <stdlib.h> and <string.h> unconditionally.
70013         (iswcntrl, mbsinit, ISCNTRL): New macros.
70014         (mbsnwidth): Use K&R style function declarations.
70015         Don't bother checking for MB_LEN_MAX == 1, since the compiler
70016         can optimize it when MB_CUR_MAX == 1.
70017         The width of control characters is zero, not 1.
70018
70019 2001-08-03  Paul Eggert  <eggert@twinsun.com>
70020
70021         The following changes are from gettext 0.10.39 as maintained by
70022         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
70023
70024         * m4/codeset.m4: Upgrade to serial AM1.
70025         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
70026         all uses changed.  Quote first arg of AC_DEFUN.
70027         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
70028
70029         * m4/iconv.m4: Upgrade to serial AM2.
70030         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
70031         Add --with-libconv-prefix.
70032         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
70033         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
70034         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
70035         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
70036         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
70037
70038         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
70039         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
70040         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
70041         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
70042         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
70043         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
70044         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
70045         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
70046         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70047
70048         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
70049         string.h any more.
70050
70051         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
70052         not the default value.
70053
70054         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
70055         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
70056         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
70057         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
70058         Also check for iswcntrl, used for wcwidth fallback.
70059         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
70060         to Autoconf 2.13.
70061
70062 2001-08-03  Jim Meyering  <meyering@lucent.com>
70063
70064         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
70065         as it was in the original.  Reported by Paul Eggert.
70066
70067 2001-07-16  Jim Meyering  <meyering@lucent.com>
70068
70069         * m4/gettimeofday.m4: New file.
70070         Prompted by a report from Bernhard Baehr.
70071
70072 2001-07-15  Jim Meyering  <meyering@lucent.com>
70073
70074         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
70075         stuff. Now it's in ../Makefile.cfg.
70076
70077 2001-07-15  Jim Meyering  <meyering@lucent.com>
70078
70079         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
70080         (BUILT_SOURCES): Add unlocked-io.h.
70081         (io_functions): Define.
70082         (unlocked-io.h): New rule.
70083         (DISTCLEANFILES): Add unlocked-io.h.
70084         (all-local): Depend on unlocked-io.h, to ensure it is created.
70085
70086         * lib/unlocked-io.hin: New file
70087
70088         * lib/regex.c: Update from glibc.
70089
70090 2001-07-05  Jim Meyering  <meyering@lucent.com>
70091
70092         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
70093         recommendation.
70094         (libfetish_a_SOURCES): Put all .h files here instead.
70095         Remove a thus-exposed (better checks in automake) duplicate and
70096         two unnecessary .h files.
70097
70098 2001-07-04  Jim Meyering  <meyering@lucent.com>
70099
70100         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
70101         that generates jm-glibc-io.m4 so that it doesn't trigger any make
70102         distcheck failure.
70103
70104 2001-07-02  Jim Meyering  <meyering@lucent.com>
70105
70106         The following changes were prompted by suggestions from Bruno Haible.
70107
70108         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
70109         is now generated.
70110         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
70111         definition of EXTRA_DIST.
70112         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
70113         ensure that the generated file is created/updated whenever the list
70114         of $(unlocked_functions) is changed.
70115         (jm-glibc-io.m4): New rule.
70116         (unlocked-io.h): New rule -- currently unused.
70117
70118 2001-06-24  Jim Meyering  <meyering@lucent.com>
70119
70120         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
70121         unmatched right bracket, rather than kludging it with an extra,
70122         falsely-matching quote in a comment.  Patch by Akim Demaille.
70123
70124 2001-06-11  Jim Meyering  <meyering@lucent.com>
70125
70126         * lib/regex.c: Update from GNU libc.
70127
70128 2001-05-27  Jim Meyering  <meyering@lucent.com>
70129
70130         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
70131         Check for ut_type in struct utmp.
70132
70133 2001-05-27  Jim Meyering  <meyering@lucent.com>
70134
70135         * lib/readutmp.h (UT_TYPE): Define.
70136
70137 2001-05-24  Jim Meyering  <meyering@lucent.com>
70138
70139         * lib/argmatch.c: Include "quote.h".
70140         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
70141         quote function.  Reported by Göran Uddeborg.
70142
70143 2001-05-22  Jim Meyering  <meyering@lucent.com>
70144
70145         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
70146         now that we use the package-supplied version unconditionally.
70147         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
70148
70149 2001-05-21  Jim Meyering  <meyering@lucent.com>
70150
70151         * m4/regex.m4: Change a couple backticks to single quotes to avoid
70152         shell syntax errors.
70153
70154 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70155
70156         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
70157
70158 2001-05-20  Paul Eggert  <eggert@twinsun.com>
70159
70160         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
70161         Don't bother to check library strftime, since
70162         we'll be using our own my_strftime function anyway.
70163         Define my_strftime instead of strftime.
70164
70165 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
70166
70167         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
70168         which is not yet declared.
70169
70170 2001-05-15  Jim Meyering  <meyering@lucent.com>
70171
70172         * m4/regex.m4: Use proper quoting so brackets appear in the test
70173         program.
70174         Reported by, and with help from, Bruno Haible.
70175
70176 2001-05-13  Jim Meyering  <meyering@lucent.com>
70177
70178         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
70179         undefined.
70180
70181 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70182
70183         dirname code cleanup.  base_name now behaves more compatibly
70184         with POSIX basename when given file names that have trailing
70185         slashes, and similarly for dir_name.  Add new primitives
70186         base_len and dir_len.  Put the directory-name-related decls
70187         into dirname.h.
70188
70189         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
70190         * lib/backupfile.c (base_name): Likewise.
70191         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
70192         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
70193         * lib/makepath.c (strip_trailing_slashes): Likewise.
70194         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
70195         ISSLASH): Likewise.
70196         * lib/rename.c (strip_trailing_slashes): Likewise.
70197         * lib/same.c (base_name): Likewise.
70198         * lib/stripslash.c (ISSLASH): Likewise.
70199
70200         * lib/addext.c: Include <dirname.h> after size_t is defined.
70201         * lib/backupfile.c: Likewise.
70202
70203         * lib/addext.c (addext): Use base_len to trim redundant
70204         trailing slashes instead of doing it ourselves.
70205         But do not trim the last slash if it is not redundant.
70206
70207         * lib/backupfile.c (find_backup_file_name,
70208         max_backup_version): Use base_len instead of rolling it ourselves.
70209         Handle the case of "" and (on DOS) "C:" correctly.
70210
70211         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
70212         needed. Include <string.h>, <dirname.h>.
70213         (base_name): Allow file names ending in slashes, other than names
70214         that are all slashes.  In this case, return the basename followed
70215         by the slashes.  This is more general, and can be used in places
70216         where the original base_name purposely had an assertion failure.
70217         (base_len): New function.
70218
70219         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
70220         Do not include <assert.h>; no longer needed.
70221         Include xalloc.h.
70222         (memrchr): Remove decl.
70223         (dir_name_r): Remove.
70224         (dir_len): Renamed from dirlen.  All callers changed.
70225         Rewrite in terms of base_name, for simplicity and consistency.
70226         (dir_name): Never return NULL.  All callers changed.
70227         Do not include <stdlib.h> in test program; no longer needed.
70228         return 0; is fine for test program.
70229
70230         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
70231         New macros.
70232         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
70233
70234         * lib/path-concat.c (path_concat): Use base_len to compute
70235         base length, not strlen; this means we cannot rely on memcpy
70236         to null-terminate.
70237
70238         * lib/same.c (STREQ): Remove.
70239         (same_name): Handle the case where the basename ends in trailing '/'.
70240
70241         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
70242         a slash was stripped.  Do not strip the last slash after a
70243         file system prefix.
70244
70245 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70246
70247         * lib/Makefile.am (libfetish_a_SOURCES):
70248         Add strftime.c, since we now compile it on all hosts.
70249
70250         * lib/strftime.c (my_strftime):
70251         Define to nstrftime if emacs, but only if my_strftime is not defined.
70252         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
70253         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
70254         Add one more extra argument: a nanoseconds value.
70255         All uses changed.
70256         (ns): New macro.
70257         (my_strftime function): Add %N format.
70258         (emacs_strftimeu): Renamed from emacs_strftime,
70259         with extra ut argument.
70260
70261 2001-05-09  Paul Eggert  <eggert@twinsun.com>
70262
70263         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
70264
70265 2001-04-21  Jim Meyering  <meyering@lucent.com>
70266
70267         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
70268         doesn't interfere.
70269
70270 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70271
70272         * m4/ftruncate.m4: Check for chsize.
70273         Link with ftruncate.o unconditionally if ftruncate is missing.
70274         This was required when cross-compiling to i586-mingw32msvc.
70275
70276 2001-04-08  Jim Meyering  <meyering@lucent.com>
70277
70278         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
70279         recomputed; that's necessary when the offset spans a DST transition.
70280         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
70281
70282 2001-04-02  Jim Meyering  <meyering@lucent.com>
70283
70284         * lib/regex.h, regex.c: Update from GNU libc.
70285
70286 2001-03-24  Jim Meyering  <meyering@lucent.com>
70287
70288         * m4/jm-macros.m4: Require autoconf-2.49d.
70289
70290 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
70291
70292         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
70293
70294 2001-03-19  Paul Eggert  <eggert@twinsun.com>
70295
70296         * lib/version-etc.c (version_etc_copyright): Update to 2001.
70297
70298 2001-03-17  Jim Meyering  <meyering@lucent.com>
70299
70300         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
70301         now that the version in autoconf is equivalent.
70302         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
70303
70304         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
70305         Suggestion from Akim Demaille.
70306
70307         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
70308         (jm_PREREQ_TEMPNAME): New function.
70309
70310 2001-03-16  Paul Eggert  <eggert@twinsun.com>
70311
70312         * lib/tempname.c (uint64_t): Define to uintmax_t if
70313         not defined, and if UINT64_MAX is not defined.
70314         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
70315         Reported by John David Anglin.
70316
70317 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
70318
70319         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
70320         resolve alias if codeset is empty.
70321         * lib/config.charset (BeOS): Use wildcard syntax.
70322
70323 2001-03-13  Jim Meyering  <meyering@lucent.com>
70324
70325         * lib/path-concat.c (path_concat)
70326         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
70327         concatenating e.g., `C:' and `foo'.
70328         From Bruno Haible.
70329
70330 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70331
70332         * lib/localcharset.c (locale_charset): Don't use
70333         setlocale(LC_CTYPE,NULL). Don't return NULL.
70334         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
70335
70336 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70337
70338         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
70339         support for DOS/DJGPP.
70340
70341 2001-03-01  Paul Eggert  <eggert@twinsun.com>
70342
70343         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
70344         lacks mkstemp.  Compile our own tempname.c if we compile our own
70345         mkstemp.c, as mkstemp relies on tempname.
70346
70347 2001-03-01  Jim Meyering  <meyering@lucent.com>
70348
70349         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
70350         AH_VERBATIM really does output its argument verbatim.
70351
70352 2001-02-28  Paul Eggert  <eggert@twinsun.com>
70353
70354         * lib/Makefile.am (libfetish_a_SOURCES):
70355         Add dup-safer.c, fopen-safer.c.
70356         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
70357
70358         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
70359         * lib/unistd-safer.h: New files.
70360
70361 2001-02-25  Paul Eggert  <eggert@twinsun.com>
70362
70363         The mkstemp replacement is taken from glibc 2.2.2, with some
70364         portability fixes for use outside glibc, as follows:
70365
70366         * lib/tempname.c (struct_stat64): New macro.
70367         (direxists, __gen_tempname): Use it.
70368         This avoids a portability problem with Solaris 8.
70369
70370         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
70371         (<stddef.h>, <stdint.h>, <string.h>):
70372         Include only if STDC_HEADERS || _LIBC.
70373         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
70374         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
70375         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
70376         (__set_errno): Define this macro if <errno.h> doesn't.
70377         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
70378         Define these macros if <stdio.h> doesn't.
70379         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
70380         Define these macros if <sys/stat.h>
70381         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
70382         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
70383         __xstat64): Define if not _LIBC.
70384         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
70385         (__gen_tempname): Invoke gettimeofday only if
70386         HAVE_GETTIMEOFDAY || _LIBC;
70387         otherwise, fall back on plain "time".
70388         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
70389
70390         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
70391
70392         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
70393
70394 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70395
70396         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70397
70398 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70399
70400         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70401         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70402         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70403         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70404
70405 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70406
70407         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70408         Remove workaround macros for hosts that have mbrtowc but not
70409         mbstate_t, as we now insist on proper declarations for both
70410         before using mbrtowc.
70411
70412 2001-02-17  Jim Meyering  <meyering@lucent.com>
70413
70414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70415         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70416         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70417         UnixWare 7.1.1.
70418
70419         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70420         rather than AC_CACHE_VAL.
70421
70422 2001-02-17  Jim Meyering  <meyering@lucent.com>
70423
70424         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70425         around included file name.
70426
70427         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70428
70429         * lib/strftime.c: Update from GNU libc (the only changes were to
70430         comments).
70431
70432 2001-02-17  Jim Meyering  <meyering@lucent.com>
70433
70434         * lib/regex.c: Update from libc.
70435
70436 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70437
70438         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70439         clash.
70440
70441 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70442
70443         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70444         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70445         Reported by Mark Hounschell via Paul Eggert.
70446
70447 2001-02-07  Jim Meyering  <meyering@lucent.com>
70448
70449         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70450
70451 2001-02-05  Jim Meyering  <meyering@lucent.com>
70452
70453         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70454         it includes the patch required for `large file' support with at least
70455         HP-UX's 10.20 /bin/cc.
70456
70457 2001-02-03  Jim Meyering  <meyering@lucent.com>
70458
70459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70460         AS_IF, now that it works once again (mysteriously).
70461         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70462
70463 2001-01-30  Jim Meyering  <meyering@lucent.com>
70464
70465         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70466         * m4/chown.m4: Rename conftestchown to conftest.chown.
70467         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70468         s/conftestdir2/conftest.d2/.
70469         * m4/utimes.m4: s/conftestdata/conftest.data/
70470         Inspired by Pavel Roskin's change in autoconf.
70471
70472 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70473
70474         * lib/config.charset: Update for FreeBSD 4.2.
70475
70476 2001-01-27  Jim Meyering  <meyering@lucent.com>
70477
70478         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70479         a use of AS_IF.
70480         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70481
70482 2001-01-26  Jim Meyering  <meyering@lucent.com>
70483
70484         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70485         quotearg.c includes it.
70486
70487 2001-01-26  Jim Meyering  <meyering@lucent.com>
70488
70489         * lib/quotearg.c: Include stddef.h.
70490         * lib/quote.c: Include stddef.h.
70491         Reported by Axel Kittenberger.
70492
70493         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70494         line in double quotes so that it evokes a better diagnostic.
70495         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70496         Reported by Axel Kittenberger.
70497
70498 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70499
70500         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70501         as if it was a `charset'.
70502
70503 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70504
70505         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70506         has const.
70507
70508 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70509
70510         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70511         to avoid a warning.  Add back 'const' to inptr.
70512
70513 2001-01-20  Jim Meyering  <meyering@lucent.com>
70514
70515         Be sure that headers are checked before used in code compiled
70516         for the type checks.
70517         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70518         In place of that, invoke jm_CHECK_ALL_TYPES.
70519         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70520         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70521         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70522         The check for ssize_t was mistakenly run before the test for unistd.h.
70523
70524         The configure-time check for stdbool.h was missing.
70525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70526         (jm_PREREQ_HASH): New function.
70527
70528 2001-01-17  Jim Meyering  <meyering@lucent.com>
70529
70530         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70531         for autoconf-2.49c.
70532         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70533
70534 2001-01-16  Jim Meyering  <meyering@lucent.com>
70535
70536         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70537         From Bruno Haible.
70538
70539 2001-01-14  Jim Meyering  <meyering@lucent.com>
70540
70541         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70542         foo and bar.  Create conftestdir/ in the script, not in the C code.
70543         Remove directories in the script, not in the C code.
70544         Remove conftestdir{,2} before trying to create the directory.
70545         Make the entire configure script fail if the mkdir fails.
70546
70547 2001-01-14  Jim Meyering  <meyering@lucent.com>
70548
70549         * lib/rename.c: New file.  From Volker Borchert.
70550         Include stdlib.h, string.h or strings.h, and xalloc.h.
70551         Use strip_trailing_slashes rather than open-coding it.
70552
70553 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70554
70555         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70556
70557 2001-01-03  Jim Meyering  <meyering@lucent.com>
70558
70559         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70560         of local `inptr' to avoid warning with some system declarations of
70561         iconv.
70562
70563 2001-01-02  Volker Borchert  <bt@teknon.de>
70564
70565         * m4/rename.m4: New file.
70566         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70567
70568 2001-01-01  Jim Meyering  <meyering@lucent.com>
70569
70570         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70571         even on systems with utmpx.h.  It's necessary for the declaration of
70572         utmp's ut_user member.  Reported by Andreas Jaeger.
70573
70574         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70575         available. They are required for the declarations of getgrgid and
70576         getpwuid resp.
70577         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70578         Reported by Andreas Jaeger.
70579
70580 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70581
70582         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70583         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70584         so `make install' also works in VPATH builds.
70585
70586 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70587
70588         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70589         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70590         can be used in subdirectories.
70591
70592 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70593
70594         * lib/modechange.c: Do not assume that mode_t uses the
70595         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70596         the other-execute bit of FOO even if S_IXOTH != 1.
70597
70598         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70599         WOTH, XOTH, ALLM): New macros.
70600         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70601          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70602         Use them.
70603         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70604         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70605         (mode_compile):
70606         No need to use uintmax_t; unsigned long is long enough.
70607         Don't bother to get suffix since we don't use it.
70608
70609 2000-12-26  Jim Meyering  <meyering@lucent.com>
70610
70611         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70612         better with autoheader.
70613
70614 2000-12-24  Jim Meyering  <meyering@lucent.com>
70615
70616         * lib/hash.c (is_prime): Return explicit boolean values.
70617         (hash_get_first): Return NULL to appease Irix5.6's 89.
70618         Reported by Nelson Beebe.
70619
70620 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70621
70622         * lib/localcharset.c (locale_charset): Add support for Win32.
70623
70624 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70625
70626         * lib/physmem.h, lib/physmem.c: New files.
70627
70628         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70629         (noinst_HEADERS): Add physmem.h.
70630
70631         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70632         't' for compatibility with Solaris 8 sort.
70633
70634 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70635
70636         * lib/config.charset: Add support for BeOS.
70637
70638 2000-12-17  Jim Meyering  <meyering@lucent.com>
70639
70640         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70641         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70642
70643 2000-12-16  Jim Meyering  <meyering@lucent.com>
70644
70645         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70646         N and M) would have treated it like `chown N:N FILE'.
70647
70648         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70649
70650 2000-12-16  Jim Meyering  <meyering@lucent.com>
70651
70652         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70653         SHELLS_FILE to a file name that's useful on djgpp systems.
70654         Include stdlib.h.
70655         (ADDITIONAL_DEFAULT_SHELLS): Define.
70656         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70657         Based mostly on a patch from Prashant TR.
70658
70659 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70660
70661         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70662         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70663         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70664
70665 2000-12-08  Andreas Schwab  <schwab@suse.de>
70666
70667         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70668         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70669
70670 2000-12-07  Jim Meyering  <meyering@lucent.com>
70671
70672         * lib/stripslash.c (ISSLASH): Define.
70673         (strip_trailing_slashes): Use ISSLASH rather than comparing against
70674         `/'.
70675         From Prashant TR.
70676
70677         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
70678         (dir_name_r): Declare this function as static.
70679         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
70680         manifest itself on a name containing a mix of slashes and
70681         backslashes.
70682         Make this function work with names starting with a DOS-style
70683         drive letter and colon prefix.
70684         (dir_name): Append `.' if necessary.
70685         Based mostly on patches from Prashant TR and Eli Zaretskii.
70686
70687         * lib/dirname.h (dir_name_r): Remove prototype.
70688
70689 2000-12-06  Paul Eggert  <eggert@twinsun.com>
70690
70691         * m4/off_t-format.m4: Remove this file.
70692         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
70693
70694 2000-12-06  Jim Meyering  <meyering@lucent.com>
70695
70696         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
70697         replacement strtoull, we may well need the replacement strtoul, too.
70698         Check for declarations of strtoul and strtoull.
70699         Check for strtol.  Mainly as a cue to cause automake to include
70700         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
70701         Check for limits.h -- strtol.c needs it.
70702
70703 2000-12-05  Jim Meyering  <meyering@lucent.com>
70704
70705         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
70706
70707 2000-12-04  Jim Meyering  <meyering@lucent.com>
70708
70709         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
70710         Also include memory.h, stdlib.h, unistd.h if appropriate.
70711         Reported by Andreas Jaeger (conflicting declaration of malloc).
70712
70713 2000-12-02  Jim Meyering  <meyering@lucent.com>
70714
70715         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
70716         * m4/jm-macros.m4 (jm_MACROS): require it.
70717
70718 2000-12-02  Jim Meyering  <meyering@lucent.com>
70719
70720         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
70721
70722 2000-12-01  Paul Eggert  <eggert@twinsun.com>
70723
70724         * lib/memrchr.c: Include <config.h> before any system include file.
70725
70726 2000-11-30  Jim Meyering  <meyering@lucent.com>
70727
70728         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
70729
70730 2000-11-30  Jim Meyering  <meyering@lucent.com>
70731
70732         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
70733
70734 2000-11-29  Paul Eggert  <eggert@twinsun.com>
70735
70736         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
70737
70738 2000-11-26  Jim Meyering  <meyering@lucent.com>
70739
70740         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
70741
70742 2000-11-22  Paul Eggert  <eggert@twinsun.com>
70743
70744         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
70745         size of (size_t) -1; it's not portable.
70746
70747 2000-11-17  Jim Meyering  <meyering@lucent.com>
70748
70749         * lib/strstr.c: Update from GNU libc.
70750
70751 2000-11-17  Akim Demaille  <akim@epita.fr>
70752
70753         * lib/obstack.h: Formatting changes.
70754         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
70755         prevent type checking.
70756         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
70757         cast the value to (void *): assigning a `foo *' to a `void *'
70758         variable is valid.
70759         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
70760
70761 2000-11-16  Jim Meyering  <meyering@lucent.com>
70762
70763         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
70764
70765 2000-11-11  Jim Meyering  <meyering@lucent.com>
70766
70767         * lib/error.c: Add a couple #includes, merging from GNU libc version.
70768
70769 2000-11-10  Jim Meyering  <meyering@lucent.com>
70770
70771         * lib/obstack.h: Update from GNU libc.
70772         * lib/obstack.c: Likewise.
70773
70774 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
70775
70776         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
70777
70778 2000-11-06  Paul Eggert  <eggert@twinsun.com>
70779
70780         * lib/getusershell.c (setusershell): Use rewind rather than
70781         fseek/fseeko, to avoid configuration hassles with fseeko.
70782         Don't bother opening SHELLS_FILE if shellstream is NULL;
70783         it's not necessary.
70784
70785 2000-11-05  Jim Meyering  <meyering@lucent.com>
70786
70787         * lib/makepath.h (make_dir): Declare.
70788         * lib/makepath.c (make_dir): Remove `static' attribute.
70789         Tweak a comment.
70790
70791 2000-11-04  Jim Meyering  <meyering@lucent.com>
70792
70793         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
70794
70795 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
70796
70797         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
70798         last one in a bucket, advance to the next bucket.
70799
70800 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
70801
70802         * lib/fnmatch.c: Do not comment out all the code if we are using
70803         the GNU C library, because in some cases we are replacing buggy
70804         code in the GNU C library itself.
70805
70806 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
70807
70808         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
70809         (regex_compile): Catch bogus \(\1\).
70810
70811 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70812
70813         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
70814         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
70815         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
70816
70817 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70818
70819         * lib/error.h, getline.h, modechange.h:
70820         Remove "2000" from Copyright line, as the file hasn't been
70821         changed this year other than in the copyright notice.
70822
70823         * lib/xalloc.h: Add "2000" to Copyright line, as this file
70824         was changed this year.
70825
70826 2000-10-29  Jim Meyering  <meyering@lucent.com>
70827
70828         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
70829         renaming.
70830         * m4/ls-mntd-fs.m4: Likewise
70831
70832 2000-10-29  Jim Meyering  <meyering@lucent.com>
70833
70834         * lib/xstat.in: Fix grammar in comment.
70835
70836 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
70837
70838         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70839         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70840         doesn't define __restrict_arr.
70841
70842 2000-10-28  Jim Meyering  <meyering@lucent.com>
70843
70844         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70845         (jm_PREREQ_MEMCHR): New function.
70846
70847 2000-10-28  Jim Meyering  <meyering@lucent.com>
70848
70849         * lib/memchr.c: Update from libc.
70850         Adjust for portability:
70851         [HAVE_STDLIB_H]: Include stdlib.h.
70852         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70853         Undef __memchr, too.
70854         [!weak_alias]: Define __memchr to memchr.
70855
70856         * lib/regex.c: Update from libc.
70857         * lib/regex.h: Likewise.
70858         * lib/getopt1.c: Likewise.
70859         * lib/memcmp.c: Likewise.
70860
70861         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70862         Avoid using fseek, when possible -- it's broken by design.
70863         Patch by Ulrich Drepper.
70864
70865 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70866
70867         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70868         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70869         Giving in to popular pressure to shut up the compiler with casts.
70870
70871 2000-10-26  Jim Meyering  <meyering@lucent.com>
70872
70873         * lib/strftime.c: Update from libc.
70874
70875 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70876
70877         * regex.c: More `unsigned char' -> `re_char' changes.
70878         Also change several `int' into `re_wchar_t'.
70879         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70880         (PUSH_FAILURE_POINTER): Don't cast any more.
70881         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70882         We want GCC to complain, since this piece of code makes
70883         re_match non-reentrant, which *should* be fixed.
70884         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70885         (EXTEND_BUFFER): Use RETALLOC.
70886         (SET_LIST_BIT): Don't cast.
70887         (re_wchar_t): New type.
70888         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70889         that those two functions will always properly return.
70890         (IMMEDIATE_QUIT_CHECK): Cast to void.
70891         (analyse_first): Use recursion rather than an explicit stack.
70892         (re_compile_fastmap): Can't fail anymore.
70893         (re_search_2): Don't check re_compile_fastmap for failure.
70894         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70895         Now also sets the new value (passed in a new argument).
70896         (re_match_2_internal): Use it.
70897         Also, use a new var `reg' of type size_t when looping through regs
70898         rather than reuse the inappropriate `mcnt'.
70899
70900 2000-10-25  Jim Meyering  <meyering@lucent.com>
70901
70902         * lib/obstack.c: Update from libc.
70903
70904 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70905
70906         * regex.c (regex_compile): Change the way of handling a range from
70907         a char less than 256 to a char not less than 256.
70908
70909 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70910
70911         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70912         NT-Emacs only.
70913         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70914         so that re_search functions only quit when callers expect them to.
70915
70916 2000-10-23  Jim Meyering  <meyering@lucent.com>
70917
70918         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70919         wrong.  That set_locale call must not have any side effects.
70920         From Paul Eggert.
70921
70922 2000-10-22  Jim Meyering  <meyering@lucent.com>
70923
70924         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70925         [CYCLIC]: Remove now-unused definition.
70926
70927         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70928         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70929         Suggestion from Ulrich Drepper.
70930
70931 2000-10-21  Jim Meyering  <meyering@lucent.com>
70932
70933         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70934         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70935         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70936
70937 2000-10-21  Jim Meyering  <meyering@lucent.com>
70938
70939         * lib/dirname.c (memrchr): Declare if necessary.
70940         (dir_name): Remove the restriction that there be no
70941         trailing slashes.  Now, this code skips past them, effectively
70942         ignoring them.
70943         [TEST_DIRNAME] (main): New unit tests.
70944
70945         * lib/memrchr.c: New file from GNU libc.
70946         Undef __memrchr, too.
70947         [!weak_alias]: Define __memrchr to memrchr.
70948         Guard weak_alias use with `#ifdef weak_alias'.
70949
70950 2000-10-21  Jim Meyering  <meyering@lucent.com>
70951
70952         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70953         (dir_name): Use dir_name_r.
70954         * lib/dirname.h (dir_name_r): Declare it.
70955
70956 2000-10-17  Jim Meyering  <meyering@lucent.com>
70957
70958         * lib/quote.h (PARAMS): Define and use.
70959         Reported by Akim Demaille.
70960
70961         * lib/getopt.c: Update from libc.
70962
70963 2000-10-16  Jim Meyering  <meyering@lucent.com>
70964
70965         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70966         setlocale.
70967         From Jan Fedak.
70968
70969 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70970
70971         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70972
70973 2000-09-25  Jim Meyering  <meyering@lucent.com>
70974
70975         * lib/md5.h (rol): Define (from GnuPG).
70976
70977         * lib/sha.c: Give credit (GnuPG) where due.
70978         (M): Use rol rather than open-coding it.
70979         Add a FIXME comment.
70980
70981 2000-09-21  Jim Meyering  <meyering@lucent.com>
70982
70983         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70984         Reported by Michael Stone.
70985
70986 2000-09-20  Jim Meyering  <meyering@lucent.com>
70987
70988         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70989         (noinst_HEADERS): Add sha.h.
70990         Based on code from Scott G. Miller and from GnuPG.
70991
70992 2000-09-18  Jim Meyering  <meyering@lucent.com>
70993
70994         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70995         LIBS. Otherwise, everyone ends up linking with -lelf for some
70996         configurations.
70997         Reported by Mike Stone.
70998
70999 2000-09-15  Jim Meyering  <meyering@lucent.com>
71000
71001         * lib/regex.c: Update from libc.
71002
71003 2000-09-10  Jim Meyering  <meyering@lucent.com>
71004
71005         * lib/getopt.c (_getopt_internal): Update from glibc.
71006
71007 2000-09-09  Jim Meyering  <meyering@lucent.com>
71008
71009         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
71010         think it should be used as a general replacement for isascii.
71011         * lib/fnmatch.c: Likewise.
71012         * lib/mbswidth.c: Likewise
71013         * lib/regex.c: Likewise.
71014
71015         Don't use atoi.
71016         * lib/userspec.c: Include sys/param.h and limits.h.
71017         Include xstrtol.h.
71018         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71019         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
71020         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
71021         UID, GID.  Check range.
71022
71023 2000-09-06  Jim Meyering  <meyering@lucent.com>
71024
71025         * lib/getopt.c (_getopt_internal): Update from glibc.
71026
71027 2000-08-30  Jim Meyering  <meyering@lucent.com>
71028
71029         * lib/strftime.c: Merge in changes from GNU libc.
71030
71031 2000-08-26  Jim Meyering  <meyering@lucent.com>
71032
71033         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
71034         * m4/fpending.m4: New file.
71035
71036 2000-08-26  Jim Meyering  <meyering@lucent.com>
71037
71038         * lib/closeout.c: Include "__fpending.h".
71039         (close_stdout_status): Return right away if there's nothing to flush.
71040
71041         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
71042         * lib/__fpending.c: New file.
71043         * lib/__fpending.h: New file.
71044
71045 2000-08-20  Jim Meyering  <meyering@lucent.com>
71046
71047         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
71048         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
71049         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
71050
71051 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
71052
71053         Improve fileutils installation on systems where running
71054         programs (like install) can't be unlinked.
71055         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
71056         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
71057
71058 2000-08-07  Paul Eggert  <eggert@twinsun.com>
71059
71060         Standardize on "memory exhausted" instead of "Memory exhausted"
71061         or "virtual memory exhausted".
71062         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
71063         "virtual memory exhausted".
71064         * lib/same.c (same_name): Invoke xalloc_die instead of printing
71065         our own message.
71066         * lib/userspec.c (parse_user_spec): Likewise.
71067         * lib/bumpalloc.h: comment fix
71068         * lib/same.c, userspec.c: Include xalloc.h.
71069
71070         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
71071         not char *const and pointing to a constant array.
71072         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
71073         (xrealloc): Comment fix.
71074
71075         * lib/userspec.c (parse_user_spec):
71076         Don't translate a message until just before returning,
71077         to avoid unnecessary translation.
71078
71079 2000-08-07  Jim Meyering  <meyering@lucent.com>
71080
71081         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
71082         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
71083         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
71084         getgroups.c, gethostname.c, getopt.h, group-member.c,
71085         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
71086         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
71087         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
71088         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
71089         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
71090         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
71091         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
71092         yesno.c: Back out Copyright date changes for each file with no change
71093         this year.  This eases coordination with other programs using the same
71094         source code modules.  From Paul Eggert.
71095
71096 2000-08-06  Paul Eggert  <eggert@twinsun.com>
71097
71098         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
71099         not char, for compatibility with glibc 2.1.3 strftime.c.
71100
71101 2000-08-03  Greg McGary  <greg@mcgary.org>
71102
71103         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
71104         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
71105         (EXTEND_BUFFER): Use them.
71106
71107 2000-08-01  Jim Meyering  <meyering@lucent.com>
71108
71109         * lib/dirname.c (ISSLASH): Define.
71110         (BACKSLASH_IS_PATH_SEPARATOR): Define.
71111         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
71112         both `\' and `/' may be use as path separators.
71113         Based on a patch from Prashant TR.
71114
71115 2000-07-31  Paul Eggert  <eggert@twinsun.com>
71116
71117         * lib/quotearg.c (quotearg_n_options): Don't make the initial
71118         slot vector a constant, since it might get modified.
71119
71120 2000-07-31  Jim Meyering  <meyering@lucent.com>
71121
71122         * lib/xmalloc.c: Use `virtual memory exhausted', not
71123         `Memory exhausted'.
71124         * lib/obstack.c (print_and_abort): Likewise.
71125
71126 2000-07-30  Paul Eggert  <eggert@twinsun.com>
71127
71128         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
71129         buffer, so that the caller can always quote one small
71130         component of a "memory exhausted" message in slot 0.
71131         From a suggestion by Jim Meyering.
71132
71133 2000-07-30  Jim Meyering  <meyering@lucent.com>
71134
71135         * lib/makepath.c (make_path): Quote the other instance, too.
71136
71137         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
71138         (STATIC_BUF_SIZE): Define.
71139         (quotearg_n_options): Use only statically allocated storage when
71140         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
71141         than STATIC_BUF_SIZE.
71142
71143 2000-07-29  Jim Meyering  <meyering@lucent.com>
71144
71145         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
71146         * lib/dirname.c (dir_name): Likewise.
71147
71148         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
71149         `/'.
71150
71151         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
71152         (dir_name): Assert that there are no trailing slashes.
71153
71154 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
71155
71156         * lib/mbswidth.h (mbswidth): Add a flags argument.
71157         (mbswidth): New declaration.
71158         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
71159         * lib/mbswidth.c (mbswidth): Add a flags argument.
71160         (mbsnwidth): New function.
71161
71162 2000-07-24  Jim Meyering  <meyering@lucent.com>
71163
71164         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
71165
71166 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71167
71168         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
71169
71170 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71171
71172         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
71173         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
71174         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
71175         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
71176         invoke multibyte primitives.
71177
71178 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71179
71180         * lib/quotearg.c:
71181         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
71182         so that mbstate_t is always defined.
71183
71184         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
71185         be 1 in at least one GCC installation, and this configuration
71186         error is likely to be common.  Ignoring MB_LEN_MAX hurts
71187         performance on hosts that have mbrtowc but have only unibyte
71188         locales, but I assume these hosts are rare.
71189
71190 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71191
71192         * lib/mbswidth.c (_XOPEN_SOURCE):
71193         Don't define; this causes problems on Solaris 7.
71194         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
71195
71196 2000-07-23  Jim Meyering  <meyering@lucent.com>
71197
71198         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
71199         too: getgrgid, getpwuid, getuid.
71200
71201 2000-07-23  Jim Meyering  <meyering@lucent.com>
71202
71203         * lib/basename.c (base_name): Add an assertion.
71204
71205 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
71206
71207         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
71208         shadow its mbsinit function.
71209
71210 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
71211
71212         * lib/mbswidth.h: New file.
71213         * lib/mbswidth.c: New file.
71214         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
71215         (noinst_HEADERS): Add mbswidth.h.
71216
71217 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
71218
71219         * lib/config.charset: Add support for FreeBSD. Improve support for
71220         HP-UX and IRIX 6.
71221
71222 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
71223
71224         * m4/mbswidth.m4: New file.
71225         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
71226
71227 2000-07-15  Jim Meyering  <meyering@lucent.com>
71228
71229         * lib/makepath.c: Include quote.h.
71230         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
71231         corresponding argument in a `quote (...)' call.
71232         Give better diagnostics.
71233
71234         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
71235         (noinst_HEADERS): Add quote.h.
71236
71237         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
71238         from tar's src/misc.c.
71239         * lib/quote.h: New file.  Prototypes for same.
71240
71241 2000-07-14  Paul Eggert  <eggert@twinsun.com>
71242
71243         From a suggestion by Bruno Haible.
71244         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
71245         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
71246         to decide whether to define the BeOS workaround macro;
71247         this adjusts to the change to AC_MBSTATE_T.
71248
71249 2000-07-14  Jim Meyering  <meyering@lucent.com>
71250
71251         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
71252         jm_AC_TYPE_UINTMAX_T.
71253
71254 2000-07-13  Paul Eggert  <eggert@twinsun.com>
71255
71256         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
71257
71258         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
71259         quotearg_buffer_restyled): Add support for
71260         clocale_quoting_style.  Undo previous change to
71261         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
71262         and "{RIGHT QUOTATION MARK}" msgids.
71263
71264 2000-07-10  Paul Eggert  <eggert@twinsun.com>
71265
71266         From a suggestion by Bruno Haible.
71267         * m4/mbstate_t.m4 (AC_MBSTATE_T):
71268         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
71269         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
71270         and mbstate_t, to a single-part test that simply defines mbstate_t.
71271         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
71272         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
71273
71274 2000-07-10  Jim Meyering  <meyering@lucent.com>
71275
71276         * m4/strerror_r.m4: Mirror the correction made in autoconf.
71277
71278         * m4/gnu-source.m4: Output to confdefs.h directly.
71279         Suggestion from Akim Demaille.
71280
71281 2000-07-09  Paul Eggert  <eggert@twinsun.com>
71282
71283         The old behavior of quoting `like this' doesn't look good with
71284         newer, ISO-style fonts.  See:
71285         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
71286
71287         Instead, quote "like this" by default.  Let the translator
71288         tailor the locale-specific quoting behavior by providing
71289         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
71290
71291         * lib/quotearg.c (N_): New macro.
71292         (gettext_default): New function.
71293         (quotearg_buffer_restyled): Use
71294         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
71295         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
71296
71297 2000-07-09  Jim Meyering  <meyering@lucent.com>
71298
71299         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
71300         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
71301
71302         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
71303         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
71304
71305 2000-07-09  Jim Meyering  <meyering@lucent.com>
71306
71307         * lib/Most files: Update copyright dates to include 2000.
71308
71309 2000-07-08  Jim Meyering  <meyering@lucent.com>
71310
71311         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
71312         if not defined.
71313         (xgethostname): Remove now-unnecessary #ifdef.
71314         Move declaration of `err' into loop where it's used.
71315
71316 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71317         and Bruno Haible  <haible@clisp.cons.org>
71318
71319         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
71320         only if the test for an object-type mbstate_t fails.  This
71321         prevents us from mistakenly reporting that mbstate_t is a
71322         system object type after we "#define mbstate_t int" to work
71323         around its lack.
71324
71325 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71326         and Bruno Haible  <haible@clisp.cons.org>
71327
71328         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
71329
71330 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71331
71332         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
71333         to strerror_r.
71334         Include <ctype.h> for use of isalpha.
71335
71336 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71337
71338         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
71339         by allocating a larger buffer. Test the gethostname return value for
71340         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
71341         returns an error and ENAMETOOLONG isn't defined.
71342
71343 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71344
71345         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
71346         dimension.
71347
71348 2000-07-04  Jim Meyering  <meyering@lucent.com>
71349
71350         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
71351         of the deprecated AC_CHECKING.
71352
71353 2000-07-04  Jim Meyering  <meyering@lucent.com>
71354
71355         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
71356         Reported by Bruno Haible.
71357
71358 2000-07-04  Jim Meyering  <meyering@lucent.com>
71359
71360         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
71361         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
71362         lacks mbrtowc.
71363
71364 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71365
71366         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
71367         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
71368
71369 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71370         and Bruno Haible  <haible@clisp.cons.org>
71371
71372         * lib/quotearg.c (mbrtowc):
71373         Assign to *pwc, and return 1 only if result is nonzero.
71374         (iswprint): Use ISPRINT when substituting our own mbrtowc.
71375
71376 2000-07-03  Jim Meyering  <meyering@lucent.com>
71377
71378         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
71379
71380 2000-07-03  Jim Meyering  <meyering@lucent.com>
71381
71382         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
71383         This is necessary to get a definition of e.g., UTMP_FILE on
71384         HP-UX 10.20.
71385         From Bob Proulx.
71386
71387 2000-07-02  Jim Meyering  <meyering@lucent.com>
71388
71389         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
71390
71391         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
71392         AC_LIBOBJ(function_name).
71393         * m4/chown.m4: Likewise.
71394         * m4/fnmatch.m4: Likewise.
71395         * m4/ftruncate.m4: Likewise.
71396         * m4/getgroups.m4: Likewise.
71397         * m4/getline.m4: Likewise.
71398         * m4/group-member.m4: Likewise.
71399         * m4/jm-macros.m4: Likewise.
71400         * m4/lstat.m4: Likewise.
71401         * m4/malloc.m4: Likewise.
71402         * m4/memcmp.m4: Likewise.
71403         * m4/nanosleep.m4: Likewise.
71404         * m4/putenv.m4: Likewise.
71405         * m4/realloc.m4: Likewise.
71406         * m4/regex.m4: Likewise.
71407         * m4/stat.m4: Likewise.
71408         * m4/strftime.m4: Likewise.
71409
71410 2000-07-02  Jim Meyering  <meyering@lucent.com>
71411
71412         * lib/quotearg.c (mbstate_t): Don't define here.
71413
71414 2000-07-02  Jim Meyering  <meyering@lucent.com>
71415
71416         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71417
71418 2000-07-01  Jim Meyering  <meyering@lucent.com>
71419
71420         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71421
71422 2000-07-01  Jim Meyering  <meyering@lucent.com>
71423
71424         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71425         problem.
71426
71427 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71428
71429         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71430         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71431
71432 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71433
71434         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71435         per change in ../m4/ls-mntd-fs.m4.
71436         (read_filesystem_list): Ignore symbolic links.
71437
71438 2000-06-29  Jim Meyering  <meyering@lucent.com>
71439
71440         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71441         for declaration of strcmp.
71442
71443         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71444
71445         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71446         Avoid warning by casting result to `char *' to remove `const'.
71447
71448 2000-06-28  Jim Meyering  <meyering@lucent.com>
71449
71450         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71451         included by quotearg.c, for which we perform this test.  From
71452         Bruno Haible.
71453
71454 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71455
71456         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71457         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71458         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71459
71460 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71461
71462         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71463
71464 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71465
71466         savedir now sets errno on failure and invokes xmalloc to get memory.
71467         Fix a couple of other minor bugs while we're at it.
71468
71469         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71470         (NAMLEN): Remove macro.
71471         (malloc, realloc): Remove decls.
71472         (stpcpy): Likewise.
71473         ("xalloc.h"): Include.
71474         (NAME_SIZE_DEFAULT): New macro.
71475         (savedir): Use xmalloc / xrealloc to allocate memory.
71476         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71477         Skip "" directory entries.
71478         Use strlen to calculate directory entry length, since the old method
71479         is rarely used these days and isn't worth supporting.
71480         Don't use a pointer after freeing it.
71481         Check for integer overflow when calculating allocation size.
71482         Use memcpy to copy entries, instead of stpcpy.
71483         Set errno properly when returning NULL.
71484         Check for readdir error.
71485
71486 2000-06-26  Jim Meyering  <meyering@lucent.com>
71487
71488         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71489
71490 2000-06-25  Jim Meyering  <meyering@lucent.com>
71491
71492         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71493         Linux header bug when _XOPEN_SOURCE is defined to 500.
71494
71495 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71496
71497         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71498         deficiency.
71499
71500 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71501
71502         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71503         Include xalloc.h.
71504         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71505
71506 2000-06-24  Jim Meyering  <meyering@lucent.com>
71507
71508         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71509         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71510         for which strerror does return char*, but which lacks a conveniently
71511         accessible declaration of the function.  If the compile-test says
71512         strerror_r doesn't work, then resort to a `run'-test that works on
71513         BeOS and segfaults on DEC Unix.
71514
71515 2000-06-24  Jim Meyering  <meyering@lucent.com>
71516
71517         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71518
71519 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71520
71521         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71522         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71523
71524 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71525
71526         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71527         (mbrtowc, mbstate_t): Define substitutes if
71528         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71529         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71530         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71531
71532 2000-06-23  Jim Meyering  <meyering@lucent.com>
71533
71534         * m4/afs.m4: Add missing AC_MSG_RESULT.
71535         Reported by Bruno Haible.
71536
71537         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71538         Suggestion from Bruno Haible.
71539
71540 2000-06-23  Jim Meyering  <meyering@lucent.com>
71541
71542         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71543
71544 2000-06-21  Jim Meyering  <meyering@lucent.com>
71545
71546         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71547
71548 2000-06-21  Jim Meyering  <meyering@lucent.com>
71549
71550         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71551         (noinst_HEADERS): Add getstr.h.
71552
71553         * lib/getline.c (getstr): Move into a separate file.
71554         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71555         the following changes: new parameter, delim2; both delim[12]
71556         parameters have type `int', not `char'.  The latter would lose
71557         with 8-bit delimiters.
71558         * lib/getstr.h: New file.
71559
71560 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71561
71562         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71563         than 1024, return a memory chunk of least possible size, instead
71564         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71565         Use free/xmalloc instead of xrealloc to avoid copying for very long
71566         paths.
71567
71568 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71569
71570         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71571         the empty string.
71572
71573 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71574
71575         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71576         address, not strdup.  Include <stdlib.h> and don't declare free().
71577
71578 2000-06-19  Jim Meyering  <meyering@lucent.com>
71579
71580         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71581
71582 2000-06-18  Jim Meyering  <meyering@lucent.com>
71583
71584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71585
71586         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71587         `checking whether...' message to be consistent with that of the
71588         lstat test.
71589
71590 2000-06-18  Jim Meyering  <meyering@lucent.com>
71591
71592         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71593         Besides, these days every porting target provides a mkdir function.
71594
71595         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71596         needed. (this snippet comes from src/system.h).
71597
71598 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71599
71600         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71601
71602 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71603
71604         * lib/human.c (adjust_value): New function.
71605         (human_readable_inexact): Apply rounding style even when
71606         printing approximate values.
71607
71608 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71609
71610         * lib/human.c (human_readable_inexact): Allow an input block
71611         size that is not a multiple of the output block size, and vice versa.
71612         Reported by Piergiorgio Sartor.
71613
71614 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71615
71616         * lib/getdate.y (get_date): Apply relative times after time
71617         zone indicator, not before.  Reported by Todd A. Jacobs.
71618
71619 2000-06-13  Jim Meyering  <meyering@lucent.com>
71620
71621         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71622
71623         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71624
71625 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71626
71627         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71628
71629 2000-06-12  Jim Meyering  <meyering@lucent.com>
71630
71631         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71632         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71633         optional argument.
71634         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71635         the optional argument, `lib'.
71636
71637 2000-06-08  Jim Meyering  <meyering@lucent.com>
71638
71639         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71640
71641 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71642
71643         Rewrite largefile configuration so that we don't need to run
71644         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71645         AC_CANONICAL_HOST in configure.in -- jmm]
71646
71647         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71648         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71649         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71650         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71651         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71652         All uses changed.
71653         Instead of inspecting the output of getconf, try to compile the
71654         test program without and with the macro definition.
71655         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71656         for getconf.  Instead, check for the needed flags by compiling
71657         test programs.
71658
71659 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71660
71661         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71662
71663 2000-06-04  Jim Meyering  <meyering@lucent.com>
71664
71665         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71666         SunOS 4.1.4 for which gid_t is an unsigned type.
71667
71668 2000-06-03  Jim Meyering  <meyering@lucent.com>
71669
71670         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71671         now that autoconf requires that.
71672
71673         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
71674         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
71675         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
71676
71677 2000-06-03  Jim Meyering  <meyering@lucent.com>
71678
71679         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
71680
71681 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71682
71683         * m4/glibc21.m4: New file.
71684         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
71685
71686 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71687
71688         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
71689         newer, don't install charset.alias.
71690         * lib/config.charset: Change the Linux/glibc rules so they become empty
71691         on glibc-2.1 or newer.
71692
71693 2000-06-02  Jim Meyering  <meyering@lucent.com>
71694
71695         * lib/mountlist.c: Back out last change.  Instead, do this...
71696         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
71697         me_dummy member using the same `ignore'-testing code.
71698         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
71699         fs_type strings.
71700         From Mark D. Roth.
71701
71702 2000-05-29  Jim Meyering  <meyering@lucent.com>
71703
71704         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
71705         mounts with the `ignore' attribute.  Based on a patch from
71706         Mark D. Roth.
71707
71708 2000-05-28  Jim Meyering  <meyering@lucent.com>
71709
71710         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
71711         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71712         * m4/stat.m4: Likewise.
71713         * m4/lstat.m4: Likewise.
71714         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
71715
71716         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
71717         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
71718
71719 2000-05-26  Jim Meyering  <meyering@lucent.com>
71720
71721         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
71722
71723 2000-05-24  Jim Meyering  <meyering@lucent.com>
71724
71725         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
71726         autoconf requires that.
71727         * m4/lib-check.m4: Likewise.
71728         * m4/jm-macros.m4: Likewise.
71729         * m4/strftime.m4: Likewise.
71730
71731         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
71732         AC_CHECK_DECLS, now that autoconf requires that.
71733
71734 2000-05-22  Jim Meyering  <meyering@lucent.com>
71735
71736         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71737         * m4/lstat.m4: Likewise.
71738
71739 2000-05-22  Jim Meyering  <meyering@lucent.com>
71740
71741         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
71742
71743 2000-05-20  Jim Meyering  <meyering@lucent.com>
71744
71745         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
71746         (jm_PREREQ): Use it.
71747
71748 2000-05-18  Jim Meyering  <meyering@lucent.com>
71749
71750         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
71751         back, too, since it may have been modified by allocate_entry.
71752         (hash_delete): Rewrite to use neither the assignment operator
71753         nor the comma operator in an if-expression.
71754
71755 2000-05-15  Paul Eggert  <eggert@twinsun.com>
71756
71757         * lib/closeout.c:
71758         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
71759         Remove; no longer needed.
71760         "quotearg.h": Add include.
71761         (file_name): Do not bother to explicitly initialize to NULL; it's less
71762         efficient on some hosts.
71763         (close_stdout_status): Remove test as to whether stdout was already
71764         closed; it breaks for the case "echo x | sort >&-".
71765         Quote file name colons.
71766         Do not assume that _("write error") lacks format strings.
71767
71768 2000-05-15  Jim Meyering  <meyering@lucent.com>
71769
71770         * lib/version-etc.c (version_etc_copyright): Update the copyright
71771         string used in all --version output.
71772
71773 2000-05-14  Jim Meyering  <meyering@lucent.com>
71774
71775         * lib/closeout.c (close_stdout_set_file_name): New function.
71776         (close_stdout_status): Use new file-scoped global.
71777         Return right away if fstat says the stdout file descriptor is invalid.
71778         * lib/closeout.h (close_stdout_set_file_name): Declare.
71779
71780 2000-05-10  Jim Meyering  <meyering@lucent.com>
71781
71782         * lib/closeout.c [default_exit_status]: New file-scoped variable.
71783         (close_stdout_set_status): New function.
71784         * lib/closeout.h (close_stdout_set_status): Declare.
71785
71786 2000-05-09  Jim Meyering  <meyering@lucent.com>
71787
71788         * m4/gettext.m4: Rename this...
71789         * m4/libintl.m4: ...to this.
71790
71791 2000-05-08  Jim Meyering  <meyering@lucent.com>
71792
71793         * lib/long-options.c: Don't include closeout.h.
71794         (parse_long_options): Don't call close_stdout for --version.
71795
71796 2000-05-06  Paul Eggert  <eggert@twinsun.com>
71797
71798         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
71799         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
71800         2.1.3 bug.  This avoids a clash when files like regex.c define
71801         _GNU_SOURCE.
71802
71803 2000-05-06  Jim Meyering  <meyering@lucent.com>
71804
71805         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
71806         (AC_REPLACE_FUNCS): Add strnlen.
71807
71808         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
71809         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
71810
71811         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
71812         AC_SEARCH_LIBS call for nanosleep.
71813         (LIB_NANOSLEEP): Set and AC_SUBST.
71814
71815 2000-05-06  Jim Meyering  <meyering@lucent.com>
71816
71817         * lib/strnlen.c: Undefine __strnlen and strnlen.
71818         [!weak_alias]: Define __strnlen to strnlen.
71819
71820         * lib/atexit.c: New file, from libiberty.
71821
71822 2000-05-06  Jim Meyering  <meyering@lucent.com>
71823
71824         * lib/closeout.c (close_stdout_status): Also check for errors on the
71825         stderr stream.
71826
71827 2000-05-05  Jim Meyering  <meyering@lucent.com>
71828
71829         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
71830         AC_SEARCH_LIBS call for clock_gettime.
71831         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
71832
71833         * m4/search-libs.m4: Update from autoconf.
71834
71835         su doesn't work on Solaris 2.6.
71836         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
71837         <shadow.h>.  Reported by Dragos Harabor.
71838
71839 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71840
71841         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71842         memcpy instead of xmalloc, xrealloc, path_concat.
71843         (locale_charset): Treat empty environment variables as absent.
71844         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71845
71846 2000-05-04  Jim Meyering  <meyering@lucent.com>
71847
71848         * lib/getopt.c: Update from glibc.
71849         * lib/obstack.c: Likewise.
71850         * lib/obstack.h: Likewise.
71851         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71852         file
71853
71854         * lib/regex.h: Likewise.
71855         * lib/strndup.c: Likewise.
71856         * lib/strnlen.c: New file, from glibc.
71857
71858 2000-05-03  Jim Meyering  <meyering@lucent.com>
71859
71860         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71861
71862 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71863
71864         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71865         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71866         compile-time test, rather than inspecting host and OS, to
71867         decide whether to define _LARGEFILE_SOURCE.
71868
71869 2000-05-01  Jim Meyering  <meyering@lucent.com>
71870
71871         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71872
71873         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71874         Based on a patch from Bruno Haible.
71875
71876 2000-05-01  Jim Meyering  <meyering@lucent.com>
71877
71878         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71879
71880 2000-04-29  Jim Meyering  <meyering@lucent.com>
71881
71882         * lib/path-concat.c: Declare strdup only if it's not defined.
71883         * lib/canon-host.c: Likewise.
71884
71885 2000-04-28  Jim Meyering  <meyering@lucent.com>
71886
71887         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71888         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71889         is included first, then limits.h is included by locale.h by libintl.h.
71890         From John David Anglin.
71891
71892 2000-04-25  Jim Meyering  <meyering@lucent.com>
71893
71894         * lib/makepath.c (S_IRWXUGO): Define.
71895         (make_path): Always perform explicit chmod if MODE specifies any
71896         of the `special' permission bits.  Prompted by a bug report against
71897         install from Mate Wierdl and Joost van Baal.
71898
71899 2000-04-18  Jim Meyering  <meyering@lucent.com>
71900
71901         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71902         (jm_PREREQ): Use it.
71903
71904 2000-04-18  Jim Meyering  <meyering@lucent.com>
71905
71906         * lib/README: New file.
71907
71908         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71909         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71910
71911 2000-04-17  Jim Meyering  <meyering@lucent.com>
71912
71913         Get it right :-)
71914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71915         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71916         Suggestion from Akim Demaille.
71917
71918 2000-04-17  Jim Meyering  <meyering@lucent.com>
71919
71920         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71921         the definition of it to rpl_strftime also defined-away the system's
71922         declaration.
71923
71924 2000-04-15  Jim Meyering  <meyering@lucent.com>
71925
71926         Use `C' to denote so-called `contiguous' files, the same way
71927         that tar does.
71928         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71929         (ftypelet): Use S_ISCTG.
71930         From Michael Deutschmann.
71931
71932 2000-04-14  Jim Meyering  <meyering@lucent.com>
71933
71934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71935         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71936         clobbered.
71937
71938 2000-04-14  Jim Meyering  <meyering@lucent.com>
71939
71940         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71941
71942 2000-04-13  Jim Meyering  <meyering@lucent.com>
71943
71944         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71945         AH_VERBATIM to insert required #ifndef into config.h.in.
71946         Suggestion from Akim Demaille.
71947
71948 2000-04-12  Jim Meyering  <meyering@lucent.com>
71949
71950         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71951         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71952         Christian Krackowizer.
71953
71954         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71955         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71956         (AC_SYS_LARGEFILE): Require.
71957         (AM_C_PROTOTYPES): Require.
71958
71959 2000-04-08  Jim Meyering  <meyering@lucent.com>
71960
71961         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71962         names don't conflict.  Reported by Eli Zaretskii.
71963
71964 2000-04-07  Jim Meyering  <meyering@lucent.com>
71965
71966         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71967         sys/types.h, to work around system header problems on AIX 3.2.5.
71968         From Bruno Haible.
71969
71970 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71971
71972         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71973         bug.  Deal with the different error behavior of Irix iconv.
71974
71975 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71976
71977         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71978         IRIX if the installer said otherwise.
71979
71980 2000-04-05  Jim Meyering  <meyering@lucent.com>
71981
71982         Portability tweaks required for ultrix4.3.
71983         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71984         (jm_CHECK_DECLS): Add getutent to the list of functions.
71985         (_jm_DECL_HEADERS): Add utmpx.h.
71986         From John David Anglin.
71987
71988         * m4/strftime.m4: Back out the 2000-04-02 change.
71989         Instead of that change, simply undefine putenv in the test program.
71990
71991 2000-04-05  Jim Meyering  <meyering@lucent.com>
71992
71993         Portability tweaks required for ultrix4.3.
71994         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71995         getutent.
71996         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71997         * lib/canon-host.c: Declare strdup.
71998         * lib/path-concat.c: Likewise.
71999         From John David Anglin.
72000
72001 2000-04-04  Jim Meyering  <meyering@lucent.com>
72002
72003         Be more DOS 8.3-friendly.
72004         * lib/ref-add.sin: Renamed from ref-add.sed.in.
72005         * lib/ref-del.sin: Renamed from ref-del.sed.in.
72006         * lib/Makefile.am: Reflect renaming.
72007         Reported by Eli Zaretskii.
72008
72009         Use a temporary file name that won't clash with `charset.alias'
72010         in the DOS 8.3 name space.
72011         * lib/Makefile.am (charset_tmp): Define.
72012         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
72013         (uninstall-local): Likewise.
72014         Reported by Eli Zaretskii.
72015
72016 2000-04-03  Jim Meyering  <meyering@lucent.com>
72017
72018         * m4/gettext.m4: Fix typo in comment.
72019
72020         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
72021         textutils/configure.in).  Suggestion from Paul Eggert.
72022         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
72023
72024 2000-04-02  Paul Eggert  <eggert@twinsun.com>
72025
72026         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
72027         variable in the shell rather than using putenv, which isn't
72028         portable.  This avoids the configure-time inter-test dependency
72029         on the potentially-renamed putenv function.
72030
72031 2000-03-30  Paul Eggert  <eggert@twinsun.com>
72032
72033         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
72034         before checking struct stat.st_blksize, so that
72035         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
72036
72037 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72038
72039         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
72040         since strftime.c uses HAVE_STRFTIME to decide whether to use
72041         the underlying strftime.
72042
72043 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72044
72045         * lib/time/strftime.c (my_strftime): Make sure we call the system
72046         strftime, not ourselves, when invoking the underlying strftime.
72047
72048 2000-03-24  Jim Meyering  <meyering@lucent.com>
72049
72050         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
72051         (charset_alias): Define.
72052         (install-exec-local): Factor out common code.
72053         (uninstall-local): Split lines longer than 80.
72054         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
72055         (SUFFIXES): Define.
72056         (.sed.in.sed): New rule.  Don't redirect directly to $@.
72057         (CLEANFILES): Add ref-add.sed and ref-del.sed.
72058
72059 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
72060
72061         * lib/config.charset: Output a line containing "Packages using this
72062         file".
72063         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
72064         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
72065         ref-del.sed): New rules.
72066
72067 2000-03-17  Jim Meyering  <meyering@lucent.com>
72068
72069         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
72070         Otherwise, include <strings.h>
72071
72072 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
72073
72074         * lib/unicodeio.c (utf8_wctomb): New function.
72075         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
72076         format instead of in UCS-4 with platform dependent endianness.
72077
72078 2000-03-10  Jim Meyering  <meyering@lucent.com>
72079
72080         * m4/lib-check.m4: Look for getspnam in -lgen, too.
72081         From Marco Franzen.
72082
72083 2000-03-07  Paul Eggert  <eggert@twinsun.com>
72084
72085         * lib/savedir.c (savedir): Work even if directory size is
72086         negative; this can happen with some screwy NFS configurations.
72087
72088 2000-03-06  Jim Meyering  <meyering@lucent.com>
72089
72090         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
72091         if it's NULL (because we ran out of memory).  From Bruno Haible.
72092
72093 2000-03-05  Jim Meyering  <meyering@lucent.com>
72094
72095         * lib/localcharset.c ("path-concat.h"): Include.
72096         (get_charset_aliases): Use path_concat instead of ANSI string
72097         concatenation.
72098
72099         * lib/unicodeio.h (PARAMS): Define.
72100         Use it to guard prototype.
72101
72102 2000-03-04  Jim Meyering  <meyering@lucent.com>
72103
72104         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
72105         for lib/localcharset.c.
72106
72107 2000-03-04  Jim Meyering  <meyering@lucent.com>
72108
72109         * lib/Makefile.am (install-exec-local): Create $(libdir) before
72110         installing into it.
72111         (uninstall-local): Uncomment this rule so `make distcheck' works
72112         once again.
72113
72114         * lib/unicodeio.c (<errno.h>): Include it.
72115         (errno): Declare if not defined.
72116
72117         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
72118
72119         * lib/config.charset: New version, incorporating remarks from a linux
72120         i18n mailing list.  From Bruno Haible.
72121
72122 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
72123
72124         * m4/codeset.m4: New file.
72125         * m4/iconv.m4: New file.
72126         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
72127
72128 2000-03-03  Jim Meyering  <meyering@lucent.com>
72129
72130         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
72131
72132 2000-03-02  Jim Meyering  <meyering@lucent.com>
72133
72134         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
72135         the messages come out on separate lines.
72136
72137         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
72138         rather than jm_CHECK_DECLARATIONS.
72139         * m4/decl.m4: Remove now-unused file.
72140
72141         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
72142         geteuid.
72143
72144 2000-03-02  Jim Meyering  <meyering@lucent.com>
72145
72146         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
72147
72148 2000-03-01  Jim Meyering  <meyering@lucent.com>
72149
72150         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
72151         * lib/unicodeio.c: Likewise.
72152
72153 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
72154
72155         * lib/config.charset: New file.
72156         * lib/localcharset.c: New file.
72157         * lib/unicodeio.h, lib/unicodeio.c: New files.
72158         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
72159         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
72160         (noinst_HEADERS): Add unicodeio.h.
72161         (all-local, install-exec-local, charset.alias): New targets.
72162
72163 2000-02-28  Paul Eggert  <eggert@twinsun.com>
72164
72165         * lib/quotearg.c (ALERT_CHAR): New macro.
72166         (quotearg_buffer_restyled): Use it.
72167
72168 2000-02-27  Jim Meyering  <meyering@lucent.com>
72169
72170         * m4/check-decl.m4: Add getenv to the list.
72171
72172 2000-02-27  Jim Meyering  <meyering@lucent.com>
72173
72174         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
72175         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
72176
72177         * lib/backupfile.c: Guard inclusion of stdlib.h with
72178         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
72179         Declare malloc if needed.
72180
72181         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
72182         `#ifndef HAVE_DECL..'
72183         now that autoconf always defines the HAVE_DECL_ symbols.
72184         * lib/human.c: Likewise.
72185         * lib/same.c: Likewise.
72186         * lib/strtoumax.c: Likewise.
72187
72188         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
72189         declaration check was not run.
72190         * lib/hash.c: Likewise.
72191         * lib/human.c: Likewise.
72192         * lib/same.c: Likewise.
72193         * lib/strtoumax.c: Likewise.
72194
72195         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
72196         `.', then first look up the entire `.'-containing string as a login
72197         name.
72198
72199 2000-02-23  Jim Meyering  <meyering@lucent.com>
72200
72201         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
72202         in place of my hack.
72203
72204 2000-02-18  Paul Eggert  <eggert@twinsun.com>
72205
72206         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
72207         (textint): New typedef.
72208         (parser_control): Member year changed from int to textint.
72209         All uses changed.
72210         (YYSTYPE): Removed; replaced by %union with int and textint members.
72211         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
72212         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
72213         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
72214         (tSNUMBER, tUNUMBER): Now of type <textintval>.
72215         (date, number, to_year): Use width of number in digits, not its value,
72216         to determine whether it's a 2-digit year, or a 2-digit time.
72217         (yylex): Store number of digits of numeric tokens.
72218         Reported by John Kendall.
72219
72220         (parser_control): Changed from struct parser_control to typedef (for
72221         consistency).  All uses changed.
72222
72223         (tID): Removed; not used.
72224         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
72225
72226 2000-02-14  Paul Eggert  <eggert@twinsun.com>
72227
72228         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
72229         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
72230
72231 2000-02-12  Jim Meyering  <meyering@lucent.com>
72232
72233         * lib/userspec.c (ISDIGIT): Define it.
72234         (isdigit): Remove definition.
72235         (is_number): Use ISDIGIT, not isdigit.
72236         <libintl.h>: Include.
72237         (_ and N_): Define.
72238         (parse_user_spec): Mark translatable strings.
72239
72240 2000-02-10  Jim Meyering  <meyering@lucent.com>
72241
72242         With these changes, nanosleep.[ch] are finally enough like the other
72243         lib/* replacement files to compile on a few more losing systems.
72244
72245         * lib/nanosleep.h: Don't include config.h.
72246         Remove prototype from declaration of nanosleep.
72247         (PARAMS): Remove now-unneeded definition.
72248         * lib/nanosleep.c: #undef nanosleep.
72249         (rpl_nanosleep): Rename from nanosleep.
72250
72251 2000-02-10  Jim Meyering  <meyering@lucent.com>
72252
72253         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
72254         gnu_nanosleep to rpl_nanosleep.
72255
72256 2000-02-09  Jim Meyering  <meyering@lucent.com>
72257
72258         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
72259         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
72260
72261 2000-02-08  Akim Demaille  <akim@epita.fr>
72262
72263         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
72264         `[' and `]' and remove uses of `changequote'.
72265         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
72266         (AC_SYS_LARGEFILE): Likewise.
72267         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72268         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
72269         of changequote.
72270         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
72271         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
72272         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
72273         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
72274
72275 2000-02-05  Jim Meyering  <meyering@lucent.com>
72276
72277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
72278         Remove explicit use of AC_HEADER_TIME.  It is required by
72279         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
72280         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
72281         in autoconf whereby the expansion of the latter ended up preceding
72282         the expansion of its prerequisite, AC_HEADER_TIME.
72283         Reported by Volker Borchert.
72284
72285 2000-02-03  Jim Meyering  <meyering@lucent.com>
72286
72287         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
72288
72289 2000-02-03  Jim Meyering  <meyering@lucent.com>
72290
72291         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
72292         rather than with `#if HAVE_UTMPNAME'.
72293
72294 2000-02-02  Jim Meyering  <meyering@lucent.com>
72295
72296         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
72297         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
72298         Reported by Eli Zaretskii.
72299
72300 2000-02-01  Jim Meyering  <meyering@lucent.com>
72301
72302         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
72303
72304 2000-01-31  Jim Meyering  <meyering@lucent.com>
72305
72306         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
72307         functions.  Add the time.h and sys/time.h headers along with the
72308         AC_REQUIRE'ment of AC_HEADER_TIME.
72309
72310 2000-01-31  Jim Meyering  <meyering@lucent.com>
72311
72312         * lib/nanosleep.h (nanosleep): Guard declaration with
72313         `#if ! HAVE_DECL_NANOSLEEP'.
72314         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
72315         the declaration in that vendor's sys/timers.h.
72316         Reported by Christian Krackowizer.
72317
72318         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
72319         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
72320         (ISPRINT): Likewise.
72321         Reported by Tom Tromey.
72322
72323 2000-01-30  Jim Meyering  <meyering@lucent.com>
72324
72325         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
72326
72327         * m4/prereq.m4 (utmp_includes): Define.
72328         Check for ut_user and ut_name members in both struct utmpx
72329         and struct utmp.
72330
72331 2000-01-30  Jim Meyering  <meyering@lucent.com>
72332
72333         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
72334         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
72335         header files where only utmpx.ut_user is declared.
72336
72337         * lib/readutmp.h (UT_USER): Define.
72338
72339 2000-01-29  Jim Meyering  <meyering@lucent.com>
72340
72341         * m4/lib-check.m4: New file containing library-related checks from
72342         fileutils and sh-utils (textutils had none).
72343
72344 2000-01-28  Jim Meyering  <meyering@lucent.com>
72345
72346         * m4/perl.m4: Change format of warning message to look more like that
72347         from the missing script.  Suggestion from François Pinard.
72348
72349 2000-01-25  Jim Meyering  <meyering@lucent.com>
72350
72351         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
72352         well as time.h in the compile check.
72353         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
72354         Fix typo in cross-compiling case: s/yes/no/.
72355
72356 2000-01-23  Jim Meyering  <meyering@lucent.com>
72357
72358         * m4/jm-macros.m4: Move df-related tests here from
72359         fileutils/configure.in
72360
72361         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
72362         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
72363
72364         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
72365         s/space/ac_fsusage_space/.
72366         (jm_FILE_SYSTEM_USAGE): Take two parameters.
72367
72368         * m4/ftruncate.m4: New file (derived from part of
72369         fileutils/configure.in).
72370         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
72371         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
72372
72373         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
72374         AC_SUBST these here, rather than just in sh-util/configure.in, so
72375         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
72376         all the same.
72377         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
72378         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
72379         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
72380         (AC_SUBST(POW_LIBM)): Likewise.
72381         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
72382
72383 2000-01-23  Jim Meyering  <meyering@lucent.com>
72384
72385         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
72386         obstack.c.
72387
72388 2000-01-22  Jim Meyering  <meyering@lucent.com>
72389
72390         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
72391
72392         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
72393
72394         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72395         configure.in
72396         (AC_CHECK_HEADERS): Likewise for sh-utils.
72397         (AC_CHECK_HEADERS): Likewise for textutils.
72398         Merge the three lists of headers.
72399
72400         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72401         from fileutils' configure.in.
72402
72403         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72404         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72405         check-decl.m4.
72406
72407         * m4/check-decl.m4: Use #if rather than #ifdef.
72408         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72409         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72410         (_jm_DECL_HEADERS): Define new function.
72411         (jm_CHECK_DECLARATIONS): Require it.
72412
72413 2000-01-22  Jim Meyering  <meyering@lucent.com>
72414
72415         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72416         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72417         Required for some AIX systems.  Reported by Christian Krackowizer.
72418         [TESTING] (main): New function.
72419
72420         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72421         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72422         letters.
72423
72424         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72425         iswprint.
72426
72427         * lib/strverscmp.c (ISDIGIT): Define.
72428         (strverscmp): Use ISDIGIT, not isdigit.
72429
72430 2000-01-19  Jim Meyering  <meyering@lucent.com>
72431
72432         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72433         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72434         defines `struct timespec' in <sys/time.h>
72435
72436         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72437         Thanks to Akim for explaining.
72438
72439 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72440
72441         * lib/nanosleep.c (nanosleep):
72442         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72443         POSIX.1 doesn't require SA_INTERRUPT and some systems
72444         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72445         it's been part of POSIX.1 since day 1 (in 1988).
72446
72447 2000-01-17  Jim Meyering  <meyering@lucent.com>
72448
72449         * lib/interlock: Remove unused file.  Reported by François Pinard.
72450
72451 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72452
72453         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72454         alert, backslash, formfeed, and vertical tab unnecessarily in
72455         shell quoting style.
72456
72457 2000-01-16  Jim Meyering  <meyering@lucent.com>
72458
72459         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72460         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72461         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72462         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72463
72464 2000-01-16  Jim Meyering  <meyering@lucent.com>
72465
72466         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72467         because the latter didn't work.
72468
72469 2000-01-15  Jim Meyering  <meyering@lucent.com>
72470
72471         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72472         (AC_REPLACE_FUNCS): Add memcpy and memset.
72473         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72474         Add strpbrk.
72475         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72476
72477 2000-01-12  Jim Meyering  <meyering@lucent.com>
72478
72479         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72480         (jm_PREREQ): Use it.
72481         (jm_PREREQ_READUTMP): New macro.
72482         (jm_PREREQ): Use it.
72483
72484 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72485
72486         Quote multibyte characters correctly.
72487         * m4/c-bs-a.m4: New file.
72488         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72489         (jm_PREREQ): Use it.
72490
72491 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72492
72493         * m4/uintmax_t.m4: Port to autoconf 2.13.
72494
72495 2000-01-08  Jim Meyering  <meyering@ascend.com>
72496
72497         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72498         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72499
72500 2000-01-04  Jim Meyering  <meyering@ascend.com>
72501
72502         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72503         jm_STRUCT_DIRENT_D_TYPE.
72504         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72505         jm_STRUCT_DIRENT_D_INO.
72506         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72507         jm_STRUCT_UTIMBUF.
72508         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72509         renamings.
72510         * m4/utime.m4: Likewise.
72511
72512         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72513         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72514
72515 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72516
72517         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72518         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72519
72520 2000-01-02  Jim Meyering  <meyering@ascend.com>
72521
72522         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72523         remember if this is necessary.
72524
72525 1999-12-26  Jim Meyering  <meyering@ascend.com>
72526
72527         * m4/jm-macros.m4: Use it here.
72528         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72529
72530 1999-12-23  Jim Meyering  <meyering@ascend.com>
72531
72532         * m4/jm-macros.m4: Check for clock_gettime (moved from
72533         fileutils/configure.in)
72534         Check for gettimeofday.
72535
72536 1999-12-20  Jim Meyering  <meyering@ascend.com>
72537
72538         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72539         autoconf-2.14a-1999-12-20.
72540
72541 1999-12-19  Jim Meyering  <meyering@ascend.com>
72542
72543         * m4/lstat-slash.m4: New file.
72544         * m4/jm-macros.m4: Use the new macro:
72545         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72546
72547 1999-12-07  Jim Meyering  <meyering@ascend.com>
72548
72549         * m4/perl.m4: Require that File::Compare be available, too.
72550         Too many systems seem to lack it.
72551
72552         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72553         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72554
72555 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72556
72557         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72558         problem with the QNX 4.25 shell, which doesn't propagate exit
72559         status of failed commands inside shell assignments.
72560
72561 1999-11-17  Jim Meyering  <meyering@ascend.com>
72562
72563         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72564
72565 1999-11-07  Jim Meyering  <meyering@ascend.com>
72566
72567         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72568
72569 1999-11-06  Jim Meyering  <meyering@ascend.com>
72570
72571         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72572         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72573
72574 1999-11-05  Jim Meyering  <meyering@ascend.com>
72575
72576         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72577         configure.in of textutils, fileutils, and sh-utils into this one
72578         (shared between those packages) file.
72579         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72580         AC_STRUCT_ST_BLKSIZE.
72581
72582 1999-11-03  Jim Meyering  <meyering@ascend.com>
72583
72584         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72585         of AC_CHECK_TYPE checks includes unistd.h.
72586         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72587         Suggestion from Akim Demaille.
72588
72589 1999-10-30  Jim Meyering  <meyering@ascend.com>
72590
72591         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72592         m4-quoted string.
72593         * m4/ls-mntd-fs.m4: Likewise.
72594         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72595         * m4/jm-winsz1.m4: Likewise.
72596
72597         * m4/const.m4: Remove file, since the fix made it into the experimental
72598         version of autoconf.
72599         * m4/mktime.m4: Likewise.
72600
72601         * m4/check-type.m4: Remove file, now that the latest version of
72602         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72603
72604         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72605         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72606         AC_CHECK_TYPE.
72607
72608 1999-10-04  Jim Meyering  <meyering@ascend.com>
72609
72610         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72611
72612 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72613
72614         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72615         2.95.1 bug with HP-UX 10.20.
72616
72617 1999-09-17  Jim Meyering  <meyering@ascend.com>
72618
72619         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72620         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72621         due to missing strdup (against sh-utils-2.0).
72622
72623 1999-08-29  Jim Meyering  <meyering@ascend.com>
72624
72625         * m4/jm-macros.m4: Require jm_BISON.
72626         * m4/bison.m4: New file.
72627
72628 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72629
72630         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72631         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72632
72633 1999-08-05  Jim Meyering  <meyering@ascend.com>
72634
72635         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72636         to avoid conflicts with `conftest' on 8+3 filesystems.
72637         Suggestion from Eli Zaretskii.
72638
72639 1999-08-04  Jim Meyering  <meyering@ascend.com>
72640
72641         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72642         fileutils and sh-utils (textutils's getline test was inadequate).
72643         (AM_FUNC_GETLINE): Run this test.
72644         (AC_CHECK_FUNCS): Check for getdelim.
72645         Reported by Bob Proulx.
72646
72647 1999-08-02  Jim Meyering  <meyering@ascend.com>
72648
72649         * m4/jm-macros.m4: Add a comment.
72650
72651 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72652
72653         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72654         <inttypes.h> defines strtoumax as a macro (and not as a
72655         function).
72656
72657 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72658
72659         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72660         that we can shift, multiply and divide unsigned long long
72661         values; Ultrix cc can't do it.
72662
72663 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72664
72665         * m4/mktime.m4: New file, which is a preview of what should appear
72666         in the next public autoconf release.
72667
72668 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72669
72670         * m4/lfs.m4: Remove this file.
72671         * m4/largefile.m4: New file.  It contains the old contents of
72672         lfs.m4, except that all names with prefix AC_LFS have been
72673         changed to use the prefix AC_SYS_LARGEFILE instead, to be
72674         compatible with future autoconf versions.  Also, some minor m4
72675         quoting problems have been fixed.
72676
72677 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72678
72679         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
72680         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
72681         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
72682         and simplify the shell code.
72683
72684 1999-08-01  Jim Meyering  <meyering@ascend.com>
72685
72686         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
72687         m4.
72688
72689 1999-07-20  Jim Meyering  <meyering@ascend.com>
72690
72691         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
72692
72693 1999-07-15  Jim Meyering  <meyering@ascend.com>
72694
72695         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
72696
72697 1999-05-22  Jim Meyering  <meyering@ascend.com>
72698
72699         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
72700
72701 1999-05-20  Jim Meyering  <meyering@ascend.com>
72702
72703         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
72704         Add a colon after each `then' in case $4 is empty.
72705
72706 1999-05-16  Jim Meyering  <meyering@ascend.com>
72707
72708         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
72709
72710 1999-05-10  Jim Meyering  <meyering@ascend.com>
72711
72712         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
72713
72714         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
72715         AC_FUNC_MKTIME.
72716
72717 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
72718
72719         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
72720
72721 1999-05-04  Paul Eggert  <eggert@twinsun.com>
72722
72723         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
72724         not CPPFLAGS, so that linking works correctly in IRIX.
72725
72726 1999-04-30  Paul Eggert  <eggert@twinsun.com>
72727
72728         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
72729
72730 1999-04-20  Paul Eggert  <eggert@twinsun.com>
72731
72732         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
72733         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
72734         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
72735         jm_AC_TYPE_UNSIGNED_LONG_LONG.
72736         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
72737
72738         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
72739
72740 1999-04-20  Jim Meyering  <meyering@ascend.com>
72741
72742         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
72743         AC_REPLACE xstroull if necessary.  From Paul Eggert.
72744         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
72745
72746 1999-04-18  Jim Meyering  <meyering@ascend.com>
72747
72748         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
72749         * m4/jm-macros.m4: Use it.
72750
72751 1999-04-06  Jim Meyering  <meyering@ascend.com>
72752
72753         * m4/strftime.m4: Remove test for %f.
72754
72755 1999-03-29  Jim Meyering  <meyering@ascend.com>
72756
72757         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
72758         superset of the AC_TYPE_* checks in the textutils, fileutils,
72759         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
72760         AC_TYPE_PID_T.
72761
72762 1999-03-28  Jim Meyering  <meyering@ascend.com>
72763
72764         * m4/jm-macros.m4: Define GNU_PACKAGE here.
72765         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
72766         replaced e.g., in the *.sh files of the sh-utils.
72767
72768 1999-03-20  Jim Meyering  <meyering@ascend.com>
72769
72770         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
72771         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
72772         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
72773
72774 1999-03-19  Jim Meyering  <meyering@ascend.com>
72775
72776         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
72777
72778 1999-03-12  Jim Meyering  <meyering@ascend.com>
72779
72780         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
72781
72782 1999-03-07  Jim Meyering  <meyering@ascend.com>
72783
72784         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
72785         declared.
72786
72787 1999-02-17  Jim Meyering  <meyering@ascend.com>
72788
72789         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
72790         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
72791
72792 1999-02-07  Jim Meyering  <meyering@ascend.com>
72793
72794         * m4/group-member.m4: New file -- extracted from sh-utils'
72795         configure.in.
72796
72797         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
72798         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
72799
72800 1999-02-06  Jim Meyering  <meyering@ascend.com>
72801
72802         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
72803         * m4/fnmatch.m4: Likewise.
72804         * m4/getgroups.m4: Likewise.
72805         * m4/lstat.m4: Likewise.
72806         * m4/malloc.m4: Likewise.
72807         * m4/putenv.m4: Likewise.
72808         * m4/realloc.m4: Likewise.
72809         * m4/regex.m4: Likewise.
72810         * m4/stat.m4: Likewise.
72811         * m4/strftime.m4: Likewise.
72812         Suggestion from Alain Magloire.
72813
72814         * m4/chown.m4: Use `.$ac_objext', not `.o'.
72815         * m4/fnmatch.m4: Likewise.
72816         * m4/getgroups.m4: Likewise.
72817         * m4/getline.m4: Likewise.
72818         * m4/lstat.m4: Likewise.
72819         * m4/malloc.m4: Likewise.
72820         * m4/memcmp.m4: Likewise.
72821         * m4/putenv.m4: Likewise.
72822         * m4/realloc.m4: Likewise.
72823         * m4/regex.m4: Likewise.
72824         * m4/stat.m4: Likewise.
72825         * m4/strftime.m4: Likewise.
72826         Suggestion from Alain Magloire.
72827
72828         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
72829         an argument.
72830
72831         * m4/regex.m4: Add a run-time Test for proper operation of
72832         re_compile_pattern.
72833
72834 1999-01-31  Jim Meyering  <meyering@ascend.com>
72835
72836         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
72837
72838 1999-01-30  Jim Meyering  <meyering@ascend.com>
72839
72840         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72841
72842         * m4/jm-mktime.m4: Make this a wrapper around the official
72843         AM_FUNC_MKTIME rather than my private copy, now that the official one
72844         is up to date.
72845         * m4/mktime.m4: Remove file.
72846
72847         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72848         * m4/uptime.m4: Likewise.
72849         * m4/uintmax_t.m4: Likewise.
72850
72851 1999-01-28  Jim Meyering  <meyering@ascend.com>
72852
72853         * m4/jm-macros.m4: Use jm_AFS.
72854         * m4/afs.m4: New file (from fileutils' configure.in).
72855
72856         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72857         * m4/chown.m4: Likewise.
72858         * m4/d-ino.m4: Likewise.
72859         * m4/d-type.m4: Likewise.
72860         * m4/fnmatch.m4: Likewise.
72861         * m4/getgroups.m4: Likewise.
72862         * m4/gettext.m4: Likewise.
72863         * m4/jm-mktime.m4: Likewise.
72864         * m4/jm-winsz2.m4: Likewise.
72865         * m4/lcmessage.m4: Likewise.
72866         * m4/ls-mntd-fs.m4: Likewise.
72867         * m4/malloc.m4: Likewise.
72868         * m4/memcmp.m4: Likewise.
72869         * m4/putenv.m4: Likewise.
72870         * m4/realloc.m4: Likewise.
72871         * m4/st_mtim.m4: Likewise.
72872         * m4/strftime.m4: Likewise.
72873
72874 1999-01-16  Jim Meyering  <meyering@ascend.com>
72875
72876         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72877         (ARGMATCH_DIE_DECL): Define.
72878
72879 1999-01-12  Jim Meyering  <meyering@ascend.com>
72880
72881         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72882         Reported by Lars Hecking.
72883
72884 1999-01-10  Jim Meyering  <meyering@ascend.com>
72885
72886         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72887         gross kludge.
72888         * m4/inttypes_h.m4: Likewise.
72889         * m4/lstat.m4: Likewise.
72890         * m4/malloc.m4: Likewise.
72891         * m4/readdir.m4: Likewise.
72892         * m4/realloc.m4: Likewise.
72893         * m4/st_dm_mode.m4: Likewise.
72894         * m4/stat.m4: Likewise.
72895         * m4/utimbuf.m4: Likewise.
72896         * m4/utimes.m4: Likewise.
72897
72898         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72899         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72900         comments in config.h.in are meaningful.
72901
72902         * m4/jm-macros.m4: Require autoconf-2.13 here.
72903
72904         * m4/regex.m4: By default, don't use the included regex.c on systems
72905         with glibc 2.  Suggestion from Uli Drepper.
72906
72907 1999-01-02  Jim Meyering  <meyering@ascend.com>
72908
72909         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72910
72911 1998-12-18  Jim Meyering  <meyering@ascend.com>
72912
72913         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72914         Based on a suggestion from Lars Hecking.
72915
72916 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72917
72918         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72919
72920 1998-11-16  Jim Meyering  <meyering@ascend.com>
72921
72922         * m4/lfs.m4: Double-quote the `uname...` expression.
72923
72924 1998-11-14  Jim Meyering  <meyering@ascend.com>
72925
72926         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72927         * m4/stat.m4: Likewise.
72928
72929 1998-11-03  Jim Meyering  <meyering@ascend.com>
72930
72931         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72932         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72933
72934 1998-10-18  Jim Meyering  <meyering@ascend.com>
72935
72936         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72937
72938 1998-10-17  Jim Meyering  <meyering@ascend.com>
72939
72940         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72941         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72942         calls for those previously hard-coded headers.  Instead, take a new
72943         parameter.
72944         (jm_CHECK_DECLARATIONS): Reflect interface change.
72945         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72946         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72947
72948         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72949
72950 1998-10-14  Jim Meyering  <meyering@ascend.com>
72951
72952         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72953         instead of "TZ=America/Vancouver".  From Paul Eggert.
72954
72955 1998-10-11  Jim Meyering  <meyering@ascend.com>
72956
72957         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72958         This adds a test for a recently added compatibility fix for mktime.c.
72959         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72960
72961 1998-09-27  Jim Meyering  <meyering@ascend.com>
72962
72963         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72964
72965         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72966         ../configure.in, including a change from Gordon Matzigkeit to allow
72967         cross-compiling for the Hurd.
72968
72969         * m4/glibc.m4: New file/macro to test for the GNU C Library
72970         versions 1 and 2.  From Gordon Matzigkeit.
72971         Indent.
72972
72973 1998-09-21  Jim Meyering  <meyering@ascend.com>
72974
72975         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72976
72977 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72978
72979         Port nanosecond-resolution times to UnixWare 2.1.2 and
72980         pedantic Solaris 2.6.
72981
72982         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72983         AC_STRUCT_ST_MTIM.
72984         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72985         Generate name of ns member, instead of just 1 or undef.
72986         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72987
72988 1998-08-15  Jim Meyering  <meyering@ascend.com>
72989
72990         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72991         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72992         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72993         instead of jm_TYPE_SSIZE_T.
72994
72995 1998-08-12  Jim Meyering  <meyering@ascend.com>
72996
72997         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72998
72999 1998-08-02  Jim Meyering  <meyering@ascend.com>
73000
73001         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
73002         in acconfig.h manually.
73003
73004 1998-07-31  Paul Eggert  <eggert@twinsun.com>
73005
73006         * m4/st_mtim.m4: New file.
73007
73008 1998-07-28  Jim Meyering  <meyering@ascend.com>
73009
73010         * m4/utimes.m4: Undef stat.
73011
73012 1998-07-25  Jim Meyering  <meyering@ascend.com>
73013
73014         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
73015         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
73016
73017 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
73018
73019         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
73020         uid and gid actually remain unchanged.
73021
73022 1998-07-07  Jim Meyering  <meyering@ascend.com>
73023
73024         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
73025
73026 1998-07-04  Jim Meyering  <meyering@ascend.com>
73027
73028         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
73029         to prove that this macro can be used in packages without regex.c.
73030
73031 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
73032
73033         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
73034         is to be used.
73035
73036 1998-07-03  Jim Meyering  <meyering@ascend.com>
73037
73038         * m4/gettext.m4: Add -lintl if it's found to be necessary.
73039
73040         * m4/gettext.m4: New file -- from gettext-0.10.35.
73041         * m4/lcmessage.m4: Likewise.
73042         * m4/progtest.m4: Likewise.
73043
73044         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
73045         * m4/jm-macros.m4: Require the new macro.
73046
73047 1998-06-29  Jim Meyering  <meyering@ascend.com>
73048
73049         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
73050         for the definition of NGROUPS (used in a system header included
73051         by sys/mount.h).
73052
73053 1998-06-28  Jim Meyering  <meyering@ascend.com>
73054
73055         * m4/ls-mntd-fs.m4: New file.
73056         * m4/fstypename.m4: New file.
73057
73058         * m4/jm-macros.m4: Require the new macro.
73059         * m4/jm-glibc-io.m4: New file.
73060
73061 1998-05-19  Jim Meyering  <meyering@ascend.com>
73062
73063         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
73064         * m4/lchown.m4: New file.
73065
73066         * m4/Makefile.am.in: New file.
73067         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
73068
73069 1998-05-14  Jim Meyering  <meyering@ascend.com>
73070
73071         * m4/Makefile.am (EXTRA_DIST): Add them.
73072         * m4/jm-macros.m4: New file.
73073         * m4/utimbuf.m4: New file.
73074
73075 1998-05-12  Jim Meyering  <meyering@ascend.com>
73076
73077         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
73078
73079 1998-05-11  Jim Meyering  <meyering@ascend.com>
73080
73081         * m4/isc-posix.m4: New file.
73082
73083 1998-05-10  Jim Meyering  <meyering@ascend.com>
73084
73085         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
73086
73087 1998-05-09  Jim Meyering  <meyering@ascend.com>
73088
73089         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
73090         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
73091         with automake.
73092
73093         * m4/ssize_t.m4: New file.
73094         * m4/mktime.m4: Remove file -- the new automake has this now.
73095
73096 1998-04-26  Jim Meyering  <meyering@ascend.com>
73097
73098         * m4/assert.m4: New file.
73099         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
73100
73101 1998-04-05  Jim Meyering  <meyering@ascend.com>
73102
73103         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
73104         (jm_PREREQ): Use it here.
73105
73106 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
73107
73108         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
73109         in acconfig.h.
73110
73111 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
73112
73113         * m4/prereq.m4: New file.
73114         * m4/error.m4: New file.
73115         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
73116
73117 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
73118
73119         * m4/getline.m4: Don't set am_cv_func_working_getline before the
73120         cache-check for the same variable -- that defeated the purpose of
73121         the test; the test program was never run.  This was a problem only
73122         on systems with losing getline functions -- HP-UX 10.20 is one.
73123         Reported by Bjorn Helgaas.
73124
73125 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
73126
73127         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
73128
73129 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
73130
73131         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
73132
73133         * m4/const.m4: New file.  Use an initializer in this declaration
73134         typedef int charset[2]; const charset x;
73135         Reported by Bob Glickstein.
73136
73137 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
73138
73139         * m4/chown.m4: Fix reversed types on -1 args to chown.
73140         From Kaveh Ghazi.
73141
73142 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
73143
73144         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
73145         Add lseek and memchr.
73146
73147         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
73148         T.E.Dickey <dickey@clark.net> said that some older preprocessors
73149         have a 20-character limit on names.
73150
73151 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
73152
73153         * m4/inttypes_h.m4: New file.
73154         * m4/uintmax_t.m4: New file.
73155         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
73156
73157
73158         -----
73159
73160         Local Variables:
73161         coding: utf-8
73162         End:
73163
73164         Copyright (C) 1997-2010 Free Software Foundation, Inc.
73165
73166         Copying and distribution of this file, with or without
73167         modification, are permitted provided the copyright notice
73168         and this notice are preserved.